@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,204 +1,20 @@
1
- import defaultColors from "tailwindcss/colors.js";
2
- const colors = {
3
- "transparent": defaultColors.transparent,
4
- "white": defaultColors.white,
5
- "black": defaultColors.black,
6
- "neutral-50": defaultColors.slate["50"],
7
- "neutral-100": defaultColors.slate["100"],
8
- "neutral-200": defaultColors.slate["200"],
9
- "neutral-300": defaultColors.slate["300"],
10
- "neutral-400": defaultColors.slate["400"],
11
- "neutral-500": defaultColors.slate["500"],
12
- "neutral-600": defaultColors.slate["600"],
13
- "neutral-700": defaultColors.slate["700"],
14
- "neutral-800": defaultColors.slate["800"],
15
- "neutral-900": defaultColors.slate["900"],
16
- "neutral-950": defaultColors.slate["950"],
17
- "primary-50": defaultColors.sky["50"],
18
- "primary-100": defaultColors.sky["100"],
19
- "primary-200": defaultColors.sky["200"],
20
- "primary-300": defaultColors.sky["300"],
21
- "primary-400": defaultColors.sky["400"],
22
- "primary-500": defaultColors.sky["500"],
23
- "primary-600": defaultColors.sky["600"],
24
- "primary-700": defaultColors.sky["700"],
25
- "primary-800": defaultColors.sky["800"],
26
- "primary-900": defaultColors.sky["900"],
27
- "primary-950": defaultColors.sky["950"],
28
- "secondary-50": defaultColors.lime["50"],
29
- "secondary-100": defaultColors.lime["100"],
30
- "secondary-200": defaultColors.lime["200"],
31
- "secondary-300": defaultColors.lime["300"],
32
- "secondary-400": defaultColors.lime["400"],
33
- "secondary-500": defaultColors.lime["500"],
34
- "secondary-600": defaultColors.lime["600"],
35
- "secondary-700": defaultColors.lime["700"],
36
- "secondary-800": defaultColors.lime["800"],
37
- "secondary-900": defaultColors.lime["900"],
38
- "secondary-950": defaultColors.lime["950"],
39
- "info-50": defaultColors.blue["50"],
40
- "info-100": defaultColors.blue["100"],
41
- "info-200": defaultColors.blue["200"],
42
- "info-300": defaultColors.blue["300"],
43
- "info-400": defaultColors.blue["400"],
44
- "info-500": defaultColors.blue["500"],
45
- "info-600": defaultColors.blue["600"],
46
- "info-700": defaultColors.blue["700"],
47
- "info-800": defaultColors.blue["800"],
48
- "info-900": defaultColors.blue["900"],
49
- "info-950": defaultColors.blue["950"],
50
- "success-50": defaultColors.green["50"],
51
- "success-100": defaultColors.green["100"],
52
- "success-200": defaultColors.green["200"],
53
- "success-300": defaultColors.green["300"],
54
- "success-400": defaultColors.green["400"],
55
- "success-500": defaultColors.green["500"],
56
- "success-600": defaultColors.green["600"],
57
- "success-700": defaultColors.green["700"],
58
- "success-800": defaultColors.green["800"],
59
- "success-900": defaultColors.green["900"],
60
- "success-950": defaultColors.green["950"],
61
- "warning-50": defaultColors.yellow["50"],
62
- "warning-100": defaultColors.yellow["100"],
63
- "warning-200": defaultColors.yellow["200"],
64
- "warning-300": defaultColors.yellow["300"],
65
- "warning-400": defaultColors.yellow["400"],
66
- "warning-500": defaultColors.yellow["500"],
67
- "warning-600": defaultColors.yellow["600"],
68
- "warning-700": defaultColors.yellow["700"],
69
- "warning-800": defaultColors.yellow["800"],
70
- "warning-900": defaultColors.yellow["900"],
71
- "warning-950": defaultColors.yellow["950"],
72
- "danger-50": defaultColors.red["50"],
73
- "danger-100": defaultColors.red["100"],
74
- "danger-200": defaultColors.red["200"],
75
- "danger-300": defaultColors.red["300"],
76
- "danger-400": defaultColors.red["400"],
77
- "danger-500": defaultColors.red["500"],
78
- "danger-600": defaultColors.red["600"],
79
- "danger-700": defaultColors.red["700"],
80
- "danger-800": defaultColors.red["800"],
81
- "danger-900": defaultColors.red["900"],
82
- "danger-950": defaultColors.red["950"]
83
- };
84
- const fontColors = {
85
- "for-white-bg-font": colors["neutral-600"],
86
- "for-black-bg-font": colors["neutral-100"],
87
- "neutral-50-font": colors["neutral-600"],
88
- "neutral-100-font": colors["neutral-600"],
89
- "neutral-200-font": colors["neutral-600"],
90
- "neutral-300-font": colors["neutral-600"],
91
- "neutral-400-font": colors["neutral-600"],
92
- "neutral-500-font": colors["neutral-100"],
93
- "neutral-600-font": colors["neutral-100"],
94
- "neutral-700-font": colors["neutral-100"],
95
- "neutral-800-font": colors["neutral-100"],
96
- "neutral-900-font": colors["neutral-100"],
97
- "neutral-950-font": colors["neutral-100"],
98
- "primary-50-font": colors["neutral-600"],
99
- "primary-100-font": colors["neutral-600"],
100
- "primary-200-font": colors["neutral-600"],
101
- "primary-300-font": colors["neutral-600"],
102
- "primary-400-font": colors["neutral-600"],
103
- "primary-500-font": colors["neutral-100"],
104
- "primary-600-font": colors["neutral-100"],
105
- "primary-700-font": colors["neutral-100"],
106
- "primary-800-font": colors["neutral-100"],
107
- "primary-900-font": colors["neutral-100"],
108
- "primary-950-font": colors["neutral-100"],
109
- "secondary-50-font": colors["neutral-600"],
110
- "secondary-100-font": colors["neutral-600"],
111
- "secondary-200-font": colors["neutral-600"],
112
- "secondary-300-font": colors["neutral-600"],
113
- "secondary-400-font": colors["neutral-600"],
114
- "secondary-500-font": colors["neutral-100"],
115
- "secondary-600-font": colors["neutral-100"],
116
- "secondary-700-font": colors["neutral-100"],
117
- "secondary-800-font": colors["neutral-100"],
118
- "secondary-900-font": colors["neutral-100"],
119
- "secondary-950-font": colors["neutral-100"],
120
- "success-50-font": colors["neutral-600"],
121
- "success-100-font": colors["neutral-600"],
122
- "success-200-font": colors["neutral-600"],
123
- "success-300-font": colors["neutral-600"],
124
- "success-400-font": colors["neutral-600"],
125
- "success-500-font": colors["neutral-100"],
126
- "success-600-font": colors["neutral-100"],
127
- "success-700-font": colors["neutral-100"],
128
- "success-800-font": colors["neutral-100"],
129
- "success-900-font": colors["neutral-100"],
130
- "success-950-font": colors["neutral-100"],
131
- "info-50-font": colors["neutral-600"],
132
- "info-100-font": colors["neutral-600"],
133
- "info-200-font": colors["neutral-600"],
134
- "info-300-font": colors["neutral-600"],
135
- "info-400-font": colors["neutral-600"],
136
- "info-500-font": colors["neutral-100"],
137
- "info-600-font": colors["neutral-100"],
138
- "info-700-font": colors["neutral-100"],
139
- "info-800-font": colors["neutral-100"],
140
- "info-900-font": colors["neutral-100"],
141
- "info-950-font": colors["neutral-100"],
142
- "warning-50-font": colors["neutral-600"],
143
- "warning-100-font": colors["neutral-600"],
144
- "warning-200-font": colors["neutral-600"],
145
- "warning-300-font": colors["neutral-600"],
146
- "warning-400-font": colors["neutral-600"],
147
- "warning-500-font": colors["neutral-100"],
148
- "warning-600-font": colors["neutral-100"],
149
- "warning-700-font": colors["neutral-100"],
150
- "warning-800-font": colors["neutral-100"],
151
- "warning-900-font": colors["neutral-100"],
152
- "warning-950-font": colors["neutral-100"],
153
- "danger-50-font": colors["neutral-600"],
154
- "danger-100-font": colors["neutral-600"],
155
- "danger-200-font": colors["neutral-600"],
156
- "danger-300-font": colors["neutral-600"],
157
- "danger-400-font": colors["neutral-600"],
158
- "danger-500-font": colors["neutral-100"],
159
- "danger-600-font": colors["neutral-100"],
160
- "danger-700-font": colors["neutral-100"],
161
- "danger-800-font": colors["neutral-100"],
162
- "danger-900-font": colors["neutral-100"],
163
- "danger-950-font": colors["neutral-100"]
164
- };
165
- export default {
166
- content: [
167
- // For module dev
168
- "./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
169
- "./src/runtime/**/*.stories.ts",
170
- "./playground/app.vue",
171
- "./playground/components/**/*.{vue,js,ts,jsx,tsx}",
172
- "./playground/pages/**/*.{vue,js,ts,jsx,tsx}",
173
- "./playground/layouts/**/*.{vue,js,ts,jsx,tsx}",
174
- "../ui-module/src/**/*.{vue,js,ts,jsx,tsx}",
175
- // For project dev
176
- "./app.vue",
177
- "./components/**/*.{vue,js,ts,jsx,tsx}",
178
- "./pages/**/*.{vue,js,ts,jsx,tsx}",
179
- "./layouts/**/*.{vue,js,ts,jsx,tsx}",
180
- // If this config is used in a project
181
- "./node_modules/@antify/*/dist/**/*.{js,vue,ts}",
182
- "./node_modules/@antify/*/src/**/*.{js,vue,ts}"
183
- ],
184
- theme: {
185
- colors: {
186
- ...colors,
187
- ...fontColors
188
- },
189
- extend: {
190
- fontSize: {
191
- "2xs": ["0.625rem", "0.75rem"]
192
- },
193
- animation: {
194
- skeleton: "skeleton 2s ease-out infinite"
195
- },
196
- keyframes: {
197
- "skeleton": {
198
- "0%, 100%": { "background-color": colors["neutral-300"] },
199
- "50%": { "background-color": colors["neutral-100"] }
200
- }
201
- }
202
- }
203
- }
204
- };
1
+ import tailwindConfig from "@antify/ui/config";
2
+ tailwindConfig.content = [
3
+ // For module dev
4
+ "./src/runtime/**/*.{vue,js,ts,jsx,tsx}",
5
+ "./src/runtime/**/*.stories.ts",
6
+ "./playground/app.vue",
7
+ "./playground/components/**/*.{vue,js,ts,jsx,tsx}",
8
+ "./playground/pages/**/*.{vue,js,ts,jsx,tsx}",
9
+ "./playground/layouts/**/*.{vue,js,ts,jsx,tsx}",
10
+ "../ui-module/src/**/*.{vue,js,ts,jsx,tsx}",
11
+ // For project dev
12
+ "./app.vue",
13
+ "./components/**/*.{vue,js,ts,jsx,tsx}",
14
+ "./pages/**/*.{vue,js,ts,jsx,tsx}",
15
+ "./layouts/**/*.{vue,js,ts,jsx,tsx}",
16
+ // If this config is used in a project
17
+ "./node_modules/@antify/*/dist/**/*.{js,vue,ts}",
18
+ "./node_modules/@antify/*/src/**/*.{js,vue,ts}"
19
+ ];
20
+ export default tailwindConfig;
package/dist/types.d.mts CHANGED
@@ -5,4 +5,4 @@ import type { } from './module.js'
5
5
 
6
6
 
7
7
 
8
- export type { AntCheckboxSize, AntCheckboxType, AntDateInputTypes, AntKeycapSize, AntRadioSize, AntRadioTypes, AntSpinnerSize, AntTableAlign, AntTableRowTypes, AntTableSize, AntTableSortDirection, AntTagInputSize, AntTagSize, BaseInputType, ButtonType, CollapseStrategy, CornerPosition, Direction, Grouped, IconSize, InputState, ListGroupItemState, NavbarItemTypes, Position, SelectOption, Size, State, SwitcherOption, TabItem, TabItemState, TableHeader, TagState, TextInputType, Toast, default } from './module.js'
8
+ export type { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -5,4 +5,4 @@ import type { } from './module'
5
5
 
6
6
 
7
7
 
8
- export type { AntCheckboxSize, AntCheckboxType, AntDateInputTypes, AntKeycapSize, AntRadioSize, AntRadioTypes, AntSpinnerSize, AntTableAlign, AntTableRowTypes, AntTableSize, AntTableSortDirection, AntTagInputSize, AntTagSize, BaseInputType, ButtonType, CollapseStrategy, CornerPosition, Direction, Grouped, IconSize, InputState, ListGroupItemState, NavbarItemTypes, Position, SelectOption, Size, State, SwitcherOption, TabItem, TabItemState, TableHeader, TagState, TextInputType, Toast, default } from './module'
8
+ export type { default } from './module'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antify/ui-module",
3
3
  "private": false,
4
- "version": "1.7.2",
4
+ "version": "1.8.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
@@ -12,69 +12,39 @@
12
12
  }
13
13
  },
14
14
  "files": [
15
- "dist",
16
- "src/runtime/components/**/*.vue"
15
+ "dist"
17
16
  ],
18
17
  "main": "./dist/module.cjs",
19
18
  "types": "./dist/types.d.ts",
20
19
  "dependencies": {
20
+ "@antify/ui": "^1.0.1",
21
21
  "@antify/validate": "1.14.0",
22
- "@fortawesome/free-regular-svg-icons": "^6.5.1",
23
- "@fortawesome/free-solid-svg-icons": "^6.5.1",
24
- "@fortawesome/vue-fontawesome": "^3.0.5",
22
+ "@fortawesome/vue-fontawesome": "^3.0.8",
25
23
  "@nuxt/kit": "^3.9.3",
26
- "@tailwindcss/forms": "^0.5.7",
27
- "@tiptap/extension-heading": "^2.1.16",
28
- "@tiptap/extension-underline": "^2.1.16",
29
- "@tiptap/pm": "^2.1.16",
30
- "@tiptap/starter-kit": "^2.1.16",
31
- "@tiptap/vue-3": "^2.1.16",
32
- "@vuepic/vue-datepicker": "^6.1.0",
33
- "@vueuse/components": "^10.7.2",
34
24
  "@vueuse/core": "^10.7.2",
35
- "@vueuse/router": "^10.7.2",
36
- "autoprefixer": "^10.4.17",
37
- "postcss": "^8.4.33",
38
- "tailwindcss": "^3.4.1",
39
- "vue": "^3.4.15",
40
- "vue-router": "^4.2.5"
25
+ "tailwindcss": "^3.4.10",
26
+ "vue": "^3.4.29"
41
27
  },
42
28
  "devDependencies": {
43
29
  "@faker-js/faker": "^8.3.1",
30
+ "@fortawesome/free-solid-svg-icons": "^6.6.0",
44
31
  "@nuxt/eslint-config": "latest",
45
32
  "@nuxt/module-builder": "latest",
46
- "@storybook/addon-docs": "^8.0.0",
47
- "@storybook/addon-essentials": "^8.0.0",
48
- "@storybook/addon-interactions": "^8.0.0",
49
- "@storybook/addon-links": "^8.0.0",
50
- "@storybook/addon-mdx-gfm": "^8.0.0",
51
- "@storybook/blocks": "^8.0.0",
52
- "@storybook/test": "^8.0.0",
53
- "@storybook/vue3": "^8.0.0",
54
- "@storybook/vue3-vite": "^8.0.0",
55
- "@vitejs/plugin-vue": "^5.0.4",
56
33
  "autoprefixer": "^10.4.16",
57
- "chromatic": "^11.0.0",
34
+ "defu": "^6.1.4",
58
35
  "eslint": "latest",
59
36
  "eslint-plugin-storybook": "latest",
60
37
  "nuxt": "^3.9.3",
61
38
  "ofetch": "^1.3.3",
62
39
  "standard-version": "latest",
63
- "storybook": "^8.0.0",
64
40
  "typescript": "^5.3.3",
65
- "unbuild": "^2.0.0",
66
- "vite": "^5.1.4",
67
- "vue-cli-plugin-tailwind": "3.0.0"
41
+ "unbuild": "^2.0.0"
68
42
  },
69
43
  "scripts": {
70
44
  "build": "nuxt-module-build",
71
45
  "dev": "nuxi dev playground",
72
46
  "dev:build": "nuxi build playground",
73
47
  "dev:prepare": "nuxt-module-build build && nuxi prepare playground",
74
- "storybook": "storybook dev -p 6006 --no-open",
75
- "build-storybook": "storybook build",
76
- "release": "standard-version && git push --follow-tags && pnpm publish --access public",
77
- "release-minor": "standard-version -- --release-as minor && git push --follow-tags && pnpm publish",
78
- "chromatic": "npx chromatic --project-token=chpt_2abc12269958fdc"
48
+ "release": "standard-version && git push --follow-tags && pnpm publish --access public"
79
49
  }
80
50
  }
@@ -1,64 +0,0 @@
1
- <script lang="ts" setup>
2
- import AntAccordionItem from './AntAccordionItem.vue';
3
- import {onMounted, ref} from 'vue';
4
- import {CollapseStrategy} from './__types/AntAccordion.types';
5
-
6
- const props = withDefaults(defineProps<{
7
- items: {
8
- label?: string;
9
- content?: string;
10
- isOpen?: boolean;
11
- iconLeft?: boolean;
12
- }[];
13
- collapseStrategy?: CollapseStrategy;
14
- }>(), {
15
- collapseStrategy: CollapseStrategy.single
16
- });
17
-
18
- const openItems = ref<number[]>([]);
19
-
20
- onMounted(() => {
21
- openItems.value = props.items
22
- .map((item, index) => item.isOpen ? index : -1)
23
- .filter((index) => index !== -1);
24
- });
25
-
26
- function onOpen(index: number) {
27
- if (props.collapseStrategy === CollapseStrategy.single) {
28
- openItems.value = [index];
29
- } else {
30
- openItems.value = [...openItems.value, index];
31
- }
32
- }
33
-
34
- function onClose(index: number) {
35
- if (props.collapseStrategy === CollapseStrategy.single) {
36
- openItems.value = [];
37
- } else {
38
- openItems.value = openItems.value.filter((item) => item !== index);
39
- }
40
- }
41
- </script>
42
-
43
- <template>
44
- <div class="w-full h-full flex flex-col bg-neutral-300 gap-px">
45
- <slot>
46
- <AntAccordionItem
47
- v-for="(item, index) in items"
48
- :key="`accordion-item-${index}`"
49
- :label="item.label"
50
- :is-open="openItems.includes(index)"
51
- :icon-left="item.iconLeft"
52
- @open="() => onOpen(index)"
53
- @close="() => onClose(index)"
54
- >
55
- <slot
56
- name="item-content"
57
- v-bind="{item, index}"
58
- >
59
- <div v-html="item.content" />
60
- </slot>
61
- </AntAccordionItem>
62
- </slot>
63
- </div>
64
- </template>
@@ -1,81 +0,0 @@
1
- <script lang="ts" setup>
2
- import {faAngleDown, faAngleUp, faQuestionCircle} from '@fortawesome/free-solid-svg-icons';
3
- import AntIcon from './AntIcon.vue';
4
- import AntTransitionCollapseHeight from './transitions/AntTransitionCollapseHeight.vue';
5
- import {IconSize} from './__types/AntIcon.types';
6
-
7
- const props = withDefaults(defineProps<{
8
- isOpen: boolean;
9
- label?: string;
10
- collapseTransition?: string;
11
- iconLeft: boolean;
12
- }>(), {
13
- collapseTransition: 'slide',
14
- iconLeft: false,
15
- });
16
- const emit = defineEmits(['close', 'open']);
17
-
18
- // TODO:: Stehengeblieben: delays machen
19
- function onClick() {
20
- if (props.isOpen) {
21
- emit('close');
22
- } else {
23
- emit('open');
24
- }
25
- }
26
- </script>
27
-
28
- <template>
29
- <div
30
- class="p-2 select-none cursor-pointer transition-colors"
31
- :class="{'bg-primary-500 text-primary-500-font': isOpen, 'bg-white text-for-white-bg-font': !isOpen}"
32
- @click="onClick"
33
- >
34
- <slot
35
- name="label"
36
- v-bind="{ isOpen: isOpen }"
37
- >
38
- <div
39
- class="hover:text-gray-800 flex justify-between items-center"
40
- >
41
- <div class="flex items-center gap-2">
42
- <AntIcon
43
- v-if="iconLeft"
44
- :size="IconSize.sm"
45
- :icon="faQuestionCircle"
46
- :color="isOpen ? 'text-primary-500-font' : 'text-for-white-bg-font'"
47
- />
48
-
49
- <span class="text-sm font-semibold">
50
- {{ label }}
51
- </span>
52
- </div>
53
-
54
- <AntIcon
55
- :icon="isOpen ? faAngleUp : faAngleDown"
56
- :color="isOpen ? 'text-primary-500-font' : undefined"
57
- />
58
- </div>
59
- </slot>
60
- </div>
61
-
62
- <AntTransitionCollapseHeight>
63
- <div
64
- v-show="isOpen"
65
- class="bg-white overflow-hidden -mt-px"
66
- >
67
- <Transition name="bounce">
68
- <div
69
- v-show="isOpen"
70
- class="p-2 text-sm bg-white text-for-white-bg-font"
71
- >
72
- <slot />
73
- </div>
74
- </Transition>
75
- </div>
76
- </AntTransitionCollapseHeight>
77
- </template>
78
-
79
- <style scoped>
80
- .bounce-enter-active{animation:bounce .6s}.bounce-leave-active{animation:bounce .6s reverse}@keyframes bounce{0%{opacity:0;transform:translateY(-100%)}50%{opacity:1;transform:translateY(5%)}to{opacity:1;transform:translateY(0)}}.slide-enter-active{animation:slide 1s}.slide-leave-active{animation:slide 1s reverse}
81
- </style>
@@ -1,146 +0,0 @@
1
- <script lang="ts" setup>
2
- import {computed, onMounted, useSlots} from 'vue';
3
- import {handleEnumValidation} from '../handler';
4
- import {
5
- faCheckCircle,
6
- faCircleQuestion,
7
- faExclamationCircle,
8
- faExclamationTriangle,
9
- faInfoCircle,
10
- faXmark
11
- } from '@fortawesome/free-solid-svg-icons';
12
- import AntIcon from './AntIcon.vue';
13
- import AntTooltip from './AntTooltip.vue';
14
- import AntSkeleton from './AntSkeleton.vue';
15
- import {InputState, Position} from '../enums';
16
- import {IconSize} from './__types';
17
-
18
- defineEmits(['close']);
19
-
20
- const props = withDefaults(defineProps<{
21
- title?: string | null,
22
- state?: InputState,
23
- icon?: boolean,
24
- expanded?: boolean,
25
- questionMarkText?: string | null,
26
- skeleton?: boolean,
27
- dismissBtn?: boolean,
28
- }>(), {
29
- title: null,
30
- state: InputState.base,
31
- icon: true,
32
- expanded: false,
33
- questionMarkText: null,
34
- skeleton: false,
35
- dismissBtn: true,
36
- });
37
-
38
- const icons = {
39
- [InputState.base]: faInfoCircle,
40
- [InputState.info]: faInfoCircle,
41
- [InputState.danger]: faExclamationCircle,
42
- [InputState.warning]: faExclamationTriangle,
43
- [InputState.success]: faCheckCircle,
44
- };
45
-
46
- const _icon = computed(() => icons[props.state]);
47
- const classes = computed(() => {
48
- const variants: Record<InputState, string> = {
49
- [InputState.danger]: 'bg-danger-100 text-danger-700',
50
- [InputState.info]: 'bg-info-100 text-info-700',
51
- [InputState.base]: 'bg-neutral-100 text-neutral-100-font',
52
- [InputState.success]: 'bg-success-100 text-success-700',
53
- [InputState.warning]: 'bg-warning-100 text-warning-700',
54
- };
55
-
56
- return {
57
- 'inline-flex flex-col gap-2 rounded-md p-2 transition-colors text-sm relative': true,
58
- 'w-full': props.expanded,
59
- [variants[props.state]]: true,
60
- };
61
- });
62
- const hasDefaultSlot = computed(() => useSlots()['default'] || false);
63
- const hasQuestionMark = computed(() => (useSlots()['question-mark-text'] || false) || props.questionMarkText);
64
- const iconColor = computed(() => {
65
- const variants = {
66
- [InputState.base]: 'text-neutral-100-font',
67
- [InputState.danger]: 'text-danger-700',
68
- [InputState.info]: 'text-info-700',
69
- [InputState.success]: 'text-success-700',
70
- [InputState.warning]: 'text-warning-700',
71
- };
72
-
73
- return variants[props.state];
74
- });
75
-
76
- onMounted(() => {
77
- handleEnumValidation(props.state, InputState, 'state');
78
- });
79
- </script>
80
-
81
- <template>
82
- <div
83
- :class="classes"
84
- data-e2e="alert"
85
- >
86
- <AntSkeleton
87
- v-if="skeleton"
88
- absolute
89
- rounded
90
- />
91
-
92
- <div
93
- v-if="icon || hasQuestionMark || dismissBtn || title"
94
- class="inline-flex items-center justify-between w-content gap-2"
95
- :class="{'invisible': skeleton}"
96
- >
97
- <div class="inline-flex items-center gap-2">
98
- <AntIcon
99
- v-if="icon"
100
- :icon="_icon"
101
- :color="iconColor"
102
- :size="IconSize.sm"
103
- />
104
-
105
- <div
106
- :class="{'font-semibold': hasDefaultSlot}"
107
- >
108
- <slot name="title">
109
- {{ title }}
110
- </slot>
111
- </div>
112
- </div>
113
-
114
- <div class="flex gap-2">
115
- <div v-if="hasQuestionMark">
116
- <slot name="questionMarkText">
117
- <AntTooltip :position="Position.bottom">
118
- <AntIcon
119
- :icon="faCircleQuestion"
120
- :color="iconColor"
121
- :size="IconSize.sm"
122
- />
123
-
124
- <template #content>
125
- {{ questionMarkText }}
126
- </template>
127
- </AntTooltip>
128
- </slot>
129
- </div>
130
-
131
- <AntIcon
132
- v-if="dismissBtn"
133
- :icon="faXmark"
134
- class="cursor-pointer"
135
- :color="iconColor"
136
- :size="IconSize.sm"
137
- @click="() => $emit('close')"
138
- />
139
- </div>
140
- </div>
141
-
142
- <div v-if="hasDefaultSlot">
143
- <slot />
144
- </div>
145
- </div>
146
- </template>
@@ -1,34 +0,0 @@
1
- <script setup lang="ts">
2
- import {computed} from 'vue';
3
- import {Size} from '../enums/Size.enum';
4
-
5
- const props = withDefaults(defineProps<{
6
- size?: Size;
7
- padding?: boolean;
8
- expanded?: boolean;
9
- }>(), {
10
- size: Size.md,
11
- padding: true,
12
- expanded: false
13
- });
14
-
15
- const cardClass = computed(() => ({
16
- 'inline-block': true,
17
- 'w-full': props.expanded,
18
- 'p-0': !props.padding,
19
- 'p-2.5': props.size === Size.lg && props.padding,
20
- 'p-2': props.size === Size.md && props.padding,
21
- 'p-1.5': props.size === Size.sm || props.size === Size.xs && props.padding,
22
- 'p-1': props.size === Size.xs2 && props.padding,
23
- })
24
- );
25
- </script>
26
-
27
- <template>
28
- <div
29
- :class="cardClass"
30
- class="bg-white border border-neutral-300 rounded-md"
31
- >
32
- <slot />
33
- </div>
34
- </template>
@@ -1,16 +0,0 @@
1
- <script setup lang="ts">
2
- withDefaults(defineProps<{
3
- padding?: boolean
4
- }>(), {
5
- padding: true
6
- })
7
- </script>
8
-
9
- <template>
10
- <div
11
- :class="{ 'p-2.5': padding }"
12
- class="bg-white overflow-auto"
13
- >
14
- <slot />
15
- </div>
16
- </template>