@krrli/cm-designsystem 1.20.0 → 1.20.1
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/components/icons/IconBase.js +4 -2
- package/dist/index.es.js +108 -107
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// src/components/icons/IconBase.tsx
|
|
3
3
|
import { AccessibleIcon } from "@radix-ui/react-accessible-icon";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { tv } from "tailwind-variants";
|
|
5
|
+
import { cnBase, tv } from "tailwind-variants";
|
|
6
6
|
const iconStyles = tv({
|
|
7
7
|
base: ["w-4", "h-4"],
|
|
8
8
|
});
|
|
9
|
-
export const IconBase = ({ label = "", children, ...props }) =>
|
|
9
|
+
export const IconBase = ({ label = "", children, className, ...props }) => {
|
|
10
|
+
return (_jsx(AccessibleIcon, { label: label, children: _jsx("svg", { className: cnBase(className, iconStyles()), fill: "currentColor", viewBox: props.viewBox || "0 0 16 16", ...props, children: children }) }));
|
|
11
|
+
};
|
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import Y, { createElement as
|
|
2
|
+
import Y, { createElement as V2, useState as a2, useRef as Cr, useEffect as hr } from "react";
|
|
3
3
|
import * as gr from "react-dom";
|
|
4
4
|
import vr from "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var Z2 = { exports: {} }, A2 = {};
|
|
6
6
|
var t0;
|
|
7
7
|
function br() {
|
|
8
8
|
if (t0) return A2;
|
|
@@ -259,7 +259,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
}
|
|
260
260
|
var n0;
|
|
261
261
|
function xr() {
|
|
262
|
-
return n0 || (n0 = 1, process.env.NODE_ENV === "production" ?
|
|
262
|
+
return n0 || (n0 = 1, process.env.NODE_ENV === "production" ? Z2.exports = br() : Z2.exports = yr()), Z2.exports;
|
|
263
263
|
}
|
|
264
264
|
var u = xr();
|
|
265
265
|
function wr(e, t = []) {
|
|
@@ -344,7 +344,7 @@ function r2(...e) {
|
|
|
344
344
|
function e2(...e) {
|
|
345
345
|
return s.useCallback(r2(...e), e);
|
|
346
346
|
}
|
|
347
|
-
var Sr = Symbol.for("react.lazy"),
|
|
347
|
+
var Sr = Symbol.for("react.lazy"), ne = s[" use ".trim().toString()];
|
|
348
348
|
function _r(e) {
|
|
349
349
|
return typeof e == "object" && e !== null && "then" in e;
|
|
350
350
|
}
|
|
@@ -355,7 +355,7 @@ function M0(e) {
|
|
|
355
355
|
function Rr(e) {
|
|
356
356
|
const t = /* @__PURE__ */ Ar(e), r = s.forwardRef((n, o) => {
|
|
357
357
|
let { children: i, ...l } = n;
|
|
358
|
-
M0(i) && typeof
|
|
358
|
+
M0(i) && typeof ne == "function" && (i = ne(i._payload));
|
|
359
359
|
const a = s.Children.toArray(i), c = a.find(Mr);
|
|
360
360
|
if (c) {
|
|
361
361
|
const d = c.props.children, f = a.map((p) => p === c ? s.Children.count(d) > 1 ? s.Children.only(null) : s.isValidElement(d) ? d.props.children : null : p);
|
|
@@ -369,7 +369,7 @@ function Rr(e) {
|
|
|
369
369
|
function Ar(e) {
|
|
370
370
|
const t = s.forwardRef((r, n) => {
|
|
371
371
|
let { children: o, ...i } = r;
|
|
372
|
-
if (M0(o) && typeof
|
|
372
|
+
if (M0(o) && typeof ne == "function" && (o = ne(o._payload)), s.isValidElement(o)) {
|
|
373
373
|
const l = jr(o), a = Pr(i, o.props);
|
|
374
374
|
return o.type !== s.Fragment && (a.ref = n ? r2(n, l) : l), s.cloneElement(o, a);
|
|
375
375
|
}
|
|
@@ -420,7 +420,7 @@ var Nr = [
|
|
|
420
420
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...a, ref: i });
|
|
421
421
|
});
|
|
422
422
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
423
|
-
}, {}),
|
|
423
|
+
}, {}), W2 = { exports: {} }, fe = {};
|
|
424
424
|
var i0;
|
|
425
425
|
function Tr() {
|
|
426
426
|
if (i0) return fe;
|
|
@@ -518,7 +518,7 @@ function Vr() {
|
|
|
518
518
|
}
|
|
519
519
|
var s0;
|
|
520
520
|
function Ir() {
|
|
521
|
-
return s0 || (s0 = 1, process.env.NODE_ENV === "production" ?
|
|
521
|
+
return s0 || (s0 = 1, process.env.NODE_ENV === "production" ? W2.exports = Tr() : W2.exports = Vr()), W2.exports;
|
|
522
522
|
}
|
|
523
523
|
var Or = Ir();
|
|
524
524
|
function Lr() {
|
|
@@ -591,7 +591,7 @@ function $r(e, { referrerPolicy: t, crossOrigin: r }) {
|
|
|
591
591
|
};
|
|
592
592
|
}, [i, r, t]), l;
|
|
593
593
|
}
|
|
594
|
-
var Gr = j0, Zr = T0, Wr = I0, Br = /\s+/g, _e = (e) => typeof e != "string" || !e ? e : e.replace(Br, " ").trim(),
|
|
594
|
+
var Gr = j0, Zr = T0, Wr = I0, Br = /\s+/g, _e = (e) => typeof e != "string" || !e ? e : e.replace(Br, " ").trim(), N2 = (...e) => {
|
|
595
595
|
let t = [], r = (n) => {
|
|
596
596
|
if (!n && n !== 0 && n !== 0n) return;
|
|
597
597
|
if (Array.isArray(n)) {
|
|
@@ -632,7 +632,7 @@ var Gr = j0, Zr = T0, Wr = I0, Br = /\s+/g, _e = (e) => typeof e != "string" ||
|
|
|
632
632
|
}, u0 = (e, t) => {
|
|
633
633
|
for (let r in t) if (Object.prototype.hasOwnProperty.call(t, r)) {
|
|
634
634
|
let n = t[r];
|
|
635
|
-
r in e ? e[r] =
|
|
635
|
+
r in e ? e[r] = N2(e[r], n) : e[r] = n;
|
|
636
636
|
}
|
|
637
637
|
return e;
|
|
638
638
|
}, O0 = (e, t) => {
|
|
@@ -678,9 +678,9 @@ function Yr() {
|
|
|
678
678
|
}
|
|
679
679
|
var l2 = Yr(), Kr = (e) => {
|
|
680
680
|
let t = (r, n) => {
|
|
681
|
-
let { extend: o = null, slots: i = {}, variants: l = {}, compoundVariants: a = [], compoundSlots: c = [], defaultVariants: d = {} } = r, f = { ...Ur, ...n }, p = o?.base ?
|
|
681
|
+
let { extend: o = null, slots: i = {}, variants: l = {}, compoundVariants: a = [], compoundSlots: c = [], defaultVariants: d = {} } = r, f = { ...Ur, ...n }, p = o?.base ? N2(o.base, r?.base) : r?.base, h = o?.variants && !Q(o.variants) ? Re(l, o.variants) : l, v = o?.defaultVariants && !Q(o.defaultVariants) ? { ...o.defaultVariants, ...d } : d;
|
|
682
682
|
!Q(f.twMergeConfig) && !zr(f.twMergeConfig, l2.cachedTwMergeConfig) && (l2.didTwMergeConfigChange = !0, l2.cachedTwMergeConfig = f.twMergeConfig);
|
|
683
|
-
let y = Q(o?.slots), m = Q(i) ? {} : { base:
|
|
683
|
+
let y = Q(o?.slots), m = Q(i) ? {} : { base: N2(r?.base, y && o?.base), ...i }, g = y ? m : u0({ ...o?.slots }, Q(m) ? { base: r?.base } : m), x = Q(o?.compoundVariants) ? a : L0(o?.compoundVariants, a), b = (_) => {
|
|
684
684
|
if (Q(h) && Q(i) && y) return e(p, _?.class, _?.className)(f);
|
|
685
685
|
if (x && !Array.isArray(x)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof x}`);
|
|
686
686
|
if (c && !Array.isArray(c)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);
|
|
@@ -1063,7 +1063,7 @@ const X = (e) => {
|
|
|
1063
1063
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1064
1064
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1065
1065
|
fn.test(e) && !pn.test(e)
|
|
1066
|
-
), G0 = () => !1, vn = (e) => mn.test(e), bn = (e) => Cn.test(e), yn = (e) => !R(e) && !A(e), xn = (e) => _2(e, B0, G0), R = (e) => H0.test(e), C2 = (e) => _2(e, z0, gn), Ce = (e) => _2(e, Rn, $), p0 = (e) => _2(e, Z0, G0), wn = (e) => _2(e, W0, bn),
|
|
1066
|
+
), G0 = () => !1, vn = (e) => mn.test(e), bn = (e) => Cn.test(e), yn = (e) => !R(e) && !A(e), xn = (e) => _2(e, B0, G0), R = (e) => H0.test(e), C2 = (e) => _2(e, z0, gn), Ce = (e) => _2(e, Rn, $), p0 = (e) => _2(e, Z0, G0), wn = (e) => _2(e, W0, bn), B2 = (e) => _2(e, U0, vn), A = (e) => $0.test(e), M2 = (e) => R2(e, z0), En = (e) => R2(e, An), m0 = (e) => R2(e, Z0), Sn = (e) => R2(e, B0), _n = (e) => R2(e, W0), z2 = (e) => R2(e, U0, !0), _2 = (e, t, r) => {
|
|
1067
1067
|
const n = H0.exec(e);
|
|
1068
1068
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
1069
1069
|
}, R2 = (e, t, r = !1) => {
|
|
@@ -1111,7 +1111,7 @@ const X = (e) => {
|
|
|
1111
1111
|
y,
|
|
1112
1112
|
A,
|
|
1113
1113
|
R
|
|
1114
|
-
], c2 = () => ["none", $, A, R], b2 = () => ["none", $, A, R], de = () => [$, A, R],
|
|
1114
|
+
], c2 = () => ["none", $, A, R], b2 = () => ["none", $, A, R], de = () => [$, A, R], G2 = () => [y2, "full", ...E()];
|
|
1115
1115
|
return {
|
|
1116
1116
|
cacheSize: 500,
|
|
1117
1117
|
theme: {
|
|
@@ -2461,8 +2461,8 @@ const X = (e) => {
|
|
|
2461
2461
|
"",
|
|
2462
2462
|
"none",
|
|
2463
2463
|
f,
|
|
2464
|
-
|
|
2465
|
-
|
|
2464
|
+
z2,
|
|
2465
|
+
B2
|
|
2466
2466
|
]
|
|
2467
2467
|
}],
|
|
2468
2468
|
/**
|
|
@@ -2477,7 +2477,7 @@ const X = (e) => {
|
|
|
2477
2477
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2478
2478
|
*/
|
|
2479
2479
|
"inset-shadow": [{
|
|
2480
|
-
"inset-shadow": ["none", p,
|
|
2480
|
+
"inset-shadow": ["none", p, z2, B2]
|
|
2481
2481
|
}],
|
|
2482
2482
|
/**
|
|
2483
2483
|
* Inset Box Shadow Color
|
|
@@ -2544,7 +2544,7 @@ const X = (e) => {
|
|
|
2544
2544
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2545
2545
|
*/
|
|
2546
2546
|
"text-shadow": [{
|
|
2547
|
-
"text-shadow": ["none", h,
|
|
2547
|
+
"text-shadow": ["none", h, z2, B2]
|
|
2548
2548
|
}],
|
|
2549
2549
|
/**
|
|
2550
2550
|
* Text Shadow Color
|
|
@@ -2817,8 +2817,8 @@ const X = (e) => {
|
|
|
2817
2817
|
"",
|
|
2818
2818
|
"none",
|
|
2819
2819
|
v,
|
|
2820
|
-
|
|
2821
|
-
|
|
2820
|
+
z2,
|
|
2821
|
+
B2
|
|
2822
2822
|
]
|
|
2823
2823
|
}],
|
|
2824
2824
|
/**
|
|
@@ -3161,28 +3161,28 @@ const X = (e) => {
|
|
|
3161
3161
|
* @see https://tailwindcss.com/docs/translate
|
|
3162
3162
|
*/
|
|
3163
3163
|
translate: [{
|
|
3164
|
-
translate:
|
|
3164
|
+
translate: G2()
|
|
3165
3165
|
}],
|
|
3166
3166
|
/**
|
|
3167
3167
|
* Translate X
|
|
3168
3168
|
* @see https://tailwindcss.com/docs/translate
|
|
3169
3169
|
*/
|
|
3170
3170
|
"translate-x": [{
|
|
3171
|
-
"translate-x":
|
|
3171
|
+
"translate-x": G2()
|
|
3172
3172
|
}],
|
|
3173
3173
|
/**
|
|
3174
3174
|
* Translate Y
|
|
3175
3175
|
* @see https://tailwindcss.com/docs/translate
|
|
3176
3176
|
*/
|
|
3177
3177
|
"translate-y": [{
|
|
3178
|
-
"translate-y":
|
|
3178
|
+
"translate-y": G2()
|
|
3179
3179
|
}],
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Translate Z
|
|
3182
3182
|
* @see https://tailwindcss.com/docs/translate
|
|
3183
3183
|
*/
|
|
3184
3184
|
"translate-z": [{
|
|
3185
|
-
"translate-z":
|
|
3185
|
+
"translate-z": G2()
|
|
3186
3186
|
}],
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Translate None
|
|
@@ -3545,13 +3545,13 @@ const X = (e) => {
|
|
|
3545
3545
|
experimentalParseClassName: n,
|
|
3546
3546
|
extend: o = {},
|
|
3547
3547
|
override: i = {}
|
|
3548
|
-
}) => (j2(e, "cacheSize", t), j2(e, "prefix", r), j2(e, "experimentalParseClassName", n),
|
|
3548
|
+
}) => (j2(e, "cacheSize", t), j2(e, "prefix", r), j2(e, "experimentalParseClassName", n), U2(e.theme, i.theme), U2(e.classGroups, i.classGroups), U2(e.conflictingClassGroups, i.conflictingClassGroups), U2(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), j2(e, "orderSensitiveModifiers", i.orderSensitiveModifiers), Y2(e.theme, o.theme), Y2(e.classGroups, o.classGroups), Y2(e.conflictingClassGroups, o.conflictingClassGroups), Y2(e.conflictingClassGroupModifiers, o.conflictingClassGroupModifiers), Y0(e, o, "orderSensitiveModifiers"), e), j2 = (e, t, r) => {
|
|
3549
3549
|
r !== void 0 && (e[t] = r);
|
|
3550
|
-
},
|
|
3550
|
+
}, U2 = (e, t) => {
|
|
3551
3551
|
if (t)
|
|
3552
3552
|
for (const r in t)
|
|
3553
3553
|
j2(e, r, t[r]);
|
|
3554
|
-
},
|
|
3554
|
+
}, Y2 = (e, t) => {
|
|
3555
3555
|
if (t)
|
|
3556
3556
|
for (const r in t)
|
|
3557
3557
|
Y0(e, t, r);
|
|
@@ -3560,7 +3560,7 @@ const X = (e) => {
|
|
|
3560
3560
|
n !== void 0 && (e[r] = e[r] ? e[r].concat(n) : n);
|
|
3561
3561
|
}, Mn = (e, ...t) => typeof e == "function" ? Pe(je, e, ...t) : Pe(() => kn(je(), e), ...t), v2 = /* @__PURE__ */ Pe(je);
|
|
3562
3562
|
var Pn = (e) => Q(e) ? v2 : Mn({ ...e, extend: { theme: e.theme, classGroups: e.classGroups, conflictingClassGroupModifiers: e.conflictingClassGroupModifiers, conflictingClassGroups: e.conflictingClassGroups, ...e.extend } }), jn = (...e) => (t) => {
|
|
3563
|
-
let r =
|
|
3563
|
+
let r = N2(e);
|
|
3564
3564
|
return !r || !t.twMerge ? r : ((!l2.cachedTwMerge || l2.didTwMergeConfigChange) && (l2.didTwMergeConfigChange = !1, l2.cachedTwMerge = Pn(l2.cachedTwMergeConfig)), l2.cachedTwMerge(r) || void 0);
|
|
3565
3565
|
}, { tv: z } = Kr(jn), Nn = Object.freeze({
|
|
3566
3566
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
@@ -3603,14 +3603,15 @@ const On = z({
|
|
|
3603
3603
|
}), m2 = ({
|
|
3604
3604
|
label: e = "",
|
|
3605
3605
|
children: t,
|
|
3606
|
-
|
|
3606
|
+
className: r,
|
|
3607
|
+
...n
|
|
3607
3608
|
}) => /* @__PURE__ */ u.jsx(q0, { label: e, children: /* @__PURE__ */ u.jsx(
|
|
3608
3609
|
"svg",
|
|
3609
3610
|
{
|
|
3610
|
-
className: On(),
|
|
3611
|
+
className: N2(r, On()),
|
|
3611
3612
|
fill: "currentColor",
|
|
3612
|
-
viewBox:
|
|
3613
|
-
...
|
|
3613
|
+
viewBox: n.viewBox || "0 0 16 16",
|
|
3614
|
+
...n,
|
|
3614
3615
|
children: t
|
|
3615
3616
|
}
|
|
3616
3617
|
) }), X0 = (e) => /* @__PURE__ */ u.jsx(m2, { label: "Cancel", ...e, children: /* @__PURE__ */ u.jsx(
|
|
@@ -4031,7 +4032,7 @@ const On = z({
|
|
|
4031
4032
|
error: ["text-error"]
|
|
4032
4033
|
}
|
|
4033
4034
|
}
|
|
4034
|
-
}), t2 = ({ as: e = "label", className: t, ...r }) =>
|
|
4035
|
+
}), t2 = ({ as: e = "label", className: t, ...r }) => V2(
|
|
4035
4036
|
e,
|
|
4036
4037
|
{ className: v2(t, et(r)) },
|
|
4037
4038
|
r.children
|
|
@@ -4115,7 +4116,7 @@ const On = z({
|
|
|
4115
4116
|
as: e = "p",
|
|
4116
4117
|
className: t,
|
|
4117
4118
|
...r
|
|
4118
|
-
}) =>
|
|
4119
|
+
}) => V2(
|
|
4119
4120
|
e,
|
|
4120
4121
|
{ className: v2(t, oo(r)) },
|
|
4121
4122
|
r.children
|
|
@@ -4247,7 +4248,7 @@ function uo(e, t) {
|
|
|
4247
4248
|
}
|
|
4248
4249
|
return [n, o];
|
|
4249
4250
|
}
|
|
4250
|
-
function
|
|
4251
|
+
function I2(e, t = []) {
|
|
4251
4252
|
let r = [];
|
|
4252
4253
|
function n(i, l) {
|
|
4253
4254
|
const a = s.createContext(l), c = r.length;
|
|
@@ -4442,13 +4443,13 @@ var Po = [
|
|
|
4442
4443
|
"span",
|
|
4443
4444
|
"svg",
|
|
4444
4445
|
"ul"
|
|
4445
|
-
],
|
|
4446
|
+
], O2 = Po.reduce((e, t) => {
|
|
4446
4447
|
const r = /* @__PURE__ */ So(`Primitive.${t}`), n = s.forwardRef((o, i) => {
|
|
4447
4448
|
const { asChild: l, ...a } = o, c = l ? r : t;
|
|
4448
4449
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...a, ref: i });
|
|
4449
4450
|
});
|
|
4450
4451
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
4451
|
-
}, {}), [He] =
|
|
4452
|
+
}, {}), [He] = I2("Form"), $e = "Form", [jo, L2] = He($e), [No, nt] = He($e), ot = s.forwardRef(
|
|
4452
4453
|
(e, t) => {
|
|
4453
4454
|
const { __scopeForm: r, onClearServerErrors: n = () => {
|
|
4454
4455
|
}, ...o } = e, i = s.useRef(null), l = e2(t, i), [a, c] = s.useState({}), d = s.useCallback(
|
|
@@ -4519,7 +4520,7 @@ var Po = [
|
|
|
4519
4520
|
onFieldMessageIdRemove: E,
|
|
4520
4521
|
getFieldDescription: B,
|
|
4521
4522
|
children: /* @__PURE__ */ u.jsx(
|
|
4522
|
-
|
|
4523
|
+
O2.form,
|
|
4523
4524
|
{
|
|
4524
4525
|
...o,
|
|
4525
4526
|
ref: l,
|
|
@@ -4542,9 +4543,9 @@ var Po = [
|
|
|
4542
4543
|
ot.displayName = $e;
|
|
4543
4544
|
var Ge = "FormField", [To, Ze] = He(Ge), it = s.forwardRef(
|
|
4544
4545
|
(e, t) => {
|
|
4545
|
-
const { __scopeForm: r, name: n, serverInvalid: o = !1, ...i } = e, a =
|
|
4546
|
+
const { __scopeForm: r, name: n, serverInvalid: o = !1, ...i } = e, a = L2(Ge, r).getFieldValidity(n), c = f2();
|
|
4546
4547
|
return /* @__PURE__ */ u.jsx(To, { scope: r, id: c, name: n, serverInvalid: o, children: /* @__PURE__ */ u.jsx(
|
|
4547
|
-
|
|
4548
|
+
O2.div,
|
|
4548
4549
|
{
|
|
4549
4550
|
"data-valid": Be(a, o),
|
|
4550
4551
|
"data-invalid": ze(a, o),
|
|
@@ -4557,7 +4558,7 @@ var Ge = "FormField", [To, Ze] = He(Ge), it = s.forwardRef(
|
|
|
4557
4558
|
it.displayName = Ge;
|
|
4558
4559
|
var Ne = "FormLabel", at = s.forwardRef(
|
|
4559
4560
|
(e, t) => {
|
|
4560
|
-
const { __scopeForm: r, ...n } = e, o =
|
|
4561
|
+
const { __scopeForm: r, ...n } = e, o = L2(Ne, r), i = Ze(Ne, r), l = n.htmlFor || i.id, a = o.getFieldValidity(i.name);
|
|
4561
4562
|
return /* @__PURE__ */ u.jsx(
|
|
4562
4563
|
rt,
|
|
4563
4564
|
{
|
|
@@ -4571,9 +4572,9 @@ var Ne = "FormLabel", at = s.forwardRef(
|
|
|
4571
4572
|
}
|
|
4572
4573
|
);
|
|
4573
4574
|
at.displayName = Ne;
|
|
4574
|
-
var
|
|
4575
|
+
var ee = "FormControl", st = s.forwardRef(
|
|
4575
4576
|
(e, t) => {
|
|
4576
|
-
const { __scopeForm: r, ...n } = e, o =
|
|
4577
|
+
const { __scopeForm: r, ...n } = e, o = L2(ee, r), i = Ze(ee, r), l = nt(ee, r), a = s.useRef(null), c = e2(t, a), d = n.name || i.name, f = n.id || i.id, p = o.getFieldCustomMatcherEntries(d), { onFieldValidityChange: h, onFieldCustomErrorsChange: v, onFieldValiditionClear: y } = o, m = s.useCallback(
|
|
4577
4578
|
async (b) => {
|
|
4578
4579
|
if (dt(b.validity)) {
|
|
4579
4580
|
const F = he(b.validity);
|
|
@@ -4585,13 +4586,13 @@ var Q2 = "FormControl", st = s.forwardRef(
|
|
|
4585
4586
|
$o(F, _) ? G.push(F) : Go(F) && V.push(F);
|
|
4586
4587
|
});
|
|
4587
4588
|
const T = V.map(({ id: F, match: q }) => [F, q(..._)]), E = Object.fromEntries(T), B = Object.values(E).some(Boolean), j = B;
|
|
4588
|
-
b.setCustomValidity(j ?
|
|
4589
|
+
b.setCustomValidity(j ? T2 : "");
|
|
4589
4590
|
const Z = he(b.validity);
|
|
4590
4591
|
if (h(d, Z), v(d, E), !B && G.length > 0) {
|
|
4591
4592
|
const F = G.map(
|
|
4592
4593
|
({ id: w, match: L }) => L(..._).then((W) => [w, W])
|
|
4593
4594
|
), q = await Promise.all(F), I = Object.fromEntries(q), P = Object.values(I).some(Boolean);
|
|
4594
|
-
b.setCustomValidity(P ?
|
|
4595
|
+
b.setCustomValidity(P ? T2 : "");
|
|
4595
4596
|
const O = he(b.validity);
|
|
4596
4597
|
h(d, O), v(d, I);
|
|
4597
4598
|
}
|
|
@@ -4622,7 +4623,7 @@ var Q2 = "FormControl", st = s.forwardRef(
|
|
|
4622
4623
|
}, [i.serverInvalid]);
|
|
4623
4624
|
const x = o.getFieldValidity(d);
|
|
4624
4625
|
return /* @__PURE__ */ u.jsx(
|
|
4625
|
-
|
|
4626
|
+
O2.input,
|
|
4626
4627
|
{
|
|
4627
4628
|
"data-valid": Be(x, i.serverInvalid),
|
|
4628
4629
|
"data-invalid": ze(x, i.serverInvalid),
|
|
@@ -4644,9 +4645,9 @@ var Q2 = "FormControl", st = s.forwardRef(
|
|
|
4644
4645
|
);
|
|
4645
4646
|
}
|
|
4646
4647
|
);
|
|
4647
|
-
st.displayName =
|
|
4648
|
-
var
|
|
4649
|
-
badInput:
|
|
4648
|
+
st.displayName = ee;
|
|
4649
|
+
var T2 = "This value is not valid", Vo = {
|
|
4650
|
+
badInput: T2,
|
|
4650
4651
|
patternMismatch: "This value does not match the required pattern",
|
|
4651
4652
|
rangeOverflow: "This value is too large",
|
|
4652
4653
|
rangeUnderflow: "This value is too small",
|
|
@@ -4656,34 +4657,34 @@ var N2 = "This value is not valid", Vo = {
|
|
|
4656
4657
|
typeMismatch: "This value does not match the required type",
|
|
4657
4658
|
valid: void 0,
|
|
4658
4659
|
valueMissing: "This value is missing"
|
|
4659
|
-
},
|
|
4660
|
+
}, D2 = "FormMessage", lt = s.forwardRef(
|
|
4660
4661
|
(e, t) => {
|
|
4661
|
-
const { match: r, name: n, ...o } = e, i = Ze(
|
|
4662
|
-
return r === void 0 ? /* @__PURE__ */ u.jsx(We, { ...o, ref: t, name: l, children: e.children ||
|
|
4662
|
+
const { match: r, name: n, ...o } = e, i = Ze(D2, e.__scopeForm), l = n ?? i.name;
|
|
4663
|
+
return r === void 0 ? /* @__PURE__ */ u.jsx(We, { ...o, ref: t, name: l, children: e.children || T2 }) : typeof r == "function" ? /* @__PURE__ */ u.jsx(Oo, { match: r, ...o, ref: t, name: l }) : /* @__PURE__ */ u.jsx(Io, { match: r, ...o, ref: t, name: l });
|
|
4663
4664
|
}
|
|
4664
4665
|
);
|
|
4665
|
-
lt.displayName =
|
|
4666
|
+
lt.displayName = D2;
|
|
4666
4667
|
var Io = s.forwardRef(
|
|
4667
4668
|
(e, t) => {
|
|
4668
|
-
const { match: r, forceMatch: n = !1, name: o, children: i, ...l } = e, c =
|
|
4669
|
+
const { match: r, forceMatch: n = !1, name: o, children: i, ...l } = e, c = L2(D2, l.__scopeForm).getFieldValidity(o);
|
|
4669
4670
|
return n || c?.[r] ? /* @__PURE__ */ u.jsx(We, { ref: t, ...l, name: o, children: i ?? Vo[r] }) : null;
|
|
4670
4671
|
}
|
|
4671
4672
|
), Oo = s.forwardRef(
|
|
4672
4673
|
(e, t) => {
|
|
4673
|
-
const { match: r, forceMatch: n = !1, name: o, id: i, children: l, ...a } = e, c =
|
|
4674
|
+
const { match: r, forceMatch: n = !1, name: o, id: i, children: l, ...a } = e, c = L2(D2, a.__scopeForm), d = s.useRef(null), f = e2(t, d), p = f2(), h = i ?? p, v = s.useMemo(() => ({ id: h, match: r }), [h, r]), { onFieldCustomMatcherEntryAdd: y, onFieldCustomMatcherEntryRemove: m } = c;
|
|
4674
4675
|
s.useEffect(() => (y(o, v), () => m(o, v.id)), [v, o, y, m]);
|
|
4675
4676
|
const g = c.getFieldValidity(o), b = c.getFieldCustomErrors(o)[h];
|
|
4676
|
-
return n || g && !dt(g) && b ? /* @__PURE__ */ u.jsx(We, { id: h, ref: f, ...a, name: o, children: l ??
|
|
4677
|
+
return n || g && !dt(g) && b ? /* @__PURE__ */ u.jsx(We, { id: h, ref: f, ...a, name: o, children: l ?? T2 }) : null;
|
|
4677
4678
|
}
|
|
4678
4679
|
), We = s.forwardRef(
|
|
4679
4680
|
(e, t) => {
|
|
4680
|
-
const { __scopeForm: r, id: n, name: o, ...i } = e, l = nt(
|
|
4681
|
-
return s.useEffect(() => (d(o, c), () => f(o, c)), [o, c, d, f]), /* @__PURE__ */ u.jsx(
|
|
4681
|
+
const { __scopeForm: r, id: n, name: o, ...i } = e, l = nt(D2, r), a = f2(), c = n ?? a, { onFieldMessageIdAdd: d, onFieldMessageIdRemove: f } = l;
|
|
4682
|
+
return s.useEffect(() => (d(o, c), () => f(o, c)), [o, c, d, f]), /* @__PURE__ */ u.jsx(O2.span, { id: c, ...i, ref: t });
|
|
4682
4683
|
}
|
|
4683
4684
|
), Lo = "FormSubmit", ct = s.forwardRef(
|
|
4684
4685
|
(e, t) => {
|
|
4685
4686
|
const { __scopeForm: r, ...n } = e;
|
|
4686
|
-
return /* @__PURE__ */ u.jsx(
|
|
4687
|
+
return /* @__PURE__ */ u.jsx(O2.button, { type: "submit", ...n, ref: t });
|
|
4687
4688
|
}
|
|
4688
4689
|
);
|
|
4689
4690
|
ct.displayName = Lo;
|
|
@@ -4798,7 +4799,7 @@ const Uo = z({
|
|
|
4798
4799
|
type: t = "error",
|
|
4799
4800
|
className: r,
|
|
4800
4801
|
...n
|
|
4801
|
-
}) =>
|
|
4802
|
+
}) => V2(
|
|
4802
4803
|
e,
|
|
4803
4804
|
{
|
|
4804
4805
|
className: v2(
|
|
@@ -5708,11 +5709,11 @@ _t.displayName = U1;
|
|
|
5708
5709
|
function Y1(e, t) {
|
|
5709
5710
|
return s.useReducer((r, n) => t[r][n] ?? r, e);
|
|
5710
5711
|
}
|
|
5711
|
-
var
|
|
5712
|
+
var F2 = (e) => {
|
|
5712
5713
|
const { present: t, children: r } = e, n = K1(t), o = typeof r == "function" ? r({ present: n.isPresent }) : s.Children.only(r), i = e2(n.ref, q1(o));
|
|
5713
5714
|
return typeof r == "function" || n.isPresent ? s.cloneElement(o, { ref: i }) : null;
|
|
5714
5715
|
};
|
|
5715
|
-
|
|
5716
|
+
F2.displayName = "Presence";
|
|
5716
5717
|
function K1(e) {
|
|
5717
5718
|
const [t, r] = s.useState(), n = s.useRef(null), o = s.useRef(e), i = s.useRef("none"), l = e ? "mounted" : "unmounted", [a, c] = Y1(l, {
|
|
5718
5719
|
mounted: {
|
|
@@ -5728,19 +5729,19 @@ function K1(e) {
|
|
|
5728
5729
|
}
|
|
5729
5730
|
});
|
|
5730
5731
|
return s.useEffect(() => {
|
|
5731
|
-
const d =
|
|
5732
|
+
const d = K2(n.current);
|
|
5732
5733
|
i.current = a === "mounted" ? d : "none";
|
|
5733
5734
|
}, [a]), p2(() => {
|
|
5734
5735
|
const d = n.current, f = o.current;
|
|
5735
5736
|
if (f !== e) {
|
|
5736
|
-
const h = i.current, v =
|
|
5737
|
+
const h = i.current, v = K2(d);
|
|
5737
5738
|
e ? c("MOUNT") : v === "none" || d?.display === "none" ? c("UNMOUNT") : c(f && h !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
5738
5739
|
}
|
|
5739
5740
|
}, [e, c]), p2(() => {
|
|
5740
5741
|
if (t) {
|
|
5741
5742
|
let d;
|
|
5742
5743
|
const f = t.ownerDocument.defaultView ?? window, p = (v) => {
|
|
5743
|
-
const m =
|
|
5744
|
+
const m = K2(n.current).includes(CSS.escape(v.animationName));
|
|
5744
5745
|
if (v.target === t && m && (c("ANIMATION_END"), !o.current)) {
|
|
5745
5746
|
const g = t.style.animationFillMode;
|
|
5746
5747
|
t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
|
|
@@ -5748,7 +5749,7 @@ function K1(e) {
|
|
|
5748
5749
|
});
|
|
5749
5750
|
}
|
|
5750
5751
|
}, h = (v) => {
|
|
5751
|
-
v.target === t && (i.current =
|
|
5752
|
+
v.target === t && (i.current = K2(n.current));
|
|
5752
5753
|
};
|
|
5753
5754
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
5754
5755
|
f.clearTimeout(d), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
@@ -5762,7 +5763,7 @@ function K1(e) {
|
|
|
5762
5763
|
}, [])
|
|
5763
5764
|
};
|
|
5764
5765
|
}
|
|
5765
|
-
function
|
|
5766
|
+
function K2(e) {
|
|
5766
5767
|
return e?.animationName || "none";
|
|
5767
5768
|
}
|
|
5768
5769
|
function q1(e) {
|
|
@@ -5830,7 +5831,7 @@ var ri = [
|
|
|
5830
5831
|
"span",
|
|
5831
5832
|
"svg",
|
|
5832
5833
|
"ul"
|
|
5833
|
-
],
|
|
5834
|
+
], H2 = ri.reduce((e, t) => {
|
|
5834
5835
|
const r = /* @__PURE__ */ Rt(`Primitive.${t}`), n = s.forwardRef((o, i) => {
|
|
5835
5836
|
const { asChild: l, ...a } = o, c = l ? r : t;
|
|
5836
5837
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...a, ref: i });
|
|
@@ -5871,7 +5872,7 @@ function oi(e, t, r) {
|
|
|
5871
5872
|
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
5872
5873
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
5873
5874
|
}
|
|
5874
|
-
var
|
|
5875
|
+
var te = "right-scroll-bar-position", re = "width-before-scroll-bar", ii = "with-scroll-bars-hidden", ai = "--removed-body-scroll-bar-size";
|
|
5875
5876
|
function ye(e, t) {
|
|
5876
5877
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
5877
5878
|
}
|
|
@@ -6012,8 +6013,8 @@ se.defaultProps = {
|
|
|
6012
6013
|
inert: !1
|
|
6013
6014
|
};
|
|
6014
6015
|
se.classNames = {
|
|
6015
|
-
fullWidth:
|
|
6016
|
-
zeroRight:
|
|
6016
|
+
fullWidth: re,
|
|
6017
|
+
zeroRight: te
|
|
6017
6018
|
};
|
|
6018
6019
|
var mi = function() {
|
|
6019
6020
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -6103,19 +6104,19 @@ var vi = function() {
|
|
|
6103
6104
|
].filter(Boolean).join(""), `
|
|
6104
6105
|
}
|
|
6105
6106
|
|
|
6106
|
-
.`).concat(
|
|
6107
|
+
.`).concat(te, ` {
|
|
6107
6108
|
right: `).concat(a, "px ").concat(n, `;
|
|
6108
6109
|
}
|
|
6109
6110
|
|
|
6110
|
-
.`).concat(
|
|
6111
|
+
.`).concat(re, ` {
|
|
6111
6112
|
margin-right: `).concat(a, "px ").concat(n, `;
|
|
6112
6113
|
}
|
|
6113
6114
|
|
|
6114
|
-
.`).concat(
|
|
6115
|
+
.`).concat(te, " .").concat(te, ` {
|
|
6115
6116
|
right: 0 `).concat(n, `;
|
|
6116
6117
|
}
|
|
6117
6118
|
|
|
6118
|
-
.`).concat(
|
|
6119
|
+
.`).concat(re, " .").concat(re, ` {
|
|
6119
6120
|
margin-right: 0 `).concat(n, `;
|
|
6120
6121
|
}
|
|
6121
6122
|
|
|
@@ -6143,12 +6144,12 @@ var vi = function() {
|
|
|
6143
6144
|
}, Oe = !1;
|
|
6144
6145
|
if (typeof window < "u")
|
|
6145
6146
|
try {
|
|
6146
|
-
var
|
|
6147
|
+
var q2 = Object.defineProperty({}, "passive", {
|
|
6147
6148
|
get: function() {
|
|
6148
6149
|
return Oe = !0, !0;
|
|
6149
6150
|
}
|
|
6150
6151
|
});
|
|
6151
|
-
window.addEventListener("test",
|
|
6152
|
+
window.addEventListener("test", q2, q2), window.removeEventListener("test", q2, q2);
|
|
6152
6153
|
} catch {
|
|
6153
6154
|
Oe = !1;
|
|
6154
6155
|
}
|
|
@@ -6215,7 +6216,7 @@ var x2 = Oe ? { passive: !1 } : !1, Ai = function(e) {
|
|
|
6215
6216
|
c && (t.contains(a) || t === a)
|
|
6216
6217
|
);
|
|
6217
6218
|
return (f && Math.abs(p) < 1 || !f && Math.abs(h) < 1) && (d = !0), d;
|
|
6218
|
-
},
|
|
6219
|
+
}, X2 = function(e) {
|
|
6219
6220
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6220
6221
|
}, R0 = function(e) {
|
|
6221
6222
|
return [e.deltaX, e.deltaY];
|
|
@@ -6249,7 +6250,7 @@ function Li(e) {
|
|
|
6249
6250
|
var a = s.useCallback(function(m, g) {
|
|
6250
6251
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
6251
6252
|
return !l.current.allowPinchZoom;
|
|
6252
|
-
var x =
|
|
6253
|
+
var x = X2(m), b = r.current, S = "deltaX" in m ? m.deltaX : b[0] - x[0], _ = "deltaY" in m ? m.deltaY : b[1] - x[1], V, G = m.target, T = Math.abs(S) > Math.abs(_) ? "h" : "v";
|
|
6253
6254
|
if ("touches" in m && T === "h" && G.type === "range")
|
|
6254
6255
|
return !1;
|
|
6255
6256
|
var E = _0(T, G);
|
|
@@ -6264,7 +6265,7 @@ function Li(e) {
|
|
|
6264
6265
|
}, []), c = s.useCallback(function(m) {
|
|
6265
6266
|
var g = m;
|
|
6266
6267
|
if (!(!w2.length || w2[w2.length - 1] !== i)) {
|
|
6267
|
-
var x = "deltaY" in g ? R0(g) :
|
|
6268
|
+
var x = "deltaY" in g ? R0(g) : X2(g), b = t.current.filter(function(V) {
|
|
6268
6269
|
return V.name === g.type && (V.target === g.target || g.target === V.shadowParent) && Vi(V.delta, x);
|
|
6269
6270
|
})[0];
|
|
6270
6271
|
if (b && b.should) {
|
|
@@ -6286,11 +6287,11 @@ function Li(e) {
|
|
|
6286
6287
|
});
|
|
6287
6288
|
}, 1);
|
|
6288
6289
|
}, []), f = s.useCallback(function(m) {
|
|
6289
|
-
r.current =
|
|
6290
|
+
r.current = X2(m), n.current = void 0;
|
|
6290
6291
|
}, []), p = s.useCallback(function(m) {
|
|
6291
6292
|
d(m.type, R0(m), m.target, a(m, e.lockRef.current));
|
|
6292
6293
|
}, []), h = s.useCallback(function(m) {
|
|
6293
|
-
d(m.type,
|
|
6294
|
+
d(m.type, X2(m), m.target, a(m, e.lockRef.current));
|
|
6294
6295
|
}, []);
|
|
6295
6296
|
s.useEffect(function() {
|
|
6296
6297
|
return w2.push(i), e.setCallbacks({
|
|
@@ -6326,7 +6327,7 @@ var Hi = function(e) {
|
|
|
6326
6327
|
return null;
|
|
6327
6328
|
var t = Array.isArray(e) ? e[0] : e;
|
|
6328
6329
|
return t.ownerDocument.body;
|
|
6329
|
-
}, E2 = /* @__PURE__ */ new WeakMap(),
|
|
6330
|
+
}, E2 = /* @__PURE__ */ new WeakMap(), J2 = /* @__PURE__ */ new WeakMap(), Q2 = {}, Ee = 0, It = function(e) {
|
|
6330
6331
|
return e && (e.host || It(e.parentNode));
|
|
6331
6332
|
}, $i = function(e, t) {
|
|
6332
6333
|
return t.map(function(r) {
|
|
@@ -6339,8 +6340,8 @@ var Hi = function(e) {
|
|
|
6339
6340
|
});
|
|
6340
6341
|
}, Gi = function(e, t, r, n) {
|
|
6341
6342
|
var o = $i(t, Array.isArray(e) ? e : [e]);
|
|
6342
|
-
|
|
6343
|
-
var i =
|
|
6343
|
+
Q2[r] || (Q2[r] = /* @__PURE__ */ new WeakMap());
|
|
6344
|
+
var i = Q2[r], l = [], a = /* @__PURE__ */ new Set(), c = new Set(o), d = function(p) {
|
|
6344
6345
|
!p || a.has(p) || (a.add(p), d(p.parentNode));
|
|
6345
6346
|
};
|
|
6346
6347
|
o.forEach(d);
|
|
@@ -6351,7 +6352,7 @@ var Hi = function(e) {
|
|
|
6351
6352
|
else
|
|
6352
6353
|
try {
|
|
6353
6354
|
var v = h.getAttribute(n), y = v !== null && v !== "false", m = (E2.get(h) || 0) + 1, g = (i.get(h) || 0) + 1;
|
|
6354
|
-
E2.set(h, m), i.set(h, g), l.push(h), m === 1 && y &&
|
|
6355
|
+
E2.set(h, m), i.set(h, g), l.push(h), m === 1 && y && J2.set(h, !0), g === 1 && h.setAttribute(r, "true"), y || h.setAttribute(n, "true");
|
|
6355
6356
|
} catch (x) {
|
|
6356
6357
|
console.error("aria-hidden: cannot operate on ", h, x);
|
|
6357
6358
|
}
|
|
@@ -6360,8 +6361,8 @@ var Hi = function(e) {
|
|
|
6360
6361
|
return f(t), a.clear(), Ee++, function() {
|
|
6361
6362
|
l.forEach(function(p) {
|
|
6362
6363
|
var h = E2.get(p) - 1, v = i.get(p) - 1;
|
|
6363
|
-
E2.set(p, h), i.set(p, v), h || (
|
|
6364
|
-
}), Ee--, Ee || (E2 = /* @__PURE__ */ new WeakMap(), E2 = /* @__PURE__ */ new WeakMap(),
|
|
6364
|
+
E2.set(p, h), i.set(p, v), h || (J2.has(p) || p.removeAttribute(n), J2.delete(p)), v || p.removeAttribute(r);
|
|
6365
|
+
}), Ee--, Ee || (E2 = /* @__PURE__ */ new WeakMap(), E2 = /* @__PURE__ */ new WeakMap(), J2 = /* @__PURE__ */ new WeakMap(), Q2 = {});
|
|
6365
6366
|
};
|
|
6366
6367
|
}, Zi = function(e, t, r) {
|
|
6367
6368
|
r === void 0 && (r = "data-aria-hidden");
|
|
@@ -6369,7 +6370,7 @@ var Hi = function(e) {
|
|
|
6369
6370
|
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), Gi(n, o, r, "aria-hidden")) : function() {
|
|
6370
6371
|
return null;
|
|
6371
6372
|
};
|
|
6372
|
-
}, le = "Dialog", [Ot] =
|
|
6373
|
+
}, le = "Dialog", [Ot] = I2(le), [Wi, o2] = Ot(le), Lt = (e) => {
|
|
6373
6374
|
const {
|
|
6374
6375
|
__scopeDialog: t,
|
|
6375
6376
|
children: r,
|
|
@@ -6405,7 +6406,7 @@ var Dt = "DialogTrigger", Bi = s.forwardRef(
|
|
|
6405
6406
|
(e, t) => {
|
|
6406
6407
|
const { __scopeDialog: r, ...n } = e, o = o2(Dt, r), i = e2(t, o.triggerRef);
|
|
6407
6408
|
return /* @__PURE__ */ u.jsx(
|
|
6408
|
-
|
|
6409
|
+
H2.button,
|
|
6409
6410
|
{
|
|
6410
6411
|
type: "button",
|
|
6411
6412
|
"aria-haspopup": "dialog",
|
|
@@ -6424,13 +6425,13 @@ var Ke = "DialogPortal", [zi, Ft] = Ot(Ke, {
|
|
|
6424
6425
|
forceMount: void 0
|
|
6425
6426
|
}), Ht = (e) => {
|
|
6426
6427
|
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, i = o2(Ke, t);
|
|
6427
|
-
return /* @__PURE__ */ u.jsx(zi, { scope: t, forceMount: r, children: s.Children.map(n, (l) => /* @__PURE__ */ u.jsx(
|
|
6428
|
+
return /* @__PURE__ */ u.jsx(zi, { scope: t, forceMount: r, children: s.Children.map(n, (l) => /* @__PURE__ */ u.jsx(F2, { present: r || i.open, children: /* @__PURE__ */ u.jsx(_t, { asChild: !0, container: o, children: l }) })) });
|
|
6428
6429
|
};
|
|
6429
6430
|
Ht.displayName = Ke;
|
|
6430
6431
|
var oe = "DialogOverlay", $t = s.forwardRef(
|
|
6431
6432
|
(e, t) => {
|
|
6432
6433
|
const r = Ft(oe, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, i = o2(oe, e.__scopeDialog);
|
|
6433
|
-
return i.modal ? /* @__PURE__ */ u.jsx(
|
|
6434
|
+
return i.modal ? /* @__PURE__ */ u.jsx(F2, { present: n || i.open, children: /* @__PURE__ */ u.jsx(Yi, { ...o, ref: t }) }) : null;
|
|
6434
6435
|
}
|
|
6435
6436
|
);
|
|
6436
6437
|
$t.displayName = oe;
|
|
@@ -6441,7 +6442,7 @@ var Ui = /* @__PURE__ */ Rt("DialogOverlay.RemoveScroll"), Yi = s.forwardRef(
|
|
|
6441
6442
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
6442
6443
|
// ie. when `Overlay` and `Content` are siblings
|
|
6443
6444
|
/* @__PURE__ */ u.jsx(Vt, { as: Ui, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
6444
|
-
|
|
6445
|
+
H2.div,
|
|
6445
6446
|
{
|
|
6446
6447
|
"data-state": Xe(o.open),
|
|
6447
6448
|
...n,
|
|
@@ -6454,7 +6455,7 @@ var Ui = /* @__PURE__ */ Rt("DialogOverlay.RemoveScroll"), Yi = s.forwardRef(
|
|
|
6454
6455
|
), g2 = "DialogContent", Gt = s.forwardRef(
|
|
6455
6456
|
(e, t) => {
|
|
6456
6457
|
const r = Ft(g2, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, i = o2(g2, e.__scopeDialog);
|
|
6457
|
-
return /* @__PURE__ */ u.jsx(
|
|
6458
|
+
return /* @__PURE__ */ u.jsx(F2, { present: n || i.open, children: i.modal ? /* @__PURE__ */ u.jsx(Ki, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(qi, { ...o, ref: t }) });
|
|
6458
6459
|
}
|
|
6459
6460
|
);
|
|
6460
6461
|
Gt.displayName = g2;
|
|
@@ -6542,14 +6543,14 @@ var Ki = s.forwardRef(
|
|
|
6542
6543
|
), qe = "DialogTitle", Wt = s.forwardRef(
|
|
6543
6544
|
(e, t) => {
|
|
6544
6545
|
const { __scopeDialog: r, ...n } = e, o = o2(qe, r);
|
|
6545
|
-
return /* @__PURE__ */ u.jsx(
|
|
6546
|
+
return /* @__PURE__ */ u.jsx(H2.h2, { id: o.titleId, ...n, ref: t });
|
|
6546
6547
|
}
|
|
6547
6548
|
);
|
|
6548
6549
|
Wt.displayName = qe;
|
|
6549
6550
|
var Bt = "DialogDescription", Xi = s.forwardRef(
|
|
6550
6551
|
(e, t) => {
|
|
6551
6552
|
const { __scopeDialog: r, ...n } = e, o = o2(Bt, r);
|
|
6552
|
-
return /* @__PURE__ */ u.jsx(
|
|
6553
|
+
return /* @__PURE__ */ u.jsx(H2.p, { id: o.descriptionId, ...n, ref: t });
|
|
6553
6554
|
}
|
|
6554
6555
|
);
|
|
6555
6556
|
Xi.displayName = Bt;
|
|
@@ -6557,7 +6558,7 @@ var zt = "DialogClose", Ut = s.forwardRef(
|
|
|
6557
6558
|
(e, t) => {
|
|
6558
6559
|
const { __scopeDialog: r, ...n } = e, o = o2(zt, r);
|
|
6559
6560
|
return /* @__PURE__ */ u.jsx(
|
|
6560
|
-
|
|
6561
|
+
H2.button,
|
|
6561
6562
|
{
|
|
6562
6563
|
type: "button",
|
|
6563
6564
|
...n,
|
|
@@ -6591,7 +6592,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
6591
6592
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
6592
6593
|
}, [n, e, t]), null;
|
|
6593
6594
|
}, ta = Lt, ra = Ht, na = $t, oa = Gt, ia = Wt, aa = Ut;
|
|
6594
|
-
const sa = ({ as: e, className: t, ...r }) =>
|
|
6595
|
+
const sa = ({ as: e, className: t, ...r }) => V2(
|
|
6595
6596
|
e,
|
|
6596
6597
|
{
|
|
6597
6598
|
role: "heading",
|
|
@@ -6777,7 +6778,7 @@ function Ca(e) {
|
|
|
6777
6778
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
6778
6779
|
}
|
|
6779
6780
|
function ha(e) {
|
|
6780
|
-
const t = e + "CollectionProvider", [r, n] =
|
|
6781
|
+
const t = e + "CollectionProvider", [r, n] = I2(t), [o, i] = r(
|
|
6781
6782
|
t,
|
|
6782
6783
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
6783
6784
|
), l = (m) => {
|
|
@@ -6888,13 +6889,13 @@ function Jt(e) {
|
|
|
6888
6889
|
const t = s.useContext(Sa);
|
|
6889
6890
|
return e || t || "ltr";
|
|
6890
6891
|
}
|
|
6891
|
-
var Se = "rovingFocusGroup.onEntryFocus", _a = { bubbles: !1, cancelable: !0 },
|
|
6892
|
-
|
|
6892
|
+
var Se = "rovingFocusGroup.onEntryFocus", _a = { bubbles: !1, cancelable: !0 }, $2 = "RovingFocusGroup", [Le, Qt, Ra] = ha($2), [Aa, er] = I2(
|
|
6893
|
+
$2,
|
|
6893
6894
|
[Ra]
|
|
6894
|
-
), [ka, Ma] = Aa(
|
|
6895
|
+
), [ka, Ma] = Aa($2), tr = s.forwardRef(
|
|
6895
6896
|
(e, t) => /* @__PURE__ */ u.jsx(Le.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Le.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Pa, { ...e, ref: t }) }) })
|
|
6896
6897
|
);
|
|
6897
|
-
tr.displayName =
|
|
6898
|
+
tr.displayName = $2;
|
|
6898
6899
|
var Pa = s.forwardRef((e, t) => {
|
|
6899
6900
|
const {
|
|
6900
6901
|
__scopeRovingFocusGroup: r,
|
|
@@ -6911,7 +6912,7 @@ var Pa = s.forwardRef((e, t) => {
|
|
|
6911
6912
|
prop: l,
|
|
6912
6913
|
defaultProp: a ?? null,
|
|
6913
6914
|
onChange: c,
|
|
6914
|
-
caller:
|
|
6915
|
+
caller: $2
|
|
6915
6916
|
}), [x, b] = s.useState(!1), S = h2(d), _ = Qt(r), V = s.useRef(!1), [G, T] = s.useState(0);
|
|
6916
6917
|
return s.useEffect(() => {
|
|
6917
6918
|
const E = h.current;
|
|
@@ -7120,7 +7121,7 @@ var Za = [
|
|
|
7120
7121
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(c, { ...a, ref: i });
|
|
7121
7122
|
});
|
|
7122
7123
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
7123
|
-
}, {}), ue = "Tabs", [Wa] =
|
|
7124
|
+
}, {}), ue = "Tabs", [Wa] = I2(ue, [
|
|
7124
7125
|
er
|
|
7125
7126
|
]), ir = er(), [Ba, e0] = Wa(ue), ar = s.forwardRef(
|
|
7126
7127
|
(e, t) => {
|
|
@@ -7234,7 +7235,7 @@ var dr = "TabsContent", fr = s.forwardRef(
|
|
|
7234
7235
|
return s.useEffect(() => {
|
|
7235
7236
|
const h = requestAnimationFrame(() => p.current = !1);
|
|
7236
7237
|
return () => cancelAnimationFrame(h);
|
|
7237
|
-
}, []), /* @__PURE__ */ u.jsx(
|
|
7238
|
+
}, []), /* @__PURE__ */ u.jsx(F2, { present: o || f, children: ({ present: h }) => /* @__PURE__ */ u.jsx(
|
|
7238
7239
|
ce.div,
|
|
7239
7240
|
{
|
|
7240
7241
|
"data-state": f ? "active" : "inactive",
|
|
@@ -7570,7 +7571,7 @@ const qa = z({}), ms = (e) => /* @__PURE__ */ u.jsx(Ka, { value: e.value, classN
|
|
|
7570
7571
|
as: e = "span",
|
|
7571
7572
|
className: t,
|
|
7572
7573
|
...r
|
|
7573
|
-
}) =>
|
|
7574
|
+
}) => V2(
|
|
7574
7575
|
e,
|
|
7575
7576
|
{ className: v2(t, tt(r)) },
|
|
7576
7577
|
r.children
|