@eslamdevui/ui 3.3.1 → 3.3.2-beta.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 (287) hide show
  1. package/.nuxt/ui/button.ts +42 -42
  2. package/.nuxt/ui/command-palette.ts +2 -1
  3. package/.nuxt/ui/file-upload.ts +295 -0
  4. package/.nuxt/ui/index.ts +2 -0
  5. package/.nuxt/ui/kbd.ts +167 -3
  6. package/.nuxt/ui/scroll-to-section.ts +3 -0
  7. package/.nuxt/ui/table.ts +14 -0
  8. package/.nuxt/ui/tabs.ts +4 -2
  9. package/.nuxt/ui/toast.ts +8 -15
  10. package/.nuxt/ui/tooltip.ts +1 -1
  11. package/cli/templates.mjs +4 -3
  12. package/dist/module.d.mts +15 -1
  13. package/dist/module.json +2 -2
  14. package/dist/module.mjs +3 -3
  15. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  16. package/dist/runtime/components/Alert.vue.d.ts +2 -2
  17. package/dist/runtime/components/App.vue.d.ts +1 -1
  18. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  19. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  20. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  21. package/dist/runtime/components/Banner.vue.d.ts +1 -5
  22. package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
  23. package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
  24. package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
  25. package/dist/runtime/components/Button.vue +6 -6
  26. package/dist/runtime/components/Button.vue.d.ts +1 -5
  27. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  28. package/dist/runtime/components/Calendar.vue.d.ts +1 -1
  29. package/dist/runtime/components/Card.vue.d.ts +1 -1
  30. package/dist/runtime/components/Carousel.vue +18 -14
  31. package/dist/runtime/components/Carousel.vue.d.ts +1 -1
  32. package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
  33. package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
  34. package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
  35. package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
  36. package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
  37. package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
  38. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
  39. package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
  40. package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
  41. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  42. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  43. package/dist/runtime/components/ColorPicker.vue +1 -2
  44. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  45. package/dist/runtime/components/CommandPalette.vue +4 -0
  46. package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
  47. package/dist/runtime/components/Container.vue.d.ts +1 -1
  48. package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
  49. package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
  50. package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
  51. package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
  52. package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
  53. package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
  54. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
  55. package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
  56. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
  57. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
  58. package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
  59. package/dist/runtime/components/Drawer.vue +4 -4
  60. package/dist/runtime/components/Drawer.vue.d.ts +6 -1
  61. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
  62. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
  63. package/dist/runtime/components/Error.vue.d.ts +1 -1
  64. package/dist/runtime/components/FileUpload.vue +242 -0
  65. package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
  66. package/dist/runtime/components/Footer.vue.d.ts +1 -1
  67. package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
  68. package/dist/runtime/components/Form.vue.d.ts +5 -4
  69. package/dist/runtime/components/FormField.vue +2 -2
  70. package/dist/runtime/components/FormField.vue.d.ts +4 -4
  71. package/dist/runtime/components/Header.vue.d.ts +1 -1
  72. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  73. package/dist/runtime/components/Input.vue +10 -7
  74. package/dist/runtime/components/Input.vue.d.ts +9 -9
  75. package/dist/runtime/components/InputMenu.vue +17 -10
  76. package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
  77. package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
  78. package/dist/runtime/components/InputTags.vue +2 -0
  79. package/dist/runtime/components/InputTags.vue.d.ts +5 -3
  80. package/dist/runtime/components/Kbd.vue +2 -1
  81. package/dist/runtime/components/Kbd.vue.d.ts +5 -1
  82. package/dist/runtime/components/Link.vue +6 -5
  83. package/dist/runtime/components/Link.vue.d.ts +1 -3
  84. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  85. package/dist/runtime/components/Main.vue.d.ts +1 -1
  86. package/dist/runtime/components/Modal.vue.d.ts +2 -2
  87. package/dist/runtime/components/NavigationMenu.vue +3 -2
  88. package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
  89. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  90. package/dist/runtime/components/Page.vue.d.ts +1 -1
  91. package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
  92. package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
  93. package/dist/runtime/components/PageAside.vue.d.ts +1 -1
  94. package/dist/runtime/components/PageBody.vue.d.ts +1 -1
  95. package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
  96. package/dist/runtime/components/PageCard.vue.d.ts +1 -1
  97. package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
  98. package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
  99. package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
  100. package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
  101. package/dist/runtime/components/PageHero.vue.d.ts +1 -1
  102. package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
  103. package/dist/runtime/components/PageList.vue.d.ts +1 -1
  104. package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
  105. package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
  106. package/dist/runtime/components/PageSection.vue.d.ts +1 -1
  107. package/dist/runtime/components/Pagination.vue.d.ts +1 -1
  108. package/dist/runtime/components/PinInput.vue.d.ts +1 -1
  109. package/dist/runtime/components/Popover.vue +2 -1
  110. package/dist/runtime/components/Popover.vue.d.ts +8 -2
  111. package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
  112. package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
  113. package/dist/runtime/components/PricingTable.vue +14 -2
  114. package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
  115. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  116. package/dist/runtime/components/RadioGroup.vue +1 -1
  117. package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
  118. package/dist/runtime/components/ScrollToSection.vue +62 -0
  119. package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
  120. package/dist/runtime/components/Select.vue.d.ts +1 -1
  121. package/dist/runtime/components/SelectMenu.vue +9 -6
  122. package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
  123. package/dist/runtime/components/Separator.vue.d.ts +1 -1
  124. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  125. package/dist/runtime/components/Slideover.vue.d.ts +2 -2
  126. package/dist/runtime/components/Slider.vue.d.ts +5 -5
  127. package/dist/runtime/components/Stepper.vue.d.ts +1 -1
  128. package/dist/runtime/components/Switch.vue.d.ts +1 -1
  129. package/dist/runtime/components/Table.vue +83 -8
  130. package/dist/runtime/components/Table.vue.d.ts +20 -4
  131. package/dist/runtime/components/Tabs.vue +36 -16
  132. package/dist/runtime/components/Tabs.vue.d.ts +8 -3
  133. package/dist/runtime/components/Textarea.vue +10 -7
  134. package/dist/runtime/components/Textarea.vue.d.ts +10 -9
  135. package/dist/runtime/components/Timeline.vue.d.ts +1 -1
  136. package/dist/runtime/components/Toast.vue +12 -4
  137. package/dist/runtime/components/Toast.vue.d.ts +14 -13
  138. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  139. package/dist/runtime/components/Tooltip.vue +2 -1
  140. package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
  141. package/dist/runtime/components/Tree.vue +3 -2
  142. package/dist/runtime/components/Tree.vue.d.ts +1 -1
  143. package/dist/runtime/components/User.vue.d.ts +1 -1
  144. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
  145. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  146. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
  147. package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
  148. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  149. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  150. package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
  151. package/dist/runtime/components/content/ContentSearch.vue +1 -2
  152. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
  153. package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
  154. package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
  155. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
  156. package/dist/runtime/components/prose/A.vue.d.ts +1 -1
  157. package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
  158. package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
  159. package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
  160. package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
  161. package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
  162. package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
  163. package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
  164. package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
  165. package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
  166. package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
  167. package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
  168. package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
  169. package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
  170. package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
  171. package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
  172. package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
  173. package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
  174. package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
  175. package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
  176. package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
  177. package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
  178. package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
  179. package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
  180. package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
  181. package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
  182. package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
  183. package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
  184. package/dist/runtime/components/prose/P.vue.d.ts +1 -1
  185. package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
  186. package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
  187. package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
  188. package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
  189. package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
  190. package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
  191. package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
  192. package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
  193. package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
  194. package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
  195. package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
  196. package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
  197. package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
  198. package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
  199. package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
  200. package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
  201. package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
  202. package/dist/runtime/composables/defineShortcuts.js +5 -3
  203. package/dist/runtime/composables/useFileUpload.d.ts +19 -0
  204. package/dist/runtime/composables/useFileUpload.js +63 -0
  205. package/dist/runtime/composables/useFormField.d.ts +1 -4
  206. package/dist/runtime/composables/useFormField.js +5 -2
  207. package/dist/runtime/composables/useKbd.d.ts +1 -1
  208. package/dist/runtime/composables/useLocale.js +2 -2
  209. package/dist/runtime/composables/useOverlay.d.ts +28 -1
  210. package/dist/runtime/composables/useOverlay.js +4 -4
  211. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  212. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  213. package/dist/runtime/inertia/stubs.d.ts +1 -0
  214. package/dist/runtime/inertia/stubs.js +4 -2
  215. package/dist/runtime/locale/ar.js +2 -1
  216. package/dist/runtime/locale/az.js +1 -0
  217. package/dist/runtime/locale/bg.js +1 -0
  218. package/dist/runtime/locale/bn.js +1 -0
  219. package/dist/runtime/locale/ca.js +1 -0
  220. package/dist/runtime/locale/ckb.js +2 -1
  221. package/dist/runtime/locale/cs.js +1 -0
  222. package/dist/runtime/locale/da.js +1 -0
  223. package/dist/runtime/locale/de.js +1 -0
  224. package/dist/runtime/locale/el.js +1 -0
  225. package/dist/runtime/locale/en.js +1 -0
  226. package/dist/runtime/locale/es.js +1 -0
  227. package/dist/runtime/locale/et.js +1 -0
  228. package/dist/runtime/locale/fa_ir.js +1 -0
  229. package/dist/runtime/locale/fi.js +1 -0
  230. package/dist/runtime/locale/fr.js +1 -0
  231. package/dist/runtime/locale/he.js +1 -0
  232. package/dist/runtime/locale/hi.js +2 -1
  233. package/dist/runtime/locale/hu.js +1 -0
  234. package/dist/runtime/locale/hy.js +1 -0
  235. package/dist/runtime/locale/id.js +1 -0
  236. package/dist/runtime/locale/it.js +1 -0
  237. package/dist/runtime/locale/ja.js +1 -0
  238. package/dist/runtime/locale/kk.js +1 -0
  239. package/dist/runtime/locale/km.js +2 -1
  240. package/dist/runtime/locale/ko.js +1 -0
  241. package/dist/runtime/locale/ky.js +1 -0
  242. package/dist/runtime/locale/lb.js +1 -0
  243. package/dist/runtime/locale/lt.js +1 -0
  244. package/dist/runtime/locale/mn.js +1 -0
  245. package/dist/runtime/locale/ms.js +1 -0
  246. package/dist/runtime/locale/nb_no.js +1 -0
  247. package/dist/runtime/locale/nl.js +1 -0
  248. package/dist/runtime/locale/pl.js +1 -0
  249. package/dist/runtime/locale/pt.js +1 -0
  250. package/dist/runtime/locale/pt_br.js +1 -0
  251. package/dist/runtime/locale/ro.js +1 -0
  252. package/dist/runtime/locale/ru.js +1 -0
  253. package/dist/runtime/locale/sk.js +1 -0
  254. package/dist/runtime/locale/sl.js +1 -0
  255. package/dist/runtime/locale/sv.js +1 -0
  256. package/dist/runtime/locale/th.js +1 -0
  257. package/dist/runtime/locale/tj.js +1 -0
  258. package/dist/runtime/locale/tr.js +1 -0
  259. package/dist/runtime/locale/ug_cn.js +1 -0
  260. package/dist/runtime/locale/uk.js +1 -0
  261. package/dist/runtime/locale/ur.js +1 -0
  262. package/dist/runtime/locale/uz.js +1 -0
  263. package/dist/runtime/locale/vi.js +1 -0
  264. package/dist/runtime/locale/zh_cn.js +1 -0
  265. package/dist/runtime/locale/zh_tw.js +1 -0
  266. package/dist/runtime/types/index.d.ts +2 -0
  267. package/dist/runtime/types/index.js +2 -0
  268. package/dist/runtime/types/locale.d.ts +1 -0
  269. package/dist/runtime/utils/content.d.ts +18 -6
  270. package/dist/runtime/utils/content.js +51 -25
  271. package/dist/runtime/utils/index.d.ts +1 -0
  272. package/dist/runtime/utils/index.js +9 -0
  273. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  274. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  275. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  276. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
  277. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  278. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  279. package/dist/runtime/vue/stubs.d.ts +1 -0
  280. package/dist/runtime/vue/stubs.js +3 -1
  281. package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
  282. package/dist/unplugin.d.mts +2 -1
  283. package/dist/unplugin.mjs +6 -3
  284. package/dist/vite.mjs +1 -1
  285. package/package.json +57 -41
  286. package/dist/runtime/composables/useQuerySection.d.ts +0 -14
  287. package/dist/runtime/composables/useQuerySection.js +0 -44
package/.nuxt/ui/kbd.ts CHANGED
@@ -1,6 +1,17 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
1
11
  const variant = [
2
12
  "solid",
3
13
  "outline",
14
+ "soft",
4
15
  "subtle"
5
16
  ] as const
6
17
 
@@ -13,10 +24,20 @@ const size = [
13
24
  export default {
14
25
  "base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",
15
26
  "variants": {
27
+ "color": {
28
+ "primary": "",
29
+ "secondary": "",
30
+ "success": "",
31
+ "info": "",
32
+ "warning": "",
33
+ "error": "",
34
+ "neutral": ""
35
+ },
16
36
  "variant": {
17
- "solid": "bg-inverted text-inverted",
18
- "outline": "bg-default text-highlighted ring ring-inset ring-accented",
19
- "subtle": "bg-elevated text-default ring ring-inset ring-accented"
37
+ "solid": "",
38
+ "outline": "",
39
+ "soft": "",
40
+ "subtle": ""
20
41
  },
21
42
  "size": {
22
43
  "sm": "h-4 min-w-[16px] text-[10px]",
@@ -24,8 +45,151 @@ export default {
24
45
  "lg": "h-6 min-w-[24px] text-[12px]"
25
46
  }
26
47
  },
48
+ "compoundVariants": [
49
+ {
50
+ "color": "primary" as typeof color[number],
51
+ "variant": "solid" as typeof variant[number],
52
+ "class": "text-inverted bg-primary"
53
+ },
54
+ {
55
+ "color": "secondary" as typeof color[number],
56
+ "variant": "solid" as typeof variant[number],
57
+ "class": "text-inverted bg-secondary"
58
+ },
59
+ {
60
+ "color": "success" as typeof color[number],
61
+ "variant": "solid" as typeof variant[number],
62
+ "class": "text-inverted bg-success"
63
+ },
64
+ {
65
+ "color": "info" as typeof color[number],
66
+ "variant": "solid" as typeof variant[number],
67
+ "class": "text-inverted bg-info"
68
+ },
69
+ {
70
+ "color": "warning" as typeof color[number],
71
+ "variant": "solid" as typeof variant[number],
72
+ "class": "text-inverted bg-warning"
73
+ },
74
+ {
75
+ "color": "error" as typeof color[number],
76
+ "variant": "solid" as typeof variant[number],
77
+ "class": "text-inverted bg-error"
78
+ },
79
+ {
80
+ "color": "primary" as typeof color[number],
81
+ "variant": "outline" as typeof variant[number],
82
+ "class": "ring ring-inset ring-primary/50 text-primary"
83
+ },
84
+ {
85
+ "color": "secondary" as typeof color[number],
86
+ "variant": "outline" as typeof variant[number],
87
+ "class": "ring ring-inset ring-secondary/50 text-secondary"
88
+ },
89
+ {
90
+ "color": "success" as typeof color[number],
91
+ "variant": "outline" as typeof variant[number],
92
+ "class": "ring ring-inset ring-success/50 text-success"
93
+ },
94
+ {
95
+ "color": "info" as typeof color[number],
96
+ "variant": "outline" as typeof variant[number],
97
+ "class": "ring ring-inset ring-info/50 text-info"
98
+ },
99
+ {
100
+ "color": "warning" as typeof color[number],
101
+ "variant": "outline" as typeof variant[number],
102
+ "class": "ring ring-inset ring-warning/50 text-warning"
103
+ },
104
+ {
105
+ "color": "error" as typeof color[number],
106
+ "variant": "outline" as typeof variant[number],
107
+ "class": "ring ring-inset ring-error/50 text-error"
108
+ },
109
+ {
110
+ "color": "primary" as typeof color[number],
111
+ "variant": "soft" as typeof variant[number],
112
+ "class": "text-primary bg-primary/10"
113
+ },
114
+ {
115
+ "color": "secondary" as typeof color[number],
116
+ "variant": "soft" as typeof variant[number],
117
+ "class": "text-secondary bg-secondary/10"
118
+ },
119
+ {
120
+ "color": "success" as typeof color[number],
121
+ "variant": "soft" as typeof variant[number],
122
+ "class": "text-success bg-success/10"
123
+ },
124
+ {
125
+ "color": "info" as typeof color[number],
126
+ "variant": "soft" as typeof variant[number],
127
+ "class": "text-info bg-info/10"
128
+ },
129
+ {
130
+ "color": "warning" as typeof color[number],
131
+ "variant": "soft" as typeof variant[number],
132
+ "class": "text-warning bg-warning/10"
133
+ },
134
+ {
135
+ "color": "error" as typeof color[number],
136
+ "variant": "soft" as typeof variant[number],
137
+ "class": "text-error bg-error/10"
138
+ },
139
+ {
140
+ "color": "primary" as typeof color[number],
141
+ "variant": "subtle" as typeof variant[number],
142
+ "class": "text-primary ring ring-inset ring-primary/25 bg-primary/10"
143
+ },
144
+ {
145
+ "color": "secondary" as typeof color[number],
146
+ "variant": "subtle" as typeof variant[number],
147
+ "class": "text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"
148
+ },
149
+ {
150
+ "color": "success" as typeof color[number],
151
+ "variant": "subtle" as typeof variant[number],
152
+ "class": "text-success ring ring-inset ring-success/25 bg-success/10"
153
+ },
154
+ {
155
+ "color": "info" as typeof color[number],
156
+ "variant": "subtle" as typeof variant[number],
157
+ "class": "text-info ring ring-inset ring-info/25 bg-info/10"
158
+ },
159
+ {
160
+ "color": "warning" as typeof color[number],
161
+ "variant": "subtle" as typeof variant[number],
162
+ "class": "text-warning ring ring-inset ring-warning/25 bg-warning/10"
163
+ },
164
+ {
165
+ "color": "error" as typeof color[number],
166
+ "variant": "subtle" as typeof variant[number],
167
+ "class": "text-error ring ring-inset ring-error/25 bg-error/10"
168
+ },
169
+ {
170
+ "color": "neutral" as typeof color[number],
171
+ "variant": "solid" as typeof variant[number],
172
+ "class": "text-inverted bg-inverted"
173
+ },
174
+ {
175
+ "color": "neutral" as typeof color[number],
176
+ "variant": "outline" as typeof variant[number],
177
+ "class": "ring ring-inset ring-accented text-default bg-default"
178
+ },
179
+ {
180
+ "color": "neutral" as typeof color[number],
181
+ "variant": "soft" as typeof variant[number],
182
+ "class": "text-default bg-elevated"
183
+ },
184
+ {
185
+ "color": "neutral" as typeof color[number],
186
+ "variant": "subtle" as typeof variant[number],
187
+ "class": "ring ring-inset ring-accented text-default bg-elevated"
188
+ }
189
+ ],
27
190
  "defaultVariants": {
28
191
  "variant": "outline" as typeof variant[number],
192
+ "color": "neutral" as typeof color[number],
29
193
  "size": "md" as typeof size[number]
30
194
  }
31
195
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ "base": ""
3
+ }
package/.nuxt/ui/table.ts CHANGED
@@ -1,3 +1,9 @@
1
+ const sticky = [
2
+ "true",
3
+ "header",
4
+ "footer"
5
+ ] as const
6
+
1
7
  const loadingAnimation = [
2
8
  "carousel",
3
9
  "carousel-inverse",
@@ -22,6 +28,7 @@ export default {
22
28
  "caption": "sr-only",
23
29
  "thead": "relative",
24
30
  "tbody": "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
31
+ "tfoot": "relative",
25
32
  "tr": "data-[selected=true]:bg-elevated/50",
26
33
  "th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
27
34
  "td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
@@ -38,7 +45,14 @@ export default {
38
45
  },
39
46
  "sticky": {
40
47
  "true": {
48
+ "thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur",
49
+ "tfoot": "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
50
+ },
51
+ "header": {
41
52
  "thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
53
+ },
54
+ "footer": {
55
+ "tfoot": "sticky bottom-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
42
56
  }
43
57
  },
44
58
  "loading": {
package/.nuxt/ui/tabs.ts CHANGED
@@ -35,11 +35,13 @@ export default {
35
35
  "group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75",
36
36
  "transition-colors"
37
37
  ],
38
- "content": "focus:outline-none w-full",
39
38
  "leadingIcon": "shrink-0",
40
39
  "leadingAvatar": "shrink-0",
41
40
  "leadingAvatarSize": "",
42
- "label": "truncate"
41
+ "label": "truncate",
42
+ "trailingBadge": "shrink-0",
43
+ "trailingBadgeSize": "sm",
44
+ "content": "focus:outline-none w-full"
43
45
  },
44
46
  "variants": {
45
47
  "color": {
package/.nuxt/ui/toast.ts CHANGED
@@ -23,45 +23,38 @@ export default {
23
23
  "avatar": "shrink-0",
24
24
  "avatarSize": "2xl",
25
25
  "actions": "flex gap-1.5 shrink-0",
26
- "progress": "absolute inset-x-0 bottom-0 h-1 z-[-1]",
26
+ "progress": "absolute inset-x-0 bottom-0",
27
27
  "close": "p-0"
28
28
  },
29
29
  "variants": {
30
30
  "color": {
31
31
  "primary": {
32
32
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
33
- "icon": "text-primary",
34
- "progress": "bg-primary"
33
+ "icon": "text-primary"
35
34
  },
36
35
  "secondary": {
37
36
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
38
- "icon": "text-secondary",
39
- "progress": "bg-secondary"
37
+ "icon": "text-secondary"
40
38
  },
41
39
  "success": {
42
40
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",
43
- "icon": "text-success",
44
- "progress": "bg-success"
41
+ "icon": "text-success"
45
42
  },
46
43
  "info": {
47
44
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",
48
- "icon": "text-info",
49
- "progress": "bg-info"
45
+ "icon": "text-info"
50
46
  },
51
47
  "warning": {
52
48
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",
53
- "icon": "text-warning",
54
- "progress": "bg-warning"
49
+ "icon": "text-warning"
55
50
  },
56
51
  "error": {
57
52
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",
58
- "icon": "text-error",
59
- "progress": "bg-error"
53
+ "icon": "text-error"
60
54
  },
61
55
  "neutral": {
62
56
  "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",
63
- "icon": "text-highlighted",
64
- "progress": "bg-inverted"
57
+ "icon": "text-highlighted"
65
58
  }
66
59
  },
67
60
  "orientation": {
@@ -3,7 +3,7 @@ export default {
3
3
  "content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
4
4
  "arrow": "fill-default",
5
5
  "text": "truncate",
6
- "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
6
+ "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5",
7
7
  "kbdsSize": "sm"
8
8
  }
9
9
  }
package/cli/templates.mjs CHANGED
@@ -39,7 +39,7 @@ ${pro ? `import type { ComponentConfig } from '@eslamdevui/ui'` : ''}
39
39
  import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
40
40
  ${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
41
41
 
42
- type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${upperName}${pro ? `, '${key}'` : ''}>
42
+ type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'${pro ? `, '${key}'` : ''}>
43
43
 
44
44
  export interface ${upperName}Props {
45
45
  /**
@@ -84,7 +84,7 @@ ${pro ? `import type { ComponentConfig } from '@eslamdevui/ui'` : ''}
84
84
  import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
85
85
  ${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
86
86
 
87
- type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${upperName}${pro ? `, '${key}'` : ''}>
87
+ type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'${pro ? `, '${key}'` : ''}>
88
88
 
89
89
  export interface ${upperName}Props extends Pick<${upperName}RootProps> {
90
90
  class?: any
@@ -153,7 +153,8 @@ const test = ({ name, prose, content }) => {
153
153
  ? undefined
154
154
  : `
155
155
  import { describe, it, expect } from 'vitest'
156
- import ${upperName}, { type ${upperName}Props, type ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
156
+ import ${upperName} from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
157
+ import type { ${upperName}Props, ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
157
158
  import ComponentRender from '../${content ? '../' : ''}component-render'
158
159
 
159
160
  describe('${upperName}', () => {
package/dist/module.d.mts CHANGED
@@ -2,6 +2,8 @@ import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { HookResult } from '@nuxt/schema';
3
3
  export * from '../dist/runtime/types/index.js';
4
4
 
5
+ type Color = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | (string & {});
6
+ type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {});
5
7
  interface ModuleOptions {
6
8
  /**
7
9
  * Prefix for components
@@ -31,13 +33,25 @@ interface ModuleOptions {
31
33
  * @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
32
34
  * @link https://ui.nuxt.com/getting-started/installation/nuxt#themecolors
33
35
  */
34
- colors?: string[];
36
+ colors?: Color[];
35
37
  /**
36
38
  * Enable or disable transitions on components
37
39
  * @defaultValue `true`
38
40
  * @link https://ui.nuxt.com/getting-started/installation/nuxt#themetransitions
39
41
  */
40
42
  transitions?: boolean;
43
+ defaultVariants?: {
44
+ /**
45
+ * The default color variant to use for components
46
+ * @defaultValue `'primary'`
47
+ */
48
+ color?: Color;
49
+ /**
50
+ * The default size variant to use for components
51
+ * @defaultValue `'md'`
52
+ */
53
+ size?: Size;
54
+ };
41
55
  };
42
56
  /**
43
57
  * Force the import of prose components even if @nuxtjs/mdc or @nuxt/content is not installed
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslamdevui/ui",
3
- "version": "3.3.1",
3
+ "version": "3.3.2-beta.0",
4
4
  "docs": "https://ui.nuxt.com/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
@@ -8,6 +8,6 @@
8
8
  },
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
- "unbuild": "3.5.0"
11
+ "unbuild": "3.6.0"
12
12
  }
13
13
  }
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
2
2
  import { defu } from 'defu';
3
- import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.i6pGHFq6.mjs';
3
+ import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.CgUuvRXi.mjs';
4
4
  import '../dist/runtime/utils/index.js';
5
5
  import 'node:url';
6
6
  import 'scule';
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
8
8
  import 'knitwork';
9
9
 
10
10
  const name = "@eslamdevui/ui";
11
- const version = "3.3.1";
11
+ const version = "3.3.2-beta.0";
12
12
 
13
13
  function generateProseComponentMap(components) {
14
14
  return components.reduce((map, component) => {
@@ -76,7 +76,7 @@ const module = defineNuxtModule({
76
76
  }
77
77
  async function registerModule(name2, key, options2) {
78
78
  if (!hasNuxtModule(name2)) {
79
- await installModule(name2, options2);
79
+ await installModule(name2, defu(nuxt.options[key], options2));
80
80
  } else {
81
81
  nuxt.options[key] = defu(nuxt.options[key], options2);
82
82
  }
@@ -73,5 +73,5 @@ declare const _default: <T extends AccordionItem>(__VLS_props: NonNullable<Await
73
73
  };
74
74
  export default _default;
75
75
  type __VLS_PrettifyLocal<T> = {
76
- [K in keyof T]: T[K];
76
+ [K in keyof T as K]: T[K];
77
77
  } & {};
@@ -53,7 +53,7 @@ export interface AlertProps {
53
53
  ui?: Alert['slots'];
54
54
  }
55
55
  export interface AlertEmits {
56
- (e: 'update:open', value: boolean): void;
56
+ 'update:open': [value: boolean];
57
57
  }
58
58
  export interface AlertSlots {
59
59
  leading(props?: {}): any;
@@ -66,7 +66,7 @@ export interface AlertSlots {
66
66
  };
67
67
  }): any;
68
68
  }
69
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
69
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  "update:open": (value: boolean) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
72
72
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -20,5 +20,5 @@ declare const _default: <T extends Messages>(__VLS_props: NonNullable<Awaited<ty
20
20
  };
21
21
  export default _default;
22
22
  type __VLS_PrettifyLocal<T> = {
23
- [K in keyof T]: T[K];
23
+ [K in keyof T as K]: T[K];
24
24
  } & {};
@@ -28,7 +28,7 @@ export interface AvatarProps {
28
28
  export interface AvatarSlots {
29
29
  default(props?: {}): any;
30
30
  }
31
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
31
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
32
32
  as: any;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
34
  default?: (props: {}) => any;
@@ -22,7 +22,7 @@ export interface AvatarGroupProps {
22
22
  export interface AvatarGroupSlots {
23
23
  default(props?: {}): any;
24
24
  }
25
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
25
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
26
26
  export default _default;
27
27
  type __VLS_WithSlots<T, S> = T & {
28
28
  new (): {
@@ -32,7 +32,7 @@ export interface BadgeSlots {
32
32
  default(props?: {}): any;
33
33
  trailing(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
35
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
36
36
  as: any;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
38
38
  export default _default;
@@ -55,11 +55,7 @@ export interface BannerSlots {
55
55
  ui: any;
56
56
  }): any;
57
57
  }
58
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- close: (...args: any[]) => void;
60
- }, string, import("vue").PublicProps, Readonly<BannerProps> & Readonly<{
61
- onClose?: ((...args: any[]) => any) | undefined;
62
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BannerSlots>;
58
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BannerSlots>;
63
59
  export default _default;
64
60
  type __VLS_WithSlots<T, S> = T & {
65
61
  new (): {
@@ -47,7 +47,7 @@ export interface BlogPostSlots {
47
47
  body(props?: {}): any;
48
48
  footer(props?: {}): any;
49
49
  }
50
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostProps> & Readonly<{}>, {
50
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostProps> & Readonly<{}>, {
51
51
  as: any;
52
52
  orientation: BlogPost["variants"]["orientation"];
53
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostSlots>;
@@ -19,7 +19,7 @@ export interface BlogPostsProps {
19
19
  export interface BlogPostsSlots {
20
20
  default(props?: {}): any;
21
21
  }
22
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostsProps> & Readonly<{}>, {
22
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostsProps> & Readonly<{}>, {
23
23
  orientation: BlogPosts["variants"]["orientation"];
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostsSlots>;
25
25
  export default _default;
@@ -62,5 +62,5 @@ declare const _default: <T extends BreadcrumbItem>(__VLS_props: NonNullable<Awai
62
62
  };
63
63
  export default _default;
64
64
  type __VLS_PrettifyLocal<T> = {
65
- [K in keyof T]: T[K];
65
+ [K in keyof T as K]: T[K];
66
66
  } & {};
@@ -10,7 +10,7 @@ import { useAppConfig } from "#imports";
10
10
  import { useComponentIcons } from "../composables/useComponentIcons";
11
11
  import { useButtonGroup } from "../composables/useButtonGroup";
12
12
  import { formLoadingInjectionKey } from "../composables/useFormField";
13
- import { omit } from "../utils";
13
+ import { omit, mergeClasses } from "../utils";
14
14
  import { tv } from "../utils/tv";
15
15
  import { pickLinkProps } from "../utils/link";
16
16
  import UIcon from "./Icon.vue";
@@ -41,11 +41,11 @@ const props = defineProps({
41
41
  as: { type: null, required: false },
42
42
  type: { type: null, required: false },
43
43
  disabled: { type: Boolean, required: false },
44
- active: { type: Boolean, required: false, default: void 0 },
44
+ active: { type: Boolean, required: false },
45
45
  exact: { type: Boolean, required: false },
46
46
  exactQuery: { type: [Boolean, String], required: false },
47
47
  exactHash: { type: Boolean, required: false },
48
- inactiveClass: { type: String, required: false, default: "" },
48
+ inactiveClass: { type: String, required: false },
49
49
  to: { type: null, required: false },
50
50
  href: { type: null, required: false },
51
51
  external: { type: Boolean, required: false },
@@ -56,7 +56,7 @@ const props = defineProps({
56
56
  prefetch: { type: Boolean, required: false },
57
57
  prefetchOn: { type: [String, Object], required: false },
58
58
  noPrefetch: { type: Boolean, required: false },
59
- activeClass: { type: String, required: false, default: "" },
59
+ activeClass: { type: String, required: false },
60
60
  exactActiveClass: { type: String, required: false },
61
61
  ariaCurrentValue: { type: String, required: false },
62
62
  viewTransition: { type: Boolean, required: false },
@@ -89,10 +89,10 @@ const ui = computed(() => tv({
89
89
  variants: {
90
90
  active: {
91
91
  true: {
92
- base: props.activeClass
92
+ base: mergeClasses(appConfig.ui?.button?.variants?.active?.true?.base, props.activeClass)
93
93
  },
94
94
  false: {
95
- base: props.inactiveClass
95
+ base: mergeClasses(appConfig.ui?.button?.variants?.active?.false?.base, props.inactiveClass)
96
96
  }
97
97
  }
98
98
  }
@@ -35,11 +35,7 @@ export interface ButtonSlots {
35
35
  default(props?: {}): any;
36
36
  trailing(props?: {}): any;
37
37
  }
38
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
39
- activeClass: string;
40
- active: boolean;
41
- inactiveClass: string;
42
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
38
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
43
39
  export default _default;
44
40
  type __VLS_WithSlots<T, S> = T & {
45
41
  new (): {
@@ -23,7 +23,7 @@ export interface ButtonGroupProps {
23
23
  export interface ButtonGroupSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
26
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
27
27
  orientation: ButtonGroup["variants"]["orientation"];
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
29
29
  export default _default;
@@ -107,5 +107,5 @@ declare const _default: <R extends boolean, M extends boolean>(__VLS_props: NonN
107
107
  };
108
108
  export default _default;
109
109
  type __VLS_PrettifyLocal<T> = {
110
- [K in keyof T]: T[K];
110
+ [K in keyof T as K]: T[K];
111
111
  } & {};
@@ -20,7 +20,7 @@ export interface CardSlots {
20
20
  default(props?: {}): any;
21
21
  footer(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
24
24
  export default _default;
25
25
  type __VLS_WithSlots<T, S> = T & {
26
26
  new (): {