vueless 1.1.1-beta.9 → 1.2.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/adapter.locale/locales/en.ts +11 -11
- package/adapter.locale/vue-i18n.ts +2 -3
- package/adapter.locale/vueless.ts +3 -3
- package/bin/commands/init.js +90 -59
- package/bin/constants.d.ts +3 -0
- package/bin/constants.js +0 -14
- package/composables/tests/useUI.test.ts +3 -3
- package/composables/useAutoPosition.ts +1 -1
- package/composables/useBreakpoint.ts +1 -1
- package/composables/useComponentLocaleMassages.ts +3 -3
- package/composables/useDarkMode.ts +2 -2
- package/composables/useLocale.ts +2 -2
- package/composables/useMutationObserver.ts +1 -1
- package/composables/useUI.ts +5 -5
- package/constants.d.ts +334 -0
- package/constants.js +23 -1
- package/icons/storybook/contact_mail.svg +1 -0
- package/icons/storybook/vpn_key.svg +1 -0
- package/icons/storybook/web_traffic.svg +1 -0
- package/index.d.ts +153 -18
- package/index.ts +158 -20
- package/modules.d.ts +33 -0
- package/package.json +34 -10
- package/plugin-vite.d.ts +1 -28
- package/plugin-vite.js +33 -28
- package/tailwind.css +30 -0
- package/types.ts +66 -74
- package/ui.boilerplate/UBoilerplate.vue +5 -5
- package/ui.boilerplate/storybook/{docs.hidden.mdx → docs.mdx} +3 -3
- package/ui.boilerplate/storybook/{stories.hidden.ts → stories.ts} +2 -2
- package/ui.boilerplate/tests/UBoilerplate.test.ts +1 -1
- package/ui.boilerplate/types.ts +2 -2
- package/ui.button/UButton.vue +6 -6
- package/ui.button/storybook/docs.mdx +3 -3
- package/ui.button/storybook/stories.ts +2 -2
- package/ui.button/tests/UButton.test.ts +1 -1
- package/ui.button/types.ts +2 -2
- package/ui.button-link/ULink.vue +6 -6
- package/ui.button-link/storybook/docs.mdx +3 -3
- package/ui.button-link/storybook/stories.ts +3 -3
- package/ui.button-link/tests/ULink.test.ts +1 -1
- package/ui.button-link/types.ts +2 -2
- package/ui.button-toggle/UToggle.vue +5 -5
- package/ui.button-toggle/storybook/docs.mdx +3 -3
- package/ui.button-toggle/storybook/stories.ts +4 -3
- package/ui.button-toggle/tests/UToggle.test.ts +1 -1
- package/ui.button-toggle/types.ts +2 -2
- package/ui.container-accordion/UAccordion.vue +21 -9
- package/ui.container-accordion/config.ts +1 -1
- package/ui.container-accordion/storybook/docs.mdx +3 -3
- package/ui.container-accordion/storybook/stories.ts +19 -7
- package/ui.container-accordion/tests/UAccordion.test.ts +47 -1
- package/ui.container-accordion/types.ts +2 -2
- package/ui.container-card/UCard.vue +6 -6
- package/ui.container-card/storybook/docs.mdx +3 -3
- package/ui.container-card/storybook/stories.ts +2 -2
- package/ui.container-card/tests/UCard.test.ts +1 -1
- package/ui.container-card/types.ts +2 -2
- package/ui.container-col/UCol.vue +5 -5
- package/ui.container-col/storybook/docs.mdx +3 -3
- package/ui.container-col/storybook/stories.ts +2 -2
- package/ui.container-col/tests/UCol.test.ts +1 -1
- package/ui.container-col/types.ts +2 -2
- package/ui.container-divider/UDivider.vue +6 -6
- package/ui.container-divider/storybook/docs.mdx +3 -3
- package/ui.container-divider/storybook/stories.ts +2 -2
- package/ui.container-divider/tests/UDivider.test.ts +1 -1
- package/ui.container-divider/types.ts +2 -2
- package/ui.container-group/UGroup.vue +5 -5
- package/ui.container-group/storybook/docs.mdx +3 -3
- package/ui.container-group/storybook/stories.ts +2 -2
- package/ui.container-group/types.ts +2 -2
- package/ui.container-groups/UGroups.vue +5 -5
- package/ui.container-groups/storybook/docs.mdx +3 -3
- package/ui.container-groups/storybook/stories.ts +2 -2
- package/ui.container-groups/tests/UGroups.test.ts +1 -1
- package/ui.container-groups/types.ts +2 -2
- package/ui.container-modal/UModal.vue +6 -6
- package/ui.container-modal/storybook/docs.mdx +3 -3
- package/ui.container-modal/storybook/stories.ts +3 -3
- package/ui.container-modal/tests/UModal.test.ts +2 -2
- package/ui.container-modal/types.ts +2 -2
- package/ui.container-modal-confirm/UModalConfirm.vue +7 -7
- package/ui.container-modal-confirm/storybook/docs.mdx +3 -3
- package/ui.container-modal-confirm/storybook/stories.ts +3 -3
- package/ui.container-modal-confirm/tests/UModalConfirm.test.ts +1 -1
- package/ui.container-modal-confirm/types.ts +2 -2
- package/ui.container-page/UPage.vue +6 -6
- package/ui.container-page/storybook/docs.mdx +3 -3
- package/ui.container-page/storybook/stories.ts +2 -2
- package/ui.container-page/tests/UPage.test.ts +2 -2
- package/ui.container-page/types.ts +2 -2
- package/ui.container-row/URow.vue +5 -5
- package/ui.container-row/storybook/docs.mdx +3 -3
- package/ui.container-row/storybook/stories.ts +2 -2
- package/ui.container-row/tests/URow.test.ts +1 -1
- package/ui.container-row/types.ts +2 -2
- package/ui.data-list/UDataList.vue +8 -8
- package/ui.data-list/storybook/docs.mdx +3 -3
- package/ui.data-list/storybook/stories.ts +3 -3
- package/ui.data-list/tests/UDataList.test.ts +1 -1
- package/ui.data-list/types.ts +2 -2
- package/ui.data-table/UTable.vue +28 -20
- package/ui.data-table/UTableRow.vue +8 -8
- package/ui.data-table/config.ts +1 -1
- package/ui.data-table/storybook/docs.mdx +3 -3
- package/ui.data-table/storybook/stories.ts +14 -3
- package/ui.data-table/tests/UTable.test.ts +20 -2
- package/ui.data-table/tests/UTableRow.test.ts +1 -1
- package/ui.data-table/types.ts +3 -3
- package/ui.data-table/utilTable.ts +1 -1
- package/ui.dropdown-badge/UDropdownBadge.vue +7 -7
- package/ui.dropdown-badge/storybook/docs.mdx +3 -3
- package/ui.dropdown-badge/storybook/stories.ts +2 -2
- package/ui.dropdown-badge/tests/UDropdownBadge.test.ts +1 -1
- package/ui.dropdown-badge/types.ts +3 -3
- package/ui.dropdown-button/UDropdownButton.vue +8 -7
- package/ui.dropdown-button/config.ts +9 -1
- package/ui.dropdown-button/storybook/docs.mdx +3 -3
- package/ui.dropdown-button/storybook/stories.ts +3 -3
- package/ui.dropdown-button/tests/UDropdownButton.test.ts +17 -1
- package/ui.dropdown-button/types.ts +8 -3
- package/ui.dropdown-link/UDropdownLink.vue +7 -7
- package/ui.dropdown-link/config.ts +1 -1
- package/ui.dropdown-link/storybook/docs.mdx +3 -3
- package/ui.dropdown-link/storybook/stories.ts +2 -2
- package/ui.dropdown-link/tests/UDropdownLink.test.ts +1 -1
- package/ui.dropdown-link/types.ts +3 -3
- package/ui.form-calendar/UCalendar.vue +11 -11
- package/ui.form-calendar/UCalendarDayView.vue +6 -6
- package/ui.form-calendar/UCalendarMonthView.vue +6 -6
- package/ui.form-calendar/UCalendarYearView.vue +6 -6
- package/ui.form-calendar/storybook/docs.mdx +3 -3
- package/ui.form-calendar/storybook/stories.ts +3 -3
- package/ui.form-calendar/tests/UCalendar.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarDayView.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarMonthView.test.ts +2 -2
- package/ui.form-calendar/tests/UCalendarYearView.test.ts +2 -2
- package/ui.form-calendar/types.ts +3 -3
- package/ui.form-calendar/utilCalendar.ts +4 -4
- package/ui.form-calendar/utilDate.ts +1 -1
- package/ui.form-calendar/utilFormatting.ts +1 -1
- package/ui.form-checkbox/UCheckbox.vue +6 -6
- package/ui.form-checkbox/storybook/docs.mdx +3 -3
- package/ui.form-checkbox/storybook/stories.ts +2 -2
- package/ui.form-checkbox/tests/UCheckbox.test.ts +1 -1
- package/ui.form-checkbox/types.ts +2 -2
- package/ui.form-checkbox-group/UCheckboxGroup.vue +6 -6
- package/ui.form-checkbox-group/storybook/docs.mdx +3 -3
- package/ui.form-checkbox-group/storybook/stories.ts +2 -2
- package/ui.form-checkbox-group/tests/UCheckboxGroup.test.ts +1 -1
- package/ui.form-checkbox-group/types.ts +3 -3
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +8 -8
- package/ui.form-checkbox-multi-state/storybook/docs.mdx +3 -3
- package/ui.form-checkbox-multi-state/storybook/stories.ts +2 -2
- package/ui.form-checkbox-multi-state/tests/UCheckboxMultiState.test.ts +1 -1
- package/ui.form-checkbox-multi-state/types.ts +3 -3
- package/ui.form-color-picker/UColorPicker.vue +6 -6
- package/ui.form-color-picker/storybook/docs.mdx +3 -3
- package/ui.form-color-picker/storybook/stories.ts +2 -2
- package/ui.form-color-picker/tests/UColorPicker.test.ts +1 -1
- package/ui.form-color-picker/types.ts +2 -2
- package/ui.form-date-picker/UDatePicker.vue +14 -14
- package/ui.form-date-picker/storybook/docs.mdx +3 -3
- package/ui.form-date-picker/storybook/stories.ts +3 -3
- package/ui.form-date-picker/tests/UDatePicker.test.ts +1 -1
- package/ui.form-date-picker/types.ts +2 -2
- package/ui.form-date-picker-range/UDatePickerRange.vue +14 -14
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue +6 -6
- package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue +5 -5
- package/ui.form-date-picker-range/storybook/docs.mdx +3 -3
- package/ui.form-date-picker-range/storybook/stories.ts +4 -4
- package/ui.form-date-picker-range/tests/UDatePickerRange.test.ts +1 -1
- package/ui.form-date-picker-range/types.ts +4 -4
- package/ui.form-date-picker-range/useLocale.ts +6 -6
- package/ui.form-date-picker-range/useUserFormat.ts +5 -5
- package/ui.form-date-picker-range/utilDateRange.ts +2 -2
- package/ui.form-date-picker-range/utilValidation.ts +1 -1
- package/ui.form-input/UInput.vue +7 -7
- package/ui.form-input/config.ts +1 -1
- package/ui.form-input/storybook/docs.mdx +3 -3
- package/ui.form-input/storybook/stories.ts +2 -2
- package/ui.form-input/tests/UInput.test.ts +1 -1
- package/ui.form-input/types.ts +2 -2
- package/ui.form-input-counter/UInputCounter.vue +5 -5
- package/ui.form-input-counter/storybook/docs.mdx +3 -3
- package/ui.form-input-counter/storybook/stories.ts +2 -2
- package/ui.form-input-counter/tests/UInputCounter.test.ts +1 -1
- package/ui.form-input-counter/types.ts +2 -2
- package/ui.form-input-file/UInputFile.vue +8 -8
- package/ui.form-input-file/storybook/docs.mdx +3 -3
- package/ui.form-input-file/storybook/stories.ts +2 -2
- package/ui.form-input-file/tests/UInputFile.test.ts +1 -1
- package/ui.form-input-file/types.ts +2 -2
- package/ui.form-input-number/UInputNumber.vue +7 -7
- package/ui.form-input-number/storybook/docs.mdx +3 -3
- package/ui.form-input-number/storybook/stories.ts +2 -2
- package/ui.form-input-number/tests/UInputNumber.test.ts +1 -1
- package/ui.form-input-number/types.ts +2 -2
- package/ui.form-input-number/useFormatNumber.ts +3 -3
- package/ui.form-input-number/utilFormat.ts +2 -2
- package/ui.form-input-password/UInputPassword.vue +6 -6
- package/ui.form-input-password/storybook/docs.mdx +3 -3
- package/ui.form-input-password/storybook/stories.ts +2 -2
- package/ui.form-input-password/tests/UInputPassword.test.ts +1 -1
- package/ui.form-input-password/types.ts +2 -2
- package/ui.form-input-rating/UInputRating.vue +6 -6
- package/ui.form-input-rating/storybook/docs.mdx +3 -3
- package/ui.form-input-rating/storybook/stories.ts +2 -2
- package/ui.form-input-rating/tests/UInputRating.test.ts +1 -1
- package/ui.form-input-rating/types.ts +2 -2
- package/ui.form-input-search/UInputSearch.vue +6 -6
- package/ui.form-input-search/storybook/docs.mdx +3 -3
- package/ui.form-input-search/storybook/stories.ts +2 -2
- package/ui.form-input-search/tests/UInputSearch.test.ts +1 -1
- package/ui.form-input-search/types.ts +2 -2
- package/ui.form-label/ULabel.vue +6 -6
- package/ui.form-label/storybook/docs.mdx +3 -3
- package/ui.form-label/storybook/stories.ts +2 -2
- package/ui.form-label/tests/ULabel.test.ts +1 -1
- package/ui.form-label/types.ts +2 -2
- package/ui.form-listbox/UListbox.vue +9 -9
- package/ui.form-listbox/storybook/docs.mdx +3 -3
- package/ui.form-listbox/storybook/stories.ts +2 -2
- package/ui.form-listbox/tests/UListbox.test.ts +1 -1
- package/ui.form-listbox/types.ts +2 -2
- package/ui.form-listbox/usePointer.ts +1 -1
- package/ui.form-listbox/utilListbox.ts +1 -1
- package/ui.form-radio/URadio.vue +6 -6
- package/ui.form-radio/storybook/docs.mdx +3 -3
- package/ui.form-radio/storybook/stories.ts +2 -2
- package/ui.form-radio/tests/URadio.test.ts +1 -1
- package/ui.form-radio/types.ts +2 -2
- package/ui.form-radio-group/URadioGroup.vue +5 -5
- package/ui.form-radio-group/storybook/docs.mdx +3 -3
- package/ui.form-radio-group/storybook/stories.ts +2 -2
- package/ui.form-radio-group/tests/URadioGroup.test.ts +6 -2
- package/ui.form-radio-group/types.ts +2 -2
- package/ui.form-select/USelect.vue +13 -12
- package/ui.form-select/storybook/docs.mdx +3 -3
- package/ui.form-select/storybook/stories.ts +2 -2
- package/ui.form-select/tests/USelect.test.ts +1 -1
- package/ui.form-select/types.ts +3 -3
- package/ui.form-select/utilSelect.ts +1 -1
- package/ui.form-switch/USwitch.vue +6 -6
- package/ui.form-switch/storybook/docs.mdx +3 -3
- package/ui.form-switch/storybook/stories.ts +2 -2
- package/ui.form-switch/tests/USwitch.test.ts +1 -1
- package/ui.form-switch/types.ts +2 -2
- package/ui.form-textarea/UTextarea.vue +7 -7
- package/ui.form-textarea/storybook/docs.mdx +3 -3
- package/ui.form-textarea/storybook/stories.ts +3 -3
- package/ui.form-textarea/tests/UTextarea.test.ts +1 -1
- package/ui.form-textarea/types.ts +2 -2
- package/ui.image-avatar/UAvatar.vue +5 -5
- package/ui.image-avatar/storybook/docs.mdx +3 -3
- package/ui.image-avatar/storybook/stories.ts +3 -3
- package/ui.image-avatar/tests/UAvatar.test.ts +1 -1
- package/ui.image-avatar/types.ts +2 -2
- package/ui.image-icon/UIcon.vue +6 -6
- package/ui.image-icon/storybook/docs.mdx +3 -3
- package/ui.image-icon/storybook/stories.ts +2 -2
- package/ui.image-icon/tests/UIcon.test.ts +0 -1
- package/ui.image-icon/types.ts +2 -2
- package/ui.loader/ULoader.vue +5 -5
- package/ui.loader/storybook/docs.mdx +3 -3
- package/ui.loader/storybook/stories.ts +2 -2
- package/ui.loader/tests/ULoader.test.ts +1 -1
- package/ui.loader/types.ts +2 -2
- package/ui.loader-overlay/ULoaderOverlay.vue +6 -6
- package/ui.loader-overlay/storybook/docs.mdx +3 -3
- package/ui.loader-overlay/storybook/stories.ts +2 -2
- package/ui.loader-overlay/tests/ULoaderOverlay.test.ts +2 -2
- package/ui.loader-overlay/types.ts +2 -2
- package/ui.loader-progress/ULoaderProgress.vue +7 -7
- package/ui.loader-progress/storybook/docs.mdx +3 -3
- package/ui.loader-progress/storybook/stories.ts +4 -4
- package/ui.loader-progress/tests/ULoaderProgress.test.ts +2 -2
- package/ui.loader-progress/types.ts +2 -2
- package/ui.loader-progress/useLoaderProgress.ts +1 -1
- package/ui.navigation-breadcrumbs/UBreadcrumbs.vue +6 -6
- package/ui.navigation-breadcrumbs/storybook/docs.mdx +3 -3
- package/ui.navigation-breadcrumbs/storybook/stories.ts +13 -2
- package/ui.navigation-breadcrumbs/tests/UBreadcrumbs.test.ts +2 -2
- package/ui.navigation-breadcrumbs/types.ts +3 -3
- package/ui.navigation-pagination/UPagination.vue +5 -5
- package/ui.navigation-pagination/storybook/docs.mdx +3 -3
- package/ui.navigation-pagination/storybook/stories.ts +5 -3
- package/ui.navigation-pagination/tests/UPagination.test.ts +1 -1
- package/ui.navigation-pagination/types.ts +2 -2
- package/ui.navigation-progress/UProgress.vue +5 -5
- package/ui.navigation-progress/UStepperProgress.vue +3 -3
- package/ui.navigation-progress/storybook/docs.mdx +3 -3
- package/ui.navigation-progress/storybook/stories.ts +2 -2
- package/ui.navigation-progress/tests/UProgress.test.ts +1 -1
- package/ui.navigation-progress/types.ts +2 -2
- package/ui.navigation-tab/UTab.vue +6 -6
- package/ui.navigation-tab/storybook/docs.mdx +3 -3
- package/ui.navigation-tab/storybook/stories.ts +2 -2
- package/ui.navigation-tab/types.ts +2 -2
- package/ui.navigation-tabs/UTabs.vue +5 -5
- package/ui.navigation-tabs/storybook/docs.mdx +3 -3
- package/ui.navigation-tabs/storybook/stories.ts +2 -2
- package/ui.navigation-tabs/tests/UTabs.test.ts +1 -1
- package/ui.navigation-tabs/types.ts +2 -2
- package/ui.other-chip/UChip.vue +5 -5
- package/ui.other-chip/storybook/docs.mdx +3 -3
- package/ui.other-chip/storybook/stories.ts +13 -2
- package/ui.other-chip/tests/UChip.test.ts +1 -1
- package/ui.other-chip/types.ts +2 -2
- package/ui.other-dot/UDot.vue +5 -5
- package/ui.other-dot/storybook/docs.mdx +3 -3
- package/ui.other-dot/storybook/stories.ts +2 -2
- package/ui.other-dot/tests/UDot.test.ts +1 -1
- package/ui.other-dot/types.ts +2 -2
- package/ui.other-theme-color-toggle/UThemeColorToggle.vue +6 -6
- package/ui.other-theme-color-toggle/storybook/docs.mdx +3 -3
- package/ui.other-theme-color-toggle/storybook/stories.ts +2 -2
- package/ui.other-theme-color-toggle/tests/UThemeColorToggle.test.ts +1 -1
- package/ui.other-theme-color-toggle/types.ts +2 -2
- package/ui.skeleton/USkeleton.vue +5 -5
- package/ui.skeleton/storybook/docs.mdx +3 -3
- package/ui.skeleton/storybook/stories.ts +7 -2
- package/ui.skeleton/tests/USkeleton.test.ts +1 -1
- package/ui.skeleton/types.ts +2 -2
- package/ui.skeleton-choice/USkeletonChoice.vue +5 -5
- package/ui.skeleton-choice/storybook/docs.mdx +3 -3
- package/ui.skeleton-choice/storybook/stories.ts +7 -2
- package/ui.skeleton-choice/tests/USkeletonChoice.test.ts +1 -1
- package/ui.skeleton-choice/types.ts +2 -2
- package/ui.skeleton-input/USkeletonInput.vue +5 -5
- package/ui.skeleton-input/storybook/docs.mdx +3 -3
- package/ui.skeleton-input/storybook/stories.ts +13 -2
- package/ui.skeleton-input/tests/USkeletonInput.test.ts +1 -1
- package/ui.skeleton-input/types.ts +2 -2
- package/ui.skeleton-text/USkeletonText.vue +5 -5
- package/ui.skeleton-text/storybook/docs.mdx +3 -3
- package/ui.skeleton-text/storybook/stories.ts +7 -2
- package/ui.skeleton-text/tests/USkeletonText.test.ts +1 -1
- package/ui.skeleton-text/types.ts +2 -2
- package/ui.text-alert/UAlert.vue +6 -6
- package/ui.text-alert/storybook/docs.mdx +3 -3
- package/ui.text-alert/storybook/stories.ts +2 -2
- package/ui.text-alert/tests/UAlert.test.ts +1 -1
- package/ui.text-alert/types.ts +2 -2
- package/ui.text-badge/UBadge.vue +6 -6
- package/ui.text-badge/storybook/docs.mdx +3 -3
- package/ui.text-badge/storybook/stories.ts +2 -2
- package/ui.text-badge/tests/UBadge.test.ts +1 -1
- package/ui.text-badge/types.ts +2 -2
- package/ui.text-block/UText.vue +5 -5
- package/ui.text-block/storybook/docs.mdx +3 -3
- package/ui.text-block/storybook/stories.ts +2 -2
- package/ui.text-block/tests/UText.test.ts +1 -1
- package/ui.text-block/types.ts +2 -2
- package/ui.text-empty/UEmpty.vue +5 -5
- package/ui.text-empty/storybook/docs.mdx +3 -3
- package/ui.text-empty/storybook/stories.ts +2 -2
- package/ui.text-empty/tests/UEmpty.test.ts +1 -1
- package/ui.text-empty/types.ts +2 -2
- package/ui.text-file/UFile.vue +5 -5
- package/ui.text-file/storybook/docs.mdx +3 -3
- package/ui.text-file/storybook/stories.ts +2 -2
- package/ui.text-file/tests/UFile.test.ts +1 -1
- package/ui.text-file/types.ts +2 -2
- package/ui.text-files/UFiles.vue +6 -6
- package/ui.text-files/storybook/docs.mdx +3 -3
- package/ui.text-files/storybook/stories.ts +2 -2
- package/ui.text-files/tests/UFiles.test.ts +1 -1
- package/ui.text-files/types.ts +2 -2
- package/ui.text-header/UHeader.vue +5 -5
- package/ui.text-header/storybook/docs.mdx +3 -3
- package/ui.text-header/storybook/stories.ts +2 -2
- package/ui.text-header/tests/UHeader.test.ts +1 -1
- package/ui.text-header/types.ts +2 -2
- package/ui.text-notify/UNotify.vue +6 -6
- package/ui.text-notify/storybook/docs.mdx +3 -3
- package/ui.text-notify/storybook/stories.ts +3 -3
- package/ui.text-notify/tests/UNotify.test.ts +4 -4
- package/ui.text-notify/types.ts +3 -3
- package/ui.text-notify/utilNotify.ts +3 -3
- package/ui.text-number/UNumber.vue +6 -6
- package/ui.text-number/storybook/docs.mdx +3 -3
- package/ui.text-number/storybook/stories.ts +13 -2
- package/ui.text-number/tests/UNumber.test.ts +2 -2
- package/ui.text-number/types.ts +2 -2
- package/utils/helper.ts +1 -1
- package/utils/node/dynamicProps.d.ts +2 -0
- package/utils/node/dynamicProps.js +17 -8
- package/utils/node/helper.d.ts +15 -0
- package/utils/node/helper.js +73 -27
- package/utils/node/loaderIcon.d.ts +7 -0
- package/utils/node/loaderIcon.js +12 -8
- package/utils/node/loaderSvg.d.ts +1 -0
- package/utils/node/mergeConfigs.d.ts +13 -0
- package/utils/node/storybook.d.ts +2 -0
- package/utils/node/storybook.js +94 -0
- package/utils/node/tailwindSafelist.d.ts +6 -0
- package/utils/node/vuelessConfig.d.ts +9 -0
- package/utils/node/vuelessConfig.js +30 -11
- package/utils/node/vuelessResolver.d.ts +13 -0
- package/utils/node/vuelessResolver.js +30 -14
- package/utils/node/webTypes.d.ts +1 -0
- package/utils/node/webTypes.js +4 -2
- package/utils/platform.ts +1 -1
- package/utils/storybook.ts +2 -2
- package/utils/theme.ts +21 -19
- package/utils/ui.ts +33 -8
- package/{directives/clickOutside → v.click-outside}/storybook/docs.mdx +2 -2
- package/{directives/clickOutside → v.click-outside}/storybook/stories.ts +5 -5
- package/{directives/clickOutside → v.click-outside}/vClickOutside.ts +1 -1
- package/v.tooltip/storybook/docs.mdx +47 -0
- package/{directives/tooltip → v.tooltip}/storybook/stories.ts +14 -11
- package/{directives/tooltip → v.tooltip}/vTooltip.ts +4 -9
- package/directives/index.js +0 -7
- package/directives/tooltip/storybook/docs.mdx +0 -10
- package/utils/node/dynamicStories.js +0 -62
- package/utils/tailwindConfig.ts +0 -36
- /package/{directives/clickOutside → v.click-outside}/types.ts +0 -0
- /package/{directives/tooltip → v.tooltip}/types.ts +0 -0
package/constants.d.ts
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
export const PRIMARY_COLOR: "primary";
|
|
2
|
+
export const NEUTRAL_COLOR: "neutral";
|
|
3
|
+
export const SECONDARY_COLOR: "secondary";
|
|
4
|
+
export const GRAYSCALE_COLOR: "grayscale";
|
|
5
|
+
export const INHERIT_COLOR: "inherit";
|
|
6
|
+
export const TEXT_COLOR: "text";
|
|
7
|
+
export const TEXT: "text";
|
|
8
|
+
export const OUTLINE: "outline";
|
|
9
|
+
export const ROUNDING: "rounding";
|
|
10
|
+
export const DISABLED_OPACITY: "disabled-opacity";
|
|
11
|
+
export const COLOR_MODE_KEY: "vl-color-mode";
|
|
12
|
+
export const AUTO_MODE_KEY: "vl-auto-mode";
|
|
13
|
+
export const DARK_MODE_CLASS: "vl-dark";
|
|
14
|
+
export const LIGHT_MODE_CLASS: "vl-light";
|
|
15
|
+
export const DEFAULT_PRIMARY_COLOR: "grayscale";
|
|
16
|
+
export const DEFAULT_NEUTRAL_COLOR: "gray";
|
|
17
|
+
export const DEFAULT_TEXT: 14;
|
|
18
|
+
export const TEXT_DECREMENT: 2;
|
|
19
|
+
export const TEXT_INCREMENT: 2;
|
|
20
|
+
export const DEFAULT_OUTLINE: 2;
|
|
21
|
+
export const OUTLINE_DECREMENT: 1;
|
|
22
|
+
export const OUTLINE_INCREMENT: 1;
|
|
23
|
+
export const DEFAULT_ROUNDING: 8;
|
|
24
|
+
export const ROUNDING_DECREMENT: 4;
|
|
25
|
+
export const ROUNDING_INCREMENT: 6;
|
|
26
|
+
export const DEFAULT_DISABLED_OPACITY: 50;
|
|
27
|
+
export const PRIMARY_COLORS: string[];
|
|
28
|
+
export const STATE_COLORS: string[];
|
|
29
|
+
export const NEUTRAL_COLORS: string[];
|
|
30
|
+
export const COLOR_SHADES: number[];
|
|
31
|
+
export const DEFAULT_LIGHT_THEME: {
|
|
32
|
+
"--vl-primary": string;
|
|
33
|
+
"--vl-primary-lifted": string;
|
|
34
|
+
"--vl-primary-accented": string;
|
|
35
|
+
"--vl-secondary": string;
|
|
36
|
+
"--vl-secondary-lifted": string;
|
|
37
|
+
"--vl-secondary-accented": string;
|
|
38
|
+
"--vl-success": string;
|
|
39
|
+
"--vl-success-lifted": string;
|
|
40
|
+
"--vl-success-accented": string;
|
|
41
|
+
"--vl-info": string;
|
|
42
|
+
"--vl-info-lifted": string;
|
|
43
|
+
"--vl-info-accented": string;
|
|
44
|
+
"--vl-notice": string;
|
|
45
|
+
"--vl-notice-lifted": string;
|
|
46
|
+
"--vl-notice-accented": string;
|
|
47
|
+
"--vl-warning": string;
|
|
48
|
+
"--vl-warning-lifted": string;
|
|
49
|
+
"--vl-warning-accented": string;
|
|
50
|
+
"--vl-error": string;
|
|
51
|
+
"--vl-error-lifted": string;
|
|
52
|
+
"--vl-error-accented": string;
|
|
53
|
+
"--vl-grayscale": string;
|
|
54
|
+
"--vl-grayscale-lifted": string;
|
|
55
|
+
"--vl-grayscale-accented": string;
|
|
56
|
+
"--vl-neutral": string;
|
|
57
|
+
"--vl-neutral-lifted": string;
|
|
58
|
+
"--vl-neutral-accented": string;
|
|
59
|
+
"--vl-text-inverted": string;
|
|
60
|
+
"--vl-text-muted": string;
|
|
61
|
+
"--vl-text-lifted": string;
|
|
62
|
+
"--vl-text-accented": string;
|
|
63
|
+
"--vl-text": string;
|
|
64
|
+
"--vl-border-muted": string;
|
|
65
|
+
"--vl-border": string;
|
|
66
|
+
"--vl-border-lifted": string;
|
|
67
|
+
"--vl-border-accented": string;
|
|
68
|
+
"--vl-bg": string;
|
|
69
|
+
"--vl-bg-muted": string;
|
|
70
|
+
"--vl-bg-lifted": string;
|
|
71
|
+
"--vl-bg-accented": string;
|
|
72
|
+
"--vl-bg-inverted": string;
|
|
73
|
+
};
|
|
74
|
+
export const DEFAULT_DARK_THEME: {
|
|
75
|
+
"--vl-primary": string;
|
|
76
|
+
"--vl-primary-lifted": string;
|
|
77
|
+
"--vl-primary-accented": string;
|
|
78
|
+
"--vl-secondary": string;
|
|
79
|
+
"--vl-secondary-lifted": string;
|
|
80
|
+
"--vl-secondary-accented": string;
|
|
81
|
+
"--vl-success": string;
|
|
82
|
+
"--vl-success-lifted": string;
|
|
83
|
+
"--vl-success-accented": string;
|
|
84
|
+
"--vl-info": string;
|
|
85
|
+
"--vl-info-lifted": string;
|
|
86
|
+
"--vl-info-accented": string;
|
|
87
|
+
"--vl-notice": string;
|
|
88
|
+
"--vl-notice-lifted": string;
|
|
89
|
+
"--vl-notice-accented": string;
|
|
90
|
+
"--vl-warning": string;
|
|
91
|
+
"--vl-warning-lifted": string;
|
|
92
|
+
"--vl-warning-accented": string;
|
|
93
|
+
"--vl-error": string;
|
|
94
|
+
"--vl-error-lifted": string;
|
|
95
|
+
"--vl-error-accented": string;
|
|
96
|
+
"--vl-grayscale": string;
|
|
97
|
+
"--vl-grayscale-lifted": string;
|
|
98
|
+
"--vl-grayscale-accented": string;
|
|
99
|
+
"--vl-neutral": string;
|
|
100
|
+
"--vl-neutral-lifted": string;
|
|
101
|
+
"--vl-neutral-accented": string;
|
|
102
|
+
"--vl-text-inverted": string;
|
|
103
|
+
"--vl-text-muted": string;
|
|
104
|
+
"--vl-text-lifted": string;
|
|
105
|
+
"--vl-text-accented": string;
|
|
106
|
+
"--vl-text": string;
|
|
107
|
+
"--vl-border-muted": string;
|
|
108
|
+
"--vl-border": string;
|
|
109
|
+
"--vl-border-lifted": string;
|
|
110
|
+
"--vl-border-accented": string;
|
|
111
|
+
"--vl-bg": string;
|
|
112
|
+
"--vl-bg-muted": string;
|
|
113
|
+
"--vl-bg-lifted": string;
|
|
114
|
+
"--vl-bg-accented": string;
|
|
115
|
+
"--vl-bg-inverted": string;
|
|
116
|
+
};
|
|
117
|
+
export namespace CVA_CONFIG_KEY {
|
|
118
|
+
let base: string;
|
|
119
|
+
let variants: string;
|
|
120
|
+
let compoundVariants: string;
|
|
121
|
+
let defaultVariants: string;
|
|
122
|
+
}
|
|
123
|
+
export namespace SYSTEM_CONFIG_KEY {
|
|
124
|
+
let i18n: string;
|
|
125
|
+
let defaults: string;
|
|
126
|
+
let unstyled: string;
|
|
127
|
+
let transition: string;
|
|
128
|
+
let colors: string;
|
|
129
|
+
}
|
|
130
|
+
export const ICON_NON_PROPS_DEFAULTS: string[];
|
|
131
|
+
export namespace DIRECTIVES {
|
|
132
|
+
let vTooltip: string;
|
|
133
|
+
let vClickOutside: string;
|
|
134
|
+
}
|
|
135
|
+
export namespace COMPONENTS {
|
|
136
|
+
let UButton: string;
|
|
137
|
+
let ULink: string;
|
|
138
|
+
let UToggle: string;
|
|
139
|
+
let UDropdownButton: string;
|
|
140
|
+
let UDropdownBadge: string;
|
|
141
|
+
let UDropdownLink: string;
|
|
142
|
+
let UInput: string;
|
|
143
|
+
let UInputFile: string;
|
|
144
|
+
let UInputNumber: string;
|
|
145
|
+
let UInputCounter: string;
|
|
146
|
+
let UInputPassword: string;
|
|
147
|
+
let UInputRating: string;
|
|
148
|
+
let UInputSearch: string;
|
|
149
|
+
let UTextarea: string;
|
|
150
|
+
let USelect: string;
|
|
151
|
+
let UListbox: string;
|
|
152
|
+
let UCheckbox: string;
|
|
153
|
+
let UCheckboxGroup: string;
|
|
154
|
+
let UCheckboxMultiState: string;
|
|
155
|
+
let USwitch: string;
|
|
156
|
+
let URadio: string;
|
|
157
|
+
let URadioGroup: string;
|
|
158
|
+
let UCalendar: string;
|
|
159
|
+
let UDatePicker: string;
|
|
160
|
+
let UDatePickerRange: string;
|
|
161
|
+
let UColorPicker: string;
|
|
162
|
+
let ULabel: string;
|
|
163
|
+
let UHeader: string;
|
|
164
|
+
let UText: string;
|
|
165
|
+
let UAlert: string;
|
|
166
|
+
let UNotify: string;
|
|
167
|
+
let UNumber: string;
|
|
168
|
+
let UFile: string;
|
|
169
|
+
let UFiles: string;
|
|
170
|
+
let UEmpty: string;
|
|
171
|
+
let UBadge: string;
|
|
172
|
+
let UDivider: string;
|
|
173
|
+
let UCol: string;
|
|
174
|
+
let URow: string;
|
|
175
|
+
let UGroup: string;
|
|
176
|
+
let UGroups: string;
|
|
177
|
+
let UAccordion: string;
|
|
178
|
+
let UCard: string;
|
|
179
|
+
let UModal: string;
|
|
180
|
+
let UModalConfirm: string;
|
|
181
|
+
let UPage: string;
|
|
182
|
+
let UIcon: string;
|
|
183
|
+
let UAvatar: string;
|
|
184
|
+
let UTable: string;
|
|
185
|
+
let UDataList: string;
|
|
186
|
+
let UTab: string;
|
|
187
|
+
let UTabs: string;
|
|
188
|
+
let UProgress: string;
|
|
189
|
+
let UPagination: string;
|
|
190
|
+
let UBreadcrumbs: string;
|
|
191
|
+
let ULoader: string;
|
|
192
|
+
let ULoaderProgress: string;
|
|
193
|
+
let ULoaderOverlay: string;
|
|
194
|
+
let USkeleton: string;
|
|
195
|
+
let USkeletonText: string;
|
|
196
|
+
let USkeletonInput: string;
|
|
197
|
+
let USkeletonChoice: string;
|
|
198
|
+
let UDot: string;
|
|
199
|
+
let UChip: string;
|
|
200
|
+
let UThemeColorToggle: string;
|
|
201
|
+
}
|
|
202
|
+
export namespace TAILWIND_MERGE_EXTENSION {
|
|
203
|
+
namespace extend {
|
|
204
|
+
namespace theme {
|
|
205
|
+
let spacing: string[];
|
|
206
|
+
}
|
|
207
|
+
let classGroups: {
|
|
208
|
+
"outline-w": {
|
|
209
|
+
outline: string[];
|
|
210
|
+
}[];
|
|
211
|
+
"font-size": {
|
|
212
|
+
text: string[];
|
|
213
|
+
}[];
|
|
214
|
+
"bg-color": {
|
|
215
|
+
bg: string[];
|
|
216
|
+
}[];
|
|
217
|
+
"text-color": {
|
|
218
|
+
text: string[];
|
|
219
|
+
}[];
|
|
220
|
+
"border-color": {
|
|
221
|
+
border: string[];
|
|
222
|
+
}[];
|
|
223
|
+
"border-color-x": {
|
|
224
|
+
"border-x": string[];
|
|
225
|
+
}[];
|
|
226
|
+
"border-color-y": {
|
|
227
|
+
"border-y": string[];
|
|
228
|
+
}[];
|
|
229
|
+
"border-color-t": {
|
|
230
|
+
"border-t": string[];
|
|
231
|
+
}[];
|
|
232
|
+
"border-color-r": {
|
|
233
|
+
"border-r": string[];
|
|
234
|
+
}[];
|
|
235
|
+
"border-color-b": {
|
|
236
|
+
"border-b": string[];
|
|
237
|
+
}[];
|
|
238
|
+
"border-color-l": {
|
|
239
|
+
"border-l": string[];
|
|
240
|
+
}[];
|
|
241
|
+
rounded: {
|
|
242
|
+
rounded: string[];
|
|
243
|
+
}[];
|
|
244
|
+
"rounded-s": {
|
|
245
|
+
"rounded-s": string[];
|
|
246
|
+
}[];
|
|
247
|
+
"rounded-e": {
|
|
248
|
+
"rounded-e": string[];
|
|
249
|
+
}[];
|
|
250
|
+
"rounded-t": {
|
|
251
|
+
"rounded-t": string[];
|
|
252
|
+
}[];
|
|
253
|
+
"rounded-r": {
|
|
254
|
+
"rounded-r": string[];
|
|
255
|
+
}[];
|
|
256
|
+
"rounded-b": {
|
|
257
|
+
"rounded-b": string[];
|
|
258
|
+
}[];
|
|
259
|
+
"rounded-l": {
|
|
260
|
+
"rounded-l": string[];
|
|
261
|
+
}[];
|
|
262
|
+
"rounded-ss": {
|
|
263
|
+
"rounded-ss": string[];
|
|
264
|
+
}[];
|
|
265
|
+
"rounded-se": {
|
|
266
|
+
"rounded-se": string[];
|
|
267
|
+
}[];
|
|
268
|
+
"rounded-ee": {
|
|
269
|
+
"rounded-ee": string[];
|
|
270
|
+
}[];
|
|
271
|
+
"rounded-es": {
|
|
272
|
+
"rounded-es": string[];
|
|
273
|
+
}[];
|
|
274
|
+
"rounded-tl": {
|
|
275
|
+
"rounded-tl": string[];
|
|
276
|
+
}[];
|
|
277
|
+
"rounded-tr": {
|
|
278
|
+
"rounded-tr": string[];
|
|
279
|
+
}[];
|
|
280
|
+
"rounded-br": {
|
|
281
|
+
"rounded-br": string[];
|
|
282
|
+
}[];
|
|
283
|
+
"rounded-bl": {
|
|
284
|
+
"rounded-bl": string[];
|
|
285
|
+
}[];
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
export namespace DEFAULT_SVGO_CONFIG {
|
|
290
|
+
let plugins: {
|
|
291
|
+
name: string;
|
|
292
|
+
params: {
|
|
293
|
+
overrides: {
|
|
294
|
+
convertColors: {
|
|
295
|
+
currentColor: boolean;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
}[];
|
|
300
|
+
}
|
|
301
|
+
export const INTERNAL_ENV: "internal";
|
|
302
|
+
export const STORYBOOK_ENV: "storybook";
|
|
303
|
+
export const NUXT_MODULE_ENV: "nuxt-module";
|
|
304
|
+
export const VUELESS_LIBRARY: "vueless";
|
|
305
|
+
export const INTERNAL_ICONS_LIBRARY: "internal";
|
|
306
|
+
export const STORYBOOK_ICONS_LIBRARY: "storybook";
|
|
307
|
+
export const CACHE_DIR: ".cache";
|
|
308
|
+
export const NODE_MODULES_DIR: "node_modules";
|
|
309
|
+
export const VUELESS_PACKAGE_DIR: "node_modules/vueless";
|
|
310
|
+
export const VUELESS_CACHE_DIR: "node_modules/.cache/vueless";
|
|
311
|
+
export const VUELESS_LOCAL_DIR: "src";
|
|
312
|
+
export const ICONS_DIR: "icons";
|
|
313
|
+
export const ICONS_VUELESS_DIR: "node_modules/vueless/icons";
|
|
314
|
+
export const ICONS_CACHED_DIR: "node_modules/.cache/vueless/icons";
|
|
315
|
+
export const ICONS_VIRTUAL_MODULE_ID: "virtual:vueless/icons";
|
|
316
|
+
export const RESOLVED_ICONS_VIRTUAL_MODULE_ID: "\0virtual:vueless/icons";
|
|
317
|
+
export const VUELESS_TAILWIND_SAFELIST: "node_modules/.cache/vueless/tailwind/safelist.txt";
|
|
318
|
+
export const VUELESS_CONFIGS_CACHED_DIR: "node_modules/.cache/vueless/configs";
|
|
319
|
+
export const VUELESS_MERGED_CONFIGS_CACHED_DIR: "node_modules/.cache/vueless/mergedConfigs";
|
|
320
|
+
export const VUELESS_CONFIG_FILE_NAME: "vueless.config";
|
|
321
|
+
export const CONFIG_INDEX_FILE_NAME: "index";
|
|
322
|
+
export const VUELESS_CONFIG_DIR: ".vueless";
|
|
323
|
+
export const DEFAULT_EXIT_CODE: 0;
|
|
324
|
+
export const FAILURE_CODE: 1;
|
|
325
|
+
export const PX_IN_REM: 16;
|
|
326
|
+
export const NESTED_COMPONENT_PATTERN_REG_EXP: RegExp;
|
|
327
|
+
export const EXTENDS_PATTERN_REG_EXP: RegExp;
|
|
328
|
+
export const DYNAMIC_COLOR_PATTERN: "{color}";
|
|
329
|
+
export const JAVASCRIPT_EXT: ".js";
|
|
330
|
+
export const TYPESCRIPT_EXT: ".ts";
|
|
331
|
+
export const VUE_EXT: ".vue";
|
|
332
|
+
export const SUPPRESS_TS_CHECK: "/* eslint-disable */\n// @ts-nocheck";
|
|
333
|
+
export const COMPONENTS_INDEX_COMMENT: "/**\n * \u26A0\uFE0F This file is auto-generated \u2014 do not edit it manually.\n * It gets updated automatically whenever the Vite server restarts.\n *\n * This file imports all config files from the current directory and subdirectories.\n * Only files following the naming pattern \"U[Component].[ts|js]\" will be included.\n * Example: \"UButton.ts\"\n */";
|
|
334
|
+
export const COMPONENTS_INDEX_EXPORT: "export const componentConfigs = {};";
|
package/constants.js
CHANGED
|
@@ -226,6 +226,12 @@ export const SYSTEM_CONFIG_KEY = {
|
|
|
226
226
|
/* UIcon non-props defaults */
|
|
227
227
|
export const ICON_NON_PROPS_DEFAULTS = ["library", "path", "style", "weight"];
|
|
228
228
|
|
|
229
|
+
/* Directive to folder mapping. */
|
|
230
|
+
export const DIRECTIVES = {
|
|
231
|
+
vTooltip: "v.tooltip",
|
|
232
|
+
vClickOutside: "v.click-outside",
|
|
233
|
+
};
|
|
234
|
+
|
|
229
235
|
/* Component to folder mapping. */
|
|
230
236
|
export const COMPONENTS = {
|
|
231
237
|
/* Buttons & Links */
|
|
@@ -380,9 +386,10 @@ export const VUELESS_LIBRARY = "vueless";
|
|
|
380
386
|
export const INTERNAL_ICONS_LIBRARY = "internal";
|
|
381
387
|
export const STORYBOOK_ICONS_LIBRARY = "storybook";
|
|
382
388
|
|
|
389
|
+
export const CACHE_DIR = ".cache";
|
|
383
390
|
export const NODE_MODULES_DIR = "node_modules";
|
|
384
391
|
export const VUELESS_PACKAGE_DIR = `${NODE_MODULES_DIR}/vueless`;
|
|
385
|
-
export const VUELESS_CACHE_DIR = `${NODE_MODULES_DIR}
|
|
392
|
+
export const VUELESS_CACHE_DIR = `${NODE_MODULES_DIR}/${CACHE_DIR}/vueless`;
|
|
386
393
|
export const VUELESS_LOCAL_DIR = "src";
|
|
387
394
|
export const ICONS_DIR = "icons";
|
|
388
395
|
export const ICONS_VUELESS_DIR = `${VUELESS_PACKAGE_DIR}/${ICONS_DIR}`;
|
|
@@ -396,6 +403,7 @@ export const VUELESS_CONFIGS_CACHED_DIR = `${VUELESS_CACHE_DIR}/configs`;
|
|
|
396
403
|
export const VUELESS_MERGED_CONFIGS_CACHED_DIR = `${VUELESS_CACHE_DIR}/mergedConfigs`;
|
|
397
404
|
export const VUELESS_CONFIG_FILE_NAME = "vueless.config";
|
|
398
405
|
export const CONFIG_INDEX_FILE_NAME = "index";
|
|
406
|
+
export const VUELESS_CONFIG_DIR = ".vueless";
|
|
399
407
|
|
|
400
408
|
/* System error codes */
|
|
401
409
|
export const DEFAULT_EXIT_CODE = 0;
|
|
@@ -409,3 +417,17 @@ export const DYNAMIC_COLOR_PATTERN = "{color}";
|
|
|
409
417
|
export const JAVASCRIPT_EXT = ".js";
|
|
410
418
|
export const TYPESCRIPT_EXT = ".ts";
|
|
411
419
|
export const VUE_EXT = ".vue";
|
|
420
|
+
|
|
421
|
+
export const SUPPRESS_TS_CHECK = `/* eslint-disable */
|
|
422
|
+
// @ts-nocheck`;
|
|
423
|
+
|
|
424
|
+
export const COMPONENTS_INDEX_COMMENT = `/**
|
|
425
|
+
* ⚠️ This file is auto-generated — do not edit it manually.
|
|
426
|
+
* It gets updated automatically whenever the Vite server restarts.
|
|
427
|
+
*
|
|
428
|
+
* This file imports all config files from the current directory and subdirectories.
|
|
429
|
+
* Only files following the naming pattern "U[Component].[ts|js]" will be included.
|
|
430
|
+
* Example: "UButton.ts"
|
|
431
|
+
*/`;
|
|
432
|
+
|
|
433
|
+
export const COMPONENTS_INDEX_EXPORT = `export const componentConfigs = {};`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M561.76-524.48h264.17v-184.09H561.76v184.09Zm133.09-37L590.33-640v-40l103.52 78.52L797.37-680v40l-102.52 78.52ZM68.37-117.37q-27.7 0-48.03-20.27Q0-157.9 0-185.5v-589q0-27.6 20.34-47.86 20.33-20.27 48.03-20.27h823.5q27.35 0 47.74 20.27Q960-802.1 960-774.5v589q0 27.6-20.39 47.86-20.39 20.27-47.74 20.27H68.37Zm528.13-65.26h298v-594.74h-829v594.74h7q44-68.76 112.5-108.88 68.5-40.12 149.5-40.12 81.24 0 149.62 40.12 68.38 40.12 112.38 108.88Zm-262.48-218.8q50.76 0 85.98-35.36 35.22-35.36 35.22-85.96 0-50.6-35.21-85.96-35.21-35.36-85.96-35.36-50.75 0-86.1 35.34-35.36 35.34-35.36 86.1 0 50.48 35.34 85.84 35.33 35.36 86.09 35.36Zm-178.58 218.8h357.17q-34.91-39.6-81.43-61.67-46.53-22.07-97.15-22.07-50.62 0-97.08 22.07-46.47 22.06-81.51 61.67Zm178.58-281.44q-24.79 0-41.79-16.93-17.01-16.94-17.01-41.75 0-24.91 17-41.8 17.01-16.88 41.8-16.88 24.78 0 41.68 16.9 16.89 16.91 16.89 41.9 0 24.78-16.94 41.67t-41.63 16.89ZM480-480Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M280-234.5q-102.07 0-173.79-71.73Q34.5-377.96 34.5-480.06q0-102.09 71.71-173.77Q177.93-725.5 280-725.5q80.63 0 135.45 39.05 54.81 39.06 80.33 100.82H925.5v211.26h-106v137H628v-137H495.73q-25.47 61.76-80.28 100.82Q360.63-234.5 280-234.5Zm0-65.5q72.2 0 117.82-48.2 45.61-48.19 52.61-91.43H697.5v137H754v-137h106v-80.74H450.48q-7.05-43.24-52.66-91.43Q352.2-660 280-660q-75 0-127.5 52.5T100-480q0 75 52.5 127.5T280-300Zm-.06-109.37q30.26 0 50.47-20.28 20.22-20.27 20.22-50.29 0-30.26-20.16-50.47-20.16-20.22-50.41-20.22-30.02 0-50.35 20.16-20.34 20.16-20.34 50.41 0 30.02 20.28 50.35 20.27 20.34 50.29 20.34ZM280-480Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M118.37-471.57v-62.86H247v62.86H118.37Zm115.2 232.68-41.68-41.68 89.68-89.91 41.91 41.91-89.91 89.68Zm48-399.63-89.68-89.91 41.68-41.92 89.91 89.92-41.91 41.91Zm469.19 494.11L559.17-335.76l-45.43 139.83-107.83-373.16 364.92 114.83L629-403.83l190.59 190.59-68.83 68.83ZM435.57-714v-128.63h62.86V-714h-62.86Zm216.86 75.48-41.91-41.91 89.91-89.92 41.92 41.92-89.92 89.91Z"/></svg>
|
package/index.d.ts
CHANGED
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
import type { App } from "vue";
|
|
2
|
-
import type { CreateVuelessOptions } from "./types
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { CreateVuelessOptions } from "./types";
|
|
3
|
+
|
|
4
|
+
/* eslint-disable prettier/prettier */
|
|
5
|
+
/* utils */
|
|
5
6
|
export {
|
|
6
7
|
isSSR,
|
|
7
8
|
isCSR,
|
|
8
|
-
getRandomId,
|
|
9
9
|
setTitle,
|
|
10
|
+
getRandomId,
|
|
11
|
+
getCookie,
|
|
12
|
+
setCookie,
|
|
13
|
+
deleteCookie,
|
|
10
14
|
createDebounce,
|
|
11
|
-
hasSlotContent
|
|
12
|
-
} from "./utils/helper
|
|
13
|
-
export {
|
|
14
|
-
export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows } from "./utils/platform
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
export { default as
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
15
|
+
hasSlotContent
|
|
16
|
+
} from "./utils/helper";
|
|
17
|
+
export { getStored, setTheme, cssVar } from "./utils/theme";
|
|
18
|
+
export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows } from "./utils/platform";
|
|
19
|
+
export { cx, cva, compose, getDefaults, setVuelessConfig, setColor, vuelessConfig } from "./utils/ui";
|
|
20
|
+
export { getArgTypes, getSlotNames, getSlotsFragment, getSource, getDocsDescription } from "./utils/storybook";
|
|
21
|
+
/* adapters */
|
|
22
|
+
export { default as defaultEnLocale } from "./adapter.locale/locales/en";
|
|
23
|
+
export { createVuelessAdapter } from "./adapter.locale/vueless";
|
|
24
|
+
export { createVueI18nAdapter } from "./adapter.locale/vue-i18n";
|
|
25
|
+
/* composables */
|
|
26
|
+
export { useLocale } from "./composables/useLocale";
|
|
27
|
+
export { default as useUI } from "./composables/useUI";
|
|
28
|
+
export { useDarkMode } from "./composables/useDarkMode";
|
|
29
|
+
export { useLoaderProgress } from "./ui.loader-progress/useLoaderProgress";
|
|
30
|
+
export { useMutationObserver } from "./composables/useMutationObserver";
|
|
31
|
+
/* loaders */
|
|
32
|
+
export { loaderProgressOn, loaderProgressOff } from "./ui.loader-progress/utilLoaderProgress";
|
|
33
|
+
export { useLoaderOverlay } from "./ui.loader-overlay/useLoaderOverlay";
|
|
34
|
+
export { loaderOverlayOn, loaderOverlayOff } from "./ui.loader-overlay/utilLoaderOverlay";
|
|
35
|
+
/* notifications */
|
|
24
36
|
export {
|
|
25
37
|
notify,
|
|
26
38
|
notifySuccess,
|
|
@@ -29,7 +41,130 @@ export {
|
|
|
29
41
|
clearNotifications,
|
|
30
42
|
setDelayedNotify,
|
|
31
43
|
getDelayedNotify,
|
|
32
|
-
} from "./ui.text-notify/utilNotify
|
|
44
|
+
} from "./ui.text-notify/utilNotify";
|
|
45
|
+
export { NotificationType, NotificationPosition, NotificationDuration } from "./ui.text-notify/constants";
|
|
46
|
+
/* directives */
|
|
47
|
+
export { default as vTooltip } from "./v.tooltip/vTooltip";
|
|
48
|
+
export { default as vClickOutside } from "./v.click-outside/vClickOutside";
|
|
49
|
+
/* components */
|
|
50
|
+
/* Buttons & Links */
|
|
51
|
+
export { default as UButton } from "./ui.button/UButton.vue";
|
|
52
|
+
export { default as ULink } from "./ui.button-link/ULink.vue";
|
|
53
|
+
export { default as UToggle } from "./ui.button-toggle/UToggle.vue";
|
|
54
|
+
/* Dropdowns */
|
|
55
|
+
export { default as UDropdownButton } from "./ui.dropdown-button/UDropdownButton.vue";
|
|
56
|
+
export { default as UDropdownBadge } from "./ui.dropdown-badge/UDropdownBadge.vue";
|
|
57
|
+
export { default as UDropdownLink } from "./ui.dropdown-link/UDropdownLink.vue";
|
|
58
|
+
/* Form Inputs & Controls */
|
|
59
|
+
export { default as UInput } from "./ui.form-input/UInput.vue";
|
|
60
|
+
export { default as UInputFile } from "./ui.form-input-file/UInputFile.vue";
|
|
61
|
+
export { default as UInputNumber } from "./ui.form-input-number/UInputNumber.vue";
|
|
62
|
+
export { default as UInputCounter } from "./ui.form-input-counter/UInputCounter.vue";
|
|
63
|
+
export { default as UInputPassword } from "./ui.form-input-password/UInputPassword.vue";
|
|
64
|
+
export { default as UInputRating } from "./ui.form-input-rating/UInputRating.vue";
|
|
65
|
+
export { default as UInputSearch } from "./ui.form-input-search/UInputSearch.vue";
|
|
66
|
+
export { default as UTextarea } from "./ui.form-textarea/UTextarea.vue";
|
|
67
|
+
export { default as USelect } from "./ui.form-select/USelect.vue";
|
|
68
|
+
export { default as UListbox } from "./ui.form-listbox/UListbox.vue";
|
|
69
|
+
export { default as UCheckbox } from "./ui.form-checkbox/UCheckbox.vue";
|
|
70
|
+
export { default as UCheckboxGroup } from "./ui.form-checkbox-group/UCheckboxGroup.vue";
|
|
71
|
+
export { default as UCheckboxMultiState } from "./ui.form-checkbox-multi-state/UCheckboxMultiState.vue";
|
|
72
|
+
export { default as USwitch } from "./ui.form-switch/USwitch.vue";
|
|
73
|
+
export { default as URadio } from "./ui.form-radio/URadio.vue";
|
|
74
|
+
export { default as URadioGroup } from "./ui.form-radio-group/URadioGroup.vue";
|
|
75
|
+
export { default as UCalendar } from "./ui.form-calendar/UCalendar.vue";
|
|
76
|
+
export { default as UDatePicker } from "./ui.form-date-picker/UDatePicker.vue";
|
|
77
|
+
export { default as UDatePickerRange } from "./ui.form-date-picker-range/UDatePickerRange.vue";
|
|
78
|
+
export { default as UColorPicker } from "./ui.form-color-picker/UColorPicker.vue";
|
|
79
|
+
export { default as ULabel } from "./ui.form-label/ULabel.vue";
|
|
80
|
+
/* Text & Content */
|
|
81
|
+
export { default as UHeader } from "./ui.text-header/UHeader.vue";
|
|
82
|
+
export { default as UText } from "./ui.text-block/UText.vue";
|
|
83
|
+
export { default as UAlert } from "./ui.text-alert/UAlert.vue";
|
|
84
|
+
export { default as UNotify } from "./ui.text-notify/UNotify.vue";
|
|
85
|
+
export { default as UNumber } from "./ui.text-number/UNumber.vue";
|
|
86
|
+
export { default as UFile } from "./ui.text-file/UFile.vue";
|
|
87
|
+
export { default as UFiles } from "./ui.text-files/UFiles.vue";
|
|
88
|
+
export { default as UEmpty } from "./ui.text-empty/UEmpty.vue";
|
|
89
|
+
export { default as UBadge } from "./ui.text-badge/UBadge.vue";
|
|
90
|
+
/* Containers */
|
|
91
|
+
export { default as UDivider } from "./ui.container-divider/UDivider.vue";
|
|
92
|
+
export { default as UCol } from "./ui.container-col/UCol.vue";
|
|
93
|
+
export { default as URow } from "./ui.container-row/URow.vue";
|
|
94
|
+
export { default as UGroup } from "./ui.container-group/UGroup.vue";
|
|
95
|
+
export { default as UGroups } from "./ui.container-groups/UGroups.vue";
|
|
96
|
+
export { default as UAccordion } from "./ui.container-accordion/UAccordion.vue";
|
|
97
|
+
export { default as UCard } from "./ui.container-card/UCard.vue";
|
|
98
|
+
export { default as UModal } from "./ui.container-modal/UModal.vue";
|
|
99
|
+
export { default as UModalConfirm } from "./ui.container-modal-confirm/UModalConfirm.vue";
|
|
100
|
+
export { default as UPage } from "./ui.container-page/UPage.vue";
|
|
101
|
+
/* Images and Icons */
|
|
102
|
+
export { default as UIcon } from "./ui.image-icon/UIcon.vue";
|
|
103
|
+
export { default as UAvatar } from "./ui.image-avatar/UAvatar.vue";
|
|
104
|
+
/* Data */
|
|
105
|
+
export { default as UTable } from "./ui.data-table/UTable.vue";
|
|
106
|
+
export { default as UDataList } from "./ui.data-list/UDataList.vue";
|
|
107
|
+
/* Navigation */
|
|
108
|
+
export { default as UTab } from "./ui.navigation-tab/UTab.vue";
|
|
109
|
+
export { default as UTabs } from "./ui.navigation-tabs/UTabs.vue";
|
|
110
|
+
export { default as UProgress } from "./ui.navigation-progress/UProgress.vue";
|
|
111
|
+
export { default as UPagination } from "./ui.navigation-pagination/UPagination.vue";
|
|
112
|
+
export { default as UBreadcrumbs } from "./ui.navigation-breadcrumbs/UBreadcrumbs.vue";
|
|
113
|
+
/* Loaders and Skeletons */
|
|
114
|
+
export { default as ULoader } from "./ui.loader/ULoader.vue";
|
|
115
|
+
export { default as ULoaderProgress } from "./ui.loader-progress/ULoaderProgress.vue";
|
|
116
|
+
export { default as ULoaderOverlay } from "./ui.loader-overlay/ULoaderOverlay.vue";
|
|
117
|
+
export { default as USkeleton } from "./ui.skeleton/USkeleton.vue";
|
|
118
|
+
export { default as USkeletonText } from "./ui.skeleton-text/USkeletonText.vue";
|
|
119
|
+
export { default as USkeletonInput } from "./ui.skeleton-input/USkeletonInput.vue";
|
|
120
|
+
export { default as USkeletonChoice } from "./ui.skeleton-choice/USkeletonChoice.vue";
|
|
121
|
+
/* Other */
|
|
122
|
+
export { default as UDot } from "./ui.other-dot/UDot.vue";
|
|
123
|
+
export { default as UChip } from "./ui.other-chip/UChip.vue";
|
|
124
|
+
export { default as UThemeColorToggle } from "./ui.other-theme-color-toggle/UThemeColorToggle.vue";
|
|
125
|
+
/* eslint-enable prettier/prettier */
|
|
126
|
+
|
|
127
|
+
/* types */
|
|
128
|
+
export type {
|
|
129
|
+
/* Core configuration types */
|
|
130
|
+
Config,
|
|
131
|
+
ThemeConfig,
|
|
132
|
+
ThemeConfigText,
|
|
133
|
+
ThemeConfigRounding,
|
|
134
|
+
ThemeConfigOutline,
|
|
135
|
+
NestedComponent,
|
|
136
|
+
ComponentConfig,
|
|
137
|
+
ComponentDefaults,
|
|
138
|
+
CreateVuelessOptions,
|
|
139
|
+
/* Color and theme types */
|
|
140
|
+
StateColors,
|
|
141
|
+
PrimaryColors,
|
|
142
|
+
NeutralColors,
|
|
143
|
+
VuelessCssVariables,
|
|
144
|
+
/* Component and Directive types */
|
|
145
|
+
Directives,
|
|
146
|
+
Components,
|
|
147
|
+
ComponentNames,
|
|
148
|
+
/* Utility types */
|
|
149
|
+
UnknownType,
|
|
150
|
+
UnknownArray,
|
|
151
|
+
UnknownObject,
|
|
152
|
+
CVACompoundVariants,
|
|
153
|
+
CVA,
|
|
154
|
+
/* Vue component utility types */
|
|
155
|
+
ComponentType,
|
|
156
|
+
ComponentProps,
|
|
157
|
+
ComponentSlots,
|
|
158
|
+
ComponentEmit,
|
|
159
|
+
ComponentExposed,
|
|
160
|
+
/* Locale types */
|
|
161
|
+
LocaleOptions,
|
|
162
|
+
LocaleInstance,
|
|
163
|
+
LocaleMessages,
|
|
164
|
+
} from "./types";
|
|
165
|
+
/* Export enums directly (not as types) */
|
|
166
|
+
export { ColorMode } from "./types";
|
|
167
|
+
|
|
33
168
|
export declare function createVueless(options?: CreateVuelessOptions): {
|
|
34
169
|
install: (app: App) => void;
|
|
35
170
|
};
|