Skip to content

Commit

Permalink
explicitly define exported components
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Aug 21, 2024
1 parent 33a132c commit 8e57916
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 64 deletions.
4 changes: 2 additions & 2 deletions resources/js/packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/js/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solidtime/ui",
"version": "0.0.2",
"version": "0.0.3",
"description": "Package containing the solidtime ui components",
"main": "./dist/solidtime-ui-lib.umd.cjs",
"module": "./dist/solidtime-ui-lib.js",
Expand Down
101 changes: 40 additions & 61 deletions resources/js/packages/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,43 @@ declare global {
}
}

export * from './utils/money';
export * from './utils/color';
export * from './utils/random';
export * from './utils/time';

export * from './Badge.vue';
export * from './BillableRateModal.vue';
export * from './CardTitle.vue';
export * from './DaySectionHeader.vue';
export * from './DialogModal.vue';
export * from './GroupedItemsCountButton.vue';
export * from './LoadingSpinner.vue';
export * from './Modal.vue';
export * from './TimeTrackerStartStop.vue';

export * from './TimeTracker/TimeTrackerControls.vue';
export * from './TimeTracker/TimeTrackerProjectTaskDropdown.vue';
export * from './TimeTracker/TimeTrackerRangeSelector.vue';
export * from './TimeTracker/TimeTrackerRunningInDifferentOrganizationOverlay.vue';
export * from './TimeTracker/TimeTrackerTagDropdown.vue';

export * from './TimeEntry/TimeEntryAggregateRow.vue';
export * from './TimeEntry/TimeEntryDescriptionInput.vue';
export * from './TimeEntry/TimeEntryGroupedTable.vue';
export * from './TimeEntry/TimeEntryMoreOptionsDropdown.vue';
export * from './TimeEntry/TimeEntryRangeSelector.vue';
export * from './TimeEntry/TimeEntryRow.vue';
export * from './TimeEntry/TimeEntryRowDurationInput.vue';
export * from './TimeEntry/TimeEntryRowHeading.vue';
export * from './TimeEntry/TimeEntryRowTagDropdown.vue';

export * from './Tag/TagBadge.vue';
export * from './Tag/TagCreateModal.vue';
export * from './Tag/TagDropdown.vue';

export * from './Project/ProjectBadge.vue';
export * from './Project/ProjectBillableRateModal.vue';
export * from './Project/ProjectBillableSelect.vue';
export * from './Project/ProjectColorSelector.vue';
export * from './Project/ProjectCreateModal.vue';

export * from './Input/BillableRateInput.vue';
export * from './Input/BillableToggleButton.vue';
export * from './Input/Checkbox.vue';
export * from './Input/DatePicker.vue';
export * from './Input/DateRangePicker.vue';
export * from './Input/Dropdown.vue';
export * from './Input/InputError.vue';
export * from './Input/InputLabel.vue';
export * from './Input/SelectDropdown.vue';
export * from './Input/SelectDropdownItem.vue';
export * from './Input/TextInput.vue';

export * from './Icons/BillableIcon.vue';

export * from './Client/ClientDropdown.vue';
export * from './Client/ClientDropdownItem.vue';

export * from './Buttons/DangerButton.vue';
export * from './Buttons/PrimaryButton.vue';
export * from './Buttons/SecondaryButton.vue';
import * as money from './utils/money';
import * as color from './utils/color';
import * as random from './utils/random';
import * as time from './utils/time';

import PrimaryButton from './Buttons/PrimaryButton.vue';
import SecondaryButton from './Buttons/SecondaryButton.vue';
import TimeTrackerStartStop from './TimeTrackerStartStop.vue';
import ProjectBadge from './Project/ProjectBadge.vue';
import LoadingSpinner from './LoadingSpinner.vue';
import Modal from './Modal.vue';
import TextInput from './Input/TextInput.vue';
import InputLabel from './Input/InputLabel.vue';
import TimeTrackerRunningInDifferentOrganizationOverlay from './TimeTracker/TimeTrackerRunningInDifferentOrganizationOverlay.vue';
import TimeTrackerControls from './TimeTracker/TimeTrackerControls.vue';
import CardTitle from './TimeTracker/TimeTrackerControls.vue';
import SelectDropdown from './TimeTracker/TimeTrackerControls.vue';
import Badge from './Badge.vue';
import Checkbox from './Input/Checkbox.vue';

export {
money,
color,
random,
time,
PrimaryButton,
SecondaryButton,
TimeTrackerStartStop,
ProjectBadge,
LoadingSpinner,
Modal,
TextInput,
InputLabel,
TimeTrackerRunningInDifferentOrganizationOverlay,
TimeTrackerControls,
CardTitle,
SelectDropdown,
Badge,
Checkbox
};

0 comments on commit 8e57916

Please sign in to comment.