@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/pin-input.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/pin-input"
|
|
2
|
+
|
|
1
3
|
const size = [
|
|
2
4
|
"xs",
|
|
3
5
|
"sm",
|
|
@@ -24,11 +26,28 @@ const color = [
|
|
|
24
26
|
"neutral"
|
|
25
27
|
] as const
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
30
|
+
"prefix": "U",
|
|
31
|
+
"fonts": true,
|
|
32
|
+
"colorMode": true,
|
|
33
|
+
"theme": {
|
|
34
|
+
"colors": [
|
|
35
|
+
"primary",
|
|
36
|
+
"secondary",
|
|
37
|
+
"success",
|
|
38
|
+
"info",
|
|
39
|
+
"warning",
|
|
40
|
+
"error"
|
|
41
|
+
],
|
|
42
|
+
"transitions": true
|
|
43
|
+
}
|
|
44
|
+
}) : template
|
|
45
|
+
|
|
46
|
+
const theme = {
|
|
28
47
|
"slots": {
|
|
29
48
|
"root": "relative inline-flex items-center gap-1.5",
|
|
30
49
|
"base": [
|
|
31
|
-
"rounded-
|
|
50
|
+
"rounded-md border-0 placeholder:text-dimmed text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
32
51
|
"transition-colors"
|
|
33
52
|
]
|
|
34
53
|
},
|
|
@@ -51,11 +70,11 @@ export default {
|
|
|
51
70
|
}
|
|
52
71
|
},
|
|
53
72
|
"variant": {
|
|
54
|
-
"outline": "text-
|
|
55
|
-
"soft": "text-
|
|
56
|
-
"subtle": "text-
|
|
57
|
-
"ghost": "text-
|
|
58
|
-
"none": "text-
|
|
73
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
74
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
75
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
76
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
77
|
+
"none": "text-highlighted bg-transparent"
|
|
59
78
|
},
|
|
60
79
|
"color": {
|
|
61
80
|
"primary": "",
|
|
@@ -77,7 +96,7 @@ export default {
|
|
|
77
96
|
"outline" as typeof variant[number],
|
|
78
97
|
"subtle" as typeof variant[number]
|
|
79
98
|
],
|
|
80
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
99
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
81
100
|
},
|
|
82
101
|
{
|
|
83
102
|
"color": "secondary" as typeof color[number],
|
|
@@ -85,7 +104,7 @@ export default {
|
|
|
85
104
|
"outline" as typeof variant[number],
|
|
86
105
|
"subtle" as typeof variant[number]
|
|
87
106
|
],
|
|
88
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
107
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
89
108
|
},
|
|
90
109
|
{
|
|
91
110
|
"color": "success" as typeof color[number],
|
|
@@ -93,7 +112,7 @@ export default {
|
|
|
93
112
|
"outline" as typeof variant[number],
|
|
94
113
|
"subtle" as typeof variant[number]
|
|
95
114
|
],
|
|
96
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
115
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
97
116
|
},
|
|
98
117
|
{
|
|
99
118
|
"color": "info" as typeof color[number],
|
|
@@ -101,7 +120,7 @@ export default {
|
|
|
101
120
|
"outline" as typeof variant[number],
|
|
102
121
|
"subtle" as typeof variant[number]
|
|
103
122
|
],
|
|
104
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
123
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
105
124
|
},
|
|
106
125
|
{
|
|
107
126
|
"color": "warning" as typeof color[number],
|
|
@@ -109,7 +128,7 @@ export default {
|
|
|
109
128
|
"outline" as typeof variant[number],
|
|
110
129
|
"subtle" as typeof variant[number]
|
|
111
130
|
],
|
|
112
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
131
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
113
132
|
},
|
|
114
133
|
{
|
|
115
134
|
"color": "error" as typeof color[number],
|
|
@@ -117,37 +136,37 @@ export default {
|
|
|
117
136
|
"outline" as typeof variant[number],
|
|
118
137
|
"subtle" as typeof variant[number]
|
|
119
138
|
],
|
|
120
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
139
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
121
140
|
},
|
|
122
141
|
{
|
|
123
142
|
"color": "primary" as typeof color[number],
|
|
124
143
|
"highlight": true,
|
|
125
|
-
"class": "ring ring-inset ring-
|
|
144
|
+
"class": "ring ring-inset ring-primary"
|
|
126
145
|
},
|
|
127
146
|
{
|
|
128
147
|
"color": "secondary" as typeof color[number],
|
|
129
148
|
"highlight": true,
|
|
130
|
-
"class": "ring ring-inset ring-
|
|
149
|
+
"class": "ring ring-inset ring-secondary"
|
|
131
150
|
},
|
|
132
151
|
{
|
|
133
152
|
"color": "success" as typeof color[number],
|
|
134
153
|
"highlight": true,
|
|
135
|
-
"class": "ring ring-inset ring-
|
|
154
|
+
"class": "ring ring-inset ring-success"
|
|
136
155
|
},
|
|
137
156
|
{
|
|
138
157
|
"color": "info" as typeof color[number],
|
|
139
158
|
"highlight": true,
|
|
140
|
-
"class": "ring ring-inset ring-
|
|
159
|
+
"class": "ring ring-inset ring-info"
|
|
141
160
|
},
|
|
142
161
|
{
|
|
143
162
|
"color": "warning" as typeof color[number],
|
|
144
163
|
"highlight": true,
|
|
145
|
-
"class": "ring ring-inset ring-
|
|
164
|
+
"class": "ring ring-inset ring-warning"
|
|
146
165
|
},
|
|
147
166
|
{
|
|
148
167
|
"color": "error" as typeof color[number],
|
|
149
168
|
"highlight": true,
|
|
150
|
-
"class": "ring ring-inset ring-
|
|
169
|
+
"class": "ring ring-inset ring-error"
|
|
151
170
|
},
|
|
152
171
|
{
|
|
153
172
|
"color": "neutral" as typeof color[number],
|
|
@@ -155,12 +174,12 @@ export default {
|
|
|
155
174
|
"outline" as typeof variant[number],
|
|
156
175
|
"subtle" as typeof variant[number]
|
|
157
176
|
],
|
|
158
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
177
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
159
178
|
},
|
|
160
179
|
{
|
|
161
180
|
"color": "neutral" as typeof color[number],
|
|
162
181
|
"highlight": true,
|
|
163
|
-
"class": "ring ring-inset ring-
|
|
182
|
+
"class": "ring ring-inset ring-inverted"
|
|
164
183
|
}
|
|
165
184
|
],
|
|
166
185
|
"defaultVariants": {
|
|
@@ -168,4 +187,6 @@ export default {
|
|
|
168
187
|
"color": "primary" as typeof color[number],
|
|
169
188
|
"variant": "outline" as typeof variant[number]
|
|
170
189
|
}
|
|
171
|
-
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export default result as typeof theme
|
package/.nuxt/ui/popover.ts
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/popover"
|
|
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
|
-
"content": "bg-
|
|
4
|
-
"arrow": "fill-
|
|
22
|
+
"content": "bg-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto",
|
|
23
|
+
"arrow": "fill-default"
|
|
5
24
|
}
|
|
6
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default result as typeof theme
|
package/.nuxt/ui/progress.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/progress"
|
|
2
|
+
|
|
1
3
|
const animation = [
|
|
2
4
|
"carousel",
|
|
3
5
|
"carousel-inverse",
|
|
@@ -37,12 +39,29 @@ const orientation = [
|
|
|
37
39
|
"vertical"
|
|
38
40
|
] as const
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
43
|
+
"prefix": "U",
|
|
44
|
+
"fonts": true,
|
|
45
|
+
"colorMode": true,
|
|
46
|
+
"theme": {
|
|
47
|
+
"colors": [
|
|
48
|
+
"primary",
|
|
49
|
+
"secondary",
|
|
50
|
+
"success",
|
|
51
|
+
"info",
|
|
52
|
+
"warning",
|
|
53
|
+
"error"
|
|
54
|
+
],
|
|
55
|
+
"transitions": true
|
|
56
|
+
}
|
|
57
|
+
}) : template
|
|
58
|
+
|
|
59
|
+
const theme = {
|
|
41
60
|
"slots": {
|
|
42
61
|
"root": "gap-2",
|
|
43
|
-
"base": "relative overflow-hidden rounded-full bg-
|
|
62
|
+
"base": "relative overflow-hidden rounded-full bg-accented",
|
|
44
63
|
"indicator": "rounded-full size-full transition-transform duration-200 ease-out",
|
|
45
|
-
"status": "flex justify-end text-
|
|
64
|
+
"status": "flex justify-end text-dimmed transition-[width] duration-200",
|
|
46
65
|
"steps": "grid items-end",
|
|
47
66
|
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
|
|
48
67
|
},
|
|
@@ -55,32 +74,32 @@ export default {
|
|
|
55
74
|
},
|
|
56
75
|
"color": {
|
|
57
76
|
"primary": {
|
|
58
|
-
"indicator": "bg-
|
|
59
|
-
"steps": "text-
|
|
77
|
+
"indicator": "bg-primary",
|
|
78
|
+
"steps": "text-primary"
|
|
60
79
|
},
|
|
61
80
|
"secondary": {
|
|
62
|
-
"indicator": "bg-
|
|
63
|
-
"steps": "text-
|
|
81
|
+
"indicator": "bg-secondary",
|
|
82
|
+
"steps": "text-secondary"
|
|
64
83
|
},
|
|
65
84
|
"success": {
|
|
66
|
-
"indicator": "bg-
|
|
67
|
-
"steps": "text-
|
|
85
|
+
"indicator": "bg-success",
|
|
86
|
+
"steps": "text-success"
|
|
68
87
|
},
|
|
69
88
|
"info": {
|
|
70
|
-
"indicator": "bg-
|
|
71
|
-
"steps": "text-
|
|
89
|
+
"indicator": "bg-info",
|
|
90
|
+
"steps": "text-info"
|
|
72
91
|
},
|
|
73
92
|
"warning": {
|
|
74
|
-
"indicator": "bg-
|
|
75
|
-
"steps": "text-
|
|
93
|
+
"indicator": "bg-warning",
|
|
94
|
+
"steps": "text-warning"
|
|
76
95
|
},
|
|
77
96
|
"error": {
|
|
78
|
-
"indicator": "bg-
|
|
79
|
-
"steps": "text-
|
|
97
|
+
"indicator": "bg-error",
|
|
98
|
+
"steps": "text-error"
|
|
80
99
|
},
|
|
81
100
|
"neutral": {
|
|
82
|
-
"indicator": "bg-
|
|
83
|
-
"steps": "text-
|
|
101
|
+
"indicator": "bg-inverted",
|
|
102
|
+
"steps": "text-inverted"
|
|
84
103
|
}
|
|
85
104
|
},
|
|
86
105
|
"size": {
|
|
@@ -118,7 +137,7 @@ export default {
|
|
|
118
137
|
"step": "opacity-100" as typeof step[number]
|
|
119
138
|
},
|
|
120
139
|
"first": {
|
|
121
|
-
"step": "opacity-100 text-
|
|
140
|
+
"step": "opacity-100 text-muted" as typeof step[number]
|
|
122
141
|
},
|
|
123
142
|
"other": {
|
|
124
143
|
"step": "opacity-0" as typeof step[number]
|
|
@@ -294,4 +313,6 @@ export default {
|
|
|
294
313
|
"color": "primary" as typeof color[number],
|
|
295
314
|
"size": "md" as typeof size[number]
|
|
296
315
|
}
|
|
297
|
-
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export default result as typeof theme
|