@nuxt/ui 3.0.0-alpha.8 → 3.0.0-alpha.9
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.
- package/.nuxt/ui/button.ts +1 -1
- package/.nuxt/ui/card.ts +1 -1
- package/.nuxt/ui/carousel.ts +2 -2
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/input-menu.ts +3 -3
- package/.nuxt/ui/input-number.ts +204 -0
- package/.nuxt/ui/input.ts +2 -2
- package/.nuxt/ui/navigation-menu.ts +1 -1
- package/.nuxt/ui/pin-input.ts +145 -0
- package/.nuxt/ui/select-menu.ts +8 -13
- package/.nuxt/ui/select.ts +2 -2
- package/.nuxt/ui/table.ts +1 -0
- package/.nuxt/ui/tabs.ts +1 -1
- package/.nuxt/ui/textarea.ts +2 -2
- package/.nuxt/ui/toaster.ts +1 -1
- package/.nuxt/ui/tooltip.ts +1 -1
- package/README.md +52 -12
- package/cli/commands/{init.mjs → make/component.mjs} +4 -4
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +2 -2
- package/cli/templates.mjs +46 -1
- package/cli/utils.mjs +14 -0
- package/dist/chunks/component-meta.cjs +7320 -3335
- package/dist/chunks/component-meta.mjs +7320 -3335
- package/dist/client/devtools/200.html +1 -1
- package/dist/client/devtools/404.html +1 -1
- package/dist/client/devtools/_nuxt/{hKiujHsR.js → BDC8ywlR.js} +1 -1
- package/dist/client/devtools/_nuxt/{DM3_wAgz.js → BT004Uxp.js} +22 -31
- package/dist/client/devtools/_nuxt/{Bj9hdafK.js → C1H2Soz3.js} +1 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +1 -0
- package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +1 -0
- package/dist/client/devtools/index.html +1 -1
- package/dist/module.cjs +13 -12
- package/dist/module.json +1 -1
- package/dist/module.mjs +13 -12
- package/dist/runtime/components/Alert.vue +4 -1
- package/dist/runtime/components/App.vue +11 -5
- package/dist/runtime/components/Breadcrumb.vue +8 -3
- package/dist/runtime/components/Carousel.vue +11 -7
- package/dist/runtime/components/CommandPalette.vue +5 -3
- package/dist/runtime/components/ContextMenuContent.vue +2 -0
- package/dist/runtime/components/DropdownMenuContent.vue +2 -0
- package/dist/runtime/components/Form.vue +18 -20
- package/dist/runtime/components/FormField.vue +7 -3
- package/dist/runtime/components/InputMenu.vue +97 -21
- package/dist/runtime/components/InputNumber.vue +192 -0
- package/dist/runtime/components/Link.vue +19 -5
- package/dist/runtime/components/Modal.vue +12 -3
- package/dist/runtime/components/NavigationMenu.vue +4 -2
- package/dist/runtime/components/Pagination.vue +12 -5
- package/dist/runtime/components/PinInput.vue +96 -0
- package/dist/runtime/components/Popover.vue +17 -1
- package/dist/runtime/components/Select.vue +1 -1
- package/dist/runtime/components/SelectMenu.vue +106 -30
- package/dist/runtime/components/Slideover.vue +12 -3
- package/dist/runtime/components/Table.vue +11 -1
- package/dist/runtime/components/Textarea.vue +1 -1
- package/dist/runtime/components/Toast.vue +4 -1
- package/dist/runtime/components/Toaster.vue +22 -14
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/useFormField.d.ts +4 -1
- package/dist/runtime/composables/useFormField.js +1 -1
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/locale/ar.d.ts +2 -0
- package/dist/runtime/locale/ar.js +47 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +46 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +46 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +46 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +46 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +47 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +46 -0
- package/dist/runtime/locale/index.d.ts +12 -0
- package/dist/runtime/locale/index.js +12 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +46 -0
- package/dist/runtime/locale/pl.d.ts +2 -0
- package/dist/runtime/locale/pl.js +46 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +46 -0
- package/dist/runtime/locale/zh_hans.d.ts +2 -0
- package/dist/runtime/locale/zh_hans.js +46 -0
- package/dist/runtime/locale/zh_hant.d.ts +2 -0
- package/dist/runtime/locale/zh_hant.js +46 -0
- package/dist/runtime/types/form.d.ts +7 -2
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/locale.d.ts +48 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/utils/form.d.ts +5 -9
- package/dist/runtime/utils/form.js +115 -50
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/shared/{ui.BU7wzH0D.cjs → ui.BPnAe4QS.cjs} +194 -36
- package/dist/shared/{ui.BufKhDiD.mjs → ui.d52SSCwA.mjs} +194 -36
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +5 -3
- package/dist/unplugin.d.mts +5 -3
- package/dist/unplugin.d.ts +5 -3
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +33 -26
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +0 -1
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +0 -24
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +0 -1
package/.nuxt/ui/button.ts
CHANGED
|
@@ -268,7 +268,7 @@ export default {
|
|
|
268
268
|
{
|
|
269
269
|
"color": "neutral" as const,
|
|
270
270
|
"variant": "solid" as const,
|
|
271
|
-
"class": "text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)] hover:bg-[var(--ui-bg-inverted)]/
|
|
271
|
+
"class": "text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)] hover:bg-[var(--ui-bg-inverted)]/90 disabled:bg-[var(--ui-bg-inverted)] aria-disabled:bg-[var(--ui-bg-inverted)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-border-inverted)]"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
"color": "neutral" as const,
|
package/.nuxt/ui/card.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"root": "bg-[var(--ui-bg)] ring ring-[var(--ui-border)] divide-y divide-[var(--ui-border)] rounded-[calc(var(--ui-radius)*2)] shadow",
|
|
3
|
+
"root": "bg-[var(--ui-bg)] ring ring-[var(--ui-border)] divide-y divide-[var(--ui-border)] rounded-[calc(var(--ui-radius)*2)] shadow-sm",
|
|
4
4
|
"header": "p-4 sm:px-6",
|
|
5
5
|
"body": "p-4 sm:p-6",
|
|
6
6
|
"footer": "p-4 sm:px-6"
|
package/.nuxt/ui/carousel.ts
CHANGED
|
@@ -19,8 +19,8 @@ export default {
|
|
|
19
19
|
"vertical": {
|
|
20
20
|
"container": "flex-col -mt-4",
|
|
21
21
|
"item": "pt-4",
|
|
22
|
-
"prev": "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
23
|
-
"next": "-bottom-12 left-1/2 -translate-x-1/2 rotate-90"
|
|
22
|
+
"prev": "-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",
|
|
23
|
+
"next": "-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"
|
|
24
24
|
},
|
|
25
25
|
"horizontal": {
|
|
26
26
|
"container": "flex-row -ms-4",
|
package/.nuxt/ui/container.ts
CHANGED
package/.nuxt/ui/index.ts
CHANGED
|
@@ -20,11 +20,13 @@ export { default as form } from './form'
|
|
|
20
20
|
export { default as formField } from './form-field'
|
|
21
21
|
export { default as input } from './input'
|
|
22
22
|
export { default as inputMenu } from './input-menu'
|
|
23
|
+
export { default as inputNumber } from './input-number'
|
|
23
24
|
export { default as kbd } from './kbd'
|
|
24
25
|
export { default as link } from './link'
|
|
25
26
|
export { default as modal } from './modal'
|
|
26
27
|
export { default as navigationMenu } from './navigation-menu'
|
|
27
28
|
export { default as pagination } from './pagination'
|
|
29
|
+
export { default as pinInput } from './pin-input'
|
|
28
30
|
export { default as popover } from './popover'
|
|
29
31
|
export { default as progress } from './progress'
|
|
30
32
|
export { default as radioGroup } from './radio-group'
|
package/.nuxt/ui/input-menu.ts
CHANGED
|
@@ -144,8 +144,8 @@ export default {
|
|
|
144
144
|
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
145
145
|
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
146
146
|
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
147
|
-
"ghost": "text-[var(--ui-text-highlighted)] hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
148
|
-
"none": "text-[var(--ui-text-highlighted)]"
|
|
147
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
148
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
149
149
|
},
|
|
150
150
|
"color": {
|
|
151
151
|
"primary": "",
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
175
175
|
"true": {
|
|
176
176
|
"root": "flex-wrap",
|
|
177
177
|
"base": "",
|
|
178
|
-
"tagsInput": "border-0 placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
178
|
+
"tagsInput": "border-0 bg-transparent placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
179
179
|
},
|
|
180
180
|
"false": {
|
|
181
181
|
"base": "w-full border-0 placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative inline-flex items-center",
|
|
4
|
+
"base": [
|
|
5
|
+
"w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
6
|
+
"transition-colors"
|
|
7
|
+
],
|
|
8
|
+
"increment": "absolute flex items-center",
|
|
9
|
+
"decrement": "absolute flex items-center"
|
|
10
|
+
},
|
|
11
|
+
"variants": {
|
|
12
|
+
"color": {
|
|
13
|
+
"primary": "",
|
|
14
|
+
"secondary": "",
|
|
15
|
+
"success": "",
|
|
16
|
+
"info": "",
|
|
17
|
+
"warning": "",
|
|
18
|
+
"error": "",
|
|
19
|
+
"neutral": ""
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"xs": "px-2 py-1 text-xs gap-1",
|
|
23
|
+
"sm": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
24
|
+
"md": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
25
|
+
"lg": "px-3 py-2 text-sm gap-2",
|
|
26
|
+
"xl": "px-3 py-2 text-base gap-2"
|
|
27
|
+
},
|
|
28
|
+
"variant": {
|
|
29
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
30
|
+
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
31
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
32
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
33
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
34
|
+
},
|
|
35
|
+
"disabled": {
|
|
36
|
+
"true": {
|
|
37
|
+
"increment": "opacity-75 cursor-not-allowed",
|
|
38
|
+
"decrement": "opacity-75 cursor-not-allowed"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"orientation": {
|
|
42
|
+
"horizontal": {
|
|
43
|
+
"base": "text-center",
|
|
44
|
+
"increment": "inset-y-0 end-0 pe-1",
|
|
45
|
+
"decrement": "inset-y-0 start-0 ps-1"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"increment": "top-0 end-0 pe-1 [&>button]:py-0 scale-80",
|
|
49
|
+
"decrement": "bottom-0 end-0 pe-1 [&>button]:py-0 scale-80"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"highlight": {
|
|
53
|
+
"true": ""
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"compoundVariants": [
|
|
57
|
+
{
|
|
58
|
+
"color": "primary" as const,
|
|
59
|
+
"variant": [
|
|
60
|
+
"outline" as const,
|
|
61
|
+
"subtle" as const
|
|
62
|
+
],
|
|
63
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"color": "secondary" as const,
|
|
67
|
+
"variant": [
|
|
68
|
+
"outline" as const,
|
|
69
|
+
"subtle" as const
|
|
70
|
+
],
|
|
71
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"color": "success" as const,
|
|
75
|
+
"variant": [
|
|
76
|
+
"outline" as const,
|
|
77
|
+
"subtle" as const
|
|
78
|
+
],
|
|
79
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"color": "info" as const,
|
|
83
|
+
"variant": [
|
|
84
|
+
"outline" as const,
|
|
85
|
+
"subtle" as const
|
|
86
|
+
],
|
|
87
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"color": "warning" as const,
|
|
91
|
+
"variant": [
|
|
92
|
+
"outline" as const,
|
|
93
|
+
"subtle" as const
|
|
94
|
+
],
|
|
95
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"color": "error" as const,
|
|
99
|
+
"variant": [
|
|
100
|
+
"outline" as const,
|
|
101
|
+
"subtle" as const
|
|
102
|
+
],
|
|
103
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"color": "primary" as const,
|
|
107
|
+
"highlight": true,
|
|
108
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"color": "secondary" as const,
|
|
112
|
+
"highlight": true,
|
|
113
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"color": "success" as const,
|
|
117
|
+
"highlight": true,
|
|
118
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"color": "info" as const,
|
|
122
|
+
"highlight": true,
|
|
123
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"color": "warning" as const,
|
|
127
|
+
"highlight": true,
|
|
128
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"color": "error" as const,
|
|
132
|
+
"highlight": true,
|
|
133
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"color": "neutral" as const,
|
|
137
|
+
"variant": [
|
|
138
|
+
"outline" as const,
|
|
139
|
+
"subtle" as const
|
|
140
|
+
],
|
|
141
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"color": "neutral" as const,
|
|
145
|
+
"highlight": true,
|
|
146
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"orientation": "horizontal" as const,
|
|
150
|
+
"size": "xs" as const,
|
|
151
|
+
"class": "px-7"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"orientation": "horizontal" as const,
|
|
155
|
+
"size": "sm" as const,
|
|
156
|
+
"class": "px-8"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"orientation": "horizontal" as const,
|
|
160
|
+
"size": "md" as const,
|
|
161
|
+
"class": "px-9"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"orientation": "horizontal" as const,
|
|
165
|
+
"size": "lg" as const,
|
|
166
|
+
"class": "px-10"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"orientation": "horizontal" as const,
|
|
170
|
+
"size": "xl" as const,
|
|
171
|
+
"class": "px-11"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"orientation": "vertical" as const,
|
|
175
|
+
"size": "xs" as const,
|
|
176
|
+
"class": "pe-7"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"orientation": "vertical" as const,
|
|
180
|
+
"size": "sm" as const,
|
|
181
|
+
"class": "pe-8"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"orientation": "vertical" as const,
|
|
185
|
+
"size": "md" as const,
|
|
186
|
+
"class": "pe-9"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"orientation": "vertical" as const,
|
|
190
|
+
"size": "lg" as const,
|
|
191
|
+
"class": "pe-10"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"orientation": "vertical" as const,
|
|
195
|
+
"size": "xl" as const,
|
|
196
|
+
"class": "pe-11"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"defaultVariants": {
|
|
200
|
+
"size": "md" as const,
|
|
201
|
+
"color": "primary" as const,
|
|
202
|
+
"variant": "outline" as const
|
|
203
|
+
}
|
|
204
|
+
}
|
package/.nuxt/ui/input.ts
CHANGED
|
@@ -69,8 +69,8 @@ export default {
|
|
|
69
69
|
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
70
70
|
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
71
71
|
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
72
|
-
"ghost": "text-[var(--ui-text-highlighted)] hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
73
|
-
"none": "text-[var(--ui-text-highlighted)]"
|
|
72
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
73
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
74
74
|
},
|
|
75
75
|
"color": {
|
|
76
76
|
"primary": "",
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
"linkLeadingAvatar": "shrink-0",
|
|
9
9
|
"linkLeadingAvatarSize": "2xs",
|
|
10
10
|
"linkTrailing": "ms-auto inline-flex",
|
|
11
|
-
"linkTrailingBadge": "shrink-0 rounded",
|
|
11
|
+
"linkTrailingBadge": "shrink-0 rounded-[calc(var(--ui-radius)]",
|
|
12
12
|
"linkTrailingBadgeSize": "sm",
|
|
13
13
|
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
14
14
|
"linkLabel": "truncate",
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative inline-flex items-center gap-1.5",
|
|
4
|
+
"base": [
|
|
5
|
+
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-[var(--ui-text-dimmed)] text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
6
|
+
"transition-colors"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"variants": {
|
|
10
|
+
"size": {
|
|
11
|
+
"xs": {
|
|
12
|
+
"base": "size-6 text-xs"
|
|
13
|
+
},
|
|
14
|
+
"sm": {
|
|
15
|
+
"base": "size-7 text-xs"
|
|
16
|
+
},
|
|
17
|
+
"md": {
|
|
18
|
+
"base": "size-8 text-sm"
|
|
19
|
+
},
|
|
20
|
+
"lg": {
|
|
21
|
+
"base": "size-9 text-sm"
|
|
22
|
+
},
|
|
23
|
+
"xl": {
|
|
24
|
+
"base": "size-10 text-base"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"variant": {
|
|
28
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
29
|
+
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
30
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
31
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
32
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
33
|
+
},
|
|
34
|
+
"color": {
|
|
35
|
+
"primary": "",
|
|
36
|
+
"secondary": "",
|
|
37
|
+
"success": "",
|
|
38
|
+
"info": "",
|
|
39
|
+
"warning": "",
|
|
40
|
+
"error": "",
|
|
41
|
+
"neutral": ""
|
|
42
|
+
},
|
|
43
|
+
"highlight": {
|
|
44
|
+
"true": ""
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"compoundVariants": [
|
|
48
|
+
{
|
|
49
|
+
"color": "primary" as const,
|
|
50
|
+
"variant": [
|
|
51
|
+
"outline" as const,
|
|
52
|
+
"subtle" as const
|
|
53
|
+
],
|
|
54
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"color": "secondary" as const,
|
|
58
|
+
"variant": [
|
|
59
|
+
"outline" as const,
|
|
60
|
+
"subtle" as const
|
|
61
|
+
],
|
|
62
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"color": "success" as const,
|
|
66
|
+
"variant": [
|
|
67
|
+
"outline" as const,
|
|
68
|
+
"subtle" as const
|
|
69
|
+
],
|
|
70
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"color": "info" as const,
|
|
74
|
+
"variant": [
|
|
75
|
+
"outline" as const,
|
|
76
|
+
"subtle" as const
|
|
77
|
+
],
|
|
78
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"color": "warning" as const,
|
|
82
|
+
"variant": [
|
|
83
|
+
"outline" as const,
|
|
84
|
+
"subtle" as const
|
|
85
|
+
],
|
|
86
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"color": "error" as const,
|
|
90
|
+
"variant": [
|
|
91
|
+
"outline" as const,
|
|
92
|
+
"subtle" as const
|
|
93
|
+
],
|
|
94
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"color": "primary" as const,
|
|
98
|
+
"highlight": true,
|
|
99
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"color": "secondary" as const,
|
|
103
|
+
"highlight": true,
|
|
104
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"color": "success" as const,
|
|
108
|
+
"highlight": true,
|
|
109
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"color": "info" as const,
|
|
113
|
+
"highlight": true,
|
|
114
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"color": "warning" as const,
|
|
118
|
+
"highlight": true,
|
|
119
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"color": "error" as const,
|
|
123
|
+
"highlight": true,
|
|
124
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"color": "neutral" as const,
|
|
128
|
+
"variant": [
|
|
129
|
+
"outline" as const,
|
|
130
|
+
"subtle" as const
|
|
131
|
+
],
|
|
132
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"color": "neutral" as const,
|
|
136
|
+
"highlight": true,
|
|
137
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"defaultVariants": {
|
|
141
|
+
"size": "md" as const,
|
|
142
|
+
"color": "primary" as const,
|
|
143
|
+
"variant": "outline" as const
|
|
144
|
+
}
|
|
145
|
+
}
|
package/.nuxt/ui/select-menu.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
"itemTrailingIcon": "shrink-0",
|
|
35
35
|
"itemLabel": "truncate",
|
|
36
36
|
"placeholder": "truncate text-[var(--ui-text-dimmed)]",
|
|
37
|
-
"input": "
|
|
37
|
+
"input": "border-b border-[var(--ui-border)]"
|
|
38
38
|
},
|
|
39
39
|
"variants": {
|
|
40
40
|
"buttonGroup": {
|
|
@@ -55,8 +55,7 @@ export default {
|
|
|
55
55
|
"itemLeadingAvatarSize": "3xs",
|
|
56
56
|
"itemLeadingChip": "size-4",
|
|
57
57
|
"itemLeadingChipSize": "sm",
|
|
58
|
-
"itemTrailingIcon": "size-4"
|
|
59
|
-
"input": "text-xs px-2 py-1"
|
|
58
|
+
"itemTrailingIcon": "size-4"
|
|
60
59
|
},
|
|
61
60
|
"sm": {
|
|
62
61
|
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
@@ -71,8 +70,7 @@ export default {
|
|
|
71
70
|
"itemLeadingAvatarSize": "3xs",
|
|
72
71
|
"itemLeadingChip": "size-4",
|
|
73
72
|
"itemLeadingChipSize": "sm",
|
|
74
|
-
"itemTrailingIcon": "size-4"
|
|
75
|
-
"input": "text-xs px-2.5 py-1.5"
|
|
73
|
+
"itemTrailingIcon": "size-4"
|
|
76
74
|
},
|
|
77
75
|
"md": {
|
|
78
76
|
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
@@ -87,8 +85,7 @@ export default {
|
|
|
87
85
|
"itemLeadingAvatarSize": "2xs",
|
|
88
86
|
"itemLeadingChip": "size-5",
|
|
89
87
|
"itemLeadingChipSize": "md",
|
|
90
|
-
"itemTrailingIcon": "size-5"
|
|
91
|
-
"input": "text-sm px-2.5 py-1.5"
|
|
88
|
+
"itemTrailingIcon": "size-5"
|
|
92
89
|
},
|
|
93
90
|
"lg": {
|
|
94
91
|
"base": "px-3 py-2 text-sm gap-2",
|
|
@@ -103,8 +100,7 @@ export default {
|
|
|
103
100
|
"itemLeadingAvatarSize": "2xs",
|
|
104
101
|
"itemLeadingChip": "size-5",
|
|
105
102
|
"itemLeadingChipSize": "md",
|
|
106
|
-
"itemTrailingIcon": "size-5"
|
|
107
|
-
"input": "text-sm px-3 py-2"
|
|
103
|
+
"itemTrailingIcon": "size-5"
|
|
108
104
|
},
|
|
109
105
|
"xl": {
|
|
110
106
|
"base": "px-3 py-2 text-base gap-2",
|
|
@@ -119,16 +115,15 @@ export default {
|
|
|
119
115
|
"itemLeadingAvatarSize": "xs",
|
|
120
116
|
"itemLeadingChip": "size-6",
|
|
121
117
|
"itemLeadingChipSize": "lg",
|
|
122
|
-
"itemTrailingIcon": "size-6"
|
|
123
|
-
"input": "text-base px-3 py-2"
|
|
118
|
+
"itemTrailingIcon": "size-6"
|
|
124
119
|
}
|
|
125
120
|
},
|
|
126
121
|
"variant": {
|
|
127
122
|
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
128
123
|
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
129
124
|
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
130
|
-
"ghost": "text-[var(--ui-text-highlighted)] hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
131
|
-
"none": "text-[var(--ui-text-highlighted)]"
|
|
125
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
126
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
132
127
|
},
|
|
133
128
|
"color": {
|
|
134
129
|
"primary": "",
|
package/.nuxt/ui/select.ts
CHANGED
|
@@ -120,8 +120,8 @@ export default {
|
|
|
120
120
|
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
121
121
|
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
122
122
|
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
123
|
-
"ghost": "text-[var(--ui-text-highlighted)] hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
124
|
-
"none": "text-[var(--ui-text-highlighted)]"
|
|
123
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
124
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
125
125
|
},
|
|
126
126
|
"color": {
|
|
127
127
|
"primary": "",
|
package/.nuxt/ui/table.ts
CHANGED
|
@@ -2,6 +2,7 @@ export default {
|
|
|
2
2
|
"slots": {
|
|
3
3
|
"root": "relative overflow-auto",
|
|
4
4
|
"base": "min-w-full overflow-clip",
|
|
5
|
+
"caption": "sr-only",
|
|
5
6
|
"thead": "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-[var(--ui-border-accented)]",
|
|
6
7
|
"tbody": "divide-y divide-[var(--ui-border)]",
|
|
7
8
|
"tr": "data-[selected=true]:bg-[var(--ui-bg-elevated)]/50",
|
package/.nuxt/ui/tabs.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
"pill": {
|
|
28
28
|
"list": "bg-[var(--ui-bg-elevated)] rounded-[calc(var(--ui-radius)*2)]",
|
|
29
29
|
"trigger": "flex-1 w-full",
|
|
30
|
-
"indicator": "rounded-[calc(var(--ui-radius)*1.5)] shadow-
|
|
30
|
+
"indicator": "rounded-[calc(var(--ui-radius)*1.5)] shadow-xs"
|
|
31
31
|
},
|
|
32
32
|
"link": {
|
|
33
33
|
"list": "border-[var(--ui-border)]",
|
package/.nuxt/ui/textarea.ts
CHANGED
|
@@ -69,8 +69,8 @@ export default {
|
|
|
69
69
|
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
70
70
|
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
71
71
|
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
72
|
-
"ghost": "text-[var(--ui-text-highlighted)] hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
73
|
-
"none": "text-[var(--ui-text-highlighted)]"
|
|
72
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
73
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
74
74
|
},
|
|
75
75
|
"color": {
|
|
76
76
|
"primary": "",
|
package/.nuxt/ui/toaster.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
3
|
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-[var(--height)] focus:outline-none",
|
|
4
|
-
"base": "absolute inset-x-0 z-[var(--index)] transform-[var(--transform)] data-[expanded=false]:data-[front=false]:h-[var(--front-height)] data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
4
|
+
"base": "pointer-events-auto absolute inset-x-0 z-[var(--index)] transform-[var(--transform)] data-[expanded=false]:data-[front=false]:h-[var(--front-height)] data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
5
5
|
},
|
|
6
6
|
"variants": {
|
|
7
7
|
"position": {
|
package/.nuxt/ui/tooltip.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "flex items-center gap-1 bg-[var(--ui-bg)] text-[var(--ui-text-highlighted)] shadow rounded-[var(--ui-radius)] ring ring-[var(--ui-border)] h-6 px-2 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]",
|
|
3
|
+
"content": "flex items-center gap-1 bg-[var(--ui-bg)] text-[var(--ui-text-highlighted)] shadow-sm rounded-[var(--ui-radius)] ring ring-[var(--ui-border)] h-6 px-2 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]",
|
|
4
4
|
"arrow": "fill-[var(--ui-border)]",
|
|
5
5
|
"text": "truncate",
|
|
6
6
|
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
|