vueless 0.0.474 → 0.0.475
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.d.ts +289 -0
- package/adatper.locale/vue-i18n.d.ts +9 -0
- package/adatper.locale/vueless.d.ts +11 -0
- package/composables/useAutoPosition.d.ts +15 -0
- package/composables/useBreakpoint.d.ts +7 -0
- package/composables/useBreakpoint.js +1 -1
- package/composables/useLocale.d.ts +3 -0
- package/composables/useMutationObserver.d.ts +7 -0
- package/composables/useUI.d.ts +17 -0
- package/composablesTs/useAutoPosition.d.ts +28 -0
- package/composablesTs/useAutoPosition.ts +115 -0
- package/composablesTs/useBreakpoint.d.ts +7 -0
- package/composablesTs/useBreakpoint.ts +106 -0
- package/composablesTs/useLocale.d.ts +3 -0
- package/composablesTs/useLocale.ts +25 -0
- package/composablesTs/useMutationObserver.d.ts +8 -0
- package/composablesTs/useMutationObserver.ts +50 -0
- package/composablesTs/useUI.d.ts +68 -0
- package/composablesTs/useUI.ts +566 -0
- package/constants.d.ts +42 -0
- package/constants.js +1 -1
- package/constants.ts +73 -0
- package/directives/clickOutside/storybook/stories.d.ts +653 -0
- package/directives/clickOutside/vClickOutside.d.ts +6 -0
- package/directives/clickOutside/vClickOutside.js +2 -2
- package/directives/index.d.ts +2 -0
- package/directives/tooltip/storybook/stories.d.ts +252 -0
- package/directives/tooltip/storybook/stories.js +5 -5
- package/directives/tooltip/vTooltip.d.ts +6 -0
- package/index.d.ts +15 -0
- package/{index.js → index.ts} +9 -6
- package/package.json +28 -17
- package/preset.tailwind.d.ts +116 -0
- package/{preset.tailwind.js → preset.tailwind.ts} +30 -22
- package/types.d.ts +131 -0
- package/types.ts +218 -0
- package/ui.button/UButton.vue.d.ts +73 -0
- package/ui.button/config.d.ts +130 -0
- package/ui.button/constants.d.ts +1 -0
- package/ui.button/storybook/stories.d.ts +3062 -0
- package/ui.button/useAttrs.d.ts +11 -0
- package/ui.button-link/ULink.vue +1 -1
- package/ui.button-link/ULink.vue.d.ts +66 -0
- package/ui.button-link/config.d.ts +101 -0
- package/ui.button-link/constants.d.ts +1 -0
- package/ui.button-link/storybook/stories.d.ts +4567 -0
- package/ui.button-link/useAttrs.d.ts +14 -0
- package/ui.button-toggle/UToggle.vue.d.ts +50 -0
- package/ui.button-toggle/config.d.ts +65 -0
- package/ui.button-toggle/constants.d.ts +3 -0
- package/ui.button-toggle/storybook/stories.d.ts +2683 -0
- package/ui.button-toggle/useAttrs.d.ts +11 -0
- package/ui.button-toggle-item/UToggleItem.vue.d.ts +36 -0
- package/ui.button-toggle-item/config.d.ts +41 -0
- package/ui.button-toggle-item/constants.d.ts +1 -0
- package/ui.button-toggle-item/storybook/stories.d.ts +495 -0
- package/ui.button-toggle-item/useAttrs.d.ts +15 -0
- package/ui.container-accordion/UAccordion.vue.d.ts +32 -0
- package/ui.container-accordion/config.d.ts +40 -0
- package/ui.container-accordion/constants.d.ts +1 -0
- package/ui.container-accordion/storybook/stories.d.ts +732 -0
- package/ui.container-accordion/useAttrs.d.ts +13 -0
- package/ui.container-card/UCard.vue.d.ts +31 -0
- package/ui.container-card/config.d.ts +13 -0
- package/ui.container-card/constants.d.ts +1 -0
- package/ui.container-card/storybook/stories.d.ts +3906 -0
- package/ui.container-card/useAttrs.d.ts +11 -0
- package/ui.container-col/UCol.vue.d.ts +33 -0
- package/ui.container-col/config.d.ts +81 -0
- package/ui.container-col/constants.d.ts +1 -0
- package/ui.container-col/storybook/stories.d.ts +840 -0
- package/ui.container-col/useAttrs.d.ts +11 -0
- package/ui.container-divider/UDivider.vue.d.ts +25 -0
- package/ui.container-divider/config.d.ts +102 -0
- package/ui.container-divider/constants.d.ts +1 -0
- package/ui.container-divider/storybook/stories.d.ts +577 -0
- package/ui.container-divider/useAttrs.d.ts +11 -0
- package/ui.container-group/UGroup.vue.d.ts +33 -0
- package/ui.container-group/config.d.ts +38 -0
- package/ui.container-group/constants.d.ts +1 -0
- package/ui.container-group/storybook/stories.d.ts +2869 -0
- package/ui.container-group/useAttrs.d.ts +11 -0
- package/ui.container-modal/UModal.vue.d.ts +59 -0
- package/ui.container-modal/config.d.ts +77 -0
- package/ui.container-modal/constants.d.ts +1 -0
- package/ui.container-modal/storybook/stories.d.ts +8377 -0
- package/ui.container-modal/useAttrs.d.ts +11 -0
- package/ui.container-modal-confirm/UModalConfirm.vue.d.ts +59 -0
- package/ui.container-modal-confirm/config.d.ts +23 -0
- package/ui.container-modal-confirm/constants.d.ts +1 -0
- package/ui.container-modal-confirm/storybook/stories.d.ts +4494 -0
- package/ui.container-modal-confirm/useAttrs.d.ts +11 -0
- package/ui.container-page/UPage.vue.d.ts +47 -0
- package/ui.container-page/config.d.ts +85 -0
- package/ui.container-page/constants.d.ts +1 -0
- package/ui.container-page/storybook/stories.d.ts +8723 -0
- package/ui.container-page/useAttrs.d.ts +13 -0
- package/ui.container-row/URow.vue.d.ts +35 -0
- package/ui.container-row/config.d.ts +85 -0
- package/ui.container-row/constants.d.ts +1 -0
- package/ui.container-row/storybook/stories.d.ts +2619 -0
- package/ui.container-row/useAttrs.d.ts +11 -0
- package/ui.data-list/UDataList.vue +4 -4
- package/ui.data-list/UDataList.vue.d.ts +74 -0
- package/ui.data-list/config.d.ts +48 -0
- package/ui.data-list/constants.d.ts +1 -0
- package/ui.data-list/storybook/stories.d.ts +3342 -0
- package/ui.data-list/useAttrs.d.ts +11 -0
- package/ui.data-table/UTable.vue.d.ts +90 -0
- package/ui.data-table/UTableRow.vue.d.ts +61 -0
- package/ui.data-table/config.d.ts +128 -0
- package/ui.data-table/constants.d.ts +1 -0
- package/ui.data-table/storybook/stories.d.ts +13069 -0
- package/ui.data-table/useAttrs.d.ts +17 -0
- package/ui.data-table/utilTable.d.ts +9 -0
- package/ui.dropdown-badge/UDropdownBadge.vue.d.ts +145 -0
- package/ui.dropdown-badge/config.d.ts +39 -0
- package/ui.dropdown-badge/constants.d.ts +1 -0
- package/ui.dropdown-badge/storybook/stories.d.ts +1246 -0
- package/ui.dropdown-badge/useAttrs.d.ts +13 -0
- package/ui.dropdown-button/UDropdownButton.vue.d.ts +151 -0
- package/ui.dropdown-button/config.d.ts +52 -0
- package/ui.dropdown-button/constants.d.ts +4 -0
- package/ui.dropdown-button/storybook/stories.d.ts +1912 -0
- package/ui.dropdown-button/useAttrs.d.ts +13 -0
- package/ui.dropdown-link/UDropdownLink.vue.d.ts +149 -0
- package/ui.dropdown-link/config.d.ts +37 -0
- package/ui.dropdown-link/constants.d.ts +1 -0
- package/ui.dropdown-link/storybook/stories.d.ts +1333 -0
- package/ui.dropdown-link/useAttrs.d.ts +13 -0
- package/ui.dropdown-list/UDropdownList.vue.d.ts +59 -0
- package/ui.dropdown-list/config.d.ts +77 -0
- package/ui.dropdown-list/constants.d.ts +1 -0
- package/ui.dropdown-list/storybook/stories.d.ts +783 -0
- package/ui.dropdown-list/useAttrs.d.ts +11 -0
- package/ui.dropdown-list/usePointer.d.ts +8 -0
- package/ui.form-calendar/UCalendar.vue.d.ts +31 -0
- package/ui.form-calendar/UCalendarDayView.vue.d.ts +26 -0
- package/ui.form-calendar/UCalendarMonthView.vue.d.ts +26 -0
- package/ui.form-calendar/UCalendarYearView.vue.d.ts +26 -0
- package/ui.form-calendar/config.d.ts +207 -0
- package/ui.form-calendar/constants.d.ts +66 -0
- package/ui.form-calendar/storybook/stories.d.ts +262 -0
- package/ui.form-calendar/useAttrs.d.ts +11 -0
- package/ui.form-calendar/utilCalendar.d.ts +8 -0
- package/ui.form-calendar/utilDate.d.ts +30 -0
- package/ui.form-calendar/utilFormatting.d.ts +68 -0
- package/ui.form-checkbox/UCheckbox.vue.d.ts +50 -0
- package/ui.form-checkbox/config.d.ts +67 -0
- package/ui.form-checkbox/constants.d.ts +1 -0
- package/ui.form-checkbox/storybook/stories.d.ts +1589 -0
- package/ui.form-checkbox/useAttrs.d.ts +14 -0
- package/ui.form-checkbox-group/UCheckboxGroup.vue.d.ts +40 -0
- package/ui.form-checkbox-group/config.d.ts +21 -0
- package/ui.form-checkbox-group/constants.d.ts +1 -0
- package/ui.form-checkbox-group/storybook/stories.d.ts +2441 -0
- package/ui.form-checkbox-group/useAttrs.d.ts +11 -0
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue.d.ts +24 -0
- package/ui.form-checkbox-multi-state/config.d.ts +10 -0
- package/ui.form-checkbox-multi-state/constants.d.ts +1 -0
- package/ui.form-checkbox-multi-state/storybook/stories.d.ts +187 -0
- package/ui.form-checkbox-multi-state/useAttrs.d.ts +13 -0
- package/ui.form-color-picker/UColorPicker.vue.d.ts +28 -0
- package/ui.form-color-picker/config.d.ts +42 -0
- package/ui.form-color-picker/constants.d.ts +1 -0
- package/ui.form-color-picker/storybook/stories.d.ts +316 -0
- package/ui.form-color-picker/useAttrs.d.ts +11 -0
- package/ui.form-date-picker/UDatePicker.vue.d.ts +135 -0
- package/ui.form-date-picker/config.d.ts +184 -0
- package/ui.form-date-picker/constants.d.ts +1 -0
- package/ui.form-date-picker/index.d.ts +1 -0
- package/ui.form-date-picker/storybook/stories.d.ts +3242 -0
- package/ui.form-date-picker/useAttrs.d.ts +14 -0
- package/ui.form-date-picker-range/UDatePickerRange.vue.d.ts +545 -0
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue.d.ts +6 -0
- package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue.d.ts +7 -0
- package/ui.form-date-picker-range/config.d.ts +265 -0
- package/ui.form-date-picker-range/constants.d.ts +20 -0
- package/ui.form-date-picker-range/storybook/stories.d.ts +5545 -0
- package/ui.form-date-picker-range/useAttrs.d.ts +17 -0
- package/ui.form-date-picker-range/useUserFormat.d.ts +3 -0
- package/ui.form-date-picker-range/utilDateRange.d.ts +20 -0
- package/ui.form-date-picker-range/utilValidation.d.ts +3 -0
- package/ui.form-input/UInput.vue +1 -1
- package/ui.form-input/UInput.vue.d.ts +59 -0
- package/ui.form-input/config.d.ts +59 -0
- package/ui.form-input/constants.d.ts +1 -0
- package/ui.form-input/storybook/stories.d.ts +5734 -0
- package/ui.form-input/useAttrs.d.ts +11 -0
- package/ui.form-input-file/UInputFile.vue.d.ts +57 -0
- package/ui.form-input-file/config.d.ts +94 -0
- package/ui.form-input-file/constants.d.ts +1 -0
- package/ui.form-input-file/storybook/stories.d.ts +1116 -0
- package/ui.form-input-file/useAttrs.d.ts +11 -0
- package/ui.form-input-file/utilFileForm.d.ts +1 -0
- package/ui.form-input-money/UInputMoney.vue.d.ts +183 -0
- package/ui.form-input-money/config.d.ts +17 -0
- package/ui.form-input-money/constants.d.ts +1 -0
- package/ui.form-input-money/storybook/stories.d.ts +7519 -0
- package/ui.form-input-money/useAttrs.d.ts +11 -0
- package/ui.form-input-money/useFormatCurrency.d.ts +5 -0
- package/ui.form-input-money/useFormatCurrency.js +1 -1
- package/ui.form-input-money/utilFormat.d.ts +7 -0
- package/ui.form-input-number/UInputNumber.vue +4 -3
- package/ui.form-input-number/UInputNumber.vue.d.ts +30 -0
- package/ui.form-input-number/config.d.ts +40 -0
- package/ui.form-input-number/constants.d.ts +1 -0
- package/ui.form-input-number/storybook/stories.d.ts +363 -0
- package/ui.form-input-number/useAttrs.d.ts +11 -0
- package/ui.form-input-rating/UInputRating.vue.d.ts +49 -0
- package/ui.form-input-rating/config.d.ts +56 -0
- package/ui.form-input-rating/constants.d.ts +1 -0
- package/ui.form-input-rating/storybook/stories.d.ts +1336 -0
- package/ui.form-input-rating/useAttrs.d.ts +11 -0
- package/ui.form-input-search/UInputSearch.vue.d.ts +177 -0
- package/ui.form-input-search/config.d.ts +21 -0
- package/ui.form-input-search/constants.d.ts +1 -0
- package/ui.form-input-search/storybook/stories.d.ts +3325 -0
- package/ui.form-input-search/useAttrs.d.ts +11 -0
- package/ui.form-label/ULabel.vue.d.ts +46 -0
- package/ui.form-label/config.d.ts +139 -0
- package/ui.form-label/config.js +2 -2
- package/ui.form-label/constants.d.ts +8 -0
- package/ui.form-label/storybook/stories.d.ts +1133 -0
- package/ui.form-label/useAttrs.d.ts +11 -0
- package/ui.form-radio/URadio.vue.d.ts +46 -0
- package/ui.form-radio/config.d.ts +30 -0
- package/ui.form-radio/constants.d.ts +1 -0
- package/ui.form-radio/storybook/stories.d.ts +1270 -0
- package/ui.form-radio/useAttrs.d.ts +14 -0
- package/ui.form-radio-group/URadioGroup.vue.d.ts +40 -0
- package/ui.form-radio-group/config.d.ts +21 -0
- package/ui.form-radio-group/constants.d.ts +1 -0
- package/ui.form-radio-group/storybook/stories.d.ts +1239 -0
- package/ui.form-radio-group/useAttrs.d.ts +11 -0
- package/ui.form-select/USelect.vue.d.ts +405 -0
- package/ui.form-select/config.d.ts +146 -0
- package/ui.form-select/constants.d.ts +13 -0
- package/ui.form-select/storybook/stories.d.ts +19025 -0
- package/ui.form-select/useAttrs.d.ts +15 -0
- package/ui.form-select/utilSelect.d.ts +11 -0
- package/ui.form-switch/USwitch.vue.d.ts +30 -0
- package/ui.form-switch/config.d.ts +106 -0
- package/ui.form-switch/constants.d.ts +1 -0
- package/ui.form-switch/storybook/stories.d.ts +703 -0
- package/ui.form-switch/useAttrs.d.ts +13 -0
- package/ui.form-switch/utilVariant.d.ts +169 -0
- package/ui.form-textarea/UTextarea.vue.d.ts +132 -0
- package/ui.form-textarea/config.d.ts +55 -0
- package/ui.form-textarea/constants.d.ts +1 -0
- package/ui.form-textarea/storybook/stories.d.ts +2175 -0
- package/ui.form-textarea/useAttrs.d.ts +11 -0
- package/ui.image-avatar/UAvatar.vue.d.ts +40 -0
- package/ui.image-avatar/config.d.ts +51 -0
- package/ui.image-avatar/constants.d.ts +1 -0
- package/ui.image-avatar/storybook/stories.d.ts +1640 -0
- package/ui.image-avatar/useAttrs.d.ts +11 -0
- package/ui.image-icon/UIcon.vue.d.ts +28 -0
- package/ui.image-icon/config.d.ts +52 -0
- package/ui.image-icon/constants.d.ts +1 -0
- package/ui.image-icon/storybook/stories.d.ts +516 -0
- package/ui.image-icon/useAttrs.d.ts +11 -0
- package/ui.loader/ULoader.vue.d.ts +23 -0
- package/ui.loader/config.d.ts +49 -0
- package/ui.loader/constants.d.ts +2 -0
- package/ui.loader/storybook/stories.d.ts +655 -0
- package/ui.loader/useAttrs.d.ts +11 -0
- package/ui.loader-overlay/ULoaderOverlay.vue.d.ts +21 -0
- package/ui.loader-overlay/config.d.ts +25 -0
- package/ui.loader-overlay/constants.d.ts +1 -0
- package/ui.loader-overlay/storybook/stories.d.ts +362 -0
- package/ui.loader-overlay/useAttrs.d.ts +11 -0
- package/ui.loader-overlay/useLoaderOverlay.d.ts +10 -0
- package/ui.loader-overlay/utilLoaderOverlay.d.ts +2 -0
- package/ui.loader-progress/ULoaderProgress.vue.d.ts +11 -0
- package/ui.loader-progress/config.d.ts +24 -0
- package/ui.loader-progress/constants.d.ts +3 -0
- package/ui.loader-progress/storybook/stories.d.ts +742 -0
- package/ui.loader-progress/useAttrs.d.ts +11 -0
- package/ui.loader-progress/useLoaderProgress.d.ts +15 -0
- package/ui.loader-progress/utilLoaderProgress.d.ts +5 -0
- package/ui.navigation-pagination/UPagination.vue.d.ts +54 -0
- package/ui.navigation-pagination/config.d.ts +41 -0
- package/ui.navigation-pagination/constants.d.ts +1 -0
- package/ui.navigation-pagination/storybook/stories.d.ts +1033 -0
- package/ui.navigation-pagination/useAttrs.d.ts +11 -0
- package/ui.navigation-progress/StepperProgress.vue.d.ts +15 -0
- package/ui.navigation-progress/UProgress.vue.d.ts +41 -0
- package/ui.navigation-progress/config.d.ts +139 -0
- package/ui.navigation-progress/constants.d.ts +5 -0
- package/ui.navigation-progress/storybook/stories.d.ts +2827 -0
- package/ui.navigation-progress/useAttrs.d.ts +11 -0
- package/ui.navigation-tab/UTab.vue.d.ts +27 -0
- package/ui.navigation-tab/config.d.ts +24 -0
- package/ui.navigation-tab/constants.d.ts +1 -0
- package/ui.navigation-tab/storybook/stories.d.ts +316 -0
- package/ui.navigation-tab/useAttrs.d.ts +14 -0
- package/ui.navigation-tabs/UTabs.vue.d.ts +30 -0
- package/ui.navigation-tabs/config.d.ts +24 -0
- package/ui.navigation-tabs/constants.d.ts +1 -0
- package/ui.navigation-tabs/storybook/stories.d.ts +354 -0
- package/ui.navigation-tabs/useAttrs.d.ts +11 -0
- package/ui.other-dot/UDot.vue.d.ts +13 -0
- package/ui.other-dot/config.d.ts +28 -0
- package/ui.other-dot/constants.d.ts +1 -0
- package/ui.other-dot/storybook/stories.d.ts +645 -0
- package/ui.other-dot/useAttrs.d.ts +11 -0
- package/ui.text-alert/UAlert.vue.d.ts +53 -0
- package/ui.text-alert/config.d.ts +75 -0
- package/ui.text-alert/constants.d.ts +1 -0
- package/ui.text-alert/storybook/stories.d.ts +4845 -0
- package/ui.text-alert/useAttrs.d.ts +11 -0
- package/ui.text-badge/UBadge.vue.d.ts +60 -0
- package/ui.text-badge/config.d.ts +102 -0
- package/ui.text-badge/constants.d.ts +1 -0
- package/ui.text-badge/storybook/stories.d.ts +1869 -0
- package/ui.text-badge/useAttrs.d.ts +11 -0
- package/ui.text-block/UText.vue +18 -62
- package/ui.text-block/UText.vue.d.ts +21 -0
- package/ui.text-block/config.d.ts +27 -0
- package/ui.text-block/constants.d.ts +1 -0
- package/ui.text-block/storybook/Docs.mdx +2 -2
- package/ui.text-block/storybook/stories.d.ts +12 -0
- package/ui.text-block/storybook/{stories.js → stories.ts} +12 -7
- package/ui.text-block/types.d.ts +9 -0
- package/ui.text-block/types.ts +33 -0
- package/ui.text-block/useAttrs.d.ts +3 -0
- package/ui.text-block/useAttrs.ts +18 -0
- package/ui.text-empty/UEmpty.vue.d.ts +29 -0
- package/ui.text-empty/config.d.ts +55 -0
- package/ui.text-empty/constants.d.ts +1 -0
- package/ui.text-empty/storybook/stories.d.ts +1212 -0
- package/ui.text-empty/useAttrs.d.ts +11 -0
- package/ui.text-file/UFile.vue +12 -14
- package/ui.text-file/UFile.vue.d.ts +57 -0
- package/ui.text-file/config.d.ts +42 -0
- package/ui.text-file/config.js +12 -2
- package/ui.text-file/constants.d.ts +1 -0
- package/ui.text-file/storybook/stories.d.ts +136 -0
- package/ui.text-file/useAttrs.d.ts +11 -0
- package/ui.text-files/UFiles.vue.d.ts +52 -0
- package/ui.text-files/config.d.ts +10 -0
- package/ui.text-files/config.js +1 -1
- package/ui.text-files/constants.d.ts +1 -0
- package/ui.text-files/storybook/stories.d.ts +131 -0
- package/ui.text-files/useAttrs.d.ts +11 -0
- package/ui.text-header/UHeader.vue.d.ts +33 -0
- package/ui.text-header/config.d.ts +54 -0
- package/ui.text-header/constants.d.ts +1 -0
- package/ui.text-header/storybook/stories.d.ts +694 -0
- package/ui.text-header/useAttrs.d.ts +11 -0
- package/ui.text-money/UMoney.vue.d.ts +48 -0
- package/ui.text-money/config.d.ts +77 -0
- package/ui.text-money/constants.d.ts +1 -0
- package/ui.text-money/storybook/stories.d.ts +2090 -0
- package/ui.text-money/useAttrs.d.ts +11 -0
- package/ui.text-money/utilMoney.d.ts +14 -0
- package/ui.text-money/utilMoney.js +2 -2
- package/ui.text-notify/UNotify.vue.d.ts +13 -0
- package/ui.text-notify/config.d.ts +58 -0
- package/ui.text-notify/constants.d.ts +20 -0
- package/ui.text-notify/storybook/stories.d.ts +653 -0
- package/ui.text-notify/useAttrs.d.ts +11 -0
- package/ui.text-notify/utilNotify.d.ts +7 -0
- package/utils/utilHelper.d.ts +9 -0
- package/utils/utilPlatform.d.ts +6 -0
- package/utils/utilStorybook.d.ts +15 -0
- package/utils/utilUI.d.ts +68 -0
- package/utilsTs/utilHelper.d.ts +9 -0
- package/utilsTs/utilHelper.ts +70 -0
- package/utilsTs/utilPlatform.d.ts +7 -0
- package/utilsTs/utilPlatform.ts +53 -0
- package/utilsTs/utilStorybook.d.ts +24 -0
- package/utilsTs/utilStorybook.ts +292 -0
- package/utilsTs/utilTailwind.d.ts +1 -0
- package/utilsTs/utilTailwind.ts +38 -0
- package/utilsTs/utilTheme.d.ts +8 -0
- package/{utils/utilTheme.js → utilsTs/utilTheme.ts} +31 -27
- package/utilsTs/utilUI.d.ts +67 -0
- package/utilsTs/utilUI.ts +142 -0
- package/web-types.json +30 -120
- package/ui.text-block/useAttrs.js +0 -15
- /package/ui.text-block/{config.js → config.ts} +0 -0
- /package/ui.text-block/{constants.js → constants.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default function useAttrs(props: any): {
|
|
2
|
+
hasSlotContent: (slot: any, props?: {}) => boolean;
|
|
3
|
+
constructor: Function;
|
|
4
|
+
toString(): string;
|
|
5
|
+
toLocaleString(): string;
|
|
6
|
+
valueOf(): Object;
|
|
7
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
8
|
+
isPrototypeOf(v: Object): boolean;
|
|
9
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
10
|
+
config: import("vue").Ref<{}, {}>;
|
|
11
|
+
};
|
package/ui.text-block/UText.vue
CHANGED
|
@@ -1,71 +1,27 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
<!-- @slot Use it to add something inside. -->
|
|
4
|
-
<div v-if="!hasSlotContent($slots['default'])" v-bind="htmlAttrs" v-html="html" />
|
|
5
|
-
<slot />
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { getDefault } from "../utilsTs/utilUI";
|
|
8
3
|
|
|
9
|
-
|
|
10
|
-
import
|
|
4
|
+
import { UText } from "./constants";
|
|
5
|
+
import defaultConfig from "./config";
|
|
6
|
+
import useAttrs from "./useAttrs";
|
|
11
7
|
|
|
12
|
-
import {
|
|
13
|
-
import defaultConfig from "./config.js";
|
|
14
|
-
import useAttrs from "./useAttrs.js";
|
|
8
|
+
import type { UTextProps } from "./types";
|
|
15
9
|
|
|
16
10
|
defineOptions({ inheritAttrs: false });
|
|
17
11
|
|
|
18
|
-
const props = defineProps({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
html: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: undefined,
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Text size.
|
|
29
|
-
* @values sm, md, lg
|
|
30
|
-
*/
|
|
31
|
-
size: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: getDefault(defaultConfig, UText).size,
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Text align.
|
|
38
|
-
* @values left, center, right
|
|
39
|
-
*/
|
|
40
|
-
align: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: getDefault(defaultConfig, UText).align,
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Remove line height (useful for 1-line text).
|
|
47
|
-
*/
|
|
48
|
-
line: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: getDefault(defaultConfig, UText).line,
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Component config object.
|
|
55
|
-
*/
|
|
56
|
-
config: {
|
|
57
|
-
type: Object,
|
|
58
|
-
default: () => ({}),
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Data-test attribute for automated testing.
|
|
63
|
-
*/
|
|
64
|
-
dataTest: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: "",
|
|
67
|
-
},
|
|
12
|
+
const props = withDefaults(defineProps<UTextProps>(), {
|
|
13
|
+
size: getDefault(defaultConfig, UText).size,
|
|
14
|
+
align: getDefault(defaultConfig, UText).align,
|
|
15
|
+
line: getDefault(defaultConfig, UText).line,
|
|
68
16
|
});
|
|
69
17
|
|
|
70
18
|
const { wrapperAttrs, htmlAttrs, hasSlotContent } = useAttrs(props);
|
|
71
19
|
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<div v-bind="wrapperAttrs" :data-test="dataTest">
|
|
23
|
+
<!-- @slot Use it to add something inside. -->
|
|
24
|
+
<div v-if="!hasSlotContent($slots['default'])" v-bind="htmlAttrs" v-html="html" />
|
|
25
|
+
<slot />
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { UTextProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<UTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UTextProps> & Readonly<{}>, {
|
|
11
|
+
size: "sm" | "md" | "lg";
|
|
12
|
+
line: boolean;
|
|
13
|
+
align: "left" | "center" | "right";
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: {
|
|
3
|
+
base: string;
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
};
|
|
10
|
+
align: {
|
|
11
|
+
left: string;
|
|
12
|
+
center: string;
|
|
13
|
+
right: string;
|
|
14
|
+
};
|
|
15
|
+
line: {
|
|
16
|
+
true: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
html: string;
|
|
21
|
+
defaults: {
|
|
22
|
+
size: string;
|
|
23
|
+
align: string;
|
|
24
|
+
line: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UText = "UText";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
2
|
import { getSource } from "../../utils/utilStorybook.js";
|
|
3
3
|
|
|
4
|
-
import * as stories from "./stories.
|
|
5
|
-
import defaultConfig from "../config.
|
|
4
|
+
import * as stories from "./stories.ts";
|
|
5
|
+
import defaultConfig from "../config.ts?raw"
|
|
6
6
|
|
|
7
7
|
<Meta of={stories} />
|
|
8
8
|
<Title of={stories} />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
|
+
import type { UTextProps } from "../types";
|
|
3
|
+
interface UTextArgs extends UTextProps {
|
|
4
|
+
slotTemplate?: string;
|
|
5
|
+
enum: "size";
|
|
6
|
+
}
|
|
7
|
+
declare const _default: Meta;
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<UTextArgs>;
|
|
10
|
+
export declare const Sizes: StoryFn<UTextArgs>;
|
|
11
|
+
export declare const Paragraphs: StoryFn<UTextArgs>;
|
|
12
|
+
export declare const List: StoryFn<UTextArgs>;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
1
2
|
import { getArgTypes, getSlotNames, getSlotsFragment } from "../../utils/utilStorybook.js";
|
|
2
3
|
|
|
3
4
|
import UText from "../../ui.text-block/UText.vue";
|
|
4
5
|
import URow from "../../ui.container-row/URow.vue";
|
|
5
6
|
|
|
7
|
+
import type { UTextProps } from "../types";
|
|
8
|
+
|
|
9
|
+
interface UTextArgs extends UTextProps {
|
|
10
|
+
slotTemplate?: string;
|
|
11
|
+
enum: "size";
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* The `UText` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.text-block)
|
|
8
16
|
*/
|
|
@@ -14,7 +22,7 @@ export default {
|
|
|
14
22
|
...getArgTypes(UText.__name),
|
|
15
23
|
},
|
|
16
24
|
args: {},
|
|
17
|
-
};
|
|
25
|
+
} as Meta;
|
|
18
26
|
|
|
19
27
|
const defaultTemplate = `
|
|
20
28
|
<p>
|
|
@@ -24,7 +32,7 @@ const defaultTemplate = `
|
|
|
24
32
|
</p>
|
|
25
33
|
`;
|
|
26
34
|
|
|
27
|
-
const DefaultTemplate = (args) => ({
|
|
35
|
+
const DefaultTemplate: StoryFn<UTextArgs> = (args) => ({
|
|
28
36
|
components: { UText, URow },
|
|
29
37
|
setup() {
|
|
30
38
|
const slots = getSlotNames(UText.__name);
|
|
@@ -38,12 +46,12 @@ const DefaultTemplate = (args) => ({
|
|
|
38
46
|
`,
|
|
39
47
|
});
|
|
40
48
|
|
|
41
|
-
const EnumVariantTemplate = (args, { argTypes }
|
|
49
|
+
const EnumVariantTemplate: StoryFn<UTextArgs> = (args, { argTypes }) => ({
|
|
42
50
|
components: { UText, URow },
|
|
43
51
|
setup() {
|
|
44
52
|
return {
|
|
45
53
|
args,
|
|
46
|
-
options: argTypes[args.enum]
|
|
54
|
+
options: argTypes?.[args.enum]?.options || [],
|
|
47
55
|
};
|
|
48
56
|
},
|
|
49
57
|
template: `
|
|
@@ -88,7 +96,6 @@ Paragraphs.args = {
|
|
|
88
96
|
rapidly changing landscape and emerge stronger and more competitive.
|
|
89
97
|
</p>
|
|
90
98
|
</template>
|
|
91
|
-
|
|
92
99
|
`,
|
|
93
100
|
};
|
|
94
101
|
|
|
@@ -102,8 +109,6 @@ List.args = {
|
|
|
102
109
|
<li>Update your profile information</li>
|
|
103
110
|
<li>Check your email for updates</li>
|
|
104
111
|
</ul>
|
|
105
|
-
|
|
106
|
-
|
|
107
112
|
<ol>
|
|
108
113
|
<li>Create an account by signing up</li>
|
|
109
114
|
<li>Verify your email address</li>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import defaultConfig from "./config";
|
|
2
|
+
|
|
3
|
+
export interface UTextProps {
|
|
4
|
+
/**
|
|
5
|
+
* HTML markdown or plain text.
|
|
6
|
+
*/
|
|
7
|
+
html?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Text size.
|
|
11
|
+
*/
|
|
12
|
+
size?: "sm" | "md" | "lg";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Text align.
|
|
16
|
+
*/
|
|
17
|
+
align?: "left" | "center" | "right";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove line height (useful for 1-line text).
|
|
21
|
+
*/
|
|
22
|
+
line?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Component config object.
|
|
26
|
+
*/
|
|
27
|
+
config?: Partial<typeof defaultConfig>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Data-test attribute for automated testing.
|
|
31
|
+
*/
|
|
32
|
+
dataTest?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import useUI from "../composablesTs/useUI";
|
|
2
|
+
|
|
3
|
+
import defaultConfig from "./config";
|
|
4
|
+
|
|
5
|
+
import type { UseAttrs } from "../types";
|
|
6
|
+
import type { UTextProps } from "./types";
|
|
7
|
+
|
|
8
|
+
export default function useAttrs(props: UTextProps) {
|
|
9
|
+
const { config, getKeysAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
|
|
10
|
+
|
|
11
|
+
const keysAttrs = getKeysAttrs();
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
config,
|
|
15
|
+
...keysAttrs,
|
|
16
|
+
hasSlotContent,
|
|
17
|
+
} as UseAttrs;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
description: string;
|
|
8
|
+
title: string;
|
|
9
|
+
config: Record<string, any>;
|
|
10
|
+
dataTest: string;
|
|
11
|
+
size?: string | undefined;
|
|
12
|
+
$props: {
|
|
13
|
+
readonly description?: string | undefined;
|
|
14
|
+
readonly title?: string | undefined;
|
|
15
|
+
readonly config?: Record<string, any> | undefined;
|
|
16
|
+
readonly dataTest?: string | undefined;
|
|
17
|
+
readonly size?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
type __VLS_TemplateResult = {
|
|
21
|
+
slots: {
|
|
22
|
+
header?(_: {}): any;
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
footer?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: {};
|
|
27
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
28
|
+
};
|
|
29
|
+
declare var __VLS_inheritedAttrs: {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let wrapper: string;
|
|
3
|
+
namespace header {
|
|
4
|
+
let base: string;
|
|
5
|
+
namespace variants {
|
|
6
|
+
namespace size {
|
|
7
|
+
let sm: string;
|
|
8
|
+
let md: string;
|
|
9
|
+
let lg: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
namespace emptyIconWrapper {
|
|
14
|
+
let base_1: string;
|
|
15
|
+
export { base_1 as base };
|
|
16
|
+
export namespace variants_1 {
|
|
17
|
+
export namespace size_1 {
|
|
18
|
+
let sm_1: string;
|
|
19
|
+
export { sm_1 as sm };
|
|
20
|
+
let md_1: string;
|
|
21
|
+
export { md_1 as md };
|
|
22
|
+
let lg_1: string;
|
|
23
|
+
export { lg_1 as lg };
|
|
24
|
+
}
|
|
25
|
+
export { size_1 as size };
|
|
26
|
+
}
|
|
27
|
+
export { variants_1 as variants };
|
|
28
|
+
}
|
|
29
|
+
let emptyIcon: string;
|
|
30
|
+
let title: string;
|
|
31
|
+
namespace description {
|
|
32
|
+
let base_2: string;
|
|
33
|
+
export { base_2 as base };
|
|
34
|
+
export namespace variants_2 {
|
|
35
|
+
export namespace size_2 {
|
|
36
|
+
let sm_2: string;
|
|
37
|
+
export { sm_2 as sm };
|
|
38
|
+
let md_2: string;
|
|
39
|
+
export { md_2 as md };
|
|
40
|
+
let lg_2: string;
|
|
41
|
+
export { lg_2 as lg };
|
|
42
|
+
}
|
|
43
|
+
export { size_2 as size };
|
|
44
|
+
}
|
|
45
|
+
export { variants_2 as variants };
|
|
46
|
+
}
|
|
47
|
+
let footer: string;
|
|
48
|
+
namespace defaults {
|
|
49
|
+
let size_3: string;
|
|
50
|
+
export { size_3 as size };
|
|
51
|
+
let emptyIcon_1: string;
|
|
52
|
+
export { emptyIcon_1 as emptyIcon };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const UEmpty: "UEmpty";
|