vueless 0.0.476-0 → 0.0.476
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/composables/useBreakpoint.js +1 -1
- package/composables/useUI.js +1 -204
- package/constants.js +1 -2
- package/directives/clickOutside/vClickOutside.js +2 -2
- package/directives/tooltip/storybook/stories.js +5 -5
- package/{index.ts → index.js} +6 -9
- package/package.json +17 -28
- package/{preset.tailwind.ts → preset.tailwind.js} +22 -30
- package/ui.button/config.js +0 -12
- package/ui.button-link/ULink.vue +1 -1
- package/ui.button-link/config.js +0 -9
- package/ui.data-list/UDataList.vue +4 -4
- package/ui.dropdown-badge/config.js +0 -1
- package/ui.dropdown-button/config.js +0 -1
- package/ui.form-checkbox/config.js +0 -9
- package/ui.form-color-picker/config.js +0 -7
- package/ui.form-input/UInput.vue +1 -1
- package/ui.form-input-money/useFormatCurrency.js +1 -1
- package/ui.form-input-number/UInputNumber.vue +3 -4
- package/ui.form-label/config.js +2 -2
- package/ui.form-radio/config.js +0 -6
- package/ui.form-switch/config.js +0 -6
- package/ui.image-avatar/config.js +0 -5
- package/ui.image-icon/config.js +0 -5
- package/ui.loader/config.js +0 -1
- package/ui.loader-overlay/config.js +0 -1
- package/ui.loader-progress/config.js +0 -1
- package/ui.navigation-progress/config.js +0 -9
- package/ui.other-dot/config.js +0 -1
- package/ui.text-alert/config.js +0 -7
- package/ui.text-badge/config.js +0 -8
- package/ui.text-block/UText.vue +62 -18
- package/ui.text-block/storybook/Docs.mdx +2 -2
- package/ui.text-block/storybook/{stories.ts → stories.js} +7 -12
- package/ui.text-block/useAttrs.js +15 -0
- package/ui.text-file/UFile.vue +14 -12
- package/ui.text-file/config.js +2 -12
- package/ui.text-files/config.js +1 -1
- package/ui.text-header/config.js +0 -1
- package/ui.text-money/config.js +0 -1
- package/ui.text-money/utilMoney.js +2 -2
- package/{utilsTs/utilTheme.ts → utils/utilTheme.js} +27 -31
- package/utils/utilUI.js +204 -0
- package/web-types.json +120 -30
- package/adatper.locale/locales/en.d.ts +0 -289
- package/adatper.locale/vue-i18n.d.ts +0 -9
- package/adatper.locale/vueless.d.ts +0 -11
- package/composables/useAutoPosition.d.ts +0 -15
- package/composables/useBreakpoint.d.ts +0 -7
- package/composables/useLocale.d.ts +0 -3
- package/composables/useMutationObserver.d.ts +0 -7
- package/composables/useUI.d.ts +0 -17
- package/composablesTs/useAutoPosition.d.ts +0 -28
- package/composablesTs/useAutoPosition.ts +0 -115
- package/composablesTs/useBreakpoint.d.ts +0 -7
- package/composablesTs/useBreakpoint.ts +0 -106
- package/composablesTs/useLocale.d.ts +0 -3
- package/composablesTs/useLocale.ts +0 -25
- package/composablesTs/useMutationObserver.d.ts +0 -8
- package/composablesTs/useMutationObserver.ts +0 -50
- package/composablesTs/useUI.d.ts +0 -68
- package/composablesTs/useUI.ts +0 -566
- package/constants.d.ts +0 -42
- package/constants.ts +0 -73
- package/directives/clickOutside/storybook/stories.d.ts +0 -653
- package/directives/clickOutside/vClickOutside.d.ts +0 -6
- package/directives/index.d.ts +0 -2
- package/directives/tooltip/storybook/stories.d.ts +0 -252
- package/directives/tooltip/vTooltip.d.ts +0 -6
- package/index.d.ts +0 -15
- package/preset.tailwind.d.ts +0 -116
- package/types.d.ts +0 -131
- package/types.ts +0 -218
- package/ui.button/UButton.vue.d.ts +0 -73
- package/ui.button/config.d.ts +0 -130
- package/ui.button/constants.d.ts +0 -1
- package/ui.button/storybook/stories.d.ts +0 -3062
- package/ui.button/useAttrs.d.ts +0 -11
- package/ui.button-link/ULink.vue.d.ts +0 -66
- package/ui.button-link/config.d.ts +0 -101
- package/ui.button-link/constants.d.ts +0 -1
- package/ui.button-link/storybook/stories.d.ts +0 -4567
- package/ui.button-link/useAttrs.d.ts +0 -14
- package/ui.button-toggle/UToggle.vue.d.ts +0 -50
- package/ui.button-toggle/config.d.ts +0 -65
- package/ui.button-toggle/constants.d.ts +0 -3
- package/ui.button-toggle/storybook/stories.d.ts +0 -2683
- package/ui.button-toggle/useAttrs.d.ts +0 -11
- package/ui.button-toggle-item/UToggleItem.vue.d.ts +0 -36
- package/ui.button-toggle-item/config.d.ts +0 -41
- package/ui.button-toggle-item/constants.d.ts +0 -1
- package/ui.button-toggle-item/storybook/stories.d.ts +0 -495
- package/ui.button-toggle-item/useAttrs.d.ts +0 -15
- package/ui.container-accordion/UAccordion.vue.d.ts +0 -32
- package/ui.container-accordion/config.d.ts +0 -40
- package/ui.container-accordion/constants.d.ts +0 -1
- package/ui.container-accordion/storybook/stories.d.ts +0 -732
- package/ui.container-accordion/useAttrs.d.ts +0 -13
- package/ui.container-card/UCard.vue.d.ts +0 -31
- package/ui.container-card/config.d.ts +0 -13
- package/ui.container-card/constants.d.ts +0 -1
- package/ui.container-card/storybook/stories.d.ts +0 -3906
- package/ui.container-card/useAttrs.d.ts +0 -11
- package/ui.container-col/UCol.vue.d.ts +0 -33
- package/ui.container-col/config.d.ts +0 -81
- package/ui.container-col/constants.d.ts +0 -1
- package/ui.container-col/storybook/stories.d.ts +0 -840
- package/ui.container-col/useAttrs.d.ts +0 -11
- package/ui.container-divider/UDivider.vue.d.ts +0 -25
- package/ui.container-divider/config.d.ts +0 -102
- package/ui.container-divider/constants.d.ts +0 -1
- package/ui.container-divider/storybook/stories.d.ts +0 -577
- package/ui.container-divider/useAttrs.d.ts +0 -11
- package/ui.container-group/UGroup.vue.d.ts +0 -33
- package/ui.container-group/config.d.ts +0 -38
- package/ui.container-group/constants.d.ts +0 -1
- package/ui.container-group/storybook/stories.d.ts +0 -2869
- package/ui.container-group/useAttrs.d.ts +0 -11
- package/ui.container-modal/UModal.vue.d.ts +0 -59
- package/ui.container-modal/config.d.ts +0 -77
- package/ui.container-modal/constants.d.ts +0 -1
- package/ui.container-modal/storybook/stories.d.ts +0 -8377
- package/ui.container-modal/useAttrs.d.ts +0 -11
- package/ui.container-modal-confirm/UModalConfirm.vue.d.ts +0 -59
- package/ui.container-modal-confirm/config.d.ts +0 -23
- package/ui.container-modal-confirm/constants.d.ts +0 -1
- package/ui.container-modal-confirm/storybook/stories.d.ts +0 -4494
- package/ui.container-modal-confirm/useAttrs.d.ts +0 -11
- package/ui.container-page/UPage.vue.d.ts +0 -47
- package/ui.container-page/config.d.ts +0 -85
- package/ui.container-page/constants.d.ts +0 -1
- package/ui.container-page/storybook/stories.d.ts +0 -8723
- package/ui.container-page/useAttrs.d.ts +0 -13
- package/ui.container-row/URow.vue.d.ts +0 -35
- package/ui.container-row/config.d.ts +0 -85
- package/ui.container-row/constants.d.ts +0 -1
- package/ui.container-row/storybook/stories.d.ts +0 -2619
- package/ui.container-row/useAttrs.d.ts +0 -11
- package/ui.data-list/UDataList.vue.d.ts +0 -74
- package/ui.data-list/config.d.ts +0 -48
- package/ui.data-list/constants.d.ts +0 -1
- package/ui.data-list/storybook/stories.d.ts +0 -3342
- package/ui.data-list/useAttrs.d.ts +0 -11
- package/ui.data-table/UTable.vue.d.ts +0 -90
- package/ui.data-table/UTableRow.vue.d.ts +0 -61
- package/ui.data-table/config.d.ts +0 -128
- package/ui.data-table/constants.d.ts +0 -1
- package/ui.data-table/storybook/stories.d.ts +0 -13069
- package/ui.data-table/useAttrs.d.ts +0 -17
- package/ui.data-table/utilTable.d.ts +0 -9
- package/ui.dropdown-badge/UDropdownBadge.vue.d.ts +0 -145
- package/ui.dropdown-badge/config.d.ts +0 -39
- package/ui.dropdown-badge/constants.d.ts +0 -1
- package/ui.dropdown-badge/storybook/stories.d.ts +0 -1246
- package/ui.dropdown-badge/useAttrs.d.ts +0 -13
- package/ui.dropdown-button/UDropdownButton.vue.d.ts +0 -151
- package/ui.dropdown-button/config.d.ts +0 -52
- package/ui.dropdown-button/constants.d.ts +0 -4
- package/ui.dropdown-button/storybook/stories.d.ts +0 -1912
- package/ui.dropdown-button/useAttrs.d.ts +0 -13
- package/ui.dropdown-link/UDropdownLink.vue.d.ts +0 -149
- package/ui.dropdown-link/config.d.ts +0 -37
- package/ui.dropdown-link/constants.d.ts +0 -1
- package/ui.dropdown-link/storybook/stories.d.ts +0 -1333
- package/ui.dropdown-link/useAttrs.d.ts +0 -13
- package/ui.dropdown-list/UDropdownList.vue.d.ts +0 -59
- package/ui.dropdown-list/config.d.ts +0 -77
- package/ui.dropdown-list/constants.d.ts +0 -1
- package/ui.dropdown-list/storybook/stories.d.ts +0 -783
- package/ui.dropdown-list/useAttrs.d.ts +0 -11
- package/ui.dropdown-list/usePointer.d.ts +0 -8
- package/ui.form-calendar/UCalendar.vue.d.ts +0 -31
- package/ui.form-calendar/UCalendarDayView.vue.d.ts +0 -26
- package/ui.form-calendar/UCalendarMonthView.vue.d.ts +0 -26
- package/ui.form-calendar/UCalendarYearView.vue.d.ts +0 -26
- package/ui.form-calendar/config.d.ts +0 -207
- package/ui.form-calendar/constants.d.ts +0 -66
- package/ui.form-calendar/storybook/stories.d.ts +0 -262
- package/ui.form-calendar/useAttrs.d.ts +0 -11
- package/ui.form-calendar/utilCalendar.d.ts +0 -8
- package/ui.form-calendar/utilDate.d.ts +0 -30
- package/ui.form-calendar/utilFormatting.d.ts +0 -68
- package/ui.form-checkbox/UCheckbox.vue.d.ts +0 -50
- package/ui.form-checkbox/config.d.ts +0 -67
- package/ui.form-checkbox/constants.d.ts +0 -1
- package/ui.form-checkbox/storybook/stories.d.ts +0 -1589
- package/ui.form-checkbox/useAttrs.d.ts +0 -14
- package/ui.form-checkbox-group/UCheckboxGroup.vue.d.ts +0 -40
- package/ui.form-checkbox-group/config.d.ts +0 -21
- package/ui.form-checkbox-group/constants.d.ts +0 -1
- package/ui.form-checkbox-group/storybook/stories.d.ts +0 -2441
- package/ui.form-checkbox-group/useAttrs.d.ts +0 -11
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue.d.ts +0 -24
- package/ui.form-checkbox-multi-state/config.d.ts +0 -10
- package/ui.form-checkbox-multi-state/constants.d.ts +0 -1
- package/ui.form-checkbox-multi-state/storybook/stories.d.ts +0 -187
- package/ui.form-checkbox-multi-state/useAttrs.d.ts +0 -13
- package/ui.form-color-picker/UColorPicker.vue.d.ts +0 -28
- package/ui.form-color-picker/config.d.ts +0 -42
- package/ui.form-color-picker/constants.d.ts +0 -1
- package/ui.form-color-picker/storybook/stories.d.ts +0 -316
- package/ui.form-color-picker/useAttrs.d.ts +0 -11
- package/ui.form-date-picker/UDatePicker.vue.d.ts +0 -135
- package/ui.form-date-picker/config.d.ts +0 -184
- package/ui.form-date-picker/constants.d.ts +0 -1
- package/ui.form-date-picker/index.d.ts +0 -1
- package/ui.form-date-picker/storybook/stories.d.ts +0 -3242
- package/ui.form-date-picker/useAttrs.d.ts +0 -14
- package/ui.form-date-picker-range/UDatePickerRange.vue.d.ts +0 -545
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue.d.ts +0 -6
- package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue.d.ts +0 -7
- package/ui.form-date-picker-range/config.d.ts +0 -265
- package/ui.form-date-picker-range/constants.d.ts +0 -20
- package/ui.form-date-picker-range/storybook/stories.d.ts +0 -5545
- package/ui.form-date-picker-range/useAttrs.d.ts +0 -17
- package/ui.form-date-picker-range/useUserFormat.d.ts +0 -3
- package/ui.form-date-picker-range/utilDateRange.d.ts +0 -20
- package/ui.form-date-picker-range/utilValidation.d.ts +0 -3
- package/ui.form-input/UInput.vue.d.ts +0 -59
- package/ui.form-input/config.d.ts +0 -59
- package/ui.form-input/constants.d.ts +0 -1
- package/ui.form-input/storybook/stories.d.ts +0 -5734
- package/ui.form-input/useAttrs.d.ts +0 -11
- package/ui.form-input-file/UInputFile.vue.d.ts +0 -57
- package/ui.form-input-file/config.d.ts +0 -94
- package/ui.form-input-file/constants.d.ts +0 -1
- package/ui.form-input-file/storybook/stories.d.ts +0 -1116
- package/ui.form-input-file/useAttrs.d.ts +0 -11
- package/ui.form-input-file/utilFileForm.d.ts +0 -1
- package/ui.form-input-money/UInputMoney.vue.d.ts +0 -183
- package/ui.form-input-money/config.d.ts +0 -17
- package/ui.form-input-money/constants.d.ts +0 -1
- package/ui.form-input-money/storybook/stories.d.ts +0 -7519
- package/ui.form-input-money/useAttrs.d.ts +0 -11
- package/ui.form-input-money/useFormatCurrency.d.ts +0 -5
- package/ui.form-input-money/utilFormat.d.ts +0 -7
- package/ui.form-input-number/UInputNumber.vue.d.ts +0 -30
- package/ui.form-input-number/config.d.ts +0 -40
- package/ui.form-input-number/constants.d.ts +0 -1
- package/ui.form-input-number/storybook/stories.d.ts +0 -363
- package/ui.form-input-number/useAttrs.d.ts +0 -11
- package/ui.form-input-rating/UInputRating.vue.d.ts +0 -49
- package/ui.form-input-rating/config.d.ts +0 -56
- package/ui.form-input-rating/constants.d.ts +0 -1
- package/ui.form-input-rating/storybook/stories.d.ts +0 -1336
- package/ui.form-input-rating/useAttrs.d.ts +0 -11
- package/ui.form-input-search/UInputSearch.vue.d.ts +0 -177
- package/ui.form-input-search/config.d.ts +0 -21
- package/ui.form-input-search/constants.d.ts +0 -1
- package/ui.form-input-search/storybook/stories.d.ts +0 -3325
- package/ui.form-input-search/useAttrs.d.ts +0 -11
- package/ui.form-label/ULabel.vue.d.ts +0 -46
- package/ui.form-label/config.d.ts +0 -139
- package/ui.form-label/constants.d.ts +0 -8
- package/ui.form-label/storybook/stories.d.ts +0 -1133
- package/ui.form-label/useAttrs.d.ts +0 -11
- package/ui.form-radio/URadio.vue.d.ts +0 -46
- package/ui.form-radio/config.d.ts +0 -30
- package/ui.form-radio/constants.d.ts +0 -1
- package/ui.form-radio/storybook/stories.d.ts +0 -1270
- package/ui.form-radio/useAttrs.d.ts +0 -14
- package/ui.form-radio-group/URadioGroup.vue.d.ts +0 -40
- package/ui.form-radio-group/config.d.ts +0 -21
- package/ui.form-radio-group/constants.d.ts +0 -1
- package/ui.form-radio-group/storybook/stories.d.ts +0 -1239
- package/ui.form-radio-group/useAttrs.d.ts +0 -11
- package/ui.form-select/USelect.vue.d.ts +0 -405
- package/ui.form-select/config.d.ts +0 -146
- package/ui.form-select/constants.d.ts +0 -13
- package/ui.form-select/storybook/stories.d.ts +0 -19025
- package/ui.form-select/useAttrs.d.ts +0 -15
- package/ui.form-select/utilSelect.d.ts +0 -11
- package/ui.form-switch/USwitch.vue.d.ts +0 -30
- package/ui.form-switch/config.d.ts +0 -106
- package/ui.form-switch/constants.d.ts +0 -1
- package/ui.form-switch/storybook/stories.d.ts +0 -703
- package/ui.form-switch/useAttrs.d.ts +0 -13
- package/ui.form-switch/utilVariant.d.ts +0 -169
- package/ui.form-textarea/UTextarea.vue.d.ts +0 -132
- package/ui.form-textarea/config.d.ts +0 -55
- package/ui.form-textarea/constants.d.ts +0 -1
- package/ui.form-textarea/storybook/stories.d.ts +0 -2175
- package/ui.form-textarea/useAttrs.d.ts +0 -11
- package/ui.image-avatar/UAvatar.vue.d.ts +0 -40
- package/ui.image-avatar/config.d.ts +0 -51
- package/ui.image-avatar/constants.d.ts +0 -1
- package/ui.image-avatar/storybook/stories.d.ts +0 -1640
- package/ui.image-avatar/useAttrs.d.ts +0 -11
- package/ui.image-icon/UIcon.vue.d.ts +0 -28
- package/ui.image-icon/config.d.ts +0 -52
- package/ui.image-icon/constants.d.ts +0 -1
- package/ui.image-icon/storybook/stories.d.ts +0 -516
- package/ui.image-icon/useAttrs.d.ts +0 -11
- package/ui.loader/ULoader.vue.d.ts +0 -23
- package/ui.loader/config.d.ts +0 -49
- package/ui.loader/constants.d.ts +0 -2
- package/ui.loader/storybook/stories.d.ts +0 -655
- package/ui.loader/useAttrs.d.ts +0 -11
- package/ui.loader-overlay/ULoaderOverlay.vue.d.ts +0 -21
- package/ui.loader-overlay/config.d.ts +0 -25
- package/ui.loader-overlay/constants.d.ts +0 -1
- package/ui.loader-overlay/storybook/stories.d.ts +0 -362
- package/ui.loader-overlay/useAttrs.d.ts +0 -11
- package/ui.loader-overlay/useLoaderOverlay.d.ts +0 -10
- package/ui.loader-overlay/utilLoaderOverlay.d.ts +0 -2
- package/ui.loader-progress/ULoaderProgress.vue.d.ts +0 -11
- package/ui.loader-progress/config.d.ts +0 -24
- package/ui.loader-progress/constants.d.ts +0 -3
- package/ui.loader-progress/storybook/stories.d.ts +0 -742
- package/ui.loader-progress/useAttrs.d.ts +0 -11
- package/ui.loader-progress/useLoaderProgress.d.ts +0 -15
- package/ui.loader-progress/utilLoaderProgress.d.ts +0 -5
- package/ui.navigation-pagination/UPagination.vue.d.ts +0 -54
- package/ui.navigation-pagination/config.d.ts +0 -41
- package/ui.navigation-pagination/constants.d.ts +0 -1
- package/ui.navigation-pagination/storybook/stories.d.ts +0 -1033
- package/ui.navigation-pagination/useAttrs.d.ts +0 -11
- package/ui.navigation-progress/StepperProgress.vue.d.ts +0 -15
- package/ui.navigation-progress/UProgress.vue.d.ts +0 -41
- package/ui.navigation-progress/config.d.ts +0 -139
- package/ui.navigation-progress/constants.d.ts +0 -5
- package/ui.navigation-progress/storybook/stories.d.ts +0 -2827
- package/ui.navigation-progress/useAttrs.d.ts +0 -11
- package/ui.navigation-tab/UTab.vue.d.ts +0 -27
- package/ui.navigation-tab/config.d.ts +0 -24
- package/ui.navigation-tab/constants.d.ts +0 -1
- package/ui.navigation-tab/storybook/stories.d.ts +0 -316
- package/ui.navigation-tab/useAttrs.d.ts +0 -14
- package/ui.navigation-tabs/UTabs.vue.d.ts +0 -30
- package/ui.navigation-tabs/config.d.ts +0 -24
- package/ui.navigation-tabs/constants.d.ts +0 -1
- package/ui.navigation-tabs/storybook/stories.d.ts +0 -354
- package/ui.navigation-tabs/useAttrs.d.ts +0 -11
- package/ui.other-dot/UDot.vue.d.ts +0 -13
- package/ui.other-dot/config.d.ts +0 -28
- package/ui.other-dot/constants.d.ts +0 -1
- package/ui.other-dot/storybook/stories.d.ts +0 -645
- package/ui.other-dot/useAttrs.d.ts +0 -11
- package/ui.text-alert/UAlert.vue.d.ts +0 -53
- package/ui.text-alert/config.d.ts +0 -75
- package/ui.text-alert/constants.d.ts +0 -1
- package/ui.text-alert/storybook/stories.d.ts +0 -4845
- package/ui.text-alert/useAttrs.d.ts +0 -11
- package/ui.text-badge/UBadge.vue.d.ts +0 -60
- package/ui.text-badge/config.d.ts +0 -102
- package/ui.text-badge/constants.d.ts +0 -1
- package/ui.text-badge/storybook/stories.d.ts +0 -1869
- package/ui.text-badge/useAttrs.d.ts +0 -11
- package/ui.text-block/UText.vue.d.ts +0 -21
- package/ui.text-block/config.d.ts +0 -27
- package/ui.text-block/constants.d.ts +0 -1
- package/ui.text-block/storybook/stories.d.ts +0 -12
- package/ui.text-block/types.d.ts +0 -9
- package/ui.text-block/types.ts +0 -33
- package/ui.text-block/useAttrs.d.ts +0 -3
- package/ui.text-block/useAttrs.ts +0 -18
- package/ui.text-empty/UEmpty.vue.d.ts +0 -29
- package/ui.text-empty/config.d.ts +0 -55
- package/ui.text-empty/constants.d.ts +0 -1
- package/ui.text-empty/storybook/stories.d.ts +0 -1212
- package/ui.text-empty/useAttrs.d.ts +0 -11
- package/ui.text-file/UFile.vue.d.ts +0 -57
- package/ui.text-file/config.d.ts +0 -42
- package/ui.text-file/constants.d.ts +0 -1
- package/ui.text-file/storybook/stories.d.ts +0 -136
- package/ui.text-file/useAttrs.d.ts +0 -11
- package/ui.text-files/UFiles.vue.d.ts +0 -52
- package/ui.text-files/config.d.ts +0 -10
- package/ui.text-files/constants.d.ts +0 -1
- package/ui.text-files/storybook/stories.d.ts +0 -131
- package/ui.text-files/useAttrs.d.ts +0 -11
- package/ui.text-header/UHeader.vue.d.ts +0 -33
- package/ui.text-header/config.d.ts +0 -54
- package/ui.text-header/constants.d.ts +0 -1
- package/ui.text-header/storybook/stories.d.ts +0 -694
- package/ui.text-header/useAttrs.d.ts +0 -11
- package/ui.text-money/UMoney.vue.d.ts +0 -48
- package/ui.text-money/config.d.ts +0 -77
- package/ui.text-money/constants.d.ts +0 -1
- package/ui.text-money/storybook/stories.d.ts +0 -2090
- package/ui.text-money/useAttrs.d.ts +0 -11
- package/ui.text-money/utilMoney.d.ts +0 -14
- package/ui.text-notify/UNotify.vue.d.ts +0 -13
- package/ui.text-notify/config.d.ts +0 -58
- package/ui.text-notify/constants.d.ts +0 -20
- package/ui.text-notify/storybook/stories.d.ts +0 -653
- package/ui.text-notify/useAttrs.d.ts +0 -11
- package/ui.text-notify/utilNotify.d.ts +0 -7
- package/utils/utilHelper.d.ts +0 -9
- package/utils/utilPlatform.d.ts +0 -6
- package/utils/utilStorybook.d.ts +0 -15
- package/utils/utilUI.d.ts +0 -68
- package/utilsTs/utilHelper.d.ts +0 -9
- package/utilsTs/utilHelper.ts +0 -70
- package/utilsTs/utilPlatform.d.ts +0 -7
- package/utilsTs/utilPlatform.ts +0 -53
- package/utilsTs/utilStorybook.d.ts +0 -24
- package/utilsTs/utilStorybook.ts +0 -292
- package/utilsTs/utilTailwind.d.ts +0 -1
- package/utilsTs/utilTailwind.ts +0 -38
- package/utilsTs/utilTheme.d.ts +0 -8
- package/utilsTs/utilUI.d.ts +0 -67
- package/utilsTs/utilUI.ts +0 -142
- /package/ui.text-block/{config.ts → config.js} +0 -0
- /package/ui.text-block/{constants.ts → constants.js} +0 -0
package/utils/utilUI.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
GRAYSCALE_COLOR,
|
|
8
8
|
DEFAULT_BRAND_COLOR,
|
|
9
9
|
NESTED_COMPONENT_REG_EXP,
|
|
10
|
+
SYSTEM_CONFIG_KEY,
|
|
10
11
|
} from "../constants.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -40,6 +41,209 @@ if (isCSR) {
|
|
|
40
41
|
)[0] || {};
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Recursively merge config objects with removing tailwind classes duplicates.
|
|
46
|
+
* @param {Object} defaultConfig
|
|
47
|
+
* @param {Object} globalConfig
|
|
48
|
+
* @param {Object} propsConfig
|
|
49
|
+
* @param {Object} config - final merged config.
|
|
50
|
+
* @param {boolean} isReplace - enables class replacement instead of merge.
|
|
51
|
+
* @param {boolean} isVarinants - if true, prevents adding a "base" key into nested objects.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Object}
|
|
54
|
+
*/
|
|
55
|
+
export function mergeConfigs({
|
|
56
|
+
defaultConfig,
|
|
57
|
+
globalConfig,
|
|
58
|
+
propsConfig,
|
|
59
|
+
config = {},
|
|
60
|
+
isReplace = false,
|
|
61
|
+
isVariants = false,
|
|
62
|
+
}) {
|
|
63
|
+
globalConfig = cloneDeep(globalConfig || {});
|
|
64
|
+
propsConfig = cloneDeep(propsConfig || {});
|
|
65
|
+
|
|
66
|
+
const isGlobalConfig = Object.keys(globalConfig).length;
|
|
67
|
+
const isPropsConfig = Object.keys(propsConfig).length;
|
|
68
|
+
|
|
69
|
+
// Add unique keys from defaultConfig to composedConfig
|
|
70
|
+
let composedConfig = cloneDeep(defaultConfig);
|
|
71
|
+
|
|
72
|
+
// Add unique keys from globalConfig to composedConfig
|
|
73
|
+
for (let key in globalConfig) {
|
|
74
|
+
if (!Object.keys(composedConfig).includes(key)) {
|
|
75
|
+
composedConfig[key] = globalConfig[key];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Add unique keys from propsConfig to composedConfig
|
|
80
|
+
for (let key in propsConfig) {
|
|
81
|
+
if (!Object.keys(composedConfig).includes(key)) {
|
|
82
|
+
composedConfig[key] = propsConfig[key];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const {
|
|
87
|
+
i18n,
|
|
88
|
+
defaults,
|
|
89
|
+
strategy,
|
|
90
|
+
safelist,
|
|
91
|
+
component,
|
|
92
|
+
safelistColors,
|
|
93
|
+
defaultVariants,
|
|
94
|
+
compoundVariants,
|
|
95
|
+
} = SYSTEM_CONFIG_KEY;
|
|
96
|
+
|
|
97
|
+
for (let key in composedConfig) {
|
|
98
|
+
if (isGlobalConfig || isPropsConfig) {
|
|
99
|
+
if (key === safelist || key === safelistColors) {
|
|
100
|
+
if (propsConfig[key]) {
|
|
101
|
+
// eslint-disable-next-line no-console
|
|
102
|
+
console.warn(`Passing '${key}' key in 'config' prop is not allowed.`);
|
|
103
|
+
}
|
|
104
|
+
} else if (key === component) {
|
|
105
|
+
config[key] = propsConfig[key] || defaultConfig[key];
|
|
106
|
+
|
|
107
|
+
if (globalConfig[key]) {
|
|
108
|
+
// eslint-disable-next-line no-console
|
|
109
|
+
console.warn(`Passing '${key}' key in 'config' prop or by global config is not allowed.`);
|
|
110
|
+
}
|
|
111
|
+
} else if (key === strategy) {
|
|
112
|
+
config[key] = propsConfig[key] || globalConfig[key] || defaultConfig[key];
|
|
113
|
+
} else if (key === defaults || key === defaultVariants) {
|
|
114
|
+
config[key] = { ...defaultConfig[key], ...globalConfig[key], ...propsConfig[key] };
|
|
115
|
+
} else if (key === compoundVariants) {
|
|
116
|
+
config[key] = mergeCompoundVariants({
|
|
117
|
+
defaultConfig: composedConfig,
|
|
118
|
+
globalConfig,
|
|
119
|
+
propsConfig,
|
|
120
|
+
isReplace,
|
|
121
|
+
key,
|
|
122
|
+
});
|
|
123
|
+
} else {
|
|
124
|
+
const isObjectComposedConfig = typeof composedConfig[key] === "object";
|
|
125
|
+
const isObjectGlobalConfig = typeof globalConfig[key] === "object";
|
|
126
|
+
const isObjectPropsConfig = typeof propsConfig[key] === "object";
|
|
127
|
+
|
|
128
|
+
const isObject = isObjectComposedConfig || isObjectGlobalConfig || isObjectPropsConfig;
|
|
129
|
+
const isEmpty = composedConfig[key] === null;
|
|
130
|
+
const isI18n = key === i18n;
|
|
131
|
+
|
|
132
|
+
if (key === "variants" && !isVariants) {
|
|
133
|
+
isVariants = true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
config[key] =
|
|
137
|
+
isObject && !isEmpty && !isI18n
|
|
138
|
+
? mergeConfigs({
|
|
139
|
+
defaultConfig: stringToObject(composedConfig[key], { addBase: !isVariants }),
|
|
140
|
+
globalConfig: stringToObject(globalConfig[key], { addBase: !isVariants }),
|
|
141
|
+
propsConfig: stringToObject(propsConfig[key], { addBase: !isVariants }),
|
|
142
|
+
config: stringToObject(composedConfig[key], { addBase: !isVariants }),
|
|
143
|
+
isReplace,
|
|
144
|
+
isVariants,
|
|
145
|
+
})
|
|
146
|
+
: isReplace || isI18n
|
|
147
|
+
? propsConfig[key] || globalConfig[key] || defaultConfig[key]
|
|
148
|
+
: cx([defaultConfig[key], globalConfig[key], propsConfig[key]]);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
config[key] = composedConfig[key];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return config;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
Turn simplified nested component config to regular config.
|
|
160
|
+
@param {Object | String} value
|
|
161
|
+
@param {Boolean} addBase
|
|
162
|
+
@returns {Object}
|
|
163
|
+
*/
|
|
164
|
+
function stringToObject(value, { addBase = false }) {
|
|
165
|
+
if (value === undefined) value = "";
|
|
166
|
+
|
|
167
|
+
return typeof value !== "object" ? addBase && { base: value } : value;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Merge CVA compound variants arrays.
|
|
172
|
+
* @param {Object} defaultConfig
|
|
173
|
+
* @param {Object} globalConfig
|
|
174
|
+
* @param {Object} propsConfig
|
|
175
|
+
* @param {string} key
|
|
176
|
+
* @param {boolean} isReplace - enables class replacement instead of merge.
|
|
177
|
+
*
|
|
178
|
+
* @returns {Array}
|
|
179
|
+
*/
|
|
180
|
+
function mergeCompoundVariants({ defaultConfig, globalConfig, propsConfig, key, isReplace }) {
|
|
181
|
+
if (
|
|
182
|
+
(globalConfig[key] && !Array.isArray(globalConfig[key])) ||
|
|
183
|
+
(propsConfig[key] && !Array.isArray(propsConfig[key])) ||
|
|
184
|
+
(defaultConfig[key] && !Array.isArray(defaultConfig[key]))
|
|
185
|
+
) {
|
|
186
|
+
// eslint-disable-next-line no-console
|
|
187
|
+
console.error("CompoundVariants should be an array.");
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
let globalConfigUniqueItems = cloneDeep(globalConfig[key] || []);
|
|
191
|
+
let propsConfigUniqueItems = cloneDeep(propsConfig[key] || []);
|
|
192
|
+
|
|
193
|
+
const config = defaultConfig[key].map((defaultConfigItem) => {
|
|
194
|
+
/**
|
|
195
|
+
* Compare two objects by keys for match.
|
|
196
|
+
* @param {Object} configItem
|
|
197
|
+
* @returns {Boolean}
|
|
198
|
+
*/
|
|
199
|
+
function isSameItem(configItem) {
|
|
200
|
+
const hasConfigItemKeys = Object.keys(defaultConfigItem)
|
|
201
|
+
.map((key) => defaultConfigItem[key] === configItem[key] || key === "class")
|
|
202
|
+
.every((item) => !!item);
|
|
203
|
+
|
|
204
|
+
const hasDefaultConfigItemKeys = Object.keys(configItem)
|
|
205
|
+
.map((key) => defaultConfigItem[key] === configItem[key] || key === "class")
|
|
206
|
+
.every((item) => !!item);
|
|
207
|
+
|
|
208
|
+
return hasConfigItemKeys && hasDefaultConfigItemKeys;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Find the same compound variant item in custom config if exist.
|
|
213
|
+
* @param {Object} config
|
|
214
|
+
* @returns {Object|undefined}
|
|
215
|
+
*/
|
|
216
|
+
function findItem(config = []) {
|
|
217
|
+
const globalConfigUniqueItemIndex = globalConfigUniqueItems.findIndex(isSameItem);
|
|
218
|
+
const propsConfigUniqueItemIndex = propsConfigUniqueItems.findIndex(isSameItem);
|
|
219
|
+
|
|
220
|
+
if (~globalConfigUniqueItemIndex) {
|
|
221
|
+
globalConfigUniqueItems.splice(globalConfigUniqueItemIndex, 1);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (~propsConfigUniqueItemIndex) {
|
|
225
|
+
propsConfigUniqueItems.splice(propsConfigUniqueItemIndex, 1);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return config.find(isSameItem);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const globalConfigItem = findItem(globalConfig[key]);
|
|
232
|
+
const propsConfigItem = findItem(propsConfig[key]);
|
|
233
|
+
|
|
234
|
+
return globalConfigItem || propsConfigItem
|
|
235
|
+
? {
|
|
236
|
+
...defaultConfigItem,
|
|
237
|
+
class: isReplace
|
|
238
|
+
? propsConfigItem?.class || globalConfigItem?.class || defaultConfigItem.class
|
|
239
|
+
: cx([defaultConfigItem.class, globalConfigItem?.class, propsConfigItem?.class]),
|
|
240
|
+
}
|
|
241
|
+
: defaultConfigItem;
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
return [...config, ...globalConfigUniqueItems, ...propsConfigUniqueItems];
|
|
245
|
+
}
|
|
246
|
+
|
|
43
247
|
/**
|
|
44
248
|
* Extend twMerge (tailwind merge) by vueless and user config:
|
|
45
249
|
* All list of rules available here:
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.476
|
|
4
|
+
"version": "0.0.476",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -2575,6 +2575,7 @@
|
|
|
2575
2575
|
"description": "Use it add an icon before the date.",
|
|
2576
2576
|
"bindings": [
|
|
2577
2577
|
{
|
|
2578
|
+
"type": "string",
|
|
2578
2579
|
"name": "icon-name"
|
|
2579
2580
|
},
|
|
2580
2581
|
{
|
|
@@ -2588,9 +2589,11 @@
|
|
|
2588
2589
|
"description": "Use it add an icon after the date.",
|
|
2589
2590
|
"bindings": [
|
|
2590
2591
|
{
|
|
2592
|
+
"type": "string",
|
|
2591
2593
|
"name": "icon-name"
|
|
2592
2594
|
},
|
|
2593
2595
|
{
|
|
2596
|
+
"type": "string",
|
|
2594
2597
|
"name": "icon-size"
|
|
2595
2598
|
}
|
|
2596
2599
|
]
|
|
@@ -4070,6 +4073,15 @@
|
|
|
4070
4073
|
},
|
|
4071
4074
|
"default": "\"\""
|
|
4072
4075
|
},
|
|
4076
|
+
{
|
|
4077
|
+
"name": "removable",
|
|
4078
|
+
"description": "Show remove button.",
|
|
4079
|
+
"value": {
|
|
4080
|
+
"kind": "expression",
|
|
4081
|
+
"type": "boolean"
|
|
4082
|
+
},
|
|
4083
|
+
"default": "false"
|
|
4084
|
+
},
|
|
4073
4085
|
{
|
|
4074
4086
|
"name": "config",
|
|
4075
4087
|
"description": "Component config object.",
|
|
@@ -4089,6 +4101,20 @@
|
|
|
4089
4101
|
"default": "\"\""
|
|
4090
4102
|
}
|
|
4091
4103
|
],
|
|
4104
|
+
"events": [
|
|
4105
|
+
{
|
|
4106
|
+
"name": "remove",
|
|
4107
|
+
"description": "Triggers when remove button is clicked.",
|
|
4108
|
+
"properties": [
|
|
4109
|
+
{
|
|
4110
|
+
"type": [
|
|
4111
|
+
"string"
|
|
4112
|
+
],
|
|
4113
|
+
"name": "fileId"
|
|
4114
|
+
}
|
|
4115
|
+
]
|
|
4116
|
+
}
|
|
4117
|
+
],
|
|
4092
4118
|
"slots": [
|
|
4093
4119
|
{
|
|
4094
4120
|
"name": "left",
|
|
@@ -4172,6 +4198,15 @@
|
|
|
4172
4198
|
},
|
|
4173
4199
|
"default": "md"
|
|
4174
4200
|
},
|
|
4201
|
+
{
|
|
4202
|
+
"name": "removable",
|
|
4203
|
+
"description": "Show remove button for each file",
|
|
4204
|
+
"value": {
|
|
4205
|
+
"kind": "expression",
|
|
4206
|
+
"type": "boolean"
|
|
4207
|
+
},
|
|
4208
|
+
"default": "false"
|
|
4209
|
+
},
|
|
4175
4210
|
{
|
|
4176
4211
|
"name": "config",
|
|
4177
4212
|
"description": "Component config object.",
|
|
@@ -4191,6 +4226,20 @@
|
|
|
4191
4226
|
"default": "\"\""
|
|
4192
4227
|
}
|
|
4193
4228
|
],
|
|
4229
|
+
"events": [
|
|
4230
|
+
{
|
|
4231
|
+
"name": "remove",
|
|
4232
|
+
"description": "Triggers when remove button is clicked.",
|
|
4233
|
+
"properties": [
|
|
4234
|
+
{
|
|
4235
|
+
"type": [
|
|
4236
|
+
"string"
|
|
4237
|
+
],
|
|
4238
|
+
"name": "fileId"
|
|
4239
|
+
}
|
|
4240
|
+
]
|
|
4241
|
+
}
|
|
4242
|
+
],
|
|
4194
4243
|
"slots": [
|
|
4195
4244
|
{
|
|
4196
4245
|
"name": "default",
|
|
@@ -4967,6 +5016,15 @@
|
|
|
4967
5016
|
"name": "left",
|
|
4968
5017
|
"description": "Use it to add something before the placeholder."
|
|
4969
5018
|
},
|
|
5019
|
+
{
|
|
5020
|
+
"name": "right",
|
|
5021
|
+
"scoped": true,
|
|
5022
|
+
"bindings": [
|
|
5023
|
+
{
|
|
5024
|
+
"name": "file"
|
|
5025
|
+
}
|
|
5026
|
+
]
|
|
5027
|
+
},
|
|
4970
5028
|
{
|
|
4971
5029
|
"name": "bottom",
|
|
4972
5030
|
"description": "Use it to add something below the component content."
|
|
@@ -5293,7 +5351,7 @@
|
|
|
5293
5351
|
"kind": "expression",
|
|
5294
5352
|
"type": "'top' | 'topWithDesc' | 'left' | 'right'"
|
|
5295
5353
|
},
|
|
5296
|
-
"default": "
|
|
5354
|
+
"default": "topWithDesc"
|
|
5297
5355
|
},
|
|
5298
5356
|
{
|
|
5299
5357
|
"name": "description",
|
|
@@ -5329,7 +5387,7 @@
|
|
|
5329
5387
|
"kind": "expression",
|
|
5330
5388
|
"type": "boolean"
|
|
5331
5389
|
},
|
|
5332
|
-
"default": "
|
|
5390
|
+
"default": "false"
|
|
5333
5391
|
},
|
|
5334
5392
|
{
|
|
5335
5393
|
"name": "config",
|
|
@@ -6245,6 +6303,15 @@
|
|
|
6245
6303
|
"type": "string|array"
|
|
6246
6304
|
},
|
|
6247
6305
|
"default": "\"\""
|
|
6306
|
+
},
|
|
6307
|
+
{
|
|
6308
|
+
"name": "loading",
|
|
6309
|
+
"description": "Loader state (shown / hidden).",
|
|
6310
|
+
"value": {
|
|
6311
|
+
"kind": "expression",
|
|
6312
|
+
"type": "boolean"
|
|
6313
|
+
},
|
|
6314
|
+
"default": "false"
|
|
6248
6315
|
}
|
|
6249
6316
|
],
|
|
6250
6317
|
"source": {
|
|
@@ -6678,7 +6745,7 @@
|
|
|
6678
6745
|
"description": "",
|
|
6679
6746
|
"attributes": [
|
|
6680
6747
|
{
|
|
6681
|
-
"name": "
|
|
6748
|
+
"name": "value",
|
|
6682
6749
|
"description": "Money value.",
|
|
6683
6750
|
"value": {
|
|
6684
6751
|
"kind": "expression",
|
|
@@ -6741,8 +6808,17 @@
|
|
|
6741
6808
|
"default": "default"
|
|
6742
6809
|
},
|
|
6743
6810
|
{
|
|
6744
|
-
"name": "
|
|
6745
|
-
"description": "
|
|
6811
|
+
"name": "minFractionDigits",
|
|
6812
|
+
"description": "Minimal number of signs after the decimal separator (fractional part of a number).",
|
|
6813
|
+
"value": {
|
|
6814
|
+
"kind": "expression",
|
|
6815
|
+
"type": "number"
|
|
6816
|
+
},
|
|
6817
|
+
"default": "0"
|
|
6818
|
+
},
|
|
6819
|
+
{
|
|
6820
|
+
"name": "maxFractionDigits",
|
|
6821
|
+
"description": "Maximal number of signs after the decimal separator (fractional part of a number).",
|
|
6746
6822
|
"value": {
|
|
6747
6823
|
"kind": "expression",
|
|
6748
6824
|
"type": "number"
|
|
@@ -6759,22 +6835,22 @@
|
|
|
6759
6835
|
"default": ","
|
|
6760
6836
|
},
|
|
6761
6837
|
{
|
|
6762
|
-
"name": "
|
|
6763
|
-
"description": "
|
|
6838
|
+
"name": "thousandsSeparator",
|
|
6839
|
+
"description": "A symbol used to separate the thousand parts of a number.",
|
|
6764
6840
|
"value": {
|
|
6765
6841
|
"kind": "expression",
|
|
6766
|
-
"type": "
|
|
6842
|
+
"type": "string"
|
|
6767
6843
|
},
|
|
6768
|
-
"default": "
|
|
6844
|
+
"default": " "
|
|
6769
6845
|
},
|
|
6770
6846
|
{
|
|
6771
|
-
"name": "
|
|
6772
|
-
"description": "
|
|
6847
|
+
"name": "align",
|
|
6848
|
+
"description": "Money align.",
|
|
6773
6849
|
"value": {
|
|
6774
6850
|
"kind": "expression",
|
|
6775
|
-
"type": "
|
|
6851
|
+
"type": "'right' | 'left'"
|
|
6776
6852
|
},
|
|
6777
|
-
"default": "
|
|
6853
|
+
"default": "left"
|
|
6778
6854
|
},
|
|
6779
6855
|
{
|
|
6780
6856
|
"name": "planned",
|
|
@@ -8478,6 +8554,15 @@
|
|
|
8478
8554
|
"type": "array"
|
|
8479
8555
|
}
|
|
8480
8556
|
},
|
|
8557
|
+
{
|
|
8558
|
+
"name": "emptyCellLabel",
|
|
8559
|
+
"description": "Label to display for empty cell values.",
|
|
8560
|
+
"value": {
|
|
8561
|
+
"kind": "expression",
|
|
8562
|
+
"type": "string"
|
|
8563
|
+
},
|
|
8564
|
+
"default": "—"
|
|
8565
|
+
},
|
|
8481
8566
|
{
|
|
8482
8567
|
"name": "dateDivider",
|
|
8483
8568
|
"description": "Show date divider line between dates.",
|
|
@@ -8524,13 +8609,13 @@
|
|
|
8524
8609
|
"default": "false"
|
|
8525
8610
|
},
|
|
8526
8611
|
{
|
|
8527
|
-
"name": "
|
|
8528
|
-
"description": "Set
|
|
8612
|
+
"name": "loading",
|
|
8613
|
+
"description": "Set table loader state.",
|
|
8529
8614
|
"value": {
|
|
8530
8615
|
"kind": "expression",
|
|
8531
|
-
"type": "
|
|
8616
|
+
"type": "boolean"
|
|
8532
8617
|
},
|
|
8533
|
-
"default": "
|
|
8618
|
+
"default": "false"
|
|
8534
8619
|
},
|
|
8535
8620
|
{
|
|
8536
8621
|
"name": "config",
|
|
@@ -8741,6 +8826,15 @@
|
|
|
8741
8826
|
"type": "array"
|
|
8742
8827
|
}
|
|
8743
8828
|
},
|
|
8829
|
+
{
|
|
8830
|
+
"name": "emptyCellLabel",
|
|
8831
|
+
"required": true,
|
|
8832
|
+
"value": {
|
|
8833
|
+
"kind": "expression",
|
|
8834
|
+
"type": "string"
|
|
8835
|
+
},
|
|
8836
|
+
"default": "—"
|
|
8837
|
+
},
|
|
8744
8838
|
{
|
|
8745
8839
|
"name": "tag",
|
|
8746
8840
|
"value": {
|
|
@@ -8925,36 +9019,33 @@
|
|
|
8925
9019
|
"attributes": [
|
|
8926
9020
|
{
|
|
8927
9021
|
"name": "html",
|
|
8928
|
-
"
|
|
8929
|
-
"description": "HTML markdown or plain text.",
|
|
9022
|
+
"description": "НTML markdown or plain text.",
|
|
8930
9023
|
"value": {
|
|
8931
9024
|
"kind": "expression",
|
|
8932
9025
|
"type": "string"
|
|
8933
|
-
}
|
|
9026
|
+
},
|
|
9027
|
+
"default": "undefined"
|
|
8934
9028
|
},
|
|
8935
9029
|
{
|
|
8936
9030
|
"name": "size",
|
|
8937
|
-
"required": false,
|
|
8938
9031
|
"description": "Text size.",
|
|
8939
9032
|
"value": {
|
|
8940
9033
|
"kind": "expression",
|
|
8941
|
-
"type": "
|
|
9034
|
+
"type": "'sm' | 'md' | 'lg'"
|
|
8942
9035
|
},
|
|
8943
9036
|
"default": "md"
|
|
8944
9037
|
},
|
|
8945
9038
|
{
|
|
8946
9039
|
"name": "align",
|
|
8947
|
-
"required": false,
|
|
8948
9040
|
"description": "Text align.",
|
|
8949
9041
|
"value": {
|
|
8950
9042
|
"kind": "expression",
|
|
8951
|
-
"type": "
|
|
9043
|
+
"type": "'left' | 'center' | 'right'"
|
|
8952
9044
|
},
|
|
8953
9045
|
"default": "left"
|
|
8954
9046
|
},
|
|
8955
9047
|
{
|
|
8956
9048
|
"name": "line",
|
|
8957
|
-
"required": false,
|
|
8958
9049
|
"description": "Remove line height (useful for 1-line text).",
|
|
8959
9050
|
"value": {
|
|
8960
9051
|
"kind": "expression",
|
|
@@ -8964,22 +9055,21 @@
|
|
|
8964
9055
|
},
|
|
8965
9056
|
{
|
|
8966
9057
|
"name": "config",
|
|
8967
|
-
"required": false,
|
|
8968
9058
|
"description": "Component config object.",
|
|
8969
9059
|
"value": {
|
|
8970
9060
|
"kind": "expression",
|
|
8971
9061
|
"type": "object"
|
|
8972
9062
|
},
|
|
8973
|
-
"default": "
|
|
9063
|
+
"default": "{}"
|
|
8974
9064
|
},
|
|
8975
9065
|
{
|
|
8976
9066
|
"name": "dataTest",
|
|
8977
|
-
"required": false,
|
|
8978
9067
|
"description": "Data-test attribute for automated testing.",
|
|
8979
9068
|
"value": {
|
|
8980
9069
|
"kind": "expression",
|
|
8981
9070
|
"type": "string"
|
|
8982
|
-
}
|
|
9071
|
+
},
|
|
9072
|
+
"default": "\"\""
|
|
8983
9073
|
}
|
|
8984
9074
|
],
|
|
8985
9075
|
"slots": [
|