@antify/ui-module 1.7.2 → 1.8.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 (364) hide show
  1. package/README.md +43 -52
  2. package/dist/module.d.mts +1 -259
  3. package/dist/module.d.ts +1 -259
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +97 -430
  6. package/dist/runtime/composables/useUiClient.d.ts +2 -2
  7. package/dist/runtime/composables/useUiClient.mjs +1 -2
  8. package/dist/runtime/plugins/ui-module.mjs +3 -2
  9. package/dist/runtime/tailwind.config.d.ts +2 -3
  10. package/dist/runtime/tailwind.config.mjs +20 -204
  11. package/dist/types.d.mts +1 -1
  12. package/dist/types.d.ts +1 -1
  13. package/package.json +10 -40
  14. package/dist/runtime/components/AntAccordion.vue +0 -64
  15. package/dist/runtime/components/AntAccordionItem.vue +0 -81
  16. package/dist/runtime/components/AntAlert.vue +0 -146
  17. package/dist/runtime/components/AntCard.vue +0 -34
  18. package/dist/runtime/components/AntContent.vue +0 -16
  19. package/dist/runtime/components/AntDropdown.vue +0 -79
  20. package/dist/runtime/components/AntIcon.vue +0 -56
  21. package/dist/runtime/components/AntKeycap.vue +0 -45
  22. package/dist/runtime/components/AntListGroup.vue +0 -24
  23. package/dist/runtime/components/AntListGroupItem.vue +0 -83
  24. package/dist/runtime/components/AntModal.vue +0 -88
  25. package/dist/runtime/components/AntPagination.vue +0 -206
  26. package/dist/runtime/components/AntPopover.vue +0 -114
  27. package/dist/runtime/components/AntSkeleton.vue +0 -38
  28. package/dist/runtime/components/AntSpinner.vue +0 -101
  29. package/dist/runtime/components/AntTag.vue +0 -114
  30. package/dist/runtime/components/AntToast.vue +0 -119
  31. package/dist/runtime/components/AntToaster.vue +0 -51
  32. package/dist/runtime/components/AntTooltip.vue +0 -189
  33. package/dist/runtime/components/Main.mdx +0 -11
  34. package/dist/runtime/components/Main.stories.d.ts +0 -7
  35. package/dist/runtime/components/Main.stories.mjs +0 -8
  36. package/dist/runtime/components/__stories/AntAccordion.stories.d.ts +0 -9
  37. package/dist/runtime/components/__stories/AntAccordion.stories.mjs +0 -101
  38. package/dist/runtime/components/__stories/AntAlert.stories.d.ts +0 -11
  39. package/dist/runtime/components/__stories/AntAlert.stories.mjs +0 -81
  40. package/dist/runtime/components/__stories/AntCard.stories.d.ts +0 -7
  41. package/dist/runtime/components/__stories/AntCard.stories.mjs +0 -87
  42. package/dist/runtime/components/__stories/AntContent.stories.d.ts +0 -6
  43. package/dist/runtime/components/__stories/AntContent.stories.mjs +0 -26
  44. package/dist/runtime/components/__stories/AntDropdown.stories.d.ts +0 -6
  45. package/dist/runtime/components/__stories/AntDropdown.stories.mjs +0 -52
  46. package/dist/runtime/components/__stories/AntIcon.stories.d.ts +0 -8
  47. package/dist/runtime/components/__stories/AntIcon.stories.mjs +0 -93
  48. package/dist/runtime/components/__stories/AntKeycap.stories.d.ts +0 -9
  49. package/dist/runtime/components/__stories/AntKeycap.stories.mjs +0 -69
  50. package/dist/runtime/components/__stories/AntListGroup.stories.d.ts +0 -7
  51. package/dist/runtime/components/__stories/AntListGroup.stories.mjs +0 -36
  52. package/dist/runtime/components/__stories/AntListGroupItem.stories.d.ts +0 -10
  53. package/dist/runtime/components/__stories/AntListGroupItem.stories.mjs +0 -62
  54. package/dist/runtime/components/__stories/AntModal.stories.d.ts +0 -7
  55. package/dist/runtime/components/__stories/AntModal.stories.mjs +0 -78
  56. package/dist/runtime/components/__stories/AntPagination.stories.d.ts +0 -8
  57. package/dist/runtime/components/__stories/AntPagination.stories.mjs +0 -39
  58. package/dist/runtime/components/__stories/AntPopover.stories.d.ts +0 -6
  59. package/dist/runtime/components/__stories/AntPopover.stories.mjs +0 -47
  60. package/dist/runtime/components/__stories/AntSkeleton.stories.d.ts +0 -8
  61. package/dist/runtime/components/__stories/AntSkeleton.stories.mjs +0 -43
  62. package/dist/runtime/components/__stories/AntSpinner.stories.d.ts +0 -6
  63. package/dist/runtime/components/__stories/AntSpinner.stories.mjs +0 -34
  64. package/dist/runtime/components/__stories/AntTag.stories.d.ts +0 -7
  65. package/dist/runtime/components/__stories/AntTag.stories.mjs +0 -43
  66. package/dist/runtime/components/__stories/AntToast.stories.d.ts +0 -8
  67. package/dist/runtime/components/__stories/AntToast.stories.mjs +0 -66
  68. package/dist/runtime/components/__stories/AntToaster.stories.d.ts +0 -34
  69. package/dist/runtime/components/__stories/AntToaster.stories.mjs +0 -42
  70. package/dist/runtime/components/__stories/AntTooltip.stories.d.ts +0 -16
  71. package/dist/runtime/components/__stories/AntTooltip.stories.mjs +0 -241
  72. package/dist/runtime/components/__types/AntAccordion.types.d.ts +0 -4
  73. package/dist/runtime/components/__types/AntAccordion.types.mjs +0 -5
  74. package/dist/runtime/components/__types/AntIcon.types.d.ts +0 -8
  75. package/dist/runtime/components/__types/AntIcon.types.mjs +0 -9
  76. package/dist/runtime/components/__types/AntKeycap.types.d.ts +0 -4
  77. package/dist/runtime/components/__types/AntKeycap.types.mjs +0 -5
  78. package/dist/runtime/components/__types/AntListGroupItem.types.d.ts +0 -9
  79. package/dist/runtime/components/__types/AntListGroupItem.types.mjs +0 -10
  80. package/dist/runtime/components/__types/AntSpinner.types.d.ts +0 -10
  81. package/dist/runtime/components/__types/AntSpinner.types.mjs +0 -11
  82. package/dist/runtime/components/__types/AntTag.types.d.ts +0 -17
  83. package/dist/runtime/components/__types/AntTag.types.mjs +0 -19
  84. package/dist/runtime/components/__types/AntToaster.types.d.ts +0 -8
  85. package/dist/runtime/components/__types/AntToaster.types.mjs +0 -0
  86. package/dist/runtime/components/__types/index.d.ts +0 -7
  87. package/dist/runtime/components/__types/index.mjs +0 -7
  88. package/dist/runtime/components/buttons/AntActionButton.vue +0 -74
  89. package/dist/runtime/components/buttons/AntButton.vue +0 -257
  90. package/dist/runtime/components/buttons/AntCreateButton.vue +0 -54
  91. package/dist/runtime/components/buttons/AntDeleteButton.vue +0 -54
  92. package/dist/runtime/components/buttons/AntDuplicateButton.vue +0 -54
  93. package/dist/runtime/components/buttons/AntEditButton.vue +0 -54
  94. package/dist/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
  95. package/dist/runtime/components/buttons/AntSaveButton.vue +0 -55
  96. package/dist/runtime/components/buttons/__stories/AntActionButton.stories.d.ts +0 -11
  97. package/dist/runtime/components/buttons/__stories/AntActionButton.stories.mjs +0 -86
  98. package/dist/runtime/components/buttons/__stories/AntButton.stories.d.ts +0 -16
  99. package/dist/runtime/components/buttons/__stories/AntButton.stories.mjs +0 -313
  100. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.d.ts +0 -12
  101. package/dist/runtime/components/buttons/__stories/AntCreateButton.stories.mjs +0 -76
  102. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.d.ts +0 -12
  103. package/dist/runtime/components/buttons/__stories/AntDeleteButton.stories.mjs +0 -76
  104. package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.d.ts +0 -12
  105. package/dist/runtime/components/buttons/__stories/AntDuplicateButton.stories.mjs +0 -76
  106. package/dist/runtime/components/buttons/__stories/AntEditButton.stories.d.ts +0 -12
  107. package/dist/runtime/components/buttons/__stories/AntEditButton.stories.mjs +0 -76
  108. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.d.ts +0 -12
  109. package/dist/runtime/components/buttons/__stories/AntSaveAndNewButton.stories.mjs +0 -76
  110. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.d.ts +0 -12
  111. package/dist/runtime/components/buttons/__stories/AntSaveButton.stories.mjs +0 -76
  112. package/dist/runtime/components/buttons/__types/AntButton.types.d.ts +0 -4
  113. package/dist/runtime/components/buttons/__types/AntButton.types.mjs +0 -5
  114. package/dist/runtime/components/buttons/__types/index.d.ts +0 -1
  115. package/dist/runtime/components/buttons/__types/index.mjs +0 -1
  116. package/dist/runtime/components/crud/AntCrud.vue +0 -45
  117. package/dist/runtime/components/crud/AntCrudDetail.vue +0 -11
  118. package/dist/runtime/components/crud/AntCrudDetailActions.vue +0 -58
  119. package/dist/runtime/components/crud/AntCrudDetailNav.vue +0 -64
  120. package/dist/runtime/components/crud/AntCrudTableFilter.vue +0 -122
  121. package/dist/runtime/components/crud/AntCrudTableNav.vue +0 -149
  122. package/dist/runtime/components/crud/__stories/AntCrud.stories.d.ts +0 -6
  123. package/dist/runtime/components/crud/__stories/AntCrud.stories.mjs +0 -126
  124. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.d.ts +0 -7
  125. package/dist/runtime/components/crud/__stories/AntCrudDetail.stories.mjs +0 -80
  126. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.d.ts +0 -6
  127. package/dist/runtime/components/crud/__stories/AntCrudDetailActions.stories.mjs +0 -25
  128. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.d.ts +0 -6
  129. package/dist/runtime/components/crud/__stories/AntCrudDetailNav.stories.mjs +0 -41
  130. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.d.ts +0 -6
  131. package/dist/runtime/components/crud/__stories/AntCrudTableFilter.stories.mjs +0 -25
  132. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.d.ts +0 -8
  133. package/dist/runtime/components/crud/__stories/AntCrudTableNav.stories.mjs +0 -56
  134. package/dist/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
  135. package/dist/runtime/components/dialogs/AntDialog.vue +0 -147
  136. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.d.ts +0 -6
  137. package/dist/runtime/components/dialogs/__stories/AndDeleteDialog.stories.mjs +0 -32
  138. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.d.ts +0 -6
  139. package/dist/runtime/components/dialogs/__stories/AntDialog.stories.mjs +0 -60
  140. package/dist/runtime/components/forms/AntField.vue +0 -123
  141. package/dist/runtime/components/forms/AntFormGroup.vue +0 -36
  142. package/dist/runtime/components/forms/AntFormGroupLabel.vue +0 -5
  143. package/dist/runtime/components/forms/__stories/AntField.stories.d.ts +0 -6
  144. package/dist/runtime/components/forms/__stories/AntField.stories.mjs +0 -80
  145. package/dist/runtime/components/forms/__stories/AntFormGroup.stories.d.ts +0 -6
  146. package/dist/runtime/components/forms/__stories/AntFormGroup.stories.mjs +0 -33
  147. package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.d.ts +0 -6
  148. package/dist/runtime/components/forms/__stories/AntFormGroupLabel.stories.mjs +0 -20
  149. package/dist/runtime/components/index.d.ts +0 -62
  150. package/dist/runtime/components/index.mjs +0 -124
  151. package/dist/runtime/components/inputs/AntCheckbox.vue +0 -183
  152. package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  153. package/dist/runtime/components/inputs/AntDateInput.vue +0 -97
  154. package/dist/runtime/components/inputs/AntNumberInput.vue +0 -152
  155. package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
  156. package/dist/runtime/components/inputs/AntRadio.vue +0 -192
  157. package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -116
  158. package/dist/runtime/components/inputs/AntRangeSlider.vue +0 -101
  159. package/dist/runtime/components/inputs/AntRichTextEditor.vue +0 -237
  160. package/dist/runtime/components/inputs/AntSearch.vue +0 -72
  161. package/dist/runtime/components/inputs/AntSelect.vue +0 -311
  162. package/dist/runtime/components/inputs/AntSwitch.vue +0 -192
  163. package/dist/runtime/components/inputs/AntSwitcher.vue +0 -196
  164. package/dist/runtime/components/inputs/AntTagInput.vue +0 -331
  165. package/dist/runtime/components/inputs/AntTextInput.vue +0 -72
  166. package/dist/runtime/components/inputs/AntTextarea.vue +0 -185
  167. package/dist/runtime/components/inputs/AntUnitInput.vue +0 -93
  168. package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -256
  169. package/dist/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
  170. package/dist/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
  171. package/dist/runtime/components/inputs/Elements/AntInputLabel.vue +0 -65
  172. package/dist/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
  173. package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.d.ts +0 -11
  174. package/dist/runtime/components/inputs/Elements/__stories/AntBaseInput.stories.mjs +0 -234
  175. package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.d.ts +0 -6
  176. package/dist/runtime/components/inputs/Elements/__stories/AntInputDescription.stories.mjs +0 -34
  177. package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.d.ts +0 -7
  178. package/dist/runtime/components/inputs/Elements/__stories/AntInputLabel.stories.mjs +0 -46
  179. package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.d.ts +0 -6
  180. package/dist/runtime/components/inputs/Elements/__stories/AntInputLimiter.stories.mjs +0 -37
  181. package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.d.ts +0 -17
  182. package/dist/runtime/components/inputs/Elements/__types/AntBaseInput.types.mjs +0 -18
  183. package/dist/runtime/components/inputs/Elements/__types/index.d.ts +0 -1
  184. package/dist/runtime/components/inputs/Elements/__types/index.mjs +0 -1
  185. package/dist/runtime/components/inputs/Elements/index.d.ts +0 -6
  186. package/dist/runtime/components/inputs/Elements/index.mjs +0 -12
  187. package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.d.ts +0 -8
  188. package/dist/runtime/components/inputs/__stories/AntCheckbox.stories.mjs +0 -341
  189. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
  190. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -85
  191. package/dist/runtime/components/inputs/__stories/AntDateInput.stories.d.ts +0 -8
  192. package/dist/runtime/components/inputs/__stories/AntDateInput.stories.mjs +0 -193
  193. package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.d.ts +0 -9
  194. package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -106
  195. package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.d.ts +0 -8
  196. package/dist/runtime/components/inputs/__stories/AntPasswordInput.stories.mjs +0 -156
  197. package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.d.ts +0 -8
  198. package/dist/runtime/components/inputs/__stories/AntRadioGroup.stories.mjs +0 -243
  199. package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.d.ts +0 -7
  200. package/dist/runtime/components/inputs/__stories/AntRangeSlider.stories.mjs +0 -67
  201. package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.d.ts +0 -0
  202. package/dist/runtime/components/inputs/__stories/AntRichTextEditor.stories-old.mjs +0 -0
  203. package/dist/runtime/components/inputs/__stories/AntSearch.stories.d.ts +0 -7
  204. package/dist/runtime/components/inputs/__stories/AntSearch.stories.mjs +0 -103
  205. package/dist/runtime/components/inputs/__stories/AntSelect.stories.d.ts +0 -13
  206. package/dist/runtime/components/inputs/__stories/AntSelect.stories.mjs +0 -255
  207. package/dist/runtime/components/inputs/__stories/AntSwitch.stories.d.ts +0 -8
  208. package/dist/runtime/components/inputs/__stories/AntSwitch.stories.mjs +0 -344
  209. package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.d.ts +0 -8
  210. package/dist/runtime/components/inputs/__stories/AntSwitcher.stories.mjs +0 -235
  211. package/dist/runtime/components/inputs/__stories/AntTagInput.stories.d.ts +0 -9
  212. package/dist/runtime/components/inputs/__stories/AntTagInput.stories.mjs +0 -228
  213. package/dist/runtime/components/inputs/__stories/AntTextInput.stories.d.ts +0 -9
  214. package/dist/runtime/components/inputs/__stories/AntTextInput.stories.mjs +0 -225
  215. package/dist/runtime/components/inputs/__stories/AntTextarea.stories.d.ts +0 -9
  216. package/dist/runtime/components/inputs/__stories/AntTextarea.stories.mjs +0 -144
  217. package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.d.ts +0 -9
  218. package/dist/runtime/components/inputs/__stories/AntUnitInput.stories.mjs +0 -116
  219. package/dist/runtime/components/inputs/__types/AntCheckbox.types.d.ts +0 -10
  220. package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -5
  221. package/dist/runtime/components/inputs/__types/AntDateInput.types.d.ts +0 -7
  222. package/dist/runtime/components/inputs/__types/AntDateInput.types.mjs +0 -8
  223. package/dist/runtime/components/inputs/__types/AntRadio.types.d.ts +0 -13
  224. package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -5
  225. package/dist/runtime/components/inputs/__types/AntSelect.types.d.ts +0 -4
  226. package/dist/runtime/components/inputs/__types/AntSelect.types.mjs +0 -0
  227. package/dist/runtime/components/inputs/__types/AntSwitcher.types.d.ts +0 -4
  228. package/dist/runtime/components/inputs/__types/AntSwitcher.types.mjs +0 -0
  229. package/dist/runtime/components/inputs/__types/AntTagInput.types.d.ts +0 -5
  230. package/dist/runtime/components/inputs/__types/AntTagInput.types.mjs +0 -6
  231. package/dist/runtime/components/inputs/__types/AntTextInput.types.d.ts +0 -6
  232. package/dist/runtime/components/inputs/__types/AntTextInput.types.mjs +0 -7
  233. package/dist/runtime/components/inputs/__types/index.d.ts +0 -7
  234. package/dist/runtime/components/inputs/__types/index.mjs +0 -7
  235. package/dist/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
  236. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.d.ts +0 -7
  237. package/dist/runtime/components/layouts/__stories/AntNavLeftLayout.stories.mjs +0 -68
  238. package/dist/runtime/components/navbar/AntNavbar.vue +0 -25
  239. package/dist/runtime/components/navbar/AntNavbarItem.vue +0 -78
  240. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.d.ts +0 -6
  241. package/dist/runtime/components/navbar/__stories/AntNavbar.stories.mjs +0 -66
  242. package/dist/runtime/components/navbar/__types/NavbarItem.types.d.ts +0 -10
  243. package/dist/runtime/components/navbar/__types/NavbarItem.types.mjs +0 -0
  244. package/dist/runtime/components/navbar/__types/index.d.ts +0 -1
  245. package/dist/runtime/components/navbar/__types/index.mjs +0 -1
  246. package/dist/runtime/components/table/AntTable.vue +0 -218
  247. package/dist/runtime/components/table/AntTableSortButton.vue +0 -48
  248. package/dist/runtime/components/table/AntTd.vue +0 -81
  249. package/dist/runtime/components/table/AntTh.vue +0 -74
  250. package/dist/runtime/components/table/__stories/AntTable.stories.d.ts +0 -9
  251. package/dist/runtime/components/table/__stories/AntTable.stories.mjs +0 -273
  252. package/dist/runtime/components/table/__types/TableHeader.types.d.ts +0 -36
  253. package/dist/runtime/components/table/__types/TableHeader.types.mjs +0 -25
  254. package/dist/runtime/components/table/__types/index.d.ts +0 -1
  255. package/dist/runtime/components/table/__types/index.mjs +0 -1
  256. package/dist/runtime/components/tabs/AntTabItem.vue +0 -118
  257. package/dist/runtime/components/tabs/AntTabs.vue +0 -47
  258. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.d.ts +0 -6
  259. package/dist/runtime/components/tabs/__stories/AntTabItem.stories.mjs +0 -32
  260. package/dist/runtime/components/tabs/__stories/AntTabs.stories.d.ts +0 -9
  261. package/dist/runtime/components/tabs/__stories/AntTabs.stories.mjs +0 -173
  262. package/dist/runtime/components/tabs/__types/AntTabItem.types.d.ts +0 -17
  263. package/dist/runtime/components/tabs/__types/AntTabItem.types.mjs +0 -6
  264. package/dist/runtime/components/tabs/__types/index.d.ts +0 -1
  265. package/dist/runtime/components/tabs/__types/index.mjs +0 -1
  266. package/dist/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -92
  267. package/dist/runtime/composables/useUi.d.ts +0 -20
  268. package/dist/runtime/composables/useUi.mjs +0 -31
  269. package/dist/runtime/composables/useValidator.d.ts +0 -1
  270. package/dist/runtime/composables/useValidator.mjs +0 -1
  271. package/dist/runtime/enums/Direction.enum.d.ts +0 -4
  272. package/dist/runtime/enums/Direction.enum.mjs +0 -5
  273. package/dist/runtime/enums/Grouped.enum.d.ts +0 -6
  274. package/dist/runtime/enums/Grouped.enum.mjs +0 -7
  275. package/dist/runtime/enums/Position.enum.d.ts +0 -12
  276. package/dist/runtime/enums/Position.enum.mjs +0 -14
  277. package/dist/runtime/enums/Size.enum.d.ts +0 -7
  278. package/dist/runtime/enums/Size.enum.mjs +0 -8
  279. package/dist/runtime/enums/State.enum.d.ts +0 -16
  280. package/dist/runtime/enums/State.enum.mjs +0 -18
  281. package/dist/runtime/enums/index.d.ts +0 -5
  282. package/dist/runtime/enums/index.mjs +0 -5
  283. package/dist/runtime/env.d.ts +0 -8
  284. package/dist/runtime/handler.d.ts +0 -1
  285. package/dist/runtime/handler.mjs +0 -5
  286. package/dist/runtime/plugins/toaster.d.ts +0 -22
  287. package/dist/runtime/plugins/toaster.mjs +0 -53
  288. package/dist/runtime/shims/vue.d.ts +0 -5
  289. package/dist/runtime/types.d.ts +0 -8
  290. package/dist/runtime/types.mjs +0 -8
  291. package/dist/runtime/utils/helper.d.ts +0 -4
  292. package/dist/runtime/utils/helper.mjs +0 -12
  293. package/dist/runtime/utils.d.ts +0 -20
  294. package/dist/runtime/utils.mjs +0 -41
  295. package/src/runtime/components/AntAccordion.vue +0 -64
  296. package/src/runtime/components/AntAccordionItem.vue +0 -119
  297. package/src/runtime/components/AntAlert.vue +0 -146
  298. package/src/runtime/components/AntCard.vue +0 -34
  299. package/src/runtime/components/AntContent.vue +0 -16
  300. package/src/runtime/components/AntDropdown.vue +0 -100
  301. package/src/runtime/components/AntIcon.vue +0 -56
  302. package/src/runtime/components/AntKeycap.vue +0 -45
  303. package/src/runtime/components/AntListGroup.vue +0 -24
  304. package/src/runtime/components/AntListGroupItem.vue +0 -83
  305. package/src/runtime/components/AntModal.vue +0 -130
  306. package/src/runtime/components/AntPagination.vue +0 -206
  307. package/src/runtime/components/AntPopover.vue +0 -135
  308. package/src/runtime/components/AntSkeleton.vue +0 -38
  309. package/src/runtime/components/AntSpinner.vue +0 -101
  310. package/src/runtime/components/AntTag.vue +0 -114
  311. package/src/runtime/components/AntToast.vue +0 -119
  312. package/src/runtime/components/AntToaster.vue +0 -70
  313. package/src/runtime/components/AntTooltip.vue +0 -189
  314. package/src/runtime/components/buttons/AntActionButton.vue +0 -74
  315. package/src/runtime/components/buttons/AntButton.vue +0 -257
  316. package/src/runtime/components/buttons/AntCreateButton.vue +0 -54
  317. package/src/runtime/components/buttons/AntDeleteButton.vue +0 -54
  318. package/src/runtime/components/buttons/AntDuplicateButton.vue +0 -54
  319. package/src/runtime/components/buttons/AntEditButton.vue +0 -54
  320. package/src/runtime/components/buttons/AntSaveAndNewButton.vue +0 -56
  321. package/src/runtime/components/buttons/AntSaveButton.vue +0 -55
  322. package/src/runtime/components/crud/AntCrud.vue +0 -69
  323. package/src/runtime/components/crud/AntCrudDetail.vue +0 -11
  324. package/src/runtime/components/crud/AntCrudDetailActions.vue +0 -58
  325. package/src/runtime/components/crud/AntCrudDetailNav.vue +0 -64
  326. package/src/runtime/components/crud/AntCrudTableFilter.vue +0 -122
  327. package/src/runtime/components/crud/AntCrudTableNav.vue +0 -149
  328. package/src/runtime/components/dialogs/AntDeleteDialog.vue +0 -29
  329. package/src/runtime/components/dialogs/AntDialog.vue +0 -181
  330. package/src/runtime/components/forms/AntField.vue +0 -123
  331. package/src/runtime/components/forms/AntFormGroup.vue +0 -36
  332. package/src/runtime/components/forms/AntFormGroupLabel.vue +0 -5
  333. package/src/runtime/components/inputs/AntCheckbox.vue +0 -202
  334. package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  335. package/src/runtime/components/inputs/AntDateInput.vue +0 -97
  336. package/src/runtime/components/inputs/AntNumberInput.vue +0 -152
  337. package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
  338. package/src/runtime/components/inputs/AntRadio.vue +0 -200
  339. package/src/runtime/components/inputs/AntRadioGroup.vue +0 -116
  340. package/src/runtime/components/inputs/AntRangeSlider.vue +0 -121
  341. package/src/runtime/components/inputs/AntRichTextEditor.vue +0 -237
  342. package/src/runtime/components/inputs/AntSearch.vue +0 -72
  343. package/src/runtime/components/inputs/AntSelect.vue +0 -311
  344. package/src/runtime/components/inputs/AntSwitch.vue +0 -192
  345. package/src/runtime/components/inputs/AntSwitcher.vue +0 -196
  346. package/src/runtime/components/inputs/AntTagInput.vue +0 -331
  347. package/src/runtime/components/inputs/AntTextInput.vue +0 -72
  348. package/src/runtime/components/inputs/AntTextarea.vue +0 -185
  349. package/src/runtime/components/inputs/AntUnitInput.vue +0 -93
  350. package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -304
  351. package/src/runtime/components/inputs/Elements/AntDropDown.vue +0 -189
  352. package/src/runtime/components/inputs/Elements/AntInputDescription.vue +0 -58
  353. package/src/runtime/components/inputs/Elements/AntInputLabel.vue +0 -65
  354. package/src/runtime/components/inputs/Elements/AntInputLimiter.vue +0 -58
  355. package/src/runtime/components/layouts/AntNavLeftLayout.vue +0 -36
  356. package/src/runtime/components/navbar/AntNavbar.vue +0 -25
  357. package/src/runtime/components/navbar/AntNavbarItem.vue +0 -78
  358. package/src/runtime/components/table/AntTable.vue +0 -218
  359. package/src/runtime/components/table/AntTableSortButton.vue +0 -48
  360. package/src/runtime/components/table/AntTd.vue +0 -81
  361. package/src/runtime/components/table/AntTh.vue +0 -74
  362. package/src/runtime/components/tabs/AntTabItem.vue +0 -118
  363. package/src/runtime/components/tabs/AntTabs.vue +0 -47
  364. package/src/runtime/components/transitions/AntTransitionCollapseHeight.vue +0 -96
@@ -1,46 +0,0 @@
1
- import AntInputLabel from "../AntInputLabel.vue";
2
- import { Size } from "../../../../enums/Size.enum.mjs";
3
- import AntBaseInput from "../AntBaseInput.vue";
4
- const meta = {
5
- title: "Inputs/Elements/Ant Input Label",
6
- component: AntInputLabel,
7
- parameters: { controls: { sort: "requiredFirst" } },
8
- argTypes: {
9
- label: {
10
- control: "text"
11
- },
12
- size: {
13
- control: { type: "select" },
14
- options: Object.values(Size),
15
- table: { defaultValue: { summary: Size.md } }
16
- },
17
- skeleton: {
18
- control: "boolean",
19
- table: { defaultValue: { summary: false } }
20
- }
21
- }
22
- };
23
- export default meta;
24
- export const Docs = {
25
- render: (args) => ({
26
- components: { AntInputLabel },
27
- setup: () => ({ args }),
28
- template: '<div class="p-4"><AntInputLabel v-bind="args"></AntInputLabel></div>'
29
- }),
30
- args: {
31
- label: "Label"
32
- }
33
- };
34
- export const WithContent = {
35
- render: (args) => ({
36
- components: { AntInputLabel, AntBaseInput },
37
- setup() {
38
- return { args };
39
- },
40
- template: '<div class="p-4"><AntInputLabel v-bind="args"><AntBaseInput value="Example" :size="args.size"></AntBaseInput></AntInputLabel></div>'
41
- }),
42
- args: {
43
- ...Docs.args,
44
- label: "Label"
45
- }
46
- };
@@ -1,6 +0,0 @@
1
- import AntInputLimiter from '../AntInputLimiter.vue';
2
- import { type Meta, type StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AntInputLimiter>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntInputLimiter>;
6
- export declare const Docs: Story;
@@ -1,37 +0,0 @@
1
- import AntInputLimiter from "../AntInputLimiter.vue";
2
- import { Size } from "../../../../enums/Size.enum.mjs";
3
- import { InputState } from "../../../../enums/index.mjs";
4
- const meta = {
5
- title: "Inputs/Elements/Ant Input Limiter",
6
- component: AntInputLimiter,
7
- parameters: { controls: { sort: "requiredFirst" } },
8
- argTypes: {
9
- size: {
10
- control: { type: "select" },
11
- options: Object.values(Size),
12
- table: { defaultValue: { summary: Size.md } }
13
- },
14
- skeleton: {
15
- control: "boolean",
16
- table: { defaultValue: { summary: false } }
17
- },
18
- state: {
19
- control: { type: "select" },
20
- options: Object.values(InputState)
21
- }
22
- }
23
- };
24
- export default meta;
25
- export const Docs = {
26
- render: (args) => ({
27
- components: { AntInputLimiter },
28
- setup() {
29
- return { args };
30
- },
31
- template: '<div class="p-4"><AntInputLimiter v-bind="args">Description</AntInputLimiter></div>'
32
- }),
33
- args: {
34
- value: 0,
35
- maxValue: 10
36
- }
37
- };
@@ -1,17 +0,0 @@
1
- export declare enum BaseInputType {
2
- date = "date",
3
- datetime = "datetime",
4
- datetimeLocal = "datetime-local",
5
- email = "email",
6
- hidden = "hidden",
7
- month = "month",
8
- number = "number",
9
- password = "password",
10
- search = "search",
11
- tel = "tel",
12
- text = "text",
13
- time = "time",
14
- url = "url",
15
- week = "week",
16
- range = "range"
17
- }
@@ -1,18 +0,0 @@
1
- export var BaseInputType = /* @__PURE__ */ ((BaseInputType2) => {
2
- BaseInputType2["date"] = "date";
3
- BaseInputType2["datetime"] = "datetime";
4
- BaseInputType2["datetimeLocal"] = "datetime-local";
5
- BaseInputType2["email"] = "email";
6
- BaseInputType2["hidden"] = "hidden";
7
- BaseInputType2["month"] = "month";
8
- BaseInputType2["number"] = "number";
9
- BaseInputType2["password"] = "password";
10
- BaseInputType2["search"] = "search";
11
- BaseInputType2["tel"] = "tel";
12
- BaseInputType2["text"] = "text";
13
- BaseInputType2["time"] = "time";
14
- BaseInputType2["url"] = "url";
15
- BaseInputType2["week"] = "week";
16
- BaseInputType2["range"] = "range";
17
- return BaseInputType2;
18
- })(BaseInputType || {});
@@ -1 +0,0 @@
1
- export * from './AntBaseInput.types';
@@ -1 +0,0 @@
1
- export * from "./AntBaseInput.types.mjs";
@@ -1,6 +0,0 @@
1
- import AntBaseInput from './AntBaseInput.vue';
2
- import AntField from '../../forms/AntField.vue';
3
- import AntInputDescription from './AntInputDescription.vue';
4
- import AntInputLabel from './AntInputLabel.vue';
5
- import AntInputLimiter from './AntInputLimiter.vue';
6
- export { AntBaseInput, AntField, AntInputDescription, AntInputLabel, AntInputLimiter };
@@ -1,12 +0,0 @@
1
- import AntBaseInput from "./AntBaseInput.vue";
2
- import AntField from "../../forms/AntField.vue";
3
- import AntInputDescription from "./AntInputDescription.vue";
4
- import AntInputLabel from "./AntInputLabel.vue";
5
- import AntInputLimiter from "./AntInputLimiter.vue";
6
- export {
7
- AntBaseInput,
8
- AntField,
9
- AntInputDescription,
10
- AntInputLabel,
11
- AntInputLimiter
12
- };
@@ -1,8 +0,0 @@
1
- import AntCheckbox from '../AntCheckbox.vue';
2
- import { type Meta, type StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AntCheckbox>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCheckbox>;
6
- export declare const Docs: Story;
7
- export declare const WithValidator: Story;
8
- export declare const Summary: Story;
@@ -1,341 +0,0 @@
1
- import AntCheckbox from "../AntCheckbox.vue";
2
- import { computed, ref } from "vue";
3
- import { InputState } from "../../../enums/index.mjs";
4
- import { useFieldValidator } from "@antify/validate";
5
- import { AntCheckboxSize } from "../__types/AntCheckbox.types.mjs";
6
- import AntFormGroup from "../../forms/AntFormGroup.vue";
7
- import AntFormGroupLabel from "../../forms/AntFormGroupLabel.vue";
8
- const meta = {
9
- title: "Inputs/Checkbox",
10
- component: AntCheckbox,
11
- parameters: { controls: { sort: "requiredFirst" } },
12
- argTypes: {
13
- state: {
14
- control: { type: "select" },
15
- options: Object.values(InputState)
16
- },
17
- size: {
18
- control: { type: "select" },
19
- options: Object.values(AntCheckboxSize)
20
- }
21
- }
22
- };
23
- export default meta;
24
- export const Docs = {
25
- render: (args) => ({
26
- components: { AntCheckbox },
27
- setup() {
28
- const value = computed({
29
- get() {
30
- return args.modelValue;
31
- },
32
- set(val) {
33
- args.modelValue = val;
34
- }
35
- });
36
- return { args, value };
37
- },
38
- template: `
39
- <div class="m-2">
40
- <AntCheckbox v-bind="args" v-model="value"/>
41
- <span class="text-sm text-gray-500">Reactive value: {{ value }}</span>
42
- </div>
43
- `
44
- })
45
- };
46
- export const WithValidator = {
47
- render: (args) => ({
48
- components: { AntCheckbox },
49
- setup() {
50
- const modelValue = computed({
51
- get() {
52
- return args.modelValue;
53
- },
54
- set(val) {
55
- args.modelValue = val;
56
- }
57
- });
58
- const validator = ref(useFieldValidator((val) => !val ? "Check this box!" : true));
59
- return { args, modelValue, validator, InputState };
60
- },
61
- template: `
62
- <div class="m-2">
63
- <AntCheckbox
64
- v-bind="args"
65
- v-model="modelValue"
66
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
67
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
68
- @validate="(val) => validator.validate(val)"
69
- >
70
- Accept some kind of document before continuing
71
- </AntCheckbox>
72
- <span class="text-sm text-gray-500">Reactive value: {{ modelValue }}</span>
73
- </div>
74
- `
75
- }),
76
- args: {
77
- modelValue: false
78
- }
79
- };
80
- export const Summary = {
81
- parameters: {
82
- chromatic: { disableSnapshot: false }
83
- },
84
- render: (args) => ({
85
- components: { AntCheckbox, AntFormGroup, AntFormGroupLabel },
86
- setup() {
87
- const offValue = ref(false);
88
- const onValue = ref(true);
89
- return {
90
- args,
91
- offValue,
92
- onValue,
93
- InputState,
94
- AntCheckboxSize
95
- };
96
- },
97
- template: `
98
- <AntFormGroup>
99
- <AntFormGroupLabel>State & false</AntFormGroupLabel>
100
- <AntFormGroup direction="row">
101
- <AntCheckbox
102
- v-model="offValue"
103
- class="w-28"
104
- :state="InputState.base"
105
- label="Label"
106
- description="Lorem ipsum dolor sit amet"
107
- :messages="['Message']"
108
- />
109
- <AntCheckbox
110
- v-model="offValue"
111
- class="w-28"
112
- :state="InputState.info"
113
- label="Label"
114
- description="Lorem ipsum dolor sit amet"
115
- :messages="['Message']"
116
- />
117
- <AntCheckbox
118
- v-model="offValue"
119
- class="w-28"
120
- :state="InputState.success"
121
- label="Label"
122
- description="Lorem ipsum dolor sit amet"
123
- :messages="['Message']"
124
- />
125
- <AntCheckbox
126
- v-model="offValue"
127
- class="w-28"
128
- :state="InputState.warning"
129
- label="Label"
130
- description="Lorem ipsum dolor sit amet"
131
- :messages="['Message']"
132
- />
133
- <AntCheckbox
134
- v-model="offValue"
135
- class="w-28"
136
- :state="InputState.danger"
137
- label="Label"
138
- description="Lorem ipsum dolor sit amet"
139
- :messages="['Message']"
140
- />
141
- </AntFormGroup>
142
-
143
- <AntFormGroupLabel>State & true</AntFormGroupLabel>
144
- <AntFormGroup direction="row">
145
- <AntCheckbox
146
- v-model="onValue"
147
- class="w-28"
148
- :state="InputState.base"
149
- label="Label"
150
- description="Lorem ipsum dolor sit amet"
151
- :messages="['Message']"
152
- />
153
- <AntCheckbox
154
- v-model="onValue"
155
- class="w-28"
156
- :state="InputState.info"
157
- label="Label"
158
- description="Lorem ipsum dolor sit amet"
159
- :messages="['Message']"
160
- />
161
- <AntCheckbox
162
- v-model="onValue"
163
- class="w-28"
164
- :state="InputState.success"
165
- label="Label"
166
- description="Lorem ipsum dolor sit amet"
167
- :messages="['Message']"
168
- />
169
- <AntCheckbox
170
- v-model="onValue"
171
- class="w-28"
172
- :state="InputState.warning"
173
- label="Label"
174
- description="Lorem ipsum dolor sit amet"
175
- :messages="['Message']"
176
- />
177
- <AntCheckbox
178
- v-model="onValue"
179
- class="w-28"
180
- :state="InputState.danger"
181
- label="Label"
182
- description="Lorem ipsum dolor sit amet"
183
- :messages="['Message']"
184
- />
185
- </AntFormGroup>
186
-
187
- <AntFormGroupLabel>Size</AntFormGroupLabel>
188
- <AntFormGroup direction="row">
189
- <AntCheckbox
190
- v-model="offValue"
191
- class="w-28"
192
- :size="AntCheckboxSize.md"
193
- label="Label"
194
- description="Lorem ipsum dolor sit amet"
195
- />
196
- <AntCheckbox
197
- v-model="onValue"
198
- class="w-28"
199
- :size="AntCheckboxSize.md"
200
- label="Label"
201
- description="Lorem ipsum dolor sit amet"
202
- />
203
- <AntCheckbox
204
- v-model="offValue"
205
- class="w-28"
206
- :size="AntCheckboxSize.sm"
207
- label="Label"
208
- description="Lorem ipsum dolor sit amet"
209
- />
210
- <AntCheckbox
211
- v-model="onValue"
212
- class="w-28"
213
- :size="AntCheckboxSize.sm"
214
- label="Label"
215
- description="Lorem ipsum dolor sit amet"
216
- />
217
- </AntFormGroup>
218
- <AntFormGroup direction="row">
219
- <AntFormGroup>
220
- <AntFormGroupLabel>Disabled</AntFormGroupLabel>
221
- <AntFormGroup direction="row">
222
- <AntCheckbox
223
- v-model="offValue"
224
- class="w-28"
225
- label="Label"
226
- description="Lorem ipsum dolor sit amet."
227
- :state="InputState.base"
228
- disabled>
229
- Value
230
- </AntCheckbox>
231
- <AntCheckbox
232
- v-model="onValue"
233
- class="w-28"
234
- label="Label"
235
- description="Lorem ipsum dolor sit amet."
236
- :state="InputState.base"
237
- disabled>
238
- Value
239
- </AntCheckbox>
240
- </AntFormGroup>
241
- </AntFormGroup>
242
- <AntFormGroup>
243
- <AntFormGroupLabel>Readonly</AntFormGroupLabel>
244
- <AntFormGroup direction="row">
245
- <AntCheckbox
246
- v-model="offValue"
247
- :readonly="true"
248
- class="w-28"
249
- label="Label"
250
- description="Lorem ipsum dolor sit amet."
251
- :state="InputState.base">
252
- Value
253
- </AntCheckbox>
254
- <AntCheckbox
255
- v-model="onValue"
256
- :readonly="true"
257
- class="w-28"
258
- label="Label"
259
- description="Lorem ipsum dolor sit amet."
260
- :state="InputState.base">
261
- Value
262
- </AntCheckbox>
263
- </AntFormGroup>
264
- </AntFormGroup>
265
- <AntFormGroup>
266
- <AntFormGroupLabel>Skeleton</AntFormGroupLabel>
267
- <AntCheckbox
268
- v-model="offValue"
269
- class="w-28"
270
- label="Label"
271
- description="Lorem ipsum dolor sit amet."
272
- :state="InputState.base"
273
- skeleton>
274
- Value
275
- </AntCheckbox>
276
- </AntFormGroup>
277
- </AntFormGroup>
278
- <AntFormGroupLabel>Plain</AntFormGroupLabel>
279
- <AntFormGroup direction="row">
280
- <AntCheckbox v-model="offValue"/>
281
- <AntCheckbox v-model="onValue"/>
282
- </AntFormGroup>
283
- <AntFormGroupLabel>Label & label + value</AntFormGroupLabel>
284
- <AntFormGroup direction="row">
285
- <AntCheckbox v-model="offValue" label="Label"/>
286
- <AntCheckbox v-model="onValue" label="Label"/>
287
- <AntCheckbox v-model="offValue" label="Label">
288
- Value
289
- </AntCheckbox>
290
- <AntCheckbox v-model="onValue" label="Label">
291
- Value
292
- </AntCheckbox>
293
- </AntFormGroup>
294
- <AntFormGroupLabel>Description & description + value</AntFormGroupLabel>
295
- <AntFormGroup direction="row">
296
- <AntCheckbox v-model="offValue" class="w-28" description="Lorem ipsum dolor sit amet"/>
297
- <AntCheckbox v-model="onValue" class="w-28" description="Lorem ipsum dolor sit amet"/>
298
- <AntCheckbox v-model="offValue" class="w-28" description="Lorem ipsum dolor sit amet">
299
- Value
300
- </AntCheckbox>
301
- <AntCheckbox v-model="onValue" class="w-28" description="Lorem ipsum dolor sit amet">
302
- Value
303
- </AntCheckbox>
304
- </AntFormGroup>
305
- <AntFormGroupLabel>Content</AntFormGroupLabel>
306
- <AntFormGroup direction="row">
307
- <AntCheckbox v-model="offValue" class="w-28">
308
- Value
309
- </AntCheckbox>
310
- <AntCheckbox v-model="onValue" class="w-28">
311
- Value
312
- </AntCheckbox>
313
- </AntFormGroup>
314
- <AntFormGroupLabel>Label & Description</AntFormGroupLabel>
315
- <AntFormGroup direction="row">
316
- <AntCheckbox v-model="offValue" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"/>
317
- <AntCheckbox v-model="onValue" class="w-28" description="Lorem ipsum dolor sit amet" label="Label"/>
318
- </AntFormGroup>
319
- <AntFormGroupLabel>Label & Description & Content</AntFormGroupLabel>
320
- <AntFormGroup direction="row">
321
- <AntCheckbox
322
- v-model="offValue"
323
- class="w-28"
324
- description="Lorem ipsum dolor sit amet"
325
- label="Label"
326
- >
327
- Value
328
- </AntCheckbox>
329
- <AntCheckbox
330
- v-model="onValue"
331
- class="w-28"
332
- description="Lorem ipsum dolor sit amet"
333
- label="Label"
334
- >
335
- Value
336
- </AntCheckbox>
337
- </AntFormGroup>
338
- </AntFormGroup>
339
- `
340
- })
341
- };
@@ -1,7 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntCheckboxGroup from '../AntCheckboxGroup.vue';
3
- declare const meta: Meta<typeof AntCheckboxGroup>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntCheckboxGroup>;
6
- export declare const Docs: Story;
7
- export declare const WithValidator: Story;
@@ -1,85 +0,0 @@
1
- import AntCheckboxGroup from "../AntCheckboxGroup.vue";
2
- import { reactive } from "vue";
3
- import { InputState } from "../../../enums/index.mjs";
4
- import { Direction } from "../../../enums/Direction.enum.mjs";
5
- import { useFieldValidator } from "@antify/validate";
6
- import { AntCheckboxSize } from "../__types/AntCheckbox.types.mjs";
7
- const meta = {
8
- title: "Inputs/Checkbox Group",
9
- component: AntCheckboxGroup,
10
- parameters: { controls: { sort: "requiredFirst" } },
11
- argTypes: {
12
- modelValue: {
13
- description: "Contains the list of selected checkboxes (the value prop of the checkboxes)"
14
- },
15
- checkboxes: {
16
- description: "List of checkboxes to be displayed"
17
- },
18
- state: {
19
- control: { type: "select" },
20
- options: Object.values(InputState)
21
- },
22
- size: {
23
- control: { type: "select" },
24
- options: Object.values(AntCheckboxSize)
25
- },
26
- direction: {
27
- control: { type: "select" },
28
- options: Object.values(Direction)
29
- }
30
- }
31
- };
32
- export default meta;
33
- export const Docs = {
34
- render: (args) => ({
35
- components: { AntCheckboxGroup },
36
- setup() {
37
- return { args };
38
- },
39
- template: `
40
- <AntCheckboxGroup v-bind="args" v-model="args.modelValue"/>
41
- `
42
- }),
43
- args: {
44
- modelValue: [],
45
- checkboxes: [{
46
- label: "Checkbox 1",
47
- value: "checkbox-1"
48
- }, {
49
- label: "Checkbox 2",
50
- value: "checkbox-2"
51
- }, {
52
- label: "Checkbox 3",
53
- value: "checkbox-3"
54
- }, {
55
- label: "Checkbox 4",
56
- value: "checkbox-4"
57
- }]
58
- }
59
- };
60
- export const WithValidator = {
61
- render: (args) => ({
62
- components: { AntCheckboxGroup },
63
- setup() {
64
- const validator = reactive(useFieldValidator((val) => val.length >= 2 || "Select at least 2"));
65
- return {
66
- args,
67
- validator,
68
- InputState
69
- };
70
- },
71
- template: `
72
- <AntCheckboxGroup
73
- v-bind="args"
74
- v-model="args.modelValue"
75
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
76
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
77
- @validate="(val) => validator.validate(val)"
78
- />
79
- `
80
- }),
81
- args: {
82
- ...Docs.args,
83
- modelValue: null
84
- }
85
- };
@@ -1,8 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntDateInput from '../AntDateInput.vue';
3
- declare const meta: Meta<typeof AntDateInput>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntDateInput>;
6
- export declare const Docs: Story;
7
- export declare const WithValidator: Story;
8
- export declare const Summary: Story;