@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/textarea.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/textarea"
|
|
2
|
+
|
|
1
3
|
const buttonGroup = [
|
|
2
4
|
"horizontal",
|
|
3
5
|
"vertical"
|
|
@@ -33,19 +35,36 @@ const type = [
|
|
|
33
35
|
"file"
|
|
34
36
|
] as const
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
39
|
+
"prefix": "U",
|
|
40
|
+
"fonts": true,
|
|
41
|
+
"colorMode": true,
|
|
42
|
+
"theme": {
|
|
43
|
+
"colors": [
|
|
44
|
+
"primary",
|
|
45
|
+
"secondary",
|
|
46
|
+
"success",
|
|
47
|
+
"info",
|
|
48
|
+
"warning",
|
|
49
|
+
"error"
|
|
50
|
+
],
|
|
51
|
+
"transitions": true
|
|
52
|
+
}
|
|
53
|
+
}) : template
|
|
54
|
+
|
|
55
|
+
const theme = {
|
|
37
56
|
"slots": {
|
|
38
57
|
"root": "relative inline-flex items-center",
|
|
39
58
|
"base": [
|
|
40
|
-
"w-full rounded-
|
|
59
|
+
"w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
41
60
|
"transition-colors"
|
|
42
61
|
],
|
|
43
|
-
"leading": "absolute
|
|
44
|
-
"leadingIcon": "shrink-0 text-
|
|
62
|
+
"leading": "absolute start-0 flex items-start",
|
|
63
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
45
64
|
"leadingAvatar": "shrink-0",
|
|
46
65
|
"leadingAvatarSize": "",
|
|
47
|
-
"trailing": "absolute
|
|
48
|
-
"trailingIcon": "shrink-0 text-
|
|
66
|
+
"trailing": "absolute end-0 flex items-start",
|
|
67
|
+
"trailingIcon": "shrink-0 text-dimmed"
|
|
49
68
|
},
|
|
50
69
|
"variants": {
|
|
51
70
|
"buttonGroup": {
|
|
@@ -61,51 +80,51 @@ export default {
|
|
|
61
80
|
"size": {
|
|
62
81
|
"xs": {
|
|
63
82
|
"base": "px-2 py-1 text-xs gap-1",
|
|
64
|
-
"leading": "ps-2",
|
|
65
|
-
"trailing": "pe-2",
|
|
83
|
+
"leading": "ps-2 inset-y-1",
|
|
84
|
+
"trailing": "pe-2 inset-y-1",
|
|
66
85
|
"leadingIcon": "size-4",
|
|
67
86
|
"leadingAvatarSize": "3xs",
|
|
68
87
|
"trailingIcon": "size-4"
|
|
69
88
|
},
|
|
70
89
|
"sm": {
|
|
71
90
|
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
72
|
-
"leading": "ps-2.5",
|
|
73
|
-
"trailing": "pe-2.5",
|
|
91
|
+
"leading": "ps-2.5 inset-y-1.5",
|
|
92
|
+
"trailing": "pe-2.5 inset-y-1.5",
|
|
74
93
|
"leadingIcon": "size-4",
|
|
75
94
|
"leadingAvatarSize": "3xs",
|
|
76
95
|
"trailingIcon": "size-4"
|
|
77
96
|
},
|
|
78
97
|
"md": {
|
|
79
98
|
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
80
|
-
"leading": "ps-2.5",
|
|
81
|
-
"trailing": "pe-2.5",
|
|
99
|
+
"leading": "ps-2.5 inset-y-1.5",
|
|
100
|
+
"trailing": "pe-2.5 inset-y-1.5",
|
|
82
101
|
"leadingIcon": "size-5",
|
|
83
102
|
"leadingAvatarSize": "2xs",
|
|
84
103
|
"trailingIcon": "size-5"
|
|
85
104
|
},
|
|
86
105
|
"lg": {
|
|
87
106
|
"base": "px-3 py-2 text-sm gap-2",
|
|
88
|
-
"leading": "ps-3",
|
|
89
|
-
"trailing": "pe-3",
|
|
107
|
+
"leading": "ps-3 inset-y-2",
|
|
108
|
+
"trailing": "pe-3 inset-y-2",
|
|
90
109
|
"leadingIcon": "size-5",
|
|
91
110
|
"leadingAvatarSize": "2xs",
|
|
92
111
|
"trailingIcon": "size-5"
|
|
93
112
|
},
|
|
94
113
|
"xl": {
|
|
95
114
|
"base": "px-3 py-2 text-base gap-2",
|
|
96
|
-
"leading": "ps-3",
|
|
97
|
-
"trailing": "pe-3",
|
|
115
|
+
"leading": "ps-3 inset-y-2",
|
|
116
|
+
"trailing": "pe-3 inset-y-2",
|
|
98
117
|
"leadingIcon": "size-6",
|
|
99
118
|
"leadingAvatarSize": "xs",
|
|
100
119
|
"trailingIcon": "size-6"
|
|
101
120
|
}
|
|
102
121
|
},
|
|
103
122
|
"variant": {
|
|
104
|
-
"outline": "text-
|
|
105
|
-
"soft": "text-
|
|
106
|
-
"subtle": "text-
|
|
107
|
-
"ghost": "text-
|
|
108
|
-
"none": "text-
|
|
123
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
124
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
125
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
126
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
127
|
+
"none": "text-highlighted bg-transparent"
|
|
109
128
|
},
|
|
110
129
|
"color": {
|
|
111
130
|
"primary": "",
|
|
@@ -129,7 +148,12 @@ export default {
|
|
|
129
148
|
"true": ""
|
|
130
149
|
},
|
|
131
150
|
"type": {
|
|
132
|
-
"file": "file:me-1.5 file:font-medium file:text-
|
|
151
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
152
|
+
},
|
|
153
|
+
"autoresize": {
|
|
154
|
+
"true": {
|
|
155
|
+
"base": "resize-none"
|
|
156
|
+
}
|
|
133
157
|
}
|
|
134
158
|
},
|
|
135
159
|
"compoundVariants": [
|
|
@@ -139,7 +163,7 @@ export default {
|
|
|
139
163
|
"outline" as typeof variant[number],
|
|
140
164
|
"subtle" as typeof variant[number]
|
|
141
165
|
],
|
|
142
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
166
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
143
167
|
},
|
|
144
168
|
{
|
|
145
169
|
"color": "secondary" as typeof color[number],
|
|
@@ -147,7 +171,7 @@ export default {
|
|
|
147
171
|
"outline" as typeof variant[number],
|
|
148
172
|
"subtle" as typeof variant[number]
|
|
149
173
|
],
|
|
150
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
174
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
151
175
|
},
|
|
152
176
|
{
|
|
153
177
|
"color": "success" as typeof color[number],
|
|
@@ -155,7 +179,7 @@ export default {
|
|
|
155
179
|
"outline" as typeof variant[number],
|
|
156
180
|
"subtle" as typeof variant[number]
|
|
157
181
|
],
|
|
158
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
182
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
159
183
|
},
|
|
160
184
|
{
|
|
161
185
|
"color": "info" as typeof color[number],
|
|
@@ -163,7 +187,7 @@ export default {
|
|
|
163
187
|
"outline" as typeof variant[number],
|
|
164
188
|
"subtle" as typeof variant[number]
|
|
165
189
|
],
|
|
166
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
190
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
167
191
|
},
|
|
168
192
|
{
|
|
169
193
|
"color": "warning" as typeof color[number],
|
|
@@ -171,7 +195,7 @@ export default {
|
|
|
171
195
|
"outline" as typeof variant[number],
|
|
172
196
|
"subtle" as typeof variant[number]
|
|
173
197
|
],
|
|
174
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
198
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
175
199
|
},
|
|
176
200
|
{
|
|
177
201
|
"color": "error" as typeof color[number],
|
|
@@ -179,37 +203,37 @@ export default {
|
|
|
179
203
|
"outline" as typeof variant[number],
|
|
180
204
|
"subtle" as typeof variant[number]
|
|
181
205
|
],
|
|
182
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
206
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
183
207
|
},
|
|
184
208
|
{
|
|
185
209
|
"color": "primary" as typeof color[number],
|
|
186
210
|
"highlight": true,
|
|
187
|
-
"class": "ring ring-inset ring-
|
|
211
|
+
"class": "ring ring-inset ring-primary"
|
|
188
212
|
},
|
|
189
213
|
{
|
|
190
214
|
"color": "secondary" as typeof color[number],
|
|
191
215
|
"highlight": true,
|
|
192
|
-
"class": "ring ring-inset ring-
|
|
216
|
+
"class": "ring ring-inset ring-secondary"
|
|
193
217
|
},
|
|
194
218
|
{
|
|
195
219
|
"color": "success" as typeof color[number],
|
|
196
220
|
"highlight": true,
|
|
197
|
-
"class": "ring ring-inset ring-
|
|
221
|
+
"class": "ring ring-inset ring-success"
|
|
198
222
|
},
|
|
199
223
|
{
|
|
200
224
|
"color": "info" as typeof color[number],
|
|
201
225
|
"highlight": true,
|
|
202
|
-
"class": "ring ring-inset ring-
|
|
226
|
+
"class": "ring ring-inset ring-info"
|
|
203
227
|
},
|
|
204
228
|
{
|
|
205
229
|
"color": "warning" as typeof color[number],
|
|
206
230
|
"highlight": true,
|
|
207
|
-
"class": "ring ring-inset ring-
|
|
231
|
+
"class": "ring ring-inset ring-warning"
|
|
208
232
|
},
|
|
209
233
|
{
|
|
210
234
|
"color": "error" as typeof color[number],
|
|
211
235
|
"highlight": true,
|
|
212
|
-
"class": "ring ring-inset ring-
|
|
236
|
+
"class": "ring ring-inset ring-error"
|
|
213
237
|
},
|
|
214
238
|
{
|
|
215
239
|
"color": "neutral" as typeof color[number],
|
|
@@ -217,12 +241,12 @@ export default {
|
|
|
217
241
|
"outline" as typeof variant[number],
|
|
218
242
|
"subtle" as typeof variant[number]
|
|
219
243
|
],
|
|
220
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
244
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
221
245
|
},
|
|
222
246
|
{
|
|
223
247
|
"color": "neutral" as typeof color[number],
|
|
224
248
|
"highlight": true,
|
|
225
|
-
"class": "ring ring-inset ring-
|
|
249
|
+
"class": "ring ring-inset ring-inverted"
|
|
226
250
|
},
|
|
227
251
|
{
|
|
228
252
|
"leading": true,
|
|
@@ -295,4 +319,6 @@ export default {
|
|
|
295
319
|
"color": "primary" as typeof color[number],
|
|
296
320
|
"variant": "outline" as typeof variant[number]
|
|
297
321
|
}
|
|
298
|
-
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export default result as typeof theme
|
package/.nuxt/ui/toast.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/toast"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -13,12 +15,29 @@ const orientation = [
|
|
|
13
15
|
"vertical"
|
|
14
16
|
] as const
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
19
|
+
"prefix": "U",
|
|
20
|
+
"fonts": true,
|
|
21
|
+
"colorMode": true,
|
|
22
|
+
"theme": {
|
|
23
|
+
"colors": [
|
|
24
|
+
"primary",
|
|
25
|
+
"secondary",
|
|
26
|
+
"success",
|
|
27
|
+
"info",
|
|
28
|
+
"warning",
|
|
29
|
+
"error"
|
|
30
|
+
],
|
|
31
|
+
"transitions": true
|
|
32
|
+
}
|
|
33
|
+
}) : template
|
|
34
|
+
|
|
35
|
+
const theme = {
|
|
17
36
|
"slots": {
|
|
18
|
-
"root": "relative group overflow-hidden bg-
|
|
37
|
+
"root": "relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5 focus:outline-none",
|
|
19
38
|
"wrapper": "w-0 flex-1 flex flex-col",
|
|
20
|
-
"title": "text-sm font-medium text-
|
|
21
|
-
"description": "text-sm text-
|
|
39
|
+
"title": "text-sm font-medium text-highlighted",
|
|
40
|
+
"description": "text-sm text-muted",
|
|
22
41
|
"icon": "shrink-0 size-5",
|
|
23
42
|
"avatar": "shrink-0",
|
|
24
43
|
"avatarSize": "2xl",
|
|
@@ -29,39 +48,39 @@ export default {
|
|
|
29
48
|
"variants": {
|
|
30
49
|
"color": {
|
|
31
50
|
"primary": {
|
|
32
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
33
|
-
"icon": "text-
|
|
34
|
-
"progress": "bg-
|
|
51
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
|
|
52
|
+
"icon": "text-primary",
|
|
53
|
+
"progress": "bg-primary"
|
|
35
54
|
},
|
|
36
55
|
"secondary": {
|
|
37
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
38
|
-
"icon": "text-
|
|
39
|
-
"progress": "bg-
|
|
56
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
|
|
57
|
+
"icon": "text-secondary",
|
|
58
|
+
"progress": "bg-secondary"
|
|
40
59
|
},
|
|
41
60
|
"success": {
|
|
42
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
43
|
-
"icon": "text-
|
|
44
|
-
"progress": "bg-
|
|
61
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",
|
|
62
|
+
"icon": "text-success",
|
|
63
|
+
"progress": "bg-success"
|
|
45
64
|
},
|
|
46
65
|
"info": {
|
|
47
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
48
|
-
"icon": "text-
|
|
49
|
-
"progress": "bg-
|
|
66
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",
|
|
67
|
+
"icon": "text-info",
|
|
68
|
+
"progress": "bg-info"
|
|
50
69
|
},
|
|
51
70
|
"warning": {
|
|
52
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
53
|
-
"icon": "text-
|
|
54
|
-
"progress": "bg-
|
|
71
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",
|
|
72
|
+
"icon": "text-warning",
|
|
73
|
+
"progress": "bg-warning"
|
|
55
74
|
},
|
|
56
75
|
"error": {
|
|
57
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
58
|
-
"icon": "text-
|
|
59
|
-
"progress": "bg-
|
|
76
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",
|
|
77
|
+
"icon": "text-error",
|
|
78
|
+
"progress": "bg-error"
|
|
60
79
|
},
|
|
61
80
|
"neutral": {
|
|
62
|
-
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
63
|
-
"icon": "text-
|
|
64
|
-
"progress": "bg-
|
|
81
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",
|
|
82
|
+
"icon": "text-highlighted",
|
|
83
|
+
"progress": "bg-inverted"
|
|
65
84
|
}
|
|
66
85
|
},
|
|
67
86
|
"orientation": {
|
|
@@ -83,4 +102,6 @@ export default {
|
|
|
83
102
|
"defaultVariants": {
|
|
84
103
|
"color": "primary" as typeof color[number]
|
|
85
104
|
}
|
|
86
|
-
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export default result as typeof theme
|
package/.nuxt/ui/toaster.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/toaster"
|
|
2
|
+
|
|
1
3
|
const position = [
|
|
2
4
|
"top-left",
|
|
3
5
|
"top-center",
|
|
@@ -14,7 +16,24 @@ const swipeDirection = [
|
|
|
14
16
|
"left"
|
|
15
17
|
] as const
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
20
|
+
"prefix": "U",
|
|
21
|
+
"fonts": true,
|
|
22
|
+
"colorMode": true,
|
|
23
|
+
"theme": {
|
|
24
|
+
"colors": [
|
|
25
|
+
"primary",
|
|
26
|
+
"secondary",
|
|
27
|
+
"success",
|
|
28
|
+
"info",
|
|
29
|
+
"warning",
|
|
30
|
+
"error"
|
|
31
|
+
],
|
|
32
|
+
"transitions": true
|
|
33
|
+
}
|
|
34
|
+
}) : template
|
|
35
|
+
|
|
36
|
+
const theme = {
|
|
18
37
|
"slots": {
|
|
19
38
|
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
|
|
20
39
|
"base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--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"
|
|
@@ -88,4 +107,6 @@ export default {
|
|
|
88
107
|
"defaultVariants": {
|
|
89
108
|
"position": "bottom-right" as typeof position[number]
|
|
90
109
|
}
|
|
91
|
-
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export default result as typeof theme
|
package/.nuxt/ui/tooltip.ts
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/tooltip"
|
|
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": "flex items-center gap-1 bg-
|
|
4
|
-
"arrow": "fill-
|
|
22
|
+
"content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default 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] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
|
|
23
|
+
"arrow": "fill-default",
|
|
5
24
|
"text": "truncate",
|
|
6
25
|
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
|
|
7
26
|
"kbdsSize": "sm"
|
|
8
27
|
}
|
|
9
|
-
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default result as typeof theme
|
package/.nuxt/ui/tree.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import template from "/home/runner/work/ui/ui/src/theme/tree"
|
|
2
|
+
|
|
1
3
|
const color = [
|
|
2
4
|
"primary",
|
|
3
5
|
"secondary",
|
|
@@ -16,13 +18,30 @@ const size = [
|
|
|
16
18
|
"xl"
|
|
17
19
|
] as const
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
const result = typeof template === 'function' ? (template as Function)({
|
|
22
|
+
"prefix": "U",
|
|
23
|
+
"fonts": true,
|
|
24
|
+
"colorMode": true,
|
|
25
|
+
"theme": {
|
|
26
|
+
"colors": [
|
|
27
|
+
"primary",
|
|
28
|
+
"secondary",
|
|
29
|
+
"success",
|
|
30
|
+
"info",
|
|
31
|
+
"warning",
|
|
32
|
+
"error"
|
|
33
|
+
],
|
|
34
|
+
"transitions": true
|
|
35
|
+
}
|
|
36
|
+
}) : template
|
|
37
|
+
|
|
38
|
+
const theme = {
|
|
20
39
|
"slots": {
|
|
21
40
|
"root": "relative isolate",
|
|
22
41
|
"item": "",
|
|
23
|
-
"listWithChildren": "ms-4.5 border-s border-
|
|
42
|
+
"listWithChildren": "ms-4.5 border-s border-default",
|
|
24
43
|
"itemWithChildren": "ps-1.5 -ms-px",
|
|
25
|
-
"link": "relative group w-full flex items-center text-sm before:absolute before:inset-y-px before:inset-x-0 before:z-[-1] before:rounded-
|
|
44
|
+
"link": "relative group w-full flex items-center text-sm before:absolute before:inset-y-px before:inset-x-0 before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
26
45
|
"linkLeadingIcon": "shrink-0",
|
|
27
46
|
"linkLabel": "truncate",
|
|
28
47
|
"linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
@@ -31,25 +50,25 @@ export default {
|
|
|
31
50
|
"variants": {
|
|
32
51
|
"color": {
|
|
33
52
|
"primary": {
|
|
34
|
-
"link": "focus-visible:before:ring-
|
|
53
|
+
"link": "focus-visible:before:ring-primary"
|
|
35
54
|
},
|
|
36
55
|
"secondary": {
|
|
37
|
-
"link": "focus-visible:before:ring-
|
|
56
|
+
"link": "focus-visible:before:ring-secondary"
|
|
38
57
|
},
|
|
39
58
|
"success": {
|
|
40
|
-
"link": "focus-visible:before:ring-
|
|
59
|
+
"link": "focus-visible:before:ring-success"
|
|
41
60
|
},
|
|
42
61
|
"info": {
|
|
43
|
-
"link": "focus-visible:before:ring-
|
|
62
|
+
"link": "focus-visible:before:ring-info"
|
|
44
63
|
},
|
|
45
64
|
"warning": {
|
|
46
|
-
"link": "focus-visible:before:ring-
|
|
65
|
+
"link": "focus-visible:before:ring-warning"
|
|
47
66
|
},
|
|
48
67
|
"error": {
|
|
49
|
-
"link": "focus-visible:before:ring-
|
|
68
|
+
"link": "focus-visible:before:ring-error"
|
|
50
69
|
},
|
|
51
70
|
"neutral": {
|
|
52
|
-
"link": "focus-visible:before:ring-
|
|
71
|
+
"link": "focus-visible:before:ring-inverted"
|
|
53
72
|
}
|
|
54
73
|
},
|
|
55
74
|
"size": {
|
|
@@ -81,11 +100,11 @@ export default {
|
|
|
81
100
|
},
|
|
82
101
|
"selected": {
|
|
83
102
|
"true": {
|
|
84
|
-
"link": "before:bg-
|
|
103
|
+
"link": "before:bg-elevated"
|
|
85
104
|
},
|
|
86
105
|
"false": {
|
|
87
106
|
"link": [
|
|
88
|
-
"hover:not-disabled:text-
|
|
107
|
+
"hover:not-disabled:text-highlighted hover:not-disabled:before:bg-elevated/50",
|
|
89
108
|
"transition-colors before:transition-colors"
|
|
90
109
|
]
|
|
91
110
|
}
|
|
@@ -101,49 +120,49 @@ export default {
|
|
|
101
120
|
"color": "primary" as typeof color[number],
|
|
102
121
|
"selected": true,
|
|
103
122
|
"class": {
|
|
104
|
-
"link": "text-
|
|
123
|
+
"link": "text-primary"
|
|
105
124
|
}
|
|
106
125
|
},
|
|
107
126
|
{
|
|
108
127
|
"color": "secondary" as typeof color[number],
|
|
109
128
|
"selected": true,
|
|
110
129
|
"class": {
|
|
111
|
-
"link": "text-
|
|
130
|
+
"link": "text-secondary"
|
|
112
131
|
}
|
|
113
132
|
},
|
|
114
133
|
{
|
|
115
134
|
"color": "success" as typeof color[number],
|
|
116
135
|
"selected": true,
|
|
117
136
|
"class": {
|
|
118
|
-
"link": "text-
|
|
137
|
+
"link": "text-success"
|
|
119
138
|
}
|
|
120
139
|
},
|
|
121
140
|
{
|
|
122
141
|
"color": "info" as typeof color[number],
|
|
123
142
|
"selected": true,
|
|
124
143
|
"class": {
|
|
125
|
-
"link": "text-
|
|
144
|
+
"link": "text-info"
|
|
126
145
|
}
|
|
127
146
|
},
|
|
128
147
|
{
|
|
129
148
|
"color": "warning" as typeof color[number],
|
|
130
149
|
"selected": true,
|
|
131
150
|
"class": {
|
|
132
|
-
"link": "text-
|
|
151
|
+
"link": "text-warning"
|
|
133
152
|
}
|
|
134
153
|
},
|
|
135
154
|
{
|
|
136
155
|
"color": "error" as typeof color[number],
|
|
137
156
|
"selected": true,
|
|
138
157
|
"class": {
|
|
139
|
-
"link": "text-
|
|
158
|
+
"link": "text-error"
|
|
140
159
|
}
|
|
141
160
|
},
|
|
142
161
|
{
|
|
143
162
|
"color": "neutral" as typeof color[number],
|
|
144
163
|
"selected": true,
|
|
145
164
|
"class": {
|
|
146
|
-
"link": "text-
|
|
165
|
+
"link": "text-highlighted"
|
|
147
166
|
}
|
|
148
167
|
}
|
|
149
168
|
],
|
|
@@ -151,4 +170,6 @@ export default {
|
|
|
151
170
|
"color": "primary" as typeof color[number],
|
|
152
171
|
"size": "md" as typeof size[number]
|
|
153
172
|
}
|
|
154
|
-
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export default result as typeof theme
|