vueless 0.0.327 → 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} +33 -31
- 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
|
@@ -15,15 +15,14 @@
|
|
|
15
15
|
<script setup>
|
|
16
16
|
import { computed, ref, watchEffect } from "vue";
|
|
17
17
|
|
|
18
|
-
import { getDefault } from "../
|
|
19
|
-
import UCheckbox from "../ui.form-checkbox";
|
|
18
|
+
import { getDefault } from "../utils/utilUI.js";
|
|
19
|
+
import UCheckbox from "../ui.form-checkbox/UCheckbox.vue";
|
|
20
20
|
|
|
21
|
-
import defaultConfig from "./
|
|
22
|
-
import { UCheckboxMultiState } from "./constants";
|
|
23
|
-
import useAttrs from "./
|
|
21
|
+
import defaultConfig from "./config.js";
|
|
22
|
+
import { UCheckboxMultiState } from "./constants.js";
|
|
23
|
+
import useAttrs from "./useAttrs.js";
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
defineOptions({ name: "UCheckboxMultiState", inheritAttrs: false });
|
|
25
|
+
defineOptions({ inheritAttrs: false });
|
|
27
26
|
|
|
28
27
|
const props = defineProps({
|
|
29
28
|
/**
|
|
@@ -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 />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UCheckboxMultiState from "
|
|
4
|
-
import URow from "
|
|
3
|
+
import UCheckboxMultiState from "../../ui.form-checkbox-multi-state/UCheckboxMultiState.vue";
|
|
4
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The `UCheckboxMultiState` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-checkbox-multi-state)
|
|
@@ -18,14 +18,14 @@ export default {
|
|
|
18
18
|
],
|
|
19
19
|
},
|
|
20
20
|
argTypes: {
|
|
21
|
-
...getArgTypes(UCheckboxMultiState.
|
|
21
|
+
...getArgTypes(UCheckboxMultiState.__name),
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const DefaultTemplate = (args) => ({
|
|
26
26
|
components: { UCheckboxMultiState },
|
|
27
27
|
setup() {
|
|
28
|
-
const slots = getSlotNames(UCheckboxMultiState.
|
|
28
|
+
const slots = getSlotNames(UCheckboxMultiState.__name);
|
|
29
29
|
|
|
30
30
|
return { args, slots };
|
|
31
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import { cva } from "
|
|
3
|
-
import defaultConfig from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import { cva } from "../utils/utilUI.js";
|
|
3
|
+
import defaultConfig from "./config.js";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
|
|
6
6
|
export default function useAttrs(props, { selected }) {
|
|
@@ -31,12 +31,12 @@ export default function useAttrs(props, { selected }) {
|
|
|
31
31
|
const checkboxAttrs = attrs[`${key}Attrs`];
|
|
32
32
|
|
|
33
33
|
attrs[`${key}Attrs`] = computed(() => {
|
|
34
|
-
if (
|
|
35
|
-
checkboxAttrs.value.config = {};
|
|
34
|
+
if (selected.value.icon) {
|
|
35
|
+
checkboxAttrs.value.config = checkboxAttrs.value.config || {};
|
|
36
|
+
checkboxAttrs.value.config.defaults = checkboxAttrs.value.config.defaults || {};
|
|
37
|
+
checkboxAttrs.value.config.defaults.checkedIcon = selected.value.icon;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
checkboxAttrs.value.config.selectedIconName = selected.value.icon;
|
|
39
|
-
|
|
40
40
|
return checkboxAttrs.value;
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -53,17 +53,16 @@
|
|
|
53
53
|
<script setup>
|
|
54
54
|
import { computed } from "vue";
|
|
55
55
|
|
|
56
|
-
import UIcon from "../ui.image-icon";
|
|
57
|
-
import URadio from "../ui.form-radio";
|
|
58
|
-
import ULabel from "../ui.form-label";
|
|
59
|
-
import { getRandomId, getDefault } from "../
|
|
56
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
57
|
+
import URadio from "../ui.form-radio/URadio.vue";
|
|
58
|
+
import ULabel from "../ui.form-label/ULabel.vue";
|
|
59
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
60
60
|
|
|
61
|
-
import { UColorPicker } from "./constants";
|
|
62
|
-
import defaultConfig from "./
|
|
63
|
-
import useAttrs from "./
|
|
61
|
+
import { UColorPicker } from "./constants.js";
|
|
62
|
+
import defaultConfig from "./config.js";
|
|
63
|
+
import useAttrs from "./useAttrs.js";
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
defineOptions({ name: "UColorPicker", inheritAttrs: false });
|
|
65
|
+
defineOptions({ inheritAttrs: false });
|
|
67
66
|
|
|
68
67
|
const props = defineProps({
|
|
69
68
|
/**
|
|
@@ -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 />
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
|
+
|
|
3
|
+
import UColorPicker from "../../ui.form-color-picker/UColorPicker.vue";
|
|
4
|
+
import UCol from "../../ui.container-col/UCol.vue";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The `UColorPicker` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-color-picker)
|
|
@@ -14,14 +15,14 @@ export default {
|
|
|
14
15
|
modelValue: "",
|
|
15
16
|
},
|
|
16
17
|
argTypes: {
|
|
17
|
-
...getArgTypes(UColorPicker.
|
|
18
|
+
...getArgTypes(UColorPicker.__name),
|
|
18
19
|
},
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
const DefaultTemplate = (args) => ({
|
|
22
23
|
components: { UColorPicker },
|
|
23
24
|
setup() {
|
|
24
|
-
const slots = getSlotNames(UColorPicker.
|
|
25
|
+
const slots = getSlotNames(UColorPicker.__name);
|
|
25
26
|
|
|
26
27
|
return { args, slots };
|
|
27
28
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import useUI from "
|
|
3
|
-
import { cva } from "
|
|
2
|
+
import useUI from "../composables/useUI.js";
|
|
3
|
+
import { cva } from "../utils/utilUI.js";
|
|
4
4
|
|
|
5
|
-
import defaultConfig from "
|
|
5
|
+
import defaultConfig from "./config.js";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props) {
|
|
8
8
|
const { config, getAttrs, setColor, getColor, isSystemKey, hasSlotContent, isCVA } = useUI(
|
|
@@ -68,23 +68,22 @@
|
|
|
68
68
|
import { computed, nextTick, ref } from "vue";
|
|
69
69
|
import { merge } from "lodash-es";
|
|
70
70
|
|
|
71
|
-
import UInput from "../ui.form-input";
|
|
72
|
-
import UCalendar from "../ui.form-calendar";
|
|
73
|
-
import { VIEW, STANDARD_USER_FORMAT } from "../ui.form-calendar/constants";
|
|
71
|
+
import UInput from "../ui.form-input/UInput.vue";
|
|
72
|
+
import UCalendar from "../ui.form-calendar/UCalendar.vue";
|
|
73
|
+
import { VIEW, STANDARD_USER_FORMAT } from "../ui.form-calendar/constants.js";
|
|
74
74
|
|
|
75
|
-
import { getRandomId, getDefault } from "../
|
|
75
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
76
76
|
|
|
77
|
-
import { addDays, isSameDay } from "../ui.form-calendar/
|
|
77
|
+
import { addDays, isSameDay } from "../ui.form-calendar/utilDate.js";
|
|
78
78
|
|
|
79
|
-
import useAttrs from "./
|
|
80
|
-
import { useLocale } from "../
|
|
81
|
-
import { useAutoPosition } from "../
|
|
79
|
+
import useAttrs from "./useAttrs.js";
|
|
80
|
+
import { useLocale } from "../composables/useLocale.js";
|
|
81
|
+
import { useAutoPosition } from "../composables/useAutoPosition.js";
|
|
82
82
|
|
|
83
|
-
import defaultConfig from "./
|
|
84
|
-
import { UDatePicker } from "./constants";
|
|
83
|
+
import defaultConfig from "./config.js";
|
|
84
|
+
import { UDatePicker } from "./constants.js";
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
defineOptions({ name: "UDatePicker", inheritAttrs: false });
|
|
86
|
+
defineOptions({ inheritAttrs: false });
|
|
88
87
|
|
|
89
88
|
const props = defineProps({
|
|
90
89
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source, Markdown } 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,8 +1,8 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UDatePicker from "
|
|
4
|
-
import UIcon from "
|
|
5
|
-
import URow from "
|
|
3
|
+
import UDatePicker from "../../ui.form-date-picker/UDatePicker.vue";
|
|
4
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
5
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The `UDatePicker` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-date-picker)
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
modelValue: null,
|
|
17
17
|
},
|
|
18
18
|
argTypes: {
|
|
19
|
-
...getArgTypes(UDatePicker.
|
|
19
|
+
...getArgTypes(UDatePicker.__name),
|
|
20
20
|
},
|
|
21
21
|
parameters: {
|
|
22
22
|
docs: {
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
const DefaultTemplate = (args) => ({
|
|
31
31
|
components: { UDatePicker, UIcon },
|
|
32
32
|
setup() {
|
|
33
|
-
const slots = getSlotNames(UDatePicker.
|
|
33
|
+
const slots = getSlotNames(UDatePicker.__name);
|
|
34
34
|
|
|
35
35
|
return { args, slots };
|
|
36
36
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import { cva } from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import { cva } from "../utils/utilUI.js";
|
|
3
3
|
import { computed, watchEffect } from "vue";
|
|
4
4
|
|
|
5
|
-
import defaultConfig from "
|
|
6
|
-
import { POSITION } from "
|
|
5
|
+
import defaultConfig from "./config.js";
|
|
6
|
+
import { POSITION } from "../composables/useAutoPosition.js";
|
|
7
7
|
|
|
8
8
|
export default function useAttrs(props, { isShownCalendar, isTop, isRight }) {
|
|
9
9
|
const { config, getAttrs, isSystemKey, hasSlotContent, isCVA } = useUI(
|
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
import { computed, watch, ref, nextTick } from "vue";
|
|
225
225
|
import { merge } from "lodash-es";
|
|
226
226
|
|
|
227
|
-
import UInput from "../ui.form-input";
|
|
228
|
-
import UButton from "../ui.button";
|
|
229
|
-
import UCalendar from "../ui.form-calendar";
|
|
230
|
-
import { LOCALE_TYPE } from "../ui.form-calendar/constants";
|
|
227
|
+
import UInput from "../ui.form-input/UInput.vue";
|
|
228
|
+
import UButton from "../ui.button/UButton.vue";
|
|
229
|
+
import UCalendar from "../ui.form-calendar/UCalendar.vue";
|
|
230
|
+
import { LOCALE_TYPE } from "../ui.form-calendar/constants.js";
|
|
231
231
|
|
|
232
|
-
import vClickOutside from "../
|
|
232
|
+
import vClickOutside from "../directives/vClickOutside.js";
|
|
233
233
|
|
|
234
|
-
import { getRandomId, getDefault, cx } from "../
|
|
234
|
+
import { getRandomId, getDefault, cx } from "../utils/utilUI.js";
|
|
235
235
|
|
|
236
236
|
import {
|
|
237
237
|
addDays,
|
|
@@ -248,42 +248,33 @@ import {
|
|
|
248
248
|
getStartOfYear,
|
|
249
249
|
getDatesDifference,
|
|
250
250
|
isSameMonth,
|
|
251
|
-
} from "../ui.form-calendar/
|
|
251
|
+
} from "../ui.form-calendar/utilDate.js";
|
|
252
252
|
|
|
253
|
-
import {
|
|
254
|
-
dateIsOutOfRange,
|
|
255
|
-
formatDate,
|
|
256
|
-
parseDate,
|
|
257
|
-
} from "../ui.form-calendar/services/calendar.service";
|
|
253
|
+
import { dateIsOutOfRange, formatDate, parseDate } from "../ui.form-calendar/utilCalendar.js";
|
|
258
254
|
|
|
259
255
|
import {
|
|
260
256
|
getWeekDateList,
|
|
261
257
|
getYearDateList,
|
|
262
258
|
getQuartersDateList,
|
|
263
259
|
getMonthsDateList,
|
|
264
|
-
} from "./
|
|
260
|
+
} from "./utilDateRange.js";
|
|
265
261
|
|
|
266
|
-
import {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
} from "
|
|
271
|
-
|
|
272
|
-
import
|
|
273
|
-
import useBreakpoint from "../composable.breakpoint";
|
|
274
|
-
import { useAutoPosition } from "../composable.autoPosition";
|
|
275
|
-
|
|
276
|
-
import defaultConfig from "./configs/default.config";
|
|
262
|
+
import { isWrongDateFormat, isWrongMonthNumber, isWrongDayNumber } from "./utilValidation.js";
|
|
263
|
+
import useAttrs from "./useAttrs.js";
|
|
264
|
+
import { useLocale } from "../composables/useLocale.js";
|
|
265
|
+
import useBreakpoint from "../composables/useBreakpoint.js";
|
|
266
|
+
import { useAutoPosition } from "../composables/useAutoPosition.js";
|
|
267
|
+
|
|
268
|
+
import defaultConfig from "./config.js";
|
|
277
269
|
import {
|
|
278
270
|
UDatePickerRange,
|
|
279
271
|
DATE_PICKER_BUTTON_TYPE,
|
|
280
272
|
DATE_PICKER_INPUT_TYPE,
|
|
281
273
|
PERIOD,
|
|
282
274
|
INPUT_RANGE_TYPE,
|
|
283
|
-
} from "./constants";
|
|
275
|
+
} from "./constants.js";
|
|
284
276
|
|
|
285
|
-
|
|
286
|
-
defineOptions({ name: "UDatePickerRange", inheritAttrs: false });
|
|
277
|
+
defineOptions({ inheritAttrs: false });
|
|
287
278
|
|
|
288
279
|
const props = defineProps({
|
|
289
280
|
/**
|
|
@@ -13,7 +13,10 @@ export default /*tw*/ {
|
|
|
13
13
|
last:rounded-dynamic last:rounded-l-none
|
|
14
14
|
`,
|
|
15
15
|
menu: {
|
|
16
|
-
base:
|
|
16
|
+
base: `
|
|
17
|
+
absolute z-40 my-2 w-80 overflow-hidden rounded-dynamic
|
|
18
|
+
border border-brand-300 bg-white p-2 shadow focus:outline-none
|
|
19
|
+
`,
|
|
17
20
|
variants: {
|
|
18
21
|
openDirectionX: {
|
|
19
22
|
left: "right-0",
|
|
@@ -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 />
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getArgTypes, getSlotNames, getSlotsFragment } from "
|
|
1
|
+
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
2
|
|
|
3
|
-
import UDatePickerRange from "../
|
|
4
|
-
import URow from "
|
|
5
|
-
import UIcon from "
|
|
6
|
-
import UButton from "
|
|
3
|
+
import UDatePickerRange from "../UDatePickerRange.vue";
|
|
4
|
+
import URow from "../../ui.container-row/URow.vue";
|
|
5
|
+
import UIcon from "../../ui.image-icon/UIcon.vue";
|
|
6
|
+
import UButton from "../../ui.button/UButton.vue";
|
|
7
7
|
|
|
8
|
-
import { addDays } from "
|
|
8
|
+
import { addDays } from "../../ui.form-calendar/utilDate.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The `UDatePickerRange` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.form-date-picker-range)
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
argTypes: {
|
|
24
|
-
...getArgTypes(UDatePickerRange.
|
|
24
|
+
...getArgTypes(UDatePickerRange.__name),
|
|
25
25
|
},
|
|
26
26
|
parameters: {
|
|
27
27
|
docs: {
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
const DefaultTemplate = (args) => ({
|
|
36
36
|
components: { UDatePickerRange, UIcon, UButton },
|
|
37
37
|
setup() {
|
|
38
|
-
const slots = getSlotNames(UDatePickerRange.
|
|
38
|
+
const slots = getSlotNames(UDatePickerRange.__name);
|
|
39
39
|
|
|
40
40
|
return { args, slots };
|
|
41
41
|
},
|
|
@@ -122,23 +122,23 @@ const OpenDirectionTemplate = (args) => ({
|
|
|
122
122
|
export const Default = DefaultTemplate.bind({});
|
|
123
123
|
Default.args = {};
|
|
124
124
|
|
|
125
|
-
export const
|
|
126
|
-
|
|
125
|
+
export const Variants = EnumVariantTemplate.bind({});
|
|
126
|
+
Variants.args = { enum: "variant" };
|
|
127
127
|
|
|
128
|
-
export const
|
|
129
|
-
|
|
128
|
+
export const OpenDirection = OpenDirectionTemplate.bind({});
|
|
129
|
+
OpenDirection.args = {};
|
|
130
130
|
|
|
131
|
-
export const
|
|
132
|
-
|
|
131
|
+
export const Disabled = EnumVariantTemplate.bind({});
|
|
132
|
+
Disabled.args = { enum: "variant", disabled: true };
|
|
133
133
|
|
|
134
|
-
export const
|
|
135
|
-
|
|
134
|
+
export const Label = DefaultTemplate.bind({});
|
|
135
|
+
Label.args = { variant: "input", label: "some label" };
|
|
136
136
|
|
|
137
|
-
export const
|
|
138
|
-
|
|
137
|
+
export const Description = DefaultTemplate.bind({});
|
|
138
|
+
Description.args = { variant: "input", description: "some description" };
|
|
139
139
|
|
|
140
|
-
export const
|
|
141
|
-
|
|
140
|
+
export const Error = DefaultTemplate.bind({});
|
|
141
|
+
Error.args = { variant: "input", error: "some error" };
|
|
142
142
|
|
|
143
143
|
export const MinMax = DefaultTemplate.bind({});
|
|
144
144
|
MinMax.args = {
|
|
@@ -154,8 +154,8 @@ DateFormat.args = {
|
|
|
154
154
|
value: { from: "28.06.2024", to: "30.06.2024" },
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export const
|
|
158
|
-
|
|
157
|
+
export const CustomRangeButton = DefaultTemplate.bind({});
|
|
158
|
+
CustomRangeButton.args = {
|
|
159
159
|
customRangeButton: {
|
|
160
160
|
range: {
|
|
161
161
|
from: new Date(),
|
|
@@ -167,20 +167,20 @@ customRangeButton.args = {
|
|
|
167
167
|
value: { from: null, to: null },
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
export const
|
|
171
|
-
|
|
170
|
+
export const LeftIcon = DefaultTemplate.bind({});
|
|
171
|
+
LeftIcon.args = {
|
|
172
172
|
leftIcon: "star",
|
|
173
173
|
variant: "input",
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
export const
|
|
177
|
-
|
|
176
|
+
export const RightIcon = DefaultTemplate.bind({});
|
|
177
|
+
RightIcon.args = {
|
|
178
178
|
rightIcon: "star",
|
|
179
179
|
variant: "input",
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
export const
|
|
183
|
-
|
|
182
|
+
export const LeftIconSlot = DefaultTemplate.bind({});
|
|
183
|
+
LeftIconSlot.args = {
|
|
184
184
|
variant: "input",
|
|
185
185
|
slotTemplate: `
|
|
186
186
|
<template #left-icon>
|
|
@@ -192,8 +192,8 @@ leftIconSlot.args = {
|
|
|
192
192
|
`,
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
export const
|
|
196
|
-
|
|
195
|
+
export const RightIconSlot = DefaultTemplate.bind({});
|
|
196
|
+
RightIconSlot.args = {
|
|
197
197
|
variant: "input",
|
|
198
198
|
slotTemplate: `
|
|
199
199
|
<template #right-icon>
|
|
@@ -205,8 +205,8 @@ rightIconSlot.args = {
|
|
|
205
205
|
`,
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
export const
|
|
209
|
-
|
|
208
|
+
export const LeftSlot = DefaultTemplate.bind({});
|
|
209
|
+
LeftSlot.args = {
|
|
210
210
|
variant: "input",
|
|
211
211
|
slotTemplate: `
|
|
212
212
|
<template #left>
|
|
@@ -215,8 +215,8 @@ leftSlot.args = {
|
|
|
215
215
|
`,
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
export const
|
|
219
|
-
|
|
218
|
+
export const RightSlot = DefaultTemplate.bind({});
|
|
219
|
+
RightSlot.args = {
|
|
220
220
|
variant: "input",
|
|
221
221
|
slotTemplate: `
|
|
222
222
|
<template #right>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import useUI from "
|
|
2
|
-
import { cx, cva } from "
|
|
1
|
+
import useUI from "../composables/useUI.js";
|
|
2
|
+
import { cx, cva } from "../utils/utilUI.js";
|
|
3
3
|
|
|
4
4
|
import { computed, watchEffect } from "vue";
|
|
5
5
|
|
|
6
|
-
import defaultConfig from "
|
|
7
|
-
import { POSITION } from "
|
|
6
|
+
import defaultConfig from "./config.js";
|
|
7
|
+
import { POSITION } from "../composables/useAutoPosition.js";
|
|
8
8
|
|
|
9
9
|
export default function useAttrs(props, { isShownMenu, isTop, isRight }) {
|
|
10
10
|
const { config, getAttrs, isSystemKey, hasSlotContent, isCVA } = useUI(
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</template>
|
|
102
102
|
|
|
103
103
|
<script>
|
|
104
|
-
import { getRandomId, getDefault } from "../
|
|
104
|
+
import { getRandomId, getDefault } from "../utils/utilUI.js";
|
|
105
105
|
|
|
106
106
|
const VALIDATION_RULES_REG_EX = {
|
|
107
107
|
integer: /\d*/g,
|
|
@@ -115,15 +115,14 @@ const VALIDATION_RULES_REG_EX = {
|
|
|
115
115
|
<script setup>
|
|
116
116
|
import { ref, computed, onMounted, useSlots } from "vue";
|
|
117
117
|
|
|
118
|
-
import UIcon from "../ui.image-icon";
|
|
119
|
-
import ULabel from "../ui.form-label";
|
|
118
|
+
import UIcon from "../ui.image-icon/UIcon.vue";
|
|
119
|
+
import ULabel from "../ui.form-label/ULabel.vue";
|
|
120
120
|
|
|
121
|
-
import defaultConfig from "./
|
|
122
|
-
import { UInput } from "./constants";
|
|
123
|
-
import useAttrs from "./
|
|
121
|
+
import defaultConfig from "./config.js";
|
|
122
|
+
import { UInput } from "./constants.js";
|
|
123
|
+
import useAttrs from "./useAttrs.js";
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
defineOptions({ name: "UInput", inheritAttrs: false });
|
|
125
|
+
defineOptions({ inheritAttrs: false });
|
|
127
126
|
|
|
128
127
|
const emit = defineEmits([
|
|
129
128
|
/**
|
|
@@ -10,8 +10,8 @@ export default /*tw*/ {
|
|
|
10
10
|
base: `
|
|
11
11
|
w-full bg-white !opacity-100 relative flex transition
|
|
12
12
|
rounded-dynamic border border-solid border-gray-300
|
|
13
|
-
hover:border-gray-400 hover:focus-within:border-brand-500
|
|
14
|
-
focus-within:
|
|
13
|
+
hover:border-gray-400 hover:focus-within:border-brand-500 focus-within:border-brand-500
|
|
14
|
+
focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-brand-700/15
|
|
15
15
|
`,
|
|
16
16
|
variants: {
|
|
17
17
|
error: {
|
|
@@ -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 />
|