@nuxt/ui 3.1.1 → 3.1.3

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 (126) hide show
  1. package/.nuxt/ui/alert.ts +0 -5
  2. package/.nuxt/ui/badge.ts +30 -7
  3. package/.nuxt/ui/button-group.ts +0 -13
  4. package/.nuxt/ui/button.ts +2 -7
  5. package/.nuxt/ui/calendar.ts +1 -1
  6. package/.nuxt/ui/carousel.ts +0 -5
  7. package/.nuxt/ui/checkbox-group.ts +144 -1
  8. package/.nuxt/ui/color-picker.ts +2 -2
  9. package/.nuxt/ui/context-menu.ts +2 -1
  10. package/.nuxt/ui/dropdown-menu.ts +2 -1
  11. package/.nuxt/ui/input-menu.ts +4 -13
  12. package/.nuxt/ui/input-number.ts +10 -0
  13. package/.nuxt/ui/input.ts +2 -11
  14. package/.nuxt/ui/link.ts +12 -5
  15. package/.nuxt/ui/navigation-menu.ts +43 -34
  16. package/.nuxt/ui/radio-group.ts +1 -1
  17. package/.nuxt/ui/select-menu.ts +4 -13
  18. package/.nuxt/ui/select.ts +4 -13
  19. package/.nuxt/ui/tabs.ts +4 -3
  20. package/.nuxt/ui/textarea.ts +2 -11
  21. package/.nuxt/ui/toast.ts +0 -5
  22. package/.nuxt/ui/tooltip.ts +1 -1
  23. package/.nuxt/ui.css +4 -1
  24. package/cli/templates.mjs +2 -2
  25. package/dist/module.json +1 -1
  26. package/dist/module.mjs +14 -5
  27. package/dist/runtime/components/Accordion.vue +9 -9
  28. package/dist/runtime/components/Accordion.vue.d.ts +2 -0
  29. package/dist/runtime/components/Alert.vue +1 -1
  30. package/dist/runtime/components/Avatar.vue +2 -2
  31. package/dist/runtime/components/AvatarGroup.vue +1 -1
  32. package/dist/runtime/components/Badge.vue +5 -3
  33. package/dist/runtime/components/Badge.vue.d.ts +2 -0
  34. package/dist/runtime/components/Breadcrumb.vue +8 -8
  35. package/dist/runtime/components/Breadcrumb.vue.d.ts +2 -0
  36. package/dist/runtime/components/Button.vue +2 -3
  37. package/dist/runtime/components/Button.vue.d.ts +1 -1
  38. package/dist/runtime/components/Calendar.vue +2 -1
  39. package/dist/runtime/components/Card.vue +1 -1
  40. package/dist/runtime/components/Carousel.vue +5 -2
  41. package/dist/runtime/components/Carousel.vue.d.ts +6 -1
  42. package/dist/runtime/components/Checkbox.vue +2 -2
  43. package/dist/runtime/components/CheckboxGroup.vue +8 -5
  44. package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -1
  45. package/dist/runtime/components/Chip.vue +1 -1
  46. package/dist/runtime/components/Collapsible.vue +1 -1
  47. package/dist/runtime/components/ColorPicker.vue +1 -1
  48. package/dist/runtime/components/CommandPalette.vue +18 -18
  49. package/dist/runtime/components/CommandPalette.vue.d.ts +2 -0
  50. package/dist/runtime/components/ContextMenu.vue.d.ts +2 -0
  51. package/dist/runtime/components/ContextMenuContent.vue +69 -67
  52. package/dist/runtime/components/Drawer.vue +15 -1
  53. package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -0
  54. package/dist/runtime/components/DropdownMenuContent.vue +71 -69
  55. package/dist/runtime/components/FormField.vue +5 -5
  56. package/dist/runtime/components/Input.vue +3 -2
  57. package/dist/runtime/components/Input.vue.d.ts +30 -29
  58. package/dist/runtime/components/InputMenu.vue +20 -20
  59. package/dist/runtime/components/InputMenu.vue.d.ts +210 -0
  60. package/dist/runtime/components/InputNumber.vue +13 -7
  61. package/dist/runtime/components/InputNumber.vue.d.ts +78 -0
  62. package/dist/runtime/components/Link.vue +5 -14
  63. package/dist/runtime/components/Modal.vue +2 -2
  64. package/dist/runtime/components/Modal.vue.d.ts +3 -0
  65. package/dist/runtime/components/NavigationMenu.vue +106 -41
  66. package/dist/runtime/components/NavigationMenu.vue.d.ts +38 -7
  67. package/dist/runtime/components/Pagination.vue +1 -1
  68. package/dist/runtime/components/PinInput.vue +1 -1
  69. package/dist/runtime/components/Popover.vue +4 -0
  70. package/dist/runtime/components/Popover.vue.d.ts +1 -0
  71. package/dist/runtime/components/Progress.vue +1 -1
  72. package/dist/runtime/components/RadioGroup.vue +8 -8
  73. package/dist/runtime/components/RadioGroup.vue.d.ts +2 -0
  74. package/dist/runtime/components/Select.vue +15 -15
  75. package/dist/runtime/components/Select.vue.d.ts +3 -1
  76. package/dist/runtime/components/SelectMenu.vue +16 -16
  77. package/dist/runtime/components/SelectMenu.vue.d.ts +2 -0
  78. package/dist/runtime/components/Separator.vue +1 -1
  79. package/dist/runtime/components/Slideover.vue +9 -2
  80. package/dist/runtime/components/Slideover.vue.d.ts +3 -0
  81. package/dist/runtime/components/Slider.vue +16 -4
  82. package/dist/runtime/components/Slider.vue.d.ts +26 -20
  83. package/dist/runtime/components/Stepper.vue +10 -10
  84. package/dist/runtime/components/Stepper.vue.d.ts +2 -0
  85. package/dist/runtime/components/Switch.vue +1 -1
  86. package/dist/runtime/components/Table.vue +2 -2
  87. package/dist/runtime/components/Tabs.vue +6 -6
  88. package/dist/runtime/components/Tabs.vue.d.ts +2 -0
  89. package/dist/runtime/components/Textarea.vue +7 -4
  90. package/dist/runtime/components/Textarea.vue.d.ts +30 -31
  91. package/dist/runtime/components/Toast.vue +3 -2
  92. package/dist/runtime/components/Toast.vue.d.ts +6 -0
  93. package/dist/runtime/components/Toaster.vue +4 -4
  94. package/dist/runtime/components/Toaster.vue.d.ts +6 -0
  95. package/dist/runtime/components/Tree.vue +10 -10
  96. package/dist/runtime/components/Tree.vue.d.ts +2 -0
  97. package/dist/runtime/composables/useFormField.d.ts +1 -1
  98. package/dist/runtime/composables/useFormField.js +2 -1
  99. package/dist/runtime/inertia/components/Link.vue +46 -60
  100. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  101. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  102. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  103. package/dist/runtime/inertia/stubs.d.ts +1 -1
  104. package/dist/runtime/inertia/stubs.js +1 -1
  105. package/dist/runtime/locale/index.d.ts +7 -2
  106. package/dist/runtime/locale/index.js +7 -2
  107. package/dist/runtime/locale/ky.d.ts +3 -0
  108. package/dist/runtime/locale/ky.js +54 -0
  109. package/dist/runtime/locale/lt.d.ts +3 -0
  110. package/dist/runtime/locale/lt.js +54 -0
  111. package/dist/runtime/locale/mn.d.ts +3 -0
  112. package/dist/runtime/locale/mn.js +54 -0
  113. package/dist/runtime/locale/ms.d.ts +3 -0
  114. package/dist/runtime/locale/ms.js +54 -0
  115. package/dist/runtime/locale/sl.d.ts +3 -0
  116. package/dist/runtime/locale/sl.js +54 -0
  117. package/dist/runtime/utils/link.d.ts +1 -0
  118. package/dist/runtime/utils/link.js +12 -0
  119. package/dist/runtime/vue/components/Link.vue +27 -40
  120. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  121. package/dist/runtime/vue/stubs.d.ts +1 -1
  122. package/dist/runtime/vue/stubs.js +1 -1
  123. package/dist/shared/{ui.CbtTMMzt.mjs → ui.Bix4DSU4.mjs} +153 -52
  124. package/dist/unplugin.mjs +1 -1
  125. package/dist/vite.mjs +1 -1
  126. package/package.json +28 -28
package/.nuxt/ui/alert.ts CHANGED
@@ -15,11 +15,6 @@ const variant = [
15
15
  "subtle"
16
16
  ] as const
17
17
 
18
- const orientation = [
19
- "horizontal",
20
- "vertical"
21
- ] as const
22
-
23
18
  export default {
24
19
  "slots": {
25
20
  "root": "relative overflow-hidden w-full rounded-lg p-4 flex gap-2.5",
package/.nuxt/ui/badge.ts CHANGED
@@ -1,8 +1,3 @@
1
- const buttonGroup = [
2
- "horizontal",
3
- "vertical"
4
- ] as const
5
-
6
1
  const color = [
7
2
  "primary",
8
3
  "secondary",
@@ -39,8 +34,8 @@ export default {
39
34
  },
40
35
  "variants": {
41
36
  "buttonGroup": {
42
- "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
43
- "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]"
44
39
  },
45
40
  "color": {
46
41
  "primary": "",
@@ -88,6 +83,9 @@ export default {
88
83
  "leadingAvatarSize": "2xs",
89
84
  "trailingIcon": "size-6"
90
85
  }
86
+ },
87
+ "square": {
88
+ "true": ""
91
89
  }
92
90
  },
93
91
  "compoundVariants": [
@@ -230,6 +228,31 @@ export default {
230
228
  "color": "neutral" as typeof color[number],
231
229
  "variant": "subtle" as typeof variant[number],
232
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"
233
256
  }
234
257
  ],
235
258
  "defaultVariants": {
@@ -1,16 +1,3 @@
1
- const size = [
2
- "xs",
3
- "sm",
4
- "md",
5
- "lg",
6
- "xl"
7
- ] as const
8
-
9
- const orientation = [
10
- "horizontal",
11
- "vertical"
12
- ] as const
13
-
14
1
  export default {
15
2
  "base": "relative",
16
3
  "variants": {
@@ -1,8 +1,3 @@
1
- const buttonGroup = [
2
- "horizontal",
3
- "vertical"
4
- ] as const
5
-
6
1
  const color = [
7
2
  "primary",
8
3
  "secondary",
@@ -44,8 +39,8 @@ export default {
44
39
  },
45
40
  "variants": {
46
41
  "buttonGroup": {
47
- "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
48
- "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]"
49
44
  },
50
45
  "color": {
51
46
  "primary": "",
@@ -61,7 +61,7 @@ export default {
61
61
  },
62
62
  "neutral": {
63
63
  "headCell": "text-highlighted",
64
- "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"
65
65
  }
66
66
  },
67
67
  "size": {
@@ -1,8 +1,3 @@
1
- const orientation = [
2
- "vertical",
3
- "horizontal"
4
- ] as const
5
-
6
1
  export default {
7
2
  "slots": {
8
3
  "root": "relative focus:outline-none",
@@ -3,6 +3,22 @@ const orientation = [
3
3
  "vertical"
4
4
  ] as const
5
5
 
6
+ const color = [
7
+ "primary",
8
+ "secondary",
9
+ "success",
10
+ "info",
11
+ "warning",
12
+ "error",
13
+ "neutral"
14
+ ] as const
15
+
16
+ const variant = [
17
+ "list",
18
+ "card",
19
+ "table"
20
+ ] as const
21
+
6
22
  const size = [
7
23
  "xs",
8
24
  "sm",
@@ -27,6 +43,22 @@ export default {
27
43
  "fieldset": "flex-col"
28
44
  }
29
45
  },
46
+ "color": {
47
+ "primary": {},
48
+ "secondary": {},
49
+ "success": {},
50
+ "info": {},
51
+ "warning": {},
52
+ "error": {},
53
+ "neutral": {}
54
+ },
55
+ "variant": {
56
+ "list": {},
57
+ "card": {},
58
+ "table": {
59
+ "item": "border border-muted"
60
+ }
61
+ },
30
62
  "size": {
31
63
  "xs": {
32
64
  "fieldset": "gap-y-0.5",
@@ -55,7 +87,118 @@ export default {
55
87
  }
56
88
  }
57
89
  },
90
+ "compoundVariants": [
91
+ {
92
+ "size": "xs" as typeof size[number],
93
+ "variant": "table" as typeof variant[number],
94
+ "class": {
95
+ "item": "p-2.5"
96
+ }
97
+ },
98
+ {
99
+ "size": "sm" as typeof size[number],
100
+ "variant": "table" as typeof variant[number],
101
+ "class": {
102
+ "item": "p-3"
103
+ }
104
+ },
105
+ {
106
+ "size": "md" as typeof size[number],
107
+ "variant": "table" as typeof variant[number],
108
+ "class": {
109
+ "item": "p-3.5"
110
+ }
111
+ },
112
+ {
113
+ "size": "lg" as typeof size[number],
114
+ "variant": "table" as typeof variant[number],
115
+ "class": {
116
+ "item": "p-4"
117
+ }
118
+ },
119
+ {
120
+ "size": "xl" as typeof size[number],
121
+ "variant": "table" as typeof variant[number],
122
+ "class": {
123
+ "item": "p-4.5"
124
+ }
125
+ },
126
+ {
127
+ "orientation": "horizontal" as typeof orientation[number],
128
+ "variant": "table" as typeof variant[number],
129
+ "class": {
130
+ "item": "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
131
+ "fieldset": "gap-0 -space-x-px"
132
+ }
133
+ },
134
+ {
135
+ "orientation": "vertical" as typeof orientation[number],
136
+ "variant": "table" as typeof variant[number],
137
+ "class": {
138
+ "item": "first-of-type:rounded-t-lg last-of-type:rounded-b-lg",
139
+ "fieldset": "gap-0 -space-y-px"
140
+ }
141
+ },
142
+ {
143
+ "color": "primary" as typeof color[number],
144
+ "variant": "table" as typeof variant[number],
145
+ "class": {
146
+ "item": "has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]"
147
+ }
148
+ },
149
+ {
150
+ "color": "secondary" as typeof color[number],
151
+ "variant": "table" as typeof variant[number],
152
+ "class": {
153
+ "item": "has-data-[state=checked]:bg-secondary/10 has-data-[state=checked]:border-secondary/50 has-data-[state=checked]:z-[1]"
154
+ }
155
+ },
156
+ {
157
+ "color": "success" as typeof color[number],
158
+ "variant": "table" as typeof variant[number],
159
+ "class": {
160
+ "item": "has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]"
161
+ }
162
+ },
163
+ {
164
+ "color": "info" as typeof color[number],
165
+ "variant": "table" as typeof variant[number],
166
+ "class": {
167
+ "item": "has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]"
168
+ }
169
+ },
170
+ {
171
+ "color": "warning" as typeof color[number],
172
+ "variant": "table" as typeof variant[number],
173
+ "class": {
174
+ "item": "has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]"
175
+ }
176
+ },
177
+ {
178
+ "color": "error" as typeof color[number],
179
+ "variant": "table" as typeof variant[number],
180
+ "class": {
181
+ "item": "has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]"
182
+ }
183
+ },
184
+ {
185
+ "color": "neutral" as typeof color[number],
186
+ "variant": "table" as typeof variant[number],
187
+ "class": {
188
+ "item": "has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]"
189
+ }
190
+ },
191
+ {
192
+ "variant": "table" as typeof variant[number],
193
+ "disabled": true,
194
+ "class": {
195
+ "item": "cursor-not-allowed opacity-75"
196
+ }
197
+ }
198
+ ],
58
199
  "defaultVariants": {
59
- "size": "md" as typeof size[number]
200
+ "size": "md" as typeof size[number],
201
+ "variant": "list" as typeof variant[number],
202
+ "color": "primary" as typeof color[number]
60
203
  }
61
204
  }
@@ -10,10 +10,10 @@ export default {
10
10
  "slots": {
11
11
  "root": "data-[disabled]:opacity-75",
12
12
  "picker": "flex gap-4",
13
- "selector": "rounded-md",
13
+ "selector": "rounded-md touch-none",
14
14
  "selectorBackground": "w-full h-full relative rounded-md",
15
15
  "selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-(--color-white) rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
16
- "track": "w-[8px] relative rounded-md",
16
+ "track": "w-[8px] relative rounded-md touch-none",
17
17
  "trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-(--color-white) cursor-pointer data-[disabled]:cursor-not-allowed"
18
18
  },
19
19
  "variants": {
@@ -18,7 +18,8 @@ const size = [
18
18
 
19
19
  export default {
20
20
  "slots": {
21
- "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default divide-y divide-default overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin)",
21
+ "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin) flex flex-col",
22
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
22
23
  "group": "p-1 isolate",
23
24
  "label": "w-full flex items-center font-semibold text-highlighted",
24
25
  "separator": "-mx-1 my-1 h-px bg-border",
@@ -18,7 +18,8 @@ const size = [
18
18
 
19
19
  export default {
20
20
  "slots": {
21
- "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default divide-y divide-default overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin)",
21
+ "content": "min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",
22
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
22
23
  "arrow": "fill-default",
23
24
  "group": "p-1 isolate",
24
25
  "label": "w-full flex items-center font-semibold text-highlighted",
@@ -1,8 +1,3 @@
1
- const buttonGroup = [
2
- "horizontal",
3
- "vertical"
4
- ] as const
5
-
6
1
  const size = [
7
2
  "xs",
8
3
  "sm",
@@ -29,10 +24,6 @@ const color = [
29
24
  "neutral"
30
25
  ] as const
31
26
 
32
- const type = [
33
- "file"
34
- ] as const
35
-
36
27
  export default {
37
28
  "slots": {
38
29
  "root": "relative inline-flex items-center",
@@ -47,8 +38,8 @@ export default {
47
38
  "trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
48
39
  "trailingIcon": "shrink-0 text-dimmed",
49
40
  "arrow": "fill-default",
50
- "content": "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto",
51
- "viewport": "divide-y divide-default scroll-py-1",
41
+ "content": "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
42
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
52
43
  "group": "p-1 isolate",
53
44
  "empty": "py-2 text-center text-sm text-muted",
54
45
  "label": "font-semibold text-highlighted",
@@ -80,11 +71,11 @@ export default {
80
71
  "variants": {
81
72
  "buttonGroup": {
82
73
  "horizontal": {
83
- "root": "group",
74
+ "root": "group has-focus-visible:z-[1]",
84
75
  "base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
85
76
  },
86
77
  "vertical": {
87
- "root": "group",
78
+ "root": "group has-focus-visible:z-[1]",
88
79
  "base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
89
80
  }
90
81
  },
@@ -40,6 +40,16 @@ export default {
40
40
  "decrement": "absolute flex items-center"
41
41
  },
42
42
  "variants": {
43
+ "buttonGroup": {
44
+ "horizontal": {
45
+ "root": "group has-focus-visible:z-[1]",
46
+ "base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
47
+ },
48
+ "vertical": {
49
+ "root": "group has-focus-visible:z-[1]",
50
+ "base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
51
+ }
52
+ },
43
53
  "color": {
44
54
  "primary": "",
45
55
  "secondary": "",
package/.nuxt/ui/input.ts CHANGED
@@ -1,8 +1,3 @@
1
- const buttonGroup = [
2
- "horizontal",
3
- "vertical"
4
- ] as const
5
-
6
1
  const size = [
7
2
  "xs",
8
3
  "sm",
@@ -29,10 +24,6 @@ const color = [
29
24
  "neutral"
30
25
  ] as const
31
26
 
32
- const type = [
33
- "file"
34
- ] as const
35
-
36
27
  export default {
37
28
  "slots": {
38
29
  "root": "relative inline-flex items-center",
@@ -50,11 +41,11 @@ export default {
50
41
  "variants": {
51
42
  "buttonGroup": {
52
43
  "horizontal": {
53
- "root": "group",
44
+ "root": "group has-focus-visible:z-[1]",
54
45
  "base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
55
46
  },
56
47
  "vertical": {
57
- "root": "group",
48
+ "root": "group has-focus-visible:z-[1]",
58
49
  "base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
59
50
  }
60
51
  },
package/.nuxt/ui/link.ts CHANGED
@@ -3,13 +3,20 @@ export default {
3
3
  "variants": {
4
4
  "active": {
5
5
  "true": "text-primary",
6
- "false": [
7
- "text-muted hover:text-default",
8
- "transition-colors"
9
- ]
6
+ "false": "text-muted"
10
7
  },
11
8
  "disabled": {
12
9
  "true": "cursor-not-allowed opacity-75"
13
10
  }
14
- }
11
+ },
12
+ "compoundVariants": [
13
+ {
14
+ "active": false,
15
+ "disabled": false,
16
+ "class": [
17
+ "hover:text-default",
18
+ "transition-colors"
19
+ ]
20
+ }
21
+ ]
15
22
  }
@@ -43,24 +43,25 @@ export default {
43
43
  "linkLeadingIcon": "shrink-0 size-5",
44
44
  "linkLeadingAvatar": "shrink-0",
45
45
  "linkLeadingAvatarSize": "2xs",
46
- "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
46
+ "linkTrailing": "group ms-auto inline-flex gap-1.5 items-center",
47
47
  "linkTrailingBadge": "shrink-0",
48
48
  "linkTrailingBadgeSize": "sm",
49
49
  "linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
50
50
  "linkLabel": "truncate",
51
51
  "linkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
52
- "childList": "",
52
+ "childList": "isolate",
53
+ "childLabel": "text-xs text-highlighted",
53
54
  "childItem": "",
54
- "childLink": "group size-full px-3 py-2 rounded-md flex items-start gap-2 text-start",
55
- "childLinkWrapper": "flex flex-col items-start",
55
+ "childLink": "group relative size-full flex items-start text-start text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
56
+ "childLinkWrapper": "min-w-0",
56
57
  "childLinkIcon": "size-5 shrink-0",
57
- "childLinkLabel": "font-semibold text-sm relative inline-flex",
58
+ "childLinkLabel": "truncate",
58
59
  "childLinkLabelExternalIcon": "inline-block size-3 align-top text-dimmed",
59
- "childLinkDescription": "text-sm text-muted",
60
+ "childLinkDescription": "text-muted",
60
61
  "separator": "px-2 h-px bg-border",
61
62
  "viewportWrapper": "absolute top-full left-0 flex w-full",
62
63
  "viewport": "relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-[1]",
63
- "content": "absolute top-0 left-0 w-full",
64
+ "content": "",
64
65
  "indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[2] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
65
66
  "arrow": "relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-[1] rounded-xs"
66
67
  },
@@ -68,31 +69,31 @@ export default {
68
69
  "color": {
69
70
  "primary": {
70
71
  "link": "focus-visible:before:ring-primary",
71
- "childLink": "focus-visible:outline-primary"
72
+ "childLink": "focus-visible:before:ring-primary"
72
73
  },
73
74
  "secondary": {
74
75
  "link": "focus-visible:before:ring-secondary",
75
- "childLink": "focus-visible:outline-secondary"
76
+ "childLink": "focus-visible:before:ring-secondary"
76
77
  },
77
78
  "success": {
78
79
  "link": "focus-visible:before:ring-success",
79
- "childLink": "focus-visible:outline-success"
80
+ "childLink": "focus-visible:before:ring-success"
80
81
  },
81
82
  "info": {
82
83
  "link": "focus-visible:before:ring-info",
83
- "childLink": "focus-visible:outline-info"
84
+ "childLink": "focus-visible:before:ring-info"
84
85
  },
85
86
  "warning": {
86
87
  "link": "focus-visible:before:ring-warning",
87
- "childLink": "focus-visible:outline-warning"
88
+ "childLink": "focus-visible:before:ring-warning"
88
89
  },
89
90
  "error": {
90
91
  "link": "focus-visible:before:ring-error",
91
- "childLink": "focus-visible:outline-error"
92
+ "childLink": "focus-visible:before:ring-error"
92
93
  },
93
94
  "neutral": {
94
95
  "link": "focus-visible:before:ring-inverted",
95
- "childLink": "focus-visible:outline-inverted"
96
+ "childLink": "focus-visible:before:ring-inverted"
96
97
  }
97
98
  },
98
99
  "highlightColor": {
@@ -114,11 +115,16 @@ export default {
114
115
  "list": "flex items-center",
115
116
  "item": "py-2",
116
117
  "link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
117
- "childList": "grid p-2"
118
+ "childList": "grid p-2",
119
+ "childLink": "px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",
120
+ "childLinkLabel": "font-medium",
121
+ "content": "absolute top-0 left-0 w-full"
118
122
  },
119
123
  "vertical": {
120
124
  "root": "flex-col",
121
- "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
125
+ "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",
126
+ "childLabel": "px-1.5 py-0.5",
127
+ "childLink": "p-1.5 gap-1.5 before:inset-y-px before:inset-x-0"
122
128
  }
123
129
  },
124
130
  "contentOrientation": {
@@ -132,15 +138,15 @@ export default {
132
138
  },
133
139
  "active": {
134
140
  "true": {
135
- "childLink": "bg-elevated text-highlighted",
141
+ "childLink": "before:bg-elevated text-highlighted",
136
142
  "childLinkIcon": "text-default"
137
143
  },
138
144
  "false": {
139
145
  "link": "text-muted",
140
146
  "linkLeadingIcon": "text-dimmed",
141
147
  "childLink": [
142
- "hover:bg-elevated/50 text-default hover:text-highlighted",
143
- "transition-colors"
148
+ "hover:before:bg-elevated/50 text-default hover:text-highlighted",
149
+ "transition-colors before:transition-colors"
144
150
  ],
145
151
  "childLinkIcon": [
146
152
  "text-dimmed group-hover:text-default",
@@ -179,6 +185,23 @@ export default {
179
185
  "content": "w-60"
180
186
  }
181
187
  },
188
+ {
189
+ "orientation": "vertical" as typeof orientation[number],
190
+ "collapsed": false,
191
+ "class": {
192
+ "childList": "ms-5 border-s border-default",
193
+ "childItem": "ps-1.5 -ms-px",
194
+ "content": "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
195
+ }
196
+ },
197
+ {
198
+ "orientation": "vertical" as typeof orientation[number],
199
+ "collapsed": true,
200
+ "class": {
201
+ "link": "px-1.5",
202
+ "content": "shadow-sm rounded-sm min-h-6 p-1"
203
+ }
204
+ },
182
205
  {
183
206
  "orientation": "horizontal" as typeof orientation[number],
184
207
  "highlight": true,
@@ -319,6 +342,7 @@ export default {
319
342
  "variant": "pill" as typeof variant[number],
320
343
  "active": true,
321
344
  "highlight": true,
345
+ "disabled": false,
322
346
  "class": {
323
347
  "link": [
324
348
  "hover:before:bg-elevated/50",
@@ -476,21 +500,6 @@ export default {
476
500
  "class": {
477
501
  "link": "after:bg-inverted"
478
502
  }
479
- },
480
- {
481
- "orientation": "vertical" as typeof orientation[number],
482
- "collapsed": false,
483
- "class": {
484
- "childList": "ms-5 border-s border-default",
485
- "childItem": "ps-1.5 -ms-px"
486
- }
487
- },
488
- {
489
- "orientation": "vertical" as typeof orientation[number],
490
- "collapsed": true,
491
- "class": {
492
- "link": "px-1.5"
493
- }
494
503
  }
495
504
  ],
496
505
  "defaultVariants": {
@@ -219,7 +219,7 @@ export default {
219
219
  "orientation": "horizontal" as typeof orientation[number],
220
220
  "variant": "table" as typeof variant[number],
221
221
  "class": {
222
- "item": "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
222
+ "item": "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
223
223
  "fieldset": "gap-0 -space-x-px"
224
224
  }
225
225
  },