@nuxt/ui 3.0.1 → 3.1.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.
- package/.nuxt/ui/accordion.ts +25 -4
- package/.nuxt/ui/alert.ts +52 -31
- package/.nuxt/ui/avatar-group.ts +24 -3
- package/.nuxt/ui/avatar.ts +26 -5
- package/.nuxt/ui/badge.ts +56 -35
- package/.nuxt/ui/breadcrumb.ts +28 -7
- package/.nuxt/ui/button-group.ts +23 -2
- package/.nuxt/ui/button.ts +66 -45
- package/.nuxt/ui/calendar.ts +39 -18
- package/.nuxt/ui/card.ts +28 -7
- package/.nuxt/ui/carousel.ts +29 -8
- package/.nuxt/ui/checkbox-group.ts +82 -0
- package/.nuxt/ui/checkbox.ts +163 -29
- package/.nuxt/ui/chip.ts +31 -10
- package/.nuxt/ui/collapsible.ts +23 -2
- package/.nuxt/ui/color-picker.ts +26 -5
- package/.nuxt/ui/command-palette.ts +37 -16
- package/.nuxt/ui/container.ts +24 -3
- package/.nuxt/ui/context-menu.ts +56 -35
- package/.nuxt/ui/drawer.ts +33 -12
- package/.nuxt/ui/dropdown-menu.ts +57 -36
- package/.nuxt/ui/form-field.ts +29 -8
- package/.nuxt/ui/form.ts +23 -2
- package/.nuxt/ui/index.ts +1 -0
- package/.nuxt/ui/input-menu.ts +65 -44
- package/.nuxt/ui/input-number.ts +43 -22
- package/.nuxt/ui/input.ts +46 -25
- package/.nuxt/ui/kbd.ts +27 -6
- package/.nuxt/ui/link.ts +26 -5
- package/.nuxt/ui/modal.ts +28 -7
- package/.nuxt/ui/navigation-menu.ts +103 -84
- package/.nuxt/ui/pagination.ts +23 -2
- package/.nuxt/ui/pin-input.ts +43 -22
- package/.nuxt/ui/popover.ts +25 -4
- package/.nuxt/ui/progress.ts +40 -19
- package/.nuxt/ui/radio-group.ts +273 -37
- package/.nuxt/ui/select-menu.ts +59 -35
- package/.nuxt/ui/select.ts +55 -34
- package/.nuxt/ui/separator.ts +31 -10
- package/.nuxt/ui/skeleton.ts +24 -3
- package/.nuxt/ui/slideover.ts +27 -6
- package/.nuxt/ui/slider.ts +39 -18
- package/.nuxt/ui/stepper.ts +41 -20
- package/.nuxt/ui/switch.ts +44 -23
- package/.nuxt/ui/table.ts +38 -17
- package/.nuxt/ui/tabs.ts +55 -34
- package/.nuxt/ui/textarea.ts +63 -37
- package/.nuxt/ui/toast.ts +47 -26
- package/.nuxt/ui/toaster.ts +23 -2
- package/.nuxt/ui/tooltip.ts +25 -4
- package/.nuxt/ui/tree.ts +41 -20
- package/.nuxt/ui.css +56 -12
- package/README.md +11 -0
- package/cli/templates.mjs +18 -17
- package/dist/module.d.mts +2 -1
- package/dist/module.json +5 -5
- package/dist/module.mjs +11 -7
- package/dist/runtime/components/Accordion.vue +36 -92
- package/dist/runtime/components/Accordion.vue.d.ts +91 -0
- package/dist/runtime/components/Alert.vue +37 -100
- package/dist/runtime/components/Alert.vue.d.ts +96 -0
- package/dist/runtime/components/App.vue +28 -34
- package/dist/runtime/components/App.vue.d.ts +24 -0
- package/dist/runtime/components/Avatar.vue +47 -78
- package/dist/runtime/components/Avatar.vue.d.ts +60 -0
- package/dist/runtime/components/AvatarGroup.vue +40 -77
- package/dist/runtime/components/AvatarGroup.vue.d.ts +40 -0
- package/dist/runtime/components/Badge.vue +33 -62
- package/dist/runtime/components/Badge.vue.d.ts +62 -0
- package/dist/runtime/components/Breadcrumb.vue +36 -88
- package/dist/runtime/components/Breadcrumb.vue.d.ts +82 -0
- package/dist/runtime/components/Button.vue +96 -105
- package/dist/runtime/components/Button.vue.d.ts +73 -0
- package/dist/runtime/components/ButtonGroup.vue +20 -46
- package/dist/runtime/components/ButtonGroup.vue.d.ts +55 -0
- package/dist/runtime/components/Calendar.vue +73 -127
- package/dist/runtime/components/Calendar.vue.d.ts +107 -0
- package/dist/runtime/components/Card.vue +18 -40
- package/dist/runtime/components/Card.vue.d.ts +38 -0
- package/dist/runtime/components/Carousel.vue +112 -230
- package/dist/runtime/components/Carousel.vue.d.ts +120 -0
- package/dist/runtime/components/Checkbox.vue +52 -93
- package/dist/runtime/components/Checkbox.vue.d.ts +76 -0
- package/dist/runtime/components/CheckboxGroup.vue +121 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +75 -0
- package/dist/runtime/components/Chip.vue +26 -69
- package/dist/runtime/components/Chip.vue.d.ts +71 -0
- package/dist/runtime/components/Collapsible.vue +22 -41
- package/dist/runtime/components/Collapsible.vue.d.ts +50 -0
- package/dist/runtime/components/ColorPicker.vue +111 -197
- package/dist/runtime/components/ColorPicker.vue.d.ts +63 -0
- package/dist/runtime/components/CommandPalette.vue +94 -234
- package/dist/runtime/components/CommandPalette.vue.d.ts +173 -0
- package/dist/runtime/components/Container.vue +15 -28
- package/dist/runtime/components/Container.vue.d.ts +27 -0
- package/dist/runtime/components/ContextMenu.vue +32 -119
- package/dist/runtime/components/ContextMenu.vue.d.ts +127 -0
- package/dist/runtime/components/ContextMenuContent.vue +71 -72
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +105 -0
- package/dist/runtime/components/Drawer.vue +49 -87
- package/dist/runtime/components/Drawer.vue.d.ts +88 -0
- package/dist/runtime/components/DropdownMenu.vue +37 -129
- package/dist/runtime/components/DropdownMenu.vue.d.ts +141 -0
- package/dist/runtime/components/DropdownMenuContent.vue +76 -79
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +55 -0
- package/dist/runtime/components/Form.vue +135 -219
- package/dist/runtime/components/Form.vue.d.ts +66 -0
- package/dist/runtime/components/FormField.vue +36 -77
- package/dist/runtime/components/FormField.vue.d.ts +70 -0
- package/dist/runtime/components/Icon.vue +12 -19
- package/dist/runtime/components/Icon.vue.d.ts +17 -0
- package/dist/runtime/components/Input.vue +82 -140
- package/dist/runtime/components/Input.vue.d.ts +91 -0
- package/dist/runtime/components/InputMenu.vue +193 -302
- package/dist/runtime/components/InputMenu.vue.d.ts +312 -0
- package/dist/runtime/components/InputNumber.vue +71 -133
- package/dist/runtime/components/InputNumber.vue.d.ts +193 -0
- package/dist/runtime/components/Kbd.vue +20 -46
- package/dist/runtime/components/Kbd.vue.d.ts +55 -0
- package/dist/runtime/components/Link.vue +98 -173
- package/dist/runtime/components/Link.vue.d.ts +124 -0
- package/dist/runtime/components/LinkBase.vue +33 -41
- package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
- package/dist/runtime/components/Modal.vue +53 -116
- package/dist/runtime/components/Modal.vue.d.ts +109 -0
- package/dist/runtime/components/NavigationMenu.vue +78 -186
- package/dist/runtime/components/NavigationMenu.vue.d.ts +159 -0
- package/dist/runtime/components/OverlayProvider.vue +14 -18
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
- package/dist/runtime/components/Pagination.vue +46 -140
- package/dist/runtime/components/Pagination.vue.d.ts +143 -0
- package/dist/runtime/components/PinInput.vue +61 -78
- package/dist/runtime/components/PinInput.vue.d.ts +68 -0
- package/dist/runtime/components/Popover.vue +47 -84
- package/dist/runtime/components/Popover.vue.d.ts +80 -0
- package/dist/runtime/components/Progress.vue +70 -131
- package/dist/runtime/components/Progress.vue.d.ts +97 -0
- package/dist/runtime/components/RadioGroup.vue +75 -126
- package/dist/runtime/components/RadioGroup.vue.d.ts +88 -0
- package/dist/runtime/components/Select.vue +115 -202
- package/dist/runtime/components/Select.vue.d.ts +139 -0
- package/dist/runtime/components/SelectMenu.vue +167 -281
- package/dist/runtime/components/SelectMenu.vue.d.ts +184 -0
- package/dist/runtime/components/Separator.vue +29 -71
- package/dist/runtime/components/Separator.vue.d.ts +75 -0
- package/dist/runtime/components/Skeleton.vue +21 -23
- package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
- package/dist/runtime/components/Slideover.vue +53 -120
- package/dist/runtime/components/Slideover.vue.d.ts +111 -0
- package/dist/runtime/components/Slider.vue +46 -84
- package/dist/runtime/components/Slider.vue.d.ts +71 -0
- package/dist/runtime/components/Stepper.vue +44 -113
- package/dist/runtime/components/Stepper.vue.d.ts +89 -0
- package/dist/runtime/components/Switch.vue +45 -93
- package/dist/runtime/components/Switch.vue.d.ts +73 -0
- package/dist/runtime/components/Table.vue +165 -264
- package/dist/runtime/components/Table.vue.d.ts +183 -0
- package/dist/runtime/components/Tabs.vue +40 -105
- package/dist/runtime/components/Tabs.vue.d.ts +104 -0
- package/dist/runtime/components/Textarea.vue +113 -158
- package/dist/runtime/components/Textarea.vue.d.ts +95 -0
- package/dist/runtime/components/Toast.vue +49 -110
- package/dist/runtime/components/Toast.vue.d.ts +95 -0
- package/dist/runtime/components/Toaster.vue +70 -107
- package/dist/runtime/components/Toaster.vue.d.ts +63 -0
- package/dist/runtime/components/Tooltip.vue +38 -65
- package/dist/runtime/components/Tooltip.vue.d.ts +65 -0
- package/dist/runtime/components/Tree.vue +57 -150
- package/dist/runtime/components/Tree.vue.d.ts +128 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +0 -1
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/useFormField.js +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +16 -8
- package/dist/runtime/composables/useOverlay.js +14 -6
- package/dist/runtime/composables/usePortal.d.ts +6 -0
- package/dist/runtime/composables/usePortal.js +17 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +146 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +92 -0
- package/dist/runtime/inertia/stubs.d.ts +43 -0
- package/dist/runtime/inertia/stubs.js +82 -0
- package/dist/runtime/locale/bg.d.ts +3 -0
- package/dist/runtime/locale/bg.js +54 -0
- package/dist/runtime/locale/hy.d.ts +3 -0
- package/dist/runtime/locale/hy.js +54 -0
- package/dist/runtime/locale/index.d.ts +6 -1
- package/dist/runtime/locale/index.js +6 -1
- package/dist/runtime/locale/kk.d.ts +3 -0
- package/dist/runtime/locale/kk.js +54 -0
- package/dist/runtime/locale/tj.d.ts +3 -0
- package/dist/runtime/locale/tj.js +54 -0
- package/dist/runtime/locale/ug_cn.d.ts +3 -0
- package/dist/runtime/locale/ug_cn.js +55 -0
- package/dist/runtime/types/form.d.ts +5 -1
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +70 -10
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +3 -0
- package/dist/runtime/utils/link.d.ts +4 -27
- package/dist/runtime/utils/link.js +32 -1
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Icon.vue +7 -8
- package/dist/runtime/vue/components/Icon.vue.d.ts +14 -0
- package/dist/runtime/vue/components/Link.vue +118 -199
- package/dist/runtime/vue/components/Link.vue.d.ts +124 -0
- package/dist/runtime/vue/stubs.d.ts +5 -0
- package/dist/runtime/vue/stubs.js +11 -2
- package/dist/shared/{ui.BCaWD5Ek.mjs → ui.D7lOOabO.mjs} +623 -364
- package/dist/types.d.mts +5 -1
- package/dist/unplugin.d.mts +6 -1
- package/dist/unplugin.mjs +25 -4
- package/dist/vite.mjs +1 -1
- package/package.json +122 -64
- package/dist/module.cjs +0 -62
- package/dist/module.d.cts +0 -44
- package/dist/module.d.ts +0 -44
- package/dist/shared/ui.C6uTSFTI.cjs +0 -3555
- package/dist/types.d.ts +0 -1
- package/dist/unplugin.cjs +0 -232
- package/dist/unplugin.d.cts +0 -61
- package/dist/unplugin.d.ts +0 -61
- package/dist/vite.cjs +0 -23
- package/dist/vite.d.cts +0 -15
- package/dist/vite.d.ts +0 -15
package/.nuxt/ui/accordion.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
|
|
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 = {
|
|
2
21
|
"slots": {
|
|
3
22
|
"root": "w-full",
|
|
4
|
-
"item": "border-b border-
|
|
23
|
+
"item": "border-b border-default last:border-b-0",
|
|
5
24
|
"header": "flex",
|
|
6
|
-
"trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3.5 focus-visible:outline-
|
|
25
|
+
"trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3.5 focus-visible:outline-primary min-w-0",
|
|
7
26
|
"content": "data-[state=open]:animate-[accordion-down_200ms_ease-out] data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
8
27
|
"body": "text-sm pb-3.5",
|
|
9
28
|
"leadingIcon": "shrink-0 size-5",
|
|
@@ -17,4 +36,6 @@ export default {
|
|
|
17
36
|
}
|
|
18
37
|
}
|
|
19
38
|
}
|
|
20
|
-
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default result as typeof theme
|
package/.nuxt/ui/alert.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/alert"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -20,9 +22,26 @@ const orientation = [
|
|
|
20
22
|
"vertical"
|
|
21
23
|
] as const
|
|
22
24
|
|
|
23
|
-
|
|
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 = {
|
|
24
43
|
"slots": {
|
|
25
|
-
"root": "relative overflow-hidden w-full rounded-
|
|
44
|
+
"root": "relative overflow-hidden w-full rounded-lg p-4 flex gap-2.5",
|
|
26
45
|
"wrapper": "min-w-0 flex-1 flex flex-col",
|
|
27
46
|
"title": "text-sm font-medium",
|
|
28
47
|
"description": "text-sm opacity-90",
|
|
@@ -69,196 +88,196 @@ export default {
|
|
|
69
88
|
"color": "primary" as typeof color[number],
|
|
70
89
|
"variant": "solid" as typeof variant[number],
|
|
71
90
|
"class": {
|
|
72
|
-
"root": "bg-
|
|
91
|
+
"root": "bg-primary text-inverted"
|
|
73
92
|
}
|
|
74
93
|
},
|
|
75
94
|
{
|
|
76
95
|
"color": "secondary" as typeof color[number],
|
|
77
96
|
"variant": "solid" as typeof variant[number],
|
|
78
97
|
"class": {
|
|
79
|
-
"root": "bg-
|
|
98
|
+
"root": "bg-secondary text-inverted"
|
|
80
99
|
}
|
|
81
100
|
},
|
|
82
101
|
{
|
|
83
102
|
"color": "success" as typeof color[number],
|
|
84
103
|
"variant": "solid" as typeof variant[number],
|
|
85
104
|
"class": {
|
|
86
|
-
"root": "bg-
|
|
105
|
+
"root": "bg-success text-inverted"
|
|
87
106
|
}
|
|
88
107
|
},
|
|
89
108
|
{
|
|
90
109
|
"color": "info" as typeof color[number],
|
|
91
110
|
"variant": "solid" as typeof variant[number],
|
|
92
111
|
"class": {
|
|
93
|
-
"root": "bg-
|
|
112
|
+
"root": "bg-info text-inverted"
|
|
94
113
|
}
|
|
95
114
|
},
|
|
96
115
|
{
|
|
97
116
|
"color": "warning" as typeof color[number],
|
|
98
117
|
"variant": "solid" as typeof variant[number],
|
|
99
118
|
"class": {
|
|
100
|
-
"root": "bg-
|
|
119
|
+
"root": "bg-warning text-inverted"
|
|
101
120
|
}
|
|
102
121
|
},
|
|
103
122
|
{
|
|
104
123
|
"color": "error" as typeof color[number],
|
|
105
124
|
"variant": "solid" as typeof variant[number],
|
|
106
125
|
"class": {
|
|
107
|
-
"root": "bg-
|
|
126
|
+
"root": "bg-error text-inverted"
|
|
108
127
|
}
|
|
109
128
|
},
|
|
110
129
|
{
|
|
111
130
|
"color": "primary" as typeof color[number],
|
|
112
131
|
"variant": "outline" as typeof variant[number],
|
|
113
132
|
"class": {
|
|
114
|
-
"root": "text-
|
|
133
|
+
"root": "text-primary ring ring-inset ring-primary/25"
|
|
115
134
|
}
|
|
116
135
|
},
|
|
117
136
|
{
|
|
118
137
|
"color": "secondary" as typeof color[number],
|
|
119
138
|
"variant": "outline" as typeof variant[number],
|
|
120
139
|
"class": {
|
|
121
|
-
"root": "text-
|
|
140
|
+
"root": "text-secondary ring ring-inset ring-secondary/25"
|
|
122
141
|
}
|
|
123
142
|
},
|
|
124
143
|
{
|
|
125
144
|
"color": "success" as typeof color[number],
|
|
126
145
|
"variant": "outline" as typeof variant[number],
|
|
127
146
|
"class": {
|
|
128
|
-
"root": "text-
|
|
147
|
+
"root": "text-success ring ring-inset ring-success/25"
|
|
129
148
|
}
|
|
130
149
|
},
|
|
131
150
|
{
|
|
132
151
|
"color": "info" as typeof color[number],
|
|
133
152
|
"variant": "outline" as typeof variant[number],
|
|
134
153
|
"class": {
|
|
135
|
-
"root": "text-
|
|
154
|
+
"root": "text-info ring ring-inset ring-info/25"
|
|
136
155
|
}
|
|
137
156
|
},
|
|
138
157
|
{
|
|
139
158
|
"color": "warning" as typeof color[number],
|
|
140
159
|
"variant": "outline" as typeof variant[number],
|
|
141
160
|
"class": {
|
|
142
|
-
"root": "text-
|
|
161
|
+
"root": "text-warning ring ring-inset ring-warning/25"
|
|
143
162
|
}
|
|
144
163
|
},
|
|
145
164
|
{
|
|
146
165
|
"color": "error" as typeof color[number],
|
|
147
166
|
"variant": "outline" as typeof variant[number],
|
|
148
167
|
"class": {
|
|
149
|
-
"root": "text-
|
|
168
|
+
"root": "text-error ring ring-inset ring-error/25"
|
|
150
169
|
}
|
|
151
170
|
},
|
|
152
171
|
{
|
|
153
172
|
"color": "primary" as typeof color[number],
|
|
154
173
|
"variant": "soft" as typeof variant[number],
|
|
155
174
|
"class": {
|
|
156
|
-
"root": "bg-
|
|
175
|
+
"root": "bg-primary/10 text-primary"
|
|
157
176
|
}
|
|
158
177
|
},
|
|
159
178
|
{
|
|
160
179
|
"color": "secondary" as typeof color[number],
|
|
161
180
|
"variant": "soft" as typeof variant[number],
|
|
162
181
|
"class": {
|
|
163
|
-
"root": "bg-
|
|
182
|
+
"root": "bg-secondary/10 text-secondary"
|
|
164
183
|
}
|
|
165
184
|
},
|
|
166
185
|
{
|
|
167
186
|
"color": "success" as typeof color[number],
|
|
168
187
|
"variant": "soft" as typeof variant[number],
|
|
169
188
|
"class": {
|
|
170
|
-
"root": "bg-
|
|
189
|
+
"root": "bg-success/10 text-success"
|
|
171
190
|
}
|
|
172
191
|
},
|
|
173
192
|
{
|
|
174
193
|
"color": "info" as typeof color[number],
|
|
175
194
|
"variant": "soft" as typeof variant[number],
|
|
176
195
|
"class": {
|
|
177
|
-
"root": "bg-
|
|
196
|
+
"root": "bg-info/10 text-info"
|
|
178
197
|
}
|
|
179
198
|
},
|
|
180
199
|
{
|
|
181
200
|
"color": "warning" as typeof color[number],
|
|
182
201
|
"variant": "soft" as typeof variant[number],
|
|
183
202
|
"class": {
|
|
184
|
-
"root": "bg-
|
|
203
|
+
"root": "bg-warning/10 text-warning"
|
|
185
204
|
}
|
|
186
205
|
},
|
|
187
206
|
{
|
|
188
207
|
"color": "error" as typeof color[number],
|
|
189
208
|
"variant": "soft" as typeof variant[number],
|
|
190
209
|
"class": {
|
|
191
|
-
"root": "bg-
|
|
210
|
+
"root": "bg-error/10 text-error"
|
|
192
211
|
}
|
|
193
212
|
},
|
|
194
213
|
{
|
|
195
214
|
"color": "primary" as typeof color[number],
|
|
196
215
|
"variant": "subtle" as typeof variant[number],
|
|
197
216
|
"class": {
|
|
198
|
-
"root": "bg-
|
|
217
|
+
"root": "bg-primary/10 text-primary ring ring-inset ring-primary/25"
|
|
199
218
|
}
|
|
200
219
|
},
|
|
201
220
|
{
|
|
202
221
|
"color": "secondary" as typeof color[number],
|
|
203
222
|
"variant": "subtle" as typeof variant[number],
|
|
204
223
|
"class": {
|
|
205
|
-
"root": "bg-
|
|
224
|
+
"root": "bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"
|
|
206
225
|
}
|
|
207
226
|
},
|
|
208
227
|
{
|
|
209
228
|
"color": "success" as typeof color[number],
|
|
210
229
|
"variant": "subtle" as typeof variant[number],
|
|
211
230
|
"class": {
|
|
212
|
-
"root": "bg-
|
|
231
|
+
"root": "bg-success/10 text-success ring ring-inset ring-success/25"
|
|
213
232
|
}
|
|
214
233
|
},
|
|
215
234
|
{
|
|
216
235
|
"color": "info" as typeof color[number],
|
|
217
236
|
"variant": "subtle" as typeof variant[number],
|
|
218
237
|
"class": {
|
|
219
|
-
"root": "bg-
|
|
238
|
+
"root": "bg-info/10 text-info ring ring-inset ring-info/25"
|
|
220
239
|
}
|
|
221
240
|
},
|
|
222
241
|
{
|
|
223
242
|
"color": "warning" as typeof color[number],
|
|
224
243
|
"variant": "subtle" as typeof variant[number],
|
|
225
244
|
"class": {
|
|
226
|
-
"root": "bg-
|
|
245
|
+
"root": "bg-warning/10 text-warning ring ring-inset ring-warning/25"
|
|
227
246
|
}
|
|
228
247
|
},
|
|
229
248
|
{
|
|
230
249
|
"color": "error" as typeof color[number],
|
|
231
250
|
"variant": "subtle" as typeof variant[number],
|
|
232
251
|
"class": {
|
|
233
|
-
"root": "bg-
|
|
252
|
+
"root": "bg-error/10 text-error ring ring-inset ring-error/25"
|
|
234
253
|
}
|
|
235
254
|
},
|
|
236
255
|
{
|
|
237
256
|
"color": "neutral" as typeof color[number],
|
|
238
257
|
"variant": "solid" as typeof variant[number],
|
|
239
258
|
"class": {
|
|
240
|
-
"root": "text-
|
|
259
|
+
"root": "text-inverted bg-inverted"
|
|
241
260
|
}
|
|
242
261
|
},
|
|
243
262
|
{
|
|
244
263
|
"color": "neutral" as typeof color[number],
|
|
245
264
|
"variant": "outline" as typeof variant[number],
|
|
246
265
|
"class": {
|
|
247
|
-
"root": "text-
|
|
266
|
+
"root": "text-highlighted bg-default ring ring-inset ring-default"
|
|
248
267
|
}
|
|
249
268
|
},
|
|
250
269
|
{
|
|
251
270
|
"color": "neutral" as typeof color[number],
|
|
252
271
|
"variant": "soft" as typeof variant[number],
|
|
253
272
|
"class": {
|
|
254
|
-
"root": "text-
|
|
273
|
+
"root": "text-highlighted bg-elevated/50"
|
|
255
274
|
}
|
|
256
275
|
},
|
|
257
276
|
{
|
|
258
277
|
"color": "neutral" as typeof color[number],
|
|
259
278
|
"variant": "subtle" as typeof variant[number],
|
|
260
279
|
"class": {
|
|
261
|
-
"root": "text-
|
|
280
|
+
"root": "text-highlighted bg-elevated/50 ring ring-inset ring-accented"
|
|
262
281
|
}
|
|
263
282
|
}
|
|
264
283
|
],
|
|
@@ -266,4 +285,6 @@ export default {
|
|
|
266
285
|
"color": "primary" as typeof color[number],
|
|
267
286
|
"variant": "solid" as typeof variant[number]
|
|
268
287
|
}
|
|
269
|
-
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export default result as typeof theme
|
package/.nuxt/ui/avatar-group.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/avatar-group"
|
|
2
|
+
|
|
1
3
|
const size = [
|
|
2
4
|
"3xs",
|
|
3
5
|
"2xs",
|
|
@@ -10,10 +12,27 @@ const size = [
|
|
|
10
12
|
"3xl"
|
|
11
13
|
] as const
|
|
12
14
|
|
|
13
|
-
|
|
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 = {
|
|
14
33
|
"slots": {
|
|
15
34
|
"root": "inline-flex flex-row-reverse justify-end",
|
|
16
|
-
"base": "relative rounded-full ring-
|
|
35
|
+
"base": "relative rounded-full ring-bg first:me-0"
|
|
17
36
|
},
|
|
18
37
|
"variants": {
|
|
19
38
|
"size": {
|
|
@@ -49,4 +68,6 @@ export default {
|
|
|
49
68
|
"defaultVariants": {
|
|
50
69
|
"size": "md" as typeof size[number]
|
|
51
70
|
}
|
|
52
|
-
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export default result as typeof theme
|
package/.nuxt/ui/avatar.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/avatar"
|
|
2
|
+
|
|
1
3
|
const size = [
|
|
2
4
|
"3xs",
|
|
3
5
|
"2xs",
|
|
@@ -10,12 +12,29 @@ const size = [
|
|
|
10
12
|
"3xl"
|
|
11
13
|
] as const
|
|
12
14
|
|
|
13
|
-
|
|
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 = {
|
|
14
33
|
"slots": {
|
|
15
|
-
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-
|
|
34
|
+
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-elevated",
|
|
16
35
|
"image": "h-full w-full rounded-[inherit] object-cover",
|
|
17
|
-
"fallback": "font-medium leading-none text-
|
|
18
|
-
"icon": "text-
|
|
36
|
+
"fallback": "font-medium leading-none text-muted truncate",
|
|
37
|
+
"icon": "text-muted shrink-0"
|
|
19
38
|
},
|
|
20
39
|
"variants": {
|
|
21
40
|
"size": {
|
|
@@ -51,4 +70,6 @@ export default {
|
|
|
51
70
|
"defaultVariants": {
|
|
52
71
|
"size": "md" as typeof size[number]
|
|
53
72
|
}
|
|
54
|
-
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default result as typeof theme
|
package/.nuxt/ui/badge.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/badge"
|
|
2
|
+
|
|
1
3
|
const buttonGroup = [
|
|
2
4
|
"horizontal",
|
|
3
5
|
"vertical"
|
|
@@ -28,7 +30,24 @@ const size = [
|
|
|
28
30
|
"xl"
|
|
29
31
|
] as const
|
|
30
32
|
|
|
31
|
-
|
|
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 = {
|
|
32
51
|
"slots": {
|
|
33
52
|
"base": "font-medium inline-flex items-center",
|
|
34
53
|
"label": "truncate",
|
|
@@ -59,31 +78,31 @@ export default {
|
|
|
59
78
|
},
|
|
60
79
|
"size": {
|
|
61
80
|
"xs": {
|
|
62
|
-
"base": "text-[8px]/3 px-1 py-0.5 gap-1 rounded-
|
|
81
|
+
"base": "text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm",
|
|
63
82
|
"leadingIcon": "size-3",
|
|
64
83
|
"leadingAvatarSize": "3xs",
|
|
65
84
|
"trailingIcon": "size-3"
|
|
66
85
|
},
|
|
67
86
|
"sm": {
|
|
68
|
-
"base": "text-[10px]/3 px-1.5 py-1 gap-1 rounded-
|
|
87
|
+
"base": "text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm",
|
|
69
88
|
"leadingIcon": "size-3",
|
|
70
89
|
"leadingAvatarSize": "3xs",
|
|
71
90
|
"trailingIcon": "size-3"
|
|
72
91
|
},
|
|
73
92
|
"md": {
|
|
74
|
-
"base": "text-xs px-2 py-1 gap-1 rounded-
|
|
93
|
+
"base": "text-xs px-2 py-1 gap-1 rounded-md",
|
|
75
94
|
"leadingIcon": "size-4",
|
|
76
95
|
"leadingAvatarSize": "3xs",
|
|
77
96
|
"trailingIcon": "size-4"
|
|
78
97
|
},
|
|
79
98
|
"lg": {
|
|
80
|
-
"base": "text-sm px-2 py-1 gap-1.5 rounded-
|
|
99
|
+
"base": "text-sm px-2 py-1 gap-1.5 rounded-md",
|
|
81
100
|
"leadingIcon": "size-5",
|
|
82
101
|
"leadingAvatarSize": "2xs",
|
|
83
102
|
"trailingIcon": "size-5"
|
|
84
103
|
},
|
|
85
104
|
"xl": {
|
|
86
|
-
"base": "text-base px-2.5 py-1 gap-1.5 rounded-
|
|
105
|
+
"base": "text-base px-2.5 py-1 gap-1.5 rounded-md",
|
|
87
106
|
"leadingIcon": "size-6",
|
|
88
107
|
"leadingAvatarSize": "2xs",
|
|
89
108
|
"trailingIcon": "size-6"
|
|
@@ -94,142 +113,142 @@ export default {
|
|
|
94
113
|
{
|
|
95
114
|
"color": "primary" as typeof color[number],
|
|
96
115
|
"variant": "solid" as typeof variant[number],
|
|
97
|
-
"class": "bg-
|
|
116
|
+
"class": "bg-primary text-inverted"
|
|
98
117
|
},
|
|
99
118
|
{
|
|
100
119
|
"color": "secondary" as typeof color[number],
|
|
101
120
|
"variant": "solid" as typeof variant[number],
|
|
102
|
-
"class": "bg-
|
|
121
|
+
"class": "bg-secondary text-inverted"
|
|
103
122
|
},
|
|
104
123
|
{
|
|
105
124
|
"color": "success" as typeof color[number],
|
|
106
125
|
"variant": "solid" as typeof variant[number],
|
|
107
|
-
"class": "bg-
|
|
126
|
+
"class": "bg-success text-inverted"
|
|
108
127
|
},
|
|
109
128
|
{
|
|
110
129
|
"color": "info" as typeof color[number],
|
|
111
130
|
"variant": "solid" as typeof variant[number],
|
|
112
|
-
"class": "bg-
|
|
131
|
+
"class": "bg-info text-inverted"
|
|
113
132
|
},
|
|
114
133
|
{
|
|
115
134
|
"color": "warning" as typeof color[number],
|
|
116
135
|
"variant": "solid" as typeof variant[number],
|
|
117
|
-
"class": "bg-
|
|
136
|
+
"class": "bg-warning text-inverted"
|
|
118
137
|
},
|
|
119
138
|
{
|
|
120
139
|
"color": "error" as typeof color[number],
|
|
121
140
|
"variant": "solid" as typeof variant[number],
|
|
122
|
-
"class": "bg-
|
|
141
|
+
"class": "bg-error text-inverted"
|
|
123
142
|
},
|
|
124
143
|
{
|
|
125
144
|
"color": "primary" as typeof color[number],
|
|
126
145
|
"variant": "outline" as typeof variant[number],
|
|
127
|
-
"class": "text-
|
|
146
|
+
"class": "text-primary ring ring-inset ring-primary/50"
|
|
128
147
|
},
|
|
129
148
|
{
|
|
130
149
|
"color": "secondary" as typeof color[number],
|
|
131
150
|
"variant": "outline" as typeof variant[number],
|
|
132
|
-
"class": "text-
|
|
151
|
+
"class": "text-secondary ring ring-inset ring-secondary/50"
|
|
133
152
|
},
|
|
134
153
|
{
|
|
135
154
|
"color": "success" as typeof color[number],
|
|
136
155
|
"variant": "outline" as typeof variant[number],
|
|
137
|
-
"class": "text-
|
|
156
|
+
"class": "text-success ring ring-inset ring-success/50"
|
|
138
157
|
},
|
|
139
158
|
{
|
|
140
159
|
"color": "info" as typeof color[number],
|
|
141
160
|
"variant": "outline" as typeof variant[number],
|
|
142
|
-
"class": "text-
|
|
161
|
+
"class": "text-info ring ring-inset ring-info/50"
|
|
143
162
|
},
|
|
144
163
|
{
|
|
145
164
|
"color": "warning" as typeof color[number],
|
|
146
165
|
"variant": "outline" as typeof variant[number],
|
|
147
|
-
"class": "text-
|
|
166
|
+
"class": "text-warning ring ring-inset ring-warning/50"
|
|
148
167
|
},
|
|
149
168
|
{
|
|
150
169
|
"color": "error" as typeof color[number],
|
|
151
170
|
"variant": "outline" as typeof variant[number],
|
|
152
|
-
"class": "text-
|
|
171
|
+
"class": "text-error ring ring-inset ring-error/50"
|
|
153
172
|
},
|
|
154
173
|
{
|
|
155
174
|
"color": "primary" as typeof color[number],
|
|
156
175
|
"variant": "soft" as typeof variant[number],
|
|
157
|
-
"class": "bg-
|
|
176
|
+
"class": "bg-primary/10 text-primary"
|
|
158
177
|
},
|
|
159
178
|
{
|
|
160
179
|
"color": "secondary" as typeof color[number],
|
|
161
180
|
"variant": "soft" as typeof variant[number],
|
|
162
|
-
"class": "bg-
|
|
181
|
+
"class": "bg-secondary/10 text-secondary"
|
|
163
182
|
},
|
|
164
183
|
{
|
|
165
184
|
"color": "success" as typeof color[number],
|
|
166
185
|
"variant": "soft" as typeof variant[number],
|
|
167
|
-
"class": "bg-
|
|
186
|
+
"class": "bg-success/10 text-success"
|
|
168
187
|
},
|
|
169
188
|
{
|
|
170
189
|
"color": "info" as typeof color[number],
|
|
171
190
|
"variant": "soft" as typeof variant[number],
|
|
172
|
-
"class": "bg-
|
|
191
|
+
"class": "bg-info/10 text-info"
|
|
173
192
|
},
|
|
174
193
|
{
|
|
175
194
|
"color": "warning" as typeof color[number],
|
|
176
195
|
"variant": "soft" as typeof variant[number],
|
|
177
|
-
"class": "bg-
|
|
196
|
+
"class": "bg-warning/10 text-warning"
|
|
178
197
|
},
|
|
179
198
|
{
|
|
180
199
|
"color": "error" as typeof color[number],
|
|
181
200
|
"variant": "soft" as typeof variant[number],
|
|
182
|
-
"class": "bg-
|
|
201
|
+
"class": "bg-error/10 text-error"
|
|
183
202
|
},
|
|
184
203
|
{
|
|
185
204
|
"color": "primary" as typeof color[number],
|
|
186
205
|
"variant": "subtle" as typeof variant[number],
|
|
187
|
-
"class": "bg-
|
|
206
|
+
"class": "bg-primary/10 text-primary ring ring-inset ring-primary/25"
|
|
188
207
|
},
|
|
189
208
|
{
|
|
190
209
|
"color": "secondary" as typeof color[number],
|
|
191
210
|
"variant": "subtle" as typeof variant[number],
|
|
192
|
-
"class": "bg-
|
|
211
|
+
"class": "bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"
|
|
193
212
|
},
|
|
194
213
|
{
|
|
195
214
|
"color": "success" as typeof color[number],
|
|
196
215
|
"variant": "subtle" as typeof variant[number],
|
|
197
|
-
"class": "bg-
|
|
216
|
+
"class": "bg-success/10 text-success ring ring-inset ring-success/25"
|
|
198
217
|
},
|
|
199
218
|
{
|
|
200
219
|
"color": "info" as typeof color[number],
|
|
201
220
|
"variant": "subtle" as typeof variant[number],
|
|
202
|
-
"class": "bg-
|
|
221
|
+
"class": "bg-info/10 text-info ring ring-inset ring-info/25"
|
|
203
222
|
},
|
|
204
223
|
{
|
|
205
224
|
"color": "warning" as typeof color[number],
|
|
206
225
|
"variant": "subtle" as typeof variant[number],
|
|
207
|
-
"class": "bg-
|
|
226
|
+
"class": "bg-warning/10 text-warning ring ring-inset ring-warning/25"
|
|
208
227
|
},
|
|
209
228
|
{
|
|
210
229
|
"color": "error" as typeof color[number],
|
|
211
230
|
"variant": "subtle" as typeof variant[number],
|
|
212
|
-
"class": "bg-
|
|
231
|
+
"class": "bg-error/10 text-error ring ring-inset ring-error/25"
|
|
213
232
|
},
|
|
214
233
|
{
|
|
215
234
|
"color": "neutral" as typeof color[number],
|
|
216
235
|
"variant": "solid" as typeof variant[number],
|
|
217
|
-
"class": "text-
|
|
236
|
+
"class": "text-inverted bg-inverted"
|
|
218
237
|
},
|
|
219
238
|
{
|
|
220
239
|
"color": "neutral" as typeof color[number],
|
|
221
240
|
"variant": "outline" as typeof variant[number],
|
|
222
|
-
"class": "ring ring-inset ring-
|
|
241
|
+
"class": "ring ring-inset ring-accented text-default bg-default"
|
|
223
242
|
},
|
|
224
243
|
{
|
|
225
244
|
"color": "neutral" as typeof color[number],
|
|
226
245
|
"variant": "soft" as typeof variant[number],
|
|
227
|
-
"class": "text-
|
|
246
|
+
"class": "text-default bg-elevated"
|
|
228
247
|
},
|
|
229
248
|
{
|
|
230
249
|
"color": "neutral" as typeof color[number],
|
|
231
250
|
"variant": "subtle" as typeof variant[number],
|
|
232
|
-
"class": "ring ring-inset ring-
|
|
251
|
+
"class": "ring ring-inset ring-accented text-default bg-elevated"
|
|
233
252
|
}
|
|
234
253
|
],
|
|
235
254
|
"defaultVariants": {
|
|
@@ -237,4 +256,6 @@ export default {
|
|
|
237
256
|
"variant": "solid" as typeof variant[number],
|
|
238
257
|
"size": "md" as typeof size[number]
|
|
239
258
|
}
|
|
240
|
-
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export default result as typeof theme
|