vueless 0.0.473 → 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 +2 -0
- 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} +33 -24
- 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/utils/utilUI.js +1 -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} +44 -23
- 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,252 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let id: string;
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { UIcon as component };
|
|
5
|
+
export let args: {};
|
|
6
|
+
export let argTypes: {
|
|
7
|
+
defaultTemplate?: {
|
|
8
|
+
table: {
|
|
9
|
+
disable: boolean;
|
|
10
|
+
};
|
|
11
|
+
} | undefined;
|
|
12
|
+
slotTemplate?: {
|
|
13
|
+
table: {
|
|
14
|
+
disable: boolean;
|
|
15
|
+
};
|
|
16
|
+
} | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export default _default;
|
|
20
|
+
export function Default(args: any): {
|
|
21
|
+
components: {
|
|
22
|
+
UIcon: import("vue").DefineComponent<{}, {
|
|
23
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
24
|
+
config: Record<string, any>;
|
|
25
|
+
name: string;
|
|
26
|
+
src: Record<string, any>;
|
|
27
|
+
tooltip: string;
|
|
28
|
+
tooltipSettings: Record<string, any>;
|
|
29
|
+
dataTest: string;
|
|
30
|
+
internal: boolean;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
size?: string | undefined;
|
|
33
|
+
interactive?: boolean | undefined;
|
|
34
|
+
variant?: string | undefined;
|
|
35
|
+
$props: {
|
|
36
|
+
readonly config?: Record<string, any> | undefined;
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
readonly src?: Record<string, any> | undefined;
|
|
39
|
+
readonly tooltip?: string | undefined;
|
|
40
|
+
readonly tooltipSettings?: Record<string, any> | undefined;
|
|
41
|
+
readonly dataTest?: string | undefined;
|
|
42
|
+
readonly internal?: boolean | undefined;
|
|
43
|
+
readonly color?: string | undefined;
|
|
44
|
+
readonly size?: string | undefined;
|
|
45
|
+
readonly interactive?: boolean | undefined;
|
|
46
|
+
readonly variant?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
};
|
|
50
|
+
directives: {
|
|
51
|
+
tooltip: {
|
|
52
|
+
mounted(el: any, bindings: any): void;
|
|
53
|
+
updated(el: any, bindings: any): void;
|
|
54
|
+
unmounted(el: any): void;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
setup(): {
|
|
58
|
+
args: any;
|
|
59
|
+
};
|
|
60
|
+
template: string;
|
|
61
|
+
};
|
|
62
|
+
export namespace Default {
|
|
63
|
+
export namespace args_1 {
|
|
64
|
+
let tooltip: string;
|
|
65
|
+
}
|
|
66
|
+
export { args_1 as args };
|
|
67
|
+
}
|
|
68
|
+
export function Settings(args: any): {
|
|
69
|
+
components: {
|
|
70
|
+
UIcon: import("vue").DefineComponent<{}, {
|
|
71
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
72
|
+
config: Record<string, any>;
|
|
73
|
+
name: string;
|
|
74
|
+
src: Record<string, any>;
|
|
75
|
+
tooltip: string;
|
|
76
|
+
tooltipSettings: Record<string, any>;
|
|
77
|
+
dataTest: string;
|
|
78
|
+
internal: boolean;
|
|
79
|
+
color?: string | undefined;
|
|
80
|
+
size?: string | undefined;
|
|
81
|
+
interactive?: boolean | undefined;
|
|
82
|
+
variant?: string | undefined;
|
|
83
|
+
$props: {
|
|
84
|
+
readonly config?: Record<string, any> | undefined;
|
|
85
|
+
readonly name?: string | undefined;
|
|
86
|
+
readonly src?: Record<string, any> | undefined;
|
|
87
|
+
readonly tooltip?: string | undefined;
|
|
88
|
+
readonly tooltipSettings?: Record<string, any> | undefined;
|
|
89
|
+
readonly dataTest?: string | undefined;
|
|
90
|
+
readonly internal?: boolean | undefined;
|
|
91
|
+
readonly color?: string | undefined;
|
|
92
|
+
readonly size?: string | undefined;
|
|
93
|
+
readonly interactive?: boolean | undefined;
|
|
94
|
+
readonly variant?: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
};
|
|
98
|
+
directives: {
|
|
99
|
+
tooltip: {
|
|
100
|
+
mounted(el: any, bindings: any): void;
|
|
101
|
+
updated(el: any, bindings: any): void;
|
|
102
|
+
unmounted(el: any): void;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
setup(): {
|
|
106
|
+
args: any;
|
|
107
|
+
};
|
|
108
|
+
template: string;
|
|
109
|
+
};
|
|
110
|
+
export namespace Settings {
|
|
111
|
+
export namespace args_2 {
|
|
112
|
+
export namespace tooltip_1 {
|
|
113
|
+
let content: string;
|
|
114
|
+
let placement: string;
|
|
115
|
+
}
|
|
116
|
+
export { tooltip_1 as tooltip };
|
|
117
|
+
}
|
|
118
|
+
export { args_2 as args };
|
|
119
|
+
}
|
|
120
|
+
export function Placement(args: any): {
|
|
121
|
+
components: {
|
|
122
|
+
UIcon: import("vue").DefineComponent<{}, {
|
|
123
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
124
|
+
config: Record<string, any>;
|
|
125
|
+
name: string;
|
|
126
|
+
src: Record<string, any>;
|
|
127
|
+
tooltip: string;
|
|
128
|
+
tooltipSettings: Record<string, any>;
|
|
129
|
+
dataTest: string;
|
|
130
|
+
internal: boolean;
|
|
131
|
+
color?: string | undefined;
|
|
132
|
+
size?: string | undefined;
|
|
133
|
+
interactive?: boolean | undefined;
|
|
134
|
+
variant?: string | undefined;
|
|
135
|
+
$props: {
|
|
136
|
+
readonly config?: Record<string, any> | undefined;
|
|
137
|
+
readonly name?: string | undefined;
|
|
138
|
+
readonly src?: Record<string, any> | undefined;
|
|
139
|
+
readonly tooltip?: string | undefined;
|
|
140
|
+
readonly tooltipSettings?: Record<string, any> | undefined;
|
|
141
|
+
readonly dataTest?: string | undefined;
|
|
142
|
+
readonly internal?: boolean | undefined;
|
|
143
|
+
readonly color?: string | undefined;
|
|
144
|
+
readonly size?: string | undefined;
|
|
145
|
+
readonly interactive?: boolean | undefined;
|
|
146
|
+
readonly variant?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
149
|
+
URow: {
|
|
150
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
151
|
+
config: Record<string, any>;
|
|
152
|
+
dataTest: string;
|
|
153
|
+
reverse?: boolean | undefined;
|
|
154
|
+
content?: string | undefined;
|
|
155
|
+
gap?: string | undefined;
|
|
156
|
+
align?: string | undefined;
|
|
157
|
+
justify?: string | undefined;
|
|
158
|
+
wrap?: boolean | undefined;
|
|
159
|
+
noMobile?: boolean | undefined;
|
|
160
|
+
$props: {
|
|
161
|
+
readonly config?: Record<string, any> | undefined;
|
|
162
|
+
readonly dataTest?: string | undefined;
|
|
163
|
+
readonly reverse?: boolean | undefined;
|
|
164
|
+
readonly content?: string | undefined;
|
|
165
|
+
readonly gap?: string | undefined;
|
|
166
|
+
readonly align?: string | undefined;
|
|
167
|
+
readonly justify?: string | undefined;
|
|
168
|
+
readonly wrap?: boolean | undefined;
|
|
169
|
+
readonly noMobile?: boolean | undefined;
|
|
170
|
+
};
|
|
171
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{}> & Readonly<{}>, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
172
|
+
P: {};
|
|
173
|
+
B: {};
|
|
174
|
+
D: {};
|
|
175
|
+
C: {};
|
|
176
|
+
M: {};
|
|
177
|
+
Defaults: {};
|
|
178
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
179
|
+
config: Record<string, any>;
|
|
180
|
+
dataTest: string;
|
|
181
|
+
reverse?: boolean | undefined;
|
|
182
|
+
content?: string | undefined;
|
|
183
|
+
gap?: string | undefined;
|
|
184
|
+
align?: string | undefined;
|
|
185
|
+
justify?: string | undefined;
|
|
186
|
+
wrap?: boolean | undefined;
|
|
187
|
+
noMobile?: boolean | undefined;
|
|
188
|
+
$props: {
|
|
189
|
+
readonly config?: Record<string, any> | undefined;
|
|
190
|
+
readonly dataTest?: string | undefined;
|
|
191
|
+
readonly reverse?: boolean | undefined;
|
|
192
|
+
readonly content?: string | undefined;
|
|
193
|
+
readonly gap?: string | undefined;
|
|
194
|
+
readonly align?: string | undefined;
|
|
195
|
+
readonly justify?: string | undefined;
|
|
196
|
+
readonly wrap?: boolean | undefined;
|
|
197
|
+
readonly noMobile?: boolean | undefined;
|
|
198
|
+
};
|
|
199
|
+
}, {}, {}, {}, {}>;
|
|
200
|
+
__isFragment?: never;
|
|
201
|
+
__isTeleport?: never;
|
|
202
|
+
__isSuspense?: never;
|
|
203
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
204
|
+
config: Record<string, any>;
|
|
205
|
+
dataTest: string;
|
|
206
|
+
reverse?: boolean | undefined;
|
|
207
|
+
content?: string | undefined;
|
|
208
|
+
gap?: string | undefined;
|
|
209
|
+
align?: string | undefined;
|
|
210
|
+
justify?: string | undefined;
|
|
211
|
+
wrap?: boolean | undefined;
|
|
212
|
+
noMobile?: boolean | undefined;
|
|
213
|
+
$props: {
|
|
214
|
+
readonly config?: Record<string, any> | undefined;
|
|
215
|
+
readonly dataTest?: string | undefined;
|
|
216
|
+
readonly reverse?: boolean | undefined;
|
|
217
|
+
readonly content?: string | undefined;
|
|
218
|
+
readonly gap?: string | undefined;
|
|
219
|
+
readonly align?: string | undefined;
|
|
220
|
+
readonly justify?: string | undefined;
|
|
221
|
+
readonly wrap?: boolean | undefined;
|
|
222
|
+
readonly noMobile?: boolean | undefined;
|
|
223
|
+
};
|
|
224
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
225
|
+
$slots: {
|
|
226
|
+
default?(_: {}): any;
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
directives: {
|
|
231
|
+
tooltip: {
|
|
232
|
+
mounted(el: any, bindings: any): void;
|
|
233
|
+
updated(el: any, bindings: any): void;
|
|
234
|
+
unmounted(el: any): void;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
setup(): {
|
|
238
|
+
args: any;
|
|
239
|
+
};
|
|
240
|
+
template: string;
|
|
241
|
+
};
|
|
242
|
+
export namespace Placement {
|
|
243
|
+
export namespace args_3 {
|
|
244
|
+
let tooltip_2: {};
|
|
245
|
+
export { tooltip_2 as tooltip };
|
|
246
|
+
let _enum: string;
|
|
247
|
+
export { _enum as enum };
|
|
248
|
+
export let options: string[];
|
|
249
|
+
}
|
|
250
|
+
export { args_3 as args };
|
|
251
|
+
}
|
|
252
|
+
import UIcon from "../../../ui.image-icon/UIcon.vue";
|
|
@@ -36,11 +36,11 @@ const EnumTemplate = (args) => ({
|
|
|
36
36
|
},
|
|
37
37
|
template: `
|
|
38
38
|
<URow>
|
|
39
|
-
<UIcon
|
|
40
|
-
v-for="option in args.options"
|
|
41
|
-
interactive
|
|
42
|
-
name="sentiment_satisfied"
|
|
43
|
-
v-tooltip="{ content: option, ...args.tooltip, [args.enum]: option }"
|
|
39
|
+
<UIcon
|
|
40
|
+
v-for="option in args.options"
|
|
41
|
+
interactive
|
|
42
|
+
name="sentiment_satisfied"
|
|
43
|
+
v-tooltip="{ content: option, ...args.tooltip, [args.enum]: option }"
|
|
44
44
|
>
|
|
45
45
|
</URow>
|
|
46
46
|
`,
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import type { CreateVuelessOptions } from './types';
|
|
3
|
+
export { setTitle } from "./utils/utilHelper.js";
|
|
4
|
+
export { setTheme } from "./utilsTs/utilTheme";
|
|
5
|
+
export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n.js";
|
|
6
|
+
export { default as defaultEnLocale } from "./adatper.locale/locales/en.js";
|
|
7
|
+
export { useLocale } from "./composables/useLocale.js";
|
|
8
|
+
export { useLoaderProgress } from "./ui.loader-progress/useLoaderProgress.js";
|
|
9
|
+
export { loaderProgressOn, loaderProgressOff } from "./ui.loader-progress/utilLoaderProgress.js";
|
|
10
|
+
export { useLoaderOverlay } from "./ui.loader-overlay/useLoaderOverlay.js";
|
|
11
|
+
export { loaderOverlayOn, loaderOverlayOff } from "./ui.loader-overlay/utilLoaderOverlay.js";
|
|
12
|
+
export { notify, notifySuccess, notifyWarning, notifyError, clearNotifications, setDelayedNotify, getDelayedNotify, } from "./ui.text-notify/utilNotify.js";
|
|
13
|
+
export declare function createVueless(options?: CreateVuelessOptions): {
|
|
14
|
+
install: (app: App) => void;
|
|
15
|
+
};
|
package/{index.js → index.ts}
RENAMED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
/* eslint-disable
|
|
1
|
+
/* eslint-disable prettier/prettier */
|
|
2
2
|
import { createLocale, LocaleSymbol } from "./composables/useLocale.js";
|
|
3
3
|
import { createLoaderOverlay, LoaderOverlaySymbol } from "./ui.loader-overlay/useLoaderOverlay.js";
|
|
4
4
|
import { createLoaderProgress, LoaderProgressSymbol } from "./ui.loader-progress/useLoaderProgress.js";
|
|
5
|
-
import { themeInit } from "./
|
|
5
|
+
import { themeInit } from "./utilsTs/utilTheme";
|
|
6
|
+
|
|
7
|
+
import type { App } from 'vue'
|
|
8
|
+
import type { CreateVuelessOptions } from './types'
|
|
6
9
|
|
|
7
10
|
export { setTitle } from "./utils/utilHelper.js";
|
|
8
|
-
export { setTheme } from "./
|
|
11
|
+
export { setTheme } from "./utilsTs/utilTheme";
|
|
9
12
|
export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n.js";
|
|
10
13
|
export { default as defaultEnLocale } from "./adatper.locale/locales/en.js";
|
|
11
14
|
export { useLocale } from "./composables/useLocale.js";
|
|
@@ -22,14 +25,14 @@ export {
|
|
|
22
25
|
setDelayedNotify,
|
|
23
26
|
getDelayedNotify,
|
|
24
27
|
} from "./ui.text-notify/utilNotify.js";
|
|
25
|
-
/* eslint-enable
|
|
28
|
+
/* eslint-enable prettier/prettier */
|
|
26
29
|
|
|
27
|
-
export function createVueless(options = {}) {
|
|
30
|
+
export function createVueless(options: CreateVuelessOptions = {}) {
|
|
28
31
|
const i18n = createLocale(options.i18n);
|
|
29
32
|
const loaderOverlay = createLoaderOverlay();
|
|
30
33
|
const loaderProgress = createLoaderProgress();
|
|
31
34
|
|
|
32
|
-
const install = (app) => {
|
|
35
|
+
const install = (app: App) => {
|
|
33
36
|
app.provide(LocaleSymbol, i18n);
|
|
34
37
|
app.provide(LoaderOverlaySymbol, loaderOverlay);
|
|
35
38
|
app.provide(LoaderProgressSymbol, loaderProgress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.475",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"homepage": "https://vueless.com",
|
|
23
23
|
"author": "Johnny Grid",
|
|
24
|
-
"main": "index.
|
|
24
|
+
"main": "index.ts",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
@@ -31,13 +31,16 @@
|
|
|
31
31
|
"dev": "npx @vueless/web-types && node prepare.icons && STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
|
|
32
32
|
"build": "npx @vueless/web-types && node prepare.icons && storybook build --docs",
|
|
33
33
|
"preview": "vite preview --host --outDir=storybook-static",
|
|
34
|
-
"
|
|
34
|
+
"ts:check": "vue-tsc --build --force --noEmit",
|
|
35
|
+
"ts:build": "vue-tsc --build --force --declaration --emitDeclarationOnly",
|
|
36
|
+
"release:prepare": "npx @vueless/web-types && node prepare.icons && rm -rf dist && mkdir -p dist && cp -r src/. package.json LICENSE web-types.json README.md dist/ && node prepare.package && npm run ts:build",
|
|
37
|
+
"release:beta": "release-it patch --ci --npm.publish --npm.tag=beta",
|
|
35
38
|
"release:patch": "release-it patch --ci --npm.publish",
|
|
36
39
|
"release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
|
|
37
40
|
"release:major": "release-it major --ci --npm.publish --git.tag --github.release",
|
|
38
|
-
"lint": "eslint --
|
|
39
|
-
"lint:fix": "eslint --
|
|
40
|
-
"lint:ci": "eslint --
|
|
41
|
+
"lint": "eslint --no-fix src/ .storybook/",
|
|
42
|
+
"lint:fix": "eslint --fix src/ .storybook/",
|
|
43
|
+
"lint:ci": "eslint --no-fix --max-warnings=0"
|
|
41
44
|
},
|
|
42
45
|
"dependencies": {
|
|
43
46
|
"@tailwindcss/forms": "^0.5.7",
|
|
@@ -49,30 +52,38 @@
|
|
|
49
52
|
"vuedraggable": "^4.1.0"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
55
|
+
"@eslint/js": "^9.12.0",
|
|
52
56
|
"@material-symbols/svg-500": "^0.17.4",
|
|
53
57
|
"@release-it/bumper": "^6.0.1",
|
|
58
|
+
"@tsconfig/node20": "^20.1.4",
|
|
59
|
+
"@types/jsdom": "^21.1.7",
|
|
60
|
+
"@types/lodash-es": "^4.17.12",
|
|
61
|
+
"@types/node": "^22.7.7",
|
|
54
62
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
55
|
-
"@
|
|
63
|
+
"@vitest/eslint-plugin": "^1.1.7",
|
|
64
|
+
"@vue/eslint-config-prettier": "^10.0.0",
|
|
65
|
+
"@vue/eslint-config-typescript": "^14.1.1",
|
|
66
|
+
"@vue/tsconfig": "^0.5.1",
|
|
56
67
|
"@vueless/plugin-vite": "^0.0.74",
|
|
57
68
|
"@vueless/storybook": "^0.0.37",
|
|
58
69
|
"@vueless/web-types": "^0.0.17",
|
|
59
70
|
"autoprefixer": "^10.4.19",
|
|
60
71
|
"cssnano": "^6.1.2",
|
|
61
|
-
"eslint": "^
|
|
62
|
-
"eslint-plugin-
|
|
63
|
-
"eslint-plugin-
|
|
64
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
65
|
-
"eslint-plugin-tailwindcss": "^3.15.1",
|
|
72
|
+
"eslint": "^9.12.0",
|
|
73
|
+
"eslint-plugin-storybook": "^0.10.0--canary.156.ce8985b.0",
|
|
74
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
66
75
|
"eslint-plugin-vue": "^9.25.0",
|
|
76
|
+
"globals": "^15.11.0",
|
|
77
|
+
"jsdom": "^25.0.1",
|
|
67
78
|
"postcss": "^8.4.38",
|
|
68
|
-
"prettier": "^3.
|
|
69
|
-
"prettier-eslint": "^16.3.0",
|
|
79
|
+
"prettier": "^3.3.3",
|
|
70
80
|
"release-it": "^17.2.1",
|
|
71
|
-
"
|
|
81
|
+
"typescript": "^5.6.3",
|
|
82
|
+
"vite": "^5.4.9",
|
|
72
83
|
"vite-plugin-compression": "^0.5.1",
|
|
73
|
-
"vite-plugin-eslint": "^1.8.1",
|
|
74
84
|
"vue": "^3.5.4",
|
|
75
|
-
"vue-router": "^4.3.2"
|
|
85
|
+
"vue-router": "^4.3.2",
|
|
86
|
+
"vue-tsc": "^2.1.6"
|
|
76
87
|
},
|
|
77
88
|
"resolutions": {
|
|
78
89
|
"jackspeak": "2.3.6"
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import forms from "@tailwindcss/forms";
|
|
2
|
+
import type { TailwindColorShades } from "./types";
|
|
3
|
+
export declare const vuelessContent: string[];
|
|
4
|
+
export declare const vuelessContentVue: string[];
|
|
5
|
+
export declare const vuelessContentNuxt: string[];
|
|
6
|
+
export declare const vuelessTailwindConfig: {
|
|
7
|
+
darkMode: string[];
|
|
8
|
+
content: string[];
|
|
9
|
+
theme: {
|
|
10
|
+
extend: {
|
|
11
|
+
colors: {
|
|
12
|
+
brand: Partial<TailwindColorShades>;
|
|
13
|
+
gray: Partial<TailwindColorShades>;
|
|
14
|
+
cool: {
|
|
15
|
+
'50': "#f9fafb";
|
|
16
|
+
'100': "#f3f4f6";
|
|
17
|
+
'200': "#e5e7eb";
|
|
18
|
+
'300': "#d1d5db";
|
|
19
|
+
'400': "#9ca3af";
|
|
20
|
+
'500': "#6b7280";
|
|
21
|
+
'600': "#4b5563";
|
|
22
|
+
'700': "#374151";
|
|
23
|
+
'800': "#1f2937";
|
|
24
|
+
'900': "#111827";
|
|
25
|
+
'950': "#030712";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
spacing: {
|
|
29
|
+
"safe-top": string;
|
|
30
|
+
"safe-bottom": string;
|
|
31
|
+
"safe-left": string;
|
|
32
|
+
"safe-right": string;
|
|
33
|
+
};
|
|
34
|
+
fontSize: {
|
|
35
|
+
"2xs": string[];
|
|
36
|
+
};
|
|
37
|
+
borderRadius: {
|
|
38
|
+
dynamic: string;
|
|
39
|
+
};
|
|
40
|
+
ringWidth: {
|
|
41
|
+
dynamic: string;
|
|
42
|
+
};
|
|
43
|
+
ringOffsetWidth: {
|
|
44
|
+
dynamic: string;
|
|
45
|
+
};
|
|
46
|
+
ringOffsetColor: {
|
|
47
|
+
dynamic: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
configViewer: {
|
|
51
|
+
themeReplacements: {
|
|
52
|
+
"var(--vl-ring)": number;
|
|
53
|
+
"var(--vl-ring-offset)": number;
|
|
54
|
+
"var(--vl-ring-offset-color)": string;
|
|
55
|
+
"var(--vl-rounding)": number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare function vuelessPreset(): {
|
|
61
|
+
plugins: (typeof forms)[];
|
|
62
|
+
safelist: any;
|
|
63
|
+
darkMode: string[];
|
|
64
|
+
content: string[];
|
|
65
|
+
theme: {
|
|
66
|
+
extend: {
|
|
67
|
+
colors: {
|
|
68
|
+
brand: Partial<TailwindColorShades>;
|
|
69
|
+
gray: Partial<TailwindColorShades>;
|
|
70
|
+
cool: {
|
|
71
|
+
'50': "#f9fafb";
|
|
72
|
+
'100': "#f3f4f6";
|
|
73
|
+
'200': "#e5e7eb";
|
|
74
|
+
'300': "#d1d5db";
|
|
75
|
+
'400': "#9ca3af";
|
|
76
|
+
'500': "#6b7280";
|
|
77
|
+
'600': "#4b5563";
|
|
78
|
+
'700': "#374151";
|
|
79
|
+
'800': "#1f2937";
|
|
80
|
+
'900': "#111827";
|
|
81
|
+
'950': "#030712";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
spacing: {
|
|
85
|
+
"safe-top": string;
|
|
86
|
+
"safe-bottom": string;
|
|
87
|
+
"safe-left": string;
|
|
88
|
+
"safe-right": string;
|
|
89
|
+
};
|
|
90
|
+
fontSize: {
|
|
91
|
+
"2xs": string[];
|
|
92
|
+
};
|
|
93
|
+
borderRadius: {
|
|
94
|
+
dynamic: string;
|
|
95
|
+
};
|
|
96
|
+
ringWidth: {
|
|
97
|
+
dynamic: string;
|
|
98
|
+
};
|
|
99
|
+
ringOffsetWidth: {
|
|
100
|
+
dynamic: string;
|
|
101
|
+
};
|
|
102
|
+
ringOffsetColor: {
|
|
103
|
+
dynamic: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
configViewer: {
|
|
107
|
+
themeReplacements: {
|
|
108
|
+
"var(--vl-ring)": number;
|
|
109
|
+
"var(--vl-ring-offset)": number;
|
|
110
|
+
"var(--vl-ring-offset-color)": string;
|
|
111
|
+
"var(--vl-rounding)": number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare function getSafelist(): any;
|
|
@@ -9,9 +9,19 @@ import {
|
|
|
9
9
|
DEFAULT_ROUNDING,
|
|
10
10
|
DEFAULT_RING,
|
|
11
11
|
DEFAULT_RING_OFFSET,
|
|
12
|
+
DEFAULT_RING_OFFSET_COLOR_LIGHT,
|
|
13
|
+
DEFAULT_BRAND_COLOR,
|
|
14
|
+
DEFAULT_GRAY_COLOR,
|
|
15
|
+
GRAYSCALE_COLOR,
|
|
12
16
|
} from "./constants.js";
|
|
13
17
|
|
|
18
|
+
import type { BrandColors, GrayColors, TailwindColorShades, TailwindSafelist } from "./types";
|
|
19
|
+
|
|
20
|
+
type TailwindColors = BrandColors | GrayColors | typeof GRAY_COLOR;
|
|
21
|
+
|
|
14
22
|
const isStrategyOverride = process.env.VUELESS_STRATEGY === "override";
|
|
23
|
+
const brandColor = (process.env.VUELESS_BRAND as BrandColors) || DEFAULT_BRAND_COLOR;
|
|
24
|
+
const grayColor = (process.env.VUELESS_GRAY as GrayColors) || DEFAULT_GRAY_COLOR;
|
|
15
25
|
|
|
16
26
|
/**
|
|
17
27
|
* Vueless Tailwind CSS `content` config.
|
|
@@ -75,18 +85,17 @@ export const vuelessTailwindConfig = {
|
|
|
75
85
|
fontSize: {
|
|
76
86
|
"2xs": ["0.625rem", "0.875rem"] /* 10px / 14px */,
|
|
77
87
|
},
|
|
88
|
+
borderRadius: {
|
|
89
|
+
dynamic: "var(--vl-rounding)",
|
|
90
|
+
},
|
|
78
91
|
ringWidth: {
|
|
79
92
|
dynamic: "var(--vl-ring)",
|
|
80
93
|
},
|
|
81
94
|
ringOffsetWidth: {
|
|
82
95
|
dynamic: "var(--vl-ring-offset)",
|
|
83
96
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// dynamic: "var(--vl-ring-offset-color)",
|
|
87
|
-
// },
|
|
88
|
-
borderRadius: {
|
|
89
|
-
dynamic: "var(--vl-rounding)",
|
|
97
|
+
ringOffsetColor: {
|
|
98
|
+
dynamic: twColorWithOpacity("--vl-ring-offset-color"),
|
|
90
99
|
},
|
|
91
100
|
},
|
|
92
101
|
configViewer: {
|
|
@@ -94,9 +103,10 @@ export const vuelessTailwindConfig = {
|
|
|
94
103
|
// TODO: Set colors from vueless.config.{js|ts} if it present.
|
|
95
104
|
"var(--vl-ring)": DEFAULT_RING,
|
|
96
105
|
"var(--vl-ring-offset)": DEFAULT_RING_OFFSET,
|
|
106
|
+
"var(--vl-ring-offset-color)": DEFAULT_RING_OFFSET_COLOR_LIGHT,
|
|
97
107
|
"var(--vl-rounding)": DEFAULT_ROUNDING,
|
|
98
|
-
...getReplacementColors(GRAY_COLOR,
|
|
99
|
-
...getReplacementColors(BRAND_COLOR,
|
|
108
|
+
...getReplacementColors(GRAY_COLOR, grayColor),
|
|
109
|
+
...getReplacementColors(BRAND_COLOR, brandColor),
|
|
100
110
|
},
|
|
101
111
|
},
|
|
102
112
|
},
|
|
@@ -104,7 +114,6 @@ export const vuelessTailwindConfig = {
|
|
|
104
114
|
|
|
105
115
|
/**
|
|
106
116
|
* Generates preset for TailwindCSS base on Vueless config.
|
|
107
|
-
* @returns {Object}
|
|
108
117
|
*/
|
|
109
118
|
export function vuelessPreset() {
|
|
110
119
|
return {
|
|
@@ -116,10 +125,9 @@ export function vuelessPreset() {
|
|
|
116
125
|
|
|
117
126
|
/**
|
|
118
127
|
* Convert sting patterns to RegExp.
|
|
119
|
-
* @returns {Array} - TailwindCSS safelist.
|
|
120
128
|
*/
|
|
121
129
|
export function getSafelist() {
|
|
122
|
-
return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule) => ({
|
|
130
|
+
return JSON.parse(process.env.VUELESS_SAFELIST || "[]").map((rule: TailwindSafelist) => ({
|
|
123
131
|
...rule,
|
|
124
132
|
pattern: new RegExp(rule.pattern),
|
|
125
133
|
}));
|
|
@@ -127,25 +135,23 @@ export function getSafelist() {
|
|
|
127
135
|
|
|
128
136
|
/**
|
|
129
137
|
* Transform CSS variable with RGB numbers into CSS color.
|
|
130
|
-
* @param { String } variableName
|
|
131
|
-
* @returns {Function}
|
|
132
138
|
*/
|
|
133
|
-
function twColorWithOpacity(variableName) {
|
|
139
|
+
function twColorWithOpacity(variableName: string) {
|
|
134
140
|
return `rgba(var(${variableName}))`;
|
|
135
141
|
}
|
|
136
142
|
|
|
137
143
|
/**
|
|
138
144
|
* Convert sting patterns to RegExp.
|
|
139
|
-
* @param { String } color (gray | brand)
|
|
140
|
-
* @returns { Object } - TailwindCSS color object palette.
|
|
141
145
|
*/
|
|
142
|
-
function getPalette(color) {
|
|
143
|
-
|
|
146
|
+
function getPalette(color: string) {
|
|
147
|
+
const palette: Partial<TailwindColorShades> = {
|
|
144
148
|
DEFAULT: twColorWithOpacity(`--vl-color-${color}-default`),
|
|
145
149
|
};
|
|
146
150
|
|
|
147
151
|
COLOR_SHADES.forEach((shade) => {
|
|
148
|
-
palette[shade] = twColorWithOpacity(
|
|
152
|
+
palette[shade as keyof TailwindColorShades] = twColorWithOpacity(
|
|
153
|
+
`--vl-color-${color}-${shade}`,
|
|
154
|
+
);
|
|
149
155
|
});
|
|
150
156
|
|
|
151
157
|
return palette;
|
|
@@ -153,17 +159,20 @@ function getPalette(color) {
|
|
|
153
159
|
|
|
154
160
|
/**
|
|
155
161
|
* Prepare a color object for theme replacement to fix missing css color variables in `tailwind-config-viewer`.
|
|
156
|
-
* @param { String } color (gray | brand)
|
|
157
|
-
* @param { String } tailwindColor any tailwind color with pallet.
|
|
158
|
-
* @returns { Object } - `tailwind-config-viewer` color replacement object.
|
|
159
162
|
*/
|
|
160
|
-
function getReplacementColors(color, tailwindColor) {
|
|
163
|
+
function getReplacementColors(color: "gray" | "brand", tailwindColor: TailwindColors) {
|
|
164
|
+
if (tailwindColor === GRAYSCALE_COLOR || tailwindColor === COOL_COLOR) {
|
|
165
|
+
tailwindColor = GRAY_COLOR;
|
|
166
|
+
}
|
|
167
|
+
|
|
161
168
|
const varsPalette = {
|
|
162
169
|
[twColorWithOpacity(`--vl-color-${color}-default`)]: colors[tailwindColor][600],
|
|
163
170
|
};
|
|
164
171
|
|
|
165
172
|
COLOR_SHADES.forEach((shade) => {
|
|
166
|
-
varsPalette[twColorWithOpacity(`--vl-color-${color}-${shade}`)] = colors[
|
|
173
|
+
varsPalette[twColorWithOpacity(`--vl-color-${color}-${shade}`)] = (colors as never)[
|
|
174
|
+
tailwindColor
|
|
175
|
+
][shade];
|
|
167
176
|
});
|
|
168
177
|
|
|
169
178
|
return varsPalette;
|