@indielayer/ui 1.18.1 → 2.1.0

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 (979) hide show
  1. package/docs/App.vue +19 -4
  2. package/docs/assets/css/hljs.css +0 -1
  3. package/docs/assets/css/tailwind.css +40 -9
  4. package/docs/components/Cookies.vue +3 -1
  5. package/docs/components/common/CodePreview.vue +1 -1
  6. package/docs/components/common/CodeSnippet.vue +30 -18
  7. package/docs/components/common/DocsCopyPage.vue +200 -0
  8. package/docs/components/common/DocsHero.vue +3 -3
  9. package/docs/components/common/DocumentPage.vue +105 -50
  10. package/docs/components/common/ExampleBlocks.vue +147 -8
  11. package/docs/components/menu/DocsMenu.vue +3 -1
  12. package/docs/components/toolbar/PreToolbar.vue +1 -1
  13. package/docs/components/toolbar/Toolbar.vue +1 -1
  14. package/docs/components/toolbar/ToolbarColorToggle.vue +29 -18
  15. package/docs/components/toolbar/ToolbarSearch.vue +7 -7
  16. package/docs/composables/useDocMeta.ts +63 -4
  17. package/docs/icons.ts +3 -0
  18. package/docs/main.ts +26 -22
  19. package/docs/pages/colors.vue +11 -19
  20. package/docs/pages/component/accordion/index.vue +2 -2
  21. package/docs/pages/component/alert/index.vue +2 -2
  22. package/docs/pages/component/avatar/index.vue +4 -4
  23. package/docs/pages/component/badge/index.vue +2 -2
  24. package/docs/pages/component/breadcrumbs/index.vue +2 -2
  25. package/docs/pages/component/button/button-group.vue +3 -3
  26. package/docs/pages/component/button/index.vue +14 -7
  27. package/docs/pages/component/button/tooltip.vue +10 -0
  28. package/docs/pages/component/button/variants.vue +1 -1
  29. package/docs/pages/component/card/index.vue +2 -2
  30. package/docs/pages/component/carousel/index.vue +2 -2
  31. package/docs/pages/component/checkbox/index.vue +5 -5
  32. package/docs/pages/component/container/index.vue +2 -2
  33. package/docs/pages/component/datepicker/index.vue +2 -2
  34. package/docs/pages/component/divider/index.vue +4 -4
  35. package/docs/pages/component/drawer/index.vue +3 -3
  36. package/docs/pages/component/empty/actions.vue +11 -0
  37. package/docs/pages/component/empty/bordered.vue +7 -0
  38. package/docs/pages/component/empty/index.vue +43 -0
  39. package/docs/pages/component/empty/usage.vue +6 -0
  40. package/docs/pages/component/form/index.vue +2 -2
  41. package/docs/pages/component/form/usage.vue +36 -0
  42. package/docs/pages/component/formGroup/index.vue +3 -3
  43. package/docs/pages/component/icon/formats.vue +65 -0
  44. package/docs/pages/component/icon/index.vue +11 -4
  45. package/docs/pages/component/icon/usage.vue +52 -4
  46. package/docs/pages/component/image/index.vue +16 -2
  47. package/docs/pages/component/image/sizing.vue +42 -0
  48. package/docs/pages/component/image/states.vue +45 -0
  49. package/docs/pages/component/image/usage.vue +9 -6
  50. package/docs/pages/component/infiniteLoader/composable.vue +7 -5
  51. package/docs/pages/component/infiniteLoader/index.vue +3 -3
  52. package/docs/pages/component/infiniteLoader/usage.vue +7 -5
  53. package/docs/pages/component/input/index.vue +6 -6
  54. package/docs/pages/component/input/variants.vue +11 -0
  55. package/docs/pages/component/inputGroup/index.vue +43 -0
  56. package/docs/pages/component/inputGroup/mixed.vue +18 -0
  57. package/docs/pages/component/inputGroup/usage.vue +20 -0
  58. package/docs/pages/component/inputGroup/validation.vue +38 -0
  59. package/docs/pages/component/link/index.vue +2 -2
  60. package/docs/pages/component/loader/index.vue +2 -2
  61. package/docs/pages/component/menu/index.vue +2 -2
  62. package/docs/pages/component/modal/index.vue +3 -3
  63. package/docs/pages/component/notifications/index.vue +2 -2
  64. package/docs/pages/component/pagination/index.vue +2 -2
  65. package/docs/pages/component/popover/index.vue +2 -2
  66. package/docs/pages/component/popover/usage.vue +14 -0
  67. package/docs/pages/component/progress/index.vue +3 -3
  68. package/docs/pages/component/qrCode/index.vue +2 -2
  69. package/docs/pages/component/radio/index.vue +26 -12
  70. package/docs/pages/component/radio/payment-method.vue +28 -0
  71. package/docs/pages/component/radio/radio-button-form-group.vue +28 -0
  72. package/docs/pages/component/radio/radio-button.vue +26 -0
  73. package/docs/pages/component/scroll/index.vue +3 -3
  74. package/docs/pages/component/select/index.vue +5 -5
  75. package/docs/pages/component/skeleton/index.vue +2 -2
  76. package/docs/pages/component/skeleton/usage.vue +1 -1
  77. package/docs/pages/component/slider/index.vue +2 -2
  78. package/docs/pages/component/spacer/index.vue +2 -2
  79. package/docs/pages/component/spinner/index.vue +3 -3
  80. package/docs/pages/component/stepper/index.vue +9 -2
  81. package/docs/pages/component/stepper/usage.vue +56 -12
  82. package/docs/pages/component/stepper/wizard.vue +126 -0
  83. package/docs/pages/component/table/index.vue +5 -5
  84. package/docs/pages/component/table/states.vue +5 -3
  85. package/docs/pages/component/table/virtual.vue +1 -1
  86. package/docs/pages/component/tabs/index.vue +2 -2
  87. package/docs/pages/component/tabs/usage.vue +26 -0
  88. package/docs/pages/component/tag/index.vue +2 -2
  89. package/docs/pages/component/textarea/index.vue +4 -4
  90. package/docs/pages/component/toggle/index.vue +4 -4
  91. package/docs/pages/component/tooltip/content.vue +11 -0
  92. package/docs/pages/component/tooltip/index.vue +30 -2
  93. package/docs/pages/component/tooltip/placement.vue +18 -0
  94. package/docs/pages/component/tooltip/states.vue +5 -0
  95. package/docs/pages/component/tooltip/toggle-tip.vue +6 -0
  96. package/docs/pages/component/tooltip/usage.vue +8 -9
  97. package/docs/pages/component/upload/index.vue +2 -2
  98. package/docs/pages/component/upload/usage.vue +1 -0
  99. package/docs/pages/component/virtualGrid/index.vue +2 -2
  100. package/docs/pages/component/virtualGrid/usage.vue +5 -2
  101. package/docs/pages/component/virtualList/dynamicHeight.vue +8 -8
  102. package/docs/pages/component/virtualList/index.vue +3 -3
  103. package/docs/pages/component/virtualList/usage.vue +5 -2
  104. package/docs/pages/icons.vue +2 -2
  105. package/docs/pages/index.vue +30 -33
  106. package/docs/router/index.ts +39 -44
  107. package/docs/search/components.json +1 -1
  108. package/docs/search/index.json +1 -1
  109. package/docs/utils/shikiHighlighter.ts +22 -0
  110. package/exports/nuxt.mjs +1 -1
  111. package/exports/nuxt.plugin.js +1 -0
  112. package/exports/tailwind.css +74 -0
  113. package/lib/_virtual/_plugin-vue_export-helper.js +7 -8
  114. package/lib/_virtual/_rolldown/runtime.js +17 -0
  115. package/lib/common/buttonGroupRadius.d.ts +3 -0
  116. package/lib/common/buttonGroupRadius.js +6 -0
  117. package/lib/common/colors.js +370 -19
  118. package/lib/common/icons.d.ts +1 -0
  119. package/lib/common/icons.js +4 -22
  120. package/lib/common/inputGroupRadius.d.ts +2 -0
  121. package/lib/common/inputGroupRadius.js +6 -0
  122. package/lib/common/props.d.ts +27 -0
  123. package/lib/common/props.js +19 -0
  124. package/lib/common/utils.js +17 -24
  125. package/lib/componentDefaults.d.ts +18 -0
  126. package/lib/components/accordion/Accordion.js +5 -0
  127. package/lib/components/accordion/Accordion.vue.d.ts +45 -13
  128. package/lib/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +49 -0
  129. package/lib/components/accordion/AccordionItem.js +5 -0
  130. package/lib/components/accordion/AccordionItem.vue.d.ts +36 -10
  131. package/lib/components/accordion/AccordionItem.vue_vue_type_script_setup_true_lang.js +163 -0
  132. package/lib/components/accordion/theme/Accordion.base.theme.js +4 -8
  133. package/lib/components/accordion/theme/Accordion.carbon.theme.js +4 -4
  134. package/lib/components/accordion/theme/AccordionItem.base.theme.js +14 -16
  135. package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +4 -4
  136. package/lib/components/alert/Alert.js +6 -0
  137. package/lib/components/alert/Alert.vue.d.ts +39 -22
  138. package/lib/components/alert/Alert.vue_vue_type_script_setup_true_lang.js +68 -0
  139. package/lib/components/alert/Alert.vue_vue_type_style_index_0_lang.module.js +6 -0
  140. package/lib/components/alert/theme/Alert.base.theme.js +38 -40
  141. package/lib/components/alert/theme/Alert.carbon.theme.js +38 -40
  142. package/lib/components/avatar/Avatar.js +6 -0
  143. package/lib/components/avatar/Avatar.vue.d.ts +51 -17
  144. package/lib/components/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +77 -0
  145. package/lib/components/avatar/Avatar.vue_vue_type_style_index_0_lang.module.js +3 -0
  146. package/lib/components/avatar/theme/Avatar.base.theme.js +17 -21
  147. package/lib/components/avatar/theme/Avatar.carbon.theme.js +4 -4
  148. package/lib/components/badge/Badge.js +5 -0
  149. package/lib/components/badge/Badge.vue.d.ts +60 -17
  150. package/lib/components/badge/Badge.vue_vue_type_script_setup_true_lang.js +93 -0
  151. package/lib/components/badge/theme/Badge.base.theme.js +9 -11
  152. package/lib/components/badge/theme/Badge.carbon.theme.js +4 -4
  153. package/lib/components/breadcrumbs/Breadcrumbs.js +5 -0
  154. package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +36 -14
  155. package/lib/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +70 -0
  156. package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +8 -10
  157. package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js +7 -9
  158. package/lib/components/button/Button.js +6 -0
  159. package/lib/components/button/Button.vue.d.ts +161 -56
  160. package/lib/components/button/Button.vue_vue_type_script_setup_true_lang.js +261 -0
  161. package/lib/components/button/Button.vue_vue_type_style_index_0_scoped_486cb9c0_lang.module.js +6 -0
  162. package/lib/components/button/ButtonGroup.js +5 -0
  163. package/lib/components/button/ButtonGroup.vue.d.ts +75 -30
  164. package/lib/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +56 -0
  165. package/lib/components/button/theme/Button.base.theme.js +140 -140
  166. package/lib/components/button/theme/Button.carbon.theme.js +137 -137
  167. package/lib/components/button/theme/ButtonGroup.base.theme.js +4 -8
  168. package/lib/components/button/theme/ButtonGroup.carbon.theme.js +4 -8
  169. package/lib/components/card/Card.js +5 -0
  170. package/lib/components/card/Card.vue.d.ts +6 -4
  171. package/lib/components/card/Card.vue_vue_type_script_setup_true_lang.js +28 -0
  172. package/lib/components/card/theme/Card.base.theme.js +4 -8
  173. package/lib/components/card/theme/Card.carbon.theme.js +4 -4
  174. package/lib/components/carousel/Carousel.js +5 -0
  175. package/lib/components/carousel/Carousel.vue.d.ts +24 -7
  176. package/lib/components/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +109 -0
  177. package/lib/components/carousel/CarouselSlide.js +6 -0
  178. package/lib/components/carousel/CarouselSlide.vue.d.ts +3 -0
  179. package/lib/components/carousel/CarouselSlide.vue_vue_type_script_setup_true_lang.js +28 -0
  180. package/lib/components/carousel/CarouselSlide.vue_vue_type_style_index_0_scoped_4f559831_lang.module.js +4 -0
  181. package/lib/components/carousel/theme/Carousel.base.theme.js +14 -16
  182. package/lib/components/carousel/theme/Carousel.carbon.theme.js +4 -4
  183. package/lib/components/carousel/theme/CarouselSlide.base.theme.js +4 -8
  184. package/lib/components/carousel/theme/CarouselSlide.carbon.theme.js +4 -4
  185. package/lib/components/checkbox/Checkbox.js +6 -0
  186. package/lib/components/checkbox/Checkbox.vue.d.ts +201 -49
  187. package/lib/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +146 -0
  188. package/lib/components/checkbox/Checkbox.vue_vue_type_style_index_0_lang.module.js +4 -0
  189. package/lib/components/checkbox/theme/Checkbox.base.theme.js +58 -58
  190. package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +58 -58
  191. package/lib/components/container/Container.js +5 -0
  192. package/lib/components/container/Container.vue.d.ts +6 -0
  193. package/lib/components/container/Container.vue_vue_type_script_setup_true_lang.js +31 -0
  194. package/lib/components/container/theme/Container.base.theme.js +7 -11
  195. package/lib/components/container/theme/Container.carbon.theme.js +4 -4
  196. package/lib/components/datepicker/Datepicker.js +6 -0
  197. package/lib/components/datepicker/Datepicker.vue.d.ts +471 -41
  198. package/lib/components/datepicker/Datepicker.vue_vue_type_script_setup_true_lang.js +779 -0
  199. package/lib/components/datepicker/theme/Datepicker.base.theme.js +26 -61
  200. package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +4 -4
  201. package/lib/components/divider/Divider.js +5 -0
  202. package/lib/components/divider/Divider.vue.d.ts +16 -9
  203. package/lib/components/divider/Divider.vue_vue_type_script_setup_true_lang.js +47 -0
  204. package/lib/components/divider/theme/Divider.base.theme.js +8 -10
  205. package/lib/components/divider/theme/Divider.carbon.theme.js +4 -4
  206. package/lib/components/drawer/Drawer.js +5 -0
  207. package/lib/components/drawer/Drawer.vue.d.ts +39 -6
  208. package/lib/components/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +172 -0
  209. package/lib/components/drawer/theme/Drawer.base.theme.js +7 -9
  210. package/lib/components/drawer/theme/Drawer.carbon.theme.js +4 -4
  211. package/lib/components/empty/Empty.js +5 -0
  212. package/lib/components/empty/Empty.vue.d.ts +86 -0
  213. package/lib/components/empty/Empty.vue_vue_type_script_setup_true_lang.js +80 -0
  214. package/lib/components/empty/index.d.ts +2 -0
  215. package/lib/components/empty/theme/Empty.base.theme.d.ts +3 -0
  216. package/lib/components/empty/theme/Empty.base.theme.js +20 -0
  217. package/lib/components/empty/theme/Empty.carbon.theme.d.ts +3 -0
  218. package/lib/components/empty/theme/Empty.carbon.theme.js +5 -0
  219. package/lib/components/form/Form.js +5 -0
  220. package/lib/components/form/Form.vue.d.ts +48 -9
  221. package/lib/components/form/Form.vue_vue_type_script_setup_true_lang.js +124 -0
  222. package/lib/components/form/theme/Form.base.theme.js +10 -12
  223. package/lib/components/form/theme/Form.carbon.theme.js +10 -12
  224. package/lib/components/formGroup/FormGroup.js +5 -0
  225. package/lib/components/formGroup/FormGroup.vue.d.ts +180 -41
  226. package/lib/components/formGroup/FormGroup.vue_vue_type_script_setup_true_lang.js +97 -0
  227. package/lib/components/formGroup/theme/FormGroup.base.theme.js +7 -11
  228. package/lib/components/formGroup/theme/FormGroup.carbon.theme.js +7 -11
  229. package/lib/components/icon/Icon.js +5 -0
  230. package/lib/components/icon/Icon.vue.d.ts +12 -4
  231. package/lib/components/icon/Icon.vue_vue_type_script_setup_true_lang.js +88 -0
  232. package/lib/components/icon/theme/Icon.base.theme.js +4 -11
  233. package/lib/components/icon/theme/Icon.carbon.theme.js +4 -11
  234. package/lib/components/image/Image.js +5 -0
  235. package/lib/components/image/Image.vue.d.ts +12 -3
  236. package/lib/components/image/Image.vue_vue_type_script_setup_true_lang.js +29 -0
  237. package/lib/components/image/theme/Image.base.theme.js +4 -8
  238. package/lib/components/image/theme/Image.carbon.theme.js +4 -4
  239. package/lib/components/index.d.ts +3 -0
  240. package/lib/components/index.js +128 -120
  241. package/lib/components/input/Input.js +5 -0
  242. package/lib/components/input/Input.vue.d.ts +308 -83
  243. package/lib/components/input/Input.vue_vue_type_script_setup_true_lang.js +276 -0
  244. package/lib/components/input/theme/Input.base.theme.js +22 -16
  245. package/lib/components/input/theme/Input.carbon.theme.js +21 -16
  246. package/lib/components/inputFooter/InputFooter.js +5 -0
  247. package/lib/components/inputFooter/InputFooter.vue.d.ts +52 -18
  248. package/lib/components/inputFooter/InputFooter.vue_vue_type_script_setup_true_lang.js +50 -0
  249. package/lib/components/inputFooter/theme/InputFooter.base.theme.js +10 -12
  250. package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +10 -12
  251. package/lib/components/inputGroup/InputGroup.js +5 -0
  252. package/lib/components/inputGroup/InputGroup.vue.d.ts +296 -0
  253. package/lib/components/inputGroup/InputGroup.vue_vue_type_script_setup_true_lang.js +125 -0
  254. package/lib/components/inputGroup/index.d.ts +2 -0
  255. package/lib/components/inputGroup/theme/InputGroup.base.theme.d.ts +3 -0
  256. package/lib/components/inputGroup/theme/InputGroup.base.theme.js +4 -0
  257. package/lib/components/inputGroup/theme/InputGroup.carbon.theme.d.ts +3 -0
  258. package/lib/components/inputGroup/theme/InputGroup.carbon.theme.js +5 -0
  259. package/lib/components/label/Label.js +5 -0
  260. package/lib/components/label/Label.vue.d.ts +83 -20
  261. package/lib/components/label/Label.vue_vue_type_script_setup_true_lang.js +79 -0
  262. package/lib/components/label/theme/Label.base.theme.js +13 -15
  263. package/lib/components/label/theme/Label.carbon.theme.js +10 -12
  264. package/lib/components/link/Link.js +6 -0
  265. package/lib/components/link/Link.vue.d.ts +27 -15
  266. package/lib/components/link/Link.vue_vue_type_script_setup_true_lang.js +52 -0
  267. package/lib/components/link/Link.vue_vue_type_style_index_0_scoped_3ee61e03_lang.module.js +6 -0
  268. package/lib/components/link/theme/Link.base.theme.js +18 -24
  269. package/lib/components/link/theme/Link.carbon.theme.js +18 -24
  270. package/lib/components/loader/Loader.js +5 -0
  271. package/lib/components/loader/Loader.vue.d.ts +30 -6
  272. package/lib/components/loader/Loader.vue_vue_type_script_setup_true_lang.js +69 -0
  273. package/lib/components/loader/theme/Loader.base.theme.js +9 -11
  274. package/lib/components/loader/theme/Loader.carbon.theme.js +9 -11
  275. package/lib/components/menu/Menu.js +5 -0
  276. package/lib/components/menu/Menu.vue.d.ts +57 -17
  277. package/lib/components/menu/Menu.vue_vue_type_script_setup_true_lang.js +194 -0
  278. package/lib/components/menu/MenuItem.js +6 -0
  279. package/lib/components/menu/MenuItem.vue.d.ts +204 -53
  280. package/lib/components/menu/MenuItem.vue_vue_type_script_setup_true_lang.js +210 -0
  281. package/lib/components/menu/MenuItem.vue_vue_type_style_index_0_scoped_5aebaff3_lang.module.js +7 -0
  282. package/lib/components/menu/theme/Menu.base.theme.js +4 -8
  283. package/lib/components/menu/theme/Menu.carbon.theme.js +4 -4
  284. package/lib/components/menu/theme/MenuItem.base.theme.js +71 -75
  285. package/lib/components/menu/theme/MenuItem.carbon.theme.js +4 -4
  286. package/lib/components/modal/Modal.js +5 -0
  287. package/lib/components/modal/Modal.vue.d.ts +177 -39
  288. package/lib/components/modal/Modal.vue_vue_type_script_setup_true_lang.js +275 -0
  289. package/lib/components/modal/theme/Modal.base.theme.js +25 -27
  290. package/lib/components/modal/theme/Modal.carbon.theme.js +27 -29
  291. package/lib/components/notifications/Notifications.js +5 -0
  292. package/lib/components/notifications/Notifications.vue.d.ts +24 -0
  293. package/lib/components/notifications/Notifications.vue_vue_type_script_setup_true_lang.js +261 -0
  294. package/lib/components/notifications/theme/Notifications.base.theme.js +8 -10
  295. package/lib/components/notifications/theme/Notifications.carbon.theme.js +8 -10
  296. package/lib/components/pagination/Pagination.js +5 -0
  297. package/lib/components/pagination/Pagination.vue.d.ts +15 -4
  298. package/lib/components/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +156 -0
  299. package/lib/components/pagination/PaginationItem.js +5 -0
  300. package/lib/components/pagination/PaginationItem.vue.d.ts +21 -7
  301. package/lib/components/pagination/PaginationItem.vue_vue_type_script_setup_true_lang.js +49 -0
  302. package/lib/components/pagination/theme/Pagination.base.theme.js +12 -12
  303. package/lib/components/pagination/theme/Pagination.carbon.theme.js +4 -4
  304. package/lib/components/pagination/theme/PaginationItem.base.theme.js +4 -8
  305. package/lib/components/pagination/theme/PaginationItem.carbon.theme.js +4 -4
  306. package/lib/components/popover/Popover.js +6 -0
  307. package/lib/components/popover/Popover.vue.d.ts +204 -45
  308. package/lib/components/popover/Popover.vue_vue_type_script_setup_true_lang.js +280 -0
  309. package/lib/components/popover/PopoverContainer.js +5 -0
  310. package/lib/components/popover/PopoverContainer.vue.d.ts +3 -0
  311. package/lib/components/popover/PopoverContainer.vue_vue_type_script_setup_true_lang.js +24 -0
  312. package/lib/components/popover/PopoverContentBoundary.js +5 -0
  313. package/lib/components/popover/PopoverContentBoundary.vue.d.ts +9 -0
  314. package/lib/components/popover/PopoverContentBoundary.vue_vue_type_script_setup_true_lang.js +18 -0
  315. package/lib/components/popover/theme/Popover.base.theme.js +7 -9
  316. package/lib/components/popover/theme/Popover.carbon.theme.js +4 -4
  317. package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -8
  318. package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -8
  319. package/lib/components/progress/Progress.js +5 -0
  320. package/lib/components/progress/Progress.vue.d.ts +15 -8
  321. package/lib/components/progress/Progress.vue_vue_type_script_setup_true_lang.js +41 -0
  322. package/lib/components/progress/theme/Progress.base.theme.js +13 -17
  323. package/lib/components/progress/theme/Progress.carbon.theme.js +4 -4
  324. package/lib/components/qrCode/QrCode.js +5 -0
  325. package/lib/components/qrCode/QrCode.vue.d.ts +24 -3
  326. package/lib/components/qrCode/QrCode.vue_vue_type_script_setup_true_lang.js +87 -0
  327. package/lib/components/qrCode/qrcodegen.js +766 -571
  328. package/lib/components/qrCode/theme/QrCode.base.theme.js +4 -8
  329. package/lib/components/qrCode/theme/QrCode.carbon.theme.js +4 -4
  330. package/lib/components/radio/Radio.js +6 -0
  331. package/lib/components/radio/Radio.vue.d.ts +189 -46
  332. package/lib/components/radio/Radio.vue_vue_type_script_setup_true_lang.js +124 -0
  333. package/lib/components/radio/Radio.vue_vue_type_style_index_0_lang.module.js +7 -0
  334. package/lib/components/radio/theme/Radio.base.theme.js +69 -69
  335. package/lib/components/radio/theme/Radio.carbon.theme.js +63 -63
  336. package/lib/components/radioButton/RadioButton.js +6 -0
  337. package/lib/components/radioButton/RadioButton.vue.d.ts +326 -0
  338. package/lib/components/radioButton/RadioButton.vue_vue_type_script_setup_true_lang.js +91 -0
  339. package/lib/components/radioButton/RadioButton.vue_vue_type_style_index_0_lang.module.js +6 -0
  340. package/lib/components/radioButton/index.d.ts +2 -0
  341. package/lib/components/radioButton/theme/RadioButton.base.theme.d.ts +3 -0
  342. package/lib/components/radioButton/theme/RadioButton.base.theme.js +110 -0
  343. package/lib/components/radioButton/theme/RadioButton.carbon.theme.d.ts +3 -0
  344. package/lib/components/radioButton/theme/RadioButton.carbon.theme.js +15 -0
  345. package/lib/components/scroll/Scroll.js +6 -0
  346. package/lib/components/scroll/Scroll.vue.d.ts +12 -12
  347. package/lib/components/scroll/Scroll.vue_vue_type_script_setup_true_lang.js +53 -0
  348. package/lib/components/scroll/Scroll.vue_vue_type_style_index_0_lang.module.js +12 -0
  349. package/lib/components/scroll/theme/Scroll.base.theme.js +4 -8
  350. package/lib/components/scroll/theme/Scroll.carbon.theme.js +4 -4
  351. package/lib/components/select/Select.js +5 -0
  352. package/lib/components/select/Select.vue.d.ts +714 -383
  353. package/lib/components/select/Select.vue_vue_type_script_setup_true_lang.js +583 -0
  354. package/lib/components/select/theme/Select.base.theme.js +26 -25
  355. package/lib/components/select/theme/Select.carbon.theme.js +23 -23
  356. package/lib/components/skeleton/Skeleton.js +5 -0
  357. package/lib/components/skeleton/Skeleton.vue.d.ts +6 -0
  358. package/lib/components/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +33 -0
  359. package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -11
  360. package/lib/components/skeleton/theme/Skeleton.carbon.theme.js +4 -4
  361. package/lib/components/slider/Slider.js +7 -0
  362. package/lib/components/slider/Slider.vue.d.ts +180 -39
  363. package/lib/components/slider/Slider.vue_vue_type_script_setup_true_lang.js +117 -0
  364. package/lib/components/slider/theme/Slider.base.theme.js +17 -19
  365. package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
  366. package/lib/components/spacer/Spacer.js +9 -11
  367. package/lib/components/spinner/Spinner.js +5 -0
  368. package/lib/components/spinner/Spinner.vue.d.ts +6 -0
  369. package/lib/components/spinner/Spinner.vue_vue_type_script_setup_true_lang.js +25 -0
  370. package/lib/components/stepper/Stepper.js +5 -0
  371. package/lib/components/stepper/Stepper.vue.d.ts +242 -41
  372. package/lib/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +425 -0
  373. package/lib/components/stepper/index.d.ts +1 -1
  374. package/lib/components/stepper/theme/Stepper.base.theme.js +33 -20
  375. package/lib/components/stepper/theme/Stepper.carbon.theme.js +4 -4
  376. package/lib/components/tab/Tab.js +5 -0
  377. package/lib/components/tab/Tab.vue.d.ts +113 -33
  378. package/lib/components/tab/Tab.vue_vue_type_script_setup_true_lang.js +210 -0
  379. package/lib/components/tab/TabGroup.js +5 -0
  380. package/lib/components/tab/TabGroup.vue.d.ts +53 -20
  381. package/lib/components/tab/TabGroup.vue_vue_type_script_setup_true_lang.js +166 -0
  382. package/lib/components/tab/theme/Tab.base.theme.js +13 -15
  383. package/lib/components/tab/theme/Tab.carbon.theme.js +16 -18
  384. package/lib/components/tab/theme/TabGroup.base.theme.js +30 -30
  385. package/lib/components/tab/theme/TabGroup.carbon.theme.js +30 -30
  386. package/lib/components/table/Table.js +5 -0
  387. package/lib/components/table/Table.vue.d.ts +94 -313
  388. package/lib/components/table/Table.vue_vue_type_script_setup_true_lang.js +440 -0
  389. package/lib/components/table/TableBody.js +9 -14
  390. package/lib/components/table/TableCell.js +5 -0
  391. package/lib/components/table/TableCell.vue.d.ts +60 -20
  392. package/lib/components/table/TableCell.vue_vue_type_script_setup_true_lang.js +96 -0
  393. package/lib/components/table/TableHead.js +5 -0
  394. package/lib/components/table/TableHead.vue.d.ts +4 -6
  395. package/lib/components/table/TableHead.vue_vue_type_script_setup_true_lang.js +18 -0
  396. package/lib/components/table/TableHeader.js +5 -0
  397. package/lib/components/table/TableHeader.vue.d.ts +21 -7
  398. package/lib/components/table/TableHeader.vue_vue_type_script_setup_true_lang.js +84 -0
  399. package/lib/components/table/TableRow.js +5 -0
  400. package/lib/components/table/TableRow.vue.d.ts +24 -15
  401. package/lib/components/table/TableRow.vue_vue_type_script_setup_true_lang.js +44 -0
  402. package/lib/components/table/theme/Table.base.theme.js +11 -13
  403. package/lib/components/table/theme/Table.carbon.theme.js +11 -13
  404. package/lib/components/table/theme/TableCell.base.theme.js +7 -11
  405. package/lib/components/table/theme/TableCell.carbon.theme.js +7 -11
  406. package/lib/components/table/theme/TableHead.base.theme.js +10 -12
  407. package/lib/components/table/theme/TableHead.carbon.theme.js +10 -12
  408. package/lib/components/table/theme/TableHeader.base.theme.js +14 -16
  409. package/lib/components/table/theme/TableHeader.carbon.theme.js +10 -12
  410. package/lib/components/table/theme/TableRow.base.theme.js +7 -11
  411. package/lib/components/table/theme/TableRow.carbon.theme.js +7 -11
  412. package/lib/components/tag/Tag.js +5 -0
  413. package/lib/components/tag/Tag.vue.d.ts +45 -22
  414. package/lib/components/tag/Tag.vue_vue_type_script_setup_true_lang.js +76 -0
  415. package/lib/components/tag/theme/Tag.base.theme.js +21 -23
  416. package/lib/components/tag/theme/Tag.carbon.theme.js +21 -23
  417. package/lib/components/textarea/Textarea.js +5 -0
  418. package/lib/components/textarea/Textarea.vue.d.ts +263 -83
  419. package/lib/components/textarea/Textarea.vue_vue_type_script_setup_true_lang.js +222 -0
  420. package/lib/components/textarea/theme/Textarea.base.theme.js +17 -13
  421. package/lib/components/textarea/theme/Textarea.carbon.theme.js +16 -13
  422. package/lib/components/themeProvider/ThemeProvider.js +5 -0
  423. package/lib/components/themeProvider/ThemeProvider.vue.d.ts +10 -4
  424. package/lib/components/themeProvider/ThemeProvider.vue_vue_type_script_setup_true_lang.js +20 -0
  425. package/lib/components/toggle/Toggle.js +5 -0
  426. package/lib/components/toggle/Toggle.vue.d.ts +177 -43
  427. package/lib/components/toggle/Toggle.vue_vue_type_script_setup_true_lang.js +105 -0
  428. package/lib/components/toggle/theme/Toggle.base.theme.js +23 -28
  429. package/lib/components/toggle/theme/Toggle.carbon.theme.js +4 -4
  430. package/lib/components/tooltip/ToggleTip.js +5 -0
  431. package/lib/components/tooltip/ToggleTip.vue.d.ts +24 -6
  432. package/lib/components/tooltip/ToggleTip.vue_vue_type_script_setup_true_lang.js +32 -0
  433. package/lib/components/tooltip/Tooltip.js +5 -0
  434. package/lib/components/tooltip/Tooltip.vue.d.ts +30 -6
  435. package/lib/components/tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +117 -0
  436. package/lib/components/tooltip/theme/Tooltip.base.theme.js +4 -8
  437. package/lib/components/tooltip/theme/Tooltip.carbon.theme.js +4 -4
  438. package/lib/components/upload/Upload.js +5 -0
  439. package/lib/components/upload/Upload.vue.d.ts +272 -66
  440. package/lib/components/upload/Upload.vue_vue_type_script_setup_true_lang.js +292 -0
  441. package/lib/components/upload/fileAccept.d.ts +6 -0
  442. package/lib/components/upload/fileAccept.js +17 -0
  443. package/lib/components/upload/theme/Upload.base.theme.js +4 -8
  444. package/lib/components/upload/theme/Upload.carbon.theme.js +4 -4
  445. package/lib/composables/index.d.ts +1 -0
  446. package/lib/composables/keys.d.ts +2 -0
  447. package/lib/composables/keys.js +4 -12
  448. package/lib/composables/resolveComponentDefaults.d.ts +4 -0
  449. package/lib/composables/resolveComponentDefaults.js +15 -0
  450. package/lib/composables/useCSS.js +29 -25
  451. package/lib/composables/useColors.d.ts +1 -0
  452. package/lib/composables/useColors.js +45 -51
  453. package/lib/composables/useCommon.d.ts +1 -0
  454. package/lib/composables/useCommon.js +16 -17
  455. package/lib/composables/useFocusTrap.js +50 -53
  456. package/lib/composables/useInputtable.d.ts +57 -12
  457. package/lib/composables/useInputtable.js +177 -113
  458. package/lib/composables/useInteractive.d.ts +13 -3
  459. package/lib/composables/useInteractive.js +24 -20
  460. package/lib/composables/useNotifications.js +8 -8
  461. package/lib/composables/useTheme.js +44 -56
  462. package/lib/composables/useVirtualList.d.ts +1 -2
  463. package/lib/composables/useVirtualList.js +120 -115
  464. package/lib/create.d.ts +2 -0
  465. package/lib/create.js +21 -24
  466. package/lib/index.d.ts +1 -0
  467. package/lib/index.js +87 -169
  468. package/lib/index.umd.js +56 -41
  469. package/lib/install.js +14 -18
  470. package/lib/node_modules/.pnpm/@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +321 -489
  471. package/lib/node_modules/.pnpm/@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js +288 -215
  472. package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +99 -115
  473. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.34_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5380 -0
  474. package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/core/index.js +407 -0
  475. package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +75 -0
  476. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
  477. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +6 -6
  478. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js +378 -513
  479. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js +42 -58
  480. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js +39 -51
  481. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
  482. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +7 -10
  483. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js +10 -7
  484. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js +19 -17
  485. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js +10 -19
  486. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js +8 -9
  487. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js +7 -8
  488. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js +7 -8
  489. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js +11 -20
  490. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js +6 -7
  491. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js +6 -7
  492. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js +7 -8
  493. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +6 -9
  494. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +6 -7
  495. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js +10 -15
  496. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js +7 -12
  497. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js +11 -16
  498. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js +14 -19
  499. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js +13 -19
  500. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js +7 -8
  501. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js +8 -10
  502. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js +7 -8
  503. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js +57 -58
  504. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js +6 -7
  505. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js +9 -10
  506. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js +8 -9
  507. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDefaultOptions.js +6 -7
  508. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js +6 -7
  509. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js +7 -8
  510. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js +10 -11
  511. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js +13 -14
  512. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js +6 -7
  513. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js +6 -7
  514. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js +7 -8
  515. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.js +6 -7
  516. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js +10 -11
  517. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js +14 -16
  518. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js +6 -7
  519. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js +6 -7
  520. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js +6 -7
  521. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js +5 -6
  522. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js +6 -7
  523. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js +8 -13
  524. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js +7 -8
  525. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
  526. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
  527. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
  528. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -16
  529. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
  530. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
  531. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
  532. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
  533. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
  534. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +17 -18
  535. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Parser.js +15 -21
  536. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js +29 -40
  537. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/constants.js +29 -48
  538. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +45 -48
  539. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +45 -48
  540. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +63 -60
  541. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +40 -50
  542. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +61 -44
  543. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +43 -48
  544. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +24 -29
  545. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +26 -20
  546. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +14 -21
  547. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +28 -31
  548. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -31
  549. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -32
  550. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +29 -32
  551. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +73 -98
  552. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +27 -47
  553. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +27 -47
  554. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +39 -48
  555. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +33 -39
  556. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -73
  557. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +38 -47
  558. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +47 -68
  559. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +22 -31
  560. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +58 -70
  561. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +57 -69
  562. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +22 -31
  563. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -73
  564. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +58 -70
  565. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +57 -69
  566. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +14 -20
  567. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +14 -20
  568. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +42 -48
  569. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers.js +66 -66
  570. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/utils.js +64 -93
  571. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js +61 -88
  572. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js +9 -10
  573. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js +9 -11
  574. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js +7 -8
  575. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js +9 -10
  576. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js +8 -9
  577. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js +7 -8
  578. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js +7 -8
  579. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js +11 -12
  580. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js +7 -8
  581. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js +8 -9
  582. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js +8 -9
  583. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js +7 -8
  584. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js +9 -7
  585. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js +9 -10
  586. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js +7 -8
  587. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js +7 -8
  588. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +8 -10
  589. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js +10 -12
  590. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js +7 -8
  591. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js +9 -18
  592. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js +6 -7
  593. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js +6 -7
  594. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js +6 -7
  595. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +6 -7
  596. package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js +9 -16
  597. package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@4.4.6_magicast@0.5.3__vue@3.5.34_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +1243 -0
  598. package/lib/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.34_typescript@5.2.2_/node_modules/vue-demi/lib/index.js +28 -0
  599. package/lib/nuxt.mjs +1 -1
  600. package/lib/nuxt.plugin.js +1 -0
  601. package/lib/tailwind.css +74 -0
  602. package/lib/theme.d.ts +4 -1
  603. package/lib/theme.js +12 -13
  604. package/lib/themes/base/components.d.ts +3 -0
  605. package/lib/themes/base/components.js +118 -108
  606. package/lib/themes/base/index.js +10 -10
  607. package/lib/themes/base/styles.d.ts +1 -1
  608. package/lib/themes/base/styles.js +4 -91
  609. package/lib/themes/carbon/components.d.ts +3 -0
  610. package/lib/themes/carbon/components.js +118 -108
  611. package/lib/themes/carbon/index.js +23 -13
  612. package/lib/themes/carbon/styles.d.ts +1 -1
  613. package/lib/themes/carbon/styles.js +4 -87
  614. package/lib/version.d.ts +1 -1
  615. package/lib/version.js +4 -4
  616. package/lib/virtual/components/infiniteLoader/InfiniteLoader.js +5 -0
  617. package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue.d.ts +27 -16
  618. package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue_vue_type_script_setup_true_lang.js +38 -0
  619. package/lib/virtual/components/virtualGrid/VirtualGrid.js +5 -0
  620. package/lib/virtual/components/virtualGrid/VirtualGrid.vue.d.ts +108 -86
  621. package/lib/virtual/components/virtualGrid/VirtualGrid.vue_vue_type_script_setup_true_lang.js +264 -0
  622. package/lib/virtual/components/virtualList/VirtualList.js +5 -0
  623. package/lib/virtual/components/virtualList/VirtualList.vue.d.ts +62 -48
  624. package/lib/virtual/components/virtualList/VirtualList.vue_vue_type_script_setup_true_lang.js +190 -0
  625. package/lib/virtual/components/virtualList/isDynamicRowHeight.js +5 -5
  626. package/lib/virtual/components/virtualList/useDynamicRowHeight.js +59 -67
  627. package/lib/virtual/composables/infinite-loader/scanForUnloadedIndices.js +26 -40
  628. package/lib/virtual/composables/infinite-loader/useInfiniteLoader.js +30 -41
  629. package/lib/virtual/core/createCachedBounds.js +40 -54
  630. package/lib/virtual/core/getEstimatedSize.js +11 -21
  631. package/lib/virtual/core/getOffsetForIndex.js +17 -39
  632. package/lib/virtual/core/getStartStopIndices.js +21 -30
  633. package/lib/virtual/core/useCachedBounds.js +10 -16
  634. package/lib/virtual/core/useIsRtl.js +10 -14
  635. package/lib/virtual/core/useItemSize.js +15 -26
  636. package/lib/virtual/core/useVirtualizer.js +145 -170
  637. package/lib/virtual/utils/adjustScrollOffsetForRtl.js +15 -23
  638. package/lib/virtual/utils/assert.js +5 -6
  639. package/lib/virtual/utils/getRTLOffsetType.js +12 -12
  640. package/lib/virtual/utils/getScrollbarSize.js +10 -10
  641. package/lib/virtual/utils/isRtl.js +10 -11
  642. package/lib/virtual/utils/parseNumericStyleValue.js +10 -14
  643. package/lib/virtual/utils/shallowCompare.js +9 -13
  644. package/package.json +23 -23
  645. package/src/common/__tests__/inputGroupRadius.spec.ts +14 -0
  646. package/src/common/buttonGroupRadius.ts +16 -0
  647. package/src/common/icons.ts +1 -0
  648. package/src/common/inputGroupRadius.ts +11 -0
  649. package/src/common/props.ts +35 -0
  650. package/src/componentDefaults.ts +19 -0
  651. package/src/components/accordion/Accordion.vue +22 -4
  652. package/src/components/accordion/AccordionItem.vue +30 -3
  653. package/src/components/alert/Alert.vue +46 -26
  654. package/src/components/avatar/Avatar.vue +23 -6
  655. package/src/components/badge/Badge.vue +29 -6
  656. package/src/components/breadcrumbs/Breadcrumbs.vue +17 -5
  657. package/src/components/button/Button.vue +237 -59
  658. package/src/components/button/ButtonGroup.vue +47 -33
  659. package/src/components/button/__tests__/ Button.spec.ts +41 -0
  660. package/src/components/button/__tests__/ ButtonGroup.spec.ts +32 -0
  661. package/src/components/button/theme/Button.base.theme.ts +10 -2
  662. package/src/components/button/theme/Button.carbon.theme.ts +9 -2
  663. package/src/components/card/Card.vue +12 -2
  664. package/src/components/card/theme/Card.base.theme.ts +1 -1
  665. package/src/components/carousel/Carousel.vue +24 -2
  666. package/src/components/carousel/CarouselSlide.vue +7 -1
  667. package/src/components/checkbox/Checkbox.vue +28 -9
  668. package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +1 -1
  669. package/src/components/container/Container.vue +10 -1
  670. package/src/components/datepicker/Datepicker.vue +498 -111
  671. package/src/components/datepicker/__tests__/Datepicker.spec.ts +31 -0
  672. package/src/components/divider/Divider.vue +11 -4
  673. package/src/components/divider/theme/Divider.base.theme.ts +2 -2
  674. package/src/components/drawer/Drawer.vue +27 -2
  675. package/src/components/empty/Empty.vue +101 -0
  676. package/src/components/empty/__tests__/Empty.spec.ts +11 -0
  677. package/src/components/empty/index.ts +2 -0
  678. package/src/components/empty/theme/Empty.base.theme.ts +40 -0
  679. package/src/components/empty/theme/Empty.carbon.theme.ts +7 -0
  680. package/src/components/form/Form.vue +32 -3
  681. package/src/components/formGroup/FormGroup.vue +31 -7
  682. package/src/components/formGroup/__tests__/FormGroup.spec.ts +37 -2
  683. package/src/components/formGroup/theme/FormGroup.base.theme.ts +7 -3
  684. package/src/components/formGroup/theme/FormGroup.carbon.theme.ts +7 -3
  685. package/src/components/icon/Icon.vue +6 -1
  686. package/src/components/image/Image.vue +8 -2
  687. package/src/components/index.ts +3 -0
  688. package/src/components/input/Input.vue +165 -44
  689. package/src/components/input/__tests__/Input.spec.ts +28 -1
  690. package/src/components/input/theme/Input.base.theme.ts +10 -1
  691. package/src/components/input/theme/Input.carbon.theme.ts +5 -0
  692. package/src/components/inputFooter/InputFooter.vue +23 -6
  693. package/src/components/inputGroup/InputGroup.vue +196 -0
  694. package/src/components/inputGroup/__tests__/InputGroup.spec.ts +104 -0
  695. package/src/components/inputGroup/index.ts +2 -0
  696. package/src/components/inputGroup/theme/InputGroup.base.theme.ts +9 -0
  697. package/src/components/inputGroup/theme/InputGroup.carbon.theme.ts +7 -0
  698. package/src/components/label/Label.vue +52 -8
  699. package/src/components/label/theme/Label.base.theme.ts +2 -2
  700. package/src/components/label/theme/Label.carbon.theme.ts +2 -2
  701. package/src/components/link/Link.vue +47 -31
  702. package/src/components/loader/Loader.vue +10 -2
  703. package/src/components/menu/Menu.vue +25 -5
  704. package/src/components/menu/MenuItem.vue +115 -56
  705. package/src/components/modal/Modal.vue +90 -15
  706. package/src/components/notifications/Notifications.vue +23 -0
  707. package/src/components/notifications/__tests__/Notifications.spec.ts +44 -4
  708. package/src/components/pagination/Pagination.vue +11 -1
  709. package/src/components/pagination/PaginationItem.vue +13 -2
  710. package/src/components/popover/Popover.vue +125 -33
  711. package/src/components/popover/PopoverContainer.vue +9 -1
  712. package/src/components/popover/PopoverContentBoundary.vue +32 -0
  713. package/src/components/popover/__tests__/Popover.spec.ts +51 -0
  714. package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
  715. package/src/components/progress/Progress.vue +10 -3
  716. package/src/components/qrCode/QrCode.vue +9 -1
  717. package/src/components/radio/Radio.vue +42 -25
  718. package/src/components/radio/theme/Radio.base.theme.ts +1 -1
  719. package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
  720. package/src/components/radioButton/RadioButton.vue +168 -0
  721. package/src/components/radioButton/__tests__/RadioButton.spec.ts +48 -0
  722. package/src/components/radioButton/index.ts +2 -0
  723. package/src/components/radioButton/theme/RadioButton.base.theme.ts +155 -0
  724. package/src/components/radioButton/theme/RadioButton.carbon.theme.ts +31 -0
  725. package/src/components/scroll/Scroll.vue +18 -5
  726. package/src/components/select/Select.vue +99 -21
  727. package/src/components/select/theme/Select.base.theme.ts +7 -1
  728. package/src/components/select/theme/Select.carbon.theme.ts +2 -0
  729. package/src/components/skeleton/Skeleton.vue +3 -0
  730. package/src/components/slider/Slider.vue +34 -8
  731. package/src/components/spacer/Spacer.tsx +1 -1
  732. package/src/components/spacer/__tests__/Spacer.spec.ts +1 -1
  733. package/src/components/spinner/Spinner.vue +2 -0
  734. package/src/components/stepper/Stepper.vue +654 -83
  735. package/src/components/stepper/__tests__/Stepper.spec.ts +199 -5
  736. package/src/components/stepper/index.ts +4 -0
  737. package/src/components/stepper/theme/Stepper.base.theme.ts +49 -19
  738. package/src/components/tab/Tab.vue +157 -63
  739. package/src/components/tab/TabGroup.vue +116 -28
  740. package/src/components/tab/__tests__/Tab.spec.ts +53 -0
  741. package/src/components/tab/__tests__/TabGroup.spec.ts +113 -0
  742. package/src/components/tab/theme/Tab.base.theme.ts +24 -2
  743. package/src/components/tab/theme/Tab.carbon.theme.ts +30 -7
  744. package/src/components/tab/theme/TabGroup.base.theme.ts +12 -9
  745. package/src/components/tab/theme/TabGroup.carbon.theme.ts +6 -2
  746. package/src/components/table/Table.vue +98 -21
  747. package/src/components/table/TableCell.vue +27 -6
  748. package/src/components/table/TableHead.vue +11 -2
  749. package/src/components/table/TableHeader.vue +18 -3
  750. package/src/components/table/TableRow.vue +19 -5
  751. package/src/components/table/__tests__/Table.spec.ts +53 -0
  752. package/src/components/table/theme/Table.carbon.theme.ts +1 -1
  753. package/src/components/tag/Tag.vue +30 -10
  754. package/src/components/textarea/Textarea.vue +117 -24
  755. package/src/components/textarea/theme/Textarea.base.theme.ts +10 -1
  756. package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -0
  757. package/src/components/themeProvider/ThemeProvider.vue +22 -7
  758. package/src/components/toggle/Toggle.vue +11 -1
  759. package/src/components/tooltip/ToggleTip.vue +12 -3
  760. package/src/components/tooltip/Tooltip.vue +19 -3
  761. package/src/components/upload/Upload.vue +50 -16
  762. package/src/components/upload/__tests__/fileAccept.spec.ts +39 -0
  763. package/src/components/upload/fileAccept.ts +29 -0
  764. package/src/composables/__tests__/resolveComponentDefaults.spec.ts +139 -0
  765. package/src/composables/index.ts +1 -0
  766. package/src/composables/keys.ts +2 -0
  767. package/src/composables/resolveComponentDefaults.ts +33 -0
  768. package/src/composables/useColors.ts +1 -0
  769. package/src/composables/useCommon.ts +1 -0
  770. package/src/composables/useFocusTrap.ts +3 -1
  771. package/src/composables/useInputtable.ts +122 -19
  772. package/src/composables/useInteractive.ts +13 -3
  773. package/src/composables/useTheme.ts +10 -3
  774. package/src/composables/useVirtualList.ts +1 -2
  775. package/src/create.ts +2 -0
  776. package/src/index.ts +1 -0
  777. package/src/theme.ts +6 -0
  778. package/src/themes/base/components.ts +3 -0
  779. package/src/themes/base/styles.ts +27 -20
  780. package/src/themes/carbon/components.ts +3 -0
  781. package/src/themes/carbon/styles.ts +24 -17
  782. package/src/version.ts +1 -1
  783. package/src/virtual/components/infiniteLoader/InfiniteLoader.vue +33 -1
  784. package/src/virtual/components/virtualGrid/VirtualGrid.vue +104 -10
  785. package/src/virtual/components/virtualList/VirtualList.test.ts +42 -4
  786. package/src/virtual/components/virtualList/VirtualList.vue +73 -8
  787. package/src/virtual/components/virtualList/useDynamicRowHeight.ts +9 -2
  788. package/src/virtual/core/useVirtualizer.ts +18 -4
  789. package/volar.d.ts +3 -0
  790. package/docs/layouts/simple.vue +0 -5
  791. package/docs/pages/component/radio/variants.vue +0 -39
  792. package/exports/tailwind.preset.js +0 -40
  793. package/lib/components/accordion/Accordion.vue.js +0 -40
  794. package/lib/components/accordion/Accordion.vue2.js +0 -4
  795. package/lib/components/accordion/AccordionItem.vue.js +0 -150
  796. package/lib/components/accordion/AccordionItem.vue2.js +0 -4
  797. package/lib/components/accordion/__tests__/Accordion.spec.d.ts +0 -1
  798. package/lib/components/alert/Alert.vue.js +0 -9
  799. package/lib/components/alert/Alert.vue2.js +0 -62
  800. package/lib/components/alert/Alert.vue3.js +0 -8
  801. package/lib/components/alert/__tests__/Alert.spec.d.ts +0 -1
  802. package/lib/components/avatar/Avatar.vue.js +0 -9
  803. package/lib/components/avatar/Avatar.vue2.js +0 -76
  804. package/lib/components/avatar/Avatar.vue3.js +0 -7
  805. package/lib/components/avatar/__tests__/Avatar.spec.d.ts +0 -1
  806. package/lib/components/badge/Badge.vue.js +0 -93
  807. package/lib/components/badge/Badge.vue2.js +0 -4
  808. package/lib/components/badge/__tests__/Badge.spec.d.ts +0 -1
  809. package/lib/components/breadcrumbs/Breadcrumbs.vue.js +0 -69
  810. package/lib/components/breadcrumbs/Breadcrumbs.vue2.js +0 -4
  811. package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
  812. package/lib/components/button/Button.vue.js +0 -9
  813. package/lib/components/button/Button.vue2.js +0 -117
  814. package/lib/components/button/Button.vue3.js +0 -8
  815. package/lib/components/button/ButtonGroup.vue.js +0 -9
  816. package/lib/components/button/ButtonGroup.vue2.js +0 -53
  817. package/lib/components/button/ButtonGroup.vue3.js +0 -7
  818. package/lib/components/button/__tests__/ Button.spec.d.ts +0 -1
  819. package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +0 -1
  820. package/lib/components/card/Card.vue.js +0 -30
  821. package/lib/components/card/Card.vue2.js +0 -4
  822. package/lib/components/card/__tests__/Card.spec.d.ts +0 -1
  823. package/lib/components/carousel/Carousel.vue.js +0 -97
  824. package/lib/components/carousel/Carousel.vue2.js +0 -4
  825. package/lib/components/carousel/CarouselSlide.vue.js +0 -9
  826. package/lib/components/carousel/CarouselSlide.vue2.js +0 -32
  827. package/lib/components/carousel/CarouselSlide.vue3.js +0 -6
  828. package/lib/components/carousel/__tests__/Carousel.spec.d.ts +0 -1
  829. package/lib/components/checkbox/Checkbox.vue.js +0 -9
  830. package/lib/components/checkbox/Checkbox.vue2.js +0 -143
  831. package/lib/components/checkbox/Checkbox.vue3.js +0 -6
  832. package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +0 -1
  833. package/lib/components/container/Container.vue.js +0 -33
  834. package/lib/components/container/Container.vue2.js +0 -4
  835. package/lib/components/container/__tests__/Container.spec.d.ts +0 -1
  836. package/lib/components/datepicker/Datepicker.vue.js +0 -309
  837. package/lib/components/datepicker/Datepicker.vue2.js +0 -4
  838. package/lib/components/datepicker/Datepicker.vue3.js +0 -5
  839. package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +0 -1
  840. package/lib/components/divider/Divider.vue.js +0 -52
  841. package/lib/components/divider/Divider.vue2.js +0 -4
  842. package/lib/components/divider/__tests__/Divider.spec.d.ts +0 -1
  843. package/lib/components/drawer/Drawer.vue.js +0 -160
  844. package/lib/components/drawer/Drawer.vue2.js +0 -4
  845. package/lib/components/drawer/__tests__/Drawer.spec.d.ts +0 -1
  846. package/lib/components/form/Form.vue.js +0 -111
  847. package/lib/components/form/Form.vue2.js +0 -4
  848. package/lib/components/form/__tests__/Form.spec.d.ts +0 -1
  849. package/lib/components/formGroup/FormGroup.vue.js +0 -91
  850. package/lib/components/formGroup/FormGroup.vue2.js +0 -4
  851. package/lib/components/formGroup/__tests__/FormGroup.spec.d.ts +0 -1
  852. package/lib/components/icon/Icon.vue.js +0 -73
  853. package/lib/components/icon/Icon.vue2.js +0 -4
  854. package/lib/components/icon/__tests__/Icon.spec.d.ts +0 -1
  855. package/lib/components/image/Image.vue.js +0 -31
  856. package/lib/components/image/Image.vue2.js +0 -4
  857. package/lib/components/image/__tests__/Image.spec.d.ts +0 -1
  858. package/lib/components/input/Input.vue.js +0 -164
  859. package/lib/components/input/Input.vue2.js +0 -4
  860. package/lib/components/input/__tests__/Input.spec.d.ts +0 -1
  861. package/lib/components/inputFooter/InputFooter.vue.js +0 -43
  862. package/lib/components/inputFooter/InputFooter.vue2.js +0 -4
  863. package/lib/components/inputFooter/__tests__/InputFooter.spec.d.ts +0 -1
  864. package/lib/components/label/Label.vue.js +0 -54
  865. package/lib/components/label/Label.vue2.js +0 -4
  866. package/lib/components/label/__tests__/Label.spec.d.ts +0 -1
  867. package/lib/components/link/Link.vue.js +0 -9
  868. package/lib/components/link/Link.vue2.js +0 -47
  869. package/lib/components/link/Link.vue3.js +0 -8
  870. package/lib/components/link/__tests__/Link.spec.d.ts +0 -1
  871. package/lib/components/loader/Loader.vue.js +0 -54
  872. package/lib/components/loader/Loader.vue2.js +0 -4
  873. package/lib/components/loader/__tests__/Loader.spec.d.ts +0 -1
  874. package/lib/components/menu/Menu.vue.js +0 -141
  875. package/lib/components/menu/Menu.vue2.js +0 -4
  876. package/lib/components/menu/MenuItem.vue.js +0 -9
  877. package/lib/components/menu/MenuItem.vue2.js +0 -164
  878. package/lib/components/menu/MenuItem.vue3.js +0 -7
  879. package/lib/components/menu/__tests__/Menu.spec.d.ts +0 -1
  880. package/lib/components/menu/__tests__/MenuItem.spec.d.ts +0 -1
  881. package/lib/components/modal/Modal.vue.js +0 -211
  882. package/lib/components/modal/Modal.vue2.js +0 -4
  883. package/lib/components/modal/__tests__/Modal.spec.d.ts +0 -1
  884. package/lib/components/notifications/Notifications.vue.js +0 -266
  885. package/lib/components/notifications/Notifications.vue2.js +0 -4
  886. package/lib/components/notifications/__tests__/Notifications.spec.d.ts +0 -1
  887. package/lib/components/pagination/Pagination.vue.js +0 -131
  888. package/lib/components/pagination/Pagination.vue2.js +0 -4
  889. package/lib/components/pagination/PaginationItem.vue.js +0 -47
  890. package/lib/components/pagination/PaginationItem.vue2.js +0 -4
  891. package/lib/components/pagination/__tests__/Pagination.spec.d.ts +0 -1
  892. package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +0 -1
  893. package/lib/components/popover/Popover.vue.js +0 -134
  894. package/lib/components/popover/Popover.vue2.js +0 -4
  895. package/lib/components/popover/Popover.vue3.js +0 -5
  896. package/lib/components/popover/PopoverContainer.vue.js +0 -29
  897. package/lib/components/popover/PopoverContainer.vue2.js +0 -4
  898. package/lib/components/popover/__tests__/Popover.spec.d.ts +0 -1
  899. package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +0 -1
  900. package/lib/components/progress/Progress.vue.js +0 -50
  901. package/lib/components/progress/Progress.vue2.js +0 -4
  902. package/lib/components/progress/__tests__/Progress.spec.d.ts +0 -1
  903. package/lib/components/qrCode/QrCode.vue.js +0 -93
  904. package/lib/components/qrCode/QrCode.vue2.js +0 -4
  905. package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +0 -1
  906. package/lib/components/radio/Radio.vue.js +0 -9
  907. package/lib/components/radio/Radio.vue2.js +0 -132
  908. package/lib/components/radio/Radio.vue3.js +0 -10
  909. package/lib/components/radio/__tests__/Radio.spec.d.ts +0 -1
  910. package/lib/components/scroll/Scroll.vue.js +0 -9
  911. package/lib/components/scroll/Scroll.vue2.js +0 -63
  912. package/lib/components/scroll/Scroll.vue3.js +0 -17
  913. package/lib/components/scroll/__tests__/Scroll.spec.d.ts +0 -1
  914. package/lib/components/select/Select.vue.js +0 -696
  915. package/lib/components/select/Select.vue2.js +0 -4
  916. package/lib/components/select/__tests__/Select.spec.d.ts +0 -1
  917. package/lib/components/skeleton/Skeleton.vue.js +0 -39
  918. package/lib/components/skeleton/Skeleton.vue2.js +0 -4
  919. package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +0 -1
  920. package/lib/components/slider/Slider.vue.js +0 -7
  921. package/lib/components/slider/Slider.vue2.js +0 -103
  922. package/lib/components/slider/Slider.vue3.js +0 -4
  923. package/lib/components/slider/__tests__/Slider.spec.d.ts +0 -1
  924. package/lib/components/spacer/__tests__/Spacer.spec.d.ts +0 -1
  925. package/lib/components/spinner/Spinner.vue.js +0 -27
  926. package/lib/components/spinner/Spinner.vue2.js +0 -4
  927. package/lib/components/spinner/__tests__/Spinner.spec.d.ts +0 -1
  928. package/lib/components/stepper/Stepper.vue.js +0 -129
  929. package/lib/components/stepper/Stepper.vue2.js +0 -4
  930. package/lib/components/stepper/__tests__/Stepper.spec.d.ts +0 -1
  931. package/lib/components/tab/Tab.vue.js +0 -150
  932. package/lib/components/tab/Tab.vue2.js +0 -4
  933. package/lib/components/tab/TabGroup.vue.js +0 -135
  934. package/lib/components/tab/TabGroup.vue2.js +0 -4
  935. package/lib/components/tab/__tests__/Tab.spec.d.ts +0 -1
  936. package/lib/components/tab/__tests__/TabGroup.spec.d.ts +0 -1
  937. package/lib/components/table/Table.vue.js +0 -424
  938. package/lib/components/table/Table.vue2.js +0 -4
  939. package/lib/components/table/TableCell.vue.js +0 -65
  940. package/lib/components/table/TableCell.vue2.js +0 -4
  941. package/lib/components/table/TableHead.vue.js +0 -24
  942. package/lib/components/table/TableHead.vue2.js +0 -4
  943. package/lib/components/table/TableHeader.vue.js +0 -82
  944. package/lib/components/table/TableHeader.vue2.js +0 -4
  945. package/lib/components/table/TableRow.vue.js +0 -30
  946. package/lib/components/table/TableRow.vue2.js +0 -4
  947. package/lib/components/table/__tests__/Table.spec.d.ts +0 -1
  948. package/lib/components/tag/Tag.vue.js +0 -73
  949. package/lib/components/tag/Tag.vue2.js +0 -4
  950. package/lib/components/tag/__tests__/Tag.spec.d.ts +0 -1
  951. package/lib/components/textarea/Textarea.vue.js +0 -141
  952. package/lib/components/textarea/Textarea.vue2.js +0 -4
  953. package/lib/components/textarea/__tests__/Textarea.spec.d.ts +0 -1
  954. package/lib/components/themeProvider/ThemeProvider.vue.js +0 -18
  955. package/lib/components/themeProvider/ThemeProvider.vue2.js +0 -4
  956. package/lib/components/toggle/Toggle.vue.js +0 -108
  957. package/lib/components/toggle/Toggle.vue2.js +0 -4
  958. package/lib/components/toggle/__tests__/Toggle.spec.d.ts +0 -1
  959. package/lib/components/tooltip/ToggleTip.vue.js +0 -29
  960. package/lib/components/tooltip/ToggleTip.vue2.js +0 -4
  961. package/lib/components/tooltip/Tooltip.vue.js +0 -132
  962. package/lib/components/tooltip/Tooltip.vue2.js +0 -4
  963. package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +0 -1
  964. package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +0 -1
  965. package/lib/components/upload/Upload.vue.js +0 -275
  966. package/lib/components/upload/Upload.vue2.js +0 -4
  967. package/lib/components/upload/__tests__/Upload.spec.d.ts +0 -1
  968. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -4
  969. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -5210
  970. package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -501
  971. package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -96
  972. package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.5.10_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +0 -1371
  973. package/lib/tailwind.preset.js +0 -40
  974. package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue.js +0 -21
  975. package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue2.js +0 -4
  976. package/lib/virtual/components/virtualGrid/VirtualGrid.vue.js +0 -241
  977. package/lib/virtual/components/virtualGrid/VirtualGrid.vue2.js +0 -4
  978. package/lib/virtual/components/virtualList/VirtualList.vue.js +0 -159
  979. package/lib/virtual/components/virtualList/VirtualList.vue2.js +0 -4
@@ -1,33 +1,46 @@
1
1
  <script lang="ts">
2
+ import { optionalBooleanProp } from '../../common/props'
3
+
2
4
  const validators = {
3
5
  ...useCommon.validators(),
4
- variant: ['line', 'block'] as const,
6
+ variant: ['line', 'block', 'compact'] as const,
5
7
  align: ['left', 'center', 'right'] as const,
6
8
  }
7
9
  const tabGroupProps = {
8
10
  ...useCommon.props(),
9
11
  ...useColors.props('primary'),
10
- modelValue: [String, Number],
12
+ modelValue: {
13
+ type: [String, Number],
14
+ description: 'Active tab value (v-model).',
15
+ },
11
16
  variant: {
12
- type: String as PropType<'line' | 'block'>,
17
+ type: String as PropType<'line' | 'block' | 'compact'>,
13
18
  default: 'line',
19
+ description: 'Visual style of the tab list (line, block, or compact).',
14
20
  },
15
21
  align: {
16
22
  type: String as PropType<'left' | 'center' | 'right'>,
17
23
  default: 'left',
24
+ description: 'Horizontal alignment of tabs in the list.',
25
+ },
26
+ ghost: optionalBooleanProp('Subtle styling with less background emphasis.'),
27
+ grow: optionalBooleanProp('Stretches tabs to fill the list width.'),
28
+ exact: {
29
+ type: Boolean,
30
+ description: 'Default exact route matching for linked tabs.',
18
31
  },
19
- ghost: Boolean,
20
- grow: Boolean,
21
- exact: Boolean,
22
32
  fullWidth: {
23
33
  type: Boolean,
24
34
  default: true,
35
+ description: 'Stretches the tab list to the container width.',
25
36
  },
26
37
  }
27
38
 
28
39
  export type TabGroupInjection = {
29
40
  tabsContentRef: Ref<HTMLElement | null>;
30
- activateTab: (tab: string | number) => void;
41
+ activateTab: (tab: string | number | null) => void;
42
+ registerTab: (tab: string | number) => void;
43
+ unregisterTab: (tab: string | number) => void;
31
44
  state: {
32
45
  active: string | number | undefined;
33
46
  variant: TabGroupVariant;
@@ -48,6 +61,14 @@ export interface TabGroupTheme extends ThemeComponent<TabGroupProps, InternalCla
48
61
  export default {
49
62
  name: 'XTabGroup',
50
63
  validators,
64
+ docs: {
65
+ slots: {
66
+ default: 'Tab triggers (typically x-tab children).',
67
+ },
68
+ emits: {
69
+ 'update:modelValue': 'Emitted when the active tab changes (v-model).',
70
+ },
71
+ },
51
72
  }
52
73
  </script>
53
74
 
@@ -58,10 +79,12 @@ import { injectTabGroupKey } from '../../composables/keys'
58
79
  import { useCommon, type Size } from '../../composables/useCommon'
59
80
  import { useColors } from '../../composables/useColors'
60
81
  import { useTheme, type ThemeComponent } from '../../composables/useTheme'
82
+ import { useResolvedComponentProps } from '../../composables/resolveComponentDefaults'
61
83
 
62
84
  import XScroll from '../../components/scroll/Scroll.vue'
63
85
 
64
86
  const props = defineProps(tabGroupProps)
87
+ const resolvedProps = useResolvedComponentProps('TabGroup', props)
65
88
 
66
89
  const emit = defineEmits(['update:modelValue'])
67
90
 
@@ -80,45 +103,107 @@ watchEffect(() => {
80
103
  const state = reactive({
81
104
  active: computed(() => active.value),
82
105
  variant: computed(() => props.variant),
83
- ghost: computed(() => props.ghost),
84
- grow: computed(() => props.grow),
106
+ ghost: computed(() => resolvedProps.value.ghost ?? false),
107
+ grow: computed(() => resolvedProps.value.grow ?? false),
85
108
  exact: computed(() => props.exact),
86
109
  size: computed(() => props.size),
87
110
  color: computed(() => props.color),
88
111
  })
89
112
 
113
+ const showTracker = ref(true)
114
+ const registeredTabs: (string | number)[] = []
115
+
90
116
  function activateTab(tab: string | number | null) {
91
117
  active.value = tab
92
118
  emit('update:modelValue', tab)
93
119
  }
94
120
 
121
+ function registerTab(tab: string | number) {
122
+ if (!registeredTabs.includes(tab)) registeredTabs.push(tab)
123
+ }
124
+
125
+ function unregisterTab(tab: string | number) {
126
+ const index = registeredTabs.indexOf(tab)
127
+
128
+ if (index === -1) return
129
+
130
+ registeredTabs.splice(index, 1)
131
+
132
+ if (active.value !== tab) return
133
+
134
+ const fallback = registeredTabs[Math.min(index, registeredTabs.length - 1)]
135
+
136
+ if (typeof fallback !== 'undefined') {
137
+ activateTab(fallback)
138
+ } else {
139
+ activateTab(null)
140
+ showTracker.value = false
141
+ }
142
+ }
143
+
95
144
  provide(injectTabGroupKey, {
96
145
  tabsContentRef,
97
146
  activateTab,
147
+ registerTab,
148
+ unregisterTab,
98
149
  state,
99
150
  })
100
151
 
101
152
  const updateTracker = useThrottleFn(async (value: string | number | undefined) => {
102
- if (typeof value === 'undefined') return
153
+ if (typeof value === 'undefined' || value === null) {
154
+ showTracker.value = false
155
+
156
+ return
157
+ }
103
158
 
104
159
  await nextTick()
105
160
 
106
161
  const tabEl = tabsRef.value?.querySelector(`[data-value="${value}"]`) as HTMLElement
107
162
 
108
- if (!tabEl || !trackerRef.value) return
163
+ if (!tabEl || !trackerRef.value) {
164
+ showTracker.value = false
109
165
 
166
+ return
167
+ }
168
+
169
+ showTracker.value = true
110
170
  trackerRef.value.style.left = `${tabEl.offsetLeft}px`
111
171
  trackerRef.value.style.width = `${tabEl.offsetWidth}px`
112
172
 
113
- if (!tabsRef.value || !scrollRef.value) return
173
+ if (!tabsRef.value || !scrollRef.value?.scrollEl) return
114
174
 
115
- // scrollIntoView only updates one at a time
116
- const center = tabEl.offsetLeft - (tabsRef.value.getBoundingClientRect().width - tabEl.getBoundingClientRect().width) / 2
175
+ const scrollEl = scrollRef.value.scrollEl
176
+ // Measure overflow from the in-flow tabs list only (tracker is absolute and clipped).
177
+ const maxScroll = Math.max(0, tabsRef.value.scrollWidth - scrollEl.clientWidth)
178
+ const viewLeft = scrollEl.scrollLeft
179
+ const viewRight = viewLeft + scrollEl.clientWidth
180
+ const tabLeft = tabEl.offsetLeft
181
+ const tabRight = tabLeft + tabEl.offsetWidth
182
+ const tabFullyVisible = tabLeft >= viewLeft && tabRight <= viewRight
117
183
 
118
- if (scrollRef.value.scrollEl) scrollRef.value.scrollEl.scrollTo({ left: center, behavior: 'smooth' })
119
- }, 100, true)
184
+ if (maxScroll <= 0) {
185
+ if (scrollEl.scrollLeft !== 0) scrollEl.scrollTo({ left: 0 })
186
+ scrollEl.dispatchEvent(new CustomEvent('scroll'))
120
187
 
121
- const showTracker = ref(true)
188
+ return
189
+ }
190
+
191
+ if (tabFullyVisible) {
192
+ scrollEl.dispatchEvent(new CustomEvent('scroll'))
193
+
194
+ return
195
+ }
196
+
197
+ let nextLeft = viewLeft
198
+
199
+ if (tabLeft < viewLeft) nextLeft = tabLeft
200
+ else if (tabRight > viewRight) nextLeft = tabRight - scrollEl.clientWidth
201
+
202
+ nextLeft = Math.max(0, Math.min(nextLeft, maxScroll))
203
+
204
+ if (nextLeft !== viewLeft) scrollEl.scrollTo({ left: nextLeft, behavior: 'smooth' })
205
+ else scrollEl.dispatchEvent(new CustomEvent('scroll'))
206
+ }, 100, true)
122
207
 
123
208
  function check() {
124
209
  if (!tabsRef.value?.querySelector('.router-link-active')) {
@@ -166,18 +251,21 @@ const { styles, classes, className } = useTheme('TabGroup', {}, props)
166
251
  mousewheel
167
252
  :class="classes.scroller"
168
253
  >
169
- <div
170
- ref="tabsRef"
171
- class="relative"
172
- :class="classes.list"
173
- >
174
- <slot></slot>
254
+ <div class="relative overflow-x-clip">
255
+ <div
256
+ ref="tabsRef"
257
+ class="relative"
258
+ :class="classes.list"
259
+ >
260
+ <slot></slot>
261
+ </div>
262
+ <div
263
+ v-show="showTracker"
264
+ ref="trackerRef"
265
+ class="pointer-events-none"
266
+ :class="classes.tracker"
267
+ ></div>
175
268
  </div>
176
- <div
177
- v-show="showTracker"
178
- ref="trackerRef"
179
- :class="classes.tracker"
180
- ></div>
181
269
  </x-scroll>
182
270
  </div>
183
271
  <div ref="tabsContentRef"></div>
@@ -8,4 +8,57 @@ describe('Tab', () => {
8
8
 
9
9
  expect(wrapper.vm).toBeTruthy()
10
10
  })
11
+
12
+ it('falls back label to value when icon is absent', () => {
13
+ const wrapper = mount(Tab, {
14
+ props: { value: 'grid' },
15
+ })
16
+
17
+ expect(wrapper.text()).toContain('grid')
18
+ })
19
+
20
+ it('omits label when icon is set without label', () => {
21
+ const wrapper = mount(Tab, {
22
+ props: { value: 'grid', icon: 'grid' },
23
+ global: {
24
+ stubs: { XIcon: true },
25
+ },
26
+ })
27
+
28
+ expect(wrapper.text()).not.toContain('grid')
29
+ })
30
+
31
+ it('renders label when icon and label are both set', () => {
32
+ const wrapper = mount(Tab, {
33
+ props: { value: 'grid', icon: 'grid', label: 'Grid' },
34
+ global: {
35
+ stubs: { XIcon: true },
36
+ },
37
+ })
38
+
39
+ expect(wrapper.text()).toContain('Grid')
40
+ })
41
+
42
+ it('passes tooltip to the tooltip wrapper', () => {
43
+ const wrapper = mount(Tab, {
44
+ props: { value: 'grid', icon: 'grid', tooltip: 'Grid view' },
45
+ global: {
46
+ stubs: {
47
+ XIcon: true,
48
+ XTooltip: {
49
+ props: ['position'],
50
+ template: `
51
+ <div class="tooltip-stub">
52
+ <slot />
53
+ <div class="tooltip-content"><slot name="tooltip" /></div>
54
+ </div>
55
+ `,
56
+ },
57
+ },
58
+ },
59
+ })
60
+
61
+ expect(wrapper.find('.tooltip-content').text()).toBe('Grid view')
62
+ expect(wrapper.find('[aria-label="Grid view"]').exists()).toBe(true)
63
+ })
11
64
  })
@@ -1,6 +1,8 @@
1
1
  import { describe, it, expect } from 'vitest'
2
+ import { defineComponent, h, nextTick } from 'vue'
2
3
  import { mount } from '@vue/test-utils'
3
4
  import TabGroup from '../TabGroup.vue'
5
+ import Tab from '../Tab.vue'
4
6
 
5
7
  describe('TabGroup', () => {
6
8
  it('renders without errors', () => {
@@ -8,4 +10,115 @@ describe('TabGroup', () => {
8
10
 
9
11
  expect(wrapper.vm).toBeTruthy()
10
12
  })
13
+
14
+ it('supports compact variant with text labels', async () => {
15
+ const wrapper = mount(TabGroup, {
16
+ props: {
17
+ variant: 'compact',
18
+ modelValue: 'unique',
19
+ },
20
+ slots: {
21
+ default: () => [
22
+ h(Tab, { value: 'unique', label: 'Unique' }),
23
+ h(Tab, { value: 'total', label: 'Total' }),
24
+ ],
25
+ },
26
+ global: {
27
+ stubs: {
28
+ XScroll: {
29
+ template: '<div><slot /></div>',
30
+ },
31
+ },
32
+ },
33
+ })
34
+
35
+ await nextTick()
36
+
37
+ expect(wrapper.text()).toContain('Unique')
38
+ expect(wrapper.text()).toContain('Total')
39
+ expect(wrapper.find('[data-value="unique"] [aria-selected="true"]').exists()).toBe(true)
40
+ })
41
+
42
+ it('hides label for icon-only compact tabs', async () => {
43
+ const Host = defineComponent({
44
+ components: { TabGroup, Tab },
45
+ data: () => ({ view: 'grid' }),
46
+ template: `
47
+ <TabGroup v-model="view" variant="compact">
48
+ <Tab value="grid" icon="grid" tooltip="Grid view" />
49
+ <Tab value="list" icon="list" tooltip="List view" />
50
+ </TabGroup>
51
+ `,
52
+ })
53
+
54
+ const wrapper = mount(Host, {
55
+ global: {
56
+ stubs: {
57
+ XScroll: {
58
+ template: '<div><slot /></div>',
59
+ },
60
+ XIcon: true,
61
+ },
62
+ },
63
+ })
64
+
65
+ await nextTick()
66
+
67
+ expect(wrapper.find('[data-value="grid"] [aria-label="Grid view"]').exists()).toBe(true)
68
+ expect(wrapper.find('[data-value="list"] [aria-label="List view"]').exists()).toBe(true)
69
+ expect(wrapper.text()).not.toContain('grid')
70
+ expect(wrapper.text()).not.toContain('list')
71
+ })
72
+
73
+ it('passes size down to Tab icons', async () => {
74
+ const wrapper = mount(TabGroup, {
75
+ props: {
76
+ modelValue: 'a',
77
+ size: 'lg',
78
+ },
79
+ slots: {
80
+ default: () => h(Tab, { value: 'a', label: 'Tab A', icon: 'smile' }),
81
+ },
82
+ global: {
83
+ stubs: {
84
+ XScroll: { template: '<div><slot /></div>' },
85
+ XTooltip: { template: '<div><slot /></div>' },
86
+ XIcon: {
87
+ props: ['icon', 'size'],
88
+ template: '<i class="icon-stub" :data-size="size" />',
89
+ },
90
+ },
91
+ },
92
+ })
93
+
94
+ await nextTick()
95
+
96
+ expect(wrapper.find('.icon-stub').attributes('data-size')).toBe('lg')
97
+ })
98
+
99
+ it('lets Tab size override TabGroup size', async () => {
100
+ const wrapper = mount(TabGroup, {
101
+ props: {
102
+ modelValue: 'a',
103
+ size: 'lg',
104
+ },
105
+ slots: {
106
+ default: () => h(Tab, { value: 'a', label: 'Tab A', icon: 'smile', size: 'sm' }),
107
+ },
108
+ global: {
109
+ stubs: {
110
+ XScroll: { template: '<div><slot /></div>' },
111
+ XTooltip: { template: '<div><slot /></div>' },
112
+ XIcon: {
113
+ props: ['icon', 'size'],
114
+ template: '<i class="icon-stub" :data-size="size" />',
115
+ },
116
+ },
117
+ },
118
+ })
119
+
120
+ await nextTick()
121
+
122
+ expect(wrapper.find('.icon-stub').attributes('data-size')).toBe('sm')
123
+ })
11
124
  })
@@ -1,5 +1,24 @@
1
1
  import type { TabTheme } from '../Tab.vue'
2
2
 
3
+ const compactSizeClasses = (size: string | undefined, iconOnly: boolean) => {
4
+ if (iconOnly) {
5
+ // Explicit h/w so width cannot collapse under flex/`w-full` conflicts.
6
+ if (size === 'xs') return 'h-6 w-6'
7
+ if (size === 'sm') return 'h-7 w-7'
8
+ if (size === 'lg') return 'h-10 w-10'
9
+ if (size === 'xl') return 'h-11 w-11'
10
+
11
+ return 'h-7 w-7'
12
+ }
13
+
14
+ if (size === 'xs') return 'text-xs min-h-6'
15
+ if (size === 'sm') return 'text-sm min-h-7'
16
+ if (size === 'lg') return 'text-lg min-h-10'
17
+ if (size === 'xl') return 'text-xl min-h-11'
18
+
19
+ return 'text-sm min-h-7'
20
+ }
21
+
3
22
  const theme: TabTheme = {
4
23
  classes: {
5
24
  wrapper: ({ props, data }) => {
@@ -8,7 +27,10 @@ const theme: TabTheme = {
8
27
  if (data.variant === 'line') c.push('py-2')
9
28
  if (data.variant === 'block') c.push('py-1 px-8')
10
29
 
11
- if (props.size === 'xs') c.push('text-xs')
30
+ if (data.variant === 'compact') {
31
+ if (data.showLabel) c.push('px-2.5')
32
+ c.push(compactSizeClasses(props.size, !data.showLabel))
33
+ } else if (props.size === 'xs') c.push('text-xs')
12
34
  else if (props.size === 'sm') c.push('text-sm')
13
35
  else if (props.size === 'lg') c.push('text-lg')
14
36
  else if (props.size === 'xl') c.push('text-xl')
@@ -20,7 +42,7 @@ const theme: TabTheme = {
20
42
 
21
43
  label: 'font-medium',
22
44
 
23
- icon: 'mr-1.5',
45
+ icon: ({ data }) => (data.showLabel ? 'mr-1.5' : ''),
24
46
 
25
47
  tabpanel: 'py-2',
26
48
  },
@@ -1,16 +1,39 @@
1
1
  import type { TabTheme } from '../Tab.vue'
2
2
 
3
+ const compactSizeClasses = (size: string | undefined, iconOnly: boolean) => {
4
+ if (iconOnly) {
5
+ // Explicit h/w so width cannot collapse under flex/`w-full` conflicts.
6
+ if (size === 'xs') return 'h-6 w-6'
7
+ if (size === 'sm') return 'h-7 w-7'
8
+ if (size === 'lg') return 'h-10 w-10'
9
+ if (size === 'xl') return 'h-11 w-11'
10
+
11
+ return 'h-7 w-7'
12
+ }
13
+
14
+ if (size === 'xs') return 'text-xs min-h-6'
15
+ if (size === 'sm') return 'text-sm min-h-7'
16
+ if (size === 'lg') return 'text-lg min-h-10'
17
+ if (size === 'xl') return 'text-xl min-h-11'
18
+
19
+ return 'text-sm min-h-7'
20
+ }
21
+
3
22
  const theme: TabTheme = {
4
23
  classes: {
5
24
  wrapper: ({ props, data }) => {
6
- const c = ['py-2 transition-colors duration-150 ease-in-out whitespace-nowrap text-left']
25
+ const c = ['transition-colors duration-150 ease-in-out whitespace-nowrap text-left']
7
26
 
8
- if (data.variant === 'block') c.push('px-4')
9
- else c.push('px-4')
27
+ if (data.variant === 'compact') {
28
+ if (data.showLabel) c.push('px-2.5')
29
+ c.push(compactSizeClasses(props.size, !data.showLabel))
30
+ } else {
31
+ c.push('py-2 px-4')
10
32
 
11
- if (props.size === 'lg') c.push('text-lg')
12
- else if (props.size === 'xl') c.push('text-xl')
13
- else c.push('text-sm')
33
+ if (props.size === 'lg') c.push('text-lg')
34
+ else if (props.size === 'xl') c.push('text-xl')
35
+ else c.push('text-sm')
36
+ }
14
37
 
15
38
  return c
16
39
  },
@@ -25,7 +48,7 @@ const theme: TabTheme = {
25
48
  return c
26
49
  },
27
50
 
28
- icon: 'mr-1.5',
51
+ icon: ({ data }) => (data.showLabel ? 'mr-1.5' : ''),
29
52
 
30
53
  tabpanel: 'py-4',
31
54
  },
@@ -7,9 +7,10 @@ const theme: TabGroupTheme = {
7
7
  scroller: ({ props }) => {
8
8
  const c = ['']
9
9
 
10
- if (!props.fullWidth) c.push('!w-fit')
11
- if (props.variant === 'block') c.push('rounded-lg')
12
- if (props.variant === 'block' && !props.ghost) c.push('bg-secondary-100 dark:bg-secondary-800 p-1')
10
+ if (!props.fullWidth || props.variant === 'compact') c.push('!w-fit')
11
+ if (props.variant === 'block' || props.variant === 'compact') c.push('rounded-lg')
12
+ if (props.variant === 'block' && !props.ghost) c.push('bg-secondary-200/80 dark:bg-secondary-800 p-1')
13
+ if (props.variant === 'compact' && !props.ghost) c.push('bg-secondary-200/80 dark:bg-secondary-800 p-1')
13
14
 
14
15
  return c
15
16
  },
@@ -19,7 +20,7 @@ const theme: TabGroupTheme = {
19
20
 
20
21
  if (props.variant === 'line') c.push('border-b border-secondary-200 dark:border-secondary-700')
21
22
  if (props.variant === 'line' && !props.grow) c.push('space-x-8')
22
- if (props.variant === 'block') c.push('z-[1]')
23
+ if (props.variant === 'block' || props.variant === 'compact') c.push('z-[1] space-x-1')
23
24
  if (props.align === 'center') c.push('justify-center')
24
25
  if (props.align === 'right') c.push('justify-end')
25
26
 
@@ -31,7 +32,9 @@ const theme: TabGroupTheme = {
31
32
 
32
33
  if (props.variant === 'line') c.push('h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]')
33
34
 
34
- if (props.variant === 'block') c.push('rounded-md h-full top-0 bg-[color:var(--x-tab-group-bg)] dark:bg-[color:var(--x-tab-group-dark-bg)]')
35
+ if (props.variant === 'block' || props.variant === 'compact') {
36
+ c.push('rounded-md h-full top-0 bg-[color:var(--x-tab-group-bg)] dark:bg-[color:var(--x-tab-group-dark-bg)]')
37
+ }
35
38
 
36
39
  return c
37
40
  },
@@ -42,11 +45,11 @@ const theme: TabGroupTheme = {
42
45
  const color = colors.getPalette(props.color)
43
46
 
44
47
  return css.variables({
45
- text: color[600],
46
- bg: props.ghost ? color[50] : '#fff',
48
+ text: color[700],
49
+ bg: props.ghost ? color[100] : '#fff',
47
50
  dark: {
48
- text: color[400],
49
- bg: props.ghost ? color[900] : secondary[700],
51
+ text: color[300],
52
+ bg: props.ghost ? secondary[700] : secondary[700],
50
53
  },
51
54
  })
52
55
  },
@@ -7,9 +7,10 @@ const theme: TabGroupTheme = {
7
7
  scroller: ({ props }) => {
8
8
  const c = ['']
9
9
 
10
- if (!props.fullWidth) c.push('!w-fit')
10
+ if (!props.fullWidth || props.variant === 'compact') c.push('!w-fit')
11
11
  if (props.variant === 'block') c.push('')
12
12
  if (props.variant === 'block' && !props.ghost) c.push('bg-secondary-200 dark:bg-secondary-800')
13
+ if (props.variant === 'compact' && !props.ghost) c.push('bg-secondary-200 dark:bg-secondary-800')
13
14
 
14
15
  return c
15
16
  },
@@ -20,6 +21,7 @@ const theme: TabGroupTheme = {
20
21
  if (props.variant === 'line') c.push('border-b border-secondary-200 dark:border-secondary-700')
21
22
  if (props.variant === 'line' && !props.grow) c.push('')
22
23
  if (props.variant === 'block') c.push('z-[1] py-1.5')
24
+ if (props.variant === 'compact') c.push('z-[1] py-0.5')
23
25
  if (props.align === 'center') c.push('justify-center')
24
26
  if (props.align === 'right') c.push('justify-end')
25
27
 
@@ -31,7 +33,9 @@ const theme: TabGroupTheme = {
31
33
 
32
34
  if (props.variant === 'line') c.push('h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]')
33
35
 
34
- if (props.variant === 'block') c.push('border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-secondary-100 dark:bg-secondary-700')
36
+ if (props.variant === 'block' || props.variant === 'compact') {
37
+ c.push('border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-secondary-100 dark:bg-secondary-700')
38
+ }
35
39
 
36
40
  return c
37
41
  },