@epilot/volt-ui 1.1.13 → 1.1.15
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/index.es.js
CHANGED
|
@@ -148,13 +148,13 @@ const gc = (t, e) => {
|
|
|
148
148
|
a in o ? o[a] = s : r(a, s);
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
}, bn = "!", Ar = ":",
|
|
151
|
+
}, bn = "!", Ar = ":", Nc = [], kr = (t, e, o, n, r) => ({
|
|
152
152
|
modifiers: t,
|
|
153
153
|
hasImportantModifier: e,
|
|
154
154
|
baseClassName: o,
|
|
155
155
|
maybePostfixModifierPosition: n,
|
|
156
156
|
isExternal: r
|
|
157
|
-
}),
|
|
157
|
+
}), Pc = (t) => {
|
|
158
158
|
const {
|
|
159
159
|
prefix: e,
|
|
160
160
|
experimentalParseClassName: o
|
|
@@ -191,7 +191,7 @@ const gc = (t, e) => {
|
|
|
191
191
|
};
|
|
192
192
|
if (e) {
|
|
193
193
|
const r = e + Ar, a = n;
|
|
194
|
-
n = (s) => s.startsWith(r) ? a(s.slice(r.length)) : kr(
|
|
194
|
+
n = (s) => s.startsWith(r) ? a(s.slice(r.length)) : kr(Nc, !1, s, void 0, !0);
|
|
195
195
|
}
|
|
196
196
|
if (o) {
|
|
197
197
|
const r = n;
|
|
@@ -216,7 +216,7 @@ const gc = (t, e) => {
|
|
|
216
216
|
};
|
|
217
217
|
}, _c = (t) => ({
|
|
218
218
|
cache: kc(t.cacheSize),
|
|
219
|
-
parseClassName:
|
|
219
|
+
parseClassName: Pc(t),
|
|
220
220
|
sortModifiers: Ic(t),
|
|
221
221
|
...yc(t)
|
|
222
222
|
}), Dc = /\s+/, Oc = (t, e) => {
|
|
@@ -256,8 +256,8 @@ const gc = (t, e) => {
|
|
|
256
256
|
continue;
|
|
257
257
|
s.push(C);
|
|
258
258
|
const E = r(b, h);
|
|
259
|
-
for (let
|
|
260
|
-
const T = E[
|
|
259
|
+
for (let N = 0; N < E.length; ++N) {
|
|
260
|
+
const T = E[N];
|
|
261
261
|
s.push(w + T);
|
|
262
262
|
}
|
|
263
263
|
c = v + (c.length > 0 ? " " + c : c);
|
|
@@ -296,10 +296,10 @@ const gc = (t, e) => {
|
|
|
296
296
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
297
297
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
298
298
|
Bc.test(t) && !zc.test(t)
|
|
299
|
-
), wa = () => !1, Gc = (t) => Vc.test(t), Uc = (t) => Wc.test(t), Kc = (t) => !$(t) && !F(t), Zc = (t) =>
|
|
299
|
+
), wa = () => !1, Gc = (t) => Vc.test(t), Uc = (t) => Wc.test(t), Kc = (t) => !$(t) && !F(t), Zc = (t) => Ne(t, Ea, wa), $ = (t) => ya.test(t), ie = (t) => Ne(t, Ta, jc), nn = (t) => Ne(t, td, et), Nr = (t) => Ne(t, Ca, wa), Yc = (t) => Ne(t, Sa, Uc), Je = (t) => Ne(t, Ra, Gc), F = (t) => xa.test(t), Me = (t) => Pe(t, Ta), Xc = (t) => Pe(t, ed), Pr = (t) => Pe(t, Ca), Qc = (t) => Pe(t, Ea), Jc = (t) => Pe(t, Sa), to = (t) => Pe(t, Ra, !0), Ne = (t, e, o) => {
|
|
300
300
|
const n = ya.exec(t);
|
|
301
301
|
return n ? n[1] ? e(n[1]) : o(n[2]) : !1;
|
|
302
|
-
},
|
|
302
|
+
}, Pe = (t, e, o = !1) => {
|
|
303
303
|
const n = xa.exec(t);
|
|
304
304
|
return n ? n[1] ? e(n[1]) : o : !1;
|
|
305
305
|
}, Ca = (t) => t === "position" || t === "percentage", Sa = (t) => t === "image" || t === "url", Ea = (t) => t === "length" || t === "size" || t === "bg-size", Ta = (t) => t === "length", td = (t) => t === "number", ed = (t) => t === "family-name", Ra = (t) => t === "shadow", od = () => {
|
|
@@ -321,9 +321,9 @@ const gc = (t, e) => {
|
|
|
321
321
|
"bottom-left",
|
|
322
322
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
323
323
|
"left-bottom"
|
|
324
|
-
], E = () => [...C(), F, $],
|
|
324
|
+
], E = () => [...C(), F, $], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], S = () => [F, $, c], z = () => [he, "full", "auto", ...S()], H = () => [Kt, "none", "subgrid", F, $], Q = () => ["auto", {
|
|
325
325
|
span: ["full", Kt, F, $]
|
|
326
|
-
}, Kt, F, $], Z = () => [Kt, "auto", F, $], G = () => ["auto", "min", "max", "fr", F, $], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...S()], q = () => [he, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], R = () => [t, F, $], tt = () => [...C(),
|
|
326
|
+
}, Kt, F, $], Z = () => [Kt, "auto", F, $], G = () => ["auto", "min", "max", "fr", F, $], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...S()], q = () => [he, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], R = () => [t, F, $], tt = () => [...C(), Pr, Nr, {
|
|
327
327
|
position: [F, $]
|
|
328
328
|
}], rt = () => ["no-repeat", {
|
|
329
329
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -337,7 +337,7 @@ const gc = (t, e) => {
|
|
|
337
337
|
u,
|
|
338
338
|
F,
|
|
339
339
|
$
|
|
340
|
-
], M = () => ["", et, Me, ie], D = () => ["solid", "dashed", "dotted", "double"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [et, on,
|
|
340
|
+
], M = () => ["", et, Me, ie], D = () => ["solid", "dashed", "dotted", "double"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [et, on, Pr, Nr], L = () => [
|
|
341
341
|
// Deprecated since Tailwind CSS v4.0.0
|
|
342
342
|
"",
|
|
343
343
|
"none",
|
|
@@ -475,21 +475,21 @@ const gc = (t, e) => {
|
|
|
475
475
|
* @see https://tailwindcss.com/docs/overflow
|
|
476
476
|
*/
|
|
477
477
|
overflow: [{
|
|
478
|
-
overflow:
|
|
478
|
+
overflow: N()
|
|
479
479
|
}],
|
|
480
480
|
/**
|
|
481
481
|
* Overflow X
|
|
482
482
|
* @see https://tailwindcss.com/docs/overflow
|
|
483
483
|
*/
|
|
484
484
|
"overflow-x": [{
|
|
485
|
-
"overflow-x":
|
|
485
|
+
"overflow-x": N()
|
|
486
486
|
}],
|
|
487
487
|
/**
|
|
488
488
|
* Overflow Y
|
|
489
489
|
* @see https://tailwindcss.com/docs/overflow
|
|
490
490
|
*/
|
|
491
491
|
"overflow-y": [{
|
|
492
|
-
"overflow-y":
|
|
492
|
+
"overflow-y": N()
|
|
493
493
|
}],
|
|
494
494
|
/**
|
|
495
495
|
* Overscroll Behavior
|
|
@@ -2772,13 +2772,13 @@ const gc = (t, e) => {
|
|
|
2772
2772
|
},
|
|
2773
2773
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2774
2774
|
};
|
|
2775
|
-
}, nd = /* @__PURE__ */ Lc(od),
|
|
2775
|
+
}, nd = /* @__PURE__ */ Lc(od), P = (...t) => nd(pa(t));
|
|
2776
2776
|
function Ir(t, e) {
|
|
2777
2777
|
if (typeof t == "function")
|
|
2778
2778
|
return t(e);
|
|
2779
2779
|
t != null && (t.current = e);
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function Nt(...t) {
|
|
2782
2782
|
return (e) => {
|
|
2783
2783
|
let o = !1;
|
|
2784
2784
|
const n = t.map((r) => {
|
|
@@ -2795,7 +2795,7 @@ function Pt(...t) {
|
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
2797
|
function nt(...t) {
|
|
2798
|
-
return i.useCallback(
|
|
2798
|
+
return i.useCallback(Nt(...t), t);
|
|
2799
2799
|
}
|
|
2800
2800
|
var rd = Symbol.for("react.lazy"), vo = i[" use ".trim().toString()];
|
|
2801
2801
|
function ad(t) {
|
|
@@ -2825,7 +2825,7 @@ function sd(t) {
|
|
|
2825
2825
|
let { children: r, ...a } = o;
|
|
2826
2826
|
if (Aa(r) && typeof vo == "function" && (r = vo(r._payload)), i.isValidElement(r)) {
|
|
2827
2827
|
const s = dd(r), l = cd(a, r.props);
|
|
2828
|
-
return r.type !== i.Fragment && (l.ref = n ?
|
|
2828
|
+
return r.type !== i.Fragment && (l.ref = n ? Nt(n, s) : s), i.cloneElement(r, l);
|
|
2829
2829
|
}
|
|
2830
2830
|
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
2831
2831
|
});
|
|
@@ -2887,9 +2887,9 @@ const _r = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Dr = pa, E
|
|
|
2887
2887
|
variant: {
|
|
2888
2888
|
primary: "volt-bg-accent-solid volt-text-accent-contrast volt-hover:bg-accent-solid-hover volt-active:bg-accent-solid-hover volt-focus-visible:outline-accent-a8",
|
|
2889
2889
|
secondary: "volt-bg-accent-soft volt-text-accent-light volt-hover:bg-accent-soft-hover volt-focus-visible:outline-accent-a8",
|
|
2890
|
-
tertiary: "volt-bg-transparent volt-text-accent-light volt-hover:bg-accent-soft volt-focus-visible:outline-accent-a8"
|
|
2891
|
-
destructive: "volt-bg-error-a9 volt-text-error-contrast volt-hover:bg-error-solid-hover volt-active:bg-error-solid-hover volt-focus-visible:outline-error-a8"
|
|
2890
|
+
tertiary: "volt-bg-transparent volt-text-accent-light volt-hover:bg-accent-soft volt-focus-visible:outline-accent-a8"
|
|
2892
2891
|
},
|
|
2892
|
+
destructive: { true: "" },
|
|
2893
2893
|
size: {
|
|
2894
2894
|
xs: "volt-px-2 volt-py-1 volt-min-h-5 volt-text-xs volt-gap-[4px] [&_svg]:size-3 volt-group-data-[slot=button-group]/button-group:has-[>svg]:px-1",
|
|
2895
2895
|
sm: "volt-px-3 volt-py-1 volt-min-h-6 volt-text-sm volt-gap-[6px] [&_svg]:size-3.5 volt-group-data-[slot=button-group]/button-group:has-[>svg]:px-1.25",
|
|
@@ -2905,20 +2905,40 @@ const _r = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Dr = pa, E
|
|
|
2905
2905
|
rounded: "volt-rounded-full"
|
|
2906
2906
|
}
|
|
2907
2907
|
},
|
|
2908
|
+
compoundVariants: [
|
|
2909
|
+
{
|
|
2910
|
+
variant: "primary",
|
|
2911
|
+
destructive: !0,
|
|
2912
|
+
className: "volt-bg-error-solid volt-text-error-contrast volt-hover:bg-error-solid-hover volt-active:bg-error-solid-hover volt-focus-visible:outline-error-a8"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
variant: "secondary",
|
|
2916
|
+
destructive: !0,
|
|
2917
|
+
className: "volt-bg-error-soft volt-text-error-light volt-hover:bg-error-soft-hover volt-focus-visible:outline-error-a8"
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
variant: "tertiary",
|
|
2921
|
+
destructive: !0,
|
|
2922
|
+
className: "volt-bg-transparent volt-text-error-light volt-hover:bg-error-soft volt-focus-visible:outline-error-a8"
|
|
2923
|
+
}
|
|
2924
|
+
],
|
|
2908
2925
|
defaultVariants: {
|
|
2909
2926
|
variant: "primary",
|
|
2910
2927
|
size: "base",
|
|
2911
|
-
shape: "rounded"
|
|
2928
|
+
shape: "rounded",
|
|
2929
|
+
destructive: !1
|
|
2912
2930
|
}
|
|
2913
2931
|
}
|
|
2914
2932
|
), ud = ze(
|
|
2915
|
-
({ variant: t, size: e, asChild: o = !1, shape: n,
|
|
2933
|
+
({ variant: t, size: e, asChild: o = !1, shape: n, destructive: r, className: a, ...s }, l) => /* @__PURE__ */ f(
|
|
2916
2934
|
o ? So : "button",
|
|
2917
2935
|
{
|
|
2918
2936
|
"data-slot": "button",
|
|
2919
|
-
className:
|
|
2920
|
-
|
|
2921
|
-
|
|
2937
|
+
className: P(
|
|
2938
|
+
Ve({ variant: t, size: e, shape: n, destructive: r, className: a })
|
|
2939
|
+
),
|
|
2940
|
+
ref: l,
|
|
2941
|
+
...s
|
|
2922
2942
|
}
|
|
2923
2943
|
)
|
|
2924
2944
|
);
|
|
@@ -2975,7 +2995,7 @@ const bd = ({
|
|
|
2975
2995
|
"data-slot": "separator",
|
|
2976
2996
|
decorative: o,
|
|
2977
2997
|
orientation: e,
|
|
2978
|
-
className:
|
|
2998
|
+
className: P(
|
|
2979
2999
|
"volt-bg-gray-a5 volt-shrink-0 volt-data-[orientation=horizontal]:h-px volt-data-[orientation=horizontal]:w-full volt-data-[orientation=vertical]:h-full volt-data-[orientation=vertical]:w-px",
|
|
2980
3000
|
t
|
|
2981
3001
|
),
|
|
@@ -3004,7 +3024,7 @@ const bd = ({
|
|
|
3004
3024
|
role: "group",
|
|
3005
3025
|
"data-slot": "button-group",
|
|
3006
3026
|
"data-orientation": e,
|
|
3007
|
-
className:
|
|
3027
|
+
className: P(yd({ orientation: e }), t),
|
|
3008
3028
|
...o
|
|
3009
3029
|
}
|
|
3010
3030
|
), _b = ({
|
|
@@ -3014,7 +3034,7 @@ const bd = ({
|
|
|
3014
3034
|
}) => /* @__PURE__ */ f(
|
|
3015
3035
|
e ? So : "div",
|
|
3016
3036
|
{
|
|
3017
|
-
className:
|
|
3037
|
+
className: P(
|
|
3018
3038
|
"volt-bg-gray-a4 volt-flex volt-items-center volt-gap-2 volt-rounded-md volt-border volt-px-4 volt-py-3 volt-text-sm volt-font-medium volt-shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='volt-size-'])]:size-4",
|
|
3019
3039
|
t
|
|
3020
3040
|
),
|
|
@@ -3029,8 +3049,8 @@ const bd = ({
|
|
|
3029
3049
|
{
|
|
3030
3050
|
"data-slot": "volt-button-group-separator",
|
|
3031
3051
|
orientation: e,
|
|
3032
|
-
className:
|
|
3033
|
-
"volt-m-0 volt-relative volt-self-stretch volt-data-[orientation=vertical]:h-px",
|
|
3052
|
+
className: P(
|
|
3053
|
+
"volt-m-0 volt-relative volt-self-stretch volt-data-[orientation=vertical]:h-px volt-bg-transparent",
|
|
3034
3054
|
t
|
|
3035
3055
|
),
|
|
3036
3056
|
...o
|
|
@@ -3060,7 +3080,7 @@ var xd = [
|
|
|
3060
3080
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...l, ref: a });
|
|
3061
3081
|
});
|
|
3062
3082
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
3063
|
-
}, {}), Cd = "Label",
|
|
3083
|
+
}, {}), Cd = "Label", Na = i.forwardRef((t, e) => /* @__PURE__ */ f(
|
|
3064
3084
|
wd.label,
|
|
3065
3085
|
{
|
|
3066
3086
|
...t,
|
|
@@ -3071,8 +3091,8 @@ var xd = [
|
|
|
3071
3091
|
}
|
|
3072
3092
|
}
|
|
3073
3093
|
));
|
|
3074
|
-
|
|
3075
|
-
var Sd =
|
|
3094
|
+
Na.displayName = Cd;
|
|
3095
|
+
var Sd = Na;
|
|
3076
3096
|
const Ed = Et(
|
|
3077
3097
|
"volt-flex volt-items-center volt-gap-2 volt-leading-none volt-font-normal volt-group-data-[disabled=true]:pointer-events-none volt-group-data-[disabled=true]:opacity-50 volt-peer-disabled:cursor-not-allowed volt-peer-disabled:opacity-50 [[for]]:cursor-pointer",
|
|
3078
3098
|
{
|
|
@@ -3092,11 +3112,11 @@ const Ed = Et(
|
|
|
3092
3112
|
size: "base"
|
|
3093
3113
|
}
|
|
3094
3114
|
}
|
|
3095
|
-
),
|
|
3115
|
+
), Pa = ({ variant: t, size: e, className: o, ...n }) => /* @__PURE__ */ f(
|
|
3096
3116
|
Sd,
|
|
3097
3117
|
{
|
|
3098
3118
|
"data-slot": "label",
|
|
3099
|
-
className:
|
|
3119
|
+
className: P(Ed({ variant: t, size: e, className: o })),
|
|
3100
3120
|
...n
|
|
3101
3121
|
}
|
|
3102
3122
|
), Ia = uc(null), Eo = () => {
|
|
@@ -3112,7 +3132,7 @@ const Ed = Et(
|
|
|
3112
3132
|
"div",
|
|
3113
3133
|
{
|
|
3114
3134
|
"data-slot": "field-group",
|
|
3115
|
-
className:
|
|
3135
|
+
className: P(
|
|
3116
3136
|
"volt-group/field-group volt-@container/field-group volt-flex volt-w-full volt-flex-col volt-gap-2 volt-*:data-[slot=field-group]:gap-2 [&>div[data-slot=field]+[data-slot=field-description]]:pl-3",
|
|
3117
3137
|
{
|
|
3118
3138
|
"volt-flex-row": e === "row"
|
|
@@ -3128,7 +3148,7 @@ const Ed = Et(
|
|
|
3128
3148
|
"fieldset",
|
|
3129
3149
|
{
|
|
3130
3150
|
"data-slot": "field-set",
|
|
3131
|
-
className:
|
|
3151
|
+
className: P("volt-flex volt-flex-col volt-gap-6", t),
|
|
3132
3152
|
...e
|
|
3133
3153
|
}
|
|
3134
3154
|
), Td = Et(
|
|
@@ -3153,7 +3173,7 @@ const Ed = Et(
|
|
|
3153
3173
|
{
|
|
3154
3174
|
role: "group",
|
|
3155
3175
|
"data-slot": "field",
|
|
3156
|
-
className:
|
|
3176
|
+
className: P(Td({ variant: e }), t),
|
|
3157
3177
|
"data-focused": a ? "true" : "false",
|
|
3158
3178
|
onFocusCapture: () => s(!0),
|
|
3159
3179
|
onBlurCapture: () => s(!1),
|
|
@@ -3165,7 +3185,7 @@ const Ed = Et(
|
|
|
3165
3185
|
"div",
|
|
3166
3186
|
{
|
|
3167
3187
|
"data-slot": "field-content",
|
|
3168
|
-
className:
|
|
3188
|
+
className: P(
|
|
3169
3189
|
"volt-group/field-content volt-flex volt-flex-1 volt-flex-col volt-gap-2 volt-leading-snug",
|
|
3170
3190
|
t
|
|
3171
3191
|
),
|
|
@@ -3175,10 +3195,10 @@ const Ed = Et(
|
|
|
3175
3195
|
className: t,
|
|
3176
3196
|
...e
|
|
3177
3197
|
}) => /* @__PURE__ */ f(
|
|
3178
|
-
|
|
3198
|
+
Pa,
|
|
3179
3199
|
{
|
|
3180
3200
|
"data-slot": "field-label",
|
|
3181
|
-
className:
|
|
3201
|
+
className: P(
|
|
3182
3202
|
"volt-group/field-label volt-min-h-5 volt-text-xs volt-peer/field-label volt-flex volt-w-fit volt-gap-2 volt-leading-snug volt-group-data-[disabled=true]/field:opacity-50",
|
|
3183
3203
|
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border volt-*:data-[slot=field]:p-4",
|
|
3184
3204
|
"volt-has-data-[state=checked]:bg-accent-a3/5 volt-has-data-[state=checked]:border-accent-a3 volt-dark:has-data-[state=checked]:bg-accent-a3/10",
|
|
@@ -3194,7 +3214,7 @@ const Ed = Et(
|
|
|
3194
3214
|
"div",
|
|
3195
3215
|
{
|
|
3196
3216
|
"data-slot": "field-label-content",
|
|
3197
|
-
className:
|
|
3217
|
+
className: P(
|
|
3198
3218
|
"volt-inline-flex volt-items-center volt-gap-1 volt-transition-opacity",
|
|
3199
3219
|
{
|
|
3200
3220
|
"volt-w-0 volt-h-0 volt-opacity-0 volt-pointer-events-none volt-group-hover/field:w-auto volt-group-hover/field:h-auto volt-group-hover/field:opacity-100 volt-group-hover/field:pointer-events-auto": e
|
|
@@ -3224,7 +3244,7 @@ const Ed = Et(
|
|
|
3224
3244
|
"p",
|
|
3225
3245
|
{
|
|
3226
3246
|
"data-slot": "field-description",
|
|
3227
|
-
className:
|
|
3247
|
+
className: P(Rd({ variant: e }), t),
|
|
3228
3248
|
...o
|
|
3229
3249
|
}
|
|
3230
3250
|
), zb = ({
|
|
@@ -3258,7 +3278,7 @@ const Ed = Et(
|
|
|
3258
3278
|
{
|
|
3259
3279
|
role: "alert",
|
|
3260
3280
|
"data-slot": "field-error",
|
|
3261
|
-
className:
|
|
3281
|
+
className: P("volt-text-error-light volt-text-xs volt-font-normal", t),
|
|
3262
3282
|
...n,
|
|
3263
3283
|
children: r
|
|
3264
3284
|
}
|
|
@@ -3274,7 +3294,7 @@ const Ed = Et(
|
|
|
3274
3294
|
},
|
|
3275
3295
|
"data-readonly": e.readOnly,
|
|
3276
3296
|
"data-slot": "field-input",
|
|
3277
|
-
className:
|
|
3297
|
+
className: P(
|
|
3278
3298
|
"volt-group/field-input volt-w-full volt-h-6 volt-outline-none volt-text-sm volt-text-gray-default volt-focus-visible:outline-none volt-placeholder:text-gray-a8 volt-disabled:cursor-not-allowed",
|
|
3279
3299
|
t
|
|
3280
3300
|
),
|
|
@@ -3289,12 +3309,12 @@ const kd = ze(({ className: t, ...e }, o) => /* @__PURE__ */ f(
|
|
|
3289
3309
|
{
|
|
3290
3310
|
ref: o,
|
|
3291
3311
|
"data-slot": "field-input-group",
|
|
3292
|
-
className:
|
|
3312
|
+
className: P("volt-flex volt-items-center volt-gap-1", t),
|
|
3293
3313
|
...e
|
|
3294
3314
|
}
|
|
3295
3315
|
));
|
|
3296
3316
|
kd.displayName = "FieldInputGroup";
|
|
3297
|
-
const
|
|
3317
|
+
const Nd = Et(
|
|
3298
3318
|
"volt-text-gray-light volt-flex volt-h-auto volt-cursor-text volt-whitespace-nowrap volt-items-center volt-justify-center volt-gap-2 volt-text-sm volt-font-normal volt-select-none volt-group-data-[disabled=true]/input-group:opacity-50",
|
|
3299
3319
|
{
|
|
3300
3320
|
variants: {
|
|
@@ -3317,10 +3337,10 @@ const Pd = Et(
|
|
|
3317
3337
|
role: "group",
|
|
3318
3338
|
"data-slot": "input-group-addon",
|
|
3319
3339
|
"data-align": e,
|
|
3320
|
-
className:
|
|
3340
|
+
className: P(Nd({ align: e }), t),
|
|
3321
3341
|
...o
|
|
3322
3342
|
}
|
|
3323
|
-
),
|
|
3343
|
+
), Pd = ze(
|
|
3324
3344
|
({ className: t, resize: e = "none", ...o }, n) => {
|
|
3325
3345
|
const { inputRef: r } = Eo();
|
|
3326
3346
|
return /* @__PURE__ */ f(
|
|
@@ -3332,7 +3352,7 @@ const Pd = Et(
|
|
|
3332
3352
|
"data-readonly": o.readOnly,
|
|
3333
3353
|
"data-slot": "field-textarea",
|
|
3334
3354
|
"data-resize": e,
|
|
3335
|
-
className:
|
|
3355
|
+
className: P(
|
|
3336
3356
|
"volt-group/field-textarea volt-w-full volt-outline-none volt-text-sm volt-text-gray-default volt-focus-visible:outline-none volt-data-[resize=none]:resize-none volt-data-[resize=vertical]:resize-vertical volt-data-[resize=horizontal]:resize-horizontal volt-placeholder:text-gray-a8 volt-disabled:cursor-not-allowed",
|
|
3337
3357
|
t
|
|
3338
3358
|
),
|
|
@@ -3341,7 +3361,7 @@ const Pd = Et(
|
|
|
3341
3361
|
);
|
|
3342
3362
|
}
|
|
3343
3363
|
);
|
|
3344
|
-
|
|
3364
|
+
Pd.displayName = "FieldTextarea";
|
|
3345
3365
|
var Mr = 1, Id = 0.9, _d = 0.8, Dd = 0.17, rn = 0.1, an = 0.999, Od = 0.9999, Md = 0.99, Ld = /[\\\/_+.#"@\[\(\{&]/, $d = /[\\\/_+.#"@\[\(\{&]/g, Fd = /[\s-]/, _a = /[\s-]/g;
|
|
3346
3366
|
function yn(t, e, o, n, r, a, s) {
|
|
3347
3367
|
if (a === e.length) return r === t.length ? Mr : Md;
|
|
@@ -3502,7 +3522,7 @@ function Ud(t) {
|
|
|
3502
3522
|
const { children: r, ...a } = o;
|
|
3503
3523
|
if (i.isValidElement(r)) {
|
|
3504
3524
|
const s = Xd(r), l = Yd(a, r.props);
|
|
3505
|
-
return r.type !== i.Fragment && (l.ref = n ?
|
|
3525
|
+
return r.type !== i.Fragment && (l.ref = n ? Nt(n, s) : s), i.cloneElement(r, l);
|
|
3506
3526
|
}
|
|
3507
3527
|
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
3508
3528
|
});
|
|
@@ -3591,7 +3611,7 @@ var eu = "DismissableLayer", wn = "dismissableLayer.update", ou = "dismissableLa
|
|
|
3591
3611
|
} = t, u = i.useContext(Da), [v, d] = i.useState(null), m = (v == null ? void 0 : v.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = i.useState({}), y = nt(e, (T) => d(T)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = p.indexOf(h), x = v ? p.indexOf(v) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= b, E = su((T) => {
|
|
3592
3612
|
const S = T.target, z = [...u.branches].some((H) => H.contains(S));
|
|
3593
3613
|
!C || z || (r == null || r(T), s == null || s(T), T.defaultPrevented || l == null || l());
|
|
3594
|
-
}, m),
|
|
3614
|
+
}, m), N = lu((T) => {
|
|
3595
3615
|
const S = T.target;
|
|
3596
3616
|
[...u.branches].some((H) => H.contains(S)) || (a == null || a(T), s == null || s(T), T.defaultPrevented || l == null || l());
|
|
3597
3617
|
}, m);
|
|
@@ -3616,8 +3636,8 @@ var eu = "DismissableLayer", wn = "dismissableLayer.update", ou = "dismissableLa
|
|
|
3616
3636
|
pointerEvents: w ? C ? "auto" : "none" : void 0,
|
|
3617
3637
|
...t.style
|
|
3618
3638
|
},
|
|
3619
|
-
onFocusCapture: B(t.onFocusCapture,
|
|
3620
|
-
onBlurCapture: B(t.onBlurCapture,
|
|
3639
|
+
onFocusCapture: B(t.onFocusCapture, N.onFocusCapture),
|
|
3640
|
+
onBlurCapture: B(t.onBlurCapture, N.onBlurCapture),
|
|
3621
3641
|
onPointerDownCapture: B(
|
|
3622
3642
|
t.onPointerDownCapture,
|
|
3623
3643
|
E.onPointerDownCapture
|
|
@@ -4054,12 +4074,12 @@ var Fa = Au(), un = function() {
|
|
|
4054
4074
|
onScrollCapture: un,
|
|
4055
4075
|
onWheelCapture: un,
|
|
4056
4076
|
onTouchMoveCapture: un
|
|
4057
|
-
}), r = n[0], a = n[1], s = t.forwardProps, l = t.children, c = t.className, u = t.removeScrollBar, v = t.enabled, d = t.shards, m = t.sideCar, g = t.noRelative, y = t.noIsolation, p = t.inert, h = t.allowPinchZoom, b = t.as, x = b === void 0 ? "div" : b, w = t.gapMode, C = La(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m,
|
|
4077
|
+
}), r = n[0], a = n[1], s = t.forwardProps, l = t.children, c = t.className, u = t.removeScrollBar, v = t.enabled, d = t.shards, m = t.sideCar, g = t.noRelative, y = t.noIsolation, p = t.inert, h = t.allowPinchZoom, b = t.as, x = b === void 0 ? "div" : b, w = t.gapMode, C = La(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, N = Eu([o, e]), T = Lt(Lt({}, C), r);
|
|
4058
4078
|
return i.createElement(
|
|
4059
4079
|
i.Fragment,
|
|
4060
4080
|
null,
|
|
4061
4081
|
v && i.createElement(E, { sideCar: Fa, removeScrollBar: u, shards: d, noRelative: g, noIsolation: y, inert: p, setCallbacks: a, allowPinchZoom: !!h, lockRef: o, gapMode: w }),
|
|
4062
|
-
s ? i.cloneElement(i.Children.only(l), Lt(Lt({}, T), { ref:
|
|
4082
|
+
s ? i.cloneElement(i.Children.only(l), Lt(Lt({}, T), { ref: N })) : i.createElement(x, Lt({}, T, { className: c, ref: N }), l)
|
|
4063
4083
|
);
|
|
4064
4084
|
});
|
|
4065
4085
|
Ao.defaultProps = {
|
|
@@ -4071,16 +4091,16 @@ Ao.classNames = {
|
|
|
4071
4091
|
fullWidth: co,
|
|
4072
4092
|
zeroRight: io
|
|
4073
4093
|
};
|
|
4074
|
-
var
|
|
4094
|
+
var Nu = function() {
|
|
4075
4095
|
if (typeof __webpack_nonce__ < "u")
|
|
4076
4096
|
return __webpack_nonce__;
|
|
4077
4097
|
};
|
|
4078
|
-
function
|
|
4098
|
+
function Pu() {
|
|
4079
4099
|
if (!document)
|
|
4080
4100
|
return null;
|
|
4081
4101
|
var t = document.createElement("style");
|
|
4082
4102
|
t.type = "text/css";
|
|
4083
|
-
var e =
|
|
4103
|
+
var e = Nu();
|
|
4084
4104
|
return e && t.setAttribute("nonce", e), t;
|
|
4085
4105
|
}
|
|
4086
4106
|
function Iu(t, e) {
|
|
@@ -4094,7 +4114,7 @@ var Du = function() {
|
|
|
4094
4114
|
var t = 0, e = null;
|
|
4095
4115
|
return {
|
|
4096
4116
|
add: function(o) {
|
|
4097
|
-
t == 0 && (e =
|
|
4117
|
+
t == 0 && (e = Pu()) && (Iu(e, o), _u(e)), t++;
|
|
4098
4118
|
},
|
|
4099
4119
|
remove: function() {
|
|
4100
4120
|
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
@@ -4305,13 +4325,13 @@ function Qu(t) {
|
|
|
4305
4325
|
var l = i.useCallback(function(p, h) {
|
|
4306
4326
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4307
4327
|
return !s.current.allowPinchZoom;
|
|
4308
|
-
var b = no(p), x = o.current, w = "deltaX" in p ? p.deltaX : x[0] - b[0], C = "deltaY" in p ? p.deltaY : x[1] - b[1], E,
|
|
4309
|
-
if ("touches" in p && T === "h" &&
|
|
4328
|
+
var b = no(p), x = o.current, w = "deltaX" in p ? p.deltaX : x[0] - b[0], C = "deltaY" in p ? p.deltaY : x[1] - b[1], E, N = p.target, T = Math.abs(w) > Math.abs(C) ? "h" : "v";
|
|
4329
|
+
if ("touches" in p && T === "h" && N.type === "range")
|
|
4310
4330
|
return !1;
|
|
4311
|
-
var S = Gr(T,
|
|
4331
|
+
var S = Gr(T, N);
|
|
4312
4332
|
if (!S)
|
|
4313
4333
|
return !0;
|
|
4314
|
-
if (S ? E = T : (E = T === "v" ? "h" : "v", S = Gr(T,
|
|
4334
|
+
if (S ? E = T : (E = T === "v" ? "h" : "v", S = Gr(T, N)), !S)
|
|
4315
4335
|
return !1;
|
|
4316
4336
|
if (!n.current && "changedTouches" in p && (w || C) && (n.current = E), !E)
|
|
4317
4337
|
return !0;
|
|
@@ -4444,7 +4464,7 @@ function af(t) {
|
|
|
4444
4464
|
const { children: r, ...a } = o;
|
|
4445
4465
|
if (i.isValidElement(r)) {
|
|
4446
4466
|
const s = df(r), l = cf(a, r.props);
|
|
4447
|
-
return r.type !== i.Fragment && (l.ref = n ?
|
|
4467
|
+
return r.type !== i.Fragment && (l.ref = n ? Nt(n, s) : s), i.cloneElement(r, l);
|
|
4448
4468
|
}
|
|
4449
4469
|
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
4450
4470
|
});
|
|
@@ -4470,7 +4490,7 @@ function df(t) {
|
|
|
4470
4490
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, o = e && "isReactWarning" in e && e.isReactWarning;
|
|
4471
4491
|
return o ? t.ref : (e = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, o = e && "isReactWarning" in e && e.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
|
|
4472
4492
|
}
|
|
4473
|
-
var
|
|
4493
|
+
var No = "Dialog", [Ha, ja] = pt(No), [uf, Dt] = Ha(No), Ga = (t) => {
|
|
4474
4494
|
const {
|
|
4475
4495
|
__scopeDialog: e,
|
|
4476
4496
|
children: o,
|
|
@@ -4482,7 +4502,7 @@ var Po = "Dialog", [Ha, ja] = pt(Po), [uf, Dt] = Ha(Po), Ga = (t) => {
|
|
|
4482
4502
|
prop: n,
|
|
4483
4503
|
defaultProp: r ?? !1,
|
|
4484
4504
|
onChange: a,
|
|
4485
|
-
caller:
|
|
4505
|
+
caller: No
|
|
4486
4506
|
});
|
|
4487
4507
|
return /* @__PURE__ */ f(
|
|
4488
4508
|
uf,
|
|
@@ -4501,7 +4521,7 @@ var Po = "Dialog", [Ha, ja] = pt(Po), [uf, Dt] = Ha(Po), Ga = (t) => {
|
|
|
4501
4521
|
}
|
|
4502
4522
|
);
|
|
4503
4523
|
};
|
|
4504
|
-
Ga.displayName =
|
|
4524
|
+
Ga.displayName = No;
|
|
4505
4525
|
var Ua = "DialogTrigger", Ka = i.forwardRef(
|
|
4506
4526
|
(t, e) => {
|
|
4507
4527
|
const { __scopeDialog: o, ...n } = t, r = Dt(Ua, o), a = nt(e, r.triggerRef);
|
|
@@ -4695,7 +4715,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4695
4715
|
const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4696
4716
|
e && r && (document.getElementById(e) || console.warn(n));
|
|
4697
4717
|
}, [n, t, e]), null;
|
|
4698
|
-
}, Wn = Ga, ls = Ka, Hn = Ya, jn = Xa, Gn = Qa, is = ts, cs = os,
|
|
4718
|
+
}, Wn = Ga, ls = Ka, Hn = Ya, jn = Xa, Gn = Qa, is = ts, cs = os, Po = rs, wf = [
|
|
4699
4719
|
"a",
|
|
4700
4720
|
"button",
|
|
4701
4721
|
"div",
|
|
@@ -4723,28 +4743,28 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4723
4743
|
let o = Ce(() => {
|
|
4724
4744
|
var A, I;
|
|
4725
4745
|
return { search: "", value: (I = (A = t.value) != null ? A : t.defaultValue) != null ? I : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
4726
|
-
}), n = Ce(() => /* @__PURE__ */ new Set()), r = Ce(() => /* @__PURE__ */ new Map()), a = Ce(() => /* @__PURE__ */ new Map()), s = Ce(() => /* @__PURE__ */ new Set()), l = ms(t), { label: c, children: u, value: v, onValueChange: d, filter: m, shouldFilter: g, loop: y, disablePointerSelection: p = !1, vimBindings: h = !0, ...b } = t, x = ct(), w = ct(), C = ct(), E = i.useRef(null),
|
|
4746
|
+
}), n = Ce(() => /* @__PURE__ */ new Set()), r = Ce(() => /* @__PURE__ */ new Map()), a = Ce(() => /* @__PURE__ */ new Map()), s = Ce(() => /* @__PURE__ */ new Set()), l = ms(t), { label: c, children: u, value: v, onValueChange: d, filter: m, shouldFilter: g, loop: y, disablePointerSelection: p = !1, vimBindings: h = !0, ...b } = t, x = ct(), w = ct(), C = ct(), E = i.useRef(null), N = Of();
|
|
4727
4747
|
de(() => {
|
|
4728
4748
|
if (v !== void 0) {
|
|
4729
4749
|
let A = v.trim();
|
|
4730
4750
|
o.current.value = A, T.emit();
|
|
4731
4751
|
}
|
|
4732
4752
|
}, [v]), de(() => {
|
|
4733
|
-
|
|
4753
|
+
N(6, G);
|
|
4734
4754
|
}, []);
|
|
4735
4755
|
let T = i.useMemo(() => ({ subscribe: (A) => (s.current.add(A), () => s.current.delete(A)), snapshot: () => o.current, setState: (A, I, M) => {
|
|
4736
4756
|
var D, V, _, L;
|
|
4737
4757
|
if (!Object.is(o.current[A], I)) {
|
|
4738
|
-
if (o.current[A] = I, A === "search") Z(), H(),
|
|
4758
|
+
if (o.current[A] = I, A === "search") Z(), H(), N(1, Q);
|
|
4739
4759
|
else if (A === "value") {
|
|
4740
4760
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
4741
4761
|
let K = document.getElementById(C);
|
|
4742
4762
|
K ? K.focus() : (D = document.getElementById(x)) == null || D.focus();
|
|
4743
4763
|
}
|
|
4744
|
-
if (
|
|
4764
|
+
if (N(7, () => {
|
|
4745
4765
|
var K;
|
|
4746
4766
|
o.current.selectedItemId = (K = j()) == null ? void 0 : K.id, T.emit();
|
|
4747
|
-
}), M ||
|
|
4767
|
+
}), M || N(5, G), ((V = l.current) == null ? void 0 : V.value) !== void 0) {
|
|
4748
4768
|
let K = I ?? "";
|
|
4749
4769
|
(L = (_ = l.current).onValueChange) == null || L.call(_, K);
|
|
4750
4770
|
return;
|
|
@@ -4756,15 +4776,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4756
4776
|
s.current.forEach((A) => A());
|
|
4757
4777
|
} }), []), S = i.useMemo(() => ({ value: (A, I, M) => {
|
|
4758
4778
|
var D;
|
|
4759
|
-
I !== ((D = a.current.get(A)) == null ? void 0 : D.value) && (a.current.set(A, { value: I, keywords: M }), o.current.filtered.items.set(A, z(I, M)),
|
|
4779
|
+
I !== ((D = a.current.get(A)) == null ? void 0 : D.value) && (a.current.set(A, { value: I, keywords: M }), o.current.filtered.items.set(A, z(I, M)), N(2, () => {
|
|
4760
4780
|
H(), T.emit();
|
|
4761
4781
|
}));
|
|
4762
|
-
}, item: (A, I) => (n.current.add(A), I && (r.current.has(I) ? r.current.get(I).add(A) : r.current.set(I, /* @__PURE__ */ new Set([A]))),
|
|
4782
|
+
}, item: (A, I) => (n.current.add(A), I && (r.current.has(I) ? r.current.get(I).add(A) : r.current.set(I, /* @__PURE__ */ new Set([A]))), N(3, () => {
|
|
4763
4783
|
Z(), H(), o.current.value || Q(), T.emit();
|
|
4764
4784
|
}), () => {
|
|
4765
4785
|
a.current.delete(A), n.current.delete(A), o.current.filtered.items.delete(A);
|
|
4766
4786
|
let M = j();
|
|
4767
|
-
|
|
4787
|
+
N(4, () => {
|
|
4768
4788
|
Z(), (M == null ? void 0 : M.getAttribute("id")) === A && Q(), T.emit();
|
|
4769
4789
|
});
|
|
4770
4790
|
}), group: (A) => (r.current.has(A) || r.current.set(A, /* @__PURE__ */ new Set()), () => {
|
|
@@ -4900,29 +4920,29 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4900
4920
|
de(() => {
|
|
4901
4921
|
if (!u) return l.item(r, s == null ? void 0 : s.id);
|
|
4902
4922
|
}, [u]);
|
|
4903
|
-
let v = gs(r, a, [t.value, t.children, a], t.keywords), d = Un(), m = Qt((
|
|
4923
|
+
let v = gs(r, a, [t.value, t.children, a], t.keywords), d = Un(), m = Qt((N) => N.value && N.value === v.current), g = Qt((N) => u || l.filter() === !1 ? !0 : N.search ? N.filtered.items.get(r) > 0 : !0);
|
|
4904
4924
|
i.useEffect(() => {
|
|
4905
|
-
let
|
|
4906
|
-
if (!(!
|
|
4925
|
+
let N = a.current;
|
|
4926
|
+
if (!(!N || t.disabled)) return N.addEventListener(Sn, y), () => N.removeEventListener(Sn, y);
|
|
4907
4927
|
}, [g, t.onSelect, t.disabled]);
|
|
4908
4928
|
function y() {
|
|
4909
|
-
var
|
|
4910
|
-
p(), (T = (
|
|
4929
|
+
var N, T;
|
|
4930
|
+
p(), (T = (N = c.current).onSelect) == null || T.call(N, v.current);
|
|
4911
4931
|
}
|
|
4912
4932
|
function p() {
|
|
4913
4933
|
d.setState("value", v.current, !0);
|
|
4914
4934
|
}
|
|
4915
4935
|
if (!g) return null;
|
|
4916
4936
|
let { disabled: h, value: b, onSelect: x, forceMount: w, keywords: C, ...E } = t;
|
|
4917
|
-
return i.createElement(ee.div, { ref:
|
|
4937
|
+
return i.createElement(ee.div, { ref: Nt(a, e), ...E, id: r, "cmdk-item": "", role: "option", "aria-disabled": !!h, "aria-selected": !!m, "data-disabled": !!h, "data-selected": !!m, onPointerMove: h || l.getDisablePointerSelection() ? void 0 : p, onClick: h ? void 0 : y }, t.children);
|
|
4918
4938
|
}), Tf = i.forwardRef((t, e) => {
|
|
4919
4939
|
let { heading: o, children: n, forceMount: r, ...a } = t, s = ct(), l = i.useRef(null), c = i.useRef(null), u = ct(), v = He(), d = Qt((g) => r || v.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
|
|
4920
4940
|
de(() => v.group(s), []), gs(s, l, [t.value, t.heading, c]);
|
|
4921
4941
|
let m = i.useMemo(() => ({ id: s, forceMount: r }), [r]);
|
|
4922
|
-
return i.createElement(ee.div, { ref:
|
|
4942
|
+
return i.createElement(ee.div, { ref: Nt(l, e), ...a, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, o && i.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, o), Io(t, (g) => i.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": o ? u : void 0 }, i.createElement(vs.Provider, { value: m }, g))));
|
|
4923
4943
|
}), Rf = i.forwardRef((t, e) => {
|
|
4924
4944
|
let { alwaysRender: o, ...n } = t, r = i.useRef(null), a = Qt((s) => !s.search);
|
|
4925
|
-
return !o && !a ? null : i.createElement(ee.div, { ref:
|
|
4945
|
+
return !o && !a ? null : i.createElement(ee.div, { ref: Nt(r, e), ...n, "cmdk-separator": "", role: "separator" });
|
|
4926
4946
|
}), Af = i.forwardRef((t, e) => {
|
|
4927
4947
|
let { onValueChange: o, ...n } = t, r = t.value != null, a = Un(), s = Qt((u) => u.search), l = Qt((u) => u.selectedItemId), c = He();
|
|
4928
4948
|
return i.useEffect(() => {
|
|
@@ -4944,14 +4964,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
4944
4964
|
cancelAnimationFrame(d), m.unobserve(u);
|
|
4945
4965
|
};
|
|
4946
4966
|
}
|
|
4947
|
-
}, []), i.createElement(ee.div, { ref:
|
|
4948
|
-
}),
|
|
4967
|
+
}, []), i.createElement(ee.div, { ref: Nt(a, e), ...r, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": n, id: c.listId }, Io(t, (u) => i.createElement("div", { ref: Nt(s, c.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
4968
|
+
}), Nf = i.forwardRef((t, e) => {
|
|
4949
4969
|
let { open: o, onOpenChange: n, overlayClassName: r, contentClassName: a, container: s, ...l } = t;
|
|
4950
4970
|
return i.createElement(Wn, { open: o, onOpenChange: n }, i.createElement(Hn, { container: s }, i.createElement(jn, { "cmdk-overlay": "", className: r }), i.createElement(Gn, { "aria-label": t.label, "cmdk-dialog": "", className: a }, i.createElement(ps, { ref: e, ...l }))));
|
|
4951
|
-
}),
|
|
4971
|
+
}), Pf = i.forwardRef((t, e) => Qt((o) => o.filtered.count === 0) ? i.createElement(ee.div, { ref: e, ...t, "cmdk-empty": "", role: "presentation" }) : null), If = i.forwardRef((t, e) => {
|
|
4952
4972
|
let { progress: o, children: n, label: r = "Loading...", ...a } = t;
|
|
4953
4973
|
return i.createElement(ee.div, { ref: e, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": o, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": r }, Io(t, (s) => i.createElement("div", { "aria-hidden": !0 }, s)));
|
|
4954
|
-
}), oe = Object.assign(ps, { List: kf, Item: Ef, Input: Af, Group: Tf, Separator: Rf, Dialog:
|
|
4974
|
+
}), oe = Object.assign(ps, { List: kf, Item: Ef, Input: Af, Group: Tf, Separator: Rf, Dialog: Nf, Empty: Pf, Loading: If });
|
|
4955
4975
|
function _f(t, e) {
|
|
4956
4976
|
let o = t.nextElementSibling;
|
|
4957
4977
|
for (; o; ) {
|
|
@@ -5030,10 +5050,10 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5030
5050
|
className: t,
|
|
5031
5051
|
...e
|
|
5032
5052
|
}) => /* @__PURE__ */ f(
|
|
5033
|
-
|
|
5053
|
+
Po,
|
|
5034
5054
|
{
|
|
5035
5055
|
"data-slot": "dialog-close",
|
|
5036
|
-
className:
|
|
5056
|
+
className: P(
|
|
5037
5057
|
"volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8",
|
|
5038
5058
|
t
|
|
5039
5059
|
),
|
|
@@ -5046,7 +5066,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5046
5066
|
jn,
|
|
5047
5067
|
{
|
|
5048
5068
|
"data-slot": "dialog-overlay",
|
|
5049
|
-
className:
|
|
5069
|
+
className: P(
|
|
5050
5070
|
"volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-fixed volt-inset-0 volt-z-1300 volt-bg-black/50",
|
|
5051
5071
|
t
|
|
5052
5072
|
),
|
|
@@ -5062,7 +5082,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5062
5082
|
Gn,
|
|
5063
5083
|
{
|
|
5064
5084
|
"data-slot": "dialog-content",
|
|
5065
|
-
className:
|
|
5085
|
+
className: P(
|
|
5066
5086
|
"volt-bg-body volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-fixed volt-top-[50%] volt-left-[50%] volt-z-1300 volt-grid volt-w-full volt-max-w-[calc(100%-2rem)] volt-translate-x-[-50%] volt-translate-y-[-50%] volt-gap-6 volt-rounded-xl volt-border volt-border-gray-a1 volt-p-6 volt-shadow-lg",
|
|
5067
5087
|
{
|
|
5068
5088
|
"volt-sm:max-w-sm": n === "sm",
|
|
@@ -5081,7 +5101,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5081
5101
|
children: [
|
|
5082
5102
|
e,
|
|
5083
5103
|
o && /* @__PURE__ */ at(
|
|
5084
|
-
|
|
5104
|
+
Po,
|
|
5085
5105
|
{
|
|
5086
5106
|
"data-slot": "dialog-close",
|
|
5087
5107
|
className: "volt-absolute volt-top-4 volt-right-4 volt-rounded-full volt-cursor-pointer volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-focus-visible:outline-accent-a8 volt-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-size-'])]:size-4",
|
|
@@ -5097,14 +5117,14 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5097
5117
|
"div",
|
|
5098
5118
|
{
|
|
5099
5119
|
"data-slot": "volt-dialog-header",
|
|
5100
|
-
className:
|
|
5120
|
+
className: P("volt-flex volt-flex-col volt-gap-2 volt-text-left", t),
|
|
5101
5121
|
...e
|
|
5102
5122
|
}
|
|
5103
5123
|
), Yb = ({ className: t, ...e }) => /* @__PURE__ */ f(
|
|
5104
5124
|
"div",
|
|
5105
5125
|
{
|
|
5106
5126
|
"data-slot": "volt-dialog-footer",
|
|
5107
|
-
className:
|
|
5127
|
+
className: P("volt-flex volt-gap-2 volt-justify-end", t),
|
|
5108
5128
|
...e
|
|
5109
5129
|
}
|
|
5110
5130
|
), Xb = ({
|
|
@@ -5114,7 +5134,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5114
5134
|
is,
|
|
5115
5135
|
{
|
|
5116
5136
|
"data-slot": "volt-dialog-title",
|
|
5117
|
-
className:
|
|
5137
|
+
className: P("volt-text-lg volt-font-semibold volt-text-gray-default", t),
|
|
5118
5138
|
...e
|
|
5119
5139
|
}
|
|
5120
5140
|
), Qb = ({
|
|
@@ -5124,7 +5144,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5124
5144
|
cs,
|
|
5125
5145
|
{
|
|
5126
5146
|
"data-slot": "volt-dialog-description",
|
|
5127
|
-
className:
|
|
5147
|
+
className: P("volt-text-gray-light volt-text-sm", t),
|
|
5128
5148
|
...e
|
|
5129
5149
|
}
|
|
5130
5150
|
), Ff = (t) => /* @__PURE__ */ f(
|
|
@@ -5145,7 +5165,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5145
5165
|
oe,
|
|
5146
5166
|
{
|
|
5147
5167
|
"data-slot": "command",
|
|
5148
|
-
className:
|
|
5168
|
+
className: P(
|
|
5149
5169
|
"volt-bg-body volt-text-gray-default volt-flex volt-h-full volt-w-full volt-flex-col volt-overflow-hidden volt-rounded-md",
|
|
5150
5170
|
t
|
|
5151
5171
|
),
|
|
@@ -5165,7 +5185,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5165
5185
|
oe.Input,
|
|
5166
5186
|
{
|
|
5167
5187
|
"data-slot": "command-input",
|
|
5168
|
-
className:
|
|
5188
|
+
className: P(
|
|
5169
5189
|
"volt-placeholder:text-gray-light volt-h-12 volt-flex volt-w-full volt-rounded-md volt-bg-transparent volt-py-3 volt-text-sm volt-outline-hidden volt-disabled:cursor-not-allowed volt-disabled:opacity-50",
|
|
5170
5190
|
t
|
|
5171
5191
|
),
|
|
@@ -5181,7 +5201,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5181
5201
|
oe.List,
|
|
5182
5202
|
{
|
|
5183
5203
|
"data-slot": "command-list",
|
|
5184
|
-
className:
|
|
5204
|
+
className: P("volt-scroll-py-1 volt-overflow-x-hidden volt-overflow-y-auto", t),
|
|
5185
5205
|
...e
|
|
5186
5206
|
}
|
|
5187
5207
|
), Vf = ({
|
|
@@ -5200,7 +5220,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5200
5220
|
oe.Group,
|
|
5201
5221
|
{
|
|
5202
5222
|
"data-slot": "command-group",
|
|
5203
|
-
className:
|
|
5223
|
+
className: P(
|
|
5204
5224
|
"volt-text-foreground volt-**:[[cmdk-group-heading]]:text-gray-light volt-overflow-hidden volt-p-1 volt-**:[[cmdk-group-heading]]:px-2 volt-**:[[cmdk-group-heading]]:py-1.5 volt-**:[[cmdk-group-heading]]:text-xs volt-**:[[cmdk-group-heading]]:font-medium",
|
|
5205
5225
|
t
|
|
5206
5226
|
),
|
|
@@ -5213,7 +5233,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5213
5233
|
oe.Separator,
|
|
5214
5234
|
{
|
|
5215
5235
|
"data-slot": "command-separator",
|
|
5216
|
-
className:
|
|
5236
|
+
className: P("volt-bg-gray-soft volt--mx-1 volt-h-px", t),
|
|
5217
5237
|
...e
|
|
5218
5238
|
}
|
|
5219
5239
|
), jf = ({
|
|
@@ -5223,7 +5243,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5223
5243
|
oe.Item,
|
|
5224
5244
|
{
|
|
5225
5245
|
"data-slot": "command-item",
|
|
5226
|
-
className:
|
|
5246
|
+
className: P(
|
|
5227
5247
|
"volt-hover:bg-accent-a3 volt-focus-visible:bg-accent-a3 volt-text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-light volt-relative volt-flex volt-cursor-default volt-items-center volt-gap-2 volt-rounded-sm volt-px-2 volt-py-1.5 volt-text-sm volt-outline-hidden volt-select-none volt-data-[disabled=true]:pointer-events-none volt-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='volt-size-'])]:size-4",
|
|
5228
5248
|
t
|
|
5229
5249
|
),
|
|
@@ -5236,7 +5256,7 @@ const $f = (t) => /* @__PURE__ */ f(
|
|
|
5236
5256
|
oe.Loading,
|
|
5237
5257
|
{
|
|
5238
5258
|
"data-slot": "volt-command-loading",
|
|
5239
|
-
className:
|
|
5259
|
+
className: P("volt-text-gray-light", t),
|
|
5240
5260
|
...e
|
|
5241
5261
|
}
|
|
5242
5262
|
), Uf = ["top", "right", "bottom", "left"], Jt = Math.min, xt = Math.max, mo = Math.round, so = Math.floor, Ft = (t) => ({
|
|
@@ -5520,9 +5540,9 @@ const av = (t) => ({
|
|
|
5520
5540
|
const d = hs(v), m = {
|
|
5521
5541
|
x: o,
|
|
5522
5542
|
y: n
|
|
5523
|
-
}, g = Yn(r), y = Zn(g), p = await s.getDimensions(u), h = g === "y", b = h ? "top" : "left", x = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", C = a.reference[y] + a.reference[g] - m[g] - a.floating[y], E = m[g] - a.reference[g],
|
|
5524
|
-
let T =
|
|
5525
|
-
(!T || !await (s.isElement == null ? void 0 : s.isElement(
|
|
5543
|
+
}, g = Yn(r), y = Zn(g), p = await s.getDimensions(u), h = g === "y", b = h ? "top" : "left", x = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", C = a.reference[y] + a.reference[g] - m[g] - a.floating[y], E = m[g] - a.reference[g], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
5544
|
+
let T = N ? N[w] : 0;
|
|
5545
|
+
(!T || !await (s.isElement == null ? void 0 : s.isElement(N))) && (T = l.floating[w] || a.floating[y]);
|
|
5526
5546
|
const S = C / 2 - E / 2, z = T / 2 - p[y] / 2 - 1, H = Jt(d[b], z), Q = Jt(d[x], z), Z = H, G = T - p[y] - Q, j = T / 2 - p[y] / 2 + S, U = En(Z, j, G), O = !c.arrow && Ie(r) != null && j !== U && a.reference[y] / 2 - (j < Z ? H : Q) - p[y] / 2 < 0, q = O ? j < Z ? j - Z : j - G : 0;
|
|
5527
5547
|
return {
|
|
5528
5548
|
[g]: m[g] + q,
|
|
@@ -5560,8 +5580,8 @@ const av = (t) => ({
|
|
|
5560
5580
|
} = Wt(t, e);
|
|
5561
5581
|
if ((o = a.arrow) != null && o.alignmentOffset)
|
|
5562
5582
|
return {};
|
|
5563
|
-
const b = Ht(r), x = $t(l), w = Ht(l) === l, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = m || (w || !p ? [go(l)] : Qf(l)),
|
|
5564
|
-
!m &&
|
|
5583
|
+
const b = Ht(r), x = $t(l), w = Ht(l) === l, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = m || (w || !p ? [go(l)] : Qf(l)), N = y !== "none";
|
|
5584
|
+
!m && N && E.push(...ov(l, p, y, C));
|
|
5565
5585
|
const T = [l, ...E], S = await Fe(e, h), z = [];
|
|
5566
5586
|
let H = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
5567
5587
|
if (v && z.push(S[b]), d) {
|
|
@@ -5592,7 +5612,7 @@ const av = (t) => ({
|
|
|
5592
5612
|
case "bestFit": {
|
|
5593
5613
|
var G;
|
|
5594
5614
|
const q = (G = H.filter((R) => {
|
|
5595
|
-
if (
|
|
5615
|
+
if (N) {
|
|
5596
5616
|
const tt = $t(R.placement);
|
|
5597
5617
|
return tt === x || // Create a bias to the `y` side axis due to horizontal
|
|
5598
5618
|
// reading directions favoring greater width.
|
|
@@ -5809,8 +5829,8 @@ const cv = function(t) {
|
|
|
5809
5829
|
}
|
|
5810
5830
|
if (u) {
|
|
5811
5831
|
var b, x;
|
|
5812
|
-
const w = m === "y" ? "width" : "height", C = bs.has(Ht(r)), E = a.reference[d] - a.floating[w] + (C && ((b = s.offset) == null ? void 0 : b[d]) || 0) + (C ? 0 : h.crossAxis),
|
|
5813
|
-
y < E ? y = E : y >
|
|
5832
|
+
const w = m === "y" ? "width" : "height", C = bs.has(Ht(r)), E = a.reference[d] - a.floating[w] + (C && ((b = s.offset) == null ? void 0 : b[d]) || 0) + (C ? 0 : h.crossAxis), N = a.reference[d] + a.reference[w] + (C ? 0 : ((x = s.offset) == null ? void 0 : x[d]) || 0) - (C ? h.crossAxis : 0);
|
|
5833
|
+
y < E ? y = E : y > N && (y = N);
|
|
5814
5834
|
}
|
|
5815
5835
|
return {
|
|
5816
5836
|
[m]: g,
|
|
@@ -5839,9 +5859,9 @@ const cv = function(t) {
|
|
|
5839
5859
|
} = a.floating;
|
|
5840
5860
|
let h, b;
|
|
5841
5861
|
d === "top" || d === "bottom" ? (h = d, b = m === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = d, h = m === "end" ? "top" : "bottom");
|
|
5842
|
-
const x = p - v.top - v.bottom, w = y - v.left - v.right, C = Jt(p - v[h], x), E = Jt(y - v[b], w),
|
|
5862
|
+
const x = p - v.top - v.bottom, w = y - v.left - v.right, C = Jt(p - v[h], x), E = Jt(y - v[b], w), N = !e.middlewareData.shift;
|
|
5843
5863
|
let T = C, S = E;
|
|
5844
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && (S = w), (n = e.middlewareData.shift) != null && n.enabled.y && (T = x),
|
|
5864
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && (S = w), (n = e.middlewareData.shift) != null && n.enabled.y && (T = x), N && !m) {
|
|
5845
5865
|
const H = xt(v.left, 0), Q = xt(v.right, 0), Z = xt(v.top, 0), G = xt(v.bottom, 0);
|
|
5846
5866
|
g ? S = y - 2 * (H !== 0 || Q !== 0 ? H + Q : xt(v.left, v.right)) : T = p - 2 * (Z !== 0 || G !== 0 ? Z + G : xt(v.top, v.bottom));
|
|
5847
5867
|
}
|
|
@@ -5876,7 +5896,7 @@ function Bt(t) {
|
|
|
5876
5896
|
function ys(t) {
|
|
5877
5897
|
return _o() ? t instanceof Node || t instanceof wt(t).Node : !1;
|
|
5878
5898
|
}
|
|
5879
|
-
function
|
|
5899
|
+
function Pt(t) {
|
|
5880
5900
|
return _o() ? t instanceof Element || t instanceof wt(t).Element : !1;
|
|
5881
5901
|
}
|
|
5882
5902
|
function qt(t) {
|
|
@@ -5911,7 +5931,7 @@ function Do(t) {
|
|
|
5911
5931
|
}
|
|
5912
5932
|
const hv = ["transform", "translate", "scale", "rotate", "perspective"], bv = ["transform", "translate", "scale", "rotate", "perspective", "filter"], yv = ["paint", "layout", "strict", "content"];
|
|
5913
5933
|
function Xn(t) {
|
|
5914
|
-
const e = Qn(), o =
|
|
5934
|
+
const e = Qn(), o = Pt(t) ? It(t) : t;
|
|
5915
5935
|
return hv.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || bv.some((n) => (o.willChange || "").includes(n)) || yv.some((n) => (o.contain || "").includes(n));
|
|
5916
5936
|
}
|
|
5917
5937
|
function xv(t) {
|
|
@@ -5936,7 +5956,7 @@ function It(t) {
|
|
|
5936
5956
|
return wt(t).getComputedStyle(t);
|
|
5937
5957
|
}
|
|
5938
5958
|
function Oo(t) {
|
|
5939
|
-
return
|
|
5959
|
+
return Pt(t) ? {
|
|
5940
5960
|
scrollLeft: t.scrollLeft,
|
|
5941
5961
|
scrollTop: t.scrollTop
|
|
5942
5962
|
} : {
|
|
@@ -5984,7 +6004,7 @@ function ws(t) {
|
|
|
5984
6004
|
};
|
|
5985
6005
|
}
|
|
5986
6006
|
function Jn(t) {
|
|
5987
|
-
return
|
|
6007
|
+
return Pt(t) ? t : t.contextElement;
|
|
5988
6008
|
}
|
|
5989
6009
|
function Ee(t) {
|
|
5990
6010
|
const e = Jn(t);
|
|
@@ -6016,11 +6036,11 @@ function ue(t, e, o, n) {
|
|
|
6016
6036
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
6017
6037
|
const r = t.getBoundingClientRect(), a = Jn(t);
|
|
6018
6038
|
let s = Ft(1);
|
|
6019
|
-
e && (n ?
|
|
6039
|
+
e && (n ? Pt(n) && (s = Ee(n)) : s = Ee(t));
|
|
6020
6040
|
const l = Sv(a, o, n) ? Cs(a) : Ft(0);
|
|
6021
6041
|
let c = (r.left + l.x) / s.x, u = (r.top + l.y) / s.y, v = r.width / s.x, d = r.height / s.y;
|
|
6022
6042
|
if (a) {
|
|
6023
|
-
const m = wt(a), g = n &&
|
|
6043
|
+
const m = wt(a), g = n && Pt(n) ? wt(n) : n;
|
|
6024
6044
|
let y = m, p = Rn(y);
|
|
6025
6045
|
for (; p && n && g !== y; ) {
|
|
6026
6046
|
const h = Ee(p), b = p.getBoundingClientRect(), x = It(p), w = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * h.x, C = b.top + (p.clientTop + parseFloat(x.paddingTop)) * h.y;
|
|
@@ -6108,7 +6128,7 @@ function Av(t, e) {
|
|
|
6108
6128
|
};
|
|
6109
6129
|
}
|
|
6110
6130
|
const kv = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6111
|
-
function
|
|
6131
|
+
function Nv(t, e) {
|
|
6112
6132
|
const o = ue(t, !0, e === "fixed"), n = o.top + t.clientTop, r = o.left + t.clientLeft, a = qt(t) ? Ee(t) : Ft(1), s = t.clientWidth * a.x, l = t.clientHeight * a.y, c = r * a.x, u = n * a.y;
|
|
6113
6133
|
return {
|
|
6114
6134
|
width: s,
|
|
@@ -6123,8 +6143,8 @@ function na(t, e, o) {
|
|
|
6123
6143
|
n = Av(t, o);
|
|
6124
6144
|
else if (e === "document")
|
|
6125
6145
|
n = Rv(Bt(t));
|
|
6126
|
-
else if (
|
|
6127
|
-
n =
|
|
6146
|
+
else if (Pt(e))
|
|
6147
|
+
n = Nv(e, o);
|
|
6128
6148
|
else {
|
|
6129
6149
|
const r = Cs(t);
|
|
6130
6150
|
n = {
|
|
@@ -6138,16 +6158,16 @@ function na(t, e, o) {
|
|
|
6138
6158
|
}
|
|
6139
6159
|
function Es(t, e) {
|
|
6140
6160
|
const o = te(t);
|
|
6141
|
-
return o === e || !
|
|
6161
|
+
return o === e || !Pt(o) || Re(o) ? !1 : It(o).position === "fixed" || Es(o, e);
|
|
6142
6162
|
}
|
|
6143
|
-
function
|
|
6163
|
+
function Pv(t, e) {
|
|
6144
6164
|
const o = e.get(t);
|
|
6145
6165
|
if (o)
|
|
6146
6166
|
return o;
|
|
6147
|
-
let n = qe(t, [], !1).filter((l) =>
|
|
6167
|
+
let n = qe(t, [], !1).filter((l) => Pt(l) && _e(l) !== "body"), r = null;
|
|
6148
6168
|
const a = It(t).position === "fixed";
|
|
6149
6169
|
let s = a ? te(t) : t;
|
|
6150
|
-
for (;
|
|
6170
|
+
for (; Pt(s) && !Re(s); ) {
|
|
6151
6171
|
const l = It(s), c = Xn(s);
|
|
6152
6172
|
!c && l.position === "fixed" && (r = null), (a ? !c && !r : !c && l.position === "static" && !!r && kv.has(r.position) || je(s) && !c && Es(t, s)) ? n = n.filter((v) => v !== s) : r = l, s = te(s);
|
|
6153
6173
|
}
|
|
@@ -6160,7 +6180,7 @@ function Iv(t) {
|
|
|
6160
6180
|
rootBoundary: n,
|
|
6161
6181
|
strategy: r
|
|
6162
6182
|
} = t;
|
|
6163
|
-
const s = [...o === "clippingAncestors" ? Do(e) ? [] :
|
|
6183
|
+
const s = [...o === "clippingAncestors" ? Do(e) ? [] : Pv(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((u, v) => {
|
|
6164
6184
|
const d = na(e, v, r);
|
|
6165
6185
|
return u.top = xt(d.top, u.top), u.right = Jt(d.right, u.right), u.bottom = Jt(d.bottom, u.bottom), u.left = xt(d.left, u.left), u;
|
|
6166
6186
|
}, na(e, l, r));
|
|
@@ -6223,7 +6243,7 @@ function Ts(t, e) {
|
|
|
6223
6243
|
if (!qt(t)) {
|
|
6224
6244
|
let r = te(t);
|
|
6225
6245
|
for (; r && !Re(r); ) {
|
|
6226
|
-
if (
|
|
6246
|
+
if (Pt(r) && !mn(r))
|
|
6227
6247
|
return r;
|
|
6228
6248
|
r = te(r);
|
|
6229
6249
|
}
|
|
@@ -6258,7 +6278,7 @@ const Lv = {
|
|
|
6258
6278
|
getClientRects: Tv,
|
|
6259
6279
|
getDimensions: _v,
|
|
6260
6280
|
getScale: Ee,
|
|
6261
|
-
isElement:
|
|
6281
|
+
isElement: Pt,
|
|
6262
6282
|
isRTL: Mv
|
|
6263
6283
|
};
|
|
6264
6284
|
function Rs(t, e) {
|
|
@@ -6286,8 +6306,8 @@ function $v(t, e) {
|
|
|
6286
6306
|
threshold: xt(0, Jt(1, c)) || 1
|
|
6287
6307
|
};
|
|
6288
6308
|
let C = !0;
|
|
6289
|
-
function E(
|
|
6290
|
-
const T =
|
|
6309
|
+
function E(N) {
|
|
6310
|
+
const T = N[0].intersectionRatio;
|
|
6291
6311
|
if (T !== c) {
|
|
6292
6312
|
if (!C)
|
|
6293
6313
|
return s();
|
|
@@ -6428,18 +6448,18 @@ function Kv(t) {
|
|
|
6428
6448
|
}), [m, g] = i.useState(n);
|
|
6429
6449
|
bo(m, n) || g(n);
|
|
6430
6450
|
const [y, p] = i.useState(null), [h, b] = i.useState(null), x = i.useCallback((R) => {
|
|
6431
|
-
R !==
|
|
6451
|
+
R !== N.current && (N.current = R, p(R));
|
|
6432
6452
|
}, []), w = i.useCallback((R) => {
|
|
6433
6453
|
R !== T.current && (T.current = R, b(R));
|
|
6434
|
-
}, []), C = a || y, E = s || h,
|
|
6435
|
-
if (!
|
|
6454
|
+
}, []), C = a || y, E = s || h, N = i.useRef(null), T = i.useRef(null), S = i.useRef(v), z = c != null, H = gn(c), Q = gn(r), Z = gn(u), G = i.useCallback(() => {
|
|
6455
|
+
if (!N.current || !T.current)
|
|
6436
6456
|
return;
|
|
6437
6457
|
const R = {
|
|
6438
6458
|
placement: e,
|
|
6439
6459
|
strategy: o,
|
|
6440
6460
|
middleware: m
|
|
6441
6461
|
};
|
|
6442
|
-
Q.current && (R.platform = Q.current), jv(
|
|
6462
|
+
Q.current && (R.platform = Q.current), jv(N.current, T.current, R).then((tt) => {
|
|
6443
6463
|
const rt = {
|
|
6444
6464
|
...tt,
|
|
6445
6465
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -6463,14 +6483,14 @@ function Kv(t) {
|
|
|
6463
6483
|
uo(() => (j.current = !0, () => {
|
|
6464
6484
|
j.current = !1;
|
|
6465
6485
|
}), []), uo(() => {
|
|
6466
|
-
if (C && (
|
|
6486
|
+
if (C && (N.current = C), E && (T.current = E), C && E) {
|
|
6467
6487
|
if (H.current)
|
|
6468
6488
|
return H.current(C, E, G);
|
|
6469
6489
|
G();
|
|
6470
6490
|
}
|
|
6471
6491
|
}, [C, E, G, H, z]);
|
|
6472
6492
|
const U = i.useMemo(() => ({
|
|
6473
|
-
reference:
|
|
6493
|
+
reference: N,
|
|
6474
6494
|
floating: T,
|
|
6475
6495
|
setReference: x,
|
|
6476
6496
|
setFloating: w
|
|
@@ -6588,14 +6608,14 @@ function Lo(t) {
|
|
|
6588
6608
|
o(void 0);
|
|
6589
6609
|
}, [t]), e;
|
|
6590
6610
|
}
|
|
6591
|
-
var tr = "Popper", [
|
|
6611
|
+
var tr = "Popper", [Ns, De] = pt(tr), [ap, Ps] = Ns(tr), Is = (t) => {
|
|
6592
6612
|
const { __scopePopper: e, children: o } = t, [n, r] = i.useState(null);
|
|
6593
6613
|
return /* @__PURE__ */ f(ap, { scope: e, anchor: n, onAnchorChange: r, children: o });
|
|
6594
6614
|
};
|
|
6595
6615
|
Is.displayName = tr;
|
|
6596
6616
|
var _s = "PopperAnchor", Ds = i.forwardRef(
|
|
6597
6617
|
(t, e) => {
|
|
6598
|
-
const { __scopePopper: o, virtualRef: n, ...r } = t, a =
|
|
6618
|
+
const { __scopePopper: o, virtualRef: n, ...r } = t, a = Ps(_s, o), s = i.useRef(null), l = nt(e, s), c = i.useRef(null);
|
|
6599
6619
|
return i.useEffect(() => {
|
|
6600
6620
|
const u = c.current;
|
|
6601
6621
|
c.current = (n == null ? void 0 : n.current) || s.current, u !== c.current && a.onAnchorChange(c.current);
|
|
@@ -6603,7 +6623,7 @@ var _s = "PopperAnchor", Ds = i.forwardRef(
|
|
|
6603
6623
|
}
|
|
6604
6624
|
);
|
|
6605
6625
|
Ds.displayName = _s;
|
|
6606
|
-
var er = "PopperContent", [sp, lp] =
|
|
6626
|
+
var er = "PopperContent", [sp, lp] = Ns(er), Os = i.forwardRef(
|
|
6607
6627
|
(t, e) => {
|
|
6608
6628
|
var _, L, K, Y, ot, J;
|
|
6609
6629
|
const {
|
|
@@ -6621,7 +6641,7 @@ var er = "PopperContent", [sp, lp] = Ps(er), Os = i.forwardRef(
|
|
|
6621
6641
|
updatePositionStrategy: g = "optimized",
|
|
6622
6642
|
onPlaced: y,
|
|
6623
6643
|
...p
|
|
6624
|
-
} = t, h =
|
|
6644
|
+
} = t, h = Ps(er, o), [b, x] = i.useState(null), w = nt(e, (vt) => x(vt)), [C, E] = i.useState(null), N = Lo(C), T = (N == null ? void 0 : N.width) ?? 0, S = (N == null ? void 0 : N.height) ?? 0, z = n + (a !== "center" ? "-" + a : ""), H = typeof v == "number" ? v : { top: 0, right: 0, bottom: 0, left: 0, ...v }, Q = Array.isArray(u) ? u : [u], Z = Q.length > 0, G = {
|
|
6625
6645
|
padding: H,
|
|
6626
6646
|
boundary: Q.filter(cp),
|
|
6627
6647
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6805,7 +6825,7 @@ function fp(t) {
|
|
|
6805
6825
|
const { children: r, ...a } = o;
|
|
6806
6826
|
if (i.isValidElement(r)) {
|
|
6807
6827
|
const s = gp(r), l = mp(a, r.props);
|
|
6808
|
-
return r.type !== i.Fragment && (l.ref = n ?
|
|
6828
|
+
return r.type !== i.Fragment && (l.ref = n ? Nt(n, s) : s), i.cloneElement(r, l);
|
|
6809
6829
|
}
|
|
6810
6830
|
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
6811
6831
|
});
|
|
@@ -7042,10 +7062,10 @@ Tp.displayName = Ep;
|
|
|
7042
7062
|
function Ks(t) {
|
|
7043
7063
|
return t ? "open" : "closed";
|
|
7044
7064
|
}
|
|
7045
|
-
var Rp = qs, Ap = zs, kp = Ws,
|
|
7065
|
+
var Rp = qs, Ap = zs, kp = Ws, Np = Hs, Pp = js;
|
|
7046
7066
|
const Jb = ({
|
|
7047
7067
|
...t
|
|
7048
|
-
}) => /* @__PURE__ */ f(
|
|
7068
|
+
}) => /* @__PURE__ */ f(Np, { "data-slot": "popover-portal", ...t }), Ip = ({
|
|
7049
7069
|
...t
|
|
7050
7070
|
}) => /* @__PURE__ */ f(Rp, { "data-slot": "popover", ...t }), _p = ({
|
|
7051
7071
|
...t
|
|
@@ -7055,12 +7075,12 @@ const Jb = ({
|
|
|
7055
7075
|
sideOffset: o = 4,
|
|
7056
7076
|
...n
|
|
7057
7077
|
}) => /* @__PURE__ */ f(
|
|
7058
|
-
|
|
7078
|
+
Pp,
|
|
7059
7079
|
{
|
|
7060
7080
|
"data-slot": "popover-content",
|
|
7061
7081
|
align: e,
|
|
7062
7082
|
sideOffset: o,
|
|
7063
|
-
className:
|
|
7083
|
+
className: P(
|
|
7064
7084
|
"volt-bg-body volt-text-gray-default volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-z-50 volt-origin-(--radix-popover-content-transform-origin) volt-rounded-xl volt-border volt-border-gray-a1 volt-p-6 volt-shadow-md volt-outline-hidden",
|
|
7065
7085
|
t
|
|
7066
7086
|
),
|
|
@@ -7108,17 +7128,17 @@ const Jb = ({
|
|
|
7108
7128
|
Wf,
|
|
7109
7129
|
{
|
|
7110
7130
|
"data-slot": "combobox-group",
|
|
7111
|
-
className:
|
|
7131
|
+
className: P("volt-p-0!", t),
|
|
7112
7132
|
...e
|
|
7113
7133
|
}
|
|
7114
7134
|
), n0 = ({
|
|
7115
7135
|
className: t,
|
|
7116
7136
|
...e
|
|
7117
7137
|
}) => /* @__PURE__ */ f(
|
|
7118
|
-
|
|
7138
|
+
Pa,
|
|
7119
7139
|
{
|
|
7120
7140
|
"data-slot": "combobox-group-label",
|
|
7121
|
-
className:
|
|
7141
|
+
className: P("volt-text-gray volt-font-semibold volt-px-2 volt-py-2 volt-text-xs", t),
|
|
7122
7142
|
...e
|
|
7123
7143
|
}
|
|
7124
7144
|
), r0 = ({
|
|
@@ -7129,8 +7149,8 @@ const Jb = ({
|
|
|
7129
7149
|
"div",
|
|
7130
7150
|
{
|
|
7131
7151
|
"data-slot": "combobox-value",
|
|
7132
|
-
className:
|
|
7133
|
-
"volt-text-gray-default volt-w-full volt-text-left volt-flex-wrap volt-flex volt-gap-2 volt-relative",
|
|
7152
|
+
className: P(
|
|
7153
|
+
"volt-text-gray-default volt-w-full volt-text-left volt-flex-wrap volt-flex volt-gap-2 volt-relative volt-whitespace-normal",
|
|
7134
7154
|
t
|
|
7135
7155
|
),
|
|
7136
7156
|
...o,
|
|
@@ -7145,7 +7165,7 @@ const Jb = ({
|
|
|
7145
7165
|
r && (r.current = a), typeof n == "function" ? n(a) : n && (n.current = a);
|
|
7146
7166
|
},
|
|
7147
7167
|
"data-slot": "select-trigger",
|
|
7148
|
-
className:
|
|
7168
|
+
className: P(
|
|
7149
7169
|
"volt-group volt-data-placeholder:text-gray-a8 volt-w-full volt-flex volt-items-center volt-justify-between volt-gap-2 volt-rounded-lg volt-bg-transparent volt-text-sm volt-whitespace-nowrap volt-transition-[color,box-shadow] volt-outline-none volt-disabled:cursor-not-allowed volt-disabled:opacity-50 volt-*:data-[slot=select-value]:line-clamp-1 volt-*:data-[slot=select-value]:flex volt-*:data-[slot=select-value]:items-center volt-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
7150
7170
|
t
|
|
7151
7171
|
),
|
|
@@ -7164,7 +7184,7 @@ const Jb = ({
|
|
|
7164
7184
|
Dp,
|
|
7165
7185
|
{
|
|
7166
7186
|
"data-slot": "combobox-content",
|
|
7167
|
-
className:
|
|
7187
|
+
className: P(
|
|
7168
7188
|
"volt-bg-body volt-p-0! volt-gap-1 volt-text-gray-default volt-data-[selected=open]:animate-in volt-data-[selected=closed]:animate-out volt-data-[selected=closed]:fade-out-0 volt-data-[selected=open]:fade-in-0 volt-data-[selected=closed]:zoom-out-95 volt-data-[selected=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-relative volt-z-50 volt-origin-(--radix-select-content-transform-origin) volt-overflow-x-hidden volt-overflow-y-auto volt-rounded-2xl volt-border volt-border-transparent volt-shadow-md",
|
|
7169
7189
|
"volt-w-(--radix-popover-trigger-width) volt-max-h-(--radix-popper-available-height)"
|
|
7170
7190
|
),
|
|
@@ -7173,7 +7193,7 @@ const Jb = ({
|
|
|
7173
7193
|
qf,
|
|
7174
7194
|
{
|
|
7175
7195
|
"data-slot": "combobox-command",
|
|
7176
|
-
className:
|
|
7196
|
+
className: P("volt-w-full volt-rounded-none", t),
|
|
7177
7197
|
children: e
|
|
7178
7198
|
}
|
|
7179
7199
|
)
|
|
@@ -7185,7 +7205,7 @@ const Jb = ({
|
|
|
7185
7205
|
Bf,
|
|
7186
7206
|
{
|
|
7187
7207
|
"data-slot": "combobox-command-input",
|
|
7188
|
-
className:
|
|
7208
|
+
className: P("volt-w-full volt-placeholder:text-gray-a8", t),
|
|
7189
7209
|
...e
|
|
7190
7210
|
}
|
|
7191
7211
|
), i0 = ({
|
|
@@ -7195,7 +7215,7 @@ const Jb = ({
|
|
|
7195
7215
|
zf,
|
|
7196
7216
|
{
|
|
7197
7217
|
"data-slot": "combobox-command-list",
|
|
7198
|
-
className:
|
|
7218
|
+
className: P("volt-p-2", t),
|
|
7199
7219
|
...e
|
|
7200
7220
|
}
|
|
7201
7221
|
), c0 = ({
|
|
@@ -7206,7 +7226,7 @@ const Jb = ({
|
|
|
7206
7226
|
jf,
|
|
7207
7227
|
{
|
|
7208
7228
|
"data-slot": "combobox-item",
|
|
7209
|
-
className:
|
|
7229
|
+
className: P(
|
|
7210
7230
|
"volt-pl-3 volt-py-1.5 volt-not-first:mt-0.5 volt-text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-default volt-relative volt-flex volt-w-full volt-cursor-default volt-items-center volt-gap-2 volt-rounded-md! volt-pr-8 volt-text-sm volt-outline-none volt-select-none volt-data-[disabled=true]:pointer-events-none volt-data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-*:[span]:last:flex volt-*:[span]:last:items-center volt-*:[span]:last:gap-2",
|
|
7211
7231
|
"volt-data-[checked=true]:bg-accent-a3",
|
|
7212
7232
|
t
|
|
@@ -7221,7 +7241,7 @@ const Jb = ({
|
|
|
7221
7241
|
Vf,
|
|
7222
7242
|
{
|
|
7223
7243
|
"data-slot": "volt-combobox-empty",
|
|
7224
|
-
className:
|
|
7244
|
+
className: P("volt-py-6 volt-text-center volt-text-gray-default volt-text-sm", t),
|
|
7225
7245
|
...e
|
|
7226
7246
|
}
|
|
7227
7247
|
), u0 = ({
|
|
@@ -7231,7 +7251,7 @@ const Jb = ({
|
|
|
7231
7251
|
Hf,
|
|
7232
7252
|
{
|
|
7233
7253
|
"data-slot": "volt-select-separator",
|
|
7234
|
-
className:
|
|
7254
|
+
className: P(
|
|
7235
7255
|
"volt-bg-gray-soft volt-pointer-events-none volt--mx-1 volt-my-2 volt-h-px",
|
|
7236
7256
|
t
|
|
7237
7257
|
),
|
|
@@ -7239,14 +7259,14 @@ const Jb = ({
|
|
|
7239
7259
|
}
|
|
7240
7260
|
), f0 = ({
|
|
7241
7261
|
className: t
|
|
7242
|
-
}) => /* @__PURE__ */ f("span", { className: "volt-absolute volt-right-2 volt-flex volt-size-4 volt-items-center volt-justify-center", children: /* @__PURE__ */ f(Op, { className:
|
|
7262
|
+
}) => /* @__PURE__ */ f("span", { className: "volt-absolute volt-right-2 volt-flex volt-size-4 volt-items-center volt-justify-center", children: /* @__PURE__ */ f(Op, { className: P("volt-size-4 volt-text-gray-default", t) }) }), v0 = ({
|
|
7243
7263
|
className: t,
|
|
7244
7264
|
...e
|
|
7245
7265
|
}) => /* @__PURE__ */ f(
|
|
7246
7266
|
Gf,
|
|
7247
7267
|
{
|
|
7248
7268
|
"data-slot": "volt-combobox-command-loading",
|
|
7249
|
-
className:
|
|
7269
|
+
className: P("volt-text-gray-light volt-px-3 volt-py-2", t),
|
|
7250
7270
|
...e
|
|
7251
7271
|
}
|
|
7252
7272
|
), p0 = ({
|
|
@@ -7256,7 +7276,7 @@ const Jb = ({
|
|
|
7256
7276
|
}) => /* @__PURE__ */ f(
|
|
7257
7277
|
"span",
|
|
7258
7278
|
{
|
|
7259
|
-
className:
|
|
7279
|
+
className: P(
|
|
7260
7280
|
"volt-p-0.5! volt-min-h-auto volt-absolute volt-right-11 volt-cursor-pointer",
|
|
7261
7281
|
Ve({ variant: "tertiary" }),
|
|
7262
7282
|
t
|
|
@@ -7275,7 +7295,7 @@ const Jb = ({
|
|
|
7275
7295
|
), m0 = ({
|
|
7276
7296
|
className: t,
|
|
7277
7297
|
...e
|
|
7278
|
-
}) => /* @__PURE__ */ f("span", { className:
|
|
7298
|
+
}) => /* @__PURE__ */ f("span", { className: P("volt-text-gray-a8", t), ...e }), g0 = ({
|
|
7279
7299
|
className: t,
|
|
7280
7300
|
onClick: e,
|
|
7281
7301
|
...o
|
|
@@ -7284,7 +7304,7 @@ const Jb = ({
|
|
|
7284
7304
|
{
|
|
7285
7305
|
role: "button",
|
|
7286
7306
|
tabIndex: 0,
|
|
7287
|
-
className:
|
|
7307
|
+
className: P(
|
|
7288
7308
|
"volt-cursor-pointer volt-hover:opacity-70 volt-text-current volt-rounded-full volt-focus-visible:outline-2 volt-focus-visible:outline-offset-1 volt-focus-visible:outline-accent-a8",
|
|
7289
7309
|
t
|
|
7290
7310
|
),
|
|
@@ -7319,8 +7339,8 @@ function sr(t) {
|
|
|
7319
7339
|
u.displayName = l;
|
|
7320
7340
|
const v = t + "CollectionItemSlot", d = "data-radix-collection-item", m = /* @__PURE__ */ xn(v), g = k.forwardRef(
|
|
7321
7341
|
(p, h) => {
|
|
7322
|
-
const { scope: b, children: x, ...w } = p, C = k.useRef(null), E = nt(h, C),
|
|
7323
|
-
return k.useEffect(() => (
|
|
7342
|
+
const { scope: b, children: x, ...w } = p, C = k.useRef(null), E = nt(h, C), N = a(v, b);
|
|
7343
|
+
return k.useEffect(() => (N.itemMap.set(C, { ref: C, ...w }), () => void N.itemMap.delete(C))), /* @__PURE__ */ f(m, { [d]: "", ref: E, children: x });
|
|
7324
7344
|
}
|
|
7325
7345
|
);
|
|
7326
7346
|
g.displayName = v;
|
|
@@ -7331,7 +7351,7 @@ function sr(t) {
|
|
|
7331
7351
|
if (!x) return [];
|
|
7332
7352
|
const w = Array.from(x.querySelectorAll(`[${d}]`));
|
|
7333
7353
|
return Array.from(h.itemMap.values()).sort(
|
|
7334
|
-
(
|
|
7354
|
+
(N, T) => w.indexOf(N.ref.current) - w.indexOf(T.ref.current)
|
|
7335
7355
|
);
|
|
7336
7356
|
}, [h.collectionRef, h.itemMap]);
|
|
7337
7357
|
}
|
|
@@ -7364,7 +7384,7 @@ function Fp(t) {
|
|
|
7364
7384
|
const { children: r, ...a } = o;
|
|
7365
7385
|
if (i.isValidElement(r)) {
|
|
7366
7386
|
const s = Vp(r), l = zp(a, r.props);
|
|
7367
|
-
return r.type !== i.Fragment && (l.ref = n ?
|
|
7387
|
+
return r.type !== i.Fragment && (l.ref = n ? Nt(n, s) : s), i.cloneElement(r, l);
|
|
7368
7388
|
}
|
|
7369
7389
|
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
7370
7390
|
});
|
|
@@ -7436,7 +7456,7 @@ var Hp = Xs, jp = [" ", "Enter", "ArrowUp", "ArrowDown"], Gp = [" ", "Enter"], f
|
|
|
7436
7456
|
disabled: m,
|
|
7437
7457
|
required: g,
|
|
7438
7458
|
form: y
|
|
7439
|
-
} = t, p = Vo(e), [h, b] = i.useState(null), [x, w] = i.useState(null), [C, E] = i.useState(!1),
|
|
7459
|
+
} = t, p = Vo(e), [h, b] = i.useState(null), [x, w] = i.useState(null), [C, E] = i.useState(!1), N = Ue(u), [T, S] = Ct({
|
|
7440
7460
|
prop: n,
|
|
7441
7461
|
defaultProp: r ?? !1,
|
|
7442
7462
|
onChange: a,
|
|
@@ -7463,7 +7483,7 @@ var Hp = Xs, jp = [" ", "Enter", "ArrowUp", "ArrowDown"], Gp = [" ", "Enter"], f
|
|
|
7463
7483
|
onValueChange: H,
|
|
7464
7484
|
open: T,
|
|
7465
7485
|
onOpenChange: S,
|
|
7466
|
-
dir:
|
|
7486
|
+
dir: N,
|
|
7467
7487
|
triggerPointerDownPosRef: Q,
|
|
7468
7488
|
disabled: m,
|
|
7469
7489
|
children: [
|
|
@@ -7615,7 +7635,7 @@ var kt = 10, [sl, ae] = Oe(ve), Jp = "SelectContentImpl", tm = /* @__PURE__ */ $
|
|
|
7615
7635
|
avoidCollisions: h,
|
|
7616
7636
|
//
|
|
7617
7637
|
...b
|
|
7618
|
-
} = t, x = re(ve, o), [w, C] = i.useState(null), [E,
|
|
7638
|
+
} = t, x = re(ve, o), [w, C] = i.useState(null), [E, N] = i.useState(null), T = nt(e, (_) => C(_)), [S, z] = i.useState(null), [H, Q] = i.useState(
|
|
7619
7639
|
null
|
|
7620
7640
|
), Z = zo(o), [G, j] = i.useState(!1), U = i.useRef(!1);
|
|
7621
7641
|
i.useEffect(() => {
|
|
@@ -7691,7 +7711,7 @@ var kt = 10, [sl, ae] = Oe(ve), Jp = "SelectContentImpl", tm = /* @__PURE__ */ $
|
|
|
7691
7711
|
scope: o,
|
|
7692
7712
|
content: w,
|
|
7693
7713
|
viewport: E,
|
|
7694
|
-
onViewportChange:
|
|
7714
|
+
onViewportChange: N,
|
|
7695
7715
|
itemRefCallback: A,
|
|
7696
7716
|
selectedItem: S,
|
|
7697
7717
|
onItemLeave: I,
|
|
@@ -7825,7 +7845,7 @@ var em = "SelectItemAlignedPosition", il = i.forwardRef((t, e) => {
|
|
|
7825
7845
|
ut(() => {
|
|
7826
7846
|
u && E(window.getComputedStyle(u).zIndex);
|
|
7827
7847
|
}, [u]);
|
|
7828
|
-
const
|
|
7848
|
+
const N = i.useCallback(
|
|
7829
7849
|
(T) => {
|
|
7830
7850
|
T && y.current === !0 && (w(), x == null || x(), y.current = !1);
|
|
7831
7851
|
},
|
|
@@ -7837,7 +7857,7 @@ var em = "SelectItemAlignedPosition", il = i.forwardRef((t, e) => {
|
|
|
7837
7857
|
scope: o,
|
|
7838
7858
|
contentWrapper: l,
|
|
7839
7859
|
shouldExpandOnScrollRef: g,
|
|
7840
|
-
onScrollButtonChange:
|
|
7860
|
+
onScrollButtonChange: N,
|
|
7841
7861
|
children: /* @__PURE__ */ f(
|
|
7842
7862
|
"div",
|
|
7843
7863
|
{
|
|
@@ -8077,8 +8097,8 @@ var hl = "SelectItemIndicator", bl = i.forwardRef(
|
|
|
8077
8097
|
}
|
|
8078
8098
|
);
|
|
8079
8099
|
bl.displayName = hl;
|
|
8080
|
-
var
|
|
8081
|
-
const o = ae(
|
|
8100
|
+
var Nn = "SelectScrollUpButton", yl = i.forwardRef((t, e) => {
|
|
8101
|
+
const o = ae(Nn, t.__scopeSelect), n = lr(Nn, t.__scopeSelect), [r, a] = i.useState(!1), s = nt(e, n.onScrollButtonChange);
|
|
8082
8102
|
return ut(() => {
|
|
8083
8103
|
if (o.viewport && o.isPositioned) {
|
|
8084
8104
|
let l = function() {
|
|
@@ -8100,9 +8120,9 @@ var Pn = "SelectScrollUpButton", yl = i.forwardRef((t, e) => {
|
|
|
8100
8120
|
}
|
|
8101
8121
|
) : null;
|
|
8102
8122
|
});
|
|
8103
|
-
yl.displayName =
|
|
8104
|
-
var
|
|
8105
|
-
const o = ae(
|
|
8123
|
+
yl.displayName = Nn;
|
|
8124
|
+
var Pn = "SelectScrollDownButton", xl = i.forwardRef((t, e) => {
|
|
8125
|
+
const o = ae(Pn, t.__scopeSelect), n = lr(Pn, t.__scopeSelect), [r, a] = i.useState(!1), s = nt(e, n.onScrollButtonChange);
|
|
8106
8126
|
return ut(() => {
|
|
8107
8127
|
if (o.viewport && o.isPositioned) {
|
|
8108
8128
|
let l = function() {
|
|
@@ -8124,7 +8144,7 @@ var Nn = "SelectScrollDownButton", xl = i.forwardRef((t, e) => {
|
|
|
8124
8144
|
}
|
|
8125
8145
|
) : null;
|
|
8126
8146
|
});
|
|
8127
|
-
xl.displayName =
|
|
8147
|
+
xl.displayName = Pn;
|
|
8128
8148
|
var wl = i.forwardRef((t, e) => {
|
|
8129
8149
|
const { __scopeSelect: o, onAutoScroll: n, ...r } = t, a = ae("SelectScrollButton", o), s = i.useRef(null), l = zo(o), c = i.useCallback(() => {
|
|
8130
8150
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
@@ -8277,10 +8297,10 @@ const Rm = (t) => /* @__PURE__ */ f(
|
|
|
8277
8297
|
vm,
|
|
8278
8298
|
{
|
|
8279
8299
|
"data-slot": "select-value",
|
|
8280
|
-
className:
|
|
8300
|
+
className: P(t),
|
|
8281
8301
|
...e
|
|
8282
8302
|
}
|
|
8283
|
-
),
|
|
8303
|
+
), Nm = i.forwardRef(({ className: t, children: e, ...o }, n) => {
|
|
8284
8304
|
const { inputRef: r } = Eo();
|
|
8285
8305
|
return /* @__PURE__ */ at(
|
|
8286
8306
|
fm,
|
|
@@ -8289,7 +8309,7 @@ const Rm = (t) => /* @__PURE__ */ f(
|
|
|
8289
8309
|
r && (r.current = a), typeof n == "function" ? n(a) : n && (n.current = a);
|
|
8290
8310
|
},
|
|
8291
8311
|
"data-slot": "select-trigger",
|
|
8292
|
-
className:
|
|
8312
|
+
className: P(
|
|
8293
8313
|
"volt-group volt-data-placeholder:text-gray-a8 volt-w-full volt-flex volt-items-center volt-justify-between volt-gap-2 volt-rounded-lg volt-bg-transparent volt-text-sm volt-whitespace-nowrap volt-transition-[color,box-shadow] volt-outline-none volt-disabled:cursor-not-allowed volt-disabled:opacity-50 volt-*:data-[slot=select-value]:line-clamp-1 volt-*:data-[slot=select-value]:flex volt-*:data-[slot=select-value]:items-center volt-*:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
8294
8314
|
t
|
|
8295
8315
|
),
|
|
@@ -8301,15 +8321,15 @@ const Rm = (t) => /* @__PURE__ */ f(
|
|
|
8301
8321
|
}
|
|
8302
8322
|
);
|
|
8303
8323
|
});
|
|
8304
|
-
|
|
8305
|
-
const
|
|
8324
|
+
Nm.displayName = "SelectTrigger";
|
|
8325
|
+
const Pm = ({
|
|
8306
8326
|
className: t,
|
|
8307
8327
|
onClick: e,
|
|
8308
8328
|
...o
|
|
8309
8329
|
}) => /* @__PURE__ */ f(
|
|
8310
8330
|
"span",
|
|
8311
8331
|
{
|
|
8312
|
-
className:
|
|
8332
|
+
className: P(
|
|
8313
8333
|
"volt-p-0.5! volt-min-h-auto volt-absolute volt-right-11",
|
|
8314
8334
|
Ve({ variant: "tertiary" }),
|
|
8315
8335
|
t
|
|
@@ -8326,7 +8346,7 @@ const Nm = ({
|
|
|
8326
8346
|
children: /* @__PURE__ */ f(Rm, { className: "volt-text-accent-solid volt-size-5" })
|
|
8327
8347
|
}
|
|
8328
8348
|
);
|
|
8329
|
-
|
|
8349
|
+
Pm.displayName = "SelectTriggerClear";
|
|
8330
8350
|
const x0 = ({
|
|
8331
8351
|
className: t,
|
|
8332
8352
|
children: e,
|
|
@@ -8338,7 +8358,7 @@ const x0 = ({
|
|
|
8338
8358
|
gm,
|
|
8339
8359
|
{
|
|
8340
8360
|
"data-slot": "select-content",
|
|
8341
|
-
className:
|
|
8361
|
+
className: P(
|
|
8342
8362
|
"volt-bg-body volt-p-2 volt-gap-1 volt-text-gray-default volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-data-[side=bottom]:slide-in-from-top-2 volt-data-[side=left]:slide-in-from-right-2 volt-data-[side=right]:slide-in-from-left-2 volt-data-[side=top]:slide-in-from-bottom-2 volt-relative volt-z-50 volt-origin-(--radix-select-content-transform-origin) volt-overflow-x-hidden volt-overflow-y-auto volt-rounded-2xl volt-border volt-border-transparent volt-shadow-md",
|
|
8343
8363
|
"volt-max-h-(--radix-popper-available-height)",
|
|
8344
8364
|
{
|
|
@@ -8354,7 +8374,7 @@ const x0 = ({
|
|
|
8354
8374
|
/* @__PURE__ */ f(
|
|
8355
8375
|
hm,
|
|
8356
8376
|
{
|
|
8357
|
-
className:
|
|
8377
|
+
className: P({
|
|
8358
8378
|
"volt-h-(--radix-select-trigger-height) volt-w-full volt-min-w-(--radix-select-trigger-width) volt-scroll-my-1": o === "popper"
|
|
8359
8379
|
}),
|
|
8360
8380
|
children: e
|
|
@@ -8370,7 +8390,7 @@ const x0 = ({
|
|
|
8370
8390
|
ym,
|
|
8371
8391
|
{
|
|
8372
8392
|
"data-slot": "select-label",
|
|
8373
|
-
className:
|
|
8393
|
+
className: P("volt-text-gray volt-font-semibold volt-px-2 volt-py-1.5 volt-text-xs", t),
|
|
8374
8394
|
...e
|
|
8375
8395
|
}
|
|
8376
8396
|
), C0 = ({
|
|
@@ -8381,7 +8401,7 @@ const x0 = ({
|
|
|
8381
8401
|
xm,
|
|
8382
8402
|
{
|
|
8383
8403
|
"data-slot": "select-item",
|
|
8384
|
-
className:
|
|
8404
|
+
className: P(
|
|
8385
8405
|
"volt-pl-3 volt-py-1.5 volt-not-first:mt-0.5 volt-text-gray-default [&_svg:not([class*='volt-text-'])]:text-gray-light volt-relative volt-flex volt-w-full volt-cursor-default volt-items-center volt-gap-2 volt-rounded-md volt-pr-8 volt-text-sm volt-outline-none volt-select-none volt-data-disabled:pointer-events-none volt-data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 volt-*:[span]:last:flex volt-*:[span]:last:items-center volt-*:[span]:last:gap-2",
|
|
8386
8406
|
"volt-focus:bg-accent-a3 volt-data-[state=checked]:bg-accent-a3",
|
|
8387
8407
|
t
|
|
@@ -8399,7 +8419,7 @@ const x0 = ({
|
|
|
8399
8419
|
Tm,
|
|
8400
8420
|
{
|
|
8401
8421
|
"data-slot": "volt-select-separator",
|
|
8402
|
-
className:
|
|
8422
|
+
className: P(
|
|
8403
8423
|
"volt-bg-gray-soft volt-pointer-events-none volt--mx-1 volt-my-1 volt-h-px",
|
|
8404
8424
|
t
|
|
8405
8425
|
),
|
|
@@ -8412,7 +8432,7 @@ const x0 = ({
|
|
|
8412
8432
|
Sm,
|
|
8413
8433
|
{
|
|
8414
8434
|
"data-slot": "volt-select-scroll-up-button",
|
|
8415
|
-
className:
|
|
8435
|
+
className: P(
|
|
8416
8436
|
"volt-flex volt-cursor-default volt-items-center volt-justify-center volt-pb-1",
|
|
8417
8437
|
t
|
|
8418
8438
|
),
|
|
@@ -8426,7 +8446,7 @@ const x0 = ({
|
|
|
8426
8446
|
Em,
|
|
8427
8447
|
{
|
|
8428
8448
|
"data-slot": "volt-select-scroll-down-button",
|
|
8429
|
-
className:
|
|
8449
|
+
className: P(
|
|
8430
8450
|
"volt-flex volt-cursor-default volt-items-center volt-justify-center volt-pt-1",
|
|
8431
8451
|
t
|
|
8432
8452
|
),
|
|
@@ -8460,7 +8480,7 @@ const x0 = ({
|
|
|
8460
8480
|
e ? So : "span",
|
|
8461
8481
|
{
|
|
8462
8482
|
"data-slot": "text",
|
|
8463
|
-
className:
|
|
8483
|
+
className: P(Dm({ variant: t, className: o })),
|
|
8464
8484
|
ref: r,
|
|
8465
8485
|
...n
|
|
8466
8486
|
}
|
|
@@ -8475,7 +8495,7 @@ function Lm(t) {
|
|
|
8475
8495
|
}
|
|
8476
8496
|
var [Wo] = pt("Tooltip", [
|
|
8477
8497
|
De
|
|
8478
|
-
]), Ho = De(), kl = "TooltipProvider", $m = 700, _n = "tooltip.open", [Fm, ir] = Wo(kl),
|
|
8498
|
+
]), Ho = De(), kl = "TooltipProvider", $m = 700, _n = "tooltip.open", [Fm, ir] = Wo(kl), Nl = (t) => {
|
|
8479
8499
|
const {
|
|
8480
8500
|
__scopeTooltip: e,
|
|
8481
8501
|
delayDuration: o = $m,
|
|
@@ -8510,8 +8530,8 @@ var [Wo] = pt("Tooltip", [
|
|
|
8510
8530
|
}
|
|
8511
8531
|
);
|
|
8512
8532
|
};
|
|
8513
|
-
|
|
8514
|
-
var Be = "Tooltip", [qm, jo] = Wo(Be),
|
|
8533
|
+
Nl.displayName = kl;
|
|
8534
|
+
var Be = "Tooltip", [qm, jo] = Wo(Be), Pl = (t) => {
|
|
8515
8535
|
const {
|
|
8516
8536
|
__scopeTooltip: e,
|
|
8517
8537
|
children: o,
|
|
@@ -8531,7 +8551,7 @@ var Be = "Tooltip", [qm, jo] = Wo(Be), Nl = (t) => {
|
|
|
8531
8551
|
window.clearTimeout(g.current), g.current = 0, h.current = !1, x(!0);
|
|
8532
8552
|
}, [x]), E = i.useCallback(() => {
|
|
8533
8553
|
window.clearTimeout(g.current), g.current = 0, x(!1);
|
|
8534
|
-
}, [x]),
|
|
8554
|
+
}, [x]), N = i.useCallback(() => {
|
|
8535
8555
|
window.clearTimeout(g.current), g.current = window.setTimeout(() => {
|
|
8536
8556
|
h.current = !0, x(!0), g.current = 0;
|
|
8537
8557
|
}, p);
|
|
@@ -8548,8 +8568,8 @@ var Be = "Tooltip", [qm, jo] = Wo(Be), Nl = (t) => {
|
|
|
8548
8568
|
trigger: v,
|
|
8549
8569
|
onTriggerChange: d,
|
|
8550
8570
|
onTriggerEnter: i.useCallback(() => {
|
|
8551
|
-
c.isOpenDelayedRef.current ?
|
|
8552
|
-
}, [c.isOpenDelayedRef,
|
|
8571
|
+
c.isOpenDelayedRef.current ? N() : C();
|
|
8572
|
+
}, [c.isOpenDelayedRef, N, C]),
|
|
8553
8573
|
onTriggerLeave: i.useCallback(() => {
|
|
8554
8574
|
y ? E() : (window.clearTimeout(g.current), g.current = 0);
|
|
8555
8575
|
}, [E, y]),
|
|
@@ -8560,7 +8580,7 @@ var Be = "Tooltip", [qm, jo] = Wo(Be), Nl = (t) => {
|
|
|
8560
8580
|
}
|
|
8561
8581
|
) });
|
|
8562
8582
|
};
|
|
8563
|
-
|
|
8583
|
+
Pl.displayName = Be;
|
|
8564
8584
|
var Dn = "TooltipTrigger", Il = i.forwardRef(
|
|
8565
8585
|
(t, e) => {
|
|
8566
8586
|
const { __scopeTooltip: o, ...n } = t, r = jo(Dn, o), a = ir(Dn, o), s = Ho(o), l = i.useRef(null), c = nt(e, l, r.onTriggerChange), u = i.useRef(!1), v = i.useRef(!1), d = i.useCallback(() => u.current = !1, []);
|
|
@@ -8778,7 +8798,7 @@ function Xm(t) {
|
|
|
8778
8798
|
}
|
|
8779
8799
|
return o.pop(), e.length === 1 && o.length === 1 && e[0].x === o[0].x && e[0].y === o[0].y ? e : e.concat(o);
|
|
8780
8800
|
}
|
|
8781
|
-
var Qm =
|
|
8801
|
+
var Qm = Nl, Jm = Pl, tg = Il, eg = _l, og = Ml;
|
|
8782
8802
|
const T0 = ({
|
|
8783
8803
|
delayDuration: t = 0,
|
|
8784
8804
|
...e
|
|
@@ -8802,7 +8822,7 @@ const T0 = ({
|
|
|
8802
8822
|
{
|
|
8803
8823
|
"data-slot": "tooltip-content",
|
|
8804
8824
|
"data-variant": o,
|
|
8805
|
-
className:
|
|
8825
|
+
className: P(
|
|
8806
8826
|
"volt-animate-in volt-fade-in-0 volt-zoom-in-95 volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=closed]:zoom-out-95 volt-data-[side=bottom]:slide-in-from-top-1 volt-data-[side=left]:slide-in-from-right-1 volt-data-[side=right]:slide-in-from-left-1 volt-data-[side=top]:slide-in-from-bottom-1 volt-z-50 volt-w-fit volt-origin-(--radix-tooltip-content-transform-origin) volt-rounded-lg volt-p-2 volt-text-xs volt-leading-none volt-text-balance volt-data-[state=closed]:duration-0",
|
|
8807
8827
|
"volt-data-[variant=default]:bg-gray-12 volt-data-[variant=default]:text-gray-1",
|
|
8808
8828
|
"volt-data-[variant=destructive]:bg-error-a12 volt-data-[variant=destructive]:text-error-1",
|
|
@@ -8815,7 +8835,7 @@ const T0 = ({
|
|
|
8815
8835
|
og,
|
|
8816
8836
|
{
|
|
8817
8837
|
"data-variant": o,
|
|
8818
|
-
className:
|
|
8838
|
+
className: P(
|
|
8819
8839
|
"volt-relative volt-z-50 volt-size-2.5 volt-translate-y-[calc(-50%-2px)] volt-rotate-45 volt-rounded-[2px]",
|
|
8820
8840
|
"volt-data-[variant=default]:bg-gray-12 volt-data-[variant=default]:fill-gray-12",
|
|
8821
8841
|
"volt-data-[variant=destructive]:bg-error-12 volt-data-[variant=destructive]:fill-error-12"
|
|
@@ -9019,7 +9039,7 @@ const cg = () => /* @__PURE__ */ f(
|
|
|
9019
9039
|
}
|
|
9020
9040
|
}
|
|
9021
9041
|
);
|
|
9022
|
-
function
|
|
9042
|
+
function N0({
|
|
9023
9043
|
variant: t,
|
|
9024
9044
|
size: e,
|
|
9025
9045
|
className: o,
|
|
@@ -9030,13 +9050,13 @@ function P0({
|
|
|
9030
9050
|
lg,
|
|
9031
9051
|
{
|
|
9032
9052
|
"data-slot": "switch",
|
|
9033
|
-
className:
|
|
9053
|
+
className: P(fg({ variant: t, size: e, className: o })),
|
|
9034
9054
|
...r,
|
|
9035
9055
|
children: /* @__PURE__ */ at(
|
|
9036
9056
|
ig,
|
|
9037
9057
|
{
|
|
9038
9058
|
"data-slot": "switch-thumb",
|
|
9039
|
-
className:
|
|
9059
|
+
className: P(
|
|
9040
9060
|
"volt-group/switch-thumb volt-relative volt-text-gray-a8 volt-data-[state=checked]:text-accent-a11",
|
|
9041
9061
|
vg({ variant: t, size: e })
|
|
9042
9062
|
),
|
|
@@ -9232,9 +9252,9 @@ var Gl = "CheckboxBubbleInput", Ul = i.forwardRef(
|
|
|
9232
9252
|
const w = window.HTMLInputElement.prototype, E = Object.getOwnPropertyDescriptor(
|
|
9233
9253
|
w,
|
|
9234
9254
|
"checked"
|
|
9235
|
-
).set,
|
|
9255
|
+
).set, N = !r.current;
|
|
9236
9256
|
if (p !== a && E) {
|
|
9237
|
-
const T = new Event("click", { bubbles:
|
|
9257
|
+
const T = new Event("click", { bubbles: N });
|
|
9238
9258
|
x.indeterminate = Yt(a), E.call(x, Yt(a) ? !1 : a), x.dispatchEvent(T);
|
|
9239
9259
|
}
|
|
9240
9260
|
}, [m, p, a, r]);
|
|
@@ -9301,14 +9321,14 @@ const bg = (t) => /* @__PURE__ */ f(
|
|
|
9301
9321
|
...t,
|
|
9302
9322
|
children: /* @__PURE__ */ f("path", { d: "M280-440q-17 0-28.5-11.5T240-480q0-17 11.5-28.5T280-520h400q17 0 28.5 11.5T720-480q0 17-11.5 28.5T680-440H280Z" })
|
|
9303
9323
|
}
|
|
9304
|
-
),
|
|
9324
|
+
), P0 = ({
|
|
9305
9325
|
className: t,
|
|
9306
9326
|
...e
|
|
9307
9327
|
}) => /* @__PURE__ */ f(
|
|
9308
9328
|
Wl,
|
|
9309
9329
|
{
|
|
9310
9330
|
"data-slot": "checkbox",
|
|
9311
|
-
className:
|
|
9331
|
+
className: P(
|
|
9312
9332
|
"volt-peer volt-border-accent-a7 volt-bg-accent-a4 volt-disabled:border-gray-a4 volt-data-[state=indeterminate]:bg-accent-a7 volt-data-[state=indeterminate]:border-transparent volt-data-[state=indeterminate]:text-accent-a12 volt-data-[state=checked]:bg-accent-solid volt-data-[state=checked]:border-0 volt-data-[state=checked]:text-accent-contrast volt-focus-visible:outline-offset-2 volt-focus-visible:outline-2 volt-focus-visible:outline-accent-a8 volt-aria-invalid:outline-error-a8 volt-aria-invalid:border-error-a8 volt-size-4 volt-shrink-0 volt-rounded-sm volt-border volt-shadow-xs volt-transition-shadow volt-disabled:cursor-not-allowed volt-disabled:opacity-50",
|
|
9313
9333
|
t
|
|
9314
9334
|
),
|
|
@@ -9347,7 +9367,7 @@ var Tg = i.forwardRef((t, e) => {
|
|
|
9347
9367
|
defaultProp: l ?? null,
|
|
9348
9368
|
onChange: c,
|
|
9349
9369
|
caller: Ke
|
|
9350
|
-
}), [b, x] = i.useState(!1), w = Xt(u), C = Zl(o), E = i.useRef(!1), [
|
|
9370
|
+
}), [b, x] = i.useState(!1), w = Xt(u), C = Zl(o), E = i.useRef(!1), [N, T] = i.useState(0);
|
|
9351
9371
|
return i.useEffect(() => {
|
|
9352
9372
|
const S = m.current;
|
|
9353
9373
|
if (S)
|
|
@@ -9376,7 +9396,7 @@ var Tg = i.forwardRef((t, e) => {
|
|
|
9376
9396
|
children: /* @__PURE__ */ f(
|
|
9377
9397
|
W.div,
|
|
9378
9398
|
{
|
|
9379
|
-
tabIndex: b ||
|
|
9399
|
+
tabIndex: b || N === 0 ? -1 : 0,
|
|
9380
9400
|
"data-orientation": n,
|
|
9381
9401
|
...d,
|
|
9382
9402
|
ref: g,
|
|
@@ -9448,7 +9468,7 @@ var Tg = i.forwardRef((t, e) => {
|
|
|
9448
9468
|
else if (b === "prev" || b === "next") {
|
|
9449
9469
|
b === "prev" && w.reverse();
|
|
9450
9470
|
const C = w.indexOf(h.currentTarget);
|
|
9451
|
-
w = v.loop ?
|
|
9471
|
+
w = v.loop ? Ng(w, C + 1) : w.slice(C + 1);
|
|
9452
9472
|
}
|
|
9453
9473
|
setTimeout(() => Jl(w));
|
|
9454
9474
|
}
|
|
@@ -9484,10 +9504,10 @@ function Jl(t, e = !1) {
|
|
|
9484
9504
|
for (const n of t)
|
|
9485
9505
|
if (n === o || (n.focus({ preventScroll: e }), document.activeElement !== o)) return;
|
|
9486
9506
|
}
|
|
9487
|
-
function
|
|
9507
|
+
function Ng(t, e) {
|
|
9488
9508
|
return t.map((o, n) => t[(e + n) % t.length]);
|
|
9489
9509
|
}
|
|
9490
|
-
var ti = Yl, ei = Ql, dr = "Radio", [
|
|
9510
|
+
var ti = Yl, ei = Ql, dr = "Radio", [Pg, oi] = pt(dr), [Ig, _g] = Pg(dr), ni = i.forwardRef(
|
|
9491
9511
|
(t, e) => {
|
|
9492
9512
|
const {
|
|
9493
9513
|
__scopeRadio: o,
|
|
@@ -9727,7 +9747,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9727
9747
|
qg,
|
|
9728
9748
|
{
|
|
9729
9749
|
"data-slot": "radio-group",
|
|
9730
|
-
className:
|
|
9750
|
+
className: P("volt-grid volt-gap-3", t),
|
|
9731
9751
|
...e
|
|
9732
9752
|
}
|
|
9733
9753
|
), _0 = ({
|
|
@@ -9737,7 +9757,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9737
9757
|
Bg,
|
|
9738
9758
|
{
|
|
9739
9759
|
"data-slot": "radio-group-item",
|
|
9740
|
-
className:
|
|
9760
|
+
className: P(
|
|
9741
9761
|
"volt-data-[state='checked']:bg-accent-solid volt-data-[checked=true]:text-accent-contrast volt-bg-accent-a4 volt-text-accent-default volt-focus-visible:outline-accent-a8 volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-aria-invalid:bg-error-a4 volt-aria-invalid:border-error-a8 volt-aria-invalid:outline-error-a8 volt-data-[state='checked']:aria-invalid:border-transparent volt-data-[state='checked']:aria-invalid:bg-error-a10 volt-aspect-square volt-size-4 volt-shrink-0 volt-rounded-full volt-border volt-border-accent-a7 volt-shadow-xs volt-transition-[color,box-shadow] volt-disabled:cursor-not-allowed volt-disabled:bg-gray-a3 volt-disabled:border-transparent volt-data-[state='checked']:disabled:bg-gray-a3",
|
|
9742
9762
|
t
|
|
9743
9763
|
),
|
|
@@ -9813,7 +9833,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9813
9833
|
a ? So : "span",
|
|
9814
9834
|
{
|
|
9815
9835
|
"data-slot": "badge",
|
|
9816
|
-
className:
|
|
9836
|
+
className: P(Gg({ color: e, style: o, shape: n, size: r }), t),
|
|
9817
9837
|
...s
|
|
9818
9838
|
}
|
|
9819
9839
|
), ia = (t) => /* @__PURE__ */ f(
|
|
@@ -9892,7 +9912,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9892
9912
|
"data-slot": "callout",
|
|
9893
9913
|
"data-hide-icon": o ? "true" : "false",
|
|
9894
9914
|
role: "alert",
|
|
9895
|
-
className:
|
|
9915
|
+
className: P(Yg({ variant: e }), t),
|
|
9896
9916
|
...r,
|
|
9897
9917
|
children: [
|
|
9898
9918
|
!o && /* @__PURE__ */ f(Qg, { customIcon: n }),
|
|
@@ -9903,7 +9923,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9903
9923
|
"div",
|
|
9904
9924
|
{
|
|
9905
9925
|
"data-slot": "callout-title",
|
|
9906
|
-
className:
|
|
9926
|
+
className: P(
|
|
9907
9927
|
"volt-col-start-2 volt-line-clamp-1 volt-text-current volt-min-h-4 volt-text-base volt-font-medium",
|
|
9908
9928
|
t
|
|
9909
9929
|
),
|
|
@@ -9916,7 +9936,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9916
9936
|
"div",
|
|
9917
9937
|
{
|
|
9918
9938
|
"data-slot": "callout-description",
|
|
9919
|
-
className:
|
|
9939
|
+
className: P(
|
|
9920
9940
|
"volt-text-current volt-col-start-2 volt-grid volt-justify-items-start volt-gap-1 volt-text-sm [&_p]:leading-relaxed",
|
|
9921
9941
|
t
|
|
9922
9942
|
),
|
|
@@ -9933,7 +9953,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9933
9953
|
{
|
|
9934
9954
|
"data-slot": "callout-action",
|
|
9935
9955
|
"data-align": e,
|
|
9936
|
-
className:
|
|
9956
|
+
className: P(
|
|
9937
9957
|
"volt-flex volt-w-full volt-col-span-3 volt-mt-2",
|
|
9938
9958
|
{
|
|
9939
9959
|
"volt-justify-start": e === "start" && n,
|
|
@@ -9980,7 +10000,7 @@ const Vg = (t) => /* @__PURE__ */ f(
|
|
|
9980
10000
|
{
|
|
9981
10001
|
"data-slot": "callout-icon",
|
|
9982
10002
|
customIcon: e,
|
|
9983
|
-
className:
|
|
10003
|
+
className: P("volt-size-5 volt-translate-y-0.5 volt-text-current volt-shrink-0", t),
|
|
9984
10004
|
...o
|
|
9985
10005
|
}
|
|
9986
10006
|
);
|
|
@@ -10166,7 +10186,7 @@ var [Ci, ih] = Xo(Ot), [Si, ch] = Xo(
|
|
|
10166
10186
|
let x = h;
|
|
10167
10187
|
const w = 0, C = b - 1, E = () => {
|
|
10168
10188
|
x = h + 1, x > C && (x = w);
|
|
10169
|
-
},
|
|
10189
|
+
}, N = () => {
|
|
10170
10190
|
x = h - 1, x < w && (x = C);
|
|
10171
10191
|
};
|
|
10172
10192
|
switch (g.key) {
|
|
@@ -10177,16 +10197,16 @@ var [Ci, ih] = Xo(Ot), [Si, ch] = Xo(
|
|
|
10177
10197
|
x = C;
|
|
10178
10198
|
break;
|
|
10179
10199
|
case "ArrowRight":
|
|
10180
|
-
a === "horizontal" && (d ? E() :
|
|
10200
|
+
a === "horizontal" && (d ? E() : N());
|
|
10181
10201
|
break;
|
|
10182
10202
|
case "ArrowDown":
|
|
10183
10203
|
a === "vertical" && E();
|
|
10184
10204
|
break;
|
|
10185
10205
|
case "ArrowLeft":
|
|
10186
|
-
a === "horizontal" && (d ?
|
|
10206
|
+
a === "horizontal" && (d ? N() : E());
|
|
10187
10207
|
break;
|
|
10188
10208
|
case "ArrowUp":
|
|
10189
|
-
a === "vertical" &&
|
|
10209
|
+
a === "vertical" && N();
|
|
10190
10210
|
break;
|
|
10191
10211
|
}
|
|
10192
10212
|
const T = x % b;
|
|
@@ -10274,9 +10294,9 @@ var Mn = "AccordionTrigger", ki = k.forwardRef(
|
|
|
10274
10294
|
}
|
|
10275
10295
|
);
|
|
10276
10296
|
ki.displayName = Mn;
|
|
10277
|
-
var
|
|
10297
|
+
var Ni = "AccordionContent", Pi = k.forwardRef(
|
|
10278
10298
|
(t, e) => {
|
|
10279
|
-
const { __scopeAccordion: o, ...n } = t, r = Qo(Ot, o), a = hr(
|
|
10299
|
+
const { __scopeAccordion: o, ...n } = t, r = Qo(Ot, o), a = hr(Ni, o), s = gr(o);
|
|
10280
10300
|
return /* @__PURE__ */ f(
|
|
10281
10301
|
rh,
|
|
10282
10302
|
{
|
|
@@ -10295,11 +10315,11 @@ var Pi = "AccordionContent", Ni = k.forwardRef(
|
|
|
10295
10315
|
);
|
|
10296
10316
|
}
|
|
10297
10317
|
);
|
|
10298
|
-
|
|
10318
|
+
Pi.displayName = Ni;
|
|
10299
10319
|
function Ii(t) {
|
|
10300
10320
|
return t ? "open" : "closed";
|
|
10301
10321
|
}
|
|
10302
|
-
var ph = wi, mh = Ti, gh = Ai, hh = ki, bh =
|
|
10322
|
+
var ph = wi, mh = Ti, gh = Ai, hh = ki, bh = Pi;
|
|
10303
10323
|
const yh = (t) => /* @__PURE__ */ f(
|
|
10304
10324
|
"svg",
|
|
10305
10325
|
{
|
|
@@ -10318,7 +10338,7 @@ const yh = (t) => /* @__PURE__ */ f(
|
|
|
10318
10338
|
ph,
|
|
10319
10339
|
{
|
|
10320
10340
|
"data-slot": "accordion",
|
|
10321
|
-
className:
|
|
10341
|
+
className: P(t),
|
|
10322
10342
|
...e
|
|
10323
10343
|
}
|
|
10324
10344
|
), q0 = ({
|
|
@@ -10328,7 +10348,7 @@ const yh = (t) => /* @__PURE__ */ f(
|
|
|
10328
10348
|
mh,
|
|
10329
10349
|
{
|
|
10330
10350
|
"data-slot": "accordion-item",
|
|
10331
|
-
className:
|
|
10351
|
+
className: P(t),
|
|
10332
10352
|
...e
|
|
10333
10353
|
}
|
|
10334
10354
|
), ca = ({
|
|
@@ -10337,7 +10357,7 @@ const yh = (t) => /* @__PURE__ */ f(
|
|
|
10337
10357
|
}) => /* @__PURE__ */ f(
|
|
10338
10358
|
yh,
|
|
10339
10359
|
{
|
|
10340
|
-
className:
|
|
10360
|
+
className: P(
|
|
10341
10361
|
"volt-text-gray-light volt-pointer-events-none volt-size-5 volt-shrink-0 volt-translate-y-0 volt-transition-transform",
|
|
10342
10362
|
t
|
|
10343
10363
|
),
|
|
@@ -10352,7 +10372,7 @@ const yh = (t) => /* @__PURE__ */ f(
|
|
|
10352
10372
|
hh,
|
|
10353
10373
|
{
|
|
10354
10374
|
"data-slot": "accordion-trigger",
|
|
10355
|
-
className:
|
|
10375
|
+
className: P(
|
|
10356
10376
|
"volt-outline-accent-a8 volt-p-3 volt-cursor-pointer volt-focus-visible:outline-offset-2 volt-focus-visible:outline-2 volt-flex volt-flex-1 volt-items-start volt-gap-3 volt-rounded-md volt-py-4 volt-text-left volt-text-sm volt-font-medium volt-transition-all volt-disabled:pointer-events-none volt-disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
10357
10377
|
{
|
|
10358
10378
|
"volt-justify-start": e === "start",
|
|
@@ -10377,7 +10397,7 @@ const yh = (t) => /* @__PURE__ */ f(
|
|
|
10377
10397
|
"data-slot": "accordion-content",
|
|
10378
10398
|
className: "volt-data-[state=closed]:animate-accordion-up volt-data-[state=open]:animate-accordion-down volt-overflow-hidden volt-text-sm volt-px-3 volt-pb-2 volt-pt-1",
|
|
10379
10399
|
...o,
|
|
10380
|
-
children: /* @__PURE__ */ f("div", { className:
|
|
10400
|
+
children: /* @__PURE__ */ f("div", { className: P("volt-p-0", t), children: e })
|
|
10381
10401
|
}
|
|
10382
10402
|
);
|
|
10383
10403
|
var xh = Symbol("radix.slottable");
|
|
@@ -10436,7 +10456,7 @@ var Te = "AlertDialogContent", [Rh, Ah] = Ch(Te), kh = /* @__PURE__ */ wh("Alert
|
|
|
10436
10456
|
onInteractOutside: (u) => u.preventDefault(),
|
|
10437
10457
|
children: [
|
|
10438
10458
|
/* @__PURE__ */ f(kh, { children: n }),
|
|
10439
|
-
/* @__PURE__ */ f(
|
|
10459
|
+
/* @__PURE__ */ f(Ph, { contentRef: s })
|
|
10440
10460
|
]
|
|
10441
10461
|
}
|
|
10442
10462
|
) })
|
|
@@ -10457,21 +10477,21 @@ var Bi = "AlertDialogDescription", zi = i.forwardRef((t, e) => {
|
|
|
10457
10477
|
return /* @__PURE__ */ f(cs, { ...r, ...n, ref: e });
|
|
10458
10478
|
});
|
|
10459
10479
|
zi.displayName = Bi;
|
|
10460
|
-
var
|
|
10480
|
+
var Nh = "AlertDialogAction", Vi = i.forwardRef(
|
|
10461
10481
|
(t, e) => {
|
|
10462
10482
|
const { __scopeAlertDialog: o, ...n } = t, r = jt(o);
|
|
10463
|
-
return /* @__PURE__ */ f(
|
|
10483
|
+
return /* @__PURE__ */ f(Po, { ...r, ...n, ref: e });
|
|
10464
10484
|
}
|
|
10465
10485
|
);
|
|
10466
|
-
Vi.displayName =
|
|
10486
|
+
Vi.displayName = Nh;
|
|
10467
10487
|
var Wi = "AlertDialogCancel", Hi = i.forwardRef(
|
|
10468
10488
|
(t, e) => {
|
|
10469
10489
|
const { __scopeAlertDialog: o, ...n } = t, { cancelRef: r } = Ah(Wi, o), a = jt(o), s = nt(e, r);
|
|
10470
|
-
return /* @__PURE__ */ f(
|
|
10490
|
+
return /* @__PURE__ */ f(Po, { ...a, ...n, ref: s });
|
|
10471
10491
|
}
|
|
10472
10492
|
);
|
|
10473
10493
|
Hi.displayName = Wi;
|
|
10474
|
-
var
|
|
10494
|
+
var Ph = ({ contentRef: t }) => {
|
|
10475
10495
|
const e = `\`${Te}\` requires a description for the component to be accessible for screen reader users.
|
|
10476
10496
|
|
|
10477
10497
|
You can add a description to the \`${Te}\` by passing a \`${Bi}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
@@ -10499,7 +10519,7 @@ const V0 = ({
|
|
|
10499
10519
|
Oh,
|
|
10500
10520
|
{
|
|
10501
10521
|
"data-slot": "alert-dialog-overlay",
|
|
10502
|
-
className:
|
|
10522
|
+
className: P(
|
|
10503
10523
|
"volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-fixed volt-inset-0 volt-z-50 volt-bg-black/50",
|
|
10504
10524
|
t
|
|
10505
10525
|
),
|
|
@@ -10514,7 +10534,7 @@ const V0 = ({
|
|
|
10514
10534
|
Mh,
|
|
10515
10535
|
{
|
|
10516
10536
|
"data-slot": "alert-dialog-content",
|
|
10517
|
-
className:
|
|
10537
|
+
className: P(
|
|
10518
10538
|
"volt-bg-body volt-data-[state=open]:animate-in volt-data-[state=closed]:animate-out volt-data-[state=closed]:fade-out-0 volt-data-[state=open]:fade-in-0 volt-data-[state=closed]:zoom-out-95 volt-data-[state=open]:zoom-in-95 volt-fixed volt-top-[50%] volt-left-[50%] volt-z-50 volt-grid volt-w-full volt-max-w-[calc(100%-2rem)] volt-translate-x-[-50%] volt-translate-y-[-50%] volt-gap-4 volt-rounded-xl volt-border volt-border-gray-a1 volt-p-6 volt-shadow-lg volt-sm:max-w-xl",
|
|
10519
10539
|
t
|
|
10520
10540
|
),
|
|
@@ -10528,7 +10548,7 @@ const V0 = ({
|
|
|
10528
10548
|
"div",
|
|
10529
10549
|
{
|
|
10530
10550
|
"data-slot": "alert-dialog-header",
|
|
10531
|
-
className:
|
|
10551
|
+
className: P("volt-flex volt-flex-col volt-gap-2 volt-text-left", t),
|
|
10532
10552
|
...e
|
|
10533
10553
|
}
|
|
10534
10554
|
), U0 = ({
|
|
@@ -10538,7 +10558,7 @@ const V0 = ({
|
|
|
10538
10558
|
"div",
|
|
10539
10559
|
{
|
|
10540
10560
|
"data-slot": "alert-dialog-footer",
|
|
10541
|
-
className:
|
|
10561
|
+
className: P("volt-flex volt-gap-2 volt-justify-end", t),
|
|
10542
10562
|
...e
|
|
10543
10563
|
}
|
|
10544
10564
|
), K0 = ({
|
|
@@ -10548,7 +10568,7 @@ const V0 = ({
|
|
|
10548
10568
|
Fh,
|
|
10549
10569
|
{
|
|
10550
10570
|
"data-slot": "alert-dialog-title",
|
|
10551
|
-
className:
|
|
10571
|
+
className: P("volt-text-xl volt-font-semibold volt-text-gray-default", t),
|
|
10552
10572
|
...e
|
|
10553
10573
|
}
|
|
10554
10574
|
), Z0 = ({
|
|
@@ -10558,28 +10578,30 @@ const V0 = ({
|
|
|
10558
10578
|
qh,
|
|
10559
10579
|
{
|
|
10560
10580
|
"data-slot": "alert-dialog-description",
|
|
10561
|
-
className:
|
|
10581
|
+
className: P("volt-text-gray-light volt-text-sm", t),
|
|
10562
10582
|
...e
|
|
10563
10583
|
}
|
|
10564
10584
|
), Y0 = ({
|
|
10565
10585
|
className: t,
|
|
10566
10586
|
variant: e = "primary",
|
|
10567
|
-
|
|
10587
|
+
size: o = "base",
|
|
10588
|
+
...n
|
|
10568
10589
|
}) => /* @__PURE__ */ f(
|
|
10569
10590
|
Lh,
|
|
10570
10591
|
{
|
|
10571
|
-
className:
|
|
10572
|
-
...
|
|
10592
|
+
className: P(Ve({ variant: e, size: o }), t),
|
|
10593
|
+
...n
|
|
10573
10594
|
}
|
|
10574
10595
|
), X0 = ({
|
|
10575
10596
|
className: t,
|
|
10576
10597
|
variant: e = "secondary",
|
|
10577
|
-
|
|
10598
|
+
size: o = "base",
|
|
10599
|
+
...n
|
|
10578
10600
|
}) => /* @__PURE__ */ f(
|
|
10579
10601
|
$h,
|
|
10580
10602
|
{
|
|
10581
|
-
className:
|
|
10582
|
-
...
|
|
10603
|
+
className: P(Ve({ variant: e, size: o }), t),
|
|
10604
|
+
...n
|
|
10583
10605
|
}
|
|
10584
10606
|
);
|
|
10585
10607
|
function zh(t) {
|
|
@@ -10870,15 +10892,15 @@ function db(t) {
|
|
|
10870
10892
|
}
|
|
10871
10893
|
const ub = (t) => {
|
|
10872
10894
|
var e, o, n, r, a, s, l, c, u;
|
|
10873
|
-
const { invert: v, toast: d, unstyled: m, interacting: g, setHeights: y, visibleToasts: p, heights: h, index: b, toasts: x, expanded: w, removeToast: C, defaultRichColors: E, closeButton:
|
|
10895
|
+
const { invert: v, toast: d, unstyled: m, interacting: g, setHeights: y, visibleToasts: p, heights: h, index: b, toasts: x, expanded: w, removeToast: C, defaultRichColors: E, closeButton: N, style: T, cancelButtonStyle: S, actionButtonStyle: z, className: H = "", descriptionClassName: Q = "", duration: Z, position: G, gap: j, expandByDefault: U, classNames: O, icons: q, closeButtonAriaLabel: R = "Close toast" } = t, [tt, rt] = k.useState(null), [st, A] = k.useState(null), [I, M] = k.useState(!1), [D, V] = k.useState(!1), [_, L] = k.useState(!1), [K, Y] = k.useState(!1), [ot, J] = k.useState(!1), [vt, mt] = k.useState(0), [se, Gt] = k.useState(0), Tt = k.useRef(d.duration || Z || da), Ze = k.useRef(null), gt = k.useRef(null), ec = b === 0, oc = b + 1 <= p, bt = d.type, pe = d.dismissible !== !1, nc = d.className || "", rc = d.descriptionClassName || "", Ye = k.useMemo(() => h.findIndex((X) => X.toastId === d.id) || 0, [
|
|
10874
10896
|
h,
|
|
10875
10897
|
d.id
|
|
10876
10898
|
]), ac = k.useMemo(() => {
|
|
10877
10899
|
var X;
|
|
10878
|
-
return (X = d.closeButton) != null ? X :
|
|
10900
|
+
return (X = d.closeButton) != null ? X : N;
|
|
10879
10901
|
}, [
|
|
10880
10902
|
d.closeButton,
|
|
10881
|
-
|
|
10903
|
+
N
|
|
10882
10904
|
]), yr = k.useMemo(() => d.duration || Z || da, [
|
|
10883
10905
|
d.duration,
|
|
10884
10906
|
Z
|
|
@@ -11150,8 +11172,8 @@ const vb = /* @__PURE__ */ k.forwardRef(function(e, o) {
|
|
|
11150
11172
|
const { id: n, invert: r, position: a = "bottom-right", hotkey: s = [
|
|
11151
11173
|
"altKey",
|
|
11152
11174
|
"KeyT"
|
|
11153
|
-
], expand: l, closeButton: c, className: u, offset: v, mobileOffset: d, theme: m = "light", richColors: g, duration: y, style: p, visibleToasts: h = nb, toastOptions: b, dir: x = ua(), gap: w = lb, icons: C, containerAriaLabel: E = "Notifications" } = e, [
|
|
11154
|
-
|
|
11175
|
+
], expand: l, closeButton: c, className: u, offset: v, mobileOffset: d, theme: m = "light", richColors: g, duration: y, style: p, visibleToasts: h = nb, toastOptions: b, dir: x = ua(), gap: w = lb, icons: C, containerAriaLabel: E = "Notifications" } = e, [N, T] = k.useState([]), S = k.useMemo(() => n ? N.filter((I) => I.toasterId === n) : N.filter((I) => !I.toasterId), [
|
|
11176
|
+
N,
|
|
11155
11177
|
n
|
|
11156
11178
|
]), z = k.useMemo(() => Array.from(new Set([
|
|
11157
11179
|
a
|
|
@@ -11193,7 +11215,7 @@ const vb = /* @__PURE__ */ k.forwardRef(function(e, o) {
|
|
|
11193
11215
|
});
|
|
11194
11216
|
});
|
|
11195
11217
|
}), [
|
|
11196
|
-
|
|
11218
|
+
N
|
|
11197
11219
|
]), k.useEffect(() => {
|
|
11198
11220
|
if (m !== "system") {
|
|
11199
11221
|
q(m);
|
|
@@ -11217,9 +11239,9 @@ const vb = /* @__PURE__ */ k.forwardRef(function(e, o) {
|
|
|
11217
11239
|
}, [
|
|
11218
11240
|
m
|
|
11219
11241
|
]), k.useEffect(() => {
|
|
11220
|
-
|
|
11242
|
+
N.length <= 1 && G(!1);
|
|
11221
11243
|
}, [
|
|
11222
|
-
|
|
11244
|
+
N
|
|
11223
11245
|
]), k.useEffect(() => {
|
|
11224
11246
|
const I = (M) => {
|
|
11225
11247
|
var D;
|
|
@@ -11553,7 +11575,7 @@ const ty = ({
|
|
|
11553
11575
|
"data-slot": "tabs",
|
|
11554
11576
|
"data-size": e,
|
|
11555
11577
|
"data-variant": o,
|
|
11556
|
-
className:
|
|
11578
|
+
className: P(
|
|
11557
11579
|
"volt-group volt-flex volt-flex-col volt-gap-2 volt-data-[orientation=vertical]:flex-row volt-data-[orientation=vertical]:gap-2 volt-data-[orientation=vertical]:items-start",
|
|
11558
11580
|
t
|
|
11559
11581
|
),
|
|
@@ -11566,7 +11588,7 @@ const ty = ({
|
|
|
11566
11588
|
wb,
|
|
11567
11589
|
{
|
|
11568
11590
|
"data-slot": "tabs-list",
|
|
11569
|
-
className:
|
|
11591
|
+
className: P(
|
|
11570
11592
|
"volt-bg-transparent volt-text-gray-default volt-h-auto volt-inline-flex volt-w-fit volt-items-center volt-justify-center volt-gap-2 volt-rounded-lg volt-py-2",
|
|
11571
11593
|
"volt-data-[orientation=vertical]:flex-col volt-data-[orientation=vertical]:items-stretch volt-data-[orientation=vertical]:justify-start volt-data-[orientation=vertical]:gap-1 volt-data-[orientation=vertical]:py-0",
|
|
11572
11594
|
t
|
|
@@ -11580,7 +11602,7 @@ const ty = ({
|
|
|
11580
11602
|
Cb,
|
|
11581
11603
|
{
|
|
11582
11604
|
"data-slot": "tabs-trigger",
|
|
11583
|
-
className:
|
|
11605
|
+
className: P(
|
|
11584
11606
|
"volt-inline-flex volt-items-center volt-gap-2 volt-bg-transparent volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-rounded-md volt-cursor-pointer volt-transition-all volt-text-sm",
|
|
11585
11607
|
"volt-data-[orientation=vertical]:justify-start volt-data-[orientation=vertical]:text-left volt-data-[orientation=vertical]:w-full",
|
|
11586
11608
|
"volt-group-data-[size=sm]:px-2 volt-group-data-[size=sm]:py-1.5 volt-group-data-[size=base]:px-3 volt-group-data-[size=base]:py-2 volt-group-data-[size=lg]:px-4 volt-group-data-[size=lg]:py-3",
|
|
@@ -11597,14 +11619,14 @@ const ty = ({
|
|
|
11597
11619
|
Sb,
|
|
11598
11620
|
{
|
|
11599
11621
|
"data-slot": "tabs-content",
|
|
11600
|
-
className:
|
|
11622
|
+
className: P("volt-flex-1 volt-outline-none", t),
|
|
11601
11623
|
...e
|
|
11602
11624
|
}
|
|
11603
11625
|
), ry = ({ className: t, ...e }) => /* @__PURE__ */ f(
|
|
11604
11626
|
"div",
|
|
11605
11627
|
{
|
|
11606
11628
|
"data-slot": "card",
|
|
11607
|
-
className:
|
|
11629
|
+
className: P(
|
|
11608
11630
|
"volt-bg-body volt-text-body-default volt-flex volt-flex-col volt-gap-4 volt-rounded-xl volt-border volt-border-transparent volt-py-4 volt-shadow-sm",
|
|
11609
11631
|
t
|
|
11610
11632
|
),
|
|
@@ -11614,7 +11636,7 @@ const ty = ({
|
|
|
11614
11636
|
"div",
|
|
11615
11637
|
{
|
|
11616
11638
|
"data-slot": "card-header",
|
|
11617
|
-
className:
|
|
11639
|
+
className: P(
|
|
11618
11640
|
"volt-@container/card-header volt-grid volt-auto-rows-min volt-grid-rows-[auto_auto] volt-items-start volt-gap-2 volt-px-4 volt-has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-4",
|
|
11619
11641
|
t
|
|
11620
11642
|
),
|
|
@@ -11624,7 +11646,7 @@ const ty = ({
|
|
|
11624
11646
|
"div",
|
|
11625
11647
|
{
|
|
11626
11648
|
"data-slot": "card-title",
|
|
11627
|
-
className:
|
|
11649
|
+
className: P("volt-leading-none volt-font-semibold", t),
|
|
11628
11650
|
...e
|
|
11629
11651
|
}
|
|
11630
11652
|
), ly = ({
|
|
@@ -11634,14 +11656,14 @@ const ty = ({
|
|
|
11634
11656
|
"div",
|
|
11635
11657
|
{
|
|
11636
11658
|
"data-slot": "card-description",
|
|
11637
|
-
className:
|
|
11659
|
+
className: P("volt-text-gray-light volt-text-sm", t),
|
|
11638
11660
|
...e
|
|
11639
11661
|
}
|
|
11640
11662
|
), iy = ({ className: t, ...e }) => /* @__PURE__ */ f(
|
|
11641
11663
|
"div",
|
|
11642
11664
|
{
|
|
11643
11665
|
"data-slot": "card-action",
|
|
11644
|
-
className:
|
|
11666
|
+
className: P(
|
|
11645
11667
|
"volt-col-start-2 volt-row-span-2 volt-row-start-1 volt-self-start volt-justify-self-end",
|
|
11646
11668
|
t
|
|
11647
11669
|
),
|
|
@@ -11651,14 +11673,14 @@ const ty = ({
|
|
|
11651
11673
|
"div",
|
|
11652
11674
|
{
|
|
11653
11675
|
"data-slot": "card-content",
|
|
11654
|
-
className:
|
|
11676
|
+
className: P("volt-px-4", t),
|
|
11655
11677
|
...e
|
|
11656
11678
|
}
|
|
11657
11679
|
), dy = ({ className: t, ...e }) => /* @__PURE__ */ f(
|
|
11658
11680
|
"div",
|
|
11659
11681
|
{
|
|
11660
11682
|
"data-slot": "card-footer",
|
|
11661
|
-
className:
|
|
11683
|
+
className: P("volt-flex volt-items-center volt-px-4 [.border-t]:pt-4", t),
|
|
11662
11684
|
...e
|
|
11663
11685
|
}
|
|
11664
11686
|
), Eb = (t) => /* @__PURE__ */ at(
|
|
@@ -11722,7 +11744,7 @@ const ty = ({
|
|
|
11722
11744
|
o === "circle" ? Tb : Eb,
|
|
11723
11745
|
{
|
|
11724
11746
|
role: "status",
|
|
11725
|
-
className:
|
|
11747
|
+
className: P(
|
|
11726
11748
|
"volt-animate-spin volt-text-current",
|
|
11727
11749
|
Rb({ size: e }),
|
|
11728
11750
|
t
|
|
@@ -11762,7 +11784,7 @@ export {
|
|
|
11762
11784
|
dy as CardFooter,
|
|
11763
11785
|
ay as CardHeader,
|
|
11764
11786
|
sy as CardTitle,
|
|
11765
|
-
|
|
11787
|
+
P0 as Checkbox,
|
|
11766
11788
|
Wb as Dialog,
|
|
11767
11789
|
Gb as DialogClose,
|
|
11768
11790
|
Kb as DialogContent,
|
|
@@ -11800,8 +11822,8 @@ export {
|
|
|
11800
11822
|
Fb as FieldLabel,
|
|
11801
11823
|
qb as FieldLabelContent,
|
|
11802
11824
|
Mb as FieldSet,
|
|
11803
|
-
|
|
11804
|
-
|
|
11825
|
+
Pd as FieldTextarea,
|
|
11826
|
+
Pa as Label,
|
|
11805
11827
|
Ip as Popover,
|
|
11806
11828
|
t0 as PopoverAnchor,
|
|
11807
11829
|
Dp as PopoverContent,
|
|
@@ -11817,12 +11839,12 @@ export {
|
|
|
11817
11839
|
_m as SelectScrollDownButton,
|
|
11818
11840
|
Im as SelectScrollUpButton,
|
|
11819
11841
|
S0 as SelectSeparator,
|
|
11820
|
-
|
|
11821
|
-
|
|
11842
|
+
Nm as SelectTrigger,
|
|
11843
|
+
Pm as SelectTriggerClear,
|
|
11822
11844
|
y0 as SelectValue,
|
|
11823
11845
|
bd as Separator,
|
|
11824
11846
|
uy as Spinner,
|
|
11825
|
-
|
|
11847
|
+
N0 as Switch,
|
|
11826
11848
|
ty as Tabs,
|
|
11827
11849
|
ny as TabsContent,
|
|
11828
11850
|
ey as TabsList,
|
|
@@ -11835,7 +11857,7 @@ export {
|
|
|
11835
11857
|
A0 as TooltipTrigger,
|
|
11836
11858
|
Gg as badgeVariants,
|
|
11837
11859
|
Ve as buttonVariants,
|
|
11838
|
-
|
|
11860
|
+
P as cn,
|
|
11839
11861
|
Dm as textVariants,
|
|
11840
11862
|
Q0 as toast,
|
|
11841
11863
|
Eo as useFieldContext
|