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.
Files changed (384) hide show
  1. package/adatper.locale/locales/en.d.ts +289 -0
  2. package/adatper.locale/vue-i18n.d.ts +9 -0
  3. package/adatper.locale/vueless.d.ts +11 -0
  4. package/composables/useAutoPosition.d.ts +15 -0
  5. package/composables/useBreakpoint.d.ts +7 -0
  6. package/composables/useBreakpoint.js +1 -1
  7. package/composables/useLocale.d.ts +3 -0
  8. package/composables/useMutationObserver.d.ts +7 -0
  9. package/composables/useUI.d.ts +17 -0
  10. package/composablesTs/useAutoPosition.d.ts +28 -0
  11. package/composablesTs/useAutoPosition.ts +115 -0
  12. package/composablesTs/useBreakpoint.d.ts +7 -0
  13. package/composablesTs/useBreakpoint.ts +106 -0
  14. package/composablesTs/useLocale.d.ts +3 -0
  15. package/composablesTs/useLocale.ts +25 -0
  16. package/composablesTs/useMutationObserver.d.ts +8 -0
  17. package/composablesTs/useMutationObserver.ts +50 -0
  18. package/composablesTs/useUI.d.ts +68 -0
  19. package/composablesTs/useUI.ts +566 -0
  20. package/constants.d.ts +42 -0
  21. package/constants.js +1 -1
  22. package/constants.ts +73 -0
  23. package/directives/clickOutside/storybook/stories.d.ts +653 -0
  24. package/directives/clickOutside/vClickOutside.d.ts +6 -0
  25. package/directives/clickOutside/vClickOutside.js +2 -2
  26. package/directives/index.d.ts +2 -0
  27. package/directives/tooltip/storybook/stories.d.ts +252 -0
  28. package/directives/tooltip/storybook/stories.js +5 -5
  29. package/directives/tooltip/vTooltip.d.ts +6 -0
  30. package/index.d.ts +15 -0
  31. package/{index.js → index.ts} +9 -6
  32. package/package.json +28 -17
  33. package/preset.tailwind.d.ts +116 -0
  34. package/{preset.tailwind.js → preset.tailwind.ts} +30 -22
  35. package/types.d.ts +131 -0
  36. package/types.ts +218 -0
  37. package/ui.button/UButton.vue.d.ts +73 -0
  38. package/ui.button/config.d.ts +130 -0
  39. package/ui.button/constants.d.ts +1 -0
  40. package/ui.button/storybook/stories.d.ts +3062 -0
  41. package/ui.button/useAttrs.d.ts +11 -0
  42. package/ui.button-link/ULink.vue +1 -1
  43. package/ui.button-link/ULink.vue.d.ts +66 -0
  44. package/ui.button-link/config.d.ts +101 -0
  45. package/ui.button-link/constants.d.ts +1 -0
  46. package/ui.button-link/storybook/stories.d.ts +4567 -0
  47. package/ui.button-link/useAttrs.d.ts +14 -0
  48. package/ui.button-toggle/UToggle.vue.d.ts +50 -0
  49. package/ui.button-toggle/config.d.ts +65 -0
  50. package/ui.button-toggle/constants.d.ts +3 -0
  51. package/ui.button-toggle/storybook/stories.d.ts +2683 -0
  52. package/ui.button-toggle/useAttrs.d.ts +11 -0
  53. package/ui.button-toggle-item/UToggleItem.vue.d.ts +36 -0
  54. package/ui.button-toggle-item/config.d.ts +41 -0
  55. package/ui.button-toggle-item/constants.d.ts +1 -0
  56. package/ui.button-toggle-item/storybook/stories.d.ts +495 -0
  57. package/ui.button-toggle-item/useAttrs.d.ts +15 -0
  58. package/ui.container-accordion/UAccordion.vue.d.ts +32 -0
  59. package/ui.container-accordion/config.d.ts +40 -0
  60. package/ui.container-accordion/constants.d.ts +1 -0
  61. package/ui.container-accordion/storybook/stories.d.ts +732 -0
  62. package/ui.container-accordion/useAttrs.d.ts +13 -0
  63. package/ui.container-card/UCard.vue.d.ts +31 -0
  64. package/ui.container-card/config.d.ts +13 -0
  65. package/ui.container-card/constants.d.ts +1 -0
  66. package/ui.container-card/storybook/stories.d.ts +3906 -0
  67. package/ui.container-card/useAttrs.d.ts +11 -0
  68. package/ui.container-col/UCol.vue.d.ts +33 -0
  69. package/ui.container-col/config.d.ts +81 -0
  70. package/ui.container-col/constants.d.ts +1 -0
  71. package/ui.container-col/storybook/stories.d.ts +840 -0
  72. package/ui.container-col/useAttrs.d.ts +11 -0
  73. package/ui.container-divider/UDivider.vue.d.ts +25 -0
  74. package/ui.container-divider/config.d.ts +102 -0
  75. package/ui.container-divider/constants.d.ts +1 -0
  76. package/ui.container-divider/storybook/stories.d.ts +577 -0
  77. package/ui.container-divider/useAttrs.d.ts +11 -0
  78. package/ui.container-group/UGroup.vue.d.ts +33 -0
  79. package/ui.container-group/config.d.ts +38 -0
  80. package/ui.container-group/constants.d.ts +1 -0
  81. package/ui.container-group/storybook/stories.d.ts +2869 -0
  82. package/ui.container-group/useAttrs.d.ts +11 -0
  83. package/ui.container-modal/UModal.vue.d.ts +59 -0
  84. package/ui.container-modal/config.d.ts +77 -0
  85. package/ui.container-modal/constants.d.ts +1 -0
  86. package/ui.container-modal/storybook/stories.d.ts +8377 -0
  87. package/ui.container-modal/useAttrs.d.ts +11 -0
  88. package/ui.container-modal-confirm/UModalConfirm.vue.d.ts +59 -0
  89. package/ui.container-modal-confirm/config.d.ts +23 -0
  90. package/ui.container-modal-confirm/constants.d.ts +1 -0
  91. package/ui.container-modal-confirm/storybook/stories.d.ts +4494 -0
  92. package/ui.container-modal-confirm/useAttrs.d.ts +11 -0
  93. package/ui.container-page/UPage.vue.d.ts +47 -0
  94. package/ui.container-page/config.d.ts +85 -0
  95. package/ui.container-page/constants.d.ts +1 -0
  96. package/ui.container-page/storybook/stories.d.ts +8723 -0
  97. package/ui.container-page/useAttrs.d.ts +13 -0
  98. package/ui.container-row/URow.vue.d.ts +35 -0
  99. package/ui.container-row/config.d.ts +85 -0
  100. package/ui.container-row/constants.d.ts +1 -0
  101. package/ui.container-row/storybook/stories.d.ts +2619 -0
  102. package/ui.container-row/useAttrs.d.ts +11 -0
  103. package/ui.data-list/UDataList.vue +4 -4
  104. package/ui.data-list/UDataList.vue.d.ts +74 -0
  105. package/ui.data-list/config.d.ts +48 -0
  106. package/ui.data-list/constants.d.ts +1 -0
  107. package/ui.data-list/storybook/stories.d.ts +3342 -0
  108. package/ui.data-list/useAttrs.d.ts +11 -0
  109. package/ui.data-table/UTable.vue.d.ts +90 -0
  110. package/ui.data-table/UTableRow.vue.d.ts +61 -0
  111. package/ui.data-table/config.d.ts +128 -0
  112. package/ui.data-table/constants.d.ts +1 -0
  113. package/ui.data-table/storybook/stories.d.ts +13069 -0
  114. package/ui.data-table/useAttrs.d.ts +17 -0
  115. package/ui.data-table/utilTable.d.ts +9 -0
  116. package/ui.dropdown-badge/UDropdownBadge.vue.d.ts +145 -0
  117. package/ui.dropdown-badge/config.d.ts +39 -0
  118. package/ui.dropdown-badge/constants.d.ts +1 -0
  119. package/ui.dropdown-badge/storybook/stories.d.ts +1246 -0
  120. package/ui.dropdown-badge/useAttrs.d.ts +13 -0
  121. package/ui.dropdown-button/UDropdownButton.vue.d.ts +151 -0
  122. package/ui.dropdown-button/config.d.ts +52 -0
  123. package/ui.dropdown-button/constants.d.ts +4 -0
  124. package/ui.dropdown-button/storybook/stories.d.ts +1912 -0
  125. package/ui.dropdown-button/useAttrs.d.ts +13 -0
  126. package/ui.dropdown-link/UDropdownLink.vue.d.ts +149 -0
  127. package/ui.dropdown-link/config.d.ts +37 -0
  128. package/ui.dropdown-link/constants.d.ts +1 -0
  129. package/ui.dropdown-link/storybook/stories.d.ts +1333 -0
  130. package/ui.dropdown-link/useAttrs.d.ts +13 -0
  131. package/ui.dropdown-list/UDropdownList.vue.d.ts +59 -0
  132. package/ui.dropdown-list/config.d.ts +77 -0
  133. package/ui.dropdown-list/constants.d.ts +1 -0
  134. package/ui.dropdown-list/storybook/stories.d.ts +783 -0
  135. package/ui.dropdown-list/useAttrs.d.ts +11 -0
  136. package/ui.dropdown-list/usePointer.d.ts +8 -0
  137. package/ui.form-calendar/UCalendar.vue.d.ts +31 -0
  138. package/ui.form-calendar/UCalendarDayView.vue.d.ts +26 -0
  139. package/ui.form-calendar/UCalendarMonthView.vue.d.ts +26 -0
  140. package/ui.form-calendar/UCalendarYearView.vue.d.ts +26 -0
  141. package/ui.form-calendar/config.d.ts +207 -0
  142. package/ui.form-calendar/constants.d.ts +66 -0
  143. package/ui.form-calendar/storybook/stories.d.ts +262 -0
  144. package/ui.form-calendar/useAttrs.d.ts +11 -0
  145. package/ui.form-calendar/utilCalendar.d.ts +8 -0
  146. package/ui.form-calendar/utilDate.d.ts +30 -0
  147. package/ui.form-calendar/utilFormatting.d.ts +68 -0
  148. package/ui.form-checkbox/UCheckbox.vue.d.ts +50 -0
  149. package/ui.form-checkbox/config.d.ts +67 -0
  150. package/ui.form-checkbox/constants.d.ts +1 -0
  151. package/ui.form-checkbox/storybook/stories.d.ts +1589 -0
  152. package/ui.form-checkbox/useAttrs.d.ts +14 -0
  153. package/ui.form-checkbox-group/UCheckboxGroup.vue.d.ts +40 -0
  154. package/ui.form-checkbox-group/config.d.ts +21 -0
  155. package/ui.form-checkbox-group/constants.d.ts +1 -0
  156. package/ui.form-checkbox-group/storybook/stories.d.ts +2441 -0
  157. package/ui.form-checkbox-group/useAttrs.d.ts +11 -0
  158. package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue.d.ts +24 -0
  159. package/ui.form-checkbox-multi-state/config.d.ts +10 -0
  160. package/ui.form-checkbox-multi-state/constants.d.ts +1 -0
  161. package/ui.form-checkbox-multi-state/storybook/stories.d.ts +187 -0
  162. package/ui.form-checkbox-multi-state/useAttrs.d.ts +13 -0
  163. package/ui.form-color-picker/UColorPicker.vue.d.ts +28 -0
  164. package/ui.form-color-picker/config.d.ts +42 -0
  165. package/ui.form-color-picker/constants.d.ts +1 -0
  166. package/ui.form-color-picker/storybook/stories.d.ts +316 -0
  167. package/ui.form-color-picker/useAttrs.d.ts +11 -0
  168. package/ui.form-date-picker/UDatePicker.vue.d.ts +135 -0
  169. package/ui.form-date-picker/config.d.ts +184 -0
  170. package/ui.form-date-picker/constants.d.ts +1 -0
  171. package/ui.form-date-picker/index.d.ts +1 -0
  172. package/ui.form-date-picker/storybook/stories.d.ts +3242 -0
  173. package/ui.form-date-picker/useAttrs.d.ts +14 -0
  174. package/ui.form-date-picker-range/UDatePickerRange.vue.d.ts +545 -0
  175. package/ui.form-date-picker-range/UDatePickerRangeInputs.vue.d.ts +6 -0
  176. package/ui.form-date-picker-range/UDatePickerRangePeriodMenu.vue.d.ts +7 -0
  177. package/ui.form-date-picker-range/config.d.ts +265 -0
  178. package/ui.form-date-picker-range/constants.d.ts +20 -0
  179. package/ui.form-date-picker-range/storybook/stories.d.ts +5545 -0
  180. package/ui.form-date-picker-range/useAttrs.d.ts +17 -0
  181. package/ui.form-date-picker-range/useUserFormat.d.ts +3 -0
  182. package/ui.form-date-picker-range/utilDateRange.d.ts +20 -0
  183. package/ui.form-date-picker-range/utilValidation.d.ts +3 -0
  184. package/ui.form-input/UInput.vue +1 -1
  185. package/ui.form-input/UInput.vue.d.ts +59 -0
  186. package/ui.form-input/config.d.ts +59 -0
  187. package/ui.form-input/constants.d.ts +1 -0
  188. package/ui.form-input/storybook/stories.d.ts +5734 -0
  189. package/ui.form-input/useAttrs.d.ts +11 -0
  190. package/ui.form-input-file/UInputFile.vue.d.ts +57 -0
  191. package/ui.form-input-file/config.d.ts +94 -0
  192. package/ui.form-input-file/constants.d.ts +1 -0
  193. package/ui.form-input-file/storybook/stories.d.ts +1116 -0
  194. package/ui.form-input-file/useAttrs.d.ts +11 -0
  195. package/ui.form-input-file/utilFileForm.d.ts +1 -0
  196. package/ui.form-input-money/UInputMoney.vue.d.ts +183 -0
  197. package/ui.form-input-money/config.d.ts +17 -0
  198. package/ui.form-input-money/constants.d.ts +1 -0
  199. package/ui.form-input-money/storybook/stories.d.ts +7519 -0
  200. package/ui.form-input-money/useAttrs.d.ts +11 -0
  201. package/ui.form-input-money/useFormatCurrency.d.ts +5 -0
  202. package/ui.form-input-money/useFormatCurrency.js +1 -1
  203. package/ui.form-input-money/utilFormat.d.ts +7 -0
  204. package/ui.form-input-number/UInputNumber.vue +4 -3
  205. package/ui.form-input-number/UInputNumber.vue.d.ts +30 -0
  206. package/ui.form-input-number/config.d.ts +40 -0
  207. package/ui.form-input-number/constants.d.ts +1 -0
  208. package/ui.form-input-number/storybook/stories.d.ts +363 -0
  209. package/ui.form-input-number/useAttrs.d.ts +11 -0
  210. package/ui.form-input-rating/UInputRating.vue.d.ts +49 -0
  211. package/ui.form-input-rating/config.d.ts +56 -0
  212. package/ui.form-input-rating/constants.d.ts +1 -0
  213. package/ui.form-input-rating/storybook/stories.d.ts +1336 -0
  214. package/ui.form-input-rating/useAttrs.d.ts +11 -0
  215. package/ui.form-input-search/UInputSearch.vue.d.ts +177 -0
  216. package/ui.form-input-search/config.d.ts +21 -0
  217. package/ui.form-input-search/constants.d.ts +1 -0
  218. package/ui.form-input-search/storybook/stories.d.ts +3325 -0
  219. package/ui.form-input-search/useAttrs.d.ts +11 -0
  220. package/ui.form-label/ULabel.vue.d.ts +46 -0
  221. package/ui.form-label/config.d.ts +139 -0
  222. package/ui.form-label/config.js +2 -2
  223. package/ui.form-label/constants.d.ts +8 -0
  224. package/ui.form-label/storybook/stories.d.ts +1133 -0
  225. package/ui.form-label/useAttrs.d.ts +11 -0
  226. package/ui.form-radio/URadio.vue.d.ts +46 -0
  227. package/ui.form-radio/config.d.ts +30 -0
  228. package/ui.form-radio/constants.d.ts +1 -0
  229. package/ui.form-radio/storybook/stories.d.ts +1270 -0
  230. package/ui.form-radio/useAttrs.d.ts +14 -0
  231. package/ui.form-radio-group/URadioGroup.vue.d.ts +40 -0
  232. package/ui.form-radio-group/config.d.ts +21 -0
  233. package/ui.form-radio-group/constants.d.ts +1 -0
  234. package/ui.form-radio-group/storybook/stories.d.ts +1239 -0
  235. package/ui.form-radio-group/useAttrs.d.ts +11 -0
  236. package/ui.form-select/USelect.vue.d.ts +405 -0
  237. package/ui.form-select/config.d.ts +146 -0
  238. package/ui.form-select/constants.d.ts +13 -0
  239. package/ui.form-select/storybook/stories.d.ts +19025 -0
  240. package/ui.form-select/useAttrs.d.ts +15 -0
  241. package/ui.form-select/utilSelect.d.ts +11 -0
  242. package/ui.form-switch/USwitch.vue.d.ts +30 -0
  243. package/ui.form-switch/config.d.ts +106 -0
  244. package/ui.form-switch/constants.d.ts +1 -0
  245. package/ui.form-switch/storybook/stories.d.ts +703 -0
  246. package/ui.form-switch/useAttrs.d.ts +13 -0
  247. package/ui.form-switch/utilVariant.d.ts +169 -0
  248. package/ui.form-textarea/UTextarea.vue.d.ts +132 -0
  249. package/ui.form-textarea/config.d.ts +55 -0
  250. package/ui.form-textarea/constants.d.ts +1 -0
  251. package/ui.form-textarea/storybook/stories.d.ts +2175 -0
  252. package/ui.form-textarea/useAttrs.d.ts +11 -0
  253. package/ui.image-avatar/UAvatar.vue.d.ts +40 -0
  254. package/ui.image-avatar/config.d.ts +51 -0
  255. package/ui.image-avatar/constants.d.ts +1 -0
  256. package/ui.image-avatar/storybook/stories.d.ts +1640 -0
  257. package/ui.image-avatar/useAttrs.d.ts +11 -0
  258. package/ui.image-icon/UIcon.vue.d.ts +28 -0
  259. package/ui.image-icon/config.d.ts +52 -0
  260. package/ui.image-icon/constants.d.ts +1 -0
  261. package/ui.image-icon/storybook/stories.d.ts +516 -0
  262. package/ui.image-icon/useAttrs.d.ts +11 -0
  263. package/ui.loader/ULoader.vue.d.ts +23 -0
  264. package/ui.loader/config.d.ts +49 -0
  265. package/ui.loader/constants.d.ts +2 -0
  266. package/ui.loader/storybook/stories.d.ts +655 -0
  267. package/ui.loader/useAttrs.d.ts +11 -0
  268. package/ui.loader-overlay/ULoaderOverlay.vue.d.ts +21 -0
  269. package/ui.loader-overlay/config.d.ts +25 -0
  270. package/ui.loader-overlay/constants.d.ts +1 -0
  271. package/ui.loader-overlay/storybook/stories.d.ts +362 -0
  272. package/ui.loader-overlay/useAttrs.d.ts +11 -0
  273. package/ui.loader-overlay/useLoaderOverlay.d.ts +10 -0
  274. package/ui.loader-overlay/utilLoaderOverlay.d.ts +2 -0
  275. package/ui.loader-progress/ULoaderProgress.vue.d.ts +11 -0
  276. package/ui.loader-progress/config.d.ts +24 -0
  277. package/ui.loader-progress/constants.d.ts +3 -0
  278. package/ui.loader-progress/storybook/stories.d.ts +742 -0
  279. package/ui.loader-progress/useAttrs.d.ts +11 -0
  280. package/ui.loader-progress/useLoaderProgress.d.ts +15 -0
  281. package/ui.loader-progress/utilLoaderProgress.d.ts +5 -0
  282. package/ui.navigation-pagination/UPagination.vue.d.ts +54 -0
  283. package/ui.navigation-pagination/config.d.ts +41 -0
  284. package/ui.navigation-pagination/constants.d.ts +1 -0
  285. package/ui.navigation-pagination/storybook/stories.d.ts +1033 -0
  286. package/ui.navigation-pagination/useAttrs.d.ts +11 -0
  287. package/ui.navigation-progress/StepperProgress.vue.d.ts +15 -0
  288. package/ui.navigation-progress/UProgress.vue.d.ts +41 -0
  289. package/ui.navigation-progress/config.d.ts +139 -0
  290. package/ui.navigation-progress/constants.d.ts +5 -0
  291. package/ui.navigation-progress/storybook/stories.d.ts +2827 -0
  292. package/ui.navigation-progress/useAttrs.d.ts +11 -0
  293. package/ui.navigation-tab/UTab.vue.d.ts +27 -0
  294. package/ui.navigation-tab/config.d.ts +24 -0
  295. package/ui.navigation-tab/constants.d.ts +1 -0
  296. package/ui.navigation-tab/storybook/stories.d.ts +316 -0
  297. package/ui.navigation-tab/useAttrs.d.ts +14 -0
  298. package/ui.navigation-tabs/UTabs.vue.d.ts +30 -0
  299. package/ui.navigation-tabs/config.d.ts +24 -0
  300. package/ui.navigation-tabs/constants.d.ts +1 -0
  301. package/ui.navigation-tabs/storybook/stories.d.ts +354 -0
  302. package/ui.navigation-tabs/useAttrs.d.ts +11 -0
  303. package/ui.other-dot/UDot.vue.d.ts +13 -0
  304. package/ui.other-dot/config.d.ts +28 -0
  305. package/ui.other-dot/constants.d.ts +1 -0
  306. package/ui.other-dot/storybook/stories.d.ts +645 -0
  307. package/ui.other-dot/useAttrs.d.ts +11 -0
  308. package/ui.text-alert/UAlert.vue.d.ts +53 -0
  309. package/ui.text-alert/config.d.ts +75 -0
  310. package/ui.text-alert/constants.d.ts +1 -0
  311. package/ui.text-alert/storybook/stories.d.ts +4845 -0
  312. package/ui.text-alert/useAttrs.d.ts +11 -0
  313. package/ui.text-badge/UBadge.vue.d.ts +60 -0
  314. package/ui.text-badge/config.d.ts +102 -0
  315. package/ui.text-badge/constants.d.ts +1 -0
  316. package/ui.text-badge/storybook/stories.d.ts +1869 -0
  317. package/ui.text-badge/useAttrs.d.ts +11 -0
  318. package/ui.text-block/UText.vue +18 -62
  319. package/ui.text-block/UText.vue.d.ts +21 -0
  320. package/ui.text-block/config.d.ts +27 -0
  321. package/ui.text-block/constants.d.ts +1 -0
  322. package/ui.text-block/storybook/Docs.mdx +2 -2
  323. package/ui.text-block/storybook/stories.d.ts +12 -0
  324. package/ui.text-block/storybook/{stories.js → stories.ts} +12 -7
  325. package/ui.text-block/types.d.ts +9 -0
  326. package/ui.text-block/types.ts +33 -0
  327. package/ui.text-block/useAttrs.d.ts +3 -0
  328. package/ui.text-block/useAttrs.ts +18 -0
  329. package/ui.text-empty/UEmpty.vue.d.ts +29 -0
  330. package/ui.text-empty/config.d.ts +55 -0
  331. package/ui.text-empty/constants.d.ts +1 -0
  332. package/ui.text-empty/storybook/stories.d.ts +1212 -0
  333. package/ui.text-empty/useAttrs.d.ts +11 -0
  334. package/ui.text-file/UFile.vue +12 -14
  335. package/ui.text-file/UFile.vue.d.ts +57 -0
  336. package/ui.text-file/config.d.ts +42 -0
  337. package/ui.text-file/config.js +12 -2
  338. package/ui.text-file/constants.d.ts +1 -0
  339. package/ui.text-file/storybook/stories.d.ts +136 -0
  340. package/ui.text-file/useAttrs.d.ts +11 -0
  341. package/ui.text-files/UFiles.vue.d.ts +52 -0
  342. package/ui.text-files/config.d.ts +10 -0
  343. package/ui.text-files/config.js +1 -1
  344. package/ui.text-files/constants.d.ts +1 -0
  345. package/ui.text-files/storybook/stories.d.ts +131 -0
  346. package/ui.text-files/useAttrs.d.ts +11 -0
  347. package/ui.text-header/UHeader.vue.d.ts +33 -0
  348. package/ui.text-header/config.d.ts +54 -0
  349. package/ui.text-header/constants.d.ts +1 -0
  350. package/ui.text-header/storybook/stories.d.ts +694 -0
  351. package/ui.text-header/useAttrs.d.ts +11 -0
  352. package/ui.text-money/UMoney.vue.d.ts +48 -0
  353. package/ui.text-money/config.d.ts +77 -0
  354. package/ui.text-money/constants.d.ts +1 -0
  355. package/ui.text-money/storybook/stories.d.ts +2090 -0
  356. package/ui.text-money/useAttrs.d.ts +11 -0
  357. package/ui.text-money/utilMoney.d.ts +14 -0
  358. package/ui.text-money/utilMoney.js +2 -2
  359. package/ui.text-notify/UNotify.vue.d.ts +13 -0
  360. package/ui.text-notify/config.d.ts +58 -0
  361. package/ui.text-notify/constants.d.ts +20 -0
  362. package/ui.text-notify/storybook/stories.d.ts +653 -0
  363. package/ui.text-notify/useAttrs.d.ts +11 -0
  364. package/ui.text-notify/utilNotify.d.ts +7 -0
  365. package/utils/utilHelper.d.ts +9 -0
  366. package/utils/utilPlatform.d.ts +6 -0
  367. package/utils/utilStorybook.d.ts +15 -0
  368. package/utils/utilUI.d.ts +68 -0
  369. package/utilsTs/utilHelper.d.ts +9 -0
  370. package/utilsTs/utilHelper.ts +70 -0
  371. package/utilsTs/utilPlatform.d.ts +7 -0
  372. package/utilsTs/utilPlatform.ts +53 -0
  373. package/utilsTs/utilStorybook.d.ts +24 -0
  374. package/utilsTs/utilStorybook.ts +292 -0
  375. package/utilsTs/utilTailwind.d.ts +1 -0
  376. package/utilsTs/utilTailwind.ts +38 -0
  377. package/utilsTs/utilTheme.d.ts +8 -0
  378. package/{utils/utilTheme.js → utilsTs/utilTheme.ts} +31 -27
  379. package/utilsTs/utilUI.d.ts +67 -0
  380. package/utilsTs/utilUI.ts +142 -0
  381. package/web-types.json +30 -120
  382. package/ui.text-block/useAttrs.js +0 -15
  383. /package/ui.text-block/{config.js → config.ts} +0 -0
  384. /package/ui.text-block/{constants.js → constants.ts} +0 -0
@@ -0,0 +1,6 @@
1
+ export const isMac: boolean;
2
+ export const isPWA: boolean;
3
+ export const isIOS: any;
4
+ export const isAndroid: boolean;
5
+ export const isMobileApp: any;
6
+ export const isWindows: boolean;
@@ -0,0 +1,15 @@
1
+ export function getSlotNames(componentName: any): any;
2
+ export function getArgTypes(componentName: any): {
3
+ defaultTemplate: {
4
+ table: {
5
+ disable: boolean;
6
+ };
7
+ };
8
+ slotTemplate: {
9
+ table: {
10
+ disable: boolean;
11
+ };
12
+ };
13
+ } | undefined;
14
+ export function getSource(defaultConfig: any): any;
15
+ export function getSlotsFragment(defaultTemplate: any): string;
@@ -0,0 +1,68 @@
1
+ export function getDefault(defaultConfig: Object, name: string): Object;
2
+ export function getColor(color: string): string;
3
+ export function setColor(classes: string, color: string): string;
4
+ export function getRandomId(length?: number): string;
5
+ export let vuelessConfig: {};
6
+ export const cx: import("cva").CX;
7
+ export const compose: import("cva").Compose;
8
+ export const classVarianceAuthority: import("cva").CVA;
9
+ export function cva({ base, variants, compoundVariants, defaultVariants }: {
10
+ base?: string | undefined;
11
+ variants?: {} | undefined;
12
+ compoundVariants?: never[] | undefined;
13
+ defaultVariants?: {} | undefined;
14
+ }): (props?: ({} & ({
15
+ class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
16
+ [x: string]: any;
17
+ } | null | undefined)[] | {
18
+ [x: string]: any;
19
+ } | null | undefined)[] | {
20
+ [x: string]: any;
21
+ } | null | undefined)[] | {
22
+ [x: string]: any;
23
+ } | null | undefined)[] | {
24
+ [x: string]: any;
25
+ } | null | undefined)[] | {
26
+ [x: string]: any;
27
+ } | null | undefined)[] | {
28
+ [x: string]: any;
29
+ } | null | undefined)[] | {
30
+ [x: string]: any;
31
+ } | null | undefined)[] | {
32
+ [x: string]: any;
33
+ } | null | undefined)[] | {
34
+ [x: string]: any;
35
+ } | null | undefined)[] | {
36
+ [x: string]: any;
37
+ } | null | undefined)[] | {
38
+ [x: string]: any;
39
+ } | null | undefined;
40
+ className?: never;
41
+ } | {
42
+ class?: never;
43
+ className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
44
+ [x: string]: any;
45
+ } | null | undefined)[] | {
46
+ [x: string]: any;
47
+ } | null | undefined)[] | {
48
+ [x: string]: any;
49
+ } | null | undefined)[] | {
50
+ [x: string]: any;
51
+ } | null | undefined)[] | {
52
+ [x: string]: any;
53
+ } | null | undefined)[] | {
54
+ [x: string]: any;
55
+ } | null | undefined)[] | {
56
+ [x: string]: any;
57
+ } | null | undefined)[] | {
58
+ [x: string]: any;
59
+ } | null | undefined)[] | {
60
+ [x: string]: any;
61
+ } | null | undefined)[] | {
62
+ [x: string]: any;
63
+ } | null | undefined)[] | {
64
+ [x: string]: any;
65
+ } | null | undefined)[] | {
66
+ [x: string]: any;
67
+ } | null | undefined;
68
+ })) | undefined) => string;
@@ -0,0 +1,9 @@
1
+ export declare function cloneDeep(entity: unknown, cache?: WeakMap<object, any>): unknown;
2
+ export declare function createDebounce(func: () => void, ms: number): () => void;
3
+ export declare function setTitle({ title, separator, suffix }: {
4
+ title?: string | undefined;
5
+ separator?: string | undefined;
6
+ suffix?: string | undefined;
7
+ }): void;
8
+ export declare const isSSR: boolean;
9
+ export declare const isCSR: boolean;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Deeply clone given object (same as lodash.cloneDeep).
3
+ */
4
+ export function cloneDeep(entity: unknown, cache = new WeakMap()): unknown {
5
+ // primitives
6
+ if (Object(entity) !== entity || !entity) {
7
+ return entity;
8
+ }
9
+
10
+ // cyclic reference
11
+ if (cache.has(entity)) {
12
+ return cache.get(entity);
13
+ }
14
+
15
+ const result =
16
+ entity instanceof Set
17
+ ? new Set(entity)
18
+ : entity instanceof Map
19
+ ? new Map(Array.from(entity, ([key, val]) => [key, cloneDeep(val, cache)]))
20
+ : entity instanceof Date
21
+ ? new Date(entity)
22
+ : entity instanceof RegExp
23
+ ? new RegExp(entity.source, entity.flags)
24
+ : entity.constructor
25
+ ? new (entity.constructor as { new (): typeof entity })()
26
+ : Object.create(null);
27
+
28
+ cache.set(entity, result);
29
+
30
+ return Object.assign(
31
+ result,
32
+ ...Object.keys(entity).map((key) => ({
33
+ [key]: cloneDeep((entity as Record<string | number, unknown>)[key], cache),
34
+ })),
35
+ );
36
+ }
37
+
38
+ /**
39
+ * Creates a debounced function with delay (same as lodash.debounce).
40
+ */
41
+ export function createDebounce(func: () => void, ms: number) {
42
+ let timeout: ReturnType<typeof setTimeout>;
43
+
44
+ return function (...args: []) {
45
+ clearTimeout(timeout);
46
+ // @ts-expect-error - this implicitly has type any because it does not have a type annotation.
47
+ timeout = setTimeout(() => func.apply(this as unknown, args), ms);
48
+ };
49
+ }
50
+
51
+ /**
52
+ * Change page title in runtime by provided config.
53
+ */
54
+ export function setTitle({ title = "", separator = " / ", suffix = "" }) {
55
+ if (isCSR) {
56
+ document.title = title ? title + separator + suffix : suffix;
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Check is code rendering on the server side.
62
+ * @returns {boolean}
63
+ */
64
+ export const isSSR = typeof window === "undefined";
65
+
66
+ /**
67
+ * Check is code rendering on the client side.
68
+ * @returns {boolean}
69
+ */
70
+ export const isCSR = typeof window !== "undefined";
@@ -0,0 +1,7 @@
1
+ declare const isWindows: boolean;
2
+ declare const isMac: boolean;
3
+ declare const isPWA: boolean;
4
+ declare const isIOS: boolean;
5
+ declare const isAndroid: boolean;
6
+ declare const isMobileApp: boolean;
7
+ export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows };
@@ -0,0 +1,53 @@
1
+ import { isCSR } from "./utilHelper";
2
+
3
+ interface ModernNavigator extends Navigator {
4
+ standalone: string;
5
+ userAgentData: {
6
+ platform: string;
7
+ };
8
+ }
9
+
10
+ const isWindows = isCSR && checkIsWindows();
11
+ const isMac = isCSR && checkIsMac();
12
+ const isPWA = isCSR && checkIsPWA();
13
+ const isIOS = isCSR && checkIsIOS();
14
+ const isAndroid = isCSR && checkIsAndroid();
15
+ const isMobileApp = isPWA || isIOS || isAndroid;
16
+
17
+ function checkIsWindows() {
18
+ return getPlatform().toUpperCase().indexOf("WINDOWS") >= 0;
19
+ }
20
+
21
+ function checkIsMac() {
22
+ return getPlatform().toUpperCase().indexOf("MAC") >= 0;
23
+ }
24
+
25
+ function checkIsPWA() {
26
+ return !!(navigator as ModernNavigator).standalone;
27
+ }
28
+
29
+ function checkIsIOS() {
30
+ const iOSDevices = [
31
+ "iPad Simulator",
32
+ "iPhone Simulator",
33
+ "iPod Simulator",
34
+ "iPad",
35
+ "iPhone",
36
+ "iPod",
37
+ ];
38
+
39
+ const platform = getPlatform();
40
+ const isIpodIOS13 = platform.includes("Mac") && "ontouchend" in document;
41
+
42
+ return iOSDevices.includes(platform) || isIpodIOS13;
43
+ }
44
+
45
+ function checkIsAndroid() {
46
+ return getPlatform().toUpperCase().indexOf("ANDROID") >= 0;
47
+ }
48
+
49
+ function getPlatform() {
50
+ return (navigator as ModernNavigator).userAgentData?.platform || navigator.platform || "unknown";
51
+ }
52
+
53
+ export { isMac, isPWA, isIOS, isAndroid, isMobileApp, isWindows };
@@ -0,0 +1,24 @@
1
+ interface Types {
2
+ [key: string]: ArgType | undefined;
3
+ }
4
+ interface ArgType {
5
+ control?: "text" | "number" | "boolean" | "array" | "select" | false;
6
+ options?: string[];
7
+ table?: TableConfig;
8
+ name?: string;
9
+ description?: string;
10
+ type?: string | null;
11
+ action?: string;
12
+ }
13
+ interface TableConfig {
14
+ disable?: boolean;
15
+ defaultValue?: {
16
+ summary: unknown;
17
+ };
18
+ category?: "slots" | "expose" | "Storybook Events";
19
+ }
20
+ export declare function getSlotNames(componentName: string): string[] | undefined;
21
+ export declare function getArgTypes(componentName: string): Partial<Types> | undefined;
22
+ export declare function getSource(defaultConfig: string): string;
23
+ export declare function getSlotsFragment(defaultTemplate: string): string;
24
+ export {};
@@ -0,0 +1,292 @@
1
+ interface WebTypes {
2
+ framework: string;
3
+ name: string;
4
+ version: string;
5
+ contributions: Contributions;
6
+ }
7
+
8
+ interface Contributions {
9
+ html: HtmlContributions;
10
+ }
11
+
12
+ interface HtmlContributions {
13
+ "description-markup": string;
14
+ "types-syntax": string;
15
+ tags: Tag[];
16
+ }
17
+
18
+ interface Tag {
19
+ name: string;
20
+ description?: string;
21
+ attributes?: Attribute[];
22
+ events?: Event[];
23
+ slots?: Slot[];
24
+ exposes?: Expose[];
25
+ source?: Source;
26
+ }
27
+
28
+ interface Attribute {
29
+ name: string;
30
+ required?: boolean;
31
+ description?: string;
32
+ value: AttributeValue;
33
+ default?: unknown;
34
+ }
35
+
36
+ interface AttributeValue {
37
+ kind: string;
38
+ type: string;
39
+ }
40
+
41
+ interface Event {
42
+ name: string;
43
+ description?: string;
44
+ properties?: EventProperty[];
45
+ }
46
+
47
+ interface EventProperty {
48
+ type: string[];
49
+ name: string;
50
+ description?: string;
51
+ }
52
+
53
+ interface Slot {
54
+ name: string;
55
+ description?: string;
56
+ scoped?: boolean;
57
+ bindings?: SlotBinding[];
58
+ }
59
+
60
+ interface SlotBinding {
61
+ type: string;
62
+ name: string;
63
+ description?: string;
64
+ }
65
+
66
+ interface Expose {
67
+ name: string;
68
+ description?: string;
69
+ properties: ExposeProperty[];
70
+ }
71
+
72
+ interface ExposeProperty {
73
+ type: string;
74
+ description?: string;
75
+ }
76
+
77
+ interface Source {
78
+ module: string;
79
+ symbol: string;
80
+ }
81
+
82
+ interface Types {
83
+ [key: string]: ArgType | undefined;
84
+ }
85
+
86
+ interface ArgType {
87
+ control?: "text" | "number" | "boolean" | "array" | "select" | false;
88
+ options?: string[];
89
+ table?: TableConfig;
90
+ name?: string;
91
+ description?: string;
92
+ type?: string | null;
93
+ action?: string;
94
+ }
95
+
96
+ interface TableConfig {
97
+ disable?: boolean;
98
+ defaultValue?: { summary: unknown };
99
+ category?: "slots" | "expose" | "Storybook Events";
100
+ }
101
+
102
+ /* Load Web-Types from the project root. */
103
+ const [webTypes]: WebTypes[] = Object.values(
104
+ import.meta.glob("/web-types.json", { eager: true, import: "default" }),
105
+ );
106
+
107
+ const getComponentData = (componentName: string) => {
108
+ return webTypes.contributions.html.tags.find((item: Tag) => item.name === componentName);
109
+ };
110
+
111
+ export function getSlotNames(componentName: string) {
112
+ return getComponentData(componentName)?.slots?.map((item) => item.name);
113
+ }
114
+
115
+ export function getArgTypes(componentName: string) {
116
+ const component = getComponentData(componentName);
117
+
118
+ if (!component) return;
119
+
120
+ const types: Partial<Types> = {
121
+ // Hide default template arg in docs.
122
+ defaultTemplate: { table: { disable: true } },
123
+ // Hide slot template arg in docs.
124
+ slotTemplate: { table: { disable: true } },
125
+ };
126
+
127
+ component.attributes?.forEach((attribute: Attribute) => {
128
+ const type = attribute.value.type;
129
+
130
+ if (type === "string" || type.includes("string")) {
131
+ types[attribute.name] = {
132
+ control: "text",
133
+ table: {
134
+ defaultValue: { summary: attribute.default || "" },
135
+ },
136
+ };
137
+ }
138
+
139
+ if (type === "number") {
140
+ types[attribute.name] = {
141
+ control: "number",
142
+ table: {
143
+ defaultValue: { summary: attribute.default || "" },
144
+ },
145
+ };
146
+ }
147
+
148
+ if (type === "boolean") {
149
+ types[attribute.name] = {
150
+ control: "boolean",
151
+ table: {
152
+ defaultValue: { summary: attribute.default || "" },
153
+ },
154
+ };
155
+ }
156
+
157
+ if (type === "array") {
158
+ types[attribute.name] = {
159
+ control: "array",
160
+ table: {
161
+ defaultValue: { summary: attribute.default || [] },
162
+ },
163
+ };
164
+ }
165
+
166
+ if (type.includes("|")) {
167
+ const options = attribute.value.type.replace(/['|]/g, "").split(/\s+/);
168
+
169
+ if (options.length > 1) {
170
+ types[attribute.name] = {
171
+ options,
172
+ control: "select",
173
+ table: {
174
+ defaultValue: { summary: attribute.default || "" },
175
+ },
176
+ };
177
+ } else {
178
+ types[attribute.name] = {
179
+ control: type.split("|")[0] as ArgType["control"],
180
+ table: {
181
+ defaultValue: { summary: attribute.default || "" },
182
+ },
183
+ };
184
+ }
185
+ }
186
+
187
+ if (attribute.description?.includes("@ignore")) {
188
+ types[attribute.name] = {
189
+ table: {
190
+ disable: true,
191
+ },
192
+ };
193
+ }
194
+ });
195
+
196
+ component.slots?.forEach((slot) => {
197
+ const bindings: string[] = [];
198
+
199
+ slot.bindings?.forEach((binding: SlotBinding) => {
200
+ if (binding.name === "name") return;
201
+
202
+ const description = binding.description ? ` (${binding.description})` : "";
203
+
204
+ bindings.push(`${binding.name}: ${binding.type}${description}`);
205
+ });
206
+
207
+ types[`${slot.name}Slot`] = {
208
+ name: slot.name,
209
+ description: slot.description,
210
+ type: slot.bindings ? `{ ${bindings.join(", ")} }` : null,
211
+ control: "text",
212
+ table: { category: "slots" },
213
+ };
214
+
215
+ // Hide autogenerated slot docs, but keep props with the same name
216
+ if (!component.attributes?.map((item) => item.name)?.includes(slot.name)) {
217
+ types[slot.name] = {
218
+ table: {
219
+ disable: true,
220
+ },
221
+ };
222
+ }
223
+ });
224
+
225
+ component.exposes?.forEach((expose) => {
226
+ const properties: string[] = [];
227
+
228
+ expose.properties?.forEach((property: ExposeProperty) => {
229
+ const description = property.description ? ` (${property.description})` : "";
230
+
231
+ properties.push(`${property.type}${description}`);
232
+ });
233
+
234
+ types[`${expose.name}Expose`] = {
235
+ type: expose.properties ? properties.join(", ") : null,
236
+ name: expose.name,
237
+ description: expose.description,
238
+ control: false,
239
+ table: { category: "expose" },
240
+ };
241
+
242
+ // Hide autogenerated expose docs, but keep props with the same name
243
+ if (!component.attributes?.map((item) => item.name)?.includes(expose.name)) {
244
+ types[expose.name] = {
245
+ table: {
246
+ disable: true,
247
+ },
248
+ };
249
+ }
250
+ });
251
+
252
+ component.events?.forEach((event) => {
253
+ const properties: string[] = [];
254
+
255
+ event.properties?.forEach((property: EventProperty) => {
256
+ const description = property.description ? ` (${property.description})` : "";
257
+
258
+ properties.push(`${property.name}: ${property.type}${description}`);
259
+ });
260
+
261
+ types[event.name] = {
262
+ type: event.properties ? properties.join(", ") : null,
263
+ name: event.name,
264
+ description: event.description,
265
+ };
266
+
267
+ if (import.meta.env.STORYBOOK_FULL) {
268
+ const eventName = "on" + event.name.charAt(0).toUpperCase() + event.name.slice(1);
269
+
270
+ types[eventName] = {
271
+ action: event.name,
272
+ table: { category: "Storybook Events" },
273
+ };
274
+ }
275
+ });
276
+
277
+ return types;
278
+ }
279
+
280
+ export function getSource(defaultConfig: string) {
281
+ return defaultConfig.replace("export default /*tw*/ ", "").replace(";", "");
282
+ }
283
+
284
+ export function getSlotsFragment(defaultTemplate: string) {
285
+ return `
286
+ <template v-for="(slot, index) of slots" :key="index" v-slot:[slot]>
287
+ <template v-if="slot === 'default' && !args['defaultSlot']">${defaultTemplate || ""}</template>
288
+ <template v-else-if="slot === 'default' && args['defaultSlot']">{{ args['defaultSlot'] }}</template>
289
+ <template v-else-if="args[slot + 'Slot']">{{ args[slot + 'Slot'] }}</template>
290
+ </template>
291
+ `;
292
+ }
@@ -0,0 +1 @@
1
+ export declare let fullTailwindConfig: any;
@@ -0,0 +1,38 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ import resolveConfig from "tailwindcss/resolveConfig";
4
+ import { isSSR, isCSR } from "./utilHelper";
5
+
6
+ import type { Config } from "tailwindcss";
7
+
8
+ /**
9
+ * Load Tailwind config from the project root.
10
+ * Both for server and client side renderings.
11
+ * IIFE for SSR is used to prevent top level await issue.
12
+ */
13
+ export let fullTailwindConfig: any;
14
+
15
+ if (isSSR) {
16
+ /* Load Tailwind config from the project root in IIFE (no top-level await). */
17
+ (async () => {
18
+ try {
19
+ const filePath = `${process.cwd()}/tailwind.config`;
20
+
21
+ let tailwindConfig = (await import(/* @vite-ignore */ `${filePath}.js`)).default;
22
+
23
+ if (!tailwindConfig) {
24
+ tailwindConfig = (await import(/* @vite-ignore */ `${filePath}.ts`)).default;
25
+ }
26
+
27
+ fullTailwindConfig = resolveConfig(tailwindConfig);
28
+ } catch {}
29
+ })();
30
+ }
31
+
32
+ if (isCSR) {
33
+ const tailwindConfig = Object.values(
34
+ import.meta.glob("/tailwind.config.{js,ts}", { eager: true, import: "default" }),
35
+ )[0] as Config;
36
+
37
+ fullTailwindConfig = resolveConfig(tailwindConfig);
38
+ }
@@ -0,0 +1,8 @@
1
+ import type { ThemeConfig } from "../types";
2
+ interface InternalThemeConfig extends ThemeConfig {
3
+ systemDarkMode?: boolean;
4
+ }
5
+ export declare function themeInit(): void;
6
+ export declare function setTheme(config?: InternalThemeConfig): string;
7
+ export declare function convertHexInRgb(hex: string): string;
8
+ export {};