@antify/ui-module 1.1.3

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 (336) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/dist/module.cjs +5 -0
  4. package/dist/module.d.mts +131 -0
  5. package/dist/module.d.ts +131 -0
  6. package/dist/module.json +5 -0
  7. package/dist/module.mjs +339 -0
  8. package/dist/runtime/assets/tailwind.css +1 -0
  9. package/dist/runtime/components/AntAccordion.vue +59 -0
  10. package/dist/runtime/components/AntAccordionItem.vue +66 -0
  11. package/dist/runtime/components/AntAlert.vue +137 -0
  12. package/dist/runtime/components/AntDropdown.vue +79 -0
  13. package/dist/runtime/components/AntIcon.vue +51 -0
  14. package/dist/runtime/components/AntKeycap.vue +24 -0
  15. package/dist/runtime/components/AntListGroup.vue +24 -0
  16. package/dist/runtime/components/AntListGroupItem.vue +81 -0
  17. package/dist/runtime/components/AntModal.vue +87 -0
  18. package/dist/runtime/components/AntPagination.vue +201 -0
  19. package/dist/runtime/components/AntPopover.vue +112 -0
  20. package/dist/runtime/components/AntSkeleton.vue +38 -0
  21. package/dist/runtime/components/AntSpinner.vue +95 -0
  22. package/dist/runtime/components/AntTag.vue +79 -0
  23. package/dist/runtime/components/AntToast.vue +109 -0
  24. package/dist/runtime/components/AntToaster.vue +46 -0
  25. package/dist/runtime/components/AntTooltip.vue +165 -0
  26. package/dist/runtime/components/Main.stories.mdx +10 -0
  27. package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +9 -0
  28. package/dist/runtime/components/__stories/AntAccordion.stories.mjs +97 -0
  29. package/dist/runtime/components/__stories/AntAlert.stories.d.ts +10 -0
  30. package/dist/runtime/components/__stories/AntAlert.stories.mjs +75 -0
  31. package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +6 -0
  32. package/dist/runtime/components/__stories/AntDropdown.stories.mjs +52 -0
  33. package/dist/runtime/components/__stories/AntIcon.stories.d.ts +8 -0
  34. package/dist/runtime/components/__stories/AntIcon.stories.mjs +90 -0
  35. package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +9 -0
  36. package/dist/runtime/components/__stories/AntKeycap.stories.mjs +59 -0
  37. package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +7 -0
  38. package/dist/runtime/components/__stories/AntListGroup.stories.mjs +36 -0
  39. package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +10 -0
  40. package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +62 -0
  41. package/dist/runtime/components/__stories/AntModal.stories.d.ts +7 -0
  42. package/dist/runtime/components/__stories/AntModal.stories.mjs +78 -0
  43. package/dist/runtime/components/__stories/AntPagination.stories.d.ts +8 -0
  44. package/dist/runtime/components/__stories/AntPagination.stories.mjs +39 -0
  45. package/dist/runtime/components/__stories/AntPopover.stories.d.ts +6 -0
  46. package/dist/runtime/components/__stories/AntPopover.stories.mjs +47 -0
  47. package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +8 -0
  48. package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +43 -0
  49. package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +6 -0
  50. package/dist/runtime/components/__stories/AntSpinner.stories.mjs +34 -0
  51. package/dist/runtime/components/__stories/AntTag.stories.d.ts +7 -0
  52. package/dist/runtime/components/__stories/AntTag.stories.mjs +44 -0
  53. package/dist/runtime/components/__stories/AntToast.stories.d.ts +8 -0
  54. package/dist/runtime/components/__stories/AntToast.stories.mjs +66 -0
  55. package/dist/runtime/components/__stories/AntToaster.stories.d.ts +34 -0
  56. package/dist/runtime/components/__stories/AntToaster.stories.mjs +42 -0
  57. package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +6 -0
  58. package/dist/runtime/components/__stories/AntTooltip.stories.mjs +43 -0
  59. package/dist/runtime/components/__types/Accordion.types.d.ts +4 -0
  60. package/dist/runtime/components/__types/Accordion.types.mjs +5 -0
  61. package/dist/runtime/components/__types/AntIcon.types.d.ts +5 -0
  62. package/dist/runtime/components/__types/AntIcon.types.mjs +6 -0
  63. package/dist/runtime/components/__types/AntToaster.types.d.ts +8 -0
  64. package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
  65. package/dist/runtime/components/__types/index.d.ts +2 -0
  66. package/dist/runtime/components/__types/index.mjs +2 -0
  67. package/dist/runtime/components/buttons/AntButton.vue +227 -0
  68. package/dist/runtime/components/buttons/AntCreateButton.vue +32 -0
  69. package/dist/runtime/components/buttons/AntDeleteButton.vue +32 -0
  70. package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +32 -0
  71. package/dist/runtime/components/buttons/AntSaveButton.vue +31 -0
  72. package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +15 -0
  73. package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +272 -0
  74. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +10 -0
  75. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +57 -0
  76. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +10 -0
  77. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +57 -0
  78. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +10 -0
  79. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +57 -0
  80. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +10 -0
  81. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +57 -0
  82. package/dist/runtime/components/buttons/__types/AntButton.type.d.ts +4 -0
  83. package/dist/runtime/components/buttons/__types/AntButton.type.mjs +5 -0
  84. package/dist/runtime/components/buttons/__types/index.d.ts +1 -0
  85. package/dist/runtime/components/buttons/__types/index.mjs +1 -0
  86. package/dist/runtime/components/crud/AntCrud.vue +42 -0
  87. package/dist/runtime/components/crud/AntCrudDetail.vue +11 -0
  88. package/dist/runtime/components/crud/AntCrudDetailActions.vue +51 -0
  89. package/dist/runtime/components/crud/AntCrudDetailNav.vue +51 -0
  90. package/dist/runtime/components/crud/AntCrudTableFilter.vue +120 -0
  91. package/dist/runtime/components/crud/AntCrudTableNav.vue +129 -0
  92. package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +6 -0
  93. package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +126 -0
  94. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +7 -0
  95. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +80 -0
  96. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +6 -0
  97. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +25 -0
  98. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +6 -0
  99. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +41 -0
  100. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +6 -0
  101. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +25 -0
  102. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +8 -0
  103. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +56 -0
  104. package/dist/runtime/components/dialogs/AntDeleteDialog.vue +29 -0
  105. package/dist/runtime/components/dialogs/AntDialog.vue +147 -0
  106. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +6 -0
  107. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +30 -0
  108. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +6 -0
  109. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +60 -0
  110. package/dist/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +145 -0
  111. package/dist/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +91 -0
  112. package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckbox.stories.d.ts +8 -0
  113. package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckbox.stories.mjs +286 -0
  114. package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckboxGroup.stories.d.ts +7 -0
  115. package/dist/runtime/components/form/AntCheckboxWidget/__stories/AntCheckboxGroup.stories.mjs +96 -0
  116. package/dist/runtime/components/form/AntCheckboxWidget/__types/AntCheckbox.d.ts +6 -0
  117. package/dist/runtime/components/form/AntCheckboxWidget/__types/AntCheckbox.mjs +0 -0
  118. package/dist/runtime/components/form/AntFormGroup.vue +21 -0
  119. package/dist/runtime/components/form/AntFormGroupLabel.vue +5 -0
  120. package/dist/runtime/components/form/AntNumberInput.vue +170 -0
  121. package/dist/runtime/components/form/AntRadioWidget/AntRadio.vue +139 -0
  122. package/dist/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +80 -0
  123. package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.d.ts +8 -0
  124. package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadio.stories.mjs +79 -0
  125. package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadioGroup.stories.d.ts +8 -0
  126. package/dist/runtime/components/form/AntRadioWidget/__stories/AntRadioGroup.stories.mjs +125 -0
  127. package/dist/runtime/components/form/AntRadioWidget/__types/AntRadio.type.d.ts +9 -0
  128. package/dist/runtime/components/form/AntRadioWidget/__types/AntRadio.type.mjs +0 -0
  129. package/dist/runtime/components/form/AntRangeSlider.vue +81 -0
  130. package/dist/runtime/components/form/AntRichTextEditor.vue +237 -0
  131. package/dist/runtime/components/form/AntSearch.vue +76 -0
  132. package/dist/runtime/components/form/AntSelect.vue +346 -0
  133. package/dist/runtime/components/form/AntSwitch.vue +145 -0
  134. package/dist/runtime/components/form/AntSwitcher.vue +184 -0
  135. package/dist/runtime/components/form/AntTextInput.vue +73 -0
  136. package/dist/runtime/components/form/AntTextarea.vue +170 -0
  137. package/dist/runtime/components/form/AntUnitInput.vue +99 -0
  138. package/dist/runtime/components/form/Elements/AntBaseInput.vue +216 -0
  139. package/dist/runtime/components/form/Elements/AntDropDown.vue +160 -0
  140. package/dist/runtime/components/form/Elements/AntField.vue +102 -0
  141. package/dist/runtime/components/form/Elements/AntInputDescription.vue +55 -0
  142. package/dist/runtime/components/form/Elements/AntInputLabel.vue +55 -0
  143. package/dist/runtime/components/form/Elements/AntInputLimiter.vue +55 -0
  144. package/dist/runtime/components/form/Elements/__stories/AntBaseInput.stories.d.ts +9 -0
  145. package/dist/runtime/components/form/Elements/__stories/AntBaseInput.stories.mjs +168 -0
  146. package/dist/runtime/components/form/Elements/__stories/AntField.stories.d.ts +6 -0
  147. package/dist/runtime/components/form/Elements/__stories/AntField.stories.mjs +80 -0
  148. package/dist/runtime/components/form/Elements/__stories/AntInputDescription.stories.d.ts +6 -0
  149. package/dist/runtime/components/form/Elements/__stories/AntInputDescription.stories.mjs +34 -0
  150. package/dist/runtime/components/form/Elements/__stories/AntInputLabel.stories.d.ts +7 -0
  151. package/dist/runtime/components/form/Elements/__stories/AntInputLabel.stories.mjs +46 -0
  152. package/dist/runtime/components/form/Elements/__stories/AntInputLimiter.stories.d.ts +6 -0
  153. package/dist/runtime/components/form/Elements/__stories/AntInputLimiter.stories.mjs +37 -0
  154. package/dist/runtime/components/form/Elements/__types/AntBaseInput.type.d.ts +16 -0
  155. package/dist/runtime/components/form/Elements/__types/AntBaseInput.type.mjs +17 -0
  156. package/dist/runtime/components/form/Elements/__types/index.d.ts +1 -0
  157. package/dist/runtime/components/form/Elements/__types/index.mjs +1 -0
  158. package/dist/runtime/components/form/Elements/index.d.ts +6 -0
  159. package/dist/runtime/components/form/Elements/index.mjs +12 -0
  160. package/dist/runtime/components/form/__stories/AntFormGroup.stories.d.ts +6 -0
  161. package/dist/runtime/components/form/__stories/AntFormGroup.stories.mjs +33 -0
  162. package/dist/runtime/components/form/__stories/AntFormGroupLabel.stories.d.ts +6 -0
  163. package/dist/runtime/components/form/__stories/AntFormGroupLabel.stories.mjs +20 -0
  164. package/dist/runtime/components/form/__stories/AntNumberInput.stories.d.ts +7 -0
  165. package/dist/runtime/components/form/__stories/AntNumberInput.stories.mjs +67 -0
  166. package/dist/runtime/components/form/__stories/AntRangeSlider.stories.d.ts +6 -0
  167. package/dist/runtime/components/form/__stories/AntRangeSlider.stories.mjs +40 -0
  168. package/dist/runtime/components/form/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
  169. package/dist/runtime/components/form/__stories/AntRichTextEditor.stories-old.mjs +0 -0
  170. package/dist/runtime/components/form/__stories/AntSearch.stories.d.ts +6 -0
  171. package/dist/runtime/components/form/__stories/AntSearch.stories.mjs +43 -0
  172. package/dist/runtime/components/form/__stories/AntSelect.stories.d.ts +13 -0
  173. package/dist/runtime/components/form/__stories/AntSelect.stories.mjs +220 -0
  174. package/dist/runtime/components/form/__stories/AntSwitch.stories.d.ts +8 -0
  175. package/dist/runtime/components/form/__stories/AntSwitch.stories.mjs +215 -0
  176. package/dist/runtime/components/form/__stories/AntSwitcher.stories.d.ts +8 -0
  177. package/dist/runtime/components/form/__stories/AntSwitcher.stories.mjs +225 -0
  178. package/dist/runtime/components/form/__stories/AntTextInput.stories.d.ts +7 -0
  179. package/dist/runtime/components/form/__stories/AntTextInput.stories.mjs +68 -0
  180. package/dist/runtime/components/form/__stories/AntTextarea.stories.d.ts +8 -0
  181. package/dist/runtime/components/form/__stories/AntTextarea.stories.mjs +128 -0
  182. package/dist/runtime/components/form/__stories/AntUnitInput.stories.d.ts +8 -0
  183. package/dist/runtime/components/form/__stories/AntUnitInput.stories.mjs +84 -0
  184. package/dist/runtime/components/form/__types/AntSelect.type.d.ts +4 -0
  185. package/dist/runtime/components/form/__types/AntSelect.type.mjs +0 -0
  186. package/dist/runtime/components/form/__types/AntSwitcher.type.d.ts +4 -0
  187. package/dist/runtime/components/form/__types/AntSwitcher.type.mjs +0 -0
  188. package/dist/runtime/components/form/__types/AntTextInput.type.d.ts +7 -0
  189. package/dist/runtime/components/form/__types/AntTextInput.type.mjs +8 -0
  190. package/dist/runtime/components/form/__types/index.d.ts +3 -0
  191. package/dist/runtime/components/form/__types/index.mjs +3 -0
  192. package/dist/runtime/components/form/index.d.ts +11 -0
  193. package/dist/runtime/components/form/index.mjs +22 -0
  194. package/dist/runtime/components/index.d.ts +22 -0
  195. package/dist/runtime/components/index.mjs +41 -0
  196. package/dist/runtime/components/layouts/AntNavLeftLayout.vue +36 -0
  197. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +7 -0
  198. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +68 -0
  199. package/dist/runtime/components/navbar/AntNavbar.vue +25 -0
  200. package/dist/runtime/components/navbar/AntNavbarItem.vue +78 -0
  201. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +6 -0
  202. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +66 -0
  203. package/dist/runtime/components/navbar/__types/NavbarItem.d.ts +10 -0
  204. package/dist/runtime/components/navbar/__types/NavbarItem.mjs +0 -0
  205. package/dist/runtime/components/table/AntTable.vue +192 -0
  206. package/dist/runtime/components/table/AntTableSortButton.vue +26 -0
  207. package/dist/runtime/components/table/AntTd.vue +70 -0
  208. package/dist/runtime/components/table/AntTh.vue +67 -0
  209. package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +9 -0
  210. package/dist/runtime/components/table/__stories/AntTable.stories.mjs +274 -0
  211. package/dist/runtime/components/table/__types/TableHeader.type.d.ts +31 -0
  212. package/dist/runtime/components/table/__types/TableHeader.type.mjs +19 -0
  213. package/dist/runtime/components/tabs/AntTabItem.vue +115 -0
  214. package/dist/runtime/components/tabs/AntTabs.vue +47 -0
  215. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +6 -0
  216. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +32 -0
  217. package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +9 -0
  218. package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +173 -0
  219. package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +17 -0
  220. package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +6 -0
  221. package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +92 -0
  222. package/dist/runtime/composables/useUi.d.ts +20 -0
  223. package/dist/runtime/composables/useUi.mjs +31 -0
  224. package/dist/runtime/composables/useUiClient.d.ts +34 -0
  225. package/dist/runtime/composables/useUiClient.mjs +61 -0
  226. package/dist/runtime/composables/useValidator.d.ts +1 -0
  227. package/dist/runtime/composables/useValidator.mjs +1 -0
  228. package/dist/runtime/enums/ColorType.enum.d.ts +16 -0
  229. package/dist/runtime/enums/ColorType.enum.mjs +18 -0
  230. package/dist/runtime/enums/Direction.enum.d.ts +4 -0
  231. package/dist/runtime/enums/Direction.enum.mjs +5 -0
  232. package/dist/runtime/enums/Grouped.enum.d.ts +6 -0
  233. package/dist/runtime/enums/Grouped.enum.mjs +7 -0
  234. package/dist/runtime/enums/Position.enum.d.ts +12 -0
  235. package/dist/runtime/enums/Position.enum.mjs +14 -0
  236. package/dist/runtime/enums/Size.enum.d.ts +4 -0
  237. package/dist/runtime/enums/Size.enum.mjs +5 -0
  238. package/dist/runtime/enums/index.d.ts +4 -0
  239. package/dist/runtime/enums/index.mjs +4 -0
  240. package/dist/runtime/env.d.ts +8 -0
  241. package/dist/runtime/handler.d.ts +1 -0
  242. package/dist/runtime/handler.mjs +5 -0
  243. package/dist/runtime/plugins/toaster.d.ts +22 -0
  244. package/dist/runtime/plugins/toaster.mjs +53 -0
  245. package/dist/runtime/plugins/ui-module.d.ts +2 -0
  246. package/dist/runtime/plugins/ui-module.mjs +13 -0
  247. package/dist/runtime/shims/vue.d.ts +5 -0
  248. package/dist/runtime/tailwind.config.d.ts +182 -0
  249. package/dist/runtime/tailwind.config.mjs +196 -0
  250. package/dist/runtime/types/AntListGroupItem.type.d.ts +11 -0
  251. package/dist/runtime/types/AntListGroupItem.type.mjs +12 -0
  252. package/dist/runtime/types/AntTag.type.d.ts +8 -0
  253. package/dist/runtime/types/AntTag.type.mjs +9 -0
  254. package/dist/runtime/types/Checkbox.type.d.ts +8 -0
  255. package/dist/runtime/types/Checkbox.type.mjs +0 -0
  256. package/dist/runtime/types/NavItem.type.d.ts +9 -0
  257. package/dist/runtime/types/NavItem.type.mjs +0 -0
  258. package/dist/runtime/types/RadioButton.type.d.ts +5 -0
  259. package/dist/runtime/types/RadioButton.type.mjs +0 -0
  260. package/dist/runtime/types/Tabs.type.d.ts +6 -0
  261. package/dist/runtime/types/Tabs.type.mjs +0 -0
  262. package/dist/runtime/types/Toaster.type.d.ts +6 -0
  263. package/dist/runtime/types/Toaster.type.mjs +0 -0
  264. package/dist/runtime/types/index.d.ts +7 -0
  265. package/dist/runtime/types/index.mjs +7 -0
  266. package/dist/runtime/types.d.ts +7 -0
  267. package/dist/runtime/types.mjs +7 -0
  268. package/dist/runtime/utils/helper.d.ts +4 -0
  269. package/dist/runtime/utils/helper.mjs +12 -0
  270. package/dist/runtime/utils.d.ts +14 -0
  271. package/dist/runtime/utils.mjs +20 -0
  272. package/dist/types.d.mts +8 -0
  273. package/dist/types.d.ts +8 -0
  274. package/package.json +81 -0
  275. package/src/runtime/components/AntAccordion.vue +59 -0
  276. package/src/runtime/components/AntAccordionItem.vue +104 -0
  277. package/src/runtime/components/AntAlert.vue +137 -0
  278. package/src/runtime/components/AntDropdown.vue +100 -0
  279. package/src/runtime/components/AntIcon.vue +51 -0
  280. package/src/runtime/components/AntKeycap.vue +24 -0
  281. package/src/runtime/components/AntListGroup.vue +24 -0
  282. package/src/runtime/components/AntListGroupItem.vue +81 -0
  283. package/src/runtime/components/AntModal.vue +129 -0
  284. package/src/runtime/components/AntPagination.vue +201 -0
  285. package/src/runtime/components/AntPopover.vue +133 -0
  286. package/src/runtime/components/AntSkeleton.vue +38 -0
  287. package/src/runtime/components/AntSpinner.vue +95 -0
  288. package/src/runtime/components/AntTag.vue +79 -0
  289. package/src/runtime/components/AntToast.vue +109 -0
  290. package/src/runtime/components/AntToaster.vue +71 -0
  291. package/src/runtime/components/AntTooltip.vue +165 -0
  292. package/src/runtime/components/buttons/AntButton.vue +227 -0
  293. package/src/runtime/components/buttons/AntCreateButton.vue +32 -0
  294. package/src/runtime/components/buttons/AntDeleteButton.vue +32 -0
  295. package/src/runtime/components/buttons/AntSaveAndNewButton.vue +32 -0
  296. package/src/runtime/components/buttons/AntSaveButton.vue +31 -0
  297. package/src/runtime/components/crud/AntCrud.vue +66 -0
  298. package/src/runtime/components/crud/AntCrudDetail.vue +11 -0
  299. package/src/runtime/components/crud/AntCrudDetailActions.vue +51 -0
  300. package/src/runtime/components/crud/AntCrudDetailNav.vue +51 -0
  301. package/src/runtime/components/crud/AntCrudTableFilter.vue +120 -0
  302. package/src/runtime/components/crud/AntCrudTableNav.vue +129 -0
  303. package/src/runtime/components/dialogs/AntDeleteDialog.vue +29 -0
  304. package/src/runtime/components/dialogs/AntDialog.vue +181 -0
  305. package/src/runtime/components/form/AntCheckboxWidget/AntCheckbox.vue +167 -0
  306. package/src/runtime/components/form/AntCheckboxWidget/AntCheckboxGroup.vue +91 -0
  307. package/src/runtime/components/form/AntFormGroup.vue +21 -0
  308. package/src/runtime/components/form/AntFormGroupLabel.vue +5 -0
  309. package/src/runtime/components/form/AntNumberInput.vue +170 -0
  310. package/src/runtime/components/form/AntRadioWidget/AntRadio.vue +164 -0
  311. package/src/runtime/components/form/AntRadioWidget/AntRadioGroup.vue +80 -0
  312. package/src/runtime/components/form/AntRangeSlider.vue +101 -0
  313. package/src/runtime/components/form/AntRichTextEditor.vue +237 -0
  314. package/src/runtime/components/form/AntSearch.vue +76 -0
  315. package/src/runtime/components/form/AntSelect.vue +346 -0
  316. package/src/runtime/components/form/AntSwitch.vue +145 -0
  317. package/src/runtime/components/form/AntSwitcher.vue +200 -0
  318. package/src/runtime/components/form/AntTextInput.vue +73 -0
  319. package/src/runtime/components/form/AntTextarea.vue +170 -0
  320. package/src/runtime/components/form/AntUnitInput.vue +99 -0
  321. package/src/runtime/components/form/Elements/AntBaseInput.vue +247 -0
  322. package/src/runtime/components/form/Elements/AntDropDown.vue +160 -0
  323. package/src/runtime/components/form/Elements/AntField.vue +102 -0
  324. package/src/runtime/components/form/Elements/AntInputDescription.vue +55 -0
  325. package/src/runtime/components/form/Elements/AntInputLabel.vue +55 -0
  326. package/src/runtime/components/form/Elements/AntInputLimiter.vue +55 -0
  327. package/src/runtime/components/layouts/AntNavLeftLayout.vue +36 -0
  328. package/src/runtime/components/navbar/AntNavbar.vue +25 -0
  329. package/src/runtime/components/navbar/AntNavbarItem.vue +78 -0
  330. package/src/runtime/components/table/AntTable.vue +192 -0
  331. package/src/runtime/components/table/AntTableSortButton.vue +26 -0
  332. package/src/runtime/components/table/AntTd.vue +70 -0
  333. package/src/runtime/components/table/AntTh.vue +67 -0
  334. package/src/runtime/components/tabs/AntTabItem.vue +115 -0
  335. package/src/runtime/components/tabs/AntTabs.vue +47 -0
  336. package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +96 -0
@@ -0,0 +1,67 @@
1
+ <script setup lang="ts">
2
+
3
+ import { AntTableAlign, AntTableSortDirection, type TableHeader } from './__types/TableHeader.type';
4
+ import { computed, ref, type Ref } from 'vue';
5
+ import AntTableSortButton from './AntTableSortButton.vue';
6
+
7
+ defineEmits([ 'sort' ])
8
+ const props = defineProps<{
9
+ header: TableHeader
10
+ }>();
11
+
12
+ const headerClasses = computed(() => {
13
+ const classes = {
14
+ [props.header.headerClassList || '']: true,
15
+ 'px-2.5 py-0 h-[40px] text-sm text-neutral-100-font uppercase font-semi-bold': true,
16
+ 'text-left': !props.header.align || props.header.align === AntTableAlign.left,
17
+ 'text-center': props.header.align === AntTableAlign.center,
18
+ 'text-right': props.header.align === AntTableAlign.right,
19
+ };
20
+
21
+ return classes;
22
+ });
23
+
24
+ const cellClasses = computed(() => ({
25
+ 'flex gap-2.5 items-center': true,
26
+ 'justify-start': !props.header.align || props.header.align === AntTableAlign.left,
27
+ 'justify-center': props.header.align === AntTableAlign.center,
28
+ 'justify-end': props.header.align === AntTableAlign.right,
29
+ }))
30
+
31
+ // TODO:: Initial sort should be possible with this
32
+ const sortDirection: Ref<AntTableSortDirection> = ref(AntTableSortDirection.neutral);
33
+
34
+ function getNewSortDirection(): AntTableSortDirection {
35
+ if (sortDirection.value === AntTableSortDirection.neutral) {
36
+ sortDirection.value = AntTableSortDirection.asc;
37
+ return AntTableSortDirection.asc;
38
+ }
39
+
40
+ if (sortDirection.value === AntTableSortDirection.asc) {
41
+ sortDirection.value = AntTableSortDirection.desc;
42
+ return AntTableSortDirection.desc;
43
+ }
44
+
45
+ sortDirection.value = AntTableSortDirection.neutral;
46
+ return AntTableSortDirection.neutral;
47
+ }
48
+ </script>
49
+
50
+ <template>
51
+ <th
52
+ scope="col"
53
+ :class="headerClasses"
54
+ >
55
+ <div :class="cellClasses">
56
+ <slot name="headerContent" v-bind="header">
57
+ {{ header.title }}
58
+ </slot>
59
+
60
+ <AntTableSortButton
61
+ v-if="header.sortable"
62
+ @sort-click="$emit('sort', header, getNewSortDirection())"
63
+ :sort-direction="sortDirection"
64
+ />
65
+ </div>
66
+ </th>
67
+ </template>
@@ -0,0 +1,9 @@
1
+ import AntTable from '../AntTable.vue';
2
+ import { type Meta, type StoryObj } from '@storybook/vue3';
3
+ declare const meta: Meta<typeof AntTable>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AntTable>;
6
+ export declare const Docs: Story;
7
+ export declare const Empty: Story;
8
+ export declare const Skeleton: Story;
9
+ export declare const Loading: Story;
@@ -0,0 +1,274 @@
1
+ import AntTable from "../AntTable.vue";
2
+ import { AntTableAlign, AntTableRowTypes } from "../__types/TableHeader.type.mjs";
3
+ import { ref } from "vue";
4
+ const meta = {
5
+ title: "Components/Table",
6
+ component: AntTable,
7
+ parameters: { controls: { sort: "requiredFirst" } },
8
+ argTypes: {
9
+ headers: {
10
+ description: "List of header definitions. <br>If this value get changed from outside, because the table size should change, the change will take 350 ms to have a more smooth transition.",
11
+ table: {
12
+ type: {
13
+ summary: "TableHeader",
14
+ detail: `
15
+ type TableHeader = {
16
+ identifier: string;
17
+ headerClassList?: string;
18
+ rowClassList?: string;
19
+ title: string;
20
+ type: AntTableRowTypes;
21
+ links?: {
22
+ to: string;
23
+ label: string;
24
+ }[];
25
+ }`
26
+ }
27
+ }
28
+ },
29
+ data: {
30
+ description: "List of rows to be displayed in the table. The properties of the elements need to be equal to the identifier of a table row for it to be displayed<br>They will be updated as they are beeing moved inside the table."
31
+ },
32
+ selectedRow: {
33
+ description: "Reactive value that contains the selected row."
34
+ },
35
+ rowKey: {
36
+ description: "Prop name of a unique identifier in your data structure."
37
+ },
38
+ loading: {
39
+ description: "If true will display skeleton rows instead of an empty table if there is no data provided, otherwise it will display an overlay."
40
+ },
41
+ // Slots
42
+ afterCellContent: {
43
+ description: "Slot to add custom elements to all cells. Gets {elem, header} as property.",
44
+ table: { type: { summary: "HTML" } }
45
+ },
46
+ beforeCellContent: {
47
+ description: "Slot to add custom elements to all cells. Gets {elem, header} as property.",
48
+ table: { type: { summary: "HTML" } }
49
+ },
50
+ emptyState: {
51
+ description: "Place for custom empty states.",
52
+ table: { type: { summary: "HTML" } }
53
+ },
54
+ headerContent: {
55
+ description: "Overwrite for the default header items. Gets header as property.",
56
+ table: { type: { summary: "HTML" } }
57
+ },
58
+ headerFirstCell: {
59
+ description: "Space to add cells to the header.",
60
+ table: { type: { summary: "HTML" } }
61
+ },
62
+ headerLastCell: {
63
+ description: "Space to add cells to the header.",
64
+ table: { type: { summary: "HTML" } }
65
+ },
66
+ rowFirstCell: {
67
+ description: "Space to add cells to the beginning of a row. Be aware that you have to add headerFirstCells as well otherwise the headers will not match up to your cells."
68
+ },
69
+ rowLastCell: {
70
+ description: "Space to add cells to all rows. Gets the current element as property.",
71
+ table: { type: { summary: "HTML" } }
72
+ },
73
+ cellContent: {
74
+ description: 'Is used if the ROW_TYPE = "SLOT". Gets the current element and the header element to identifier witch cell is currently displayed.',
75
+ table: {
76
+ type: { summary: "HTML" }
77
+ }
78
+ },
79
+ showLightVersion: {
80
+ description: "Switch between the normal version, which contains all columns, and the light version, which only contains all columns with the property `lightVersion` set to `true`."
81
+ }
82
+ }
83
+ };
84
+ export default meta;
85
+ const testData = [
86
+ {
87
+ text: "Lorem ipsum dolor sit amet",
88
+ number: 28,
89
+ email: "lindsay.walton@example.com",
90
+ linkLabel: "Link here",
91
+ link: "/"
92
+ },
93
+ {
94
+ text: "Lorem ipsum dolor sit amet",
95
+ number: 54,
96
+ email: "courtney.henry@example.com",
97
+ linkLabel: "Link here",
98
+ link: "/"
99
+ },
100
+ {
101
+ text: "Lorem ipsum dolor sit amet",
102
+ number: 44,
103
+ email: "courtney.henry@example.com",
104
+ linkLabel: "Link here",
105
+ link: "/"
106
+ }
107
+ ];
108
+ for (let i = 0; i < 100; i++) {
109
+ testData.push({
110
+ text: "Lorem ipsum dolor sit amet",
111
+ number: 32,
112
+ email: "courtney.henry@example.com",
113
+ linkLabel: "Link here",
114
+ link: "/"
115
+ });
116
+ }
117
+ export const Docs = {
118
+ render: (args) => ({
119
+ components: { AntTable },
120
+ setup() {
121
+ const selected = ref();
122
+ return { args, selected };
123
+ },
124
+ template: `
125
+ <div class="h-96 border border-dashed border-neutral-300">
126
+ <AntTable v-bind="args" v-model="selected">
127
+ <template #emptyState>
128
+ </template>
129
+ </AntTable>
130
+ </div>
131
+ `
132
+ }),
133
+ args: {
134
+ headers: [
135
+ {
136
+ title: "Text",
137
+ identifier: "text",
138
+ type: AntTableRowTypes.text,
139
+ sortable: true,
140
+ lightVersion: true
141
+ },
142
+ {
143
+ title: "E-Mail",
144
+ identifier: "email",
145
+ rowClassList: "",
146
+ type: AntTableRowTypes.text
147
+ },
148
+ {
149
+ title: "Number",
150
+ identifier: "number",
151
+ type: AntTableRowTypes.text,
152
+ align: AntTableAlign.right,
153
+ lightVersion: true
154
+ },
155
+ {
156
+ title: "Link",
157
+ identifier: "linkLabel",
158
+ toProp: "link",
159
+ type: AntTableRowTypes.link
160
+ }
161
+ ],
162
+ data: testData
163
+ }
164
+ };
165
+ export const Empty = {
166
+ render: Docs.render,
167
+ args: {
168
+ headers: [
169
+ {
170
+ title: "Name",
171
+ identifier: "name",
172
+ headerClassList: "font-bold",
173
+ rowClassList: "",
174
+ type: AntTableRowTypes.text,
175
+ align: AntTableAlign.center,
176
+ sortable: true
177
+ },
178
+ {
179
+ title: "Title",
180
+ identifier: "title",
181
+ headerClassList: "",
182
+ rowClassList: "",
183
+ type: AntTableRowTypes.text
184
+ },
185
+ {
186
+ title: "E-Mail",
187
+ identifier: "email",
188
+ rowClassList: "",
189
+ type: AntTableRowTypes.text
190
+ },
191
+ {
192
+ title: "Link",
193
+ identifier: "linkLabel",
194
+ toProp: "link",
195
+ type: AntTableRowTypes.link
196
+ }
197
+ ],
198
+ data: []
199
+ }
200
+ };
201
+ export const Skeleton = {
202
+ render: Docs.render,
203
+ args: {
204
+ loading: true,
205
+ headers: [
206
+ {
207
+ title: "Name",
208
+ identifier: "name",
209
+ headerClassList: "font-bold",
210
+ rowClassList: "",
211
+ type: AntTableRowTypes.text,
212
+ align: AntTableAlign.center,
213
+ sortable: true
214
+ },
215
+ {
216
+ title: "Title",
217
+ identifier: "title",
218
+ headerClassList: "",
219
+ rowClassList: "",
220
+ type: AntTableRowTypes.text
221
+ },
222
+ {
223
+ title: "E-Mail",
224
+ identifier: "email",
225
+ rowClassList: "",
226
+ type: AntTableRowTypes.text
227
+ },
228
+ {
229
+ title: "Link",
230
+ identifier: "linkLabel",
231
+ toProp: "link",
232
+ type: AntTableRowTypes.link
233
+ }
234
+ ],
235
+ data: []
236
+ }
237
+ };
238
+ export const Loading = {
239
+ render: Docs.render,
240
+ args: {
241
+ loading: true,
242
+ headers: [
243
+ {
244
+ title: "Name",
245
+ identifier: "name",
246
+ headerClassList: "font-bold",
247
+ rowClassList: "",
248
+ type: AntTableRowTypes.text,
249
+ align: AntTableAlign.center,
250
+ sortable: true
251
+ },
252
+ {
253
+ title: "Title",
254
+ identifier: "title",
255
+ headerClassList: "",
256
+ rowClassList: "",
257
+ type: AntTableRowTypes.text
258
+ },
259
+ {
260
+ title: "E-Mail",
261
+ identifier: "email",
262
+ rowClassList: "",
263
+ type: AntTableRowTypes.text
264
+ },
265
+ {
266
+ title: "Link",
267
+ identifier: "linkLabel",
268
+ toProp: "link",
269
+ type: AntTableRowTypes.link
270
+ }
271
+ ],
272
+ data: testData
273
+ }
274
+ };
@@ -0,0 +1,31 @@
1
+ export declare enum AntTableRowTypes {
2
+ text = "text",
3
+ html = "html",
4
+ link = "link",
5
+ slot = "slot"
6
+ }
7
+ export declare enum AntTableAlign {
8
+ left = "left",
9
+ center = "center",
10
+ right = "right"
11
+ }
12
+ export declare enum AntTableSortDirection {
13
+ asc = "asc",
14
+ desc = "desc",
15
+ neutral = "neutral"
16
+ }
17
+ export type TableHeader = {
18
+ identifier: string;
19
+ title?: string;
20
+ type: AntTableRowTypes;
21
+ sortable?: boolean;
22
+ sort?: (a: unknown, b: unknown, direction: AntTableSortDirection) => number;
23
+ headerClassList?: string;
24
+ rowClassList?: string;
25
+ align?: AntTableAlign;
26
+ toProp?: string;
27
+ /**
28
+ * Emit if the column should be shown on light table version.
29
+ */
30
+ lightVersion?: boolean;
31
+ };
@@ -0,0 +1,19 @@
1
+ export var AntTableRowTypes = /* @__PURE__ */ ((AntTableRowTypes2) => {
2
+ AntTableRowTypes2["text"] = "text";
3
+ AntTableRowTypes2["html"] = "html";
4
+ AntTableRowTypes2["link"] = "link";
5
+ AntTableRowTypes2["slot"] = "slot";
6
+ return AntTableRowTypes2;
7
+ })(AntTableRowTypes || {});
8
+ export var AntTableAlign = /* @__PURE__ */ ((AntTableAlign2) => {
9
+ AntTableAlign2["left"] = "left";
10
+ AntTableAlign2["center"] = "center";
11
+ AntTableAlign2["right"] = "right";
12
+ return AntTableAlign2;
13
+ })(AntTableAlign || {});
14
+ export var AntTableSortDirection = /* @__PURE__ */ ((AntTableSortDirection2) => {
15
+ AntTableSortDirection2["asc"] = "asc";
16
+ AntTableSortDirection2["desc"] = "desc";
17
+ AntTableSortDirection2["neutral"] = "neutral";
18
+ return AntTableSortDirection2;
19
+ })(AntTableSortDirection || {});
@@ -0,0 +1,115 @@
1
+ <script setup lang="ts">
2
+ import AntIcon from '../AntIcon.vue';
3
+ import {
4
+ faExclamationCircle,
5
+ faExclamationTriangle,
6
+ type IconDefinition
7
+ } from '@fortawesome/free-solid-svg-icons';
8
+ import {computed} from 'vue';
9
+ import {type RouteLocationRaw, useRoute} from 'vue-router';
10
+ import {ColorType} from './__types/AntTabItem.types';
11
+
12
+ const props = withDefaults(defineProps<{
13
+ label: string;
14
+ active: boolean;
15
+ colorType?: ColorType
16
+ showIcon?: boolean;
17
+ icon?: IconDefinition;
18
+ to?: RouteLocationRaw;
19
+ expanded?: boolean;
20
+ }>(), {
21
+ colorType: ColorType.base,
22
+ showIcon: true,
23
+ });
24
+ const route = useRoute();
25
+
26
+ const icons = {
27
+ [ColorType.base]: null,
28
+ [ColorType.danger]: faExclamationCircle,
29
+ [ColorType.warning]: faExclamationTriangle,
30
+ };
31
+ const iconRight = computed<IconDefinition | null>(() => icons[props.colorType]);
32
+ const _active = computed<boolean>(() => {
33
+ if (typeof props.to === 'string') {
34
+ return route.path === props.to;
35
+ }
36
+
37
+ if (typeof props.to === 'object' && props.to?.name !== undefined) {
38
+ return route.name === props.to.name;
39
+ }
40
+
41
+ return props.active;
42
+ });
43
+ const containerClasses = computed(() => {
44
+ const variants: Record<ColorType, string> = {
45
+ [ColorType.base]: 'hover:bg-neutral-100',
46
+ [ColorType.warning]: 'hover:bg-warning-100',
47
+ [ColorType.danger]: 'hover:bg-danger-100',
48
+ };
49
+ const activeVariants: Record<ColorType, string> = {
50
+ [ColorType.base]: 'text-primary-500 border-primary-500',
51
+ [ColorType.warning]: 'text-warning-500 border-warning-500',
52
+ [ColorType.danger]: 'text-danger-500 border-danger-500',
53
+ };
54
+ const notActiveVariants: Record<ColorType, string> = {
55
+ [ColorType.base]: 'text-neutral-50-font border-neutral-50',
56
+ [ColorType.warning]: 'text-warning-500',
57
+ [ColorType.danger]: 'text-danger-500',
58
+ };
59
+
60
+ return {
61
+ 'p-2.5 hover:cursor-pointer text-center flex items-center justify-center gap-2.5 bg-neutral-50 transition-[background-color] relative': true,
62
+ 'grow': props.expanded,
63
+ [variants[props.colorType]]: true,
64
+ [activeVariants[props.colorType]]: _active.value,
65
+ [notActiveVariants[props.colorType]]: !_active.value,
66
+ }
67
+ });
68
+ const borderBoxClasses = computed(() => {
69
+ const variants: Record<ColorType, string> = {
70
+ [ColorType.base]: 'bg-primary-500',
71
+ [ColorType.warning]: 'bg-warning-500',
72
+ [ColorType.danger]: 'bg-danger-500',
73
+ };
74
+
75
+ return {
76
+ 'h-[2px] w-full bg-danger-500 absolute bottom-0': true,
77
+ [variants[props.colorType]]: true,
78
+ }
79
+ });
80
+ const iconColor = computed(() => {
81
+ const variants = {
82
+ [ColorType.base]: 'text-neutral-100-font',
83
+ [ColorType.warning]: 'text-warning-500',
84
+ [ColorType.danger]: 'text-danger-500',
85
+ };
86
+
87
+ return variants[props.colorType];
88
+ });
89
+ </script>
90
+
91
+ <template>
92
+ <component
93
+ :is="to !== undefined ? 'router-link' : 'div'"
94
+ :to="to"
95
+ :class="containerClasses"
96
+ >
97
+ <slot name="iconLeft">
98
+ <AntIcon
99
+ v-if="icon"
100
+ :icon="icon"
101
+ :color="_active ? 'text-primary-500' : 'text-neutral-50-font'"
102
+ />
103
+ </slot>
104
+
105
+ <slot>{{ label }}</slot>
106
+
107
+ <AntIcon
108
+ v-if="iconRight && showIcon"
109
+ :icon="iconRight"
110
+ :color="iconColor"
111
+ />
112
+
113
+ <div v-if="_active" :class="borderBoxClasses" />
114
+ </component>
115
+ </template>
@@ -0,0 +1,47 @@
1
+ <script setup lang="ts">
2
+ import AntTabItem from './AntTabItem.vue';
3
+ import {type TabItem} from './__types/AntTabItem.types';
4
+ import {useVModel} from '@vueuse/core';
5
+ import {computed} from 'vue';
6
+
7
+ const emits = defineEmits(['update:modelValue']);
8
+ const props = withDefaults(defineProps<{
9
+ modelValue?: string;
10
+ tabItems?: TabItem[];
11
+ expanded?: boolean;
12
+ }>(), {
13
+ expanded: false,
14
+ });
15
+
16
+ const currentActive = useVModel(props, 'modelValue', emits);
17
+ const containerClasses = computed(() => ({
18
+ 'flex items-stretch bg-neutral-300 gap-px transition-all h-full': true,
19
+ 'w-fit': !props.expanded,
20
+ 'w-full': props.expanded,
21
+ }));
22
+
23
+ function clickTab(tabItem: TabItem) {
24
+ if (tabItem.clickHandler) {
25
+ tabItem.clickHandler();
26
+ }
27
+
28
+ currentActive.value = tabItem.id;
29
+ }
30
+ </script>
31
+
32
+ <template>
33
+ <div :class="containerClasses">
34
+ <slot>
35
+ <AntTabItem
36
+ v-for="(tabItem, index) in tabItems"
37
+ :key="`tab-item-${index}`"
38
+ v-bind="tabItem"
39
+ @click="clickTab(tabItem)"
40
+ :active="currentActive === tabItem.id"
41
+ :expanded="expanded"
42
+ >
43
+ <slot name="content" v-bind="{item: tabItem, isActive: currentActive === tabItem.id}"></slot>
44
+ </AntTabItem>
45
+ </slot>
46
+ </div>
47
+ </template>
@@ -0,0 +1,6 @@
1
+ import { type Meta, type StoryObj } from '@storybook/vue3';
2
+ import AntTabItem from '../AntTabItem.vue';
3
+ declare const meta: Meta<typeof AntTabItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AntTabItem>;
6
+ export declare const Docs: Story;
@@ -0,0 +1,32 @@
1
+ import AntTabItem from "../AntTabItem.vue";
2
+ import { ColorType } from "../__types/AntTabItem.types.mjs";
3
+ const meta = {
4
+ title: "Components/Tab Item",
5
+ component: AntTabItem,
6
+ parameters: { controls: { sort: "requiredFirst" } },
7
+ decorators: [() => ({ template: '<div class="border border-neutral-300 border-dashed"><story /></div>' })],
8
+ argTypes: {
9
+ showIcon: {
10
+ control: "boolean",
11
+ description: "Some InputColorTypes can have an icon. Control with this property if it gets shown or not."
12
+ },
13
+ colorType: {
14
+ control: { type: "select" },
15
+ options: Object.values(ColorType)
16
+ }
17
+ }
18
+ };
19
+ export default meta;
20
+ export const Docs = {
21
+ render: (args) => ({
22
+ components: { AntTabItem },
23
+ setup() {
24
+ return { args };
25
+ },
26
+ template: '<AntTabItem v-bind="args"/>'
27
+ }),
28
+ args: {
29
+ label: "First tab",
30
+ active: false
31
+ }
32
+ };
@@ -0,0 +1,9 @@
1
+ import { type Meta, type StoryObj } from '@storybook/vue3';
2
+ import AntTabs from '../AntTabs.vue';
3
+ declare const meta: Meta<typeof AntTabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AntTabs>;
6
+ export declare const Docs: Story;
7
+ export declare const FixedHeight: Story;
8
+ export declare const DifferentStates: Story;
9
+ export declare const Overview: Story;