@antify/ui-module 1.7.3 → 1.8.2

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 -251
  3. package/dist/module.d.ts +1 -251
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +97 -418
  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 -41
  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 -182
  152. package/dist/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  153. package/dist/runtime/components/inputs/AntDateInput.vue +0 -104
  154. package/dist/runtime/components/inputs/AntNumberInput.vue +0 -157
  155. package/dist/runtime/components/inputs/AntPasswordInput.vue +0 -107
  156. package/dist/runtime/components/inputs/AntRadio.vue +0 -206
  157. package/dist/runtime/components/inputs/AntRadioGroup.vue +0 -127
  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 -75
  161. package/dist/runtime/components/inputs/AntSelect.vue +0 -319
  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 -339
  165. package/dist/runtime/components/inputs/AntTextInput.vue +0 -75
  166. package/dist/runtime/components/inputs/AntTextarea.vue +0 -191
  167. package/dist/runtime/components/inputs/AntUnitInput.vue +0 -96
  168. package/dist/runtime/components/inputs/Elements/AntBaseInput.vue +0 -271
  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 -62
  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 -382
  189. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.d.ts +0 -7
  190. package/dist/runtime/components/inputs/__stories/AntCheckboxGroup.stories.mjs +0 -84
  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 -10
  194. package/dist/runtime/components/inputs/__stories/AntNumberInput.stories.mjs +0 -246
  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 -251
  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 -6
  220. package/dist/runtime/components/inputs/__types/AntCheckbox.types.mjs +0 -0
  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 -9
  224. package/dist/runtime/components/inputs/__types/AntRadio.types.mjs +0 -0
  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 -78
  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 -201
  334. package/src/runtime/components/inputs/AntCheckboxGroup.vue +0 -117
  335. package/src/runtime/components/inputs/AntDateInput.vue +0 -104
  336. package/src/runtime/components/inputs/AntNumberInput.vue +0 -157
  337. package/src/runtime/components/inputs/AntPasswordInput.vue +0 -107
  338. package/src/runtime/components/inputs/AntRadio.vue +0 -214
  339. package/src/runtime/components/inputs/AntRadioGroup.vue +0 -127
  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 -75
  343. package/src/runtime/components/inputs/AntSelect.vue +0 -319
  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 -339
  347. package/src/runtime/components/inputs/AntTextInput.vue +0 -75
  348. package/src/runtime/components/inputs/AntTextarea.vue +0 -191
  349. package/src/runtime/components/inputs/AntUnitInput.vue +0 -96
  350. package/src/runtime/components/inputs/Elements/AntBaseInput.vue +0 -319
  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 -62
  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 -78
  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,225 +0,0 @@
1
- import { Size } from "../../../enums/Size.enum.mjs";
2
- import AntTextInput from "../AntTextInput.vue";
3
- import { isRequiredRule, notBlankRule, useFieldValidator } from "@antify/validate";
4
- import { TextInputType } from "../__types/AntTextInput.types.mjs";
5
- import { InputState } from "../../../enums/index.mjs";
6
- import { computed, reactive } from "vue";
7
- const meta = {
8
- title: "Inputs/Text Input",
9
- component: AntTextInput,
10
- parameters: { controls: { sort: "requiredFirst" } },
11
- argTypes: {
12
- modelValue: {
13
- control: "text",
14
- table: { type: { summary: "string|null" } }
15
- },
16
- state: {
17
- control: { type: "select" },
18
- options: Object.values(InputState)
19
- },
20
- size: {
21
- control: { type: "select" },
22
- options: Object.values(Size),
23
- table: { defaultValue: { summary: Size.md } }
24
- },
25
- placeholder: {
26
- table: { defaultValue: { summary: "this.label" } }
27
- },
28
- type: {
29
- control: { type: "select" },
30
- options: Object.values(TextInputType),
31
- table: { defaultValue: { summary: TextInputType.text } }
32
- }
33
- }
34
- };
35
- export default meta;
36
- export const Docs = {
37
- render: (args) => ({
38
- components: { AntTextInput },
39
- setup() {
40
- return { args };
41
- },
42
- template: `
43
- <AntTextInput
44
- v-bind="args"
45
- v-model="args.modelValue"
46
- />`
47
- }),
48
- args: {
49
- modelValue: null,
50
- label: "Label",
51
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
52
- }
53
- };
54
- export const withValidator = {
55
- render: (args) => ({
56
- components: { AntTextInput },
57
- setup() {
58
- const errorValidator = reactive(useFieldValidator([isRequiredRule, notBlankRule]));
59
- const warningValidator = reactive(useFieldValidator(
60
- (val) => val?.length >= 1 && val?.length <= 4 ? "It`s recommended to have a value with a length greater than 4" : true
61
- ));
62
- const infoValidator = reactive(useFieldValidator(
63
- (val) => val?.length >= 5 && val?.length <= 8 ? "Way better! But if you type in 4 characters more, the value is perfect!" : true
64
- ));
65
- const successValidator = reactive(useFieldValidator(
66
- (val) => val?.length >= 9 ? "Yes! The value length is big enough now" : true
67
- ));
68
- const state = computed(() => {
69
- if (args.state) {
70
- return args.state;
71
- }
72
- if (errorValidator.hasErrors()) {
73
- return InputState.danger;
74
- }
75
- if (warningValidator.hasErrors()) {
76
- return InputState.warning;
77
- }
78
- if (infoValidator.hasErrors()) {
79
- return InputState.info;
80
- }
81
- if (successValidator.hasErrors()) {
82
- return InputState.success;
83
- }
84
- return void 0;
85
- });
86
- const messages = computed(() => {
87
- if (args.messages) {
88
- return args.messages;
89
- }
90
- if (errorValidator.hasErrors()) {
91
- return errorValidator.getErrors();
92
- }
93
- if (warningValidator.hasErrors()) {
94
- return warningValidator.getErrors();
95
- }
96
- if (infoValidator.hasErrors()) {
97
- return infoValidator.getErrors();
98
- }
99
- if (successValidator.hasErrors()) {
100
- return successValidator.getErrors();
101
- }
102
- return void 0;
103
- });
104
- function validate(val) {
105
- errorValidator.validate(val);
106
- warningValidator.validate(val);
107
- infoValidator.validate(val);
108
- successValidator.validate(val);
109
- }
110
- return {
111
- args,
112
- validate,
113
- state,
114
- messages,
115
- InputState
116
- };
117
- },
118
- template: `
119
- <AntTextInput
120
- v-bind="args"
121
- v-model="args.modelValue"
122
- :state="state"
123
- :messages="messages"
124
- @validate="validate"
125
- />`
126
- }),
127
- args: {
128
- modelValue: null,
129
- label: "Label",
130
- description: "Focus in the element and blur out. After that, follow the error, warning, info and success instructions"
131
- }
132
- };
133
- export const limited = {
134
- render: (args) => ({
135
- components: { AntTextInput },
136
- setup() {
137
- const validator = reactive(useFieldValidator([(val) => val.length <= 10 || "Max. 10 characters allowed"]));
138
- return { args, validator, InputState };
139
- },
140
- template: `
141
- <AntTextInput
142
- v-bind="args"
143
- v-model="args.modelValue"
144
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
145
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
146
- @validate="(val) => validator.validate(val)"
147
- />`
148
- }),
149
- args: {
150
- ...Docs.args,
151
- modelValue: "A to long value",
152
- max: 10,
153
- limiter: true
154
- }
155
- };
156
- export const Summary = {
157
- parameters: {
158
- chromatic: { disableSnapshot: false }
159
- },
160
- render: (args) => ({
161
- components: { AntTextInput },
162
- setup() {
163
- return { args, InputState };
164
- },
165
- template: `
166
- <div class="flex gap-2.5">
167
- <AntTextInput
168
- v-bind="args"
169
- v-model="args.modelValue"
170
- />
171
- <AntTextInput
172
- v-bind="args"
173
- v-model="args.modelValue"
174
- :state="InputState.info"
175
- />
176
- <AntTextInput
177
- v-bind="args"
178
- v-model="args.modelValue"
179
- :state="InputState.success"
180
- />
181
- <AntTextInput
182
- v-bind="args"
183
- v-model="args.modelValue"
184
- :state="InputState.warning"
185
- />
186
- <AntTextInput
187
- v-bind="args"
188
- v-model="args.modelValue"
189
- :state="InputState.danger"
190
- />
191
- </div>
192
- <div class="flex gap-2.5">
193
- <AntTextInput
194
- v-bind="args"
195
- v-model="args.modelValue"
196
- />
197
- <AntTextInput
198
- v-bind="args"
199
- v-model="args.modelValue"
200
- :state="InputState.info"
201
- />
202
- <AntTextInput
203
- v-bind="args"
204
- v-model="args.modelValue"
205
- :state="InputState.success"
206
- />
207
- <AntTextInput
208
- v-bind="args"
209
- v-model="args.modelValue"
210
- :state="InputState.warning"
211
- />
212
- <AntTextInput
213
- v-bind="args"
214
- v-model="args.modelValue"
215
- :state="InputState.danger"
216
- />
217
- </div>
218
- `
219
- }),
220
- args: {
221
- modelValue: null,
222
- label: "Label",
223
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
224
- }
225
- };
@@ -1,9 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntTextarea from '../AntTextarea.vue';
3
- declare const meta: Meta<typeof AntTextarea>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntTextarea>;
6
- export declare const Docs: Story;
7
- export declare const withValidator: Story;
8
- export declare const limited: Story;
9
- export declare const summary: Story;
@@ -1,144 +0,0 @@
1
- import { isRequiredRule, notBlankRule, useFieldValidator } from "@antify/validate";
2
- import { Grouped as _Grouped } from "../../../enums/Grouped.enum.mjs";
3
- import { Size } from "../../../enums/Size.enum.mjs";
4
- import AntTextarea from "../AntTextarea.vue";
5
- import { InputState } from "../../../enums/index.mjs";
6
- import { reactive } from "vue";
7
- const meta = {
8
- title: "Inputs/Textarea",
9
- component: AntTextarea,
10
- parameters: { controls: { sort: "requiredFirst" } },
11
- argTypes: {
12
- state: {
13
- control: { type: "select" },
14
- options: Object.values(InputState)
15
- },
16
- size: {
17
- control: { type: "select" },
18
- options: Object.values(Size)
19
- },
20
- placeholder: {
21
- table: { defaultValue: { summary: "this.label" } }
22
- },
23
- grouped: {
24
- control: { type: "select" },
25
- options: Object.values(_Grouped),
26
- description: "Where is this fields position in a group"
27
- },
28
- wrapperClass: {
29
- control: "text",
30
- description: 'Class for the first element because the attribute "class" would affect the input element.',
31
- table: { type: { summary: "string|object" } }
32
- },
33
- showIcon: {
34
- control: "boolean",
35
- description: "Some InputStates can has an icon. Control with this property if it get shown or not.",
36
- table: { type: { summary: "Type" } }
37
- }
38
- }
39
- };
40
- export default meta;
41
- export const Docs = {
42
- render: (args) => ({
43
- components: { AntTextarea },
44
- setup: () => {
45
- return { args };
46
- },
47
- template: `
48
- <AntTextarea
49
- v-bind="args"
50
- v-model="args.modelValue"
51
- />
52
- `
53
- }),
54
- args: {
55
- modelValue: null,
56
- label: "Label",
57
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
58
- }
59
- };
60
- export const withValidator = {
61
- render: (args) => ({
62
- components: { AntTextarea },
63
- setup: () => {
64
- const validator = reactive(useFieldValidator([isRequiredRule, notBlankRule]));
65
- return { args, validator, InputState };
66
- },
67
- template: `
68
- <AntTextarea
69
- v-bind="args"
70
- v-model="args.modelValue"
71
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
72
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
73
- @validate="val => validator.validate(val)"
74
- />
75
- `
76
- }),
77
- args: {
78
- modelValue: null,
79
- label: "Label",
80
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
81
- }
82
- };
83
- export const limited = {
84
- render: (args) => ({
85
- components: { AntTextarea },
86
- setup: () => {
87
- const validator = reactive(useFieldValidator(
88
- (val) => val?.length <= 10 || "Max. 10 characters allowed"
89
- ));
90
- return { args, validator, InputState };
91
- },
92
- template: `
93
- <AntTextarea
94
- v-bind="args"
95
- v-model="args.modelValue"
96
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
97
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
98
- @validate="(val) => validator.validate(val)"
99
- />
100
- `
101
- }),
102
- args: {
103
- ...Docs.args,
104
- modelValue: "A to long value",
105
- limiter: true,
106
- max: 10
107
- }
108
- };
109
- export const summary = {
110
- parameters: {
111
- chromatic: { disableSnapshot: false }
112
- },
113
- render: (args, ctx) => ({
114
- // @ts-ignore
115
- components: Docs.render(args, ctx).components,
116
- // @ts-ignore
117
- setup: Docs.render(args, ctx).setup,
118
- template: `
119
- <div class="pb-10 flex flex-col gap-2">
120
- <div class="flex gap-2">
121
- <AntTextarea v-bind="args" v-model="modelValue" state="base"/>
122
- <AntTextarea v-bind="args" v-model="modelValue" state="info"/>
123
- <AntTextarea v-bind="args" v-model="modelValue" state="success"/>
124
- <AntTextarea v-bind="args" v-model="modelValue" state="warning"/>
125
- <AntTextarea v-bind="args" v-model="modelValue" state="danger"/>
126
- </div>
127
-
128
- <div class="flex gap-2">
129
- <AntTextarea v-bind="args" v-model="modelValue" :show-icon="false" state="base"/>
130
- <AntTextarea v-bind="args" v-model="modelValue" :show-icon="false" state="info"/>
131
- <AntTextarea v-bind="args" v-model="modelValue" :show-icon="false" state="success"/>
132
- <AntTextarea v-bind="args" v-model="modelValue" :show-icon="false" state="warning"/>
133
- <AntTextarea v-bind="args" v-model="modelValue" :show-icon="false" state="danger"/>
134
- </div>
135
-
136
- <div class="flex gap-[-2px]">
137
- <AntTextarea v-bind="args" v-model="modelValue" grouped="left"/>
138
- <AntTextarea v-bind="args" v-model="modelValue" grouped="center" state="danger"/>
139
- <AntTextarea v-bind="args" v-model="modelValue" grouped="right" state="info"/>
140
- </div>
141
- </div>`
142
- }),
143
- args: Docs.args
144
- };
@@ -1,9 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntUnitInput from '../AntUnitInput.vue';
3
- declare const meta: Meta<typeof AntUnitInput>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntUnitInput>;
6
- export declare const Docs: Story;
7
- export declare const withValidator: Story;
8
- export declare const Limited: Story;
9
- export declare const UnitAsIcon: Story;
@@ -1,116 +0,0 @@
1
- import { Size } from "../../../enums/Size.enum.mjs";
2
- import AntUnitInput from "../AntUnitInput.vue";
3
- import { faEuroSign } from "@fortawesome/free-solid-svg-icons";
4
- import { InputState } from "../../../enums/index.mjs";
5
- import { isRequiredRule, useFieldValidator } from "@antify/validate";
6
- import { reactive } from "vue";
7
- const meta = {
8
- title: "Inputs/Unit Input",
9
- component: AntUnitInput,
10
- parameters: { controls: { sort: "requiredFirst" } },
11
- argTypes: {
12
- modelValue: {
13
- table: { type: { summary: "number|null" } }
14
- },
15
- unit: {
16
- control: "text",
17
- description: "Will be displayed right to the input.<br>Use text or Font-awesome Icons.",
18
- table: { type: { summary: "string|IconDefinition" } }
19
- },
20
- state: {
21
- control: { type: "select" },
22
- options: Object.values(InputState)
23
- },
24
- size: {
25
- control: { type: "select" },
26
- options: Object.values(Size)
27
- },
28
- placeholder: {
29
- table: { defaultValue: { summary: "this.label" } }
30
- },
31
- wrapperClass: {
32
- control: "text",
33
- description: 'Class for the first element because the attribute "class" would affect the input element.',
34
- table: { type: { summary: "string|object" } }
35
- }
36
- }
37
- };
38
- export default meta;
39
- export const Docs = {
40
- render: (args) => ({
41
- components: { AntUnitInput },
42
- setup() {
43
- return { args };
44
- },
45
- template: `
46
- <AntUnitInput
47
- v-bind="args"
48
- v-model="args.modelValue"
49
- :unit="args.unit"
50
- />`
51
- }),
52
- args: {
53
- modelValue: null,
54
- unit: "\u20AC",
55
- label: "Label",
56
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
57
- }
58
- };
59
- export const withValidator = {
60
- render: (args) => ({
61
- components: { AntUnitInput },
62
- setup() {
63
- const validator = reactive(useFieldValidator([isRequiredRule]));
64
- return { args, validator, InputState };
65
- },
66
- template: `
67
- <AntUnitInput
68
- v-bind="args"
69
- v-model="args.modelValue"
70
- :unit="args.unit"
71
- :state="args.state ? args.state : (validator.hasErrors() ? InputState.danger : undefined)"
72
- :messages="Array.isArray(args.messages) ? args.messages : validator.getErrors()"
73
- @validate="(val) => validator.validate(val)"
74
- />`
75
- }),
76
- args: {
77
- modelValue: null,
78
- unit: "\u20AC",
79
- label: "Label",
80
- description: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod"
81
- }
82
- };
83
- export const Limited = {
84
- render: (args) => ({
85
- components: { AntUnitInput },
86
- setup() {
87
- const validator = reactive(useFieldValidator([
88
- isRequiredRule,
89
- (val) => val <= 10 || "Value should not be bigger than 10",
90
- (val) => val <= 11 || "It should be really not bigger than 10!!!!"
91
- ]));
92
- return { args, validator };
93
- },
94
- template: `
95
- <AntUnitInput
96
- v-bind="args"
97
- v-model="args.modelValue"
98
- :unit="args.unit"
99
- :errors="Array.isArray(args.errors) ? args.errors : validator.getErrors()"
100
- @validate="(val) => validator.validate(val)"
101
- />`
102
- }),
103
- args: {
104
- ...Docs.args,
105
- modelValue: 50,
106
- limiter: true,
107
- max: 10
108
- }
109
- };
110
- export const UnitAsIcon = {
111
- render: Docs.render,
112
- args: {
113
- ...Docs.args,
114
- unit: faEuroSign
115
- }
116
- };
@@ -1,6 +0,0 @@
1
- export type AntCheckboxType = {
2
- label: string;
3
- value: string;
4
- disabled?: boolean;
5
- readonly?: boolean;
6
- };
@@ -1,7 +0,0 @@
1
- export declare enum AntDateInputTypes {
2
- date = "date",
3
- datetimeLocal = "datetime-local",
4
- month = "month",
5
- time = "time",
6
- week = "week"
7
- }
@@ -1,8 +0,0 @@
1
- export var AntDateInputTypes = /* @__PURE__ */ ((AntDateInputTypes2) => {
2
- AntDateInputTypes2["date"] = "date";
3
- AntDateInputTypes2["datetimeLocal"] = "datetime-local";
4
- AntDateInputTypes2["month"] = "month";
5
- AntDateInputTypes2["time"] = "time";
6
- AntDateInputTypes2["week"] = "week";
7
- return AntDateInputTypes2;
8
- })(AntDateInputTypes || {});
@@ -1,9 +0,0 @@
1
- import { InputState } from '../../../enums';
2
- export type AntRadioTypes = {
3
- value: string;
4
- label?: string;
5
- disabled?: boolean;
6
- readonly?: boolean;
7
- state?: InputState;
8
- [key: string]: unknown;
9
- };
@@ -1,4 +0,0 @@
1
- export type SelectOption = {
2
- label: string;
3
- value: string | number;
4
- };
@@ -1,4 +0,0 @@
1
- export type SwitcherOption = {
2
- label: string;
3
- value: string | number;
4
- };
@@ -1,5 +0,0 @@
1
- export declare enum AntTagInputSize {
2
- lg = "lg",
3
- md = "md",
4
- sm = "sm"
5
- }
@@ -1,6 +0,0 @@
1
- export var AntTagInputSize = /* @__PURE__ */ ((AntTagInputSize2) => {
2
- AntTagInputSize2["lg"] = "lg";
3
- AntTagInputSize2["md"] = "md";
4
- AntTagInputSize2["sm"] = "sm";
5
- return AntTagInputSize2;
6
- })(AntTagInputSize || {});
@@ -1,6 +0,0 @@
1
- export declare enum TextInputType {
2
- email = "email",
3
- tel = "tel",
4
- text = "text",
5
- url = "url"
6
- }
@@ -1,7 +0,0 @@
1
- export var TextInputType = /* @__PURE__ */ ((TextInputType2) => {
2
- TextInputType2["email"] = "email";
3
- TextInputType2["tel"] = "tel";
4
- TextInputType2["text"] = "text";
5
- TextInputType2["url"] = "url";
6
- return TextInputType2;
7
- })(TextInputType || {});
@@ -1,7 +0,0 @@
1
- export * from './AntCheckbox.types';
2
- export * from './AntDateInput.types';
3
- export * from './AntRadio.types';
4
- export * from './AntSelect.types';
5
- export * from './AntSwitcher.types';
6
- export * from './AntTagInput.types';
7
- export * from './AntTextInput.types';
@@ -1,7 +0,0 @@
1
- export * from "./AntCheckbox.types.mjs";
2
- export * from "./AntDateInput.types.mjs";
3
- export * from "./AntRadio.types.mjs";
4
- export * from "./AntSelect.types.mjs";
5
- export * from "./AntSwitcher.types.mjs";
6
- export * from "./AntTagInput.types.mjs";
7
- export * from "./AntTextInput.types.mjs";
@@ -1,36 +0,0 @@
1
- <script setup lang="ts">
2
- import {computed, useSlots} from 'vue';
3
- import AntNavbar from '../navbar/AntNavbar.vue';
4
- import type {RouteLocationRaw} from 'vue-router';
5
- import type {NavbarItemTypes} from '../navbar/__types/NavbarItem.types';
6
-
7
- defineProps<{
8
- navbarItems: NavbarItemTypes[];
9
- logoRoute?: RouteLocationRaw;
10
- }>();
11
-
12
- const hasLogoImageSlot = computed(() => useSlots()['logo-image'] || false);
13
- </script>
14
-
15
- <template>
16
- <div class="flex gap-px bg-neutral-300 h-screen min-w-full overflow-y-hidden">
17
- <div class="flex flex-col gap-px bg-neutral-300 w-52 shrink-0">
18
- <component
19
- :is="logoRoute ? 'RouterLink' : 'div'"
20
- v-if="hasLogoImageSlot"
21
- :to="logoRoute"
22
- class="bg-white min-h-[60px] flex justify-center items-center p-2.5"
23
- >
24
- <slot name="logo-image" />
25
- </component>
26
-
27
- <AntNavbar
28
- :navbar-items="navbarItems"
29
- />
30
- </div>
31
-
32
- <div class="w-px flex-grow">
33
- <slot />
34
- </div>
35
- </div>
36
- </template>
@@ -1,7 +0,0 @@
1
- import { type Meta, type StoryObj } from '@storybook/vue3';
2
- import AntNavLeftLayout from '../AntNavLeftLayout.vue';
3
- declare const meta: Meta<typeof AntNavLeftLayout>;
4
- export default meta;
5
- type Story = StoryObj<typeof AntNavLeftLayout>;
6
- export declare const Docs: Story;
7
- export declare const WithoutLogo: Story;