@kuina-ui/vue 0.1.1 → 0.3.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/dist/{elements → components}/alert/Alert.vue.d.ts +14 -3
- package/dist/{elements → components}/alert/alert.theme.d.ts +1 -0
- package/dist/components/avatar-group/AvatarGroup.vue.d.ts +1 -1
- package/dist/components/date-picker/DateCalendar.vue.d.ts +40 -0
- package/dist/components/date-picker/DateCalendarMonth.vue.d.ts +27 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +44 -0
- package/dist/components/date-picker/DatePickerPanel.vue.d.ts +33 -0
- package/dist/components/date-picker/DateRangePicker.vue.d.ts +54 -0
- package/dist/components/date-picker/date-calendar.theme.d.ts +69 -0
- package/dist/components/date-picker/date-picker.theme.d.ts +19 -0
- package/dist/components/date-picker/datePickerProps.d.ts +39 -0
- package/dist/components/date-picker/index.d.ts +4 -0
- package/dist/components/date-picker/useDatePickerPopover.d.ts +21 -0
- package/dist/components/menu/Menu.vue.d.ts +87 -0
- package/dist/components/menu/MenuItemRow.vue.d.ts +18 -0
- package/dist/components/menu/MenuPanel.vue.d.ts +24 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/menu.theme.d.ts +109 -0
- package/dist/components/menu/menuContext.d.ts +27 -0
- package/dist/components/menu/menuEntries.d.ts +10 -0
- package/dist/components/select/Select.vue.d.ts +81 -0
- package/dist/components/select/SelectField.vue.d.ts +70 -0
- package/dist/components/select/SelectOptionRow.vue.d.ts +33 -0
- package/dist/components/select/SelectPanel.vue.d.ts +67 -0
- package/dist/components/select/index.d.ts +6 -0
- package/dist/components/select/select-field.theme.d.ts +250 -0
- package/dist/components/select/select-panel.theme.d.ts +55 -0
- package/dist/components/select/selectOptions.d.ts +43 -0
- package/dist/components/select/useSelectControl.d.ts +77 -0
- package/dist/components/select/useSelectListbox.d.ts +48 -0
- package/dist/components/text-field/TextField.vue.d.ts +4 -1
- package/dist/components/text-field/text-field.theme.d.ts +6 -1
- package/dist/components/textarea/Textarea.vue.d.ts +4 -1
- package/dist/components/textarea/textarea.theme.d.ts +6 -1
- package/dist/elements/avatar/Avatar.vue.d.ts +3 -3
- package/dist/elements/badge/Badge.vue.d.ts +2 -2
- package/dist/elements/button/Button.vue.d.ts +4 -4
- package/dist/elements/checkbox/Checkbox.vue.d.ts +2 -2
- package/dist/elements/radio-group/RadioGroup.vue.d.ts +1 -1
- package/dist/elements/select-control/SelectControl.vue.d.ts +56 -0
- package/dist/elements/select-control/index.d.ts +3 -0
- package/dist/elements/select-control/select-control.theme.d.ts +87 -0
- package/dist/elements/switch/Switch.vue.d.ts +2 -2
- package/dist/elements/text-link/TextLink.vue.d.ts +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.js +1 -1
- package/dist/nuxt.js +13 -8
- package/dist/shared/composables/useApplePlatform.d.ts +2 -0
- package/dist/shared/composables/useCalendarLabels.d.ts +19 -0
- package/dist/shared/composables/useDismissOnOutsidePointerDown.d.ts +9 -0
- package/dist/shared/composables/useFloatingPosition.d.ts +20 -0
- package/dist/shared/composables/useShortcuts.d.ts +9 -0
- package/dist/shared/types/calendar.d.ts +14 -0
- package/dist/shared/types/floating-position.d.ts +28 -0
- package/dist/shared/types/shortcut.d.ts +28 -0
- package/dist/shared/utils/calendarMonth.d.ts +5 -0
- package/dist/shared/utils/computeFloatingPosition.d.ts +5 -0
- package/dist/shared/utils/createDateFormatters.d.ts +9 -0
- package/dist/shared/utils/createShortcutHandler.d.ts +3 -0
- package/dist/shared/utils/createTypeaheadSearch.d.ts +2 -0
- package/dist/shared/utils/editableFieldGuard.d.ts +3 -0
- package/dist/shared/utils/flipFloatingPosition.d.ts +3 -0
- package/dist/shared/utils/floatingPanelTransition.d.ts +9 -0
- package/dist/shared/utils/formatShortcut.d.ts +2 -0
- package/dist/shared/utils/isApplePlatform.d.ts +2 -0
- package/dist/shared/utils/isExternalUrl.d.ts +2 -0
- package/dist/shared/utils/isoDate.d.ts +18 -0
- package/dist/shared/utils/parseShortcut.d.ts +3 -0
- package/dist/src-Cl5gtlze.js +6369 -0
- package/package.json +4 -1
- package/dist/src-CcuBQU4y.js +0 -2371
- /package/dist/{elements → components}/alert/index.d.ts +0 -0
package/dist/src-CcuBQU4y.js
DELETED
|
@@ -1,2371 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, toValue as v, unref as y, useId as b, useModel as x, useSlots as S, vModelCheckbox as C, vModelDynamic as w, vModelRadio as T, vModelText as E, withCtx as D, withDirectives as O } from "vue";
|
|
2
|
-
import { tv as k } from "tailwind-variants";
|
|
3
|
-
import { CircleAlert as A, CircleCheck as ee, Info as j, TriangleAlert as M } from "lucide-vue-next";
|
|
4
|
-
// \0rolldown/runtime.js
|
|
5
|
-
var N = Object.defineProperty, te = (e, t) => {
|
|
6
|
-
let n = {};
|
|
7
|
-
for (var r in e) N(n, r, {
|
|
8
|
-
get: e[r],
|
|
9
|
-
enumerable: !0
|
|
10
|
-
});
|
|
11
|
-
return t || N(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
-
}, P = {
|
|
13
|
-
"3xs": {
|
|
14
|
-
sizeVariable: "[--avatar-size:22px]",
|
|
15
|
-
radius: "rounded-md"
|
|
16
|
-
},
|
|
17
|
-
"2xs": {
|
|
18
|
-
sizeVariable: "[--avatar-size:24px]",
|
|
19
|
-
radius: "rounded-md"
|
|
20
|
-
},
|
|
21
|
-
xs: {
|
|
22
|
-
sizeVariable: "[--avatar-size:26px]",
|
|
23
|
-
radius: "rounded-md"
|
|
24
|
-
},
|
|
25
|
-
sm: {
|
|
26
|
-
sizeVariable: "[--avatar-size:28px]",
|
|
27
|
-
radius: "rounded-md"
|
|
28
|
-
},
|
|
29
|
-
md: {
|
|
30
|
-
sizeVariable: "[--avatar-size:32px]",
|
|
31
|
-
radius: "rounded-lg"
|
|
32
|
-
},
|
|
33
|
-
lg: {
|
|
34
|
-
sizeVariable: "[--avatar-size:36px]",
|
|
35
|
-
radius: "rounded-lg"
|
|
36
|
-
},
|
|
37
|
-
xl: {
|
|
38
|
-
sizeVariable: "[--avatar-size:40px]",
|
|
39
|
-
radius: "rounded-[10px]"
|
|
40
|
-
},
|
|
41
|
-
"2xl": {
|
|
42
|
-
sizeVariable: "[--avatar-size:44px]",
|
|
43
|
-
radius: "rounded-xl"
|
|
44
|
-
},
|
|
45
|
-
"3xl": {
|
|
46
|
-
sizeVariable: "[--avatar-size:48px]",
|
|
47
|
-
radius: "rounded-xl"
|
|
48
|
-
},
|
|
49
|
-
"4xl": {
|
|
50
|
-
sizeVariable: "[--avatar-size:56px]",
|
|
51
|
-
radius: "rounded-2xl"
|
|
52
|
-
},
|
|
53
|
-
"5xl": {
|
|
54
|
-
sizeVariable: "[--avatar-size:64px]",
|
|
55
|
-
radius: "rounded-2xl"
|
|
56
|
-
},
|
|
57
|
-
"6xl": {
|
|
58
|
-
sizeVariable: "[--avatar-size:80px]",
|
|
59
|
-
radius: "rounded-3xl"
|
|
60
|
-
}
|
|
61
|
-
}, F = Object.keys(P), I = {
|
|
62
|
-
soft: {
|
|
63
|
-
primary: "light:bg-stone-200 dark:bg-stone-700",
|
|
64
|
-
secondary: "bg-secondary/16 text-secondary",
|
|
65
|
-
gray: "light:bg-stone-200 dark:bg-stone-700",
|
|
66
|
-
success: "light:bg-green-100 light:text-green-700 dark:bg-green-950 dark:text-green-400",
|
|
67
|
-
info: "light:bg-blue-100 light:text-blue-700 dark:bg-blue-950 dark:text-blue-300",
|
|
68
|
-
discovery: "light:bg-purple-100 light:text-purple-700 dark:bg-purple-950 dark:text-purple-300",
|
|
69
|
-
danger: "light:bg-red-100 light:text-red-700 dark:bg-red-950 dark:text-red-400"
|
|
70
|
-
},
|
|
71
|
-
solid: {
|
|
72
|
-
primary: "light:bg-neutral-900 light:text-white dark:bg-stone-200 dark:text-stone-950",
|
|
73
|
-
secondary: "bg-secondary light:text-white dark:text-stone-950",
|
|
74
|
-
gray: "light:bg-stone-600 light:text-white dark:bg-stone-600 dark:text-white",
|
|
75
|
-
success: "light:bg-green-600 light:text-white dark:bg-green-600 dark:text-white",
|
|
76
|
-
info: "light:bg-blue-600 light:text-white dark:bg-blue-500 dark:text-white",
|
|
77
|
-
discovery: "light:bg-purple-600 light:text-white dark:bg-purple-500 dark:text-white",
|
|
78
|
-
danger: "light:bg-red-600 light:text-white dark:bg-red-600 dark:text-white"
|
|
79
|
-
}
|
|
80
|
-
}, ne = Object.keys(I), re = Object.keys(I.soft), ie = Object.fromEntries(F.map((e) => [e, { base: P[e].sizeVariable }])), ae = F.flatMap((e) => [{
|
|
81
|
-
size: e,
|
|
82
|
-
pill: !0,
|
|
83
|
-
class: { base: "rounded-full" }
|
|
84
|
-
}, {
|
|
85
|
-
size: e,
|
|
86
|
-
pill: !1,
|
|
87
|
-
class: { base: P[e].radius }
|
|
88
|
-
}]), oe = ne.flatMap((e) => re.map((t) => ({
|
|
89
|
-
variant: e,
|
|
90
|
-
color: t,
|
|
91
|
-
class: { base: I[e][t] }
|
|
92
|
-
}))), se = k({
|
|
93
|
-
slots: {
|
|
94
|
-
base: "relative inline-flex size-(--avatar-size) shrink-0 items-center justify-center overflow-hidden select-none",
|
|
95
|
-
image: "absolute inset-0 size-full rounded-[inherit] object-cover",
|
|
96
|
-
icon: "size-[calc(var(--avatar-size)*0.55)] shrink-0",
|
|
97
|
-
label: "font-semibold",
|
|
98
|
-
overflowSign: "relative -top-[calc(var(--avatar-size)/24)] -ml-px"
|
|
99
|
-
},
|
|
100
|
-
variants: {
|
|
101
|
-
variant: {
|
|
102
|
-
soft: "",
|
|
103
|
-
solid: ""
|
|
104
|
-
},
|
|
105
|
-
color: {
|
|
106
|
-
primary: "",
|
|
107
|
-
secondary: "",
|
|
108
|
-
gray: "",
|
|
109
|
-
success: "",
|
|
110
|
-
info: "",
|
|
111
|
-
discovery: "",
|
|
112
|
-
danger: ""
|
|
113
|
-
},
|
|
114
|
-
size: ie,
|
|
115
|
-
pill: { true: "" },
|
|
116
|
-
hasImage: { true: { base: "after:absolute after:inset-0 after:rounded-[inherit] after:border light:after:border-black/4 dark:after:border-white/15" } },
|
|
117
|
-
isLink: { true: { base: "outline-primary focus-visible:outline-2 focus-visible:outline-offset-2" } },
|
|
118
|
-
isOverflow: { true: { label: "flex" } },
|
|
119
|
-
labelCharacterCount: {
|
|
120
|
-
one: "",
|
|
121
|
-
two: "",
|
|
122
|
-
many: { label: "text-[length:calc(var(--avatar-size)*0.3)]/none" }
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
compoundVariants: [
|
|
126
|
-
...ae,
|
|
127
|
-
...oe,
|
|
128
|
-
{
|
|
129
|
-
isOverflow: !1,
|
|
130
|
-
labelCharacterCount: "one",
|
|
131
|
-
class: { label: "text-[length:calc(var(--avatar-size)*0.5)]/none" }
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
isOverflow: !1,
|
|
135
|
-
labelCharacterCount: "two",
|
|
136
|
-
class: { label: "text-[length:calc(var(--avatar-size)*0.4)]/none" }
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
isOverflow: !0,
|
|
140
|
-
labelCharacterCount: "one",
|
|
141
|
-
class: { label: "text-[length:calc(var(--avatar-size)*0.45)]/none" }
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
isOverflow: !0,
|
|
145
|
-
labelCharacterCount: "two",
|
|
146
|
-
class: { label: "text-[length:calc(var(--avatar-size)*0.37)]/none" }
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}), ce = ["src"], L = /* @__PURE__ */ c({
|
|
150
|
-
__name: "Avatar",
|
|
151
|
-
props: {
|
|
152
|
-
name: { default: "" },
|
|
153
|
-
imageUrl: {},
|
|
154
|
-
icon: {},
|
|
155
|
-
initials: {},
|
|
156
|
-
overflowCount: { default: 0 },
|
|
157
|
-
variant: { default: "soft" },
|
|
158
|
-
color: { default: "gray" },
|
|
159
|
-
size: { default: "md" },
|
|
160
|
-
pill: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
default: !0
|
|
163
|
-
},
|
|
164
|
-
href: {},
|
|
165
|
-
ui: {},
|
|
166
|
-
class: { type: [
|
|
167
|
-
Array,
|
|
168
|
-
String,
|
|
169
|
-
null,
|
|
170
|
-
Number,
|
|
171
|
-
Boolean
|
|
172
|
-
] }
|
|
173
|
-
},
|
|
174
|
-
setup(e) {
|
|
175
|
-
let r = e, s = t(() => r.overflowCount > 0), c = t(() => r.overflowCount >= 1e6 ? `${Math.round(r.overflowCount / 1e6)}m` : r.overflowCount >= 1e3 ? `${Math.round(r.overflowCount / 1e3)}k` : String(r.overflowCount)), l = t(() => r.initials || r.name.charAt(0).toUpperCase()), f = t(() => r.name || (s.value ? `${r.overflowCount} more` : "")), m = t(() => {
|
|
176
|
-
let e = s.value ? c.value.length : l.value.length;
|
|
177
|
-
return e <= 1 ? "one" : e === 2 ? "two" : "many";
|
|
178
|
-
}), h = t(() => se({
|
|
179
|
-
variant: r.variant,
|
|
180
|
-
color: r.color,
|
|
181
|
-
size: r.size,
|
|
182
|
-
pill: r.pill,
|
|
183
|
-
hasImage: !!r.imageUrl,
|
|
184
|
-
isLink: !!r.href,
|
|
185
|
-
isOverflow: s.value,
|
|
186
|
-
labelCharacterCount: m.value
|
|
187
|
-
})), v = t(() => r.href ? "a" : "span"), y = t(() => r.href ? {
|
|
188
|
-
href: r.href,
|
|
189
|
-
"aria-label": f.value || void 0
|
|
190
|
-
} : f.value ? {
|
|
191
|
-
role: "img",
|
|
192
|
-
"aria-label": f.value
|
|
193
|
-
} : { "aria-hidden": "true" });
|
|
194
|
-
return (t, f) => (p(), n(g(v.value), u(y.value, { class: h.value.base({ class: [e.ui?.base, r.class] }) }), {
|
|
195
|
-
default: D(() => [e.imageUrl ? (p(), i("img", {
|
|
196
|
-
key: 0,
|
|
197
|
-
src: e.imageUrl,
|
|
198
|
-
alt: "",
|
|
199
|
-
class: d(h.value.image({ class: e.ui?.image }))
|
|
200
|
-
}, null, 10, ce)) : e.icon ? (p(), n(g(e.icon), {
|
|
201
|
-
key: 1,
|
|
202
|
-
class: d(h.value.icon({ class: e.ui?.icon }))
|
|
203
|
-
}, null, 8, ["class"])) : s.value ? (p(), i("span", {
|
|
204
|
-
key: 2,
|
|
205
|
-
"aria-hidden": "true",
|
|
206
|
-
class: d(h.value.label({ class: e.ui?.label }))
|
|
207
|
-
}, [a("span", { class: d(h.value.overflowSign({ class: e.ui?.overflowSign })) }, "+", 2), o(" " + _(c.value), 1)], 2)) : (p(), i("span", {
|
|
208
|
-
key: 3,
|
|
209
|
-
"aria-hidden": "true",
|
|
210
|
-
class: d(h.value.label({ class: e.ui?.label }))
|
|
211
|
-
}, _(l.value), 3))]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 16, ["class"]));
|
|
214
|
-
}
|
|
215
|
-
}), le = k({
|
|
216
|
-
slots: { base: "flex *:ring-3" },
|
|
217
|
-
variants: {
|
|
218
|
-
stack: {
|
|
219
|
-
start: { base: "flex-row-reverse justify-end *:not-first:-me-[calc(var(--avatar-size)/4)]" },
|
|
220
|
-
end: { base: "*:not-first:-ms-[calc(var(--avatar-size)/4)]" }
|
|
221
|
-
},
|
|
222
|
-
surface: {
|
|
223
|
-
widget: { base: "*:ring-widget" },
|
|
224
|
-
canvas: { base: "*:ring-canvas" }
|
|
225
|
-
},
|
|
226
|
-
hasOverflow: { true: "" }
|
|
227
|
-
},
|
|
228
|
-
compoundVariants: [{
|
|
229
|
-
stack: "start",
|
|
230
|
-
hasOverflow: !0,
|
|
231
|
-
class: { base: "*:first:z-10" }
|
|
232
|
-
}]
|
|
233
|
-
}), ue = ["role", "aria-label"], R = /* @__PURE__ */ c({
|
|
234
|
-
__name: "AvatarGroup",
|
|
235
|
-
props: {
|
|
236
|
-
avatars: {},
|
|
237
|
-
label: {},
|
|
238
|
-
size: { default: "md" },
|
|
239
|
-
stack: { default: "start" },
|
|
240
|
-
overflowCount: { default: 0 },
|
|
241
|
-
surface: { default: "widget" },
|
|
242
|
-
ui: {},
|
|
243
|
-
class: { type: [
|
|
244
|
-
Array,
|
|
245
|
-
String,
|
|
246
|
-
null,
|
|
247
|
-
Number,
|
|
248
|
-
Boolean
|
|
249
|
-
] }
|
|
250
|
-
},
|
|
251
|
-
setup(r) {
|
|
252
|
-
let a = r, o = t(() => a.overflowCount > 0), s = t(() => {
|
|
253
|
-
let e = (o.value ? [...a.avatars, { overflowCount: a.overflowCount }] : [...a.avatars]).map((e, t) => ({
|
|
254
|
-
avatarProps: e,
|
|
255
|
-
avatarPosition: t
|
|
256
|
-
}));
|
|
257
|
-
return a.stack === "start" ? e.reverse() : e;
|
|
258
|
-
}), c = t(() => le({
|
|
259
|
-
stack: a.stack,
|
|
260
|
-
surface: a.surface,
|
|
261
|
-
hasOverflow: o.value
|
|
262
|
-
}));
|
|
263
|
-
return (t, o) => (p(), i("div", {
|
|
264
|
-
role: r.label ? "group" : void 0,
|
|
265
|
-
"aria-label": r.label || void 0,
|
|
266
|
-
class: d(c.value.base({ class: [r.ui?.base, a.class] }))
|
|
267
|
-
}, [(p(!0), i(e, null, m(s.value, (e) => (p(), n(y(L), u({ key: e.avatarPosition }, { ref_for: !0 }, e.avatarProps, { size: r.size }), null, 16, ["size"]))), 128))], 10, ue));
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
// src/shared/composables/useFieldDescription.ts
|
|
271
|
-
function z(e) {
|
|
272
|
-
let n = b(), r = t(() => e.id ?? n), i = t(() => `${r.value}-hint`), a = t(() => `${r.value}-error`);
|
|
273
|
-
return {
|
|
274
|
-
fieldId: r,
|
|
275
|
-
hintId: i,
|
|
276
|
-
errorMessageId: a,
|
|
277
|
-
isInvalid: t(() => !!(e.invalid || e.errorMessage)),
|
|
278
|
-
describingElementId: t(() => {
|
|
279
|
-
if (e.errorMessage) return a.value;
|
|
280
|
-
if (e.hint) return i.value;
|
|
281
|
-
})
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
// src/components/text-field/text-field.theme.ts
|
|
285
|
-
var B = {
|
|
286
|
-
md: {
|
|
287
|
-
height: "h-8",
|
|
288
|
-
fontSize: "text-sm",
|
|
289
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-sm peer-focus:text-[11px]",
|
|
290
|
-
trailingActionFontSize: "text-sm",
|
|
291
|
-
iconSize: "size-3",
|
|
292
|
-
pillShape: {
|
|
293
|
-
corners: "rounded-full",
|
|
294
|
-
leadingPadding: "pl-4",
|
|
295
|
-
leadingPaddingWithIcon: "pl-9",
|
|
296
|
-
trailingPadding: "pr-4",
|
|
297
|
-
trailingPaddingWithIcon: "pr-9",
|
|
298
|
-
trailingPaddingWithAction: "pr-12",
|
|
299
|
-
labelOffset: "left-3",
|
|
300
|
-
labelOffsetWithLeadingIcon: "left-3 peer-placeholder-shown:left-8 peer-focus:left-3",
|
|
301
|
-
leadingIconOffset: "left-4",
|
|
302
|
-
trailingIconOffset: "right-4",
|
|
303
|
-
trailingActionOffset: "right-3"
|
|
304
|
-
},
|
|
305
|
-
roundedShape: {
|
|
306
|
-
corners: "rounded-lg",
|
|
307
|
-
leadingPadding: "pl-3",
|
|
308
|
-
leadingPaddingWithIcon: "pl-8",
|
|
309
|
-
trailingPadding: "pr-3",
|
|
310
|
-
trailingPaddingWithIcon: "pr-8",
|
|
311
|
-
trailingPaddingWithAction: "pr-11",
|
|
312
|
-
labelOffset: "left-2",
|
|
313
|
-
labelOffsetWithLeadingIcon: "left-2 peer-placeholder-shown:left-7 peer-focus:left-2",
|
|
314
|
-
leadingIconOffset: "left-3",
|
|
315
|
-
trailingIconOffset: "right-3",
|
|
316
|
-
trailingActionOffset: "right-2"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
lg: {
|
|
320
|
-
height: "h-9",
|
|
321
|
-
fontSize: "text-sm",
|
|
322
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-sm peer-focus:text-[11px]",
|
|
323
|
-
trailingActionFontSize: "text-sm",
|
|
324
|
-
iconSize: "size-3",
|
|
325
|
-
pillShape: {
|
|
326
|
-
corners: "rounded-full",
|
|
327
|
-
leadingPadding: "pl-4",
|
|
328
|
-
leadingPaddingWithIcon: "pl-9",
|
|
329
|
-
trailingPadding: "pr-4",
|
|
330
|
-
trailingPaddingWithIcon: "pr-9",
|
|
331
|
-
trailingPaddingWithAction: "pr-12",
|
|
332
|
-
labelOffset: "left-3",
|
|
333
|
-
labelOffsetWithLeadingIcon: "left-3 peer-placeholder-shown:left-8 peer-focus:left-3",
|
|
334
|
-
leadingIconOffset: "left-4",
|
|
335
|
-
trailingIconOffset: "right-4",
|
|
336
|
-
trailingActionOffset: "right-3"
|
|
337
|
-
},
|
|
338
|
-
roundedShape: {
|
|
339
|
-
corners: "rounded-lg",
|
|
340
|
-
leadingPadding: "pl-3",
|
|
341
|
-
leadingPaddingWithIcon: "pl-8",
|
|
342
|
-
trailingPadding: "pr-3",
|
|
343
|
-
trailingPaddingWithIcon: "pr-8",
|
|
344
|
-
trailingPaddingWithAction: "pr-11",
|
|
345
|
-
labelOffset: "left-2",
|
|
346
|
-
labelOffsetWithLeadingIcon: "left-2 peer-placeholder-shown:left-7 peer-focus:left-2",
|
|
347
|
-
leadingIconOffset: "left-3",
|
|
348
|
-
trailingIconOffset: "right-3",
|
|
349
|
-
trailingActionOffset: "right-2"
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
xl: {
|
|
353
|
-
height: "h-10",
|
|
354
|
-
fontSize: "text-base",
|
|
355
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-base peer-focus:text-[11px]",
|
|
356
|
-
trailingActionFontSize: "text-sm",
|
|
357
|
-
iconSize: "size-3.5",
|
|
358
|
-
pillShape: {
|
|
359
|
-
corners: "rounded-full",
|
|
360
|
-
leadingPadding: "pl-4.75",
|
|
361
|
-
leadingPaddingWithIcon: "pl-10.25",
|
|
362
|
-
trailingPadding: "pr-4.75",
|
|
363
|
-
trailingPaddingWithIcon: "pr-10.25",
|
|
364
|
-
trailingPaddingWithAction: "pr-13",
|
|
365
|
-
labelOffset: "left-3.75",
|
|
366
|
-
labelOffsetWithLeadingIcon: "left-3.75 peer-placeholder-shown:left-9.25 peer-focus:left-3.75",
|
|
367
|
-
leadingIconOffset: "left-4.75",
|
|
368
|
-
trailingIconOffset: "right-4.75",
|
|
369
|
-
trailingActionOffset: "right-3.75"
|
|
370
|
-
},
|
|
371
|
-
roundedShape: {
|
|
372
|
-
corners: "rounded-[10px]",
|
|
373
|
-
leadingPadding: "pl-3.5",
|
|
374
|
-
leadingPaddingWithIcon: "pl-9",
|
|
375
|
-
trailingPadding: "pr-3.5",
|
|
376
|
-
trailingPaddingWithIcon: "pr-9",
|
|
377
|
-
trailingPaddingWithAction: "pr-12",
|
|
378
|
-
labelOffset: "left-2.5",
|
|
379
|
-
labelOffsetWithLeadingIcon: "left-2.5 peer-placeholder-shown:left-8 peer-focus:left-2.5",
|
|
380
|
-
leadingIconOffset: "left-3.5",
|
|
381
|
-
trailingIconOffset: "right-3.5",
|
|
382
|
-
trailingActionOffset: "right-2.5"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
"2xl": {
|
|
386
|
-
height: "h-11",
|
|
387
|
-
fontSize: "text-base",
|
|
388
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
389
|
-
trailingActionFontSize: "text-sm",
|
|
390
|
-
iconSize: "size-4",
|
|
391
|
-
pillShape: {
|
|
392
|
-
corners: "rounded-full",
|
|
393
|
-
leadingPadding: "pl-5.25",
|
|
394
|
-
leadingPaddingWithIcon: "pl-11.25",
|
|
395
|
-
trailingPadding: "pr-5.25",
|
|
396
|
-
trailingPaddingWithIcon: "pr-11.25",
|
|
397
|
-
trailingPaddingWithAction: "pr-14",
|
|
398
|
-
labelOffset: "left-4.25",
|
|
399
|
-
labelOffsetWithLeadingIcon: "left-4.25 peer-placeholder-shown:left-10.25 peer-focus:left-4.25",
|
|
400
|
-
leadingIconOffset: "left-5.25",
|
|
401
|
-
trailingIconOffset: "right-5.25",
|
|
402
|
-
trailingActionOffset: "right-4.25"
|
|
403
|
-
},
|
|
404
|
-
roundedShape: {
|
|
405
|
-
corners: "rounded-xl",
|
|
406
|
-
leadingPadding: "pl-4",
|
|
407
|
-
leadingPaddingWithIcon: "pl-10",
|
|
408
|
-
trailingPadding: "pr-4",
|
|
409
|
-
trailingPaddingWithIcon: "pr-10",
|
|
410
|
-
trailingPaddingWithAction: "pr-12",
|
|
411
|
-
labelOffset: "left-3",
|
|
412
|
-
labelOffsetWithLeadingIcon: "left-3 peer-placeholder-shown:left-9 peer-focus:left-3",
|
|
413
|
-
leadingIconOffset: "left-4",
|
|
414
|
-
trailingIconOffset: "right-4",
|
|
415
|
-
trailingActionOffset: "right-3"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
"3xl": {
|
|
419
|
-
height: "h-12",
|
|
420
|
-
fontSize: "text-base",
|
|
421
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
422
|
-
trailingActionFontSize: "text-sm",
|
|
423
|
-
iconSize: "size-4",
|
|
424
|
-
pillShape: {
|
|
425
|
-
corners: "rounded-full",
|
|
426
|
-
leadingPadding: "pl-5.25",
|
|
427
|
-
leadingPaddingWithIcon: "pl-11.25",
|
|
428
|
-
trailingPadding: "pr-5.25",
|
|
429
|
-
trailingPaddingWithIcon: "pr-11.25",
|
|
430
|
-
trailingPaddingWithAction: "pr-14",
|
|
431
|
-
labelOffset: "left-4.25",
|
|
432
|
-
labelOffsetWithLeadingIcon: "left-4.25 peer-placeholder-shown:left-10.25 peer-focus:left-4.25",
|
|
433
|
-
leadingIconOffset: "left-5.25",
|
|
434
|
-
trailingIconOffset: "right-5.25",
|
|
435
|
-
trailingActionOffset: "right-4.25"
|
|
436
|
-
},
|
|
437
|
-
roundedShape: {
|
|
438
|
-
corners: "rounded-xl",
|
|
439
|
-
leadingPadding: "pl-4",
|
|
440
|
-
leadingPaddingWithIcon: "pl-10",
|
|
441
|
-
trailingPadding: "pr-4",
|
|
442
|
-
trailingPaddingWithIcon: "pr-10",
|
|
443
|
-
trailingPaddingWithAction: "pr-12",
|
|
444
|
-
labelOffset: "left-3",
|
|
445
|
-
labelOffsetWithLeadingIcon: "left-3 peer-placeholder-shown:left-9 peer-focus:left-3",
|
|
446
|
-
leadingIconOffset: "left-4",
|
|
447
|
-
trailingIconOffset: "right-4",
|
|
448
|
-
trailingActionOffset: "right-3"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
"4xl": {
|
|
452
|
-
height: "h-14",
|
|
453
|
-
fontSize: "text-base",
|
|
454
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
455
|
-
trailingActionFontSize: "text-sm",
|
|
456
|
-
iconSize: "size-4",
|
|
457
|
-
pillShape: {
|
|
458
|
-
corners: "rounded-full",
|
|
459
|
-
leadingPadding: "pl-6",
|
|
460
|
-
leadingPaddingWithIcon: "pl-12",
|
|
461
|
-
trailingPadding: "pr-6",
|
|
462
|
-
trailingPaddingWithIcon: "pr-12",
|
|
463
|
-
trailingPaddingWithAction: "pr-16",
|
|
464
|
-
labelOffset: "left-5",
|
|
465
|
-
labelOffsetWithLeadingIcon: "left-5 peer-placeholder-shown:left-11 peer-focus:left-5",
|
|
466
|
-
leadingIconOffset: "left-6",
|
|
467
|
-
trailingIconOffset: "right-6",
|
|
468
|
-
trailingActionOffset: "right-5"
|
|
469
|
-
},
|
|
470
|
-
roundedShape: {
|
|
471
|
-
corners: "rounded-2xl",
|
|
472
|
-
leadingPadding: "pl-4.5",
|
|
473
|
-
leadingPaddingWithIcon: "pl-10.5",
|
|
474
|
-
trailingPadding: "pr-4.5",
|
|
475
|
-
trailingPaddingWithIcon: "pr-10.5",
|
|
476
|
-
trailingPaddingWithAction: "pr-13",
|
|
477
|
-
labelOffset: "left-3.5",
|
|
478
|
-
labelOffsetWithLeadingIcon: "left-3.5 peer-placeholder-shown:left-9.5 peer-focus:left-3.5",
|
|
479
|
-
leadingIconOffset: "left-4.5",
|
|
480
|
-
trailingIconOffset: "right-4.5",
|
|
481
|
-
trailingActionOffset: "right-3.5"
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}, V = Object.keys(B);
|
|
485
|
-
function de(e) {
|
|
486
|
-
return {
|
|
487
|
-
base: [e.height, e.fontSize],
|
|
488
|
-
label: e.labelFontSize,
|
|
489
|
-
leadingIcon: e.iconSize,
|
|
490
|
-
trailingIcon: e.iconSize,
|
|
491
|
-
trailingAction: e.trailingActionFontSize
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
function fe(e) {
|
|
495
|
-
let t = B[e];
|
|
496
|
-
return [!0, !1].flatMap((n) => {
|
|
497
|
-
let r = n ? t.pillShape : t.roundedShape;
|
|
498
|
-
return [
|
|
499
|
-
{
|
|
500
|
-
size: e,
|
|
501
|
-
pill: n,
|
|
502
|
-
class: {
|
|
503
|
-
base: r.corners,
|
|
504
|
-
leadingIcon: r.leadingIconOffset,
|
|
505
|
-
trailingIconButton: r.trailingIconOffset,
|
|
506
|
-
trailingAction: r.trailingActionOffset
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
size: e,
|
|
511
|
-
pill: n,
|
|
512
|
-
hasLeadingIcon: !1,
|
|
513
|
-
class: {
|
|
514
|
-
base: r.leadingPadding,
|
|
515
|
-
label: r.labelOffset
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
size: e,
|
|
520
|
-
pill: n,
|
|
521
|
-
hasLeadingIcon: !0,
|
|
522
|
-
class: {
|
|
523
|
-
base: r.leadingPaddingWithIcon,
|
|
524
|
-
label: r.labelOffsetWithLeadingIcon
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
size: e,
|
|
529
|
-
pill: n,
|
|
530
|
-
trailingContent: "none",
|
|
531
|
-
class: { base: r.trailingPadding }
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
size: e,
|
|
535
|
-
pill: n,
|
|
536
|
-
trailingContent: ["icon", "iconButton"],
|
|
537
|
-
class: { base: r.trailingPaddingWithIcon }
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
size: e,
|
|
541
|
-
pill: n,
|
|
542
|
-
trailingContent: "icon",
|
|
543
|
-
class: { trailingIcon: r.trailingIconOffset }
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
size: e,
|
|
547
|
-
pill: n,
|
|
548
|
-
trailingContent: "action",
|
|
549
|
-
class: { base: r.trailingPaddingWithAction }
|
|
550
|
-
}
|
|
551
|
-
];
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
var pe = Object.fromEntries(V.map((e) => [e, de(B[e])])), me = V.flatMap(fe), he = k({
|
|
555
|
-
slots: {
|
|
556
|
-
root: "",
|
|
557
|
-
container: "relative",
|
|
558
|
-
base: "peer w-full border bg-field outline-hidden transition-colors",
|
|
559
|
-
label: "pointer-events-none absolute top-0 -translate-y-1/2 bg-linear-to-b from-canvas from-50% to-field to-50% px-1 transition-colors peer-placeholder-shown:top-1/2 peer-placeholder-shown:transition-all peer-focus:transition-all peer-placeholder-shown:bg-none peer-focus:top-0 peer-focus:bg-linear-to-b",
|
|
560
|
-
leadingIcon: "pointer-events-none absolute top-1/2 -translate-y-1/2 text-muted",
|
|
561
|
-
trailingIcon: "",
|
|
562
|
-
trailingIconButton: "absolute top-1/2 flex -translate-y-1/2 cursor-pointer rounded-full text-muted outline-primary transition-colors hover:text-inherit focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed",
|
|
563
|
-
trailingAction: "absolute top-1/2 -translate-y-1/2 cursor-pointer font-medium text-primary disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
|
|
564
|
-
hint: "mt-2 text-xs text-muted",
|
|
565
|
-
errorMessage: "mt-2 flex items-start gap-x-1.5 text-xs light:text-red-600 dark:text-red-400",
|
|
566
|
-
errorIcon: "mt-px size-3.5 shrink-0"
|
|
567
|
-
},
|
|
568
|
-
variants: {
|
|
569
|
-
variant: {
|
|
570
|
-
outline: "",
|
|
571
|
-
soft: ""
|
|
572
|
-
},
|
|
573
|
-
size: pe,
|
|
574
|
-
pill: { true: "" },
|
|
575
|
-
hasLeadingIcon: { true: "" },
|
|
576
|
-
trailingContent: {
|
|
577
|
-
none: "",
|
|
578
|
-
icon: { trailingIcon: "pointer-events-none absolute top-1/2 -translate-y-1/2 text-muted" },
|
|
579
|
-
iconButton: "",
|
|
580
|
-
action: ""
|
|
581
|
-
},
|
|
582
|
-
invalid: { true: {
|
|
583
|
-
base: "light:border-red-600 dark:border-red-500 light:selection:bg-red-500/16 dark:selection:bg-red-400/16",
|
|
584
|
-
label: "light:text-red-600 dark:text-red-400"
|
|
585
|
-
} },
|
|
586
|
-
disabled: { true: { container: "opacity-50" } }
|
|
587
|
-
},
|
|
588
|
-
compoundVariants: [
|
|
589
|
-
...me,
|
|
590
|
-
{
|
|
591
|
-
invalid: !1,
|
|
592
|
-
disabled: !1,
|
|
593
|
-
variant: "outline",
|
|
594
|
-
class: {
|
|
595
|
-
base: "border-line light:not-focus:hover:border-stone-950/20 dark:not-focus:hover:border-white/20 focus:border-primary",
|
|
596
|
-
label: "text-muted peer-focus:text-primary"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
invalid: !1,
|
|
601
|
-
disabled: !1,
|
|
602
|
-
variant: "soft",
|
|
603
|
-
class: {
|
|
604
|
-
base: "border-transparent focus:border-primary",
|
|
605
|
-
label: "text-muted peer-focus:text-primary"
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
invalid: !1,
|
|
610
|
-
disabled: !0,
|
|
611
|
-
variant: "outline",
|
|
612
|
-
class: {
|
|
613
|
-
base: "cursor-not-allowed border-line",
|
|
614
|
-
label: "text-muted"
|
|
615
|
-
}
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
invalid: !1,
|
|
619
|
-
disabled: !0,
|
|
620
|
-
variant: "soft",
|
|
621
|
-
class: {
|
|
622
|
-
base: "cursor-not-allowed border-transparent",
|
|
623
|
-
label: "text-muted"
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
]
|
|
627
|
-
}), ge = [
|
|
628
|
-
"id",
|
|
629
|
-
"type",
|
|
630
|
-
"disabled",
|
|
631
|
-
"aria-describedby",
|
|
632
|
-
"aria-invalid"
|
|
633
|
-
], _e = ["for"], ve = ["aria-label", "disabled"], ye = ["id"], be = ["id"], H = /* @__PURE__ */ c({
|
|
634
|
-
inheritAttrs: !1,
|
|
635
|
-
__name: "TextField",
|
|
636
|
-
props: /*@__PURE__*/ l({
|
|
637
|
-
label: {},
|
|
638
|
-
id: {},
|
|
639
|
-
type: { default: "text" },
|
|
640
|
-
variant: { default: "outline" },
|
|
641
|
-
size: { default: "4xl" },
|
|
642
|
-
pill: {
|
|
643
|
-
type: Boolean,
|
|
644
|
-
default: !0
|
|
645
|
-
},
|
|
646
|
-
leadingIcon: {},
|
|
647
|
-
trailingIcon: {},
|
|
648
|
-
trailingIconLabel: {},
|
|
649
|
-
trailingActionLabel: {},
|
|
650
|
-
trailingActionHref: {},
|
|
651
|
-
hint: {},
|
|
652
|
-
errorMessage: {},
|
|
653
|
-
invalid: { type: Boolean },
|
|
654
|
-
disabled: { type: Boolean },
|
|
655
|
-
ui: {},
|
|
656
|
-
class: { type: [
|
|
657
|
-
Array,
|
|
658
|
-
String,
|
|
659
|
-
null,
|
|
660
|
-
Number,
|
|
661
|
-
Boolean
|
|
662
|
-
] }
|
|
663
|
-
}, {
|
|
664
|
-
modelValue: {},
|
|
665
|
-
modelModifiers: {}
|
|
666
|
-
}),
|
|
667
|
-
emits: /*@__PURE__*/ l(["trailingIconClick", "trailingActionClick"], ["update:modelValue"]),
|
|
668
|
-
setup(e, { emit: c }) {
|
|
669
|
-
let l = e, f = c, m = x(e, "modelValue"), { fieldId: h, hintId: v, errorMessageId: b, isInvalid: S, describingElementId: C } = z(l), T = t(() => l.trailingActionLabel ? "action" : l.trailingIcon ? l.trailingIconLabel ? "iconButton" : "icon" : "none"), E = t(() => he({
|
|
670
|
-
variant: l.variant,
|
|
671
|
-
size: l.size,
|
|
672
|
-
pill: l.pill,
|
|
673
|
-
hasLeadingIcon: !!l.leadingIcon,
|
|
674
|
-
trailingContent: T.value,
|
|
675
|
-
invalid: S.value,
|
|
676
|
-
disabled: l.disabled
|
|
677
|
-
})), k = t(() => l.trailingActionHref ? "a" : "button"), ee = t(() => l.trailingActionHref ? l.disabled ? {
|
|
678
|
-
role: "link",
|
|
679
|
-
"aria-disabled": "true"
|
|
680
|
-
} : { href: l.trailingActionHref } : {
|
|
681
|
-
type: "button",
|
|
682
|
-
disabled: l.disabled
|
|
683
|
-
});
|
|
684
|
-
function j(e) {
|
|
685
|
-
l.disabled || f("trailingActionClick", e);
|
|
686
|
-
}
|
|
687
|
-
return (t, c) => (p(), i("div", { class: d(E.value.root({ class: [e.ui?.root, l.class] })) }, [a("div", { class: d(E.value.container({ class: e.ui?.container })) }, [
|
|
688
|
-
O(a("input", u(t.$attrs, {
|
|
689
|
-
id: y(h),
|
|
690
|
-
"onUpdate:modelValue": c[0] ||= (e) => m.value = e,
|
|
691
|
-
type: e.type,
|
|
692
|
-
disabled: e.disabled,
|
|
693
|
-
"aria-describedby": y(C),
|
|
694
|
-
"aria-invalid": y(S) || void 0,
|
|
695
|
-
placeholder: " ",
|
|
696
|
-
class: E.value.base({ class: e.ui?.base })
|
|
697
|
-
}), null, 16, ge), [[w, m.value]]),
|
|
698
|
-
a("label", {
|
|
699
|
-
for: y(h),
|
|
700
|
-
class: d(E.value.label({ class: e.ui?.label }))
|
|
701
|
-
}, _(e.label), 11, _e),
|
|
702
|
-
e.leadingIcon ? (p(), n(g(e.leadingIcon), {
|
|
703
|
-
key: 0,
|
|
704
|
-
class: d(E.value.leadingIcon({ class: e.ui?.leadingIcon }))
|
|
705
|
-
}, null, 8, ["class"])) : r("", !0),
|
|
706
|
-
T.value === "action" ? (p(), n(g(k.value), u({ key: 1 }, ee.value, {
|
|
707
|
-
class: E.value.trailingAction({ class: e.ui?.trailingAction }),
|
|
708
|
-
onClick: j
|
|
709
|
-
}), {
|
|
710
|
-
default: D(() => [o(_(e.trailingActionLabel), 1)]),
|
|
711
|
-
_: 1
|
|
712
|
-
}, 16, ["class"])) : T.value === "iconButton" ? (p(), i("button", {
|
|
713
|
-
key: 2,
|
|
714
|
-
type: "button",
|
|
715
|
-
"aria-label": e.trailingIconLabel,
|
|
716
|
-
disabled: e.disabled,
|
|
717
|
-
class: d(E.value.trailingIconButton({ class: e.ui?.trailingIconButton })),
|
|
718
|
-
onClick: c[1] ||= (e) => f("trailingIconClick", e)
|
|
719
|
-
}, [(p(), n(g(e.trailingIcon), { class: d(E.value.trailingIcon({ class: e.ui?.trailingIcon })) }, null, 8, ["class"]))], 10, ve)) : T.value === "icon" ? (p(), n(g(e.trailingIcon), {
|
|
720
|
-
key: 3,
|
|
721
|
-
class: d(E.value.trailingIcon({ class: e.ui?.trailingIcon }))
|
|
722
|
-
}, null, 8, ["class"])) : r("", !0)
|
|
723
|
-
], 2), e.errorMessage ? (p(), i("p", {
|
|
724
|
-
key: 0,
|
|
725
|
-
id: y(b),
|
|
726
|
-
class: d(E.value.errorMessage({ class: e.ui?.errorMessage }))
|
|
727
|
-
}, [s(y(A), { class: d(E.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), o(" " + _(e.errorMessage), 1)], 10, ye)) : e.hint ? (p(), i("p", {
|
|
728
|
-
key: 1,
|
|
729
|
-
id: y(v),
|
|
730
|
-
class: d(E.value.hint({ class: e.ui?.hint }))
|
|
731
|
-
}, _(e.hint), 11, be)) : r("", !0)], 2));
|
|
732
|
-
}
|
|
733
|
-
}), U = {
|
|
734
|
-
md: {
|
|
735
|
-
fontSize: "text-sm",
|
|
736
|
-
verticalPadding: "py-1.25",
|
|
737
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-sm peer-focus:text-[11px]",
|
|
738
|
-
labelRestingTop: "peer-placeholder-shown:top-4",
|
|
739
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+12px)] max-h-[calc(var(--textarea-max-rows)*1lh+12px)]",
|
|
740
|
-
pillShape: {
|
|
741
|
-
corners: "rounded-2xl",
|
|
742
|
-
horizontalPadding: "px-4",
|
|
743
|
-
labelOffset: "left-3"
|
|
744
|
-
},
|
|
745
|
-
roundedShape: {
|
|
746
|
-
corners: "rounded-lg",
|
|
747
|
-
horizontalPadding: "px-3",
|
|
748
|
-
labelOffset: "left-2"
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
lg: {
|
|
752
|
-
fontSize: "text-sm",
|
|
753
|
-
verticalPadding: "py-1.75",
|
|
754
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-sm peer-focus:text-[11px]",
|
|
755
|
-
labelRestingTop: "peer-placeholder-shown:top-4.5",
|
|
756
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+16px)] max-h-[calc(var(--textarea-max-rows)*1lh+16px)]",
|
|
757
|
-
pillShape: {
|
|
758
|
-
corners: "rounded-[18px]",
|
|
759
|
-
horizontalPadding: "px-4",
|
|
760
|
-
labelOffset: "left-3"
|
|
761
|
-
},
|
|
762
|
-
roundedShape: {
|
|
763
|
-
corners: "rounded-lg",
|
|
764
|
-
horizontalPadding: "px-3",
|
|
765
|
-
labelOffset: "left-2"
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
xl: {
|
|
769
|
-
fontSize: "text-base",
|
|
770
|
-
verticalPadding: "py-1.75",
|
|
771
|
-
labelFontSize: "text-[11px] peer-placeholder-shown:text-base peer-focus:text-[11px]",
|
|
772
|
-
labelRestingTop: "peer-placeholder-shown:top-5",
|
|
773
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+16px)] max-h-[calc(var(--textarea-max-rows)*1lh+16px)]",
|
|
774
|
-
pillShape: {
|
|
775
|
-
corners: "rounded-[20px]",
|
|
776
|
-
horizontalPadding: "px-4.75",
|
|
777
|
-
labelOffset: "left-3.75"
|
|
778
|
-
},
|
|
779
|
-
roundedShape: {
|
|
780
|
-
corners: "rounded-[10px]",
|
|
781
|
-
horizontalPadding: "px-3.5",
|
|
782
|
-
labelOffset: "left-2.5"
|
|
783
|
-
}
|
|
784
|
-
},
|
|
785
|
-
"2xl": {
|
|
786
|
-
fontSize: "text-base",
|
|
787
|
-
verticalPadding: "py-2.25",
|
|
788
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
789
|
-
labelRestingTop: "peer-placeholder-shown:top-5.5",
|
|
790
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+20px)] max-h-[calc(var(--textarea-max-rows)*1lh+20px)]",
|
|
791
|
-
pillShape: {
|
|
792
|
-
corners: "rounded-[22px]",
|
|
793
|
-
horizontalPadding: "px-5.25",
|
|
794
|
-
labelOffset: "left-4.25"
|
|
795
|
-
},
|
|
796
|
-
roundedShape: {
|
|
797
|
-
corners: "rounded-xl",
|
|
798
|
-
horizontalPadding: "px-4",
|
|
799
|
-
labelOffset: "left-3"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
"3xl": {
|
|
803
|
-
fontSize: "text-base",
|
|
804
|
-
verticalPadding: "py-2.75",
|
|
805
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
806
|
-
labelRestingTop: "peer-placeholder-shown:top-6",
|
|
807
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+24px)] max-h-[calc(var(--textarea-max-rows)*1lh+24px)]",
|
|
808
|
-
pillShape: {
|
|
809
|
-
corners: "rounded-3xl",
|
|
810
|
-
horizontalPadding: "px-5.25",
|
|
811
|
-
labelOffset: "left-4.25"
|
|
812
|
-
},
|
|
813
|
-
roundedShape: {
|
|
814
|
-
corners: "rounded-xl",
|
|
815
|
-
horizontalPadding: "px-4",
|
|
816
|
-
labelOffset: "left-3"
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
"4xl": {
|
|
820
|
-
fontSize: "text-base",
|
|
821
|
-
verticalPadding: "py-3.75",
|
|
822
|
-
labelFontSize: "text-xs peer-placeholder-shown:text-base peer-focus:text-xs",
|
|
823
|
-
labelRestingTop: "peer-placeholder-shown:top-7",
|
|
824
|
-
autoResizeHeights: "min-h-[calc(var(--textarea-min-rows)*1lh+32px)] max-h-[calc(var(--textarea-max-rows)*1lh+32px)]",
|
|
825
|
-
pillShape: {
|
|
826
|
-
corners: "rounded-[28px]",
|
|
827
|
-
horizontalPadding: "px-6",
|
|
828
|
-
labelOffset: "left-5"
|
|
829
|
-
},
|
|
830
|
-
roundedShape: {
|
|
831
|
-
corners: "rounded-2xl",
|
|
832
|
-
horizontalPadding: "px-4.5",
|
|
833
|
-
labelOffset: "left-3.5"
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}, W = Object.keys(U);
|
|
837
|
-
function xe(e) {
|
|
838
|
-
return {
|
|
839
|
-
base: [e.fontSize, e.verticalPadding],
|
|
840
|
-
label: [e.labelFontSize, e.labelRestingTop]
|
|
841
|
-
};
|
|
842
|
-
}
|
|
843
|
-
function Se(e) {
|
|
844
|
-
let t = U[e];
|
|
845
|
-
return [
|
|
846
|
-
{
|
|
847
|
-
size: e,
|
|
848
|
-
pill: !0,
|
|
849
|
-
class: {
|
|
850
|
-
base: [t.pillShape.corners, t.pillShape.horizontalPadding],
|
|
851
|
-
label: t.pillShape.labelOffset
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
size: e,
|
|
856
|
-
pill: !1,
|
|
857
|
-
class: {
|
|
858
|
-
base: [t.roundedShape.corners, t.roundedShape.horizontalPadding],
|
|
859
|
-
label: t.roundedShape.labelOffset
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
size: e,
|
|
864
|
-
autoResize: !0,
|
|
865
|
-
class: { base: t.autoResizeHeights }
|
|
866
|
-
}
|
|
867
|
-
];
|
|
868
|
-
}
|
|
869
|
-
var Ce = Object.fromEntries(W.map((e) => [e, xe(U[e])])), we = W.flatMap(Se), Te = k({
|
|
870
|
-
slots: {
|
|
871
|
-
root: "",
|
|
872
|
-
container: "relative",
|
|
873
|
-
base: "peer block w-full resize-none border bg-field outline-hidden transition-colors",
|
|
874
|
-
label: "pointer-events-none absolute top-0 -translate-y-1/2 bg-linear-to-b from-canvas from-50% to-field to-50% px-1 transition-colors peer-placeholder-shown:bg-none peer-placeholder-shown:transition-all peer-focus:top-0 peer-focus:bg-linear-to-b peer-focus:transition-all",
|
|
875
|
-
footer: "mt-2 flex items-start gap-x-4 text-xs",
|
|
876
|
-
hint: "text-muted",
|
|
877
|
-
errorMessage: "flex items-start gap-x-1.5 light:text-red-600 dark:text-red-400",
|
|
878
|
-
errorIcon: "mt-px size-3.5 shrink-0",
|
|
879
|
-
characterCount: "ml-auto shrink-0 text-muted tabular-nums"
|
|
880
|
-
},
|
|
881
|
-
variants: {
|
|
882
|
-
variant: {
|
|
883
|
-
outline: "",
|
|
884
|
-
soft: ""
|
|
885
|
-
},
|
|
886
|
-
size: Ce,
|
|
887
|
-
pill: { true: "" },
|
|
888
|
-
autoResize: { true: { base: "field-sizing-content" } },
|
|
889
|
-
invalid: { true: {
|
|
890
|
-
base: "light:border-red-600 dark:border-red-500 light:selection:bg-red-500/16 dark:selection:bg-red-400/16",
|
|
891
|
-
label: "light:text-red-600 dark:text-red-400"
|
|
892
|
-
} },
|
|
893
|
-
disabled: { true: { container: "opacity-50" } }
|
|
894
|
-
},
|
|
895
|
-
compoundVariants: [
|
|
896
|
-
...we,
|
|
897
|
-
{
|
|
898
|
-
invalid: !1,
|
|
899
|
-
disabled: !1,
|
|
900
|
-
variant: "outline",
|
|
901
|
-
class: {
|
|
902
|
-
base: "border-line light:not-focus:hover:border-stone-950/20 dark:not-focus:hover:border-white/20 focus:border-primary",
|
|
903
|
-
label: "text-muted peer-focus:text-primary"
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
invalid: !1,
|
|
908
|
-
disabled: !1,
|
|
909
|
-
variant: "soft",
|
|
910
|
-
class: {
|
|
911
|
-
base: "border-transparent focus:border-primary",
|
|
912
|
-
label: "text-muted peer-focus:text-primary"
|
|
913
|
-
}
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
invalid: !1,
|
|
917
|
-
disabled: !0,
|
|
918
|
-
variant: "outline",
|
|
919
|
-
class: {
|
|
920
|
-
base: "cursor-not-allowed border-line",
|
|
921
|
-
label: "text-muted"
|
|
922
|
-
}
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
invalid: !1,
|
|
926
|
-
disabled: !0,
|
|
927
|
-
variant: "soft",
|
|
928
|
-
class: {
|
|
929
|
-
base: "cursor-not-allowed border-transparent",
|
|
930
|
-
label: "text-muted"
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
]
|
|
934
|
-
}), Ee = [
|
|
935
|
-
"id",
|
|
936
|
-
"rows",
|
|
937
|
-
"maxlength",
|
|
938
|
-
"disabled",
|
|
939
|
-
"aria-describedby",
|
|
940
|
-
"aria-invalid"
|
|
941
|
-
], De = ["for"], Oe = ["id"], ke = ["id"], G = /* @__PURE__ */ c({
|
|
942
|
-
inheritAttrs: !1,
|
|
943
|
-
__name: "Textarea",
|
|
944
|
-
props: /*@__PURE__*/ l({
|
|
945
|
-
label: {},
|
|
946
|
-
id: {},
|
|
947
|
-
rows: { default: 3 },
|
|
948
|
-
autoResize: { type: Boolean },
|
|
949
|
-
maxRows: { default: 10 },
|
|
950
|
-
maxlength: {},
|
|
951
|
-
variant: { default: "outline" },
|
|
952
|
-
size: { default: "4xl" },
|
|
953
|
-
pill: {
|
|
954
|
-
type: Boolean,
|
|
955
|
-
default: !0
|
|
956
|
-
},
|
|
957
|
-
hint: {},
|
|
958
|
-
errorMessage: {},
|
|
959
|
-
invalid: { type: Boolean },
|
|
960
|
-
disabled: { type: Boolean },
|
|
961
|
-
ui: {},
|
|
962
|
-
class: { type: [
|
|
963
|
-
Array,
|
|
964
|
-
String,
|
|
965
|
-
null,
|
|
966
|
-
Number,
|
|
967
|
-
Boolean
|
|
968
|
-
] }
|
|
969
|
-
}, {
|
|
970
|
-
modelValue: {},
|
|
971
|
-
modelModifiers: {}
|
|
972
|
-
}),
|
|
973
|
-
emits: ["update:modelValue"],
|
|
974
|
-
setup(e) {
|
|
975
|
-
let n = e, c = x(e, "modelValue"), { fieldId: l, hintId: f, errorMessageId: m, isInvalid: h, describingElementId: g } = z(n), v = t(() => Te({
|
|
976
|
-
variant: n.variant,
|
|
977
|
-
size: n.size,
|
|
978
|
-
pill: n.pill,
|
|
979
|
-
autoResize: n.autoResize,
|
|
980
|
-
invalid: h.value,
|
|
981
|
-
disabled: n.disabled
|
|
982
|
-
})), b = t(() => n.autoResize ? {
|
|
983
|
-
"--textarea-min-rows": n.rows,
|
|
984
|
-
"--textarea-max-rows": n.maxRows
|
|
985
|
-
} : void 0), S = t(() => c.value?.length ?? 0), C = t(() => !!(n.errorMessage || n.hint || n.maxlength));
|
|
986
|
-
return (t, x) => (p(), i("div", { class: d(v.value.root({ class: [e.ui?.root, n.class] })) }, [a("div", { class: d(v.value.container({ class: e.ui?.container })) }, [O(a("textarea", u(t.$attrs, {
|
|
987
|
-
id: y(l),
|
|
988
|
-
"onUpdate:modelValue": x[0] ||= (e) => c.value = e,
|
|
989
|
-
rows: e.rows,
|
|
990
|
-
maxlength: e.maxlength,
|
|
991
|
-
disabled: e.disabled,
|
|
992
|
-
"aria-describedby": y(g),
|
|
993
|
-
"aria-invalid": y(h) || void 0,
|
|
994
|
-
style: b.value,
|
|
995
|
-
placeholder: " ",
|
|
996
|
-
class: v.value.base({ class: e.ui?.base })
|
|
997
|
-
}), null, 16, Ee), [[E, c.value]]), a("label", {
|
|
998
|
-
for: y(l),
|
|
999
|
-
class: d(v.value.label({ class: e.ui?.label }))
|
|
1000
|
-
}, _(e.label), 11, De)], 2), C.value ? (p(), i("div", {
|
|
1001
|
-
key: 0,
|
|
1002
|
-
class: d(v.value.footer({ class: e.ui?.footer }))
|
|
1003
|
-
}, [e.errorMessage ? (p(), i("p", {
|
|
1004
|
-
key: 0,
|
|
1005
|
-
id: y(m),
|
|
1006
|
-
class: d(v.value.errorMessage({ class: e.ui?.errorMessage }))
|
|
1007
|
-
}, [s(y(A), { class: d(v.value.errorIcon({ class: e.ui?.errorIcon })) }, null, 8, ["class"]), o(" " + _(e.errorMessage), 1)], 10, Oe)) : e.hint ? (p(), i("p", {
|
|
1008
|
-
key: 1,
|
|
1009
|
-
id: y(f),
|
|
1010
|
-
class: d(v.value.hint({ class: e.ui?.hint }))
|
|
1011
|
-
}, _(e.hint), 11, ke)) : r("", !0), e.maxlength ? (p(), i("p", {
|
|
1012
|
-
key: 2,
|
|
1013
|
-
class: d(v.value.characterCount({ class: e.ui?.characterCount }))
|
|
1014
|
-
}, _(S.value) + "/" + _(e.maxlength), 3)) : r("", !0)], 2)) : r("", !0)], 2));
|
|
1015
|
-
}
|
|
1016
|
-
}), K = {
|
|
1017
|
-
outline: {
|
|
1018
|
-
primary: "inset-ring inset-ring-line",
|
|
1019
|
-
success: "inset-ring light:inset-ring-green-600 light:text-green-700 dark:inset-ring-green-500 dark:text-green-400",
|
|
1020
|
-
warning: "inset-ring light:inset-ring-orange-600 light:text-orange-700 dark:inset-ring-orange-500 dark:text-orange-400",
|
|
1021
|
-
caution: "inset-ring light:inset-ring-yellow-600 light:text-yellow-700 dark:inset-ring-yellow-500 dark:text-yellow-400",
|
|
1022
|
-
danger: "inset-ring light:inset-ring-red-600 light:text-red-600 dark:inset-ring-red-500 dark:text-red-400",
|
|
1023
|
-
info: "inset-ring light:inset-ring-blue-600 light:text-blue-600 dark:inset-ring-blue-400 dark:text-blue-300",
|
|
1024
|
-
discovery: "inset-ring light:inset-ring-purple-600 light:text-purple-600 dark:inset-ring-purple-400 dark:text-purple-300"
|
|
1025
|
-
},
|
|
1026
|
-
soft: {
|
|
1027
|
-
primary: "inset-ring light:bg-stone-950/4 light:inset-ring-stone-950/6 dark:bg-white/6 dark:inset-ring-white/8",
|
|
1028
|
-
success: "inset-ring light:bg-green-500/6 light:inset-ring-green-500/16 light:text-green-700 dark:bg-green-400/10 dark:inset-ring-green-400/20 dark:text-green-400",
|
|
1029
|
-
warning: "inset-ring light:bg-orange-500/6 light:inset-ring-orange-500/16 light:text-orange-700 dark:bg-orange-400/10 dark:inset-ring-orange-400/20 dark:text-orange-400",
|
|
1030
|
-
caution: "inset-ring light:bg-yellow-500/8 light:inset-ring-yellow-500/20 light:text-yellow-800 dark:bg-yellow-400/10 dark:inset-ring-yellow-400/20 dark:text-yellow-400",
|
|
1031
|
-
danger: "inset-ring light:bg-red-500/6 light:inset-ring-red-500/16 light:text-red-600 dark:bg-red-400/10 dark:inset-ring-red-400/20 dark:text-red-400",
|
|
1032
|
-
info: "inset-ring light:bg-blue-500/6 light:inset-ring-blue-500/16 light:text-blue-600 dark:bg-blue-400/10 dark:inset-ring-blue-400/20 dark:text-blue-300",
|
|
1033
|
-
discovery: "inset-ring light:bg-purple-500/6 light:inset-ring-purple-500/16 light:text-purple-600 dark:bg-purple-400/10 dark:inset-ring-purple-400/20 dark:text-purple-300"
|
|
1034
|
-
},
|
|
1035
|
-
solid: {
|
|
1036
|
-
primary: "light:bg-neutral-900 light:text-white dark:bg-stone-200 dark:text-stone-950",
|
|
1037
|
-
success: "light:bg-green-600 light:text-white dark:bg-green-600 dark:text-white",
|
|
1038
|
-
warning: "light:bg-orange-600 light:text-white dark:bg-orange-600 dark:text-white",
|
|
1039
|
-
caution: "light:bg-yellow-700 light:text-white dark:bg-yellow-700 dark:text-white",
|
|
1040
|
-
danger: "light:bg-red-600 light:text-white dark:bg-red-600 dark:text-white",
|
|
1041
|
-
info: "light:bg-blue-600 light:text-white dark:bg-blue-500 dark:text-white",
|
|
1042
|
-
discovery: "light:bg-purple-600 light:text-white dark:bg-purple-500 dark:text-white"
|
|
1043
|
-
}
|
|
1044
|
-
}, Ae = Object.keys(K), je = Object.keys(K.outline), Me = Ae.flatMap((e) => je.map((t) => ({
|
|
1045
|
-
variant: e,
|
|
1046
|
-
color: t,
|
|
1047
|
-
class: { root: K[e][t] }
|
|
1048
|
-
}))), Ne = k({
|
|
1049
|
-
slots: {
|
|
1050
|
-
root: "@container w-full rounded-xl p-4 text-sm leading-5",
|
|
1051
|
-
body: "flex gap-3",
|
|
1052
|
-
icon: "size-5 shrink-0",
|
|
1053
|
-
content: "min-w-0 flex-1",
|
|
1054
|
-
wrapper: "min-w-0 flex-1",
|
|
1055
|
-
title: "font-semibold text-pretty",
|
|
1056
|
-
description: "text-pretty",
|
|
1057
|
-
actions: "flex shrink-0 gap-2"
|
|
1058
|
-
},
|
|
1059
|
-
variants: {
|
|
1060
|
-
variant: {
|
|
1061
|
-
outline: "",
|
|
1062
|
-
soft: "",
|
|
1063
|
-
solid: ""
|
|
1064
|
-
},
|
|
1065
|
-
color: {
|
|
1066
|
-
primary: "",
|
|
1067
|
-
success: "",
|
|
1068
|
-
warning: "",
|
|
1069
|
-
caution: "",
|
|
1070
|
-
danger: "",
|
|
1071
|
-
info: "",
|
|
1072
|
-
discovery: ""
|
|
1073
|
-
},
|
|
1074
|
-
actionsPlacement: {
|
|
1075
|
-
end: "",
|
|
1076
|
-
bottom: ""
|
|
1077
|
-
},
|
|
1078
|
-
hasActions: {
|
|
1079
|
-
true: "",
|
|
1080
|
-
false: { body: "items-center" }
|
|
1081
|
-
},
|
|
1082
|
-
hasTitle: { true: { description: "mt-0.5" } }
|
|
1083
|
-
},
|
|
1084
|
-
compoundVariants: [
|
|
1085
|
-
...Me,
|
|
1086
|
-
{
|
|
1087
|
-
hasActions: !0,
|
|
1088
|
-
actionsPlacement: "end",
|
|
1089
|
-
class: {
|
|
1090
|
-
body: "items-start @md:items-center",
|
|
1091
|
-
content: "@md:flex @md:items-center @md:justify-between",
|
|
1092
|
-
actions: "mt-4 @md:mt-0 @md:ml-4"
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
hasActions: !0,
|
|
1097
|
-
actionsPlacement: "bottom",
|
|
1098
|
-
class: {
|
|
1099
|
-
body: "items-start",
|
|
1100
|
-
actions: "mt-4"
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
]
|
|
1104
|
-
}), Pe = ["role"], q = /* @__PURE__ */ c({
|
|
1105
|
-
__name: "Alert",
|
|
1106
|
-
props: {
|
|
1107
|
-
title: {},
|
|
1108
|
-
description: {},
|
|
1109
|
-
variant: { default: "outline" },
|
|
1110
|
-
color: { default: "primary" },
|
|
1111
|
-
icon: {},
|
|
1112
|
-
showIcon: {
|
|
1113
|
-
type: Boolean,
|
|
1114
|
-
default: !0
|
|
1115
|
-
},
|
|
1116
|
-
actionsPlacement: { default: "end" },
|
|
1117
|
-
ui: {},
|
|
1118
|
-
class: { type: [
|
|
1119
|
-
Array,
|
|
1120
|
-
String,
|
|
1121
|
-
null,
|
|
1122
|
-
Number,
|
|
1123
|
-
Boolean
|
|
1124
|
-
] }
|
|
1125
|
-
},
|
|
1126
|
-
setup(e) {
|
|
1127
|
-
let s = e, c = S(), l = {
|
|
1128
|
-
warning: M,
|
|
1129
|
-
caution: M,
|
|
1130
|
-
danger: M,
|
|
1131
|
-
success: ee
|
|
1132
|
-
}, u = t(() => s.icon ?? l[s.color] ?? j), f = t(() => !!(s.title || c.title)), m = t(() => !!(s.description || c.description)), v = t(() => !!c.actions), y = t(() => Ne({
|
|
1133
|
-
variant: s.variant,
|
|
1134
|
-
color: s.color,
|
|
1135
|
-
actionsPlacement: s.actionsPlacement,
|
|
1136
|
-
hasActions: v.value,
|
|
1137
|
-
hasTitle: f.value
|
|
1138
|
-
}));
|
|
1139
|
-
return (t, c) => (p(), i("div", {
|
|
1140
|
-
role: e.color === "danger" ? "alert" : void 0,
|
|
1141
|
-
class: d(y.value.root({ class: [e.ui?.root, s.class] }))
|
|
1142
|
-
}, [a("div", { class: d(y.value.body({ class: e.ui?.body })) }, [e.showIcon ? (p(), n(g(u.value), {
|
|
1143
|
-
key: 0,
|
|
1144
|
-
class: d(y.value.icon({ class: e.ui?.icon }))
|
|
1145
|
-
}, null, 8, ["class"])) : r("", !0), a("div", { class: d(y.value.content({ class: e.ui?.content })) }, [a("div", { class: d(y.value.wrapper({ class: e.ui?.wrapper })) }, [f.value ? (p(), i("div", {
|
|
1146
|
-
key: 0,
|
|
1147
|
-
class: d(y.value.title({ class: e.ui?.title }))
|
|
1148
|
-
}, [h(t.$slots, "title", {}, () => [o(_(e.title), 1)])], 2)) : r("", !0), m.value ? (p(), i("div", {
|
|
1149
|
-
key: 1,
|
|
1150
|
-
class: d(y.value.description({ class: e.ui?.description }))
|
|
1151
|
-
}, [h(t.$slots, "description", {}, () => [o(_(e.description), 1)])], 2)) : r("", !0)], 2), v.value ? (p(), i("div", {
|
|
1152
|
-
key: 0,
|
|
1153
|
-
class: d(y.value.actions({ class: e.ui?.actions }))
|
|
1154
|
-
}, [h(t.$slots, "actions")], 2)) : r("", !0)], 2)], 2)], 10, Pe));
|
|
1155
|
-
}
|
|
1156
|
-
}), J = {
|
|
1157
|
-
sm: {
|
|
1158
|
-
height: "h-5",
|
|
1159
|
-
fontSize: "text-xs/none tracking-wide",
|
|
1160
|
-
gutter: "px-1.25",
|
|
1161
|
-
pillGutter: "px-1.75",
|
|
1162
|
-
radius: "rounded-sm",
|
|
1163
|
-
iconSize: "size-3",
|
|
1164
|
-
dotSize: "size-1.5"
|
|
1165
|
-
},
|
|
1166
|
-
md: {
|
|
1167
|
-
height: "h-5.5",
|
|
1168
|
-
fontSize: "text-sm/none",
|
|
1169
|
-
gutter: "px-1.5",
|
|
1170
|
-
pillGutter: "px-2",
|
|
1171
|
-
radius: "rounded-sm",
|
|
1172
|
-
iconSize: "size-4",
|
|
1173
|
-
dotSize: "size-1.5"
|
|
1174
|
-
},
|
|
1175
|
-
lg: {
|
|
1176
|
-
height: "h-6",
|
|
1177
|
-
fontSize: "text-sm/none",
|
|
1178
|
-
gutter: "px-2",
|
|
1179
|
-
pillGutter: "px-2.75",
|
|
1180
|
-
radius: "rounded-md",
|
|
1181
|
-
iconSize: "size-4",
|
|
1182
|
-
dotSize: "size-2"
|
|
1183
|
-
}
|
|
1184
|
-
}, Fe = Object.keys(J), Y = {
|
|
1185
|
-
soft: {
|
|
1186
|
-
secondary: "bg-secondary/16 text-secondary",
|
|
1187
|
-
gray: "light:bg-stone-950/8 dark:bg-stone-200/12",
|
|
1188
|
-
success: "light:bg-green-500/16 light:text-green-700 dark:bg-green-400/16 dark:text-green-400",
|
|
1189
|
-
warning: "light:bg-orange-500/16 light:text-orange-700 dark:bg-orange-400/16 dark:text-orange-400",
|
|
1190
|
-
danger: "light:bg-red-500/16 light:text-red-600 dark:bg-red-400/16 dark:text-red-400",
|
|
1191
|
-
info: "light:bg-blue-500/16 light:text-blue-600 dark:bg-blue-400/16 dark:text-blue-300",
|
|
1192
|
-
discovery: "light:bg-purple-500/16 light:text-purple-600 dark:bg-purple-400/16 dark:text-purple-300"
|
|
1193
|
-
},
|
|
1194
|
-
solid: {
|
|
1195
|
-
secondary: "bg-secondary light:text-white dark:text-stone-950",
|
|
1196
|
-
gray: "light:bg-stone-600 light:text-white dark:bg-stone-600 dark:text-white",
|
|
1197
|
-
success: "light:bg-green-600 light:text-white dark:bg-green-600 dark:text-white",
|
|
1198
|
-
warning: "light:bg-orange-600 light:text-white dark:bg-orange-600 dark:text-white",
|
|
1199
|
-
danger: "light:bg-red-600 light:text-white dark:bg-red-600 dark:text-white",
|
|
1200
|
-
info: "light:bg-blue-600 light:text-white dark:bg-blue-500 dark:text-white",
|
|
1201
|
-
discovery: "light:bg-purple-600 light:text-white dark:bg-purple-500 dark:text-white"
|
|
1202
|
-
},
|
|
1203
|
-
outline: {
|
|
1204
|
-
secondary: "inset-ring inset-ring-secondary text-secondary",
|
|
1205
|
-
gray: "inset-ring text-muted light:inset-ring-stone-950/16 dark:inset-ring-stone-200/25",
|
|
1206
|
-
success: "inset-ring light:inset-ring-green-600 light:text-green-700 dark:inset-ring-green-500 dark:text-green-400",
|
|
1207
|
-
warning: "inset-ring light:inset-ring-orange-600 light:text-orange-700 dark:inset-ring-orange-500 dark:text-orange-400",
|
|
1208
|
-
danger: "inset-ring light:inset-ring-red-600 light:text-red-600 dark:inset-ring-red-500 dark:text-red-400",
|
|
1209
|
-
info: "inset-ring light:inset-ring-blue-600 light:text-blue-600 dark:inset-ring-blue-400 dark:text-blue-300",
|
|
1210
|
-
discovery: "inset-ring light:inset-ring-purple-600 light:text-purple-600 dark:inset-ring-purple-400 dark:text-purple-300"
|
|
1211
|
-
}
|
|
1212
|
-
}, Ie = Object.keys(Y), Le = Object.keys(Y.soft);
|
|
1213
|
-
function Re(e) {
|
|
1214
|
-
return {
|
|
1215
|
-
base: [e.height, e.fontSize],
|
|
1216
|
-
dot: e.dotSize,
|
|
1217
|
-
leadingIcon: e.iconSize,
|
|
1218
|
-
trailingIcon: e.iconSize
|
|
1219
|
-
};
|
|
1220
|
-
}
|
|
1221
|
-
function ze(e) {
|
|
1222
|
-
let t = J[e];
|
|
1223
|
-
return [{
|
|
1224
|
-
size: e,
|
|
1225
|
-
pill: !0,
|
|
1226
|
-
class: { base: ["rounded-full", t.pillGutter] }
|
|
1227
|
-
}, {
|
|
1228
|
-
size: e,
|
|
1229
|
-
pill: !1,
|
|
1230
|
-
class: { base: [t.radius, t.gutter] }
|
|
1231
|
-
}];
|
|
1232
|
-
}
|
|
1233
|
-
var Be = Object.fromEntries(Fe.map((e) => [e, Re(J[e])])), Ve = Fe.flatMap(ze), He = Ie.flatMap((e) => Le.map((t) => ({
|
|
1234
|
-
variant: e,
|
|
1235
|
-
color: t,
|
|
1236
|
-
class: { base: Y[e][t] }
|
|
1237
|
-
}))), Ue = k({
|
|
1238
|
-
slots: {
|
|
1239
|
-
base: "inline-flex shrink-0 items-center gap-1 font-semibold whitespace-nowrap",
|
|
1240
|
-
dot: "shrink-0 rounded-full bg-current",
|
|
1241
|
-
leadingIcon: "-ml-px shrink-0",
|
|
1242
|
-
trailingIcon: "-mr-px shrink-0"
|
|
1243
|
-
},
|
|
1244
|
-
variants: {
|
|
1245
|
-
variant: {
|
|
1246
|
-
soft: "",
|
|
1247
|
-
solid: "",
|
|
1248
|
-
outline: ""
|
|
1249
|
-
},
|
|
1250
|
-
color: {
|
|
1251
|
-
secondary: "",
|
|
1252
|
-
gray: "",
|
|
1253
|
-
success: "",
|
|
1254
|
-
warning: "",
|
|
1255
|
-
danger: "",
|
|
1256
|
-
info: "",
|
|
1257
|
-
discovery: ""
|
|
1258
|
-
},
|
|
1259
|
-
size: Be,
|
|
1260
|
-
pill: { true: "" }
|
|
1261
|
-
},
|
|
1262
|
-
compoundVariants: [...Ve, ...He]
|
|
1263
|
-
}), We = /* @__PURE__ */ c({
|
|
1264
|
-
__name: "Badge",
|
|
1265
|
-
props: {
|
|
1266
|
-
label: {},
|
|
1267
|
-
variant: { default: "soft" },
|
|
1268
|
-
color: { default: "gray" },
|
|
1269
|
-
size: { default: "sm" },
|
|
1270
|
-
leadingIcon: {},
|
|
1271
|
-
trailingIcon: {},
|
|
1272
|
-
dot: { type: Boolean },
|
|
1273
|
-
pill: { type: Boolean },
|
|
1274
|
-
ui: {},
|
|
1275
|
-
class: { type: [
|
|
1276
|
-
Array,
|
|
1277
|
-
String,
|
|
1278
|
-
null,
|
|
1279
|
-
Number,
|
|
1280
|
-
Boolean
|
|
1281
|
-
] }
|
|
1282
|
-
},
|
|
1283
|
-
setup(e) {
|
|
1284
|
-
let a = e, s = t(() => Ue({
|
|
1285
|
-
variant: a.variant,
|
|
1286
|
-
color: a.color,
|
|
1287
|
-
size: a.size,
|
|
1288
|
-
pill: a.pill
|
|
1289
|
-
}));
|
|
1290
|
-
return (t, c) => (p(), i("span", { class: d(s.value.base({ class: [e.ui?.base, a.class] })) }, [
|
|
1291
|
-
e.dot ? (p(), i("span", {
|
|
1292
|
-
key: 0,
|
|
1293
|
-
"aria-hidden": "true",
|
|
1294
|
-
class: d(s.value.dot({ class: e.ui?.dot }))
|
|
1295
|
-
}, null, 2)) : r("", !0),
|
|
1296
|
-
e.leadingIcon ? (p(), n(g(e.leadingIcon), {
|
|
1297
|
-
key: 1,
|
|
1298
|
-
class: d(s.value.leadingIcon({ class: e.ui?.leadingIcon }))
|
|
1299
|
-
}, null, 8, ["class"])) : r("", !0),
|
|
1300
|
-
h(t.$slots, "default", {}, () => [o(_(e.label), 1)]),
|
|
1301
|
-
e.trailingIcon ? (p(), n(g(e.trailingIcon), {
|
|
1302
|
-
key: 2,
|
|
1303
|
-
class: d(s.value.trailingIcon({ class: e.ui?.trailingIcon }))
|
|
1304
|
-
}, null, 8, ["class"])) : r("", !0)
|
|
1305
|
-
], 2));
|
|
1306
|
-
}
|
|
1307
|
-
}), X = {
|
|
1308
|
-
"3xs": {
|
|
1309
|
-
height: "h-5.5",
|
|
1310
|
-
width: "w-5.5",
|
|
1311
|
-
gutter: "px-1.5",
|
|
1312
|
-
pillGutter: "px-2",
|
|
1313
|
-
radius: "rounded-md",
|
|
1314
|
-
fontSize: "text-xs/none",
|
|
1315
|
-
contentGap: "gap-0.75",
|
|
1316
|
-
iconSize: "size-3.5",
|
|
1317
|
-
leadingIconOffset: "-ml-px",
|
|
1318
|
-
trailingIconOffset: "-mr-px",
|
|
1319
|
-
loadingIndicatorSize: "text-[11px]"
|
|
1320
|
-
},
|
|
1321
|
-
"2xs": {
|
|
1322
|
-
height: "h-6",
|
|
1323
|
-
width: "w-6",
|
|
1324
|
-
gutter: "px-2",
|
|
1325
|
-
pillGutter: "px-2.75",
|
|
1326
|
-
radius: "rounded-md",
|
|
1327
|
-
fontSize: "text-xs/none",
|
|
1328
|
-
contentGap: "gap-1",
|
|
1329
|
-
iconSize: "size-4",
|
|
1330
|
-
leadingIconOffset: "-ml-px",
|
|
1331
|
-
trailingIconOffset: "-mr-px",
|
|
1332
|
-
loadingIndicatorSize: "text-xs"
|
|
1333
|
-
},
|
|
1334
|
-
xs: {
|
|
1335
|
-
height: "h-6.5",
|
|
1336
|
-
width: "w-6.5",
|
|
1337
|
-
gutter: "px-2",
|
|
1338
|
-
pillGutter: "px-2.75",
|
|
1339
|
-
radius: "rounded-md",
|
|
1340
|
-
fontSize: "text-sm/none",
|
|
1341
|
-
contentGap: "gap-1",
|
|
1342
|
-
iconSize: "size-4",
|
|
1343
|
-
leadingIconOffset: "-ml-px",
|
|
1344
|
-
trailingIconOffset: "-mr-px",
|
|
1345
|
-
loadingIndicatorSize: "text-[13px]"
|
|
1346
|
-
},
|
|
1347
|
-
sm: {
|
|
1348
|
-
height: "h-7",
|
|
1349
|
-
width: "w-7",
|
|
1350
|
-
gutter: "px-2.5",
|
|
1351
|
-
pillGutter: "px-3.25",
|
|
1352
|
-
radius: "rounded-md",
|
|
1353
|
-
fontSize: "text-sm/none",
|
|
1354
|
-
contentGap: "gap-1",
|
|
1355
|
-
iconSize: "size-4.5",
|
|
1356
|
-
leadingIconOffset: "-ml-px",
|
|
1357
|
-
trailingIconOffset: "-mr-px",
|
|
1358
|
-
loadingIndicatorSize: "text-[15px]"
|
|
1359
|
-
},
|
|
1360
|
-
md: {
|
|
1361
|
-
height: "h-8",
|
|
1362
|
-
width: "w-8",
|
|
1363
|
-
gutter: "px-3",
|
|
1364
|
-
pillGutter: "px-4",
|
|
1365
|
-
radius: "rounded-lg",
|
|
1366
|
-
fontSize: "text-sm/none",
|
|
1367
|
-
contentGap: "gap-1.5",
|
|
1368
|
-
iconSize: "size-4.5",
|
|
1369
|
-
leadingIconOffset: "-ml-px",
|
|
1370
|
-
trailingIconOffset: "-mr-px",
|
|
1371
|
-
loadingIndicatorSize: "text-base"
|
|
1372
|
-
},
|
|
1373
|
-
lg: {
|
|
1374
|
-
height: "h-9",
|
|
1375
|
-
width: "w-9",
|
|
1376
|
-
gutter: "px-3",
|
|
1377
|
-
pillGutter: "px-4",
|
|
1378
|
-
radius: "rounded-lg",
|
|
1379
|
-
fontSize: "text-sm/none",
|
|
1380
|
-
contentGap: "gap-1.5",
|
|
1381
|
-
iconSize: "size-4.5",
|
|
1382
|
-
leadingIconOffset: "-ml-px",
|
|
1383
|
-
trailingIconOffset: "-mr-px",
|
|
1384
|
-
loadingIndicatorSize: "text-base"
|
|
1385
|
-
},
|
|
1386
|
-
xl: {
|
|
1387
|
-
height: "h-10",
|
|
1388
|
-
width: "w-10",
|
|
1389
|
-
gutter: "px-3.5",
|
|
1390
|
-
pillGutter: "px-4.75",
|
|
1391
|
-
radius: "rounded-[10px]",
|
|
1392
|
-
fontSize: "text-sm/none",
|
|
1393
|
-
contentGap: "gap-1.5",
|
|
1394
|
-
iconSize: "size-4.5",
|
|
1395
|
-
leadingIconOffset: "-ml-px",
|
|
1396
|
-
trailingIconOffset: "-mr-px",
|
|
1397
|
-
loadingIndicatorSize: "text-lg"
|
|
1398
|
-
},
|
|
1399
|
-
"2xl": {
|
|
1400
|
-
height: "h-11",
|
|
1401
|
-
width: "w-11",
|
|
1402
|
-
gutter: "px-3.5",
|
|
1403
|
-
pillGutter: "px-4.75",
|
|
1404
|
-
radius: "rounded-xl",
|
|
1405
|
-
fontSize: "text-base/none",
|
|
1406
|
-
contentGap: "gap-1.5",
|
|
1407
|
-
iconSize: "size-5",
|
|
1408
|
-
leadingIconOffset: "-ml-0.5",
|
|
1409
|
-
trailingIconOffset: "-mr-0.5",
|
|
1410
|
-
loadingIndicatorSize: "text-lg"
|
|
1411
|
-
},
|
|
1412
|
-
"3xl": {
|
|
1413
|
-
height: "h-12",
|
|
1414
|
-
width: "w-12",
|
|
1415
|
-
gutter: "px-4",
|
|
1416
|
-
pillGutter: "px-5.25",
|
|
1417
|
-
radius: "rounded-xl",
|
|
1418
|
-
fontSize: "text-base/none",
|
|
1419
|
-
contentGap: "gap-1.5",
|
|
1420
|
-
iconSize: "size-5",
|
|
1421
|
-
leadingIconOffset: "-ml-0.5",
|
|
1422
|
-
trailingIconOffset: "-mr-0.5",
|
|
1423
|
-
loadingIndicatorSize: "text-xl"
|
|
1424
|
-
},
|
|
1425
|
-
"4xl": {
|
|
1426
|
-
height: "h-14",
|
|
1427
|
-
width: "w-14",
|
|
1428
|
-
gutter: "px-4.5",
|
|
1429
|
-
pillGutter: "px-6",
|
|
1430
|
-
radius: "rounded-2xl",
|
|
1431
|
-
fontSize: "text-base/none",
|
|
1432
|
-
contentGap: "gap-3",
|
|
1433
|
-
iconSize: "size-6",
|
|
1434
|
-
leadingIconOffset: "-ml-0.5",
|
|
1435
|
-
trailingIconOffset: "-mr-0.5",
|
|
1436
|
-
loadingIndicatorSize: "text-2xl"
|
|
1437
|
-
}
|
|
1438
|
-
}, Ge = Object.keys(X), Ke = {
|
|
1439
|
-
surface: "light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
|
|
1440
|
-
selectedSurface: "light:before:bg-stone-950/12 dark:before:bg-stone-200/16",
|
|
1441
|
-
text: "",
|
|
1442
|
-
selectedText: "",
|
|
1443
|
-
interaction: "light:hover:before:bg-stone-950/12 dark:hover:before:bg-stone-200/16 light:active:before:bg-stone-950/16 dark:active:before:bg-stone-200/20"
|
|
1444
|
-
}, Z = {
|
|
1445
|
-
solid: {
|
|
1446
|
-
primary: {
|
|
1447
|
-
surface: "before:bg-primary",
|
|
1448
|
-
selectedSurface: "before:bg-primary before:brightness-90",
|
|
1449
|
-
text: "light:text-white dark:text-stone-950",
|
|
1450
|
-
selectedText: "light:text-white dark:text-stone-950",
|
|
1451
|
-
interaction: "hover:before:brightness-90"
|
|
1452
|
-
},
|
|
1453
|
-
secondary: {
|
|
1454
|
-
surface: "before:bg-secondary",
|
|
1455
|
-
selectedSurface: "before:bg-secondary before:brightness-90",
|
|
1456
|
-
text: "light:text-white dark:text-stone-950",
|
|
1457
|
-
selectedText: "light:text-white dark:text-stone-950",
|
|
1458
|
-
interaction: "hover:before:brightness-90"
|
|
1459
|
-
},
|
|
1460
|
-
neutral: {
|
|
1461
|
-
surface: "light:before:bg-neutral-900 dark:before:bg-stone-200",
|
|
1462
|
-
selectedSurface: "light:before:bg-neutral-800 dark:before:bg-stone-300",
|
|
1463
|
-
text: "light:text-white dark:text-stone-950",
|
|
1464
|
-
selectedText: "light:text-white dark:text-stone-950",
|
|
1465
|
-
interaction: "light:hover:before:bg-neutral-800 dark:hover:before:bg-stone-300 light:active:before:bg-neutral-700"
|
|
1466
|
-
},
|
|
1467
|
-
gray: {
|
|
1468
|
-
surface: "light:before:bg-stone-600 dark:before:bg-stone-700",
|
|
1469
|
-
selectedSurface: "light:before:bg-stone-700 dark:before:bg-stone-600",
|
|
1470
|
-
text: "light:text-white dark:text-white",
|
|
1471
|
-
selectedText: "light:text-white dark:text-white",
|
|
1472
|
-
interaction: "light:hover:before:bg-stone-700 dark:hover:before:bg-stone-600 light:active:before:bg-stone-800"
|
|
1473
|
-
},
|
|
1474
|
-
danger: {
|
|
1475
|
-
surface: "light:before:bg-red-600 dark:before:bg-red-600",
|
|
1476
|
-
selectedSurface: "light:before:bg-red-700 dark:before:bg-red-700",
|
|
1477
|
-
text: "light:text-white dark:text-white",
|
|
1478
|
-
selectedText: "light:text-white dark:text-white",
|
|
1479
|
-
interaction: "light:hover:before:bg-red-700 dark:hover:before:bg-red-700"
|
|
1480
|
-
}
|
|
1481
|
-
},
|
|
1482
|
-
soft: {
|
|
1483
|
-
primary: {
|
|
1484
|
-
surface: "before:bg-primary/16",
|
|
1485
|
-
selectedSurface: "before:bg-primary/30",
|
|
1486
|
-
text: "text-primary",
|
|
1487
|
-
selectedText: "text-primary",
|
|
1488
|
-
interaction: "hover:before:bg-primary/30"
|
|
1489
|
-
},
|
|
1490
|
-
secondary: {
|
|
1491
|
-
surface: "before:bg-secondary/16",
|
|
1492
|
-
selectedSurface: "before:bg-secondary/30",
|
|
1493
|
-
text: "text-secondary",
|
|
1494
|
-
selectedText: "text-secondary",
|
|
1495
|
-
interaction: "hover:before:bg-secondary/30"
|
|
1496
|
-
},
|
|
1497
|
-
neutral: Ke,
|
|
1498
|
-
gray: Ke,
|
|
1499
|
-
danger: {
|
|
1500
|
-
surface: "light:before:bg-red-500/16 dark:before:bg-red-400/16",
|
|
1501
|
-
selectedSurface: "light:before:bg-red-500/30 dark:before:bg-red-400/30",
|
|
1502
|
-
text: "light:text-red-600 dark:text-red-400",
|
|
1503
|
-
selectedText: "light:text-red-600 dark:text-red-400",
|
|
1504
|
-
interaction: "light:hover:before:bg-red-500/30 dark:hover:before:bg-red-400/30"
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
outline: {
|
|
1508
|
-
primary: {
|
|
1509
|
-
surface: "before:border before:border-primary",
|
|
1510
|
-
selectedSurface: "before:border before:border-primary before:bg-primary/8",
|
|
1511
|
-
text: "text-primary",
|
|
1512
|
-
selectedText: "text-primary",
|
|
1513
|
-
interaction: "hover:before:bg-primary/8"
|
|
1514
|
-
},
|
|
1515
|
-
secondary: {
|
|
1516
|
-
surface: "before:border before:border-secondary",
|
|
1517
|
-
selectedSurface: "before:border before:border-secondary before:bg-secondary/8",
|
|
1518
|
-
text: "text-secondary",
|
|
1519
|
-
selectedText: "text-secondary",
|
|
1520
|
-
interaction: "hover:before:bg-secondary/8"
|
|
1521
|
-
},
|
|
1522
|
-
neutral: {
|
|
1523
|
-
surface: "before:border light:before:border-stone-950/16 dark:before:border-stone-200/25",
|
|
1524
|
-
selectedSurface: "before:border light:before:border-stone-950/20 dark:before:border-stone-200/30 light:before:bg-stone-950/2 dark:before:bg-stone-200/4",
|
|
1525
|
-
text: "",
|
|
1526
|
-
selectedText: "",
|
|
1527
|
-
interaction: "light:hover:before:border-stone-950/20 dark:hover:before:border-stone-200/30 light:hover:before:bg-stone-950/2 dark:hover:before:bg-stone-200/4 light:active:before:bg-stone-950/4 dark:active:before:bg-stone-200/6"
|
|
1528
|
-
},
|
|
1529
|
-
gray: {
|
|
1530
|
-
surface: "before:border light:before:border-stone-950/16 dark:before:border-stone-200/25",
|
|
1531
|
-
selectedSurface: "before:border light:before:border-stone-950/20 dark:before:border-stone-200/30 light:before:bg-stone-950/2 dark:before:bg-stone-200/4",
|
|
1532
|
-
text: "text-muted",
|
|
1533
|
-
selectedText: "",
|
|
1534
|
-
interaction: "hover:text-inherit light:hover:before:border-stone-950/20 dark:hover:before:border-stone-200/30 light:hover:before:bg-stone-950/2 dark:hover:before:bg-stone-200/4 light:active:before:bg-stone-950/4 dark:active:before:bg-stone-200/6"
|
|
1535
|
-
},
|
|
1536
|
-
danger: {
|
|
1537
|
-
surface: "before:border light:before:border-red-600 dark:before:border-red-400",
|
|
1538
|
-
selectedSurface: "before:border light:before:border-red-600 dark:before:border-red-400 light:before:bg-red-500/8 dark:before:bg-red-400/8",
|
|
1539
|
-
text: "light:text-red-600 dark:text-red-400",
|
|
1540
|
-
selectedText: "light:text-red-600 dark:text-red-400",
|
|
1541
|
-
interaction: "light:hover:before:bg-red-500/8 dark:hover:before:bg-red-400/8"
|
|
1542
|
-
}
|
|
1543
|
-
},
|
|
1544
|
-
ghost: {
|
|
1545
|
-
primary: {
|
|
1546
|
-
surface: "before:scale-96 before:opacity-0 before:bg-primary/16",
|
|
1547
|
-
selectedSurface: "before:bg-primary/16",
|
|
1548
|
-
text: "text-primary",
|
|
1549
|
-
selectedText: "text-primary",
|
|
1550
|
-
interaction: "hover:before:scale-100 hover:before:opacity-100"
|
|
1551
|
-
},
|
|
1552
|
-
secondary: {
|
|
1553
|
-
surface: "before:scale-96 before:opacity-0 before:bg-secondary/16",
|
|
1554
|
-
selectedSurface: "before:bg-secondary/16",
|
|
1555
|
-
text: "text-secondary",
|
|
1556
|
-
selectedText: "text-secondary",
|
|
1557
|
-
interaction: "hover:before:scale-100 hover:before:opacity-100"
|
|
1558
|
-
},
|
|
1559
|
-
neutral: {
|
|
1560
|
-
surface: "before:scale-96 before:opacity-0 light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
|
|
1561
|
-
selectedSurface: "light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
|
|
1562
|
-
text: "",
|
|
1563
|
-
selectedText: "",
|
|
1564
|
-
interaction: "hover:before:scale-100 hover:before:opacity-100 light:active:before:bg-stone-950/12 dark:active:before:bg-stone-200/16"
|
|
1565
|
-
},
|
|
1566
|
-
gray: {
|
|
1567
|
-
surface: "before:scale-96 before:opacity-0 light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
|
|
1568
|
-
selectedSurface: "light:before:bg-stone-950/8 dark:before:bg-stone-200/12",
|
|
1569
|
-
text: "text-muted",
|
|
1570
|
-
selectedText: "",
|
|
1571
|
-
interaction: "hover:text-inherit hover:before:scale-100 hover:before:opacity-100 light:active:before:bg-stone-950/12 dark:active:before:bg-stone-200/16"
|
|
1572
|
-
},
|
|
1573
|
-
danger: {
|
|
1574
|
-
surface: "before:scale-96 before:opacity-0 light:before:bg-red-500/16 dark:before:bg-red-400/16",
|
|
1575
|
-
selectedSurface: "light:before:bg-red-500/16 dark:before:bg-red-400/16",
|
|
1576
|
-
text: "light:text-red-600 dark:text-red-400",
|
|
1577
|
-
selectedText: "light:text-red-600 dark:text-red-400",
|
|
1578
|
-
interaction: "hover:before:scale-100 hover:before:opacity-100"
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
}, qe = Object.keys(Z), Je = Object.keys(Z.solid);
|
|
1582
|
-
function Ye(e) {
|
|
1583
|
-
return {
|
|
1584
|
-
base: [e.height, e.fontSize],
|
|
1585
|
-
content: e.contentGap,
|
|
1586
|
-
leadingIcon: e.iconSize,
|
|
1587
|
-
trailingIcon: e.iconSize,
|
|
1588
|
-
loadingIndicator: e.loadingIndicatorSize
|
|
1589
|
-
};
|
|
1590
|
-
}
|
|
1591
|
-
function Xe(e) {
|
|
1592
|
-
let t = X[e];
|
|
1593
|
-
return [
|
|
1594
|
-
{
|
|
1595
|
-
size: e,
|
|
1596
|
-
square: !1,
|
|
1597
|
-
pill: !0,
|
|
1598
|
-
class: { base: ["rounded-full", t.pillGutter] }
|
|
1599
|
-
},
|
|
1600
|
-
{
|
|
1601
|
-
size: e,
|
|
1602
|
-
square: !1,
|
|
1603
|
-
pill: !1,
|
|
1604
|
-
class: { base: [t.radius, t.gutter] }
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
size: e,
|
|
1608
|
-
square: !0,
|
|
1609
|
-
class: { base: t.width }
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
size: e,
|
|
1613
|
-
square: !0,
|
|
1614
|
-
pill: !1,
|
|
1615
|
-
class: { base: t.radius }
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
size: e,
|
|
1619
|
-
square: !1,
|
|
1620
|
-
class: {
|
|
1621
|
-
leadingIcon: t.leadingIconOffset,
|
|
1622
|
-
trailingIcon: t.trailingIconOffset
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
];
|
|
1626
|
-
}
|
|
1627
|
-
function Ze(e, t) {
|
|
1628
|
-
let n = Z[e][t];
|
|
1629
|
-
return [
|
|
1630
|
-
{
|
|
1631
|
-
variant: e,
|
|
1632
|
-
color: t,
|
|
1633
|
-
disabled: !1,
|
|
1634
|
-
selected: !1,
|
|
1635
|
-
class: { base: [n.surface, n.text] }
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
variant: e,
|
|
1639
|
-
color: t,
|
|
1640
|
-
disabled: !1,
|
|
1641
|
-
selected: !0,
|
|
1642
|
-
class: { base: [n.selectedSurface, n.selectedText] }
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
variant: e,
|
|
1646
|
-
color: t,
|
|
1647
|
-
disabled: !1,
|
|
1648
|
-
loading: !1,
|
|
1649
|
-
class: { base: n.interaction }
|
|
1650
|
-
}
|
|
1651
|
-
];
|
|
1652
|
-
}
|
|
1653
|
-
var Qe = Object.fromEntries(Ge.map((e) => [e, Ye(X[e])])), $e = Ge.flatMap(Xe), et = qe.flatMap((e) => Je.flatMap((t) => Ze(e, t))), tt = k({
|
|
1654
|
-
slots: {
|
|
1655
|
-
base: "relative inline-flex shrink-0 cursor-pointer items-center justify-center font-medium whitespace-nowrap outline-primary transition-colors duration-150 select-none before:absolute before:inset-0 before:rounded-[inherit] before:transition before:duration-150 focus-visible:outline-2",
|
|
1656
|
-
loadingOverlay: "absolute inset-0 flex items-center justify-center",
|
|
1657
|
-
loadingIndicator: "loading-indicator",
|
|
1658
|
-
content: "relative flex size-full items-center justify-center",
|
|
1659
|
-
label: "",
|
|
1660
|
-
leadingIcon: "shrink-0",
|
|
1661
|
-
trailingIcon: "shrink-0"
|
|
1662
|
-
},
|
|
1663
|
-
variants: {
|
|
1664
|
-
variant: {
|
|
1665
|
-
solid: { base: "focus-visible:outline-offset-2" },
|
|
1666
|
-
soft: { base: "focus-visible:outline-offset-2" },
|
|
1667
|
-
outline: { base: "focus-visible:-outline-offset-1" },
|
|
1668
|
-
ghost: { base: "focus-visible:-outline-offset-1" }
|
|
1669
|
-
},
|
|
1670
|
-
color: {
|
|
1671
|
-
primary: "",
|
|
1672
|
-
secondary: "",
|
|
1673
|
-
neutral: "",
|
|
1674
|
-
gray: "",
|
|
1675
|
-
danger: ""
|
|
1676
|
-
},
|
|
1677
|
-
size: Qe,
|
|
1678
|
-
square: { true: "" },
|
|
1679
|
-
pill: { true: "" },
|
|
1680
|
-
block: { true: { base: "w-full" } },
|
|
1681
|
-
disabled: { true: { base: "cursor-not-allowed light:text-stone-400 dark:text-stone-500" } },
|
|
1682
|
-
loading: { true: {
|
|
1683
|
-
base: "pointer-events-none",
|
|
1684
|
-
content: "opacity-0"
|
|
1685
|
-
} },
|
|
1686
|
-
selected: { true: "" }
|
|
1687
|
-
},
|
|
1688
|
-
compoundVariants: [
|
|
1689
|
-
...$e,
|
|
1690
|
-
...et,
|
|
1691
|
-
{
|
|
1692
|
-
square: !0,
|
|
1693
|
-
pill: !0,
|
|
1694
|
-
class: { base: "rounded-full" }
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
disabled: !0,
|
|
1698
|
-
variant: ["solid", "soft"],
|
|
1699
|
-
class: { base: "light:before:bg-stone-950/5 dark:before:bg-stone-200/5" }
|
|
1700
|
-
},
|
|
1701
|
-
{
|
|
1702
|
-
disabled: !0,
|
|
1703
|
-
variant: "outline",
|
|
1704
|
-
class: { base: "before:border light:before:border-stone-950/6 dark:before:border-stone-200/6" }
|
|
1705
|
-
},
|
|
1706
|
-
{
|
|
1707
|
-
disabled: !1,
|
|
1708
|
-
loading: !1,
|
|
1709
|
-
square: !0,
|
|
1710
|
-
class: { base: "active:before:scale-96" }
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
disabled: !1,
|
|
1714
|
-
loading: !1,
|
|
1715
|
-
square: !1,
|
|
1716
|
-
block: !0,
|
|
1717
|
-
class: { base: "active:before:scale-[0.995]" }
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
disabled: !1,
|
|
1721
|
-
loading: !1,
|
|
1722
|
-
square: !1,
|
|
1723
|
-
block: !1,
|
|
1724
|
-
class: { base: "active:before:scale-97" }
|
|
1725
|
-
}
|
|
1726
|
-
]
|
|
1727
|
-
}), nt = /* @__PURE__ */ c({
|
|
1728
|
-
__name: "Button",
|
|
1729
|
-
props: {
|
|
1730
|
-
label: {},
|
|
1731
|
-
variant: { default: "solid" },
|
|
1732
|
-
color: { default: "neutral" },
|
|
1733
|
-
size: { default: "md" },
|
|
1734
|
-
leadingIcon: {},
|
|
1735
|
-
trailingIcon: {},
|
|
1736
|
-
square: { type: Boolean },
|
|
1737
|
-
pill: {
|
|
1738
|
-
type: Boolean,
|
|
1739
|
-
default: !0
|
|
1740
|
-
},
|
|
1741
|
-
block: { type: Boolean },
|
|
1742
|
-
disabled: { type: Boolean },
|
|
1743
|
-
loading: { type: Boolean },
|
|
1744
|
-
selected: { type: Boolean },
|
|
1745
|
-
type: { default: "button" },
|
|
1746
|
-
href: {},
|
|
1747
|
-
ui: {},
|
|
1748
|
-
class: { type: [
|
|
1749
|
-
Array,
|
|
1750
|
-
String,
|
|
1751
|
-
null,
|
|
1752
|
-
Number,
|
|
1753
|
-
Boolean
|
|
1754
|
-
] }
|
|
1755
|
-
},
|
|
1756
|
-
setup(e) {
|
|
1757
|
-
let s = e, c = t(() => tt({
|
|
1758
|
-
variant: s.variant,
|
|
1759
|
-
color: s.color,
|
|
1760
|
-
size: s.size,
|
|
1761
|
-
square: s.square,
|
|
1762
|
-
pill: s.pill,
|
|
1763
|
-
block: s.block,
|
|
1764
|
-
disabled: s.disabled,
|
|
1765
|
-
loading: s.loading,
|
|
1766
|
-
selected: s.selected
|
|
1767
|
-
})), l = t(() => s.href ? "a" : "button"), f = t(() => {
|
|
1768
|
-
let e = s.square ? { "aria-label": s.label } : {};
|
|
1769
|
-
return s.href ? s.disabled ? {
|
|
1770
|
-
...e,
|
|
1771
|
-
role: "link",
|
|
1772
|
-
"aria-disabled": "true"
|
|
1773
|
-
} : {
|
|
1774
|
-
...e,
|
|
1775
|
-
href: s.href
|
|
1776
|
-
} : {
|
|
1777
|
-
...e,
|
|
1778
|
-
type: s.type,
|
|
1779
|
-
disabled: s.disabled || s.loading,
|
|
1780
|
-
"aria-busy": s.loading || void 0,
|
|
1781
|
-
"aria-pressed": s.selected || void 0
|
|
1782
|
-
};
|
|
1783
|
-
});
|
|
1784
|
-
return (t, m) => (p(), n(g(l.value), u(f.value, { class: c.value.base({ class: [e.ui?.base, s.class] }) }), {
|
|
1785
|
-
default: D(() => [e.loading ? (p(), i("span", {
|
|
1786
|
-
key: 0,
|
|
1787
|
-
class: d(c.value.loadingOverlay({ class: e.ui?.loadingOverlay }))
|
|
1788
|
-
}, [a("span", { class: d(c.value.loadingIndicator({ class: e.ui?.loadingIndicator })) }, null, 2)], 2)) : r("", !0), a("span", { class: d(c.value.content({ class: e.ui?.content })) }, [
|
|
1789
|
-
e.leadingIcon ? (p(), n(g(e.leadingIcon), {
|
|
1790
|
-
key: 0,
|
|
1791
|
-
class: d(c.value.leadingIcon({ class: e.ui?.leadingIcon }))
|
|
1792
|
-
}, null, 8, ["class"])) : r("", !0),
|
|
1793
|
-
!e.square && (e.label || t.$slots.default) ? (p(), i("span", {
|
|
1794
|
-
key: 1,
|
|
1795
|
-
class: d(c.value.label({ class: e.ui?.label }))
|
|
1796
|
-
}, [h(t.$slots, "default", {}, () => [o(_(e.label), 1)])], 2)) : r("", !0),
|
|
1797
|
-
e.trailingIcon && !e.square ? (p(), n(g(e.trailingIcon), {
|
|
1798
|
-
key: 2,
|
|
1799
|
-
class: d(c.value.trailingIcon({ class: e.ui?.trailingIcon }))
|
|
1800
|
-
}, null, 8, ["class"])) : r("", !0)
|
|
1801
|
-
], 2)]),
|
|
1802
|
-
_: 3
|
|
1803
|
-
}, 16, ["class"]));
|
|
1804
|
-
}
|
|
1805
|
-
});
|
|
1806
|
-
// src/shared/composables/useCustomColor.ts
|
|
1807
|
-
function Q(e, n) {
|
|
1808
|
-
let r = t(() => v(e) in n);
|
|
1809
|
-
return {
|
|
1810
|
-
themeColor: t(() => r.value ? v(e) : "primary"),
|
|
1811
|
-
customColorVariable: t(() => r.value ? void 0 : { "--color-primary": v(e) })
|
|
1812
|
-
};
|
|
1813
|
-
}
|
|
1814
|
-
// src/elements/checkbox/checkbox.theme.ts
|
|
1815
|
-
var rt = k({
|
|
1816
|
-
slots: {
|
|
1817
|
-
root: "flex cursor-pointer items-start gap-x-2 text-sm leading-5",
|
|
1818
|
-
base: "relative top-px size-4.5 shrink-0 rounded-sm border outline-primary transition-colors has-focus-visible:outline-2 has-focus-visible:outline-offset-2 light:border-stone-300 light:not-has-checked:hover:border-stone-400 dark:border-stone-600 dark:not-has-checked:hover:border-stone-500",
|
|
1819
|
-
checkMark: "checkbox-check-mark hidden peer-checked:block light:text-white dark:text-stone-950"
|
|
1820
|
-
},
|
|
1821
|
-
variants: {
|
|
1822
|
-
color: {
|
|
1823
|
-
primary: { base: "has-checked:border-primary has-checked:bg-primary" },
|
|
1824
|
-
secondary: { base: "has-checked:border-secondary has-checked:bg-secondary" },
|
|
1825
|
-
neutral: { base: "light:has-checked:border-neutral-900 light:has-checked:bg-neutral-900 dark:has-checked:border-stone-200 dark:has-checked:bg-stone-200" }
|
|
1826
|
-
},
|
|
1827
|
-
labelPosition: {
|
|
1828
|
-
start: { root: "flex-row-reverse justify-end" },
|
|
1829
|
-
end: ""
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
}), it = ["checked"], at = /* @__PURE__ */ c({
|
|
1833
|
-
inheritAttrs: !1,
|
|
1834
|
-
__name: "Checkbox",
|
|
1835
|
-
props: /*@__PURE__*/ l({
|
|
1836
|
-
label: {},
|
|
1837
|
-
color: { default: "neutral" },
|
|
1838
|
-
labelPosition: { default: "end" },
|
|
1839
|
-
ui: {},
|
|
1840
|
-
class: { type: [
|
|
1841
|
-
Array,
|
|
1842
|
-
String,
|
|
1843
|
-
null,
|
|
1844
|
-
Number,
|
|
1845
|
-
Boolean
|
|
1846
|
-
] }
|
|
1847
|
-
}, {
|
|
1848
|
-
modelValue: {
|
|
1849
|
-
type: Boolean,
|
|
1850
|
-
default: !1
|
|
1851
|
-
},
|
|
1852
|
-
modelModifiers: {}
|
|
1853
|
-
}),
|
|
1854
|
-
emits: ["update:modelValue"],
|
|
1855
|
-
setup(e) {
|
|
1856
|
-
let n = e, r = x(e, "modelValue"), { themeColor: s, customColorVariable: c } = Q(() => n.color, rt.variants.color), l = t(() => rt({
|
|
1857
|
-
color: s.value,
|
|
1858
|
-
labelPosition: n.labelPosition
|
|
1859
|
-
}));
|
|
1860
|
-
return (t, s) => (p(), i("label", {
|
|
1861
|
-
class: d(l.value.root({ class: [e.ui?.root, n.class] })),
|
|
1862
|
-
style: f(y(c))
|
|
1863
|
-
}, [a("span", { class: d(l.value.base({ class: e.ui?.base })) }, [O(a("input", u(t.$attrs, {
|
|
1864
|
-
"onUpdate:modelValue": s[0] ||= (e) => r.value = e,
|
|
1865
|
-
checked: r.value,
|
|
1866
|
-
type: "checkbox",
|
|
1867
|
-
class: "peer sr-only"
|
|
1868
|
-
}), null, 16, it), [[C, r.value]]), a("span", {
|
|
1869
|
-
"aria-hidden": "true",
|
|
1870
|
-
class: d(l.value.checkMark({ class: e.ui?.checkMark }))
|
|
1871
|
-
}, null, 2)], 2), o(" " + _(e.label), 1)], 6));
|
|
1872
|
-
}
|
|
1873
|
-
}), ot = k({ slots: {
|
|
1874
|
-
base: "size-7 -rotate-90 fill-none stroke-2",
|
|
1875
|
-
track: "stroke-primary/15",
|
|
1876
|
-
indicator: "stroke-primary transition-[stroke-dashoffset] duration-300"
|
|
1877
|
-
} }), st = ["aria-label", "aria-valuenow"], ct = ["stroke-dashoffset"], lt = /* @__PURE__ */ c({
|
|
1878
|
-
__name: "CircularProgress",
|
|
1879
|
-
props: {
|
|
1880
|
-
progress: {},
|
|
1881
|
-
label: { default: "Progress" },
|
|
1882
|
-
ui: {},
|
|
1883
|
-
class: { type: [
|
|
1884
|
-
Array,
|
|
1885
|
-
String,
|
|
1886
|
-
null,
|
|
1887
|
-
Number,
|
|
1888
|
-
Boolean
|
|
1889
|
-
] }
|
|
1890
|
-
},
|
|
1891
|
-
setup(e) {
|
|
1892
|
-
let n = e, r = ot(), o = t(() => Math.min(Math.max(n.progress, 0), 100)), s = t(() => 50 - 50 * o.value / 100);
|
|
1893
|
-
return (t, c) => (p(), i("svg", {
|
|
1894
|
-
viewBox: "0 0 20 20",
|
|
1895
|
-
role: "progressbar",
|
|
1896
|
-
"aria-label": e.label,
|
|
1897
|
-
"aria-valuemin": "0",
|
|
1898
|
-
"aria-valuemax": "100",
|
|
1899
|
-
"aria-valuenow": o.value,
|
|
1900
|
-
class: d(y(r).base({ class: [e.ui?.base, n.class] }))
|
|
1901
|
-
}, [a("circle", {
|
|
1902
|
-
cx: "10",
|
|
1903
|
-
cy: "10",
|
|
1904
|
-
r: "8",
|
|
1905
|
-
class: d(y(r).track({ class: e.ui?.track }))
|
|
1906
|
-
}, null, 2), a("circle", {
|
|
1907
|
-
cx: "10",
|
|
1908
|
-
cy: "10",
|
|
1909
|
-
r: "8",
|
|
1910
|
-
"stroke-dasharray": 50,
|
|
1911
|
-
"stroke-dashoffset": s.value,
|
|
1912
|
-
"stroke-linecap": "round",
|
|
1913
|
-
class: d(y(r).indicator({ class: e.ui?.indicator }))
|
|
1914
|
-
}, null, 10, ct)], 10, st));
|
|
1915
|
-
}
|
|
1916
|
-
}), ut = k({ slots: { base: "flex loading-dots h-lh items-center gap-1" } }), dt = ["aria-label"], ft = /* @__PURE__ */ c({
|
|
1917
|
-
__name: "LoadingDots",
|
|
1918
|
-
props: {
|
|
1919
|
-
label: { default: "Loading" },
|
|
1920
|
-
ui: {},
|
|
1921
|
-
class: { type: [
|
|
1922
|
-
Array,
|
|
1923
|
-
String,
|
|
1924
|
-
null,
|
|
1925
|
-
Number,
|
|
1926
|
-
Boolean
|
|
1927
|
-
] }
|
|
1928
|
-
},
|
|
1929
|
-
setup(t) {
|
|
1930
|
-
let n = t, r = ut();
|
|
1931
|
-
return (o, s) => (p(), i("div", {
|
|
1932
|
-
role: "status",
|
|
1933
|
-
"aria-label": t.label,
|
|
1934
|
-
class: d(y(r).base({ class: [t.ui?.base, n.class] }))
|
|
1935
|
-
}, [(p(), i(e, null, m(3, (e) => a("span", { key: e })), 64))], 10, dt));
|
|
1936
|
-
}
|
|
1937
|
-
}), pt = k({ slots: { base: "loading-indicator" } }), mt = ["aria-label"], ht = /* @__PURE__ */ c({
|
|
1938
|
-
__name: "LoadingIndicator",
|
|
1939
|
-
props: {
|
|
1940
|
-
label: { default: "Loading" },
|
|
1941
|
-
ui: {},
|
|
1942
|
-
class: { type: [
|
|
1943
|
-
Array,
|
|
1944
|
-
String,
|
|
1945
|
-
null,
|
|
1946
|
-
Number,
|
|
1947
|
-
Boolean
|
|
1948
|
-
] }
|
|
1949
|
-
},
|
|
1950
|
-
setup(e) {
|
|
1951
|
-
let t = e, n = pt();
|
|
1952
|
-
return (r, a) => (p(), i("div", {
|
|
1953
|
-
role: "status",
|
|
1954
|
-
"aria-label": e.label,
|
|
1955
|
-
class: d(y(n).base({ class: [e.ui?.base, t.class] }))
|
|
1956
|
-
}, null, 10, mt));
|
|
1957
|
-
}
|
|
1958
|
-
}), gt = k({
|
|
1959
|
-
slots: {
|
|
1960
|
-
root: "min-w-0",
|
|
1961
|
-
legend: "",
|
|
1962
|
-
optionList: "",
|
|
1963
|
-
option: "items-start text-sm leading-5",
|
|
1964
|
-
container: "flex h-5 shrink-0 items-center",
|
|
1965
|
-
base: "relative flex size-4 items-center justify-center rounded-full border outline-primary transition-colors has-focus-visible:outline-2 has-focus-visible:outline-offset-2",
|
|
1966
|
-
indicator: "hidden size-1.5 rounded-full transition-transform duration-600 ease-[cubic-bezier(0.19,1,0.22,1)] peer-checked:block starting:scale-0 light:bg-white dark:bg-stone-950",
|
|
1967
|
-
wrapper: "",
|
|
1968
|
-
label: "block font-medium",
|
|
1969
|
-
description: "mt-0.5 block text-muted",
|
|
1970
|
-
errorMessage: "mt-3 flex items-start gap-x-1.5 text-xs light:text-red-600 dark:text-red-400",
|
|
1971
|
-
errorIcon: "mt-px size-3.5 shrink-0"
|
|
1972
|
-
},
|
|
1973
|
-
variants: {
|
|
1974
|
-
variant: {
|
|
1975
|
-
default: { option: "inline-flex" },
|
|
1976
|
-
card: { option: "flex w-full gap-x-2.5 rounded-2xl border p-4 transition-colors" }
|
|
1977
|
-
},
|
|
1978
|
-
direction: {
|
|
1979
|
-
row: "",
|
|
1980
|
-
col: ""
|
|
1981
|
-
},
|
|
1982
|
-
color: {
|
|
1983
|
-
primary: { base: "has-checked:border-primary has-checked:bg-primary" },
|
|
1984
|
-
secondary: { base: "has-checked:border-secondary has-checked:bg-secondary" },
|
|
1985
|
-
neutral: { base: "light:has-checked:border-neutral-900 light:has-checked:bg-neutral-900 dark:has-checked:border-stone-200 dark:has-checked:bg-stone-200" }
|
|
1986
|
-
},
|
|
1987
|
-
hideLabel: {
|
|
1988
|
-
true: { legend: "sr-only" },
|
|
1989
|
-
false: { legend: "mb-3 text-sm font-semibold" }
|
|
1990
|
-
},
|
|
1991
|
-
hasDescriptions: { true: "" },
|
|
1992
|
-
invalid: { true: { base: "light:border-red-600 dark:border-red-500" } },
|
|
1993
|
-
optionDisabled: {
|
|
1994
|
-
true: { option: "cursor-not-allowed opacity-50" },
|
|
1995
|
-
false: { option: "cursor-pointer" }
|
|
1996
|
-
},
|
|
1997
|
-
optionHasDescription: { true: "" }
|
|
1998
|
-
},
|
|
1999
|
-
compoundVariants: [
|
|
2000
|
-
{
|
|
2001
|
-
variant: "card",
|
|
2002
|
-
direction: "row",
|
|
2003
|
-
class: { optionList: "grid gap-3 sm:auto-cols-fr sm:grid-flow-col" }
|
|
2004
|
-
},
|
|
2005
|
-
{
|
|
2006
|
-
variant: "card",
|
|
2007
|
-
direction: "col",
|
|
2008
|
-
class: { optionList: "flex flex-col gap-y-3" }
|
|
2009
|
-
},
|
|
2010
|
-
{
|
|
2011
|
-
variant: "default",
|
|
2012
|
-
direction: "row",
|
|
2013
|
-
class: { optionList: "flex flex-wrap gap-x-5 gap-y-2.5" }
|
|
2014
|
-
},
|
|
2015
|
-
{
|
|
2016
|
-
variant: "default",
|
|
2017
|
-
direction: "col",
|
|
2018
|
-
hasDescriptions: !0,
|
|
2019
|
-
class: { optionList: "flex flex-col items-start gap-y-4" }
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
variant: "default",
|
|
2023
|
-
direction: "col",
|
|
2024
|
-
hasDescriptions: !1,
|
|
2025
|
-
class: { optionList: "flex flex-col items-start gap-y-2.5" }
|
|
2026
|
-
},
|
|
2027
|
-
{
|
|
2028
|
-
variant: "default",
|
|
2029
|
-
optionHasDescription: !0,
|
|
2030
|
-
class: { option: "gap-x-2.5" }
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
variant: "default",
|
|
2034
|
-
optionHasDescription: !1,
|
|
2035
|
-
class: { option: "gap-x-1.5" }
|
|
2036
|
-
},
|
|
2037
|
-
{
|
|
2038
|
-
variant: "card",
|
|
2039
|
-
color: "primary",
|
|
2040
|
-
class: { option: "has-checked:border-primary" }
|
|
2041
|
-
},
|
|
2042
|
-
{
|
|
2043
|
-
variant: "card",
|
|
2044
|
-
color: "secondary",
|
|
2045
|
-
class: { option: "has-checked:border-secondary" }
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
variant: "card",
|
|
2049
|
-
color: "neutral",
|
|
2050
|
-
class: { option: "light:has-checked:border-neutral-900 dark:has-checked:border-stone-200" }
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
variant: "card",
|
|
2054
|
-
invalid: !0,
|
|
2055
|
-
class: { option: "light:border-red-600 dark:border-red-500" }
|
|
2056
|
-
},
|
|
2057
|
-
{
|
|
2058
|
-
variant: "card",
|
|
2059
|
-
invalid: !1,
|
|
2060
|
-
optionDisabled: !0,
|
|
2061
|
-
class: { option: "border-line" }
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
variant: "card",
|
|
2065
|
-
invalid: !1,
|
|
2066
|
-
optionDisabled: !1,
|
|
2067
|
-
class: { option: "border-line light:not-has-checked:hover:border-stone-950/20 dark:not-has-checked:hover:border-white/20" }
|
|
2068
|
-
},
|
|
2069
|
-
{
|
|
2070
|
-
invalid: !1,
|
|
2071
|
-
optionDisabled: !0,
|
|
2072
|
-
class: { base: "light:border-stone-300 dark:border-stone-600" }
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
invalid: !1,
|
|
2076
|
-
optionDisabled: !1,
|
|
2077
|
-
class: { base: "light:border-stone-300 light:not-has-checked:hover:border-stone-400 dark:border-stone-600 dark:not-has-checked:hover:border-stone-500" }
|
|
2078
|
-
}
|
|
2079
|
-
]
|
|
2080
|
-
}), _t = [
|
|
2081
|
-
"disabled",
|
|
2082
|
-
"aria-invalid",
|
|
2083
|
-
"aria-describedby"
|
|
2084
|
-
], vt = [
|
|
2085
|
-
"name",
|
|
2086
|
-
"value",
|
|
2087
|
-
"disabled",
|
|
2088
|
-
"aria-labelledby",
|
|
2089
|
-
"aria-describedby"
|
|
2090
|
-
], yt = ["id"], bt = ["id"], xt = /* @__PURE__ */ c({
|
|
2091
|
-
__name: "RadioGroup",
|
|
2092
|
-
props: /*@__PURE__*/ l({
|
|
2093
|
-
label: {},
|
|
2094
|
-
options: {},
|
|
2095
|
-
name: {},
|
|
2096
|
-
direction: { default: "row" },
|
|
2097
|
-
variant: { default: "default" },
|
|
2098
|
-
color: { default: "neutral" },
|
|
2099
|
-
hideLabel: { type: Boolean },
|
|
2100
|
-
disabled: { type: Boolean },
|
|
2101
|
-
errorMessage: {},
|
|
2102
|
-
ui: {},
|
|
2103
|
-
class: { type: [
|
|
2104
|
-
Array,
|
|
2105
|
-
String,
|
|
2106
|
-
null,
|
|
2107
|
-
Number,
|
|
2108
|
-
Boolean
|
|
2109
|
-
] }
|
|
2110
|
-
}, {
|
|
2111
|
-
modelValue: {},
|
|
2112
|
-
modelModifiers: {}
|
|
2113
|
-
}),
|
|
2114
|
-
emits: ["update:modelValue"],
|
|
2115
|
-
setup(n) {
|
|
2116
|
-
let c = n, l = x(n, "modelValue"), { themeColor: u, customColorVariable: h } = Q(() => c.color, gt.variants.color), g = b(), v = `${g}-error`, S = t(() => c.name ?? g), C = t(() => gt({
|
|
2117
|
-
variant: c.variant,
|
|
2118
|
-
direction: c.direction,
|
|
2119
|
-
color: u.value,
|
|
2120
|
-
hideLabel: c.hideLabel,
|
|
2121
|
-
hasDescriptions: c.options.some((e) => e.description),
|
|
2122
|
-
invalid: !!c.errorMessage
|
|
2123
|
-
}));
|
|
2124
|
-
function w(e) {
|
|
2125
|
-
return `${g}-option-${e}`;
|
|
2126
|
-
}
|
|
2127
|
-
function E(e) {
|
|
2128
|
-
return c.disabled || !!e.disabled;
|
|
2129
|
-
}
|
|
2130
|
-
return (t, u) => (p(), i("fieldset", {
|
|
2131
|
-
role: "radiogroup",
|
|
2132
|
-
disabled: n.disabled,
|
|
2133
|
-
"aria-invalid": n.errorMessage ? "true" : void 0,
|
|
2134
|
-
"aria-describedby": n.errorMessage ? v : void 0,
|
|
2135
|
-
class: d(C.value.root({ class: [n.ui?.root, c.class] })),
|
|
2136
|
-
style: f(y(h))
|
|
2137
|
-
}, [
|
|
2138
|
-
a("legend", { class: d(C.value.legend({ class: n.ui?.legend })) }, _(n.label), 3),
|
|
2139
|
-
a("div", { class: d(C.value.optionList({ class: n.ui?.optionList })) }, [(p(!0), i(e, null, m(n.options, (t, r) => (p(), i("label", {
|
|
2140
|
-
key: t.value,
|
|
2141
|
-
class: d(C.value.option({
|
|
2142
|
-
optionDisabled: E(t),
|
|
2143
|
-
optionHasDescription: !!t.description,
|
|
2144
|
-
class: n.ui?.option
|
|
2145
|
-
}))
|
|
2146
|
-
}, [a("span", { class: d(C.value.container({ class: n.ui?.container })) }, [a("span", { class: d(C.value.base({
|
|
2147
|
-
optionDisabled: E(t),
|
|
2148
|
-
class: n.ui?.base
|
|
2149
|
-
})) }, [O(a("input", {
|
|
2150
|
-
"onUpdate:modelValue": u[0] ||= (e) => l.value = e,
|
|
2151
|
-
type: "radio",
|
|
2152
|
-
name: S.value,
|
|
2153
|
-
value: t.value,
|
|
2154
|
-
disabled: t.disabled,
|
|
2155
|
-
"aria-labelledby": t.description ? `${w(r)}-label` : void 0,
|
|
2156
|
-
"aria-describedby": t.description ? `${w(r)}-description` : void 0,
|
|
2157
|
-
class: "peer sr-only"
|
|
2158
|
-
}, null, 8, vt), [[T, l.value]]), a("span", {
|
|
2159
|
-
"aria-hidden": "true",
|
|
2160
|
-
class: d(C.value.indicator({ class: n.ui?.indicator }))
|
|
2161
|
-
}, null, 2)], 2)], 2), t.description ? (p(), i("span", {
|
|
2162
|
-
key: 0,
|
|
2163
|
-
class: d(C.value.wrapper({ class: n.ui?.wrapper }))
|
|
2164
|
-
}, [a("span", {
|
|
2165
|
-
id: `${w(r)}-label`,
|
|
2166
|
-
class: d(C.value.label({ class: n.ui?.label }))
|
|
2167
|
-
}, _(t.label), 11, yt), a("span", {
|
|
2168
|
-
id: `${w(r)}-description`,
|
|
2169
|
-
class: d(C.value.description({ class: n.ui?.description }))
|
|
2170
|
-
}, _(t.description), 11, bt)], 2)) : (p(), i(e, { key: 1 }, [o(_(t.label), 1)], 64))], 2))), 128))], 2),
|
|
2171
|
-
n.errorMessage ? (p(), i("p", {
|
|
2172
|
-
key: 0,
|
|
2173
|
-
id: v,
|
|
2174
|
-
class: d(C.value.errorMessage({ class: n.ui?.errorMessage }))
|
|
2175
|
-
}, [s(y(A), { class: d(C.value.errorIcon({ class: n.ui?.errorIcon })) }, null, 8, ["class"]), o(" " + _(n.errorMessage), 1)], 2)) : r("", !0)
|
|
2176
|
-
], 14, _t));
|
|
2177
|
-
}
|
|
2178
|
-
}), St = k({
|
|
2179
|
-
slots: {
|
|
2180
|
-
root: "flex items-start text-sm leading-5 select-none",
|
|
2181
|
-
base: "relative h-4.75 w-8 shrink-0 rounded-full outline-primary transition-colors duration-250 ease-[cubic-bezier(0.65,0,0.35,1)] has-focus-visible:outline-2 has-focus-visible:outline-offset-2 light:bg-stone-200 dark:bg-stone-700",
|
|
2182
|
-
thumb: "absolute top-0.75 left-0.75 size-3.25 rounded-full bg-white transition duration-250 ease-[cubic-bezier(0.65,0,0.35,1)] peer-checked:translate-x-3.25 dark:peer-checked:bg-stone-950",
|
|
2183
|
-
wrapper: "min-w-0",
|
|
2184
|
-
label: "block font-medium",
|
|
2185
|
-
description: "mt-0.5 block text-muted"
|
|
2186
|
-
},
|
|
2187
|
-
variants: {
|
|
2188
|
-
color: {
|
|
2189
|
-
primary: { base: "has-checked:bg-primary" },
|
|
2190
|
-
secondary: { base: "has-checked:bg-secondary" },
|
|
2191
|
-
neutral: { base: "light:has-checked:bg-neutral-900 dark:has-checked:bg-stone-200" }
|
|
2192
|
-
},
|
|
2193
|
-
labelPosition: {
|
|
2194
|
-
start: { root: "flex-row-reverse" },
|
|
2195
|
-
end: ""
|
|
2196
|
-
},
|
|
2197
|
-
block: {
|
|
2198
|
-
true: { root: "w-full justify-between gap-x-4" },
|
|
2199
|
-
false: { root: "w-fit gap-x-2" }
|
|
2200
|
-
},
|
|
2201
|
-
disabled: {
|
|
2202
|
-
true: { root: "cursor-not-allowed opacity-50" },
|
|
2203
|
-
false: {
|
|
2204
|
-
root: "cursor-pointer",
|
|
2205
|
-
base: "light:not-has-checked:hover:bg-stone-300 dark:not-has-checked:hover:bg-stone-600",
|
|
2206
|
-
thumb: "shadow-[0_1px_2px_rgb(0_0_0/20%)]"
|
|
2207
|
-
}
|
|
2208
|
-
},
|
|
2209
|
-
hasLabel: { true: { base: "top-px" } }
|
|
2210
|
-
}
|
|
2211
|
-
}), Ct = [
|
|
2212
|
-
"checked",
|
|
2213
|
-
"disabled",
|
|
2214
|
-
"aria-labelledby",
|
|
2215
|
-
"aria-describedby"
|
|
2216
|
-
], wt = /* @__PURE__ */ c({
|
|
2217
|
-
inheritAttrs: !1,
|
|
2218
|
-
__name: "Switch",
|
|
2219
|
-
props: /*@__PURE__*/ l({
|
|
2220
|
-
label: {},
|
|
2221
|
-
description: {},
|
|
2222
|
-
color: { default: "neutral" },
|
|
2223
|
-
labelPosition: { default: "end" },
|
|
2224
|
-
block: { type: Boolean },
|
|
2225
|
-
disabled: { type: Boolean },
|
|
2226
|
-
ui: {},
|
|
2227
|
-
class: { type: [
|
|
2228
|
-
Array,
|
|
2229
|
-
String,
|
|
2230
|
-
null,
|
|
2231
|
-
Number,
|
|
2232
|
-
Boolean
|
|
2233
|
-
] }
|
|
2234
|
-
}, {
|
|
2235
|
-
modelValue: {
|
|
2236
|
-
type: Boolean,
|
|
2237
|
-
default: !1
|
|
2238
|
-
},
|
|
2239
|
-
modelModifiers: {}
|
|
2240
|
-
}),
|
|
2241
|
-
emits: ["update:modelValue"],
|
|
2242
|
-
setup(n) {
|
|
2243
|
-
let s = n, c = x(n, "modelValue"), { themeColor: l, customColorVariable: m } = Q(() => s.color, St.variants.color), h = b(), g = `${h}-label`, v = `${h}-description`, S = t(() => !!(s.label && s.description)), w = t(() => St({
|
|
2244
|
-
color: l.value,
|
|
2245
|
-
labelPosition: s.labelPosition,
|
|
2246
|
-
block: s.block,
|
|
2247
|
-
disabled: s.disabled,
|
|
2248
|
-
hasLabel: !!s.label
|
|
2249
|
-
}));
|
|
2250
|
-
return (t, l) => (p(), i("label", {
|
|
2251
|
-
class: d(w.value.root({ class: [n.ui?.root, s.class] })),
|
|
2252
|
-
style: f(y(m))
|
|
2253
|
-
}, [a("span", { class: d(w.value.base({ class: n.ui?.base })) }, [O(a("input", u(t.$attrs, {
|
|
2254
|
-
"onUpdate:modelValue": l[0] ||= (e) => c.value = e,
|
|
2255
|
-
checked: c.value,
|
|
2256
|
-
type: "checkbox",
|
|
2257
|
-
role: "switch",
|
|
2258
|
-
disabled: n.disabled,
|
|
2259
|
-
"aria-labelledby": S.value ? g : void 0,
|
|
2260
|
-
"aria-describedby": S.value ? v : void 0,
|
|
2261
|
-
class: "peer sr-only"
|
|
2262
|
-
}), null, 16, Ct), [[C, c.value]]), a("span", {
|
|
2263
|
-
"aria-hidden": "true",
|
|
2264
|
-
class: d(w.value.thumb({ class: n.ui?.thumb }))
|
|
2265
|
-
}, null, 2)], 2), S.value ? (p(), i("span", {
|
|
2266
|
-
key: 0,
|
|
2267
|
-
class: d(w.value.wrapper({ class: n.ui?.wrapper }))
|
|
2268
|
-
}, [a("span", {
|
|
2269
|
-
id: g,
|
|
2270
|
-
class: d(w.value.label({ class: n.ui?.label }))
|
|
2271
|
-
}, _(n.label), 3), a("span", {
|
|
2272
|
-
id: v,
|
|
2273
|
-
class: d(w.value.description({ class: n.ui?.description }))
|
|
2274
|
-
}, _(n.description), 3)], 2)) : n.label ? (p(), i(e, { key: 1 }, [o(_(n.label), 1)], 64)) : r("", !0)], 6));
|
|
2275
|
-
}
|
|
2276
|
-
}), Tt = k({
|
|
2277
|
-
slots: {
|
|
2278
|
-
base: "rounded-sm wrap-anywhere outline-primary transition-colors focus-visible:outline-2 focus-visible:outline-offset-1",
|
|
2279
|
-
leadingIcon: "size-[1em] shrink-0",
|
|
2280
|
-
trailingIcon: "size-[1em] shrink-0",
|
|
2281
|
-
newTabHint: "sr-only"
|
|
2282
|
-
},
|
|
2283
|
-
variants: {
|
|
2284
|
-
color: {
|
|
2285
|
-
inherit: { base: "hover:text-current/80" },
|
|
2286
|
-
muted: { base: "text-muted light:hover:text-stone-950 dark:hover:text-white" },
|
|
2287
|
-
primary: { base: "text-primary light:hover:text-[color-mix(in_oklab,var(--color-primary),black_25%)] dark:hover:text-[color-mix(in_oklab,var(--color-primary),white_25%)]" }
|
|
2288
|
-
},
|
|
2289
|
-
weight: {
|
|
2290
|
-
inherit: "",
|
|
2291
|
-
medium: { base: "font-medium" },
|
|
2292
|
-
semibold: { base: "font-semibold" }
|
|
2293
|
-
},
|
|
2294
|
-
underline: { true: { base: "underline decoration-current/70 underline-offset-[0.1em]" } },
|
|
2295
|
-
hasIcon: { true: { base: "inline-flex items-center gap-0.5" } }
|
|
2296
|
-
}
|
|
2297
|
-
}), Et = [
|
|
2298
|
-
"href",
|
|
2299
|
-
"target",
|
|
2300
|
-
"rel"
|
|
2301
|
-
], $ = /* @__PURE__ */ c({
|
|
2302
|
-
__name: "TextLink",
|
|
2303
|
-
props: {
|
|
2304
|
-
label: {},
|
|
2305
|
-
href: { default: "#" },
|
|
2306
|
-
color: { default: "inherit" },
|
|
2307
|
-
weight: { default: "inherit" },
|
|
2308
|
-
underline: {
|
|
2309
|
-
type: Boolean,
|
|
2310
|
-
default: void 0
|
|
2311
|
-
},
|
|
2312
|
-
external: {
|
|
2313
|
-
type: Boolean,
|
|
2314
|
-
default: void 0
|
|
2315
|
-
},
|
|
2316
|
-
leadingIcon: {},
|
|
2317
|
-
trailingIcon: {},
|
|
2318
|
-
ui: {},
|
|
2319
|
-
class: { type: [
|
|
2320
|
-
Array,
|
|
2321
|
-
String,
|
|
2322
|
-
null,
|
|
2323
|
-
Number,
|
|
2324
|
-
Boolean
|
|
2325
|
-
] }
|
|
2326
|
-
},
|
|
2327
|
-
setup(e) {
|
|
2328
|
-
let a = e, s = t(() => a.underline ?? a.color !== "primary"), c = t(() => a.external ?? /^https?:\/\//.test(a.href)), l = t(() => Tt({
|
|
2329
|
-
color: a.color,
|
|
2330
|
-
weight: a.weight,
|
|
2331
|
-
underline: s.value,
|
|
2332
|
-
hasIcon: !!(a.leadingIcon || a.trailingIcon)
|
|
2333
|
-
}));
|
|
2334
|
-
return (t, s) => (p(), i("a", {
|
|
2335
|
-
href: e.href,
|
|
2336
|
-
target: c.value ? "_blank" : void 0,
|
|
2337
|
-
rel: c.value ? "noopener noreferrer" : void 0,
|
|
2338
|
-
class: d(l.value.base({ class: [e.ui?.base, a.class] }))
|
|
2339
|
-
}, [
|
|
2340
|
-
e.leadingIcon ? (p(), n(g(e.leadingIcon), {
|
|
2341
|
-
key: 0,
|
|
2342
|
-
class: d(l.value.leadingIcon({ class: e.ui?.leadingIcon }))
|
|
2343
|
-
}, null, 8, ["class"])) : r("", !0),
|
|
2344
|
-
h(t.$slots, "default", {}, () => [o(_(e.label), 1)]),
|
|
2345
|
-
e.trailingIcon ? (p(), n(g(e.trailingIcon), {
|
|
2346
|
-
key: 1,
|
|
2347
|
-
class: d(l.value.trailingIcon({ class: e.ui?.trailingIcon }))
|
|
2348
|
-
}, null, 8, ["class"])) : r("", !0),
|
|
2349
|
-
c.value ? (p(), i("span", {
|
|
2350
|
-
key: 2,
|
|
2351
|
-
class: d(l.value.newTabHint({ class: e.ui?.newTabHint }))
|
|
2352
|
-
}, "(opens in a new tab)", 2)) : r("", !0)
|
|
2353
|
-
], 10, Et));
|
|
2354
|
-
}
|
|
2355
|
-
}), Dt = /* @__PURE__ */ te({
|
|
2356
|
-
KAlert: () => q,
|
|
2357
|
-
KAvatar: () => L,
|
|
2358
|
-
KAvatarGroup: () => R,
|
|
2359
|
-
KBadge: () => We,
|
|
2360
|
-
KButton: () => nt,
|
|
2361
|
-
KCheckbox: () => at,
|
|
2362
|
-
KCircularProgress: () => lt,
|
|
2363
|
-
KLoadingDots: () => ft,
|
|
2364
|
-
KLoadingIndicator: () => ht,
|
|
2365
|
-
KRadioGroup: () => xt,
|
|
2366
|
-
KSwitch: () => wt,
|
|
2367
|
-
KTextField: () => H,
|
|
2368
|
-
KTextLink: () => $,
|
|
2369
|
-
KTextarea: () => G
|
|
2370
|
-
});
|
|
2371
|
-
export { ht as a, at as c, q as d, G as f, L as h, xt as i, nt as l, R as m, $ as n, ft as o, H as p, wt as r, lt as s, Dt as t, We as u };
|