vueless 0.0.328 → 0.0.329
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/adatper.locale/locales/en.js +11 -11
- package/adatper.locale/vueless.js +1 -1
- package/{composable.ui/index.js → composables/useUI.js} +3 -3
- package/{directive.tooltip/index.js → directives/vTooltip.js} +2 -2
- package/index.js +14 -14
- package/package.json +3 -3
- package/preset.tailwind.js +120 -2
- package/ui.button/{index.vue → UButton.vue} +7 -8
- package/{ui.button-toggle → ui.button/storybook}/Docs.mdx +3 -3
- package/ui.button/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-link/{index.vue → ULink.vue} +5 -6
- package/{ui.button-toggle-item → ui.button-link/storybook}/Docs.mdx +3 -3
- package/ui.button-link/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button-link/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-toggle/{index.vue → UToggle.vue} +7 -8
- package/{ui.button → ui.button-toggle/storybook}/Docs.mdx +3 -3
- package/ui.button-toggle/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.button-toggle/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.button-toggle-item/{index.vue → UToggleItem.vue} +6 -7
- package/ui.button-toggle-item/{configs/default.config.js → config.js} +3 -3
- package/{ui.button-link → ui.button-toggle-item/storybook}/Docs.mdx +3 -3
- package/ui.button-toggle-item/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.button-toggle-item/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-accordion/{index.vue → UAccordion.vue} +7 -8
- package/ui.container-accordion/storybook/Docs.mdx +16 -0
- package/ui.container-accordion/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.container-accordion/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-card/{index.vue → UCard.vue} +8 -9
- package/ui.container-card/storybook/Docs.mdx +16 -0
- package/ui.container-card/{index.stories.js → storybook/stories.js} +9 -9
- package/ui.container-card/{composable/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-col/{index.vue → UCol.vue} +5 -6
- package/ui.container-col/storybook/Docs.mdx +16 -0
- package/ui.container-col/{index.stories.js → storybook/stories.js} +6 -6
- package/{ui.form-input-number/composables/attrs.composable.js → ui.container-col/useAttrs.js} +3 -3
- package/ui.container-divider/{index.vue → UDivider.vue} +5 -6
- package/ui.container-divider/storybook/Docs.mdx +16 -0
- package/ui.container-divider/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.container-divider/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-group/{index.vue → UGroup.vue} +7 -8
- package/ui.container-group/storybook/Docs.mdx +16 -0
- package/ui.container-group/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.navigation-tabs/composables/attrs.composable.js → ui.container-group/useAttrs.js} +3 -3
- package/ui.container-modal/{index.vue → UModal.vue} +9 -10
- package/ui.container-modal/storybook/Docs.mdx +16 -0
- package/ui.container-modal/{index.stories.js → storybook/stories.js} +10 -10
- package/ui.container-modal/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.container-modal-confirm/{index.vue → UModalConfirm.vue} +8 -9
- package/ui.container-modal-confirm/storybook/Docs.mdx +16 -0
- package/ui.container-modal-confirm/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.container-modal-confirm/{composable/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.container-page/{index.vue → UPage.vue} +9 -10
- package/ui.container-page/storybook/Docs.mdx +16 -0
- package/ui.container-page/{index.stories.js → storybook/stories.js} +11 -11
- package/ui.container-page/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.container-row/{index.vue → URow.vue} +5 -6
- package/ui.container-row/storybook/Docs.mdx +16 -0
- package/ui.container-row/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.form-checkbox-group/composables/attrs.composable.js → ui.container-row/useAttrs.js} +3 -3
- package/ui.data-list/{index.vue → UDataList.vue} +11 -12
- package/ui.data-list/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.data-list/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.data-list/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.data-table/{components/TableRow.vue → TableRow.vue} +12 -5
- package/ui.data-table/{index.vue → UTable.vue} +14 -15
- package/ui.data-table/storybook/Docs.mdx +16 -0
- package/ui.data-table/{index.stories.js → storybook/stories.js} +11 -11
- package/ui.data-table/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-badge/{index.vue → UDropdownBadge.vue} +9 -10
- package/ui.dropdown-badge/storybook/Docs.mdx +16 -0
- package/ui.dropdown-badge/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.dropdown-badge/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-button/{index.vue → UDropdownButton.vue} +9 -10
- package/ui.dropdown-button/storybook/Docs.mdx +16 -0
- package/ui.dropdown-button/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.dropdown-button/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-link/{index.vue → UDropdownLink.vue} +9 -10
- package/ui.dropdown-link/storybook/Docs.mdx +16 -0
- package/ui.dropdown-link/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.dropdown-link/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.dropdown-list/{index.vue → UDropdownList.vue} +10 -11
- package/ui.dropdown-list/{configs/default.config.js → config.js} +2 -1
- package/ui.dropdown-list/storybook/Docs.mdx +16 -0
- package/ui.dropdown-list/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.dropdown-list/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-calendar/{index.vue → UCalendar.vue} +12 -18
- package/ui.form-calendar/{components/DayView.vue → UCalendarDayView.vue} +5 -5
- package/ui.form-calendar/{components/MonthView.vue → UCalendarMonthView.vue} +6 -6
- package/ui.form-calendar/{components/YearView.vue → UCalendarYearView.vue} +6 -6
- package/ui.form-calendar/{configs/default.config.js → config.js} +4 -1
- package/ui.form-calendar/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-calendar/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.form-calendar/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-calendar/{services/calendar.service.js → utilCalendar.js} +3 -3
- package/ui.form-calendar/{services/date.service.js → utilDate.js} +1 -1
- package/ui.form-checkbox/{index.vue → UCheckbox.vue} +7 -8
- package/ui.form-checkbox/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-checkbox/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-checkbox-group/{index.vue → UCheckboxGroup.vue} +7 -8
- package/ui.form-checkbox-group/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox-group/{index.stories.js → storybook/stories.js} +8 -8
- package/{ui.container-row/composables/attrs.composable.js → ui.form-checkbox-group/useAttrs.js} +3 -3
- package/ui.form-checkbox-multi-state/{index.vue → UCheckboxMultiState.vue} +6 -7
- package/ui.form-checkbox-multi-state/storybook/Docs.mdx +16 -0
- package/ui.form-checkbox-multi-state/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-checkbox-multi-state/{composables/attrs.composable.js → useAttrs.js} +7 -7
- package/ui.form-color-picker/{index.vue → UColorPicker.vue} +8 -9
- package/ui.form-color-picker/storybook/Docs.mdx +16 -0
- package/ui.form-color-picker/{index.stories.js → storybook/stories.js} +6 -5
- package/ui.form-color-picker/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-date-picker/{index.vue → UDatePicker.vue} +11 -12
- package/ui.form-date-picker/index.js +5 -0
- package/ui.form-date-picker/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-date-picker/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-date-picker/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.form-date-picker-range/{index.vue → UDatePickerRange.vue} +18 -27
- package/ui.form-date-picker-range/{configs/default.config.js → config.js} +4 -1
- package/ui.form-date-picker-range/storybook/Docs.mdx +16 -0
- package/ui.form-date-picker-range/{index.stories.js → storybook/stories.js} +34 -34
- package/ui.form-date-picker-range/{composables/attrs.composable.js → useAttrs.js} +4 -4
- package/ui.form-date-picker-range/{services/dateRange.service.js → utilDateRange.js} +1 -1
- package/ui.form-date-picker-range/{services/validation.service.js → utilValidation.js} +1 -1
- package/ui.form-input/{index.vue → UInput.vue} +7 -8
- package/ui.form-input/{configs/default.config.js → config.js} +2 -2
- package/ui.form-input/storybook/Docs.mdx +16 -0
- package/ui.form-input/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-input/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-file/{index.vue → UInputFile.vue} +11 -12
- package/ui.form-input-file/storybook/Docs.mdx +16 -0
- package/ui.form-input-file/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-input-file/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-money/{index.vue → UMoney.vue} +21 -13
- package/ui.form-input-money/{configs/default.config.js → config.js} +2 -1
- package/ui.form-input-money/storybook/Docs.mdx +16 -0
- package/ui.form-input-money/{index.stories.js → storybook/stories.js} +12 -9
- package/ui.form-input-money/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-money/{composables/useFormatCurrency.js → useFormatCurrency.js} +1 -1
- package/ui.form-input-money/{services/format.service.js → utilFormat.js} +12 -4
- package/ui.form-input-number/{index.vue → UInputNumber.vue} +7 -8
- package/ui.form-input-number/storybook/Docs.mdx +16 -0
- package/ui.form-input-number/{index.stories.js → storybook/stories.js} +5 -5
- package/{ui.container-col/composables/attrs.composable.js → ui.form-input-number/useAttrs.js} +3 -3
- package/ui.form-input-rating/{index.vue → UInputRating.vue} +7 -8
- package/ui.form-input-rating/storybook/Docs.mdx +16 -0
- package/ui.form-input-rating/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-input-rating/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-input-search/{index.vue → UInputSearch.vue} +11 -12
- package/ui.form-input-search/storybook/Docs.mdx +16 -0
- package/ui.form-input-search/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-input-search/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-label/{index.vue → ULabel.vue} +5 -6
- package/ui.form-label/storybook/Docs.mdx +16 -0
- package/ui.form-label/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-label/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-radio/{index.vue → URadio.vue} +6 -7
- package/ui.form-radio/storybook/Docs.mdx +16 -0
- package/ui.form-radio/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.form-radio/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-radio-group/{index.vue → URadioGroup.vue} +7 -8
- package/ui.form-radio-group/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.form-radio-group/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.form-radio-group/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-select/{index.vue → USelect.vue} +11 -12
- package/ui.form-select/storybook/Docs.mdx +16 -0
- package/ui.form-select/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.form-select/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-switch/{index.vue → USwitch.vue} +8 -9
- package/ui.form-switch/{configs/default.config.js → config.js} +15 -3
- package/ui.form-switch/storybook/Docs.mdx +16 -0
- package/ui.form-switch/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-switch/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.form-switch/{services/variant.service.js → utilVariant.js} +1 -1
- package/ui.form-textarea/{index.vue → UTextarea.vue} +6 -7
- package/ui.form-textarea/{configs/default.config.js → config.js} +4 -3
- package/ui.form-textarea/storybook/Docs.mdx +16 -0
- package/ui.form-textarea/{index.stories.js → storybook/stories.js} +6 -6
- package/ui.form-textarea/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.image-avatar/{index.vue → UAvatar.vue} +6 -7
- package/ui.image-avatar/storybook/Docs.mdx +16 -0
- package/ui.image-avatar/{index.stories.js → storybook/stories.js} +7 -7
- package/{ui.image-icon/composables/attrs.composable.js → ui.image-avatar/useAttrs.js} +3 -3
- package/ui.image-icon/{index.vue → UIcon.vue} +6 -10
- package/ui.image-icon/storybook/Docs.mdx +16 -0
- package/ui.image-icon/{index.stories.js → storybook/stories.js} +5 -5
- package/{ui.loader-top/composables/attrs.composable.js → ui.image-icon/useAttrs.js} +3 -3
- package/ui.loader/{index.vue → ULoader.vue} +5 -6
- package/ui.loader/storybook/Docs.mdx +16 -0
- package/ui.loader/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.loader/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.loader-rendering/{index.vue → ULoaderRendering.vue} +7 -8
- package/ui.loader-rendering/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.loader-rendering/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.loader-rendering/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.loader-top/{index.vue → ULoaderTop.vue} +8 -9
- package/ui.loader-top/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.loader-top/{index.stories.js → storybook/stories.js} +10 -10
- package/{ui.image-avatar/composables/attrs.composable.js → ui.loader-top/useAttrs.js} +3 -3
- package/ui.loader-top/{composables/useLoaderTop.js → useLoaderTop.js} +1 -1
- package/ui.navigation-pagination/{index.vue → UPagination.vue} +7 -8
- package/ui.navigation-pagination/storybook/Docs.mdx +16 -0
- package/ui.navigation-pagination/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.navigation-pagination/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-progress/{components/StepperProgress.vue → StepperProgress.vue} +2 -2
- package/ui.navigation-progress/{index.vue → UProgress.vue} +7 -8
- package/ui.navigation-progress/{configs/default.config.js → config.js} +4 -1
- package/ui.navigation-progress/storybook/Docs.mdx +16 -0
- package/ui.navigation-progress/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.navigation-progress/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-tab/{index.vue → UTab.vue} +5 -6
- package/ui.navigation-tab/storybook/Docs.mdx +16 -0
- package/ui.navigation-tab/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.navigation-tab/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.navigation-tabs/{index.vue → UTabs.vue} +6 -7
- package/ui.navigation-tabs/storybook/Docs.mdx +16 -0
- package/ui.navigation-tabs/{index.stories.js → storybook/stories.js} +4 -4
- package/{ui.container-group/composables/attrs.composable.js → ui.navigation-tabs/useAttrs.js} +3 -3
- package/ui.other-dot/{index.vue → UDot.vue} +5 -6
- package/ui.other-dot/storybook/Docs.mdx +16 -0
- package/ui.other-dot/{index.stories.js → storybook/stories.js} +8 -9
- package/ui.other-dot/useAttrs.js +38 -0
- package/ui.text-alert/{index.vue → UAlert.vue} +8 -9
- package/ui.text-alert/storybook/Docs.mdx +16 -0
- package/ui.text-alert/{index.stories.js → storybook/stories.js} +8 -8
- package/ui.text-alert/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-badge/{index.vue → UBadge.vue} +6 -7
- package/ui.text-badge/storybook/Docs.mdx +16 -0
- package/ui.text-badge/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-badge/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-block/{index.vue → UText.vue} +5 -6
- package/ui.text-block/storybook/Docs.mdx +16 -0
- package/ui.text-block/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.text-block/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-empty/{index.vue → UEmpty.vue} +7 -8
- package/ui.text-empty/storybook/Docs.mdx +16 -0
- package/ui.text-empty/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-empty/useAttrs.js +37 -0
- package/ui.text-file/{index.vue → UFile.vue} +7 -8
- package/ui.text-file/storybook/Docs.mdx +16 -0
- package/ui.text-file/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.text-file/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-files/{index.vue → UFiles.vue} +8 -9
- package/ui.text-files/storybook/Docs.mdx +16 -0
- package/ui.text-files/{index.stories.js → storybook/stories.js} +4 -4
- package/ui.text-files/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-header/{index.vue → UHeader.vue} +5 -6
- package/ui.text-header/{configs/default.config.js → config.js} +1 -1
- package/ui.text-header/storybook/Docs.mdx +16 -0
- package/ui.text-header/{index.stories.js → storybook/stories.js} +5 -5
- package/ui.text-header/useAttrs.js +38 -0
- package/ui.text-money/{index.vue → UMoney.vue} +6 -7
- package/ui.text-money/storybook/Docs.mdx +16 -0
- package/ui.text-money/{index.stories.js → storybook/stories.js} +9 -9
- package/ui.text-money/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-notify/{index.vue → UNotify.vue} +7 -8
- package/ui.text-notify/{Docs.mdx → storybook/Docs.mdx} +3 -3
- package/ui.text-notify/{index.stories.js → storybook/stories.js} +7 -7
- package/ui.text-notify/{composables/attrs.composable.js → useAttrs.js} +3 -3
- package/ui.text-notify/{services/index.js → utilNotify.js} +2 -2
- package/{service.theme/index.js → utils/utilTheme.js} +2 -2
- package/{service.ui/index.js → utils/utilUI.js} +2 -2
- package/web-types.json +702 -701
- package/preset.tailwind/index.js +0 -120
- package/ui.container-accordion/Docs.mdx +0 -16
- package/ui.container-card/Docs.mdx +0 -16
- package/ui.container-col/Docs.mdx +0 -16
- package/ui.container-divider/Docs.mdx +0 -16
- package/ui.container-group/Docs.mdx +0 -16
- package/ui.container-modal/Docs.mdx +0 -16
- package/ui.container-modal-confirm/Docs.mdx +0 -16
- package/ui.container-page/Docs.mdx +0 -16
- package/ui.container-row/Docs.mdx +0 -16
- package/ui.data-table/Docs.mdx +0 -16
- package/ui.dropdown-badge/Docs.mdx +0 -16
- package/ui.dropdown-button/Docs.mdx +0 -16
- package/ui.dropdown-link/Docs.mdx +0 -16
- package/ui.dropdown-list/Docs.mdx +0 -16
- package/ui.form-checkbox/Docs.mdx +0 -16
- package/ui.form-checkbox-group/Docs.mdx +0 -16
- package/ui.form-checkbox-multi-state/Docs.mdx +0 -16
- package/ui.form-color-picker/Docs.mdx +0 -16
- package/ui.form-date-picker-range/Docs.mdx +0 -16
- package/ui.form-input/Docs.mdx +0 -16
- package/ui.form-input-file/Docs.mdx +0 -16
- package/ui.form-input-money/Docs.mdx +0 -16
- package/ui.form-input-number/Docs.mdx +0 -16
- package/ui.form-input-rating/Docs.mdx +0 -16
- package/ui.form-input-search/Docs.mdx +0 -16
- package/ui.form-label/Docs.mdx +0 -16
- package/ui.form-radio/Docs.mdx +0 -16
- package/ui.form-select/Docs.mdx +0 -16
- package/ui.form-switch/Docs.mdx +0 -16
- package/ui.form-textarea/Docs.mdx +0 -16
- package/ui.image-avatar/Docs.mdx +0 -16
- package/ui.image-icon/Docs.mdx +0 -16
- package/ui.loader/Docs.mdx +0 -16
- package/ui.navigation-pagination/Docs.mdx +0 -16
- package/ui.navigation-progress/Docs.mdx +0 -16
- package/ui.navigation-tab/Docs.mdx +0 -16
- package/ui.navigation-tabs/Docs.mdx +0 -16
- package/ui.other-dot/Docs.mdx +0 -16
- package/ui.other-dot/composables/attrs.composable.js +0 -38
- package/ui.text-alert/Docs.mdx +0 -16
- package/ui.text-badge/Docs.mdx +0 -16
- package/ui.text-block/Docs.mdx +0 -16
- package/ui.text-empty/Docs.mdx +0 -16
- package/ui.text-empty/composables/attrs.composable.js +0 -37
- package/ui.text-file/Docs.mdx +0 -16
- package/ui.text-files/Docs.mdx +0 -16
- package/ui.text-header/Docs.mdx +0 -16
- package/ui.text-header/composables/attrs.composable.js +0 -38
- package/ui.text-money/Docs.mdx +0 -16
- /package/{composable.autoPosition/index.js → composables/useAutoPosition.js} +0 -0
- /package/{composable.breakpoint/index.js → composables/useBreakpoint.js} +0 -0
- /package/{composable.locale/index.js → composables/useLocale.js} +0 -0
- /package/{composable.mutationObserver/index.js → composables/useMutationObserver.js} +0 -0
- /package/{constants/index.js → constants.js} +0 -0
- /package/{directive.clickOutside/index.js → directives/vClickOutside.js} +0 -0
- /package/ui.button/{configs/default.config.js → config.js} +0 -0
- /package/ui.button/{constants/index.js → constants.js} +0 -0
- /package/ui.button-link/{configs/default.config.js → config.js} +0 -0
- /package/ui.button-link/{constants/index.js → constants.js} +0 -0
- /package/ui.button-toggle/{configs/default.config.js → config.js} +0 -0
- /package/ui.button-toggle/{constants/index.js → constants.js} +0 -0
- /package/ui.button-toggle-item/{constants/index.js → constants.js} +0 -0
- /package/ui.container-accordion/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-accordion/{constants/index.js → constants.js} +0 -0
- /package/ui.container-card/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-card/{constants/index.js → constants.js} +0 -0
- /package/ui.container-col/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-col/{constants/index.js → constants.js} +0 -0
- /package/ui.container-divider/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-divider/{constants/index.js → constants.js} +0 -0
- /package/ui.container-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-group/{constants/index.js → constants.js} +0 -0
- /package/ui.container-modal/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-modal/{constants/index.js → constants.js} +0 -0
- /package/ui.container-modal-confirm/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-modal-confirm/{constants/index.js → constants.js} +0 -0
- /package/ui.container-page/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-page/{constants/index.js → constants.js} +0 -0
- /package/ui.container-row/{configs/default.config.js → config.js} +0 -0
- /package/ui.container-row/{constants/index.js → constants.js} +0 -0
- /package/ui.data-list/{configs/default.config.js → config.js} +0 -0
- /package/ui.data-list/{constants/index.js → constants.js} +0 -0
- /package/ui.data-table/{configs/default.config.js → config.js} +0 -0
- /package/ui.data-table/{constants/index.js → constants.js} +0 -0
- /package/ui.data-table/{services/table.service.js → utilTable.js} +0 -0
- /package/ui.dropdown-badge/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-badge/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-button/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-button/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-link/{configs/default.config.js → config.js} +0 -0
- /package/ui.dropdown-link/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-list/{constants/index.js → constants.js} +0 -0
- /package/ui.dropdown-list/{composables/usePointer.js → usePointer.js} +0 -0
- /package/ui.form-calendar/{constants/index.js → constants.js} +0 -0
- /package/ui.form-calendar/{services/formatting.service.js → utilFormatting.js} +0 -0
- /package/ui.form-checkbox/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox/{constants/index.js → constants.js} +0 -0
- /package/ui.form-checkbox-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox-group/{constants/index.js → constants.js} +0 -0
- /package/ui.form-checkbox-multi-state/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-checkbox-multi-state/{constants/index.js → constants.js} +0 -0
- /package/ui.form-color-picker/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-color-picker/{constants/index.js → constants.js} +0 -0
- /package/ui.form-date-picker/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-date-picker/{constants/index.js → constants.js} +0 -0
- /package/ui.form-date-picker-range/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-file/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-file/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-file/{services/fileForm.service.js → utilFileForm.js} +0 -0
- /package/ui.form-input-money/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-number/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-number/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-rating/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-rating/{constants/index.js → constants.js} +0 -0
- /package/ui.form-input-search/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-input-search/{constants/index.js → constants.js} +0 -0
- /package/ui.form-label/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-label/{constants/index.js → constants.js} +0 -0
- /package/ui.form-radio/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-radio/{constants/index.js → constants.js} +0 -0
- /package/ui.form-radio-group/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-radio-group/{constants/index.js → constants.js} +0 -0
- /package/ui.form-select/{configs/default.config.js → config.js} +0 -0
- /package/ui.form-select/{constants/index.js → constants.js} +0 -0
- /package/ui.form-select/{services/select.service.js → utilSelect.js} +0 -0
- /package/ui.form-switch/{constants/index.js → constants.js} +0 -0
- /package/ui.form-textarea/{constants/index.js → constants.js} +0 -0
- /package/ui.image-avatar/{configs/default.config.js → config.js} +0 -0
- /package/ui.image-avatar/{constants/index.js → constants.js} +0 -0
- /package/ui.image-icon/{configs/default.config.js → config.js} +0 -0
- /package/ui.image-icon/{constants/index.js → constants.js} +0 -0
- /package/ui.loader/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-rendering/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader-rendering/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-rendering/{composables/useLoaderRendering.js → useLoaderRendering.js} +0 -0
- /package/ui.loader-rendering/{services/loaderRedering.service.js → utilLoaderRedering.js} +0 -0
- /package/ui.loader-top/{configs/default.config.js → config.js} +0 -0
- /package/ui.loader-top/{constants/index.js → constants.js} +0 -0
- /package/ui.loader-top/{services/loaderTop.service.js → utilLoaderTop.js} +0 -0
- /package/ui.navigation-pagination/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-pagination/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-progress/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-tab/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-tab/{constants/index.js → constants.js} +0 -0
- /package/ui.navigation-tabs/{configs/default.config.js → config.js} +0 -0
- /package/ui.navigation-tabs/{constants/index.js → constants.js} +0 -0
- /package/ui.other-dot/{configs/default.config.js → config.js} +0 -0
- /package/ui.other-dot/{constants/index.js → constants.js} +0 -0
- /package/ui.text-alert/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-alert/{constatns/index.js → constants.js} +0 -0
- /package/ui.text-badge/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-badge/{constants/index.js → constants.js} +0 -0
- /package/ui.text-block/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-block/{constatns/index.js → constants.js} +0 -0
- /package/ui.text-empty/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-empty/{constants/index.js → constants.js} +0 -0
- /package/ui.text-file/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-file/{constants/index.js → constants.js} +0 -0
- /package/ui.text-files/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-files/{constants/index.js → constants.js} +0 -0
- /package/ui.text-header/{constants/index.js → constants.js} +0 -0
- /package/ui.text-money/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-money/{constants/index.js → constants.js} +0 -0
- /package/ui.text-money/{services/money.services.js → utilMoney.js} +0 -0
- /package/ui.text-notify/{configs/default.config.js → config.js} +0 -0
- /package/ui.text-notify/{constants/index.js → constants.js} +0 -0
- /package/{service.helper/index.js → utils/utilHelper.js} +0 -0
- /package/{service.platform/index.js → utils/utilPlatform.js} +0 -0
- /package/{service.storybook/index.js → utils/utilStorybook.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import selectConfig from "../../ui.form-select/
|
|
2
|
-
import switchConfig from "../../ui.form-switch/
|
|
3
|
-
import inputFileConfig from "../../ui.form-input-file/
|
|
4
|
-
import dropdownListConfig from "../../ui.dropdown-list/
|
|
5
|
-
import modalConfirmConfig from "../../ui.container-modal-confirm/
|
|
6
|
-
import tableConfig from "../../ui.data-table/
|
|
7
|
-
import calendarConfig from "../../ui.form-calendar/
|
|
8
|
-
import datepickerConfig from "../../ui.form-date-picker/
|
|
9
|
-
import datepickerRangeConfig from "../../ui.form-date-picker-range/
|
|
10
|
-
import dataListConfig from "../../ui.data-list/
|
|
11
|
-
import notifyDefaultConfig from "../../ui.text-notify/
|
|
1
|
+
import selectConfig from "../../ui.form-select/config.js";
|
|
2
|
+
import switchConfig from "../../ui.form-switch/config.js";
|
|
3
|
+
import inputFileConfig from "../../ui.form-input-file/config.js";
|
|
4
|
+
import dropdownListConfig from "../../ui.dropdown-list/config.js";
|
|
5
|
+
import modalConfirmConfig from "../../ui.container-modal-confirm/config.js";
|
|
6
|
+
import tableConfig from "../../ui.data-table/config.js";
|
|
7
|
+
import calendarConfig from "../../ui.form-calendar/config.js";
|
|
8
|
+
import datepickerConfig from "../../ui.form-date-picker/config.js";
|
|
9
|
+
import datepickerRangeConfig from "../../ui.form-date-picker-range/config.js";
|
|
10
|
+
import dataListConfig from "../../ui.data-list/config.js";
|
|
11
|
+
import notifyDefaultConfig from "../../ui.text-notify/config.js";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
USelect: selectConfig.i18n,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
Fragment,
|
|
11
11
|
} from "vue";
|
|
12
12
|
|
|
13
|
-
import { cx, setColor, getColor, vuelessConfig } from "../
|
|
13
|
+
import { cx, setColor, getColor, vuelessConfig } from "../utils/utilUI.js";
|
|
14
14
|
|
|
15
|
-
import { cloneDeep, isCSR } from "../
|
|
15
|
+
import { cloneDeep, isCSR } from "../utils/utilHelper.js";
|
|
16
16
|
import {
|
|
17
17
|
STRATEGY_TYPE,
|
|
18
18
|
CVA_CONFIG_KEY,
|
|
19
19
|
SYSTEM_CONFIG_KEY,
|
|
20
20
|
NESTED_COMPONENT_REG_EXP,
|
|
21
|
-
} from "../constants
|
|
21
|
+
} from "../constants.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
Merging component configs in a given sequence (bigger number = bigger priority):
|
|
@@ -6,8 +6,8 @@ import "tippy.js/dist/tippy.css";
|
|
|
6
6
|
import "tippy.js/themes/light.css";
|
|
7
7
|
import "tippy.js/animations/shift-away.css";
|
|
8
8
|
|
|
9
|
-
import { vuelessConfig } from "../
|
|
10
|
-
import { isCSR, isSSR } from "../
|
|
9
|
+
import { vuelessConfig } from "../utils/utilUI.js";
|
|
10
|
+
import { isCSR, isSSR } from "../utils/utilHelper.js";
|
|
11
11
|
|
|
12
12
|
const globalSettings = vuelessConfig?.directive?.tooltip || {};
|
|
13
13
|
const defaultSettings = {
|
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* eslint-disable vue/max-len, prettier/prettier */
|
|
2
|
-
import { createLocale, LocaleSymbol } from "./
|
|
3
|
-
import { createLoaderRendering, LoaderRenderingSymbol } from "./ui.loader-rendering/
|
|
4
|
-
import { createLoaderTop, LoaderTopSymbol } from "./ui.loader-top/
|
|
5
|
-
import { themeInit } from "./
|
|
2
|
+
import { createLocale, LocaleSymbol } from "./composables/useLocale.js";
|
|
3
|
+
import { createLoaderRendering, LoaderRenderingSymbol } from "./ui.loader-rendering/useLoaderRendering.js";
|
|
4
|
+
import { createLoaderTop, LoaderTopSymbol } from "./ui.loader-top/useLoaderTop.js";
|
|
5
|
+
import { themeInit } from "./utils/utilTheme.js";
|
|
6
6
|
|
|
7
|
-
export { setTitle } from "./
|
|
8
|
-
export { setTheme } from "./
|
|
9
|
-
export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n";
|
|
10
|
-
export { default as defaultEnLocale } from "./adatper.locale/locales/en";
|
|
11
|
-
export { useLocale } from "./
|
|
12
|
-
export { useLoaderTop } from "./ui.loader-top/
|
|
13
|
-
export { loaderTopOn, loaderTopOff } from "./ui.loader-top/
|
|
14
|
-
export { useLoaderRendering } from "./ui.loader-rendering/
|
|
15
|
-
export { loaderRenderingOn, loaderRenderingOff } from "./ui.loader-rendering/
|
|
7
|
+
export { setTitle } from "./utils/utilHelper.js";
|
|
8
|
+
export { setTheme } from "./utils/utilTheme.js";
|
|
9
|
+
export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n.js";
|
|
10
|
+
export { default as defaultEnLocale } from "./adatper.locale/locales/en.js";
|
|
11
|
+
export { useLocale } from "./composables/useLocale.js";
|
|
12
|
+
export { useLoaderTop } from "./ui.loader-top/useLoaderTop.js";
|
|
13
|
+
export { loaderTopOn, loaderTopOff } from "./ui.loader-top/utilLoaderTop.js";
|
|
14
|
+
export { useLoaderRendering } from "./ui.loader-rendering/useLoaderRendering.js";
|
|
15
|
+
export { loaderRenderingOn, loaderRenderingOff } from "./ui.loader-rendering/utilLoaderRedering.js";
|
|
16
16
|
export {
|
|
17
17
|
notify,
|
|
18
18
|
notifySuccess,
|
|
@@ -21,7 +21,7 @@ export {
|
|
|
21
21
|
clearNotifications,
|
|
22
22
|
setDelayedNotify,
|
|
23
23
|
getDelayedNotify,
|
|
24
|
-
} from "./ui.text-notify/
|
|
24
|
+
} from "./ui.text-notify/utilNotify.js";
|
|
25
25
|
/* eslint-enable vue/max-len, prettier/prettier */
|
|
26
26
|
|
|
27
27
|
export function createVueless(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.329",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless Component Framework.",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@release-it/bumper": "^6.0.1",
|
|
38
38
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
39
39
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
40
|
-
"@vueless/plugin-vite": "^0.0.
|
|
40
|
+
"@vueless/plugin-vite": "^0.0.58",
|
|
41
41
|
"@vueless/storybook": "^0.0.34",
|
|
42
|
-
"@vueless/web-types": "^0.0.
|
|
42
|
+
"@vueless/web-types": "^0.0.15",
|
|
43
43
|
"autoprefixer": "^10.4.19",
|
|
44
44
|
"cssnano": "^6.1.2",
|
|
45
45
|
"eslint": "^8.55.0",
|
package/preset.tailwind.js
CHANGED
|
@@ -1,2 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import forms from "@tailwindcss/forms";
|
|
2
|
+
import defaultTheme from "tailwindcss/defaultTheme.js";
|
|
3
|
+
import {
|
|
4
|
+
COLOR_SHADES,
|
|
5
|
+
BRAND_COLOR,
|
|
6
|
+
GRAY_COLOR,
|
|
7
|
+
COOL_COLOR,
|
|
8
|
+
DARK_MODE_SELECTOR,
|
|
9
|
+
} from "./constants.js";
|
|
10
|
+
|
|
11
|
+
const safelist = getSafelist();
|
|
12
|
+
const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Vueless Tailwind CSS `content` config.
|
|
16
|
+
* Use it to extend project Tailwind CSS `content` config.
|
|
17
|
+
*/
|
|
18
|
+
export const vuelessContent = [
|
|
19
|
+
"./index.html",
|
|
20
|
+
"./src/**/*.{js,ts,jsx,tsx,vue}",
|
|
21
|
+
"./vueless.config.{js,ts}",
|
|
22
|
+
"./node_modules/vueless/**/*.{js,ts,vue}",
|
|
23
|
+
...(isStrategyOverride ? ["!./src/**/ui.*/config.js"] : []),
|
|
24
|
+
...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/config.js"] : []),
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line no-unused-vars
|
|
28
|
+
export const vuelessContentNuxt = [
|
|
29
|
+
"./composables/**/*.{js,ts}",
|
|
30
|
+
"./components/**/*.{js,vue,ts}",
|
|
31
|
+
"./layouts/**/*.vue",
|
|
32
|
+
"./pages/**/*.vue",
|
|
33
|
+
"./plugins/**/*.{js,ts}",
|
|
34
|
+
"./app.vue",
|
|
35
|
+
"./error.vue",
|
|
36
|
+
"./vueless.config.{js,ts}",
|
|
37
|
+
"./node_modules/vueless/**/*.{js,ts,vue}",
|
|
38
|
+
...(isStrategyOverride ? ["!./node_modules/vueless/**/ui.*/**/config.js"] : []),
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Generates preset for TailwindCSS base on Vueless config.
|
|
43
|
+
* @returns {Object}
|
|
44
|
+
*/
|
|
45
|
+
export function vuelessPreset() {
|
|
46
|
+
return {
|
|
47
|
+
darkMode: DARK_MODE_SELECTOR,
|
|
48
|
+
content: vuelessContent,
|
|
49
|
+
safelist,
|
|
50
|
+
theme: {
|
|
51
|
+
extend: {
|
|
52
|
+
colors: {
|
|
53
|
+
[BRAND_COLOR]: getPalette(BRAND_COLOR),
|
|
54
|
+
[GRAY_COLOR]: getPalette(GRAY_COLOR),
|
|
55
|
+
[COOL_COLOR]: { ...defaultTheme.colors[GRAY_COLOR] },
|
|
56
|
+
},
|
|
57
|
+
spacing: {
|
|
58
|
+
"safe-top": "env(safe-area-inset-top)",
|
|
59
|
+
"safe-bottom": "env(safe-area-inset-bottom)",
|
|
60
|
+
"safe-left": "env(safe-area-inset-left)",
|
|
61
|
+
"safe-right": "env(safe-area-inset-right)",
|
|
62
|
+
},
|
|
63
|
+
fontSize: {
|
|
64
|
+
"2xs": ["0.625rem", "0.875rem"] /* 10px / 14px */,
|
|
65
|
+
},
|
|
66
|
+
ringWidth: {
|
|
67
|
+
dynamic: "var(--vl-ring)",
|
|
68
|
+
},
|
|
69
|
+
ringOffsetWidth: {
|
|
70
|
+
dynamic: "var(--vl-ring-offset)",
|
|
71
|
+
},
|
|
72
|
+
borderRadius: {
|
|
73
|
+
dynamic: "var(--vl-rounding)",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
plugins: [forms],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Transform CSS variable with RGB numbers into CSS color.
|
|
83
|
+
* @param { String } variableName
|
|
84
|
+
* @returns {Function}
|
|
85
|
+
*/
|
|
86
|
+
function twColorWithOpacity(variableName) {
|
|
87
|
+
return ({ opacityValue }) => {
|
|
88
|
+
return opacityValue !== undefined
|
|
89
|
+
? `rgba(var(${variableName}), ${opacityValue})`
|
|
90
|
+
: `rgb(var(${variableName}))`;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Convert sting patterns to RegExp.
|
|
96
|
+
* @param { String } color (gray | brand)
|
|
97
|
+
* @returns { Object } - TailwindCSS color object palette.
|
|
98
|
+
*/
|
|
99
|
+
function getPalette(color) {
|
|
100
|
+
let palette = {
|
|
101
|
+
DEFAULT: twColorWithOpacity(`--vl-color-${color}-default`),
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
COLOR_SHADES.forEach((shade) => {
|
|
105
|
+
palette[shade] = twColorWithOpacity(`--vl-color-${color}-${shade}`);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
return palette;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Convert sting patterns to RegExp.
|
|
113
|
+
* @returns {Array} - TailwindCSS safelist.
|
|
114
|
+
*/
|
|
115
|
+
function getSafelist() {
|
|
116
|
+
return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule) => ({
|
|
117
|
+
...rule,
|
|
118
|
+
pattern: new RegExp(rule.pattern),
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
@@ -82,16 +82,15 @@
|
|
|
82
82
|
<script setup>
|
|
83
83
|
import { computed, ref, watchEffect } from "vue";
|
|
84
84
|
|
|
85
|
-
import { getRandomId, getDefault } from "../
|
|
86
|
-
import ULoader from "../ui.loader";
|
|
87
|
-
import UIcon from "../ui.image-icon";
|
|
85
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
86
|
+
import ULoader from "../ui.loader/ULoader.vue";
|
|
87
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
88
88
|
|
|
89
|
-
import defaultConfig from "./
|
|
90
|
-
import useAttrs from "./
|
|
91
|
-
import { UButton } from "./constants";
|
|
89
|
+
import defaultConfig from "./config.js";
|
|
90
|
+
import useAttrs from "./useAttrs.js";
|
|
91
|
+
import { UButton } from "./constants.js";
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
defineOptions({ name: "UButton", inheritAttrs: false });
|
|
93
|
+
defineOptions({ inheritAttrs: false });
|
|
95
94
|
|
|
96
95
|
const props = defineProps({
|
|
97
96
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./
|
|
5
|
-
import defaultConfig from "
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UButton from "
|
|
4
|
-
import UIcon from "
|
|
5
|
-
import URow from "
|
|
6
|
-
import UCol from "
|
|
3
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
4
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
6
|
+
import UCol from "../../ui.container-col/UCol.vue";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `UButton` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.button)
|
|
@@ -16,14 +16,14 @@ export default {
|
|
|
16
16
|
label: "Button",
|
|
17
17
|
},
|
|
18
18
|
argTypes: {
|
|
19
|
-
...getArgTypes(UButton.
|
|
19
|
+
...getArgTypes(UButton.__name),
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
const DefaultTemplate = (args) => ({
|
|
24
24
|
components: { UButton, UIcon },
|
|
25
25
|
setup() {
|
|
26
|
-
const slots = getSlotNames(UButton.
|
|
26
|
+
const slots = getSlotNames(UButton.__name);
|
|
27
27
|
|
|
28
28
|
return { args, slots };
|
|
29
29
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, useSlots } from "vue";
|
|
2
2
|
|
|
3
|
-
import useUI from "
|
|
4
|
-
import { cva } from "
|
|
3
|
+
import useUI from "../composables/useUI.js";
|
|
4
|
+
import { cva } from "../utils/utilUI.js";
|
|
5
5
|
|
|
6
|
-
import defaultConfig from "
|
|
6
|
+
import defaultConfig from "./config.js";
|
|
7
7
|
|
|
8
8
|
export default function useAttrs(props) {
|
|
9
9
|
const slots = useSlots();
|
|
@@ -47,14 +47,13 @@
|
|
|
47
47
|
<script setup>
|
|
48
48
|
import { computed, ref } from "vue";
|
|
49
49
|
import { RouterLink, useLink } from "vue-router";
|
|
50
|
-
import { getDefault } from "../
|
|
50
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
51
51
|
|
|
52
|
-
import useAttrs from "./
|
|
53
|
-
import defaultConfig from "./
|
|
54
|
-
import { ULink } from "./constants";
|
|
52
|
+
import useAttrs from "./useAttrs.js";
|
|
53
|
+
import defaultConfig from "./config.js";
|
|
54
|
+
import { ULink } from "./constants.js";
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
defineOptions({ name: "ULink", inheritAttrs: false });
|
|
56
|
+
defineOptions({ inheritAttrs: false });
|
|
58
57
|
|
|
59
58
|
const emit = defineEmits([
|
|
60
59
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./
|
|
5
|
-
import defaultConfig from "
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import ULink from "
|
|
4
|
-
import UIcon from "
|
|
5
|
-
import UButton from "
|
|
6
|
-
import URow from "
|
|
3
|
+
import ULink from "../../ui.button-link/ULink.vue";
|
|
4
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
6
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The `ULink` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.button-link)
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
label: "Link",
|
|
17
17
|
},
|
|
18
18
|
argTypes: {
|
|
19
|
-
...getArgTypes(ULink.
|
|
19
|
+
...getArgTypes(ULink.__name),
|
|
20
20
|
route: { control: { type: "text" } },
|
|
21
21
|
},
|
|
22
22
|
};
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
const DefaultTemplate = (args) => ({
|
|
25
25
|
components: { ULink, UButton, UIcon },
|
|
26
26
|
setup() {
|
|
27
|
-
const slots = getSlotNames(ULink.
|
|
27
|
+
const slots = getSlotNames(ULink.__name);
|
|
28
28
|
|
|
29
29
|
return { args, slots };
|
|
30
30
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, useSlots } from "vue";
|
|
2
|
-
import useUI from "
|
|
3
|
-
import { cva, cx } from "
|
|
4
|
-
import defaultConfig from "
|
|
2
|
+
import useUI from "../composables/useUI.js";
|
|
3
|
+
import { cva, cx } from "../utils/utilUI.js";
|
|
4
|
+
import defaultConfig from "./config.js";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props, { isActive, isExactActive }) {
|
|
7
7
|
const slots = useSlots();
|
|
@@ -31,16 +31,15 @@
|
|
|
31
31
|
<script setup>
|
|
32
32
|
import { computed, provide, readonly } from "vue";
|
|
33
33
|
|
|
34
|
-
import ULabel from "../ui.form-label";
|
|
35
|
-
import UToggleItem from "../ui.button-toggle-item";
|
|
36
|
-
import { getDefault } from "../
|
|
34
|
+
import ULabel from "../ui.form-label/ULabel.vue";
|
|
35
|
+
import UToggleItem from "../ui.button-toggle-item/UToggleItem.vue";
|
|
36
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
37
37
|
|
|
38
|
-
import defaultConfig from "./
|
|
39
|
-
import { UToggle, TYPE_RADIO, TYPE_CHECKBOX } from "./constants";
|
|
40
|
-
import useAttrs from "./
|
|
38
|
+
import defaultConfig from "./config.js";
|
|
39
|
+
import { UToggle, TYPE_RADIO, TYPE_CHECKBOX } from "./constants.js";
|
|
40
|
+
import useAttrs from "./useAttrs.js";
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
defineOptions({ name: "UToggle", inheritAttrs: false });
|
|
42
|
+
defineOptions({ inheritAttrs: false });
|
|
44
43
|
|
|
45
44
|
const props = defineProps({
|
|
46
45
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./
|
|
5
|
-
import defaultConfig from "
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
2
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import UToggle from "
|
|
5
|
-
import UIcon from "
|
|
6
|
-
import UToggleItem from "
|
|
7
|
-
import URow from "
|
|
4
|
+
import UToggle from "../../ui.button-toggle/UToggle.vue";
|
|
5
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
6
|
+
import UToggleItem from "../../ui.button-toggle-item/UToggleItem.vue";
|
|
7
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
8
8
|
|
|
9
9
|
const OPTIONS = [
|
|
10
10
|
{ value: "11", label: "label 1" },
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
title: "Buttons & Links / Toggle",
|
|
22
22
|
component: UToggle,
|
|
23
23
|
argTypes: {
|
|
24
|
-
...getArgTypes(UToggle.
|
|
24
|
+
...getArgTypes(UToggle.__name),
|
|
25
25
|
modelValue: { control: { type: "text" } },
|
|
26
26
|
},
|
|
27
27
|
};
|
|
@@ -31,7 +31,7 @@ const DefaultTemplate = (args) => ({
|
|
|
31
31
|
setup() {
|
|
32
32
|
const value = ref("");
|
|
33
33
|
|
|
34
|
-
const slots = getSlotNames(UToggle.
|
|
34
|
+
const slots = getSlotNames(UToggle.__name);
|
|
35
35
|
|
|
36
36
|
return { args, slots, value, OPTIONS };
|
|
37
37
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import useUI from "
|
|
3
|
-
import { cva } from "
|
|
4
|
-
import defaultConfig from "
|
|
2
|
+
import useUI from "../composables/useUI.js";
|
|
3
|
+
import { cva } from "../utils/utilUI.js";
|
|
4
|
+
import defaultConfig from "./config.js";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props) {
|
|
7
7
|
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
@@ -50,17 +50,16 @@
|
|
|
50
50
|
<script setup>
|
|
51
51
|
import { computed, inject, onMounted, ref } from "vue";
|
|
52
52
|
|
|
53
|
-
import UButton from "../ui.button";
|
|
54
|
-
import { getRandomId, getDefault } from "../
|
|
53
|
+
import UButton from "../ui.button/UButton.vue";
|
|
54
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
55
55
|
|
|
56
56
|
import { TYPE_RADIO } from "../ui.button-toggle/constants";
|
|
57
57
|
|
|
58
|
-
import useAttrs from "./
|
|
59
|
-
import defaultConfig from "./
|
|
60
|
-
import { UToggleItem } from "./constants";
|
|
58
|
+
import useAttrs from "./useAttrs.js";
|
|
59
|
+
import defaultConfig from "./config.js";
|
|
60
|
+
import { UToggleItem } from "./constants.js";
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
defineOptions({ name: "UToggleItem", inheritAttrs: false });
|
|
62
|
+
defineOptions({ inheritAttrs: false });
|
|
64
63
|
|
|
65
64
|
const props = defineProps({
|
|
66
65
|
/**
|
|
@@ -4,9 +4,9 @@ export default /*tw*/ {
|
|
|
4
4
|
base: `
|
|
5
5
|
border-gray-300 font-normal
|
|
6
6
|
hover:text-brand-600 hover:border-brand-600 hover:relative hover:z-10
|
|
7
|
-
focus:text-brand-600 focus:border-brand-600 focus:relative focus:z-10 focus:ring-brand-700/15
|
|
8
|
-
active:text-brand-700 active:border-brand-700 active:relative
|
|
9
|
-
disabled:z-0
|
|
7
|
+
focus:text-brand-600 focus:border-brand-600 focus:relative focus:z-10 focus:ring-brand-700/15
|
|
8
|
+
focus-within:ring-brand-700/15 active:text-brand-700 active:border-brand-700 active:relative
|
|
9
|
+
active:z-10 disabled:z-0
|
|
10
10
|
`,
|
|
11
11
|
variants: {
|
|
12
12
|
separated: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
-
import { getSource } from "
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./
|
|
5
|
-
import defaultConfig from "
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UToggleItem from "
|
|
4
|
-
import UIcon from "
|
|
3
|
+
import UToggleItem from "../../ui.button-toggle-item/UToggleItem.vue";
|
|
4
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The `UToggleItem` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.button-toggle-item)
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
modelValue: "",
|
|
16
16
|
},
|
|
17
17
|
argTypes: {
|
|
18
|
-
...getArgTypes(UToggleItem.
|
|
18
|
+
...getArgTypes(UToggleItem.__name),
|
|
19
19
|
value: { control: { type: "text" } },
|
|
20
20
|
},
|
|
21
21
|
};
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
const DefaultTemplate = (args) => ({
|
|
24
24
|
components: { UToggleItem, UIcon },
|
|
25
25
|
setup() {
|
|
26
|
-
const slots = getSlotNames(UToggleItem.
|
|
26
|
+
const slots = getSlotNames(UToggleItem.__name);
|
|
27
27
|
|
|
28
28
|
return { args, slots };
|
|
29
29
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, toValue } from "vue";
|
|
2
|
-
import useUI from "
|
|
3
|
-
import { cva } from "
|
|
4
|
-
import defaultConfig from "
|
|
2
|
+
import useUI from "../composables/useUI.js";
|
|
3
|
+
import { cva } from "../utils/utilUI.js";
|
|
4
|
+
import defaultConfig from "./config.js";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props, { isSelected, separated, variant }) {
|
|
7
7
|
const { config, getAttrs, isSystemKey, hasSlotContent, isCVA } = useUI(
|
|
@@ -23,16 +23,15 @@
|
|
|
23
23
|
<script setup>
|
|
24
24
|
import { computed, ref } from "vue";
|
|
25
25
|
|
|
26
|
-
import UIcon from "../ui.image-icon";
|
|
27
|
-
import UDivider from "../ui.container-divider";
|
|
28
|
-
import { getRandomId, getDefault } from "../
|
|
26
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
27
|
+
import UDivider from "../ui.container-divider/UDivider.vue";
|
|
28
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
29
29
|
|
|
30
|
-
import { UAccordion } from "./constants
|
|
31
|
-
import defaultConfig from "./
|
|
32
|
-
import useAttrs from "./
|
|
30
|
+
import { UAccordion } from "./constants.js";
|
|
31
|
+
import defaultConfig from "./config.js";
|
|
32
|
+
import useAttrs from "./useAttrs.js";
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
defineOptions({ name: "UAccordion", inheritAttrs: false });
|
|
34
|
+
defineOptions({ inheritAttrs: false });
|
|
36
35
|
|
|
37
36
|
const props = defineProps({
|
|
38
37
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.js";
|
|
5
|
+
import defaultConfig from "../config.js?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|