@nuxt/ui 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/.nuxt/ui/accordion.ts +2 -23
  2. package/.nuxt/ui/alert.ts +2 -28
  3. package/.nuxt/ui/avatar-group.ts +2 -23
  4. package/.nuxt/ui/avatar.ts +2 -23
  5. package/.nuxt/ui/badge.ts +32 -30
  6. package/.nuxt/ui/breadcrumb.ts +2 -23
  7. package/.nuxt/ui/button-group.ts +2 -36
  8. package/.nuxt/ui/button.ts +4 -30
  9. package/.nuxt/ui/calendar.ts +4 -25
  10. package/.nuxt/ui/card.ts +2 -23
  11. package/.nuxt/ui/carousel.ts +2 -28
  12. package/.nuxt/ui/checkbox-group.ts +146 -24
  13. package/.nuxt/ui/checkbox.ts +2 -23
  14. package/.nuxt/ui/chip.ts +2 -23
  15. package/.nuxt/ui/collapsible.ts +2 -23
  16. package/.nuxt/ui/color-picker.ts +4 -25
  17. package/.nuxt/ui/command-palette.ts +2 -23
  18. package/.nuxt/ui/container.ts +2 -23
  19. package/.nuxt/ui/context-menu.ts +2 -23
  20. package/.nuxt/ui/drawer.ts +2 -23
  21. package/.nuxt/ui/dropdown-menu.ts +2 -23
  22. package/.nuxt/ui/form-field.ts +2 -23
  23. package/.nuxt/ui/form.ts +2 -23
  24. package/.nuxt/ui/input-menu.ts +4 -34
  25. package/.nuxt/ui/input-number.ts +12 -23
  26. package/.nuxt/ui/input.ts +4 -34
  27. package/.nuxt/ui/kbd.ts +2 -23
  28. package/.nuxt/ui/link.ts +14 -28
  29. package/.nuxt/ui/modal.ts +2 -23
  30. package/.nuxt/ui/navigation-menu.ts +3 -24
  31. package/.nuxt/ui/pagination.ts +2 -23
  32. package/.nuxt/ui/pin-input.ts +2 -23
  33. package/.nuxt/ui/popover.ts +2 -23
  34. package/.nuxt/ui/progress.ts +2 -23
  35. package/.nuxt/ui/radio-group.ts +2 -23
  36. package/.nuxt/ui/select-menu.ts +4 -34
  37. package/.nuxt/ui/select.ts +4 -34
  38. package/.nuxt/ui/separator.ts +2 -23
  39. package/.nuxt/ui/skeleton.ts +2 -23
  40. package/.nuxt/ui/slideover.ts +2 -23
  41. package/.nuxt/ui/slider.ts +2 -23
  42. package/.nuxt/ui/stepper.ts +2 -23
  43. package/.nuxt/ui/switch.ts +2 -23
  44. package/.nuxt/ui/table.ts +2 -23
  45. package/.nuxt/ui/tabs.ts +6 -26
  46. package/.nuxt/ui/textarea.ts +4 -34
  47. package/.nuxt/ui/toast.ts +2 -28
  48. package/.nuxt/ui/toaster.ts +2 -23
  49. package/.nuxt/ui/tooltip.ts +2 -23
  50. package/.nuxt/ui/tree.ts +2 -23
  51. package/.nuxt/ui.css +15 -8
  52. package/README.md +4 -0
  53. package/cli/templates.mjs +2 -2
  54. package/dist/module.json +1 -1
  55. package/dist/module.mjs +15 -5
  56. package/dist/runtime/components/Accordion.vue +9 -9
  57. package/dist/runtime/components/Accordion.vue.d.ts +6 -20
  58. package/dist/runtime/components/Alert.vue +1 -1
  59. package/dist/runtime/components/Alert.vue.d.ts +7 -22
  60. package/dist/runtime/components/App.vue.d.ts +2 -2
  61. package/dist/runtime/components/Avatar.vue +2 -2
  62. package/dist/runtime/components/Avatar.vue.d.ts +4 -25
  63. package/dist/runtime/components/AvatarGroup.vue +1 -1
  64. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
  65. package/dist/runtime/components/Badge.vue +5 -3
  66. package/dist/runtime/components/Badge.vue.d.ts +5 -24
  67. package/dist/runtime/components/Breadcrumb.vue +8 -8
  68. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -20
  69. package/dist/runtime/components/Button.vue +2 -3
  70. package/dist/runtime/components/Button.vue.d.ts +4 -29
  71. package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -24
  72. package/dist/runtime/components/Calendar.vue +2 -1
  73. package/dist/runtime/components/Calendar.vue.d.ts +6 -2
  74. package/dist/runtime/components/Card.vue +1 -1
  75. package/dist/runtime/components/Card.vue.d.ts +2 -11
  76. package/dist/runtime/components/Carousel.vue +5 -2
  77. package/dist/runtime/components/Carousel.vue.d.ts +10 -3
  78. package/dist/runtime/components/Checkbox.vue +2 -2
  79. package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
  80. package/dist/runtime/components/CheckboxGroup.vue +8 -5
  81. package/dist/runtime/components/CheckboxGroup.vue.d.ts +12 -3
  82. package/dist/runtime/components/Chip.vue +1 -1
  83. package/dist/runtime/components/Chip.vue.d.ts +10 -24
  84. package/dist/runtime/components/Collapsible.vue +1 -1
  85. package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
  86. package/dist/runtime/components/ColorPicker.vue +1 -1
  87. package/dist/runtime/components/ColorPicker.vue.d.ts +9 -24
  88. package/dist/runtime/components/CommandPalette.vue +17 -17
  89. package/dist/runtime/components/CommandPalette.vue.d.ts +17 -27
  90. package/dist/runtime/components/Container.vue.d.ts +2 -11
  91. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -24
  92. package/dist/runtime/components/ContextMenuContent.vue +15 -15
  93. package/dist/runtime/components/ContextMenuContent.vue.d.ts +17 -57
  94. package/dist/runtime/components/Drawer.vue.d.ts +17 -27
  95. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -28
  96. package/dist/runtime/components/DropdownMenuContent.vue +15 -15
  97. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
  98. package/dist/runtime/components/Form.vue.d.ts +5 -2
  99. package/dist/runtime/components/FormField.vue +5 -5
  100. package/dist/runtime/components/FormField.vue.d.ts +2 -11
  101. package/dist/runtime/components/Icon.vue.d.ts +1 -10
  102. package/dist/runtime/components/Input.vue +2 -2
  103. package/dist/runtime/components/Input.vue.d.ts +20 -41
  104. package/dist/runtime/components/InputMenu.vue +17 -17
  105. package/dist/runtime/components/InputMenu.vue.d.ts +227 -5
  106. package/dist/runtime/components/InputNumber.vue +13 -7
  107. package/dist/runtime/components/InputNumber.vue.d.ts +90 -23
  108. package/dist/runtime/components/Kbd.vue.d.ts +3 -24
  109. package/dist/runtime/components/Link.vue +5 -14
  110. package/dist/runtime/components/Link.vue.d.ts +3 -34
  111. package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
  112. package/dist/runtime/components/Modal.vue.d.ts +12 -28
  113. package/dist/runtime/components/NavigationMenu.vue +35 -28
  114. package/dist/runtime/components/NavigationMenu.vue.d.ts +24 -26
  115. package/dist/runtime/components/Pagination.vue +1 -1
  116. package/dist/runtime/components/Pagination.vue.d.ts +9 -33
  117. package/dist/runtime/components/PinInput.vue +1 -1
  118. package/dist/runtime/components/PinInput.vue.d.ts +13 -24
  119. package/dist/runtime/components/Popover.vue.d.ts +9 -26
  120. package/dist/runtime/components/Progress.vue +1 -1
  121. package/dist/runtime/components/Progress.vue.d.ts +10 -41
  122. package/dist/runtime/components/RadioGroup.vue +8 -8
  123. package/dist/runtime/components/RadioGroup.vue.d.ts +8 -3
  124. package/dist/runtime/components/Select.vue +12 -12
  125. package/dist/runtime/components/Select.vue.d.ts +11 -3
  126. package/dist/runtime/components/SelectMenu.vue +13 -13
  127. package/dist/runtime/components/SelectMenu.vue.d.ts +19 -5
  128. package/dist/runtime/components/Separator.vue +1 -1
  129. package/dist/runtime/components/Separator.vue.d.ts +3 -24
  130. package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
  131. package/dist/runtime/components/Slideover.vue.d.ts +12 -29
  132. package/dist/runtime/components/Slider.vue +16 -4
  133. package/dist/runtime/components/Slider.vue.d.ts +23 -36
  134. package/dist/runtime/components/Stepper.vue +10 -10
  135. package/dist/runtime/components/Stepper.vue.d.ts +10 -14
  136. package/dist/runtime/components/Switch.vue +1 -1
  137. package/dist/runtime/components/Switch.vue.d.ts +10 -13
  138. package/dist/runtime/components/Table.vue +2 -2
  139. package/dist/runtime/components/Table.vue.d.ts +17 -17
  140. package/dist/runtime/components/Tabs.vue +6 -6
  141. package/dist/runtime/components/Tabs.vue.d.ts +6 -20
  142. package/dist/runtime/components/Textarea.vue +3 -3
  143. package/dist/runtime/components/Textarea.vue.d.ts +20 -44
  144. package/dist/runtime/components/Toast.vue +3 -2
  145. package/dist/runtime/components/Toast.vue.d.ts +92 -24
  146. package/dist/runtime/components/Toaster.vue +4 -4
  147. package/dist/runtime/components/Toaster.vue.d.ts +9 -28
  148. package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
  149. package/dist/runtime/components/Tree.vue +10 -10
  150. package/dist/runtime/components/Tree.vue.d.ts +7 -22
  151. package/dist/runtime/composables/defineShortcuts.js +6 -0
  152. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  153. package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
  154. package/dist/runtime/composables/useFormField.d.ts +2 -2
  155. package/dist/runtime/composables/useFormField.js +2 -1
  156. package/dist/runtime/composables/useKbd.d.ts +1 -0
  157. package/dist/runtime/composables/useKbd.js +4 -3
  158. package/dist/runtime/composables/useOverlay.d.ts +9 -10
  159. package/dist/runtime/composables/useOverlay.js +11 -6
  160. package/dist/runtime/inertia/components/Link.vue +46 -60
  161. package/dist/runtime/inertia/components/Link.vue.d.ts +4 -33
  162. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  163. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  164. package/dist/runtime/inertia/stubs.d.ts +1 -1
  165. package/dist/runtime/inertia/stubs.js +1 -1
  166. package/dist/runtime/locale/index.d.ts +1 -0
  167. package/dist/runtime/locale/index.js +1 -0
  168. package/dist/runtime/locale/sl.d.ts +3 -0
  169. package/dist/runtime/locale/sl.js +54 -0
  170. package/dist/runtime/types/tv.d.ts +53 -0
  171. package/dist/runtime/types/tv.js +0 -0
  172. package/dist/runtime/types/utils.d.ts +2 -52
  173. package/dist/runtime/types/utils.js +1 -0
  174. package/dist/runtime/utils/link.d.ts +1 -0
  175. package/dist/runtime/utils/link.js +12 -0
  176. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -10
  177. package/dist/runtime/vue/components/Link.vue +27 -40
  178. package/dist/runtime/vue/components/Link.vue.d.ts +3 -34
  179. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  180. package/dist/runtime/vue/stubs.d.ts +1 -1
  181. package/dist/runtime/vue/stubs.js +1 -1
  182. package/dist/shared/{ui.D7lOOabO.mjs → ui.BvUP-pSb.mjs} +120 -27
  183. package/dist/unplugin.d.mts +2 -2
  184. package/dist/unplugin.mjs +1 -1
  185. package/dist/vite.d.mts +1 -1
  186. package/dist/vite.mjs +2 -2
  187. package/package.json +28 -27
@@ -1,23 +1,4 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/accordion"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "prefix": "U",
5
- "fonts": true,
6
- "colorMode": true,
7
- "theme": {
8
- "colors": [
9
- "primary",
10
- "secondary",
11
- "success",
12
- "info",
13
- "warning",
14
- "error"
15
- ],
16
- "transitions": true
17
- }
18
- }) : template
19
-
20
- const theme = {
1
+ export default {
21
2
  "slots": {
22
3
  "root": "w-full",
23
4
  "item": "border-b border-default last:border-b-0",
@@ -36,6 +17,4 @@ const theme = {
36
17
  }
37
18
  }
38
19
  }
39
- }
40
-
41
- export default result as typeof theme
20
+ }
package/.nuxt/ui/alert.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/alert"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -17,29 +15,7 @@ const variant = [
17
15
  "subtle"
18
16
  ] as const
19
17
 
20
- const orientation = [
21
- "horizontal",
22
- "vertical"
23
- ] as const
24
-
25
- const result = typeof template === 'function' ? (template as Function)({
26
- "prefix": "U",
27
- "fonts": true,
28
- "colorMode": true,
29
- "theme": {
30
- "colors": [
31
- "primary",
32
- "secondary",
33
- "success",
34
- "info",
35
- "warning",
36
- "error"
37
- ],
38
- "transitions": true
39
- }
40
- }) : template
41
-
42
- const theme = {
18
+ export default {
43
19
  "slots": {
44
20
  "root": "relative overflow-hidden w-full rounded-lg p-4 flex gap-2.5",
45
21
  "wrapper": "min-w-0 flex-1 flex flex-col",
@@ -285,6 +261,4 @@ const theme = {
285
261
  "color": "primary" as typeof color[number],
286
262
  "variant": "solid" as typeof variant[number]
287
263
  }
288
- }
289
-
290
- export default result as typeof theme
264
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/avatar-group"
2
-
3
1
  const size = [
4
2
  "3xs",
5
3
  "2xs",
@@ -12,24 +10,7 @@ const size = [
12
10
  "3xl"
13
11
  ] as const
14
12
 
15
- const result = typeof template === 'function' ? (template as Function)({
16
- "prefix": "U",
17
- "fonts": true,
18
- "colorMode": true,
19
- "theme": {
20
- "colors": [
21
- "primary",
22
- "secondary",
23
- "success",
24
- "info",
25
- "warning",
26
- "error"
27
- ],
28
- "transitions": true
29
- }
30
- }) : template
31
-
32
- const theme = {
13
+ export default {
33
14
  "slots": {
34
15
  "root": "inline-flex flex-row-reverse justify-end",
35
16
  "base": "relative rounded-full ring-bg first:me-0"
@@ -68,6 +49,4 @@ const theme = {
68
49
  "defaultVariants": {
69
50
  "size": "md" as typeof size[number]
70
51
  }
71
- }
72
-
73
- export default result as typeof theme
52
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/avatar"
2
-
3
1
  const size = [
4
2
  "3xs",
5
3
  "2xs",
@@ -12,24 +10,7 @@ const size = [
12
10
  "3xl"
13
11
  ] as const
14
12
 
15
- const result = typeof template === 'function' ? (template as Function)({
16
- "prefix": "U",
17
- "fonts": true,
18
- "colorMode": true,
19
- "theme": {
20
- "colors": [
21
- "primary",
22
- "secondary",
23
- "success",
24
- "info",
25
- "warning",
26
- "error"
27
- ],
28
- "transitions": true
29
- }
30
- }) : template
31
-
32
- const theme = {
13
+ export default {
33
14
  "slots": {
34
15
  "root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-elevated",
35
16
  "image": "h-full w-full rounded-[inherit] object-cover",
@@ -70,6 +51,4 @@ const theme = {
70
51
  "defaultVariants": {
71
52
  "size": "md" as typeof size[number]
72
53
  }
73
- }
74
-
75
- export default result as typeof theme
54
+ }
package/.nuxt/ui/badge.ts CHANGED
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/badge"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const color = [
9
2
  "primary",
10
3
  "secondary",
@@ -30,24 +23,7 @@ const size = [
30
23
  "xl"
31
24
  ] as const
32
25
 
33
- const result = typeof template === 'function' ? (template as Function)({
34
- "prefix": "U",
35
- "fonts": true,
36
- "colorMode": true,
37
- "theme": {
38
- "colors": [
39
- "primary",
40
- "secondary",
41
- "success",
42
- "info",
43
- "warning",
44
- "error"
45
- ],
46
- "transitions": true
47
- }
48
- }) : template
49
-
50
- const theme = {
26
+ export default {
51
27
  "slots": {
52
28
  "base": "font-medium inline-flex items-center",
53
29
  "label": "truncate",
@@ -58,8 +34,8 @@ const theme = {
58
34
  },
59
35
  "variants": {
60
36
  "buttonGroup": {
61
- "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
62
- "vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
37
+ "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
38
+ "vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
63
39
  },
64
40
  "color": {
65
41
  "primary": "",
@@ -107,6 +83,9 @@ const theme = {
107
83
  "leadingAvatarSize": "2xs",
108
84
  "trailingIcon": "size-6"
109
85
  }
86
+ },
87
+ "square": {
88
+ "true": ""
110
89
  }
111
90
  },
112
91
  "compoundVariants": [
@@ -249,6 +228,31 @@ const theme = {
249
228
  "color": "neutral" as typeof color[number],
250
229
  "variant": "subtle" as typeof variant[number],
251
230
  "class": "ring ring-inset ring-accented text-default bg-elevated"
231
+ },
232
+ {
233
+ "size": "xs" as typeof size[number],
234
+ "square": true,
235
+ "class": "p-0.5"
236
+ },
237
+ {
238
+ "size": "sm" as typeof size[number],
239
+ "square": true,
240
+ "class": "p-1"
241
+ },
242
+ {
243
+ "size": "md" as typeof size[number],
244
+ "square": true,
245
+ "class": "p-1"
246
+ },
247
+ {
248
+ "size": "lg" as typeof size[number],
249
+ "square": true,
250
+ "class": "p-1"
251
+ },
252
+ {
253
+ "size": "xl" as typeof size[number],
254
+ "square": true,
255
+ "class": "p-1"
252
256
  }
253
257
  ],
254
258
  "defaultVariants": {
@@ -256,6 +260,4 @@ const theme = {
256
260
  "variant": "solid" as typeof variant[number],
257
261
  "size": "md" as typeof size[number]
258
262
  }
259
- }
260
-
261
- export default result as typeof theme
263
+ }
@@ -1,23 +1,4 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/breadcrumb"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "prefix": "U",
5
- "fonts": true,
6
- "colorMode": true,
7
- "theme": {
8
- "colors": [
9
- "primary",
10
- "secondary",
11
- "success",
12
- "info",
13
- "warning",
14
- "error"
15
- ],
16
- "transitions": true
17
- }
18
- }) : template
19
-
20
- const theme = {
1
+ export default {
21
2
  "slots": {
22
3
  "root": "relative min-w-0",
23
4
  "list": "flex items-center gap-1.5",
@@ -61,6 +42,4 @@ const theme = {
61
42
  }
62
43
  }
63
44
  ]
64
- }
65
-
66
- export default result as typeof theme
45
+ }
@@ -1,36 +1,4 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/button-group"
2
-
3
- const size = [
4
- "xs",
5
- "sm",
6
- "md",
7
- "lg",
8
- "xl"
9
- ] as const
10
-
11
- const orientation = [
12
- "horizontal",
13
- "vertical"
14
- ] as const
15
-
16
- const result = typeof template === 'function' ? (template as Function)({
17
- "prefix": "U",
18
- "fonts": true,
19
- "colorMode": true,
20
- "theme": {
21
- "colors": [
22
- "primary",
23
- "secondary",
24
- "success",
25
- "info",
26
- "warning",
27
- "error"
28
- ],
29
- "transitions": true
30
- }
31
- }) : template
32
-
33
- const theme = {
1
+ export default {
34
2
  "base": "relative",
35
3
  "variants": {
36
4
  "size": {
@@ -45,6 +13,4 @@ const theme = {
45
13
  "vertical": "flex flex-col -space-y-px"
46
14
  }
47
15
  }
48
- }
49
-
50
- export default result as typeof theme
16
+ }
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/button"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const color = [
9
2
  "primary",
10
3
  "secondary",
@@ -32,24 +25,7 @@ const size = [
32
25
  "xl"
33
26
  ] as const
34
27
 
35
- const result = typeof template === 'function' ? (template as Function)({
36
- "prefix": "U",
37
- "fonts": true,
38
- "colorMode": true,
39
- "theme": {
40
- "colors": [
41
- "primary",
42
- "secondary",
43
- "success",
44
- "info",
45
- "warning",
46
- "error"
47
- ],
48
- "transitions": true
49
- }
50
- }) : template
51
-
52
- const theme = {
28
+ export default {
53
29
  "slots": {
54
30
  "base": [
55
31
  "rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75",
@@ -63,8 +39,8 @@ const theme = {
63
39
  },
64
40
  "variants": {
65
41
  "buttonGroup": {
66
- "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
67
- "vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
42
+ "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
43
+ "vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
68
44
  },
69
45
  "color": {
70
46
  "primary": "",
@@ -399,6 +375,4 @@ const theme = {
399
375
  "variant": "solid" as typeof variant[number],
400
376
  "size": "md" as typeof size[number]
401
377
  }
402
- }
403
-
404
- export default result as typeof theme
378
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/calendar"
2
-
3
1
  const color = [
4
2
  "primary",
5
3
  "secondary",
@@ -18,31 +16,14 @@ const size = [
18
16
  "xl"
19
17
  ] as const
20
18
 
21
- const result = typeof template === 'function' ? (template as Function)({
22
- "prefix": "U",
23
- "fonts": true,
24
- "colorMode": true,
25
- "theme": {
26
- "colors": [
27
- "primary",
28
- "secondary",
29
- "success",
30
- "info",
31
- "warning",
32
- "error"
33
- ],
34
- "transitions": true
35
- }
36
- }) : template
37
-
38
- const theme = {
19
+ export default {
39
20
  "slots": {
40
21
  "root": "",
41
22
  "header": "flex items-center justify-between",
42
23
  "body": "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
43
24
  "heading": "text-center font-medium truncate mx-auto",
44
25
  "grid": "w-full border-collapse select-none space-y-1 focus:outline-none",
45
- "gridRow": "grid grid-cols-7",
26
+ "gridRow": "grid grid-cols-7 place-items-center",
46
27
  "gridWeekDaysRow": "mb-1 grid w-full grid-cols-7",
47
28
  "gridBody": "grid",
48
29
  "headCell": "rounded-md",
@@ -80,7 +61,7 @@ const theme = {
80
61
  },
81
62
  "neutral": {
82
63
  "headCell": "text-highlighted",
83
- "cellTrigger": "focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-inverted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10"
64
+ "cellTrigger": "focus-visible:ring-inverted data-[selected]:bg-inverted data-today:not-data-[selected]:text-highlighted data-[highlighted]:bg-inverted/20 hover:not-data-[selected]:bg-inverted/10"
84
65
  }
85
66
  },
86
67
  "size": {
@@ -119,6 +100,4 @@ const theme = {
119
100
  "size": "md" as typeof size[number],
120
101
  "color": "primary" as typeof color[number]
121
102
  }
122
- }
123
-
124
- export default result as typeof theme
103
+ }
package/.nuxt/ui/card.ts CHANGED
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/card"
2
-
3
1
  const variant = [
4
2
  "solid",
5
3
  "outline",
@@ -7,24 +5,7 @@ const variant = [
7
5
  "subtle"
8
6
  ] as const
9
7
 
10
- const result = typeof template === 'function' ? (template as Function)({
11
- "prefix": "U",
12
- "fonts": true,
13
- "colorMode": true,
14
- "theme": {
15
- "colors": [
16
- "primary",
17
- "secondary",
18
- "success",
19
- "info",
20
- "warning",
21
- "error"
22
- ],
23
- "transitions": true
24
- }
25
- }) : template
26
-
27
- const theme = {
8
+ export default {
28
9
  "slots": {
29
10
  "root": "rounded-lg",
30
11
  "header": "p-4 sm:px-6",
@@ -50,6 +31,4 @@ const theme = {
50
31
  "defaultVariants": {
51
32
  "variant": "outline" as typeof variant[number]
52
33
  }
53
- }
54
-
55
- export default result as typeof theme
34
+ }
@@ -1,28 +1,4 @@
1
- import template from "/home/runner/work/ui/ui/src/theme/carousel"
2
-
3
- const orientation = [
4
- "vertical",
5
- "horizontal"
6
- ] as const
7
-
8
- const result = typeof template === 'function' ? (template as Function)({
9
- "prefix": "U",
10
- "fonts": true,
11
- "colorMode": true,
12
- "theme": {
13
- "colors": [
14
- "primary",
15
- "secondary",
16
- "success",
17
- "info",
18
- "warning",
19
- "error"
20
- ],
21
- "transitions": true
22
- }
23
- }) : template
24
-
25
- const theme = {
1
+ export default {
26
2
  "slots": {
27
3
  "root": "relative focus:outline-none",
28
4
  "viewport": "overflow-hidden",
@@ -59,6 +35,4 @@ const theme = {
59
35
  }
60
36
  }
61
37
  }
62
- }
63
-
64
- export default result as typeof theme
38
+ }