@moises.ai/design-system 2.0.2 → 2.0.3
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/README.md +28 -0
- package/dist/colors/custom-styles.css +81 -0
- package/dist/icons.js +428 -6893
- package/dist/index-Cz-U2WeV.js +8415 -0
- package/dist/index.js +781 -854
- package/dist/primitives.js +2209 -1436
- package/dist/react-icons.esm-oPXFAjzR.js +6780 -0
- package/package.json +3 -2
- package/dist/index-BIjOAs1j.js +0 -9205
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as y, jsxs as L, Fragment as $a } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import x, { useState as ba, useRef as wa, useCallback as W, useMemo as pe, memo as Ea } from "react";
|
|
4
|
+
import { S as $, P as Be, a as Ra, A as Sa, C as xa, b as Ta, O as Ma, c as Pa, D as za, R as Ia, T as ka, d as _a, e as Ba, f as Aa, F as Da, I as Va, g as ja, u as Oa, h as La, i as Ga, j as Ae, V as De, k as Ne, l as he, m as Ha, n as Fa, o as Ce, p as Ve, q as je, r as Wa, G as qa, s as Ka, L as Za, t as Qa, v as Ya, w as Xa, x as Ja, y as Ua, z as er, B as tr, E as ar, H as rr, J as sr, K as nr, M as or, N as lr, Q as cr, U as ir, W as ur, X as mr, Y as dr, Z as pr, _ as fr, $ as gr, a0 as vr, a1 as Nr, a2 as hr, a3 as yr, a4 as Cr, a5 as $r, a6 as br, a7 as wr, a8 as Oe, a9 as Er, aa as Rr, ab as Le, ac as Sr, ad as xr, ae as Tr, af as Mr, ag as Pr, ah as zr, ai as Ir, aj as kr, ak as _r, al as Br, am as Ar, an as Dr, ao as Vr, ap as jr, aq as Ge, ar as He, as as Fe, at as We, au as Or, av as Lr, aw as Gr, ax as Hr, ay as Fr, az as Wr, aA as qe, aB as Ke, aC as qr, aD as Ze, aE as Qe, aF as Kr, aG as Zr, aH as Qr, aI as Yr, aJ as Xr, aK as Jr, aL as Ur, aM as es, aN as ts } from "./index-Cz-U2WeV.js";
|
|
5
|
+
import { C as as } from "./react-icons.esm-oPXFAjzR.js";
|
|
6
|
+
function rs(t) {
|
|
6
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
var $t = { exports: {} };
|
|
9
|
+
var Ye = { exports: {} };
|
|
10
10
|
/*!
|
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
|
12
12
|
Licensed under the MIT License (MIT), see
|
|
@@ -41,35 +41,35 @@ var $t = { exports: {} };
|
|
|
41
41
|
}
|
|
42
42
|
t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
|
|
43
43
|
})();
|
|
44
|
-
})(
|
|
45
|
-
var
|
|
46
|
-
const
|
|
47
|
-
function
|
|
44
|
+
})(Ye);
|
|
45
|
+
var ss = Ye.exports;
|
|
46
|
+
const u = /* @__PURE__ */ rs(ss), N = { asChild: { type: "boolean" } }, w = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, K = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, ns = ["1", "2", "3", "4"], Xe = { ...N, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: ns, default: "3", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "600px" }, ...K }, Je = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], C = { color: { type: "enum", values: Je, default: void 0 } }, re = { color: { type: "enum", values: Je, default: "" } }, E = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, os = ["normal", "start", "end", "both"], $e = { trim: { type: "enum", className: "rt-r-lt", values: os, responsive: !0 } }, ls = ["left", "center", "right"], Ue = { align: { type: "enum", className: "rt-r-ta", values: ls, responsive: !0 } }, cs = ["wrap", "nowrap", "pretty", "balance"], G = { wrap: { type: "enum", className: "rt-r-tw", values: cs, responsive: !0 } }, H = { truncate: { type: "boolean", className: "rt-truncate" } }, is = ["light", "regular", "medium", "bold"], me = { weight: { type: "enum", className: "rt-r-weight", values: is, responsive: !0 } }, us = ["h1", "h2", "h3", "h4", "h5", "h6"], ms = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], ds = { as: { type: "enum", values: us, default: "h1" }, ...N, size: { type: "enum", className: "rt-r-size", values: ms, default: "6", responsive: !0 }, ...me, ...Ue, ...$e, ...H, ...G, ...C, ...E }, be = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
47
|
+
function et(t, a) {
|
|
48
48
|
return Object.prototype.hasOwnProperty.call(t, a);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return typeof t == "object" && Object.keys(t).some((a) =>
|
|
50
|
+
function U(t) {
|
|
51
|
+
return typeof t == "object" && Object.keys(t).some((a) => be.includes(a));
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const s =
|
|
53
|
+
function k({ className: t, customProperties: a, ...r }) {
|
|
54
|
+
const s = te({ allowArbitraryValues: !0, className: t, ...r }), n = ps({ customProperties: a, ...r });
|
|
55
55
|
return [s, n];
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function te({ allowArbitraryValues: t, value: a, className: r, propValues: s, parseValue: n = (o) => o }) {
|
|
58
58
|
const o = [];
|
|
59
59
|
if (a) {
|
|
60
|
-
if (typeof a == "string" && s.includes(a)) return
|
|
61
|
-
if (
|
|
60
|
+
if (typeof a == "string" && s.includes(a)) return ze(r, a, n);
|
|
61
|
+
if (U(a)) {
|
|
62
62
|
const l = a;
|
|
63
63
|
for (const c in l) {
|
|
64
|
-
if (!
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
if (s.includes(
|
|
68
|
-
const
|
|
69
|
-
o.push(f);
|
|
70
|
-
} else if (t) {
|
|
71
|
-
const p = c === "initial" ? r : `${c}:${r}`;
|
|
64
|
+
if (!et(l, c) || !be.includes(c)) continue;
|
|
65
|
+
const i = l[c];
|
|
66
|
+
if (i !== void 0) {
|
|
67
|
+
if (s.includes(i)) {
|
|
68
|
+
const d = ze(r, i, n), p = c === "initial" ? d : `${c}:${d}`;
|
|
72
69
|
o.push(p);
|
|
70
|
+
} else if (t) {
|
|
71
|
+
const d = c === "initial" ? r : `${c}:${r}`;
|
|
72
|
+
o.push(d);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -78,19 +78,19 @@ function he({ allowArbitraryValues: t, value: a, className: r, propValues: s, pa
|
|
|
78
78
|
if (t) return r;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ze(t, a, r) {
|
|
82
82
|
const s = t ? "-" : "", n = r(a), o = n == null ? void 0 : n.startsWith("-"), l = o ? "-" : "", c = o ? n == null ? void 0 : n.substring(1) : n;
|
|
83
83
|
return `${l}${t}${s}${c}`;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ps({ customProperties: t, value: a, propValues: r, parseValue: s = (n) => n }) {
|
|
86
86
|
let n = {};
|
|
87
87
|
if (!(!a || typeof a == "string" && r.includes(a))) {
|
|
88
|
-
if (typeof a == "string" && (n = Object.fromEntries(t.map((o) => [o, a]))),
|
|
88
|
+
if (typeof a == "string" && (n = Object.fromEntries(t.map((o) => [o, a]))), U(a)) {
|
|
89
89
|
const o = a;
|
|
90
90
|
for (const l in o) {
|
|
91
|
-
if (!
|
|
91
|
+
if (!et(o, l) || !be.includes(l)) continue;
|
|
92
92
|
const c = o[l];
|
|
93
|
-
if (!r.includes(c)) for (const
|
|
93
|
+
if (!r.includes(c)) for (const i of t) n = { [l === "initial" ? i : `${i}-${l}`]: c, ...n };
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
for (const o in n) {
|
|
@@ -100,53 +100,53 @@ function Jn({ customProperties: t, value: a, propValues: r, parseValue: s = (n)
|
|
|
100
100
|
return n;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ae(...t) {
|
|
104
104
|
let a = {};
|
|
105
105
|
for (const r of t) r && (a = { ...a, ...r });
|
|
106
106
|
return Object.keys(a).length ? a : void 0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function fs(...t) {
|
|
109
109
|
return Object.assign({}, ...t);
|
|
110
110
|
}
|
|
111
111
|
function m(t, ...a) {
|
|
112
112
|
let r, s;
|
|
113
|
-
const n = { ...t }, o =
|
|
113
|
+
const n = { ...t }, o = fs(...a);
|
|
114
114
|
for (const l in o) {
|
|
115
115
|
let c = n[l];
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
116
|
+
const i = o[l];
|
|
117
|
+
if (i.default !== void 0 && c === void 0 && (c = i.default), i.type === "enum" && ![i.default, ...i.values].includes(c) && !U(c) && (c = i.default), n[l] = c, "className" in i && i.className) {
|
|
118
118
|
delete n[l];
|
|
119
|
-
const
|
|
120
|
-
if (!c ||
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
r =
|
|
119
|
+
const d = "responsive" in i;
|
|
120
|
+
if (!c || U(c) && !d) continue;
|
|
121
|
+
if (U(c) && (i.default !== void 0 && c.initial === void 0 && (c.initial = i.default), i.type === "enum" && ([i.default, ...i.values].includes(c.initial) || (c.initial = i.default))), i.type === "enum") {
|
|
122
|
+
const p = te({ allowArbitraryValues: !1, value: c, className: i.className, propValues: i.values, parseValue: i.parseValue });
|
|
123
|
+
r = u(r, p);
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
s =
|
|
126
|
+
if (i.type === "string" || i.type === "enum | string") {
|
|
127
|
+
const p = i.type === "string" ? [] : i.values, [v, h] = k({ className: i.className, customProperties: i.customProperties, propValues: p, parseValue: i.parseValue, value: c });
|
|
128
|
+
s = ae(s, h), r = u(r, v);
|
|
129
129
|
continue;
|
|
130
130
|
}
|
|
131
|
-
if (
|
|
132
|
-
r =
|
|
131
|
+
if (i.type === "boolean" && c) {
|
|
132
|
+
r = u(r, i.className);
|
|
133
133
|
continue;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
return n.className =
|
|
137
|
+
return n.className = u(r, t.className), n.style = ae(s, t.style), n;
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
const { children: r, className: s, asChild: n, as: o = "h1", color: l, ...c } = m(t,
|
|
141
|
-
return e.createElement(
|
|
139
|
+
const B = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], f = { m: { type: "enum | string", values: B, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: B, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: B, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: B, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: B, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: B, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: B, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, we = e.forwardRef((t, a) => {
|
|
140
|
+
const { children: r, className: s, asChild: n, as: o = "h1", color: l, ...c } = m(t, ds, f);
|
|
141
|
+
return e.createElement($, { "data-accent-color": l, ...c, ref: a, className: u("rt-Heading", s) }, n ? r : e.createElement(o, null, r));
|
|
142
142
|
});
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
const { children: r, className: s, asChild: n, as: o = "span", color: l, ...c } = m(t,
|
|
146
|
-
return e.createElement(
|
|
143
|
+
we.displayName = "Heading";
|
|
144
|
+
const gs = ["span", "div", "label", "p"], vs = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Ns = { as: { type: "enum", values: gs, default: "span" }, ...N, size: { type: "enum", className: "rt-r-size", values: vs, responsive: !0 }, ...me, ...Ue, ...$e, ...H, ...G, ...C, ...E }, F = e.forwardRef((t, a) => {
|
|
145
|
+
const { children: r, className: s, asChild: n, as: o = "span", color: l, ...c } = m(t, Ns, f);
|
|
146
|
+
return e.createElement($, { "data-accent-color": l, ...c, ref: a, className: u("rt-Text", s) }, n ? r : e.createElement(o, null, r));
|
|
147
147
|
});
|
|
148
|
-
|
|
149
|
-
function
|
|
148
|
+
F.displayName = "Text";
|
|
149
|
+
function hs(t) {
|
|
150
150
|
switch (t) {
|
|
151
151
|
case "tomato":
|
|
152
152
|
case "red":
|
|
@@ -182,123 +182,120 @@ function xt(t) {
|
|
|
182
182
|
return "gray";
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
},
|
|
187
|
-
function
|
|
188
|
-
const t = e.useContext(
|
|
185
|
+
const ys = ["none", "small", "medium", "large", "full"], M = { radius: { type: "enum", values: ys, default: void 0 } }, S = { hasBackground: { default: !0 }, appearance: { default: "inherit" }, accentColor: { default: "indigo" }, grayColor: { default: "auto" }, panelBackground: { default: "translucent" }, radius: { default: "medium" }, scaling: { default: "100%" } }, q = () => {
|
|
186
|
+
}, ie = e.createContext(void 0);
|
|
187
|
+
function tt() {
|
|
188
|
+
const t = e.useContext(ie);
|
|
189
189
|
if (t === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
|
|
190
190
|
return t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
const { appearance: r =
|
|
196
|
-
e.useEffect(() =>
|
|
197
|
-
const [
|
|
192
|
+
const P = e.forwardRef((t, a) => e.useContext(ie) === void 0 ? e.createElement(Be, { delayDuration: 200 }, e.createElement(Ra, { dir: "ltr" }, e.createElement(at, { ...t, ref: a }))) : e.createElement(Ee, { ...t, ref: a }));
|
|
193
|
+
P.displayName = "Theme";
|
|
194
|
+
const at = e.forwardRef((t, a) => {
|
|
195
|
+
const { appearance: r = S.appearance.default, accentColor: s = S.accentColor.default, grayColor: n = S.grayColor.default, panelBackground: o = S.panelBackground.default, radius: l = S.radius.default, scaling: c = S.scaling.default, hasBackground: i = S.hasBackground.default, ...d } = t, [p, v] = e.useState(r);
|
|
196
|
+
e.useEffect(() => v(r), [r]);
|
|
197
|
+
const [h, b] = e.useState(s);
|
|
198
198
|
e.useEffect(() => b(s), [s]);
|
|
199
|
-
const [
|
|
200
|
-
e.useEffect(() =>
|
|
201
|
-
const [
|
|
202
|
-
e.useEffect(() =>
|
|
203
|
-
const [
|
|
204
|
-
e.useEffect(() =>
|
|
205
|
-
const [
|
|
206
|
-
return e.useEffect(() =>
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
const r = e.useContext(
|
|
211
|
-
return e.createElement(
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
const
|
|
199
|
+
const [R, g] = e.useState(n);
|
|
200
|
+
e.useEffect(() => g(n), [n]);
|
|
201
|
+
const [z, _] = e.useState(o);
|
|
202
|
+
e.useEffect(() => _(o), [o]);
|
|
203
|
+
const [oe, le] = e.useState(l);
|
|
204
|
+
e.useEffect(() => le(l), [l]);
|
|
205
|
+
const [Z, ce] = e.useState(c);
|
|
206
|
+
return e.useEffect(() => ce(c), [c]), e.createElement(Ee, { ...d, ref: a, isRoot: !0, hasBackground: i, appearance: p, accentColor: h, grayColor: R, panelBackground: z, radius: oe, scaling: Z, onAppearanceChange: v, onAccentColorChange: b, onGrayColorChange: g, onPanelBackgroundChange: _, onRadiusChange: le, onScalingChange: ce });
|
|
207
|
+
});
|
|
208
|
+
at.displayName = "ThemeRoot";
|
|
209
|
+
const Ee = e.forwardRef((t, a) => {
|
|
210
|
+
const r = e.useContext(ie), { asChild: s, isRoot: n, hasBackground: o, appearance: l = (r == null ? void 0 : r.appearance) ?? S.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? S.accentColor.default, grayColor: i = (r == null ? void 0 : r.resolvedGrayColor) ?? S.grayColor.default, panelBackground: d = (r == null ? void 0 : r.panelBackground) ?? S.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? S.radius.default, scaling: v = (r == null ? void 0 : r.scaling) ?? S.scaling.default, onAppearanceChange: h = q, onAccentColorChange: b = q, onGrayColorChange: R = q, onPanelBackgroundChange: g = q, onRadiusChange: z = q, onScalingChange: _ = q, ...oe } = t, le = s ? $ : "div", Z = i === "auto" ? hs(c) : i, ce = t.appearance === "light" || t.appearance === "dark", Ca = o === void 0 ? n || ce : o;
|
|
211
|
+
return e.createElement(ie.Provider, { value: e.useMemo(() => ({ appearance: l, accentColor: c, grayColor: i, resolvedGrayColor: Z, panelBackground: d, radius: p, scaling: v, onAppearanceChange: h, onAccentColorChange: b, onGrayColorChange: R, onPanelBackgroundChange: g, onRadiusChange: z, onScalingChange: _ }), [l, c, i, Z, d, p, v, h, b, R, g, z, _]) }, e.createElement(le, { "data-is-root-theme": n ? "true" : "false", "data-accent-color": c, "data-gray-color": Z, "data-has-background": Ca ? "true" : "false", "data-panel-background": d, "data-radius": p, "data-scaling": v, ref: a, ...oe, className: u("radix-themes", { light: l === "light", dark: l === "dark" }, oe.className) }));
|
|
212
|
+
});
|
|
213
|
+
Ee.displayName = "ThemeImpl";
|
|
214
|
+
const I = (t) => {
|
|
215
215
|
if (!e.isValidElement(t)) throw Error(`Expected a single React Element child, but got: ${e.Children.toArray(t).map((a) => typeof a == "object" && "type" in a && typeof a.type == "string" ? a.type : typeof a).join(", ")}`);
|
|
216
216
|
return t;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
const { align: s, ...n } =
|
|
223
|
-
return e.createElement(
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
217
|
+
}, rt = (t) => e.createElement(Ia, { ...t });
|
|
218
|
+
rt.displayName = "AlertDialog.Root";
|
|
219
|
+
const st = e.forwardRef(({ children: t, ...a }, r) => e.createElement(_a, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
220
|
+
st.displayName = "AlertDialog.Trigger";
|
|
221
|
+
const nt = e.forwardRef(({ align: t, ...a }, r) => {
|
|
222
|
+
const { align: s, ...n } = Xe, { className: o } = m({ align: t }, { align: s }), { className: l, forceMount: c, container: i, ...d } = m(a, n);
|
|
223
|
+
return e.createElement(Ta, { container: i, forceMount: c }, e.createElement(P, { asChild: !0 }, e.createElement(Ma, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, e.createElement(Pa, { ...d, ref: r, className: u("rt-BaseDialogContent", "rt-AlertDialogContent", l) }))))));
|
|
224
|
+
});
|
|
225
|
+
nt.displayName = "AlertDialog.Content";
|
|
226
|
+
const ot = e.forwardRef((t, a) => e.createElement(ka, { asChild: !0 }, e.createElement(we, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
|
|
227
|
+
ot.displayName = "AlertDialog.Title";
|
|
228
|
+
const lt = e.forwardRef((t, a) => e.createElement(za, { asChild: !0 }, e.createElement(F, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
|
|
229
|
+
lt.displayName = "AlertDialog.Description";
|
|
230
|
+
const ct = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Sa, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
231
|
+
ct.displayName = "AlertDialog.Action";
|
|
232
|
+
const it = e.forwardRef(({ children: t, ...a }, r) => e.createElement(xa, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
233
|
+
it.displayName = "AlertDialog.Cancel";
|
|
234
|
+
const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
235
235
|
__proto__: null,
|
|
236
|
-
Action:
|
|
237
|
-
Cancel:
|
|
238
|
-
Content:
|
|
239
|
-
Description:
|
|
240
|
-
Root:
|
|
241
|
-
Title:
|
|
242
|
-
Trigger:
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
244
|
-
function
|
|
236
|
+
Action: ct,
|
|
237
|
+
Cancel: it,
|
|
238
|
+
Content: nt,
|
|
239
|
+
Description: lt,
|
|
240
|
+
Root: rt,
|
|
241
|
+
Title: ot,
|
|
242
|
+
Trigger: st
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = Ba, Cs = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $s = ["solid", "soft"], bs = { ...N, size: { type: "enum", className: "rt-r-size", values: Cs, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $s, default: "soft" }, ...re, ...E, ...M, fallback: { type: "ReactNode", required: !0 } };
|
|
244
|
+
function Re(t, a) {
|
|
245
245
|
const { asChild: r, children: s } = t;
|
|
246
246
|
if (!r) return typeof a == "function" ? a(s) : a;
|
|
247
247
|
const n = e.Children.only(s);
|
|
248
248
|
return e.cloneElement(n, { children: typeof a == "function" ? a(n.props.children) : a });
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
const { asChild: r, children: s, className: n, style: o, color: l, radius: c, ...
|
|
252
|
-
return e.createElement(
|
|
250
|
+
const ws = e.forwardRef((t, a) => {
|
|
251
|
+
const { asChild: r, children: s, className: n, style: o, color: l, radius: c, ...i } = m(t, bs, f);
|
|
252
|
+
return e.createElement(Aa, { "data-accent-color": l, "data-radius": c, className: u("rt-reset", "rt-AvatarRoot", n), style: o, asChild: r }, Re({ asChild: r, children: s }, e.createElement(ut, { ref: a, ...i })));
|
|
253
253
|
});
|
|
254
|
-
|
|
255
|
-
const
|
|
254
|
+
ws.displayName = "Avatar";
|
|
255
|
+
const ut = e.forwardRef(({ fallback: t, ...a }, r) => {
|
|
256
256
|
const [s, n] = e.useState("idle");
|
|
257
|
-
return e.createElement(e.Fragment, null, s === "idle" || s === "loading" ? e.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? e.createElement(
|
|
257
|
+
return e.createElement(e.Fragment, null, s === "idle" || s === "loading" ? e.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? e.createElement(Da, { className: u("rt-AvatarFallback", { "rt-one-letter": typeof t == "string" && t.length === 1, "rt-two-letters": typeof t == "string" && t.length === 2 }), delayMs: 0 }, t) : null, e.createElement(Va, { ref: r, className: "rt-AvatarImage", ...a, onLoadingStatusChange: (o) => {
|
|
258
258
|
var l;
|
|
259
259
|
(l = a.onLoadingStatusChange) == null || l.call(a, o), n(o);
|
|
260
260
|
} }));
|
|
261
261
|
});
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
const { asChild: r, className: s, color: n, radius: o, ...l } = m(t,
|
|
265
|
-
return e.createElement(c, { "data-accent-color": n, "data-radius": o, ...l, ref: a, className:
|
|
262
|
+
ut.displayName = "AvatarImpl";
|
|
263
|
+
const Es = ["1", "2", "3"], Rs = ["solid", "soft", "surface", "outline"], Ss = { ...N, size: { type: "enum", className: "rt-r-size", values: Es, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Rs, default: "soft" }, ...re, ...E, ...M }, xs = e.forwardRef((t, a) => {
|
|
264
|
+
const { asChild: r, className: s, color: n, radius: o, ...l } = m(t, Ss, f), c = r ? $ : "span";
|
|
265
|
+
return e.createElement(c, { "data-accent-color": n, "data-radius": o, ...l, ref: a, className: u("rt-reset", "rt-Badge", s) });
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
const { asChild: r, children: s, className: n, ...o } = t, l = r ?
|
|
270
|
-
return e.createElement(
|
|
267
|
+
xs.displayName = "Badge";
|
|
268
|
+
const Ts = e.forwardRef((t, a) => {
|
|
269
|
+
const { asChild: r, children: s, className: n, ...o } = t, l = r ? $ : "blockquote";
|
|
270
|
+
return e.createElement(F, { asChild: !0, ...o, ref: a, className: u("rt-Blockquote", n) }, e.createElement(l, null, s));
|
|
271
271
|
});
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t,
|
|
275
|
-
return e.createElement(s ?
|
|
272
|
+
Ts.displayName = "Blockquote";
|
|
273
|
+
const Se = $, Ms = ["div", "span"], Ps = ["none", "inline", "inline-block", "block", "contents"], zs = { as: { type: "enum", values: Ms, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Ps, responsive: !0 } }, A = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], ee = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: A, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: A, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: A, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: A, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: A, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: A, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: A, responsive: !0 } }, fe = ["visible", "hidden", "clip", "scroll", "auto"], Is = ["static", "relative", "absolute", "fixed", "sticky"], Q = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], ks = ["0", "1"], _s = ["0", "1"], se = { ...ee, ...w, ...K, position: { type: "enum", className: "rt-r-position", values: Is, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: Q, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: Q, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: Q, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: Q, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: Q, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: fe, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: fe, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: fe, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: ks, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: _s, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, mt = e.forwardRef((t, a) => {
|
|
274
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, zs, se, f);
|
|
275
|
+
return e.createElement(s ? Se : n, { ...o, ref: a, className: u("rt-Box", r) });
|
|
276
276
|
});
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
function
|
|
277
|
+
mt.displayName = "Box";
|
|
278
|
+
const Bs = ["1", "2", "3", "4"], As = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ie = { ...N, size: { type: "enum", className: "rt-r-size", values: Bs, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: As, default: "solid" }, ...re, ...E, ...M, loading: { type: "boolean", className: "rt-loading", default: !1 } }, ge = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], dt = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: ge, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: ge, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: ge, responsive: !0 } }, Ds = ["div", "span"], Vs = ["none", "inline-flex", "flex"], js = ["row", "column", "row-reverse", "column-reverse"], Os = ["start", "center", "end", "baseline", "stretch"], Ls = ["start", "center", "end", "between"], Gs = ["nowrap", "wrap", "wrap-reverse"], pt = { as: { type: "enum", values: Ds, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Vs, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: js, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Os, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Ls, parseValue: Hs, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Gs, responsive: !0 }, ...dt };
|
|
279
|
+
function Hs(t) {
|
|
280
280
|
return t === "between" ? "space-between" : t;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t,
|
|
284
|
-
return e.createElement(s ?
|
|
282
|
+
const ue = e.forwardRef((t, a) => {
|
|
283
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, pt, se, f);
|
|
284
|
+
return e.createElement(s ? Se : n, { ...o, ref: a, className: u("rt-Flex", r) });
|
|
285
285
|
});
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
const { className: r, children: s, loading: n, ...o } = m(t,
|
|
286
|
+
ue.displayName = "Flex";
|
|
287
|
+
const Fs = ["1", "2", "3"], Ws = { size: { type: "enum", className: "rt-r-size", values: Fs, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, ft = e.forwardRef((t, a) => {
|
|
288
|
+
const { className: r, children: s, loading: n, ...o } = m(t, Ws, f);
|
|
289
289
|
if (!n) return s;
|
|
290
|
-
const l = e.createElement("span", { ...o, ref: a, className:
|
|
291
|
-
return s === void 0 ? l : e.createElement(
|
|
290
|
+
const l = e.createElement("span", { ...o, ref: a, className: u("rt-Spinner", r) }, e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
291
|
+
return s === void 0 ? l : e.createElement(ue, { asChild: !0, position: "relative", align: "center", justify: "center" }, e.createElement("span", null, e.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), e.createElement(ue, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, l))));
|
|
292
292
|
});
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
function
|
|
293
|
+
ft.displayName = "Spinner";
|
|
294
|
+
const qs = ja;
|
|
295
|
+
function Ks(t, a) {
|
|
296
296
|
if (t !== void 0) return typeof t == "string" ? a(t) : Object.fromEntries(Object.entries(t).map(([r, s]) => [r, a(s)]));
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return t === "3" ? "3" : "2";
|
|
300
|
-
}
|
|
301
|
-
function Bo(t) {
|
|
298
|
+
function Zs(t) {
|
|
302
299
|
switch (t) {
|
|
303
300
|
case "1":
|
|
304
301
|
return "1";
|
|
@@ -309,701 +306,464 @@ function Bo(t) {
|
|
|
309
306
|
return "3";
|
|
310
307
|
}
|
|
311
308
|
}
|
|
312
|
-
const
|
|
313
|
-
const { size: r =
|
|
314
|
-
return e.createElement(
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
const {
|
|
321
|
-
return e.createElement(
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
const { size: s } = e.useContext(At);
|
|
328
|
-
return e.createElement(E, { as: "p", size: jt(s, Lo), ...a, asChild: !1, ref: r, className: i("rt-CalloutText", t) });
|
|
329
|
-
});
|
|
330
|
-
Ft.displayName = "Callout.Text";
|
|
331
|
-
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
332
|
-
__proto__: null,
|
|
333
|
-
Icon: Zt,
|
|
334
|
-
Root: Ht,
|
|
335
|
-
Text: Ft
|
|
336
|
-
}, Symbol.toStringTag, { value: "Module" })), Vo = ["1", "2", "3", "4", "5"], Go = ["surface", "classic", "ghost"], jo = { ...N, size: { type: "enum", className: "rt-r-size", values: Vo, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Go, default: "surface" } }, Oo = e.forwardRef((t, a) => {
|
|
337
|
-
const { asChild: r, className: s, ...n } = m(t, jo, h), o = r ? R : "div";
|
|
338
|
-
return e.createElement(o, { ref: a, ...n, className: i("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
339
|
-
});
|
|
340
|
-
Oo.displayName = "Card";
|
|
341
|
-
var Ze = lt;
|
|
342
|
-
Ze.dispatchDiscreteCustomEvent = ns;
|
|
343
|
-
Ze.Root = lt;
|
|
344
|
-
const { useDirection: Ao } = cs, Fe = "CheckboxGroup", [Ho, Te] = $e(Fe, [ct, it]), Wt = ct(), qt = it(), [Zo, Fo] = Ho(Fe), Kt = e.forwardRef((t, a) => {
|
|
345
|
-
const { __scopeCheckboxGroup: r, name: s, defaultValue: n, value: o, required: l = !1, disabled: c = !1, orientation: u, dir: p, loop: f = !0, onValueChange: C, ...v } = t, b = Wt(r), T = Ao(p), [x = [], I] = Ve({ prop: o, defaultProp: n, onChange: C }), k = e.useCallback((D) => I((P = []) => [...P, D]), [I]), Z = e.useCallback((D) => I((P = []) => P.filter((G) => G !== D)), [I]);
|
|
346
|
-
return e.createElement(Zo, { scope: r, name: s, required: l, disabled: c, value: x, onItemCheck: k, onItemUncheck: Z }, e.createElement(is, { asChild: !0, ...b, orientation: u, dir: T, loop: f }, e.createElement(Ze.div, { role: "group", "data-disabled": c ? "" : void 0, dir: T, ...v, ref: a })));
|
|
347
|
-
});
|
|
348
|
-
Kt.displayName = Fe;
|
|
349
|
-
const Ut = "CheckboxGroupItem", Xt = e.forwardRef((t, a) => {
|
|
350
|
-
var v;
|
|
351
|
-
const { __scopeCheckboxGroup: r, disabled: s, ...n } = t, o = Fo(Ut, r), l = o.disabled || s, c = Wt(r), u = qt(r), p = e.useRef(null), f = os(a, p), C = (v = o.value) == null ? void 0 : v.includes(n.value);
|
|
352
|
-
return e.createElement(ls, { asChild: !0, ...c, focusable: !l, active: C }, e.createElement(ut, { name: o.name, disabled: l, required: o.required, checked: C, ...u, ...n, ref: f, onCheckedChange: (b) => {
|
|
353
|
-
b ? o.onItemCheck(t.value) : o.onItemUncheck(t.value);
|
|
354
|
-
} }));
|
|
355
|
-
});
|
|
356
|
-
Xt.displayName = Ut;
|
|
357
|
-
const Wo = "CheckboxGroupIndicator", Qt = e.forwardRef((t, a) => {
|
|
358
|
-
const { __scopeCheckboxGroup: r, ...s } = t, n = qt(r);
|
|
359
|
-
return e.createElement(mt, { ...n, ...s, ref: a });
|
|
360
|
-
});
|
|
361
|
-
Qt.displayName = Wo;
|
|
362
|
-
const Yt = Kt, Jt = Xt, ea = Qt, qo = ["div", "span"], Ko = ["none", "inline-grid", "grid"], Uo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Xo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Qo = ["row", "column", "dense", "row-dense", "column-dense"], Yo = ["start", "center", "end", "baseline", "stretch"], Jo = ["start", "center", "end", "between"], se = { as: { type: "enum", values: qo, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Ko, responsive: !0 }, areas: { type: "string", className: "rt-r-gta", customProperties: ["--grid-template-areas"], responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: Uo, parseValue: ot, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: Xo, parseValue: ot, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: Qo, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Yo, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Jo, parseValue: el, responsive: !0 }, ..._t };
|
|
363
|
-
function ot(t) {
|
|
364
|
-
return se.columns.values.includes(t) ? t : t != null && t.match(/^\d+$/) ? `repeat(${t}, minmax(0, 1fr))` : t;
|
|
309
|
+
const xe = e.forwardRef((t, a) => {
|
|
310
|
+
const { size: r = Ie.size.default } = t, { className: s, children: n, asChild: o, color: l, radius: c, disabled: i = t.loading, ...d } = m(t, Ie, f), p = o ? $ : "button";
|
|
311
|
+
return e.createElement(p, { "data-disabled": i || void 0, "data-accent-color": l, "data-radius": c, ...d, ref: a, className: u("rt-reset", "rt-BaseButton", s), disabled: i }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, n), e.createElement(qs, null, n), e.createElement(ue, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(ft, { size: Ks(r, Zs) })))) : n);
|
|
312
|
+
});
|
|
313
|
+
xe.displayName = "BaseButton";
|
|
314
|
+
const Qs = e.forwardRef(({ className: t, ...a }, r) => e.createElement(xe, { ...a, ref: r, className: u("rt-Button", t) }));
|
|
315
|
+
Qs.displayName = "Button";
|
|
316
|
+
const Ys = ["1", "2", "3", "4", "5"], Xs = ["surface", "classic", "ghost"], Js = { ...N, size: { type: "enum", className: "rt-r-size", values: Ys, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Xs, default: "surface" } }, Us = e.forwardRef((t, a) => {
|
|
317
|
+
const { asChild: r, className: s, ...n } = m(t, Js, f), o = r ? $ : "div";
|
|
318
|
+
return e.createElement(o, { ref: a, ...n, className: u("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
319
|
+
});
|
|
320
|
+
Us.displayName = "Card";
|
|
321
|
+
const en = ["div", "span"], tn = ["none", "inline-grid", "grid"], an = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], rn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], sn = ["row", "column", "dense", "row-dense", "column-dense"], nn = ["start", "center", "end", "baseline", "stretch"], on = ["start", "center", "end", "between"], gt = { as: { type: "enum", values: en, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: tn, responsive: !0 }, areas: { type: "string", className: "rt-r-gta", customProperties: ["--grid-template-areas"], responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: an, parseValue: ke, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: rn, parseValue: ke, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: sn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: nn, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: on, parseValue: ln, responsive: !0 }, ...dt };
|
|
322
|
+
function ke(t) {
|
|
323
|
+
return gt.columns.values.includes(t) ? t : t != null && t.match(/^\d+$/) ? `repeat(${t}, minmax(0, 1fr))` : t;
|
|
365
324
|
}
|
|
366
|
-
function
|
|
325
|
+
function ln(t) {
|
|
367
326
|
return t === "between" ? "space-between" : t;
|
|
368
327
|
}
|
|
369
|
-
const
|
|
370
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t,
|
|
371
|
-
return e.createElement(s ?
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
const
|
|
383
|
-
const {
|
|
384
|
-
return e.createElement(
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
const
|
|
388
|
-
const
|
|
389
|
-
return e.createElement(
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
Item: na,
|
|
395
|
-
Root: sa
|
|
396
|
-
}, Symbol.toStringTag, { value: "Module" })), me = { ...N, ...We }, oa = "CheckboxGroup", [il] = $e(oa, [Te]), la = Te(), [ul, ca] = il(oa), ia = e.forwardRef(({ color: t = me.color.default, highContrast: a = me.highContrast.default, size: r = me.size.default, variant: s = me.variant.default, ...n }, o) => {
|
|
397
|
-
const { __scopeCheckboxGroup: l, className: c, ...u } = m(n, h), p = la(l);
|
|
398
|
-
return e.createElement(ul, { scope: l, color: t, size: r, highContrast: a, variant: s }, e.createElement(Yt, { ...p, ...u, ref: o, className: i("rt-CheckboxGroupRoot", c) }));
|
|
399
|
-
});
|
|
400
|
-
ia.displayName = "CheckboxGroup.Root";
|
|
401
|
-
const ua = e.forwardRef((t, a) => {
|
|
402
|
-
const { __scopeCheckboxGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } = ca("CheckboxGroupItem", r);
|
|
403
|
-
return s ? e.createElement(E, { as: "label", size: c, className: i("rt-CheckboxGroupItem", n), style: o }, e.createElement(De, { __scopeCheckboxGroup: r, ...l, ref: a }), s && e.createElement("span", { className: "rt-CheckboxGroupItemInner" }, s)) : e.createElement(De, { __scopeCheckboxGroup: r, ...l, ref: a, className: n, style: o });
|
|
404
|
-
});
|
|
405
|
-
ua.displayName = "CheckboxGroup.Item";
|
|
406
|
-
const De = e.forwardRef(({ __scopeCheckboxGroup: t, ...a }, r) => {
|
|
407
|
-
const s = ca("CheckboxGroupItemCheckbox", t), n = la(t), { color: o, className: l } = m({ ...a, ...s }, me, h);
|
|
408
|
-
return e.createElement(Jt, { ...n, "data-accent-color": o, ...a, ref: r, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxGroupItemCheckbox", l) }, e.createElement(ea, { ...n, asChild: !0, className: "rt-BaseCheckboxIndicator" }, e.createElement(H, null)));
|
|
409
|
-
});
|
|
410
|
-
De.displayName = "CheckboxGroup.ItemCheckbox";
|
|
411
|
-
const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
412
|
-
__proto__: null,
|
|
413
|
-
Item: ua,
|
|
414
|
-
Root: ia
|
|
415
|
-
}, Symbol.toStringTag, { value: "Module" })), ml = e.forwardRef((t, a) => {
|
|
416
|
-
const { className: r, color: s, checked: n, defaultChecked: o, onCheckedChange: l, ...c } = m(t, We, h), [u, p] = Ve({ prop: n, defaultProp: o, onChange: l });
|
|
417
|
-
return e.createElement(ut, { "data-accent-color": s, ...c, defaultChecked: o, checked: u, onCheckedChange: p, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, e.createElement(mt, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, e.createElement(u === "indeterminate" ? ta : H, null)));
|
|
418
|
-
});
|
|
419
|
-
ml.displayName = "Checkbox";
|
|
420
|
-
const dl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], pl = ["solid", "soft", "outline", "ghost"], fl = { ...N, size: { type: "enum", className: "rt-r-size", values: dl, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: pl, default: "soft" }, ...we, ...oe, ...w, ...te, ...ee }, hl = e.forwardRef((t, a) => {
|
|
421
|
-
const { asChild: r, className: s, color: n, ...o } = m(t, fl, h), l = t.variant === "ghost" ? n || void 0 : n, c = r ? R : "code";
|
|
422
|
-
return e.createElement(c, { "data-accent-color": l, ...o, ref: a, className: i("rt-reset", "rt-Code", s) });
|
|
423
|
-
});
|
|
424
|
-
hl.displayName = "Code";
|
|
425
|
-
const Cl = ["1", "2", "3", "4"], gl = ["none", "initial"], vl = ["left", "center", "right"], Nl = { ...N, size: { type: "enum", className: "rt-r-size", values: Cl, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: gl, parseValue: yl, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: vl, parseValue: bl, responsive: !0 } };
|
|
426
|
-
function yl(t) {
|
|
328
|
+
const cn = ["1", "2", "3"], un = ["classic", "surface", "soft"], mn = { size: { type: "enum", className: "rt-r-size", values: cn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: un, default: "surface" }, ...C, ...E }, dn = e.forwardRef((t, a) => {
|
|
329
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, gt, se, f);
|
|
330
|
+
return e.createElement(s ? Se : n, { ...o, ref: a, className: u("rt-Grid", r) });
|
|
331
|
+
});
|
|
332
|
+
dn.displayName = "Grid";
|
|
333
|
+
const vt = x.forwardRef((t, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, x.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" })));
|
|
334
|
+
vt.displayName = "ThickDividerHorizontalIcon";
|
|
335
|
+
const ne = x.forwardRef((t, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, x.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })));
|
|
336
|
+
ne.displayName = "ThickCheckIcon";
|
|
337
|
+
const Nt = x.forwardRef((t, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, x.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })));
|
|
338
|
+
Nt.displayName = "ChevronDownIcon";
|
|
339
|
+
const ht = x.forwardRef((t, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, x.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
|
|
340
|
+
ht.displayName = "ThickChevronRightIcon";
|
|
341
|
+
const pn = e.forwardRef((t, a) => {
|
|
342
|
+
const { className: r, color: s, checked: n, defaultChecked: o, onCheckedChange: l, ...c } = m(t, mn, f), [i, d] = Oa({ prop: n, defaultProp: o, onChange: l });
|
|
343
|
+
return e.createElement(La, { "data-accent-color": s, ...c, defaultChecked: o, checked: i, onCheckedChange: d, asChild: !1, ref: a, className: u("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, e.createElement(Ga, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, e.createElement(i === "indeterminate" ? vt : ne, null)));
|
|
344
|
+
});
|
|
345
|
+
pn.displayName = "Checkbox";
|
|
346
|
+
const fn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], gn = ["solid", "soft", "outline", "ghost"], vn = { ...N, size: { type: "enum", className: "rt-r-size", values: fn, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: gn, default: "soft" }, ...me, ...re, ...E, ...H, ...G }, Nn = e.forwardRef((t, a) => {
|
|
347
|
+
const { asChild: r, className: s, color: n, ...o } = m(t, vn, f), l = t.variant === "ghost" ? n || void 0 : n, c = r ? $ : "code";
|
|
348
|
+
return e.createElement(c, { "data-accent-color": l, ...o, ref: a, className: u("rt-reset", "rt-Code", s) });
|
|
349
|
+
});
|
|
350
|
+
Nn.displayName = "Code";
|
|
351
|
+
const hn = ["1", "2", "3", "4"], yn = ["none", "initial"], Cn = ["left", "center", "right"], $n = { ...N, size: { type: "enum", className: "rt-r-size", values: hn, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: yn, parseValue: bn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Cn, parseValue: wn, responsive: !0 } };
|
|
352
|
+
function bn(t) {
|
|
427
353
|
return t === "initial" ? "flex" : t;
|
|
428
354
|
}
|
|
429
|
-
function
|
|
355
|
+
function wn(t) {
|
|
430
356
|
return t === "left" ? "start" : t === "right" ? "end" : t;
|
|
431
357
|
}
|
|
432
|
-
const
|
|
433
|
-
const { asChild:
|
|
434
|
-
return e.createElement(
|
|
435
|
-
});
|
|
436
|
-
|
|
437
|
-
const
|
|
438
|
-
function
|
|
439
|
-
const { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, ...
|
|
440
|
-
return { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, rest:
|
|
358
|
+
const En = e.forwardRef(({ width: t, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o, ...l }, c) => {
|
|
359
|
+
const { asChild: i, children: d, className: p, ...v } = m(l, $n, se, f), { className: h, style: b } = m({ width: t, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o }, w, K), R = i ? $ : "div";
|
|
360
|
+
return e.createElement(R, { ...v, ref: c, className: u("rt-Container", p) }, Re({ asChild: i, children: d }, (g) => e.createElement("div", { className: u("rt-ContainerInner", h), style: b }, g)));
|
|
361
|
+
});
|
|
362
|
+
En.displayName = "Container";
|
|
363
|
+
const Rn = ["1", "2", "3"], Y = { ...N, size: { values: Rn, default: "1" }, ...M, scrollbars: { default: "both" } };
|
|
364
|
+
function Sn(t) {
|
|
365
|
+
const { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, ...i } = t;
|
|
366
|
+
return { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, rest: i };
|
|
441
367
|
}
|
|
442
|
-
const
|
|
443
|
-
function
|
|
444
|
-
const [a, r] =
|
|
445
|
-
return [
|
|
368
|
+
const D = f.m.values;
|
|
369
|
+
function xn(t) {
|
|
370
|
+
const [a, r] = k({ className: "rt-r-m", customProperties: ["--margin"], propValues: D, value: t.m }), [s, n] = k({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: D, value: t.mx }), [o, l] = k({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: D, value: t.my }), [c, i] = k({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: D, value: t.mt }), [d, p] = k({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: D, value: t.mr }), [v, h] = k({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: D, value: t.mb }), [b, R] = k({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: D, value: t.ml });
|
|
371
|
+
return [u(a, s, o, c, d, v, b), ae(r, n, l, i, p, h, R)];
|
|
446
372
|
}
|
|
447
|
-
const
|
|
448
|
-
const { rest: r, ...s } =
|
|
449
|
-
return e.createElement(
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
const
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
const r =
|
|
458
|
-
return e.createElement(
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
const { className: r, children: s, color: n =
|
|
465
|
-
return e.createElement(
|
|
466
|
-
});
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
const
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
const { children: r, className: s, color: n =
|
|
474
|
-
return e.createElement(
|
|
475
|
-
});
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
const { children: r, className: s, shortcut: n, color: o =
|
|
479
|
-
return e.createElement(
|
|
373
|
+
const de = e.forwardRef((t, a) => {
|
|
374
|
+
const { rest: r, ...s } = Sn(t), [n, o] = xn(s), { asChild: l, children: c, className: i, style: d, type: p, scrollHideDelay: v = p !== "scroll" ? 0 : void 0, dir: h, size: b = Y.size.default, radius: R = Y.radius.default, scrollbars: g = Y.scrollbars.default, ...z } = r;
|
|
375
|
+
return e.createElement(Ae, { type: p, scrollHideDelay: v, className: u("rt-ScrollAreaRoot", n, i), style: ae(o, d), asChild: l }, Re({ asChild: l, children: c }, (_) => e.createElement(e.Fragment, null, e.createElement(De, { ...z, ref: a, className: "rt-ScrollAreaViewport" }, _), e.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), g !== "vertical" ? e.createElement(Ne, { "data-radius": R, orientation: "horizontal", className: u("rt-ScrollAreaScrollbar", te({ className: "rt-r-size", value: b, propValues: Y.size.values })) }, e.createElement(he, { className: "rt-ScrollAreaThumb" })) : null, g !== "horizontal" ? e.createElement(Ne, { "data-radius": R, orientation: "vertical", className: u("rt-ScrollAreaScrollbar", te({ className: "rt-r-size", value: b, propValues: Y.size.values })) }, e.createElement(he, { className: "rt-ScrollAreaThumb" })) : null, g === "both" ? e.createElement(Ha, { className: "rt-ScrollAreaCorner" }) : null)));
|
|
376
|
+
});
|
|
377
|
+
de.displayName = "ScrollArea";
|
|
378
|
+
const Tn = ["1", "2"], Mn = ["solid", "soft"], X = { size: { type: "enum", className: "rt-r-size", values: Tn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Mn, default: "solid" }, ...C, ...E }, Pn = { ...N, ...C }, zn = { ...C }, In = { ...C }, yt = (t) => e.createElement(Xa, { ...t });
|
|
379
|
+
yt.displayName = "ContextMenu.Root";
|
|
380
|
+
const Ct = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ar, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
381
|
+
Ct.displayName = "ContextMenu.Trigger";
|
|
382
|
+
const $t = e.createContext({}), bt = e.forwardRef((t, a) => {
|
|
383
|
+
const r = tt(), { size: s = X.size.default, variant: n = X.variant.default, highContrast: o = X.highContrast.default } = t, { className: l, children: c, color: i, container: d, forceMount: p, ...v } = m(t, X), h = i || r.accentColor;
|
|
384
|
+
return e.createElement(je, { container: d, forceMount: p }, e.createElement(P, { asChild: !0 }, e.createElement(Wa, { "data-accent-color": h, alignOffset: -Number(s) * 4, collisionPadding: 10, ...v, asChild: !1, ref: a, className: u("rt-PopperContent", "rt-BaseMenuContent", "rt-ContextMenuContent", l) }, e.createElement(de, { type: "auto" }, e.createElement("div", { className: u("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, e.createElement($t.Provider, { value: e.useMemo(() => ({ size: s, variant: n, color: h, highContrast: o }), [s, n, h, o]) }, c))))));
|
|
385
|
+
});
|
|
386
|
+
bt.displayName = "ContextMenu.Content";
|
|
387
|
+
const wt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Za, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuLabel", "rt-ContextMenuLabel", t) }));
|
|
388
|
+
wt.displayName = "ContextMenu.Label";
|
|
389
|
+
const Et = e.forwardRef((t, a) => {
|
|
390
|
+
const { className: r, children: s, color: n = Pn.color.default, shortcut: o, ...l } = t;
|
|
391
|
+
return e.createElement(Ka, { "data-accent-color": n, ...l, ref: a, className: u("rt-reset", "rt-BaseMenuItem", "rt-ContextMenuItem", r) }, e.createElement(Ce, null, s), o && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, o));
|
|
392
|
+
});
|
|
393
|
+
Et.displayName = "ContextMenu.Item";
|
|
394
|
+
const Rt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(qa, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuGroup", "rt-ContextMenuGroup", t) }));
|
|
395
|
+
Rt.displayName = "ContextMenu.Group";
|
|
396
|
+
const St = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Qa, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuRadioGroup", "rt-ContextMenuRadioGroup", t) }));
|
|
397
|
+
St.displayName = "ContextMenu.RadioGroup";
|
|
398
|
+
const xt = e.forwardRef((t, a) => {
|
|
399
|
+
const { children: r, className: s, color: n = In.color.default, ...o } = t;
|
|
400
|
+
return e.createElement(Ya, { ...o, asChild: !1, ref: a, "data-accent-color": n, className: u("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-ContextMenuItem", "rt-ContextMenuRadioItem", s) }, e.createElement(Ce, null, r), e.createElement(Ve, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(ne, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })));
|
|
401
|
+
});
|
|
402
|
+
xt.displayName = "ContextMenu.RadioItem";
|
|
403
|
+
const Tt = e.forwardRef((t, a) => {
|
|
404
|
+
const { children: r, className: s, shortcut: n, color: o = zn.color.default, ...l } = t;
|
|
405
|
+
return e.createElement(Fa, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: u("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-ContextMenuItem", "rt-ContextMenuCheckboxItem", s) }, e.createElement(Ce, null, r), e.createElement(Ve, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(ne, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, n));
|
|
480
406
|
});
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
407
|
+
Tt.displayName = "ContextMenu.CheckboxItem";
|
|
408
|
+
const Mt = (t) => e.createElement(Ua, { ...t });
|
|
409
|
+
Mt.displayName = "ContextMenu.Sub";
|
|
410
|
+
const Pt = e.forwardRef((t, a) => {
|
|
485
411
|
const { className: r, children: s, ...n } = t;
|
|
486
|
-
return e.createElement(
|
|
412
|
+
return e.createElement(tr, { ...n, asChild: !1, ref: a, className: u("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-ContextMenuItem", "rt-ContextMenuSubTrigger", r) }, s, e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, e.createElement(ht, { className: "rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon" })));
|
|
487
413
|
});
|
|
488
|
-
|
|
489
|
-
const
|
|
490
|
-
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(
|
|
491
|
-
return e.createElement(
|
|
414
|
+
Pt.displayName = "ContextMenu.SubTrigger";
|
|
415
|
+
const zt = e.forwardRef((t, a) => {
|
|
416
|
+
const { size: r, variant: s, color: n, highContrast: o } = e.useContext($t), { className: l, children: c, container: i, forceMount: d, ...p } = m({ size: r, variant: s, color: n, highContrast: o, ...t }, X);
|
|
417
|
+
return e.createElement(je, { container: i, forceMount: d }, e.createElement(P, { asChild: !0 }, e.createElement(er, { "data-accent-color": n, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...p, asChild: !1, ref: a, className: u("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-ContextMenuContent", "rt-ContextMenuSubContent", l) }, e.createElement(de, { type: "auto" }, e.createElement("div", { className: u("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, c)))));
|
|
492
418
|
});
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
const
|
|
419
|
+
zt.displayName = "ContextMenu.SubContent";
|
|
420
|
+
const It = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ja, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuSeparator", "rt-ContextMenuSeparator", t) }));
|
|
421
|
+
It.displayName = "ContextMenu.Separator";
|
|
422
|
+
const Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
497
423
|
__proto__: null,
|
|
498
|
-
CheckboxItem:
|
|
499
|
-
Content:
|
|
500
|
-
Group:
|
|
501
|
-
Item:
|
|
502
|
-
Label:
|
|
503
|
-
RadioGroup:
|
|
504
|
-
RadioItem:
|
|
505
|
-
Root:
|
|
506
|
-
Separator:
|
|
507
|
-
Sub:
|
|
508
|
-
SubContent:
|
|
509
|
-
SubTrigger:
|
|
510
|
-
Trigger:
|
|
511
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
ka.displayName = "DataList.Value";
|
|
528
|
-
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
424
|
+
CheckboxItem: Tt,
|
|
425
|
+
Content: bt,
|
|
426
|
+
Group: Rt,
|
|
427
|
+
Item: Et,
|
|
428
|
+
Label: wt,
|
|
429
|
+
RadioGroup: St,
|
|
430
|
+
RadioItem: xt,
|
|
431
|
+
Root: yt,
|
|
432
|
+
Separator: It,
|
|
433
|
+
Sub: Mt,
|
|
434
|
+
SubContent: zt,
|
|
435
|
+
SubTrigger: Pt,
|
|
436
|
+
Trigger: Ct
|
|
437
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = (t) => e.createElement(cr, { ...t, modal: !0 });
|
|
438
|
+
kt.displayName = "Dialog.Root";
|
|
439
|
+
const _t = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ur, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
440
|
+
_t.displayName = "Dialog.Trigger";
|
|
441
|
+
const Bt = e.forwardRef(({ align: t, ...a }, r) => {
|
|
442
|
+
const { align: s, ...n } = Xe, { className: o } = m({ align: t }, { align: s }), { className: l, forceMount: c, container: i, ...d } = m(a, n);
|
|
443
|
+
return e.createElement(sr, { container: i, forceMount: c }, e.createElement(P, { asChild: !0 }, e.createElement(nr, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, e.createElement(or, { ...d, ref: r, className: u("rt-BaseDialogContent", "rt-DialogContent", l) }))))));
|
|
444
|
+
});
|
|
445
|
+
Bt.displayName = "Dialog.Content";
|
|
446
|
+
const At = e.forwardRef((t, a) => e.createElement(ir, { asChild: !0 }, e.createElement(we, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
|
|
447
|
+
At.displayName = "Dialog.Title";
|
|
448
|
+
const Dt = e.forwardRef((t, a) => e.createElement(lr, { asChild: !0 }, e.createElement(F, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
|
|
449
|
+
Dt.displayName = "Dialog.Description";
|
|
450
|
+
const Vt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(rr, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
451
|
+
Vt.displayName = "Dialog.Close";
|
|
452
|
+
const kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
453
|
__proto__: null,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
454
|
+
Close: Vt,
|
|
455
|
+
Content: Bt,
|
|
456
|
+
Description: Dt,
|
|
457
|
+
Root: kt,
|
|
458
|
+
Title: At,
|
|
459
|
+
Trigger: _t
|
|
460
|
+
}, Symbol.toStringTag, { value: "Module" })), kn = { ...N, ...H, ...G }, _n = e.forwardRef((t, a) => {
|
|
461
|
+
const { asChild: r, className: s, ...n } = m(t, kn), o = r ? $ : "em";
|
|
462
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-Em", s) });
|
|
463
|
+
});
|
|
464
|
+
_n.displayName = "Em";
|
|
465
|
+
const Bn = ["1", "2", "3"], An = { ...N, size: { type: "enum", className: "rt-r-size", values: Bn, default: "2", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "480px" }, ...K }, jt = (t) => e.createElement(pr, { closeDelay: 150, openDelay: 200, ...t });
|
|
466
|
+
jt.displayName = "HoverCard.Root";
|
|
467
|
+
const Ot = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement(fr, { ref: s, className: u("rt-HoverCardTrigger", a), ...r, asChild: !0 }, I(t)));
|
|
468
|
+
Ot.displayName = "HoverCard.Trigger";
|
|
469
|
+
const Lt = e.forwardRef((t, a) => {
|
|
470
|
+
const { className: r, forceMount: s, container: n, ...o } = m(t, An);
|
|
471
|
+
return e.createElement(mr, { container: n, forceMount: s }, e.createElement(P, { asChild: !0 }, e.createElement(dr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: u("rt-PopperContent", "rt-HoverCardContent", r) })));
|
|
472
|
+
});
|
|
473
|
+
Lt.displayName = "HoverCard.Content";
|
|
474
|
+
const _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
550
475
|
__proto__: null,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
Va.displayName = "DropdownMenu.Root";
|
|
559
|
-
const Ga = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Zs, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
560
|
-
Ga.displayName = "DropdownMenu.Trigger";
|
|
561
|
-
const ja = e.createContext({}), Oa = e.forwardRef((t, a) => {
|
|
562
|
-
const r = xe(), { size: s = j.size.default, variant: n = j.variant.default, highContrast: o = j.highContrast.default } = t, { className: l, children: c, color: u, container: p, forceMount: f, ...C } = m(t, j), v = u || r.accentColor;
|
|
563
|
-
return e.createElement(gt, { container: p, forceMount: f }, e.createElement(M, { asChild: !0 }, e.createElement(Ps, { "data-accent-color": v, align: "start", sideOffset: 4, collisionPadding: 10, ...C, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-DropdownMenuContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, e.createElement(ja.Provider, { value: e.useMemo(() => ({ size: s, variant: n, color: v, highContrast: o }), [s, n, v, o]) }, c))))));
|
|
564
|
-
});
|
|
565
|
-
Oa.displayName = "DropdownMenu.Content";
|
|
566
|
-
const Aa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ds, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuLabel", "rt-DropdownMenuLabel", t) }));
|
|
567
|
-
Aa.displayName = "DropdownMenu.Label";
|
|
568
|
-
const Ha = e.forwardRef((t, a) => {
|
|
569
|
-
const { className: r, children: s, color: n = ma.color.default, shortcut: o, ...l } = t;
|
|
570
|
-
return e.createElement(Bs, { "data-accent-color": n, ...l, ref: a, className: i("rt-reset", "rt-BaseMenuItem", "rt-DropdownMenuItem", r) }, e.createElement(ge, null, s), o && e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, o));
|
|
571
|
-
});
|
|
572
|
-
Ha.displayName = "DropdownMenu.Item";
|
|
573
|
-
const Za = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ls, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuGroup", "rt-DropdownMenuGroup", t) }));
|
|
574
|
-
Za.displayName = "DropdownMenu.Group";
|
|
575
|
-
const Fa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(_s, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuRadioGroup", "rt-DropdownMenuRadioGroup", t) }));
|
|
576
|
-
Fa.displayName = "DropdownMenu.RadioGroup";
|
|
577
|
-
const Wa = e.forwardRef((t, a) => {
|
|
578
|
-
const { children: r, className: s, color: n = pa.color.default, ...o } = t;
|
|
579
|
-
return e.createElement(Vs, { ...o, asChild: !1, ref: a, "data-accent-color": n, className: i("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-DropdownMenuItem", "rt-DropdownMenuRadioItem", s) }, r, e.createElement(Ct, { className: "rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon" })));
|
|
580
|
-
});
|
|
581
|
-
Wa.displayName = "DropdownMenu.RadioItem";
|
|
582
|
-
const qa = e.forwardRef((t, a) => {
|
|
583
|
-
const { children: r, className: s, shortcut: n, color: o = da.color.default, ...l } = t;
|
|
584
|
-
return e.createElement(zs, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-DropdownMenuItem", "rt-DropdownMenuCheckboxItem", s) }, r, e.createElement(Ct, { className: "rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, n));
|
|
585
|
-
});
|
|
586
|
-
qa.displayName = "DropdownMenu.CheckboxItem";
|
|
587
|
-
const Ka = (t) => e.createElement(Os, { ...t });
|
|
588
|
-
Ka.displayName = "DropdownMenu.Sub";
|
|
589
|
-
const Ua = e.forwardRef((t, a) => {
|
|
590
|
-
const { className: r, children: s, ...n } = t;
|
|
591
|
-
return e.createElement(Hs, { ...n, asChild: !1, ref: a, className: i("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-DropdownMenuItem", "rt-DropdownMenuSubTrigger", r) }, s, e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, e.createElement(Ke, { className: "rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon" })));
|
|
592
|
-
});
|
|
593
|
-
Ua.displayName = "DropdownMenu.SubTrigger";
|
|
594
|
-
const Xa = e.forwardRef((t, a) => {
|
|
595
|
-
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(ja), { className: l, children: c, container: u, forceMount: p, ...f } = m({ size: r, variant: s, color: n, highContrast: o, ...t }, j);
|
|
596
|
-
return e.createElement(gt, { container: u, forceMount: p }, e.createElement(M, { asChild: !0 }, e.createElement(As, { "data-accent-color": n, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...f, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-DropdownMenuContent", "rt-DropdownMenuSubContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, c)))));
|
|
597
|
-
});
|
|
598
|
-
Xa.displayName = "DropdownMenu.SubContent";
|
|
599
|
-
const Qa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(js, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuSeparator", "rt-DropdownMenuSeparator", t) }));
|
|
600
|
-
Qa.displayName = "DropdownMenu.Separator";
|
|
601
|
-
const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
602
|
-
__proto__: null,
|
|
603
|
-
CheckboxItem: qa,
|
|
604
|
-
Content: Oa,
|
|
605
|
-
Group: Za,
|
|
606
|
-
Item: Ha,
|
|
607
|
-
Label: Aa,
|
|
608
|
-
RadioGroup: Fa,
|
|
609
|
-
RadioItem: Wa,
|
|
610
|
-
Root: Va,
|
|
611
|
-
Separator: Qa,
|
|
612
|
-
Sub: Ka,
|
|
613
|
-
SubContent: Xa,
|
|
614
|
-
SubTrigger: Ua,
|
|
615
|
-
Trigger: Ga,
|
|
616
|
-
TriggerIcon: qe
|
|
617
|
-
}, Symbol.toStringTag, { value: "Module" })), Ll = { ...N, ...te, ...ee }, Bl = e.forwardRef((t, a) => {
|
|
618
|
-
const { asChild: r, className: s, ...n } = m(t, Ll), o = r ? R : "em";
|
|
619
|
-
return e.createElement(o, { ...n, ref: a, className: i("rt-Em", s) });
|
|
620
|
-
});
|
|
621
|
-
Bl.displayName = "Em";
|
|
622
|
-
const Dl = ["1", "2", "3"], _l = { ...N, size: { type: "enum", className: "rt-r-size", values: Dl, default: "2", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "480px" }, ...ne }, Ya = (t) => e.createElement(qs, { closeDelay: 150, openDelay: 200, ...t });
|
|
623
|
-
Ya.displayName = "HoverCard.Root";
|
|
624
|
-
const Ja = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement(Ks, { ref: s, className: i("rt-HoverCardTrigger", a), ...r, asChild: !0 }, V(t)));
|
|
625
|
-
Ja.displayName = "HoverCard.Trigger";
|
|
626
|
-
const er = e.forwardRef((t, a) => {
|
|
627
|
-
const { className: r, forceMount: s, container: n, ...o } = m(t, _l);
|
|
628
|
-
return e.createElement(Fs, { container: n, forceMount: s }, e.createElement(M, { asChild: !0 }, e.createElement(Ws, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: i("rt-PopperContent", "rt-HoverCardContent", r) })));
|
|
629
|
-
});
|
|
630
|
-
er.displayName = "HoverCard.Content";
|
|
631
|
-
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
632
|
-
__proto__: null,
|
|
633
|
-
Content: er,
|
|
634
|
-
Root: Ya,
|
|
635
|
-
Trigger: Ja
|
|
636
|
-
}, Symbol.toStringTag, { value: "Module" })), tr = e.forwardRef(({ className: t, ...a }, r) => e.createElement(He, { ...a, ref: r, className: i("rt-IconButton", t) }));
|
|
637
|
-
tr.displayName = "IconButton";
|
|
638
|
-
const Vl = ["all", "x", "y", "top", "bottom", "left", "right"], Gl = ["border-box", "padding-box"], Y = ["current", "0"], jl = { ...N, side: { type: "enum", className: "rt-r-side", values: Vl, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: Gl, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: Y, parseValue: J, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: Y, parseValue: J, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: Y, parseValue: J, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: Y, parseValue: J, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: Y, parseValue: J, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: Y, parseValue: J, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: Y, parseValue: J, responsive: !0 } };
|
|
639
|
-
function J(t) {
|
|
476
|
+
Content: Lt,
|
|
477
|
+
Root: jt,
|
|
478
|
+
Trigger: Ot
|
|
479
|
+
}, Symbol.toStringTag, { value: "Module" })), Gt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(xe, { ...a, ref: r, className: u("rt-IconButton", t) }));
|
|
480
|
+
Gt.displayName = "IconButton";
|
|
481
|
+
const Dn = ["all", "x", "y", "top", "bottom", "left", "right"], Vn = ["border-box", "padding-box"], V = ["current", "0"], jn = { ...N, side: { type: "enum", className: "rt-r-side", values: Dn, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: Vn, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: V, parseValue: j, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: V, parseValue: j, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: V, parseValue: j, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: V, parseValue: j, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: V, parseValue: j, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: V, parseValue: j, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: V, parseValue: j, responsive: !0 } };
|
|
482
|
+
function j(t) {
|
|
640
483
|
return t === "current" ? "inset" : t;
|
|
641
484
|
}
|
|
642
|
-
const
|
|
643
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
644
|
-
return e.createElement(o, { ...n, ref: a, className:
|
|
645
|
-
});
|
|
646
|
-
|
|
647
|
-
const
|
|
648
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
649
|
-
return e.createElement(o, { ...n, ref: a, className:
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
const
|
|
653
|
-
const { children: r, className: s, color: n, asChild: o, ...l } = m(t,
|
|
654
|
-
return e.createElement(
|
|
655
|
-
});
|
|
656
|
-
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
const
|
|
660
|
-
|
|
661
|
-
const
|
|
662
|
-
const { className: r, forceMount: s, container: n, ...o } = m(t,
|
|
663
|
-
return e.createElement(
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
const
|
|
485
|
+
const On = e.forwardRef((t, a) => {
|
|
486
|
+
const { asChild: r, className: s, ...n } = m(t, jn, f), o = r ? $ : "div";
|
|
487
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-Inset", s) });
|
|
488
|
+
});
|
|
489
|
+
On.displayName = "Inset";
|
|
490
|
+
const Ln = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Gn = { ...N, size: { type: "enum", className: "rt-r-size", values: Ln, responsive: !0 } }, Hn = e.forwardRef((t, a) => {
|
|
491
|
+
const { asChild: r, className: s, ...n } = m(t, Gn, f), o = r ? $ : "kbd";
|
|
492
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-reset", "rt-Kbd", s) });
|
|
493
|
+
});
|
|
494
|
+
Hn.displayName = "Kbd";
|
|
495
|
+
const Fn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Wn = ["auto", "always", "hover", "none"], qn = { ...N, size: { type: "enum", className: "rt-r-size", values: Fn, responsive: !0 }, ...me, ...$e, ...H, ...G, underline: { type: "enum", className: "rt-underline", values: Wn, default: "auto" }, ...re, ...E }, Kn = e.forwardRef((t, a) => {
|
|
496
|
+
const { children: r, className: s, color: n, asChild: o, ...l } = m(t, qn);
|
|
497
|
+
return e.createElement(F, { ...l, "data-accent-color": n, ref: a, asChild: !0, className: u("rt-reset", "rt-Link", s) }, o ? r : e.createElement("a", null, r));
|
|
498
|
+
});
|
|
499
|
+
Kn.displayName = "Link";
|
|
500
|
+
const Zn = ["1", "2", "3", "4"], Qn = { ...N, size: { type: "enum", className: "rt-r-size", values: Zn, default: "2", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "480px" }, ...K }, Ht = (t) => e.createElement(yr, { ...t });
|
|
501
|
+
Ht.displayName = "Popover.Root";
|
|
502
|
+
const Ft = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Cr, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
503
|
+
Ft.displayName = "Popover.Trigger";
|
|
504
|
+
const Wt = e.forwardRef((t, a) => {
|
|
505
|
+
const { className: r, forceMount: s, container: n, ...o } = m(t, Qn);
|
|
506
|
+
return e.createElement(Nr, { container: n, forceMount: s }, e.createElement(P, { asChild: !0 }, e.createElement(hr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: u("rt-PopperContent", "rt-PopoverContent", r) })));
|
|
507
|
+
});
|
|
508
|
+
Wt.displayName = "Popover.Content";
|
|
509
|
+
const qt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(vr, { ...a, ref: r, asChild: !0 }, I(t)));
|
|
510
|
+
qt.displayName = "Popover.Close";
|
|
511
|
+
const Kt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(gr, { ...a, ref: r }));
|
|
512
|
+
Kt.displayName = "Popover.Anchor";
|
|
513
|
+
const Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
671
514
|
__proto__: null,
|
|
672
|
-
Anchor:
|
|
673
|
-
Close:
|
|
674
|
-
Content:
|
|
675
|
-
Root:
|
|
676
|
-
Trigger:
|
|
677
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
678
|
-
const { className: r, style: s, color: n, radius: o, duration: l, ...c } = m(t,
|
|
679
|
-
return e.createElement(
|
|
680
|
-
});
|
|
681
|
-
|
|
682
|
-
const
|
|
683
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
684
|
-
return e.createElement(o, { ...n, ref: a, className:
|
|
685
|
-
});
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
const {
|
|
689
|
-
return e.createElement(
|
|
690
|
-
});
|
|
691
|
-
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
const mr = e.forwardRef((t, a) => {
|
|
704
|
-
const { __scopeRadioGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } = ir("RadioGroupItem", r);
|
|
705
|
-
return s ? e.createElement(E, { as: "label", size: c, className: i("rt-RadioGroupItem", n), style: o }, e.createElement(_e, { __scopeRadioGroup: r, ...l, ref: a }), s && e.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : e.createElement(_e, { __scopeRadioGroup: r, ...l, ref: a, className: n, style: o });
|
|
706
|
-
});
|
|
707
|
-
mr.displayName = "RadioGroup.Item";
|
|
708
|
-
const _e = e.forwardRef(({ __scopeRadioGroup: t, ...a }, r) => {
|
|
709
|
-
const s = ir("RadioGroupItemRadio", t), n = cr(t), { color: o, className: l } = m({ ...a, ...s }, de, h);
|
|
710
|
-
return e.createElement(vt, { ...n, "data-accent-color": o, ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseRadioRoot", l) });
|
|
711
|
-
});
|
|
712
|
-
_e.displayName = "RadioGroup.ItemRadio";
|
|
713
|
-
const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
714
|
-
__proto__: null,
|
|
715
|
-
Item: mr,
|
|
716
|
-
Root: ur
|
|
717
|
-
}, Symbol.toStringTag, { value: "Module" })), ic = ["1", "2", "3"], uc = ["classic", "surface", "soft"], mc = { size: { type: "enum", className: "rt-r-size", values: ic, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: uc, default: "surface" }, ...$, ...w }, dc = e.forwardRef((t, a) => {
|
|
718
|
-
const r = e.useRef(null), { className: s, color: n, onChange: o, onValueChange: l, ...c } = m(t, mc, h);
|
|
719
|
-
return e.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange: sn(o, (u) => l == null ? void 0 : l(u.currentTarget.value)), ref: bt(r, a), className: i("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
720
|
-
});
|
|
721
|
-
dc.displayName = "Radio";
|
|
722
|
-
const pc = e.forwardRef(({ className: t, children: a, ...r }, s) => e.createElement(R, { ...r, ref: s, className: i("rt-reset", t) }, V(a)));
|
|
723
|
-
pc.displayName = "Reset";
|
|
724
|
-
const fc = ["1", "2", "3"], hc = ["surface", "classic"], Cc = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: fc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hc, default: "surface" }, ..._ }, dr = e.forwardRef((t, a) => {
|
|
725
|
-
const { className: r, children: s, radius: n, value: o, defaultValue: l, onValueChange: c, ...u } = m(t, Cc, h), [p, f] = Ve({ prop: o, onChange: c, defaultProp: l });
|
|
726
|
-
return e.createElement(on, { "data-disabled": t.disabled || void 0, "data-radius": n, ref: a, className: i("rt-SegmentedControlRoot", r), onValueChange: (C) => {
|
|
727
|
-
C && f(C);
|
|
728
|
-
}, ...u, type: "single", value: p, asChild: !1, disabled: !!t.disabled }, s, e.createElement("div", { className: "rt-SegmentedControlIndicator" }));
|
|
729
|
-
});
|
|
730
|
-
dr.displayName = "SegmentedControl.Root";
|
|
731
|
-
const pr = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement(nn, { ref: s, className: i("rt-reset", "rt-SegmentedControlItem", a), ...r, disabled: !1, asChild: !1 }, e.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), e.createElement("span", { className: "rt-SegmentedControlItemLabel" }, e.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, t), e.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, t))));
|
|
732
|
-
pr.displayName = "SegmentedControl.Item";
|
|
733
|
-
const zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
515
|
+
Anchor: Kt,
|
|
516
|
+
Close: qt,
|
|
517
|
+
Content: Wt,
|
|
518
|
+
Root: Ht,
|
|
519
|
+
Trigger: Ft
|
|
520
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = ["1", "2", "3"], Xn = ["classic", "surface", "soft"], Jn = { size: { type: "enum", className: "rt-r-size", values: Yn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Xn, default: "surface" }, ...C, ...E, ...M, duration: { type: "string" } }, Un = e.forwardRef((t, a) => {
|
|
521
|
+
const { className: r, style: s, color: n, radius: o, duration: l, ...c } = m(t, Jn, f);
|
|
522
|
+
return e.createElement($r, { "data-accent-color": n, "data-radius": o, ref: a, className: u("rt-ProgressRoot", r), style: ae({ "--progress-duration": "value" in c ? void 0 : l, "--progress-value": "value" in c ? c.value : void 0, "--progress-max": "max" in c ? c.max : void 0 }, s), ...c, asChild: !1 }, e.createElement(br, { className: "rt-ProgressIndicator" }));
|
|
523
|
+
});
|
|
524
|
+
Un.displayName = "Progress";
|
|
525
|
+
const eo = { ...N, ...H, ...G }, to = e.forwardRef((t, a) => {
|
|
526
|
+
const { asChild: r, className: s, ...n } = m(t, eo), o = r ? $ : "q";
|
|
527
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-Quote", s) });
|
|
528
|
+
});
|
|
529
|
+
to.displayName = "Quote";
|
|
530
|
+
const ao = ["1", "2", "3"], ro = ["classic", "surface", "soft"], J = { ...N, size: { type: "enum", className: "rt-r-size", values: ao, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ro, default: "surface" }, ...C, ...E }, Zt = "RadioGroup", [so] = wr(Zt, [Oe]), Qt = Oe(), [no, Yt] = so(Zt), Xt = e.forwardRef(({ color: t = J.color.default, highContrast: a = J.highContrast.default, size: r = J.size.default, variant: s = J.variant.default, ...n }, o) => {
|
|
531
|
+
const { __scopeRadioGroup: l, className: c, ...i } = m(n, f), d = Qt(l);
|
|
532
|
+
return e.createElement(no, { scope: l, color: t, highContrast: a, size: r, variant: s }, e.createElement(Er, { ...d, ...i, ref: o, className: u("rt-RadioGroupRoot", c) }));
|
|
533
|
+
});
|
|
534
|
+
Xt.displayName = "RadioGroup.Root";
|
|
535
|
+
const Jt = e.forwardRef((t, a) => {
|
|
536
|
+
const { __scopeRadioGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } = Yt("RadioGroupItem", r);
|
|
537
|
+
return s ? e.createElement(F, { as: "label", size: c, className: u("rt-RadioGroupItem", n), style: o }, e.createElement(ye, { __scopeRadioGroup: r, ...l, ref: a }), s && e.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : e.createElement(ye, { __scopeRadioGroup: r, ...l, ref: a, className: n, style: o });
|
|
538
|
+
});
|
|
539
|
+
Jt.displayName = "RadioGroup.Item";
|
|
540
|
+
const ye = e.forwardRef(({ __scopeRadioGroup: t, ...a }, r) => {
|
|
541
|
+
const s = Yt("RadioGroupItemRadio", t), n = Qt(t), { color: o, className: l } = m({ ...a, ...s }, J, f);
|
|
542
|
+
return e.createElement(Rr, { ...n, "data-accent-color": o, ...a, asChild: !1, ref: r, className: u("rt-reset", "rt-BaseRadioRoot", l) });
|
|
543
|
+
});
|
|
544
|
+
ye.displayName = "RadioGroup.ItemRadio";
|
|
545
|
+
const Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
734
546
|
__proto__: null,
|
|
735
|
-
Item:
|
|
736
|
-
Root:
|
|
737
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
738
|
-
|
|
547
|
+
Item: Jt,
|
|
548
|
+
Root: Xt
|
|
549
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = ["1", "2", "3"], lo = ["classic", "surface", "soft"], co = { size: { type: "enum", className: "rt-r-size", values: oo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: lo, default: "surface" }, ...C, ...E }, io = e.forwardRef((t, a) => {
|
|
550
|
+
const r = e.useRef(null), { className: s, color: n, onChange: o, onValueChange: l, ...c } = m(t, co, f);
|
|
551
|
+
return e.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange: Sr(o, (i) => l == null ? void 0 : l(i.currentTarget.value)), ref: Le(r, a), className: u("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
552
|
+
});
|
|
553
|
+
io.displayName = "Radio";
|
|
554
|
+
const uo = ["1", "2", "3", "4"], mo = ["none", "initial"], po = { ...N, size: { type: "enum", className: "rt-r-size", values: uo, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: mo, parseValue: fo, responsive: !0 } };
|
|
555
|
+
function fo(t) {
|
|
739
556
|
return t === "initial" ? "block" : t;
|
|
740
557
|
}
|
|
741
|
-
const
|
|
742
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
743
|
-
return e.createElement(o, { ...n, ref: a, className:
|
|
744
|
-
});
|
|
745
|
-
|
|
746
|
-
const
|
|
747
|
-
const { children: a, size: r =
|
|
748
|
-
return e.createElement(
|
|
558
|
+
const go = e.forwardRef((t, a) => {
|
|
559
|
+
const { asChild: r, className: s, ...n } = m(t, po, se, f), o = r ? $ : "section";
|
|
560
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-Section", s) });
|
|
561
|
+
});
|
|
562
|
+
go.displayName = "Section";
|
|
563
|
+
const vo = ["1", "2", "3"], Te = { size: { type: "enum", className: "rt-r-size", values: vo, default: "2", responsive: !0 } }, No = ["classic", "surface", "soft", "ghost"], ho = { variant: { type: "enum", className: "rt-variant", values: No, default: "surface" }, ...C, ...M, placeholder: { type: "string" } }, yo = ["solid", "soft"], Co = { variant: { type: "enum", className: "rt-variant", values: yo, default: "solid" }, ...C, ...E }, Me = e.createContext({}), Ut = (t) => {
|
|
564
|
+
const { children: a, size: r = Te.size.default, ...s } = t;
|
|
565
|
+
return e.createElement(Br, { ...s }, e.createElement(Me.Provider, { value: e.useMemo(() => ({ size: r }), [r]) }, a));
|
|
749
566
|
};
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
const r = e.useContext(
|
|
753
|
-
return e.createElement(
|
|
754
|
-
});
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
const r = e.useContext(
|
|
758
|
-
return e.createElement(
|
|
759
|
-
});
|
|
760
|
-
|
|
761
|
-
const
|
|
567
|
+
Ut.displayName = "Select.Root";
|
|
568
|
+
const ea = e.forwardRef((t, a) => {
|
|
569
|
+
const r = e.useContext(Me), { children: s, className: n, color: o, radius: l, placeholder: c, ...i } = m({ size: r == null ? void 0 : r.size, ...t }, { size: Te.size }, ho, f);
|
|
570
|
+
return e.createElement(Dr, { asChild: !0 }, e.createElement("button", { "data-accent-color": o, "data-radius": l, ...i, ref: a, className: u("rt-reset", "rt-SelectTrigger", n) }, e.createElement("span", { className: "rt-SelectTriggerInner" }, e.createElement(Vr, { placeholder: c }, s)), e.createElement(jr, { asChild: !0 }, e.createElement(Nt, { className: "rt-SelectIcon" }))));
|
|
571
|
+
});
|
|
572
|
+
ea.displayName = "Select.Trigger";
|
|
573
|
+
const ta = e.forwardRef((t, a) => {
|
|
574
|
+
const r = e.useContext(Me), { className: s, children: n, color: o, container: l, ...c } = m({ size: r == null ? void 0 : r.size, ...t }, { size: Te.size }, Co), i = tt(), d = o || i.accentColor;
|
|
575
|
+
return e.createElement(xr, { container: l }, e.createElement(P, { asChild: !0 }, e.createElement(Tr, { "data-accent-color": d, sideOffset: 4, ...c, asChild: !1, ref: a, className: u({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, e.createElement(Ae, { type: "auto", className: "rt-ScrollAreaRoot" }, e.createElement(Mr, { asChild: !0, className: "rt-SelectViewport" }, e.createElement(De, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, n)), e.createElement(Ne, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, e.createElement(he, { className: "rt-ScrollAreaThumb" }))))));
|
|
576
|
+
});
|
|
577
|
+
ta.displayName = "Select.Content";
|
|
578
|
+
const aa = e.forwardRef((t, a) => {
|
|
762
579
|
const { className: r, children: s, ...n } = t;
|
|
763
|
-
return e.createElement(
|
|
764
|
-
});
|
|
765
|
-
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
const
|
|
580
|
+
return e.createElement(zr, { ...n, asChild: !1, ref: a, className: u("rt-SelectItem", r) }, e.createElement(Ir, { className: "rt-SelectItemIndicator" }, e.createElement(ne, { className: "rt-SelectItemIndicatorIcon" })), e.createElement(kr, null, s));
|
|
581
|
+
});
|
|
582
|
+
aa.displayName = "Select.Item";
|
|
583
|
+
const ra = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Pr, { ...a, asChild: !1, ref: r, className: u("rt-SelectGroup", t) }));
|
|
584
|
+
ra.displayName = "Select.Group";
|
|
585
|
+
const sa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(_r, { ...a, asChild: !1, ref: r, className: u("rt-SelectLabel", t) }));
|
|
586
|
+
sa.displayName = "Select.Label";
|
|
587
|
+
const na = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ar, { ...a, asChild: !1, ref: r, className: u("rt-SelectSeparator", t) }));
|
|
588
|
+
na.displayName = "Select.Separator";
|
|
589
|
+
const Dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
773
590
|
__proto__: null,
|
|
774
|
-
Content:
|
|
775
|
-
Group:
|
|
776
|
-
Item:
|
|
777
|
-
Label:
|
|
778
|
-
Root:
|
|
779
|
-
Separator:
|
|
780
|
-
Trigger:
|
|
781
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
782
|
-
const { className: r, color: s, decorative: n, ...o } = m(t,
|
|
783
|
-
return e.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...o, ref: a, className:
|
|
784
|
-
});
|
|
785
|
-
|
|
786
|
-
const
|
|
787
|
-
const { children: r, className: s, loading: n, ...o } = m(t,
|
|
591
|
+
Content: ta,
|
|
592
|
+
Group: ra,
|
|
593
|
+
Item: aa,
|
|
594
|
+
Label: sa,
|
|
595
|
+
Root: Ut,
|
|
596
|
+
Separator: na,
|
|
597
|
+
Trigger: ea
|
|
598
|
+
}, Symbol.toStringTag, { value: "Module" })), $o = ["horizontal", "vertical"], bo = ["1", "2", "3", "4"], wo = { orientation: { type: "enum", className: "rt-r-orientation", values: $o, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: bo, default: "1", responsive: !0 }, color: { ...C.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Eo = e.forwardRef((t, a) => {
|
|
599
|
+
const { className: r, color: s, decorative: n, ...o } = m(t, wo, f);
|
|
600
|
+
return e.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...o, ref: a, className: u("rt-Separator", r) });
|
|
601
|
+
});
|
|
602
|
+
Eo.displayName = "Separator";
|
|
603
|
+
const Ro = parseFloat(e.version) >= 19 || "", So = { loading: { type: "boolean", default: !0 }, ...w, ...K }, xo = e.forwardRef((t, a) => {
|
|
604
|
+
const { children: r, className: s, loading: n, ...o } = m(t, So, f);
|
|
788
605
|
if (!n) return r;
|
|
789
|
-
const l = e.isValidElement(r) ?
|
|
790
|
-
return e.createElement(l, { ref: a, "aria-hidden": !0, className:
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
const { className: r, color: s, radius: n, tabIndex: o, ...l } = m(t,
|
|
795
|
-
return e.createElement(
|
|
796
|
-
});
|
|
797
|
-
|
|
798
|
-
const
|
|
799
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
800
|
-
return e.createElement(o, { ...n, ref: a, className:
|
|
801
|
-
});
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
const { className: r, color: s, radius: n, ...o } = m(t,
|
|
805
|
-
return e.createElement(
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
return e.createElement(Mn, { className: "rt-TabNavRoot", "data-accent-color": n, ...o, asChild: !1, ref: a }, e.createElement(In, { className: i("rt-reset", "rt-BaseTabList", "rt-TabNavList", s) }, r));
|
|
811
|
-
});
|
|
812
|
-
Er.displayName = "TabNav.Root";
|
|
813
|
-
const wr = e.forwardRef((t, a) => {
|
|
814
|
-
const { asChild: r, children: s, className: n, ...o } = t;
|
|
815
|
-
return e.createElement(Sn, { className: "rt-TabNavItem" }, e.createElement(Tn, { ...o, ref: a, className: i("rt-reset", "rt-BaseTabListTrigger", "rt-TabNavLink", n), onSelect: void 0, asChild: r }, Se({ asChild: r, children: s }, (l) => e.createElement(e.Fragment, null, e.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabNavLinkInner" }, l), e.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabNavLinkInnerHidden" }, l)))));
|
|
816
|
-
});
|
|
817
|
-
wr.displayName = "TabNav.Link";
|
|
818
|
-
const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
819
|
-
__proto__: null,
|
|
820
|
-
Link: wr,
|
|
821
|
-
Root: Er
|
|
822
|
-
}, Symbol.toStringTag, { value: "Module" })), Wc = ["1", "2", "3"], qc = ["surface", "ghost"], Kc = ["auto", "fixed"], Pe = { size: { type: "enum", className: "rt-r-size", values: Wc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: qc, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: Kc, responsive: !0 } }, Uc = ["start", "center", "end", "baseline"], Xc = { align: { type: "enum", className: "rt-r-va", values: Uc, parseValue: Qc, responsive: !0 } };
|
|
823
|
-
function Qc(t) {
|
|
606
|
+
const l = e.isValidElement(r) ? $ : "span";
|
|
607
|
+
return e.createElement(l, { ref: a, "aria-hidden": !0, className: u("rt-Skeleton", s), "data-inline-skeleton": e.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: Ro, ...o }, r);
|
|
608
|
+
});
|
|
609
|
+
xo.displayName = "Skeleton";
|
|
610
|
+
const To = ["1", "2", "3"], Mo = ["classic", "surface", "soft"], Po = { size: { type: "enum", className: "rt-r-size", values: To, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Mo, default: "surface" }, ...C, ...E, ...M }, zo = e.forwardRef((t, a) => {
|
|
611
|
+
const { className: r, color: s, radius: n, tabIndex: o, ...l } = m(t, Po, f);
|
|
612
|
+
return e.createElement(Ge, { "data-accent-color": s, "data-radius": n, ref: a, ...l, asChild: !1, className: u("rt-SliderRoot", r) }, e.createElement(He, { className: "rt-SliderTrack" }, e.createElement(Fe, { className: u("rt-SliderRange", { "rt-high-contrast": t.highContrast }), "data-inverted": l.inverted ? "" : void 0 })), (l.value ?? l.defaultValue ?? []).map((c, i) => e.createElement(We, { key: i, className: "rt-SliderThumb", ...o !== void 0 ? { tabIndex: o } : void 0 })));
|
|
613
|
+
});
|
|
614
|
+
zo.displayName = "Slider";
|
|
615
|
+
const Io = { ...N, ...H, ...G }, ko = e.forwardRef((t, a) => {
|
|
616
|
+
const { asChild: r, className: s, ...n } = m(t, Io), o = r ? $ : "strong";
|
|
617
|
+
return e.createElement(o, { ...n, ref: a, className: u("rt-Strong", s) });
|
|
618
|
+
});
|
|
619
|
+
ko.displayName = "Strong";
|
|
620
|
+
const _o = ["1", "2", "3"], Bo = ["classic", "surface", "soft"], Ao = { size: { type: "enum", className: "rt-r-size", values: _o, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Bo, default: "surface" }, ...C, ...E, ...M }, Do = e.forwardRef((t, a) => {
|
|
621
|
+
const { className: r, color: s, radius: n, ...o } = m(t, Ao, f);
|
|
622
|
+
return e.createElement(Or, { "data-accent-color": s, "data-radius": n, ...o, asChild: !1, ref: a, className: u("rt-reset", "rt-SwitchRoot", r) }, e.createElement(Lr, { className: u("rt-SwitchThumb", { "rt-high-contrast": t.highContrast }) }));
|
|
623
|
+
});
|
|
624
|
+
Do.displayName = "Switch";
|
|
625
|
+
const Vo = ["1", "2"], jo = ["nowrap", "wrap", "wrap-reverse"], Oo = ["start", "center", "end"], Lo = { size: { type: "enum", className: "rt-r-size", values: Vo, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: jo, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Oo, responsive: !0 }, ...C, ...E }, Go = ["1", "2", "3"], Ho = ["surface", "ghost"], Fo = ["auto", "fixed"], ve = { size: { type: "enum", className: "rt-r-size", values: Go, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ho, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: Fo, responsive: !0 } }, Wo = ["start", "center", "end", "baseline"], qo = { align: { type: "enum", className: "rt-r-va", values: Wo, parseValue: Ko, responsive: !0 } };
|
|
626
|
+
function Ko(t) {
|
|
824
627
|
return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[t];
|
|
825
628
|
}
|
|
826
|
-
const
|
|
827
|
-
function
|
|
629
|
+
const Zo = ["start", "center", "end"], Pe = { justify: { type: "enum", className: "rt-r-ta", values: Zo, parseValue: Qo, responsive: !0 }, ...w, ...ee };
|
|
630
|
+
function Qo(t) {
|
|
828
631
|
return { start: "left", center: "center", end: "right" }[t];
|
|
829
632
|
}
|
|
830
|
-
const
|
|
831
|
-
const { layout: r, ...s } =
|
|
832
|
-
return e.createElement("div", { ref: a, className:
|
|
833
|
-
});
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
|
|
837
|
-
const
|
|
838
|
-
|
|
839
|
-
const
|
|
840
|
-
const { className: r, ...s } = m(t,
|
|
841
|
-
return e.createElement("tr", { ...s, ref: a, className:
|
|
842
|
-
});
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
const { className: r, ...s } = m(t,
|
|
846
|
-
return e.createElement("td", { className:
|
|
633
|
+
const oa = e.forwardRef((t, a) => {
|
|
634
|
+
const { layout: r, ...s } = ve, { className: n, children: o, layout: l, ...c } = m(t, s, f), i = te({ value: l, className: ve.layout.className, propValues: ve.layout.values });
|
|
635
|
+
return e.createElement("div", { ref: a, className: u("rt-TableRoot", n), ...c }, e.createElement(de, null, e.createElement("table", { className: u("rt-TableRootTable", i) }, o)));
|
|
636
|
+
});
|
|
637
|
+
oa.displayName = "Table.Root";
|
|
638
|
+
const la = e.forwardRef(({ className: t, ...a }, r) => e.createElement("thead", { ...a, ref: r, className: u("rt-TableHeader", t) }));
|
|
639
|
+
la.displayName = "Table.Header";
|
|
640
|
+
const ca = e.forwardRef(({ className: t, ...a }, r) => e.createElement("tbody", { ...a, ref: r, className: u("rt-TableBody", t) }));
|
|
641
|
+
ca.displayName = "Table.Body";
|
|
642
|
+
const ia = e.forwardRef((t, a) => {
|
|
643
|
+
const { className: r, ...s } = m(t, qo);
|
|
644
|
+
return e.createElement("tr", { ...s, ref: a, className: u("rt-TableRow", r) });
|
|
645
|
+
});
|
|
646
|
+
ia.displayName = "Table.Row";
|
|
647
|
+
const ua = e.forwardRef((t, a) => {
|
|
648
|
+
const { className: r, ...s } = m(t, Pe);
|
|
649
|
+
return e.createElement("td", { className: u("rt-TableCell", r), ref: a, ...s });
|
|
847
650
|
});
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
const { className: r, ...s } = m(t,
|
|
851
|
-
return e.createElement("th", { className:
|
|
651
|
+
ua.displayName = "Table.Cell";
|
|
652
|
+
const ma = e.forwardRef((t, a) => {
|
|
653
|
+
const { className: r, ...s } = m(t, Pe);
|
|
654
|
+
return e.createElement("th", { className: u("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: a, ...s });
|
|
852
655
|
});
|
|
853
|
-
|
|
854
|
-
const
|
|
855
|
-
const { className: r, ...s } = m(t,
|
|
856
|
-
return e.createElement("th", { className:
|
|
656
|
+
ma.displayName = "Table.ColumnHeaderCell";
|
|
657
|
+
const da = e.forwardRef((t, a) => {
|
|
658
|
+
const { className: r, ...s } = m(t, Pe);
|
|
659
|
+
return e.createElement("th", { className: u("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: a, ...s });
|
|
857
660
|
});
|
|
858
|
-
|
|
859
|
-
const
|
|
661
|
+
da.displayName = "Table.RowHeaderCell";
|
|
662
|
+
const Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
860
663
|
__proto__: null,
|
|
861
|
-
Body:
|
|
862
|
-
Cell:
|
|
863
|
-
ColumnHeaderCell:
|
|
864
|
-
Header:
|
|
865
|
-
Root:
|
|
866
|
-
Row:
|
|
867
|
-
RowHeaderCell:
|
|
868
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
869
|
-
const { className: r, ...s } = m(t,
|
|
870
|
-
return e.createElement(
|
|
871
|
-
});
|
|
872
|
-
|
|
873
|
-
const
|
|
874
|
-
const { className: r, color: s, ...n } = m(t,
|
|
875
|
-
return e.createElement(
|
|
876
|
-
});
|
|
877
|
-
|
|
878
|
-
const
|
|
664
|
+
Body: ca,
|
|
665
|
+
Cell: ua,
|
|
666
|
+
ColumnHeaderCell: ma,
|
|
667
|
+
Header: la,
|
|
668
|
+
Root: oa,
|
|
669
|
+
Row: ia,
|
|
670
|
+
RowHeaderCell: da
|
|
671
|
+
}, Symbol.toStringTag, { value: "Module" })), pa = e.forwardRef((t, a) => {
|
|
672
|
+
const { className: r, ...s } = m(t, f);
|
|
673
|
+
return e.createElement(Fr, { ...s, ref: a, className: u("rt-TabsRoot", r) });
|
|
674
|
+
});
|
|
675
|
+
pa.displayName = "Tabs.Root";
|
|
676
|
+
const fa = e.forwardRef((t, a) => {
|
|
677
|
+
const { className: r, color: s, ...n } = m(t, Lo, f);
|
|
678
|
+
return e.createElement(Hr, { "data-accent-color": s, ...n, asChild: !1, ref: a, className: u("rt-BaseTabList", "rt-TabsList", r) });
|
|
679
|
+
});
|
|
680
|
+
fa.displayName = "Tabs.List";
|
|
681
|
+
const ga = e.forwardRef((t, a) => {
|
|
879
682
|
const { className: r, children: s, ...n } = t;
|
|
880
|
-
return e.createElement(
|
|
683
|
+
return e.createElement(Wr, { ...n, asChild: !1, ref: a, className: u("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, e.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), e.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
|
|
881
684
|
});
|
|
882
|
-
|
|
883
|
-
const
|
|
884
|
-
const { className: r, ...s } = m(t,
|
|
885
|
-
return e.createElement(
|
|
685
|
+
ga.displayName = "Tabs.Trigger";
|
|
686
|
+
const va = e.forwardRef((t, a) => {
|
|
687
|
+
const { className: r, ...s } = m(t, f);
|
|
688
|
+
return e.createElement(Gr, { ...s, ref: a, className: u("rt-TabsContent", r) });
|
|
886
689
|
});
|
|
887
|
-
|
|
888
|
-
const
|
|
690
|
+
va.displayName = "Tabs.Content";
|
|
691
|
+
const jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
889
692
|
__proto__: null,
|
|
890
|
-
Content:
|
|
891
|
-
List:
|
|
892
|
-
Root:
|
|
893
|
-
Trigger:
|
|
894
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
895
|
-
const { className: r, color: s, radius: n, style: o, ...l } = m(t,
|
|
896
|
-
return e.createElement("div", { "data-accent-color": s, "data-radius": n, className:
|
|
897
|
-
});
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
const r = e.useRef(null), { children: s, className: n, color: o, radius: l, style: c, ...
|
|
901
|
-
return e.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className:
|
|
902
|
-
const
|
|
903
|
-
if (
|
|
904
|
-
const
|
|
905
|
-
if (!
|
|
906
|
-
const
|
|
693
|
+
Content: va,
|
|
694
|
+
List: fa,
|
|
695
|
+
Root: pa,
|
|
696
|
+
Trigger: ga
|
|
697
|
+
}, Symbol.toStringTag, { value: "Module" })), Yo = ["1", "2", "3"], Xo = ["classic", "surface", "soft"], Jo = ["none", "vertical", "horizontal", "both"], Uo = { size: { type: "enum", className: "rt-r-size", values: Yo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Xo, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Jo, responsive: !0 }, ...C, ...M }, el = e.forwardRef((t, a) => {
|
|
698
|
+
const { className: r, color: s, radius: n, style: o, ...l } = m(t, Uo, f);
|
|
699
|
+
return e.createElement("div", { "data-accent-color": s, "data-radius": n, className: u("rt-TextAreaRoot", r), style: o }, e.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...l }));
|
|
700
|
+
});
|
|
701
|
+
el.displayName = "TextArea";
|
|
702
|
+
const tl = ["1", "2", "3"], al = ["classic", "surface", "soft"], rl = { size: { type: "enum", className: "rt-r-size", values: tl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: al, default: "surface" }, ...C, ...M }, sl = ["left", "right"], nl = { side: { type: "enum", values: sl }, ...C, gap: pt.gap, px: ee.px, pl: ee.pl, pr: ee.pr }, Na = e.forwardRef((t, a) => {
|
|
703
|
+
const r = e.useRef(null), { children: s, className: n, color: o, radius: l, style: c, ...i } = m(t, rl, f);
|
|
704
|
+
return e.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className: u("rt-TextFieldRoot", n), onPointerDown: (d) => {
|
|
705
|
+
const p = d.target;
|
|
706
|
+
if (p.closest("input, button, a")) return;
|
|
707
|
+
const v = r.current;
|
|
708
|
+
if (!v) return;
|
|
709
|
+
const h = p.closest(`
|
|
907
710
|
.rt-TextFieldSlot[data-side='right'],
|
|
908
711
|
.rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
|
|
909
|
-
`) ?
|
|
712
|
+
`) ? v.value.length : 0;
|
|
910
713
|
requestAnimationFrame(() => {
|
|
911
714
|
try {
|
|
912
|
-
|
|
715
|
+
v.setSelectionRange(h, h);
|
|
913
716
|
} catch {
|
|
914
717
|
}
|
|
915
|
-
|
|
718
|
+
v.focus();
|
|
916
719
|
});
|
|
917
|
-
} }, e.createElement("input", { spellCheck: "false", ...
|
|
720
|
+
} }, e.createElement("input", { spellCheck: "false", ...i, ref: Le(r, a), className: "rt-reset rt-TextFieldInput" }), s);
|
|
918
721
|
});
|
|
919
|
-
|
|
920
|
-
const
|
|
921
|
-
const { className: r, color: s, side: n, ...o } = m(t,
|
|
922
|
-
return e.createElement("div", { "data-accent-color": s, "data-side": n, ...o, ref: a, className:
|
|
722
|
+
Na.displayName = "TextField.Root";
|
|
723
|
+
const ha = e.forwardRef((t, a) => {
|
|
724
|
+
const { className: r, color: s, side: n, ...o } = m(t, nl);
|
|
725
|
+
return e.createElement("div", { "data-accent-color": s, "data-side": n, ...o, ref: a, className: u("rt-TextFieldSlot", r) });
|
|
923
726
|
});
|
|
924
|
-
|
|
925
|
-
const
|
|
727
|
+
ha.displayName = "TextField.Slot";
|
|
728
|
+
const Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
926
729
|
__proto__: null,
|
|
927
|
-
Root:
|
|
928
|
-
Slot:
|
|
929
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
930
|
-
const
|
|
931
|
-
return e.createElement(
|
|
932
|
-
});
|
|
933
|
-
|
|
934
|
-
const
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
730
|
+
Root: Na,
|
|
731
|
+
Slot: ha
|
|
732
|
+
}, Symbol.toStringTag, { value: "Module" })), ol = { content: { type: "ReactNode", required: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "360px" } }, ll = e.forwardRef((t, a) => {
|
|
733
|
+
const { children: r, className: s, open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: i, content: d, container: p, forceMount: v, ...h } = m(t, ol), b = { open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: i };
|
|
734
|
+
return e.createElement(qe, { ...b }, e.createElement(Ke, { asChild: !0 }, r), e.createElement(qr, { container: p, forceMount: v }, e.createElement(P, { asChild: !0 }, e.createElement(Ze, { sideOffset: 4, collisionPadding: 10, ...h, asChild: !1, ref: a, className: u("rt-TooltipContent", s) }, e.createElement(F, { as: "p", className: "rt-TooltipText", size: "1" }, d), e.createElement(Qe, { className: "rt-TooltipArrow" })))));
|
|
735
|
+
});
|
|
736
|
+
ll.displayName = "Tooltip";
|
|
737
|
+
const cl = "_iconButton_7rr0k_3", _e = {
|
|
738
|
+
iconButton: cl
|
|
739
|
+
}, il = ({
|
|
740
|
+
onClick: t,
|
|
741
|
+
className: a,
|
|
742
|
+
children: r,
|
|
743
|
+
variant: s = "ghost",
|
|
744
|
+
color: n = "gray",
|
|
745
|
+
disabled: o,
|
|
746
|
+
...l
|
|
747
|
+
}) => /* @__PURE__ */ y(
|
|
748
|
+
Gt,
|
|
749
|
+
{
|
|
750
|
+
onClick: t,
|
|
751
|
+
className: u(_e.iconButton, a, {
|
|
752
|
+
[_e.ghostCustom]: s === "ghost"
|
|
753
|
+
}),
|
|
754
|
+
style: {
|
|
755
|
+
cursor: "pointer !important"
|
|
756
|
+
},
|
|
757
|
+
variant: s,
|
|
758
|
+
disabled: o,
|
|
759
|
+
color: n,
|
|
760
|
+
...l,
|
|
761
|
+
children: r
|
|
946
762
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
[role="menu"],
|
|
952
|
-
input:not([type="radio"], [type="checkbox"]),
|
|
953
|
-
select,
|
|
954
|
-
textarea
|
|
955
|
-
`;
|
|
956
|
-
return e.useEffect(() => {
|
|
957
|
-
function d(g) {
|
|
958
|
-
var O, K;
|
|
959
|
-
const F = g.altKey || g.ctrlKey || g.shiftKey || g.metaKey, L = (O = document.activeElement) == null ? void 0 : O.closest(Ne);
|
|
960
|
-
((K = g.key) == null ? void 0 : K.toUpperCase()) === "T" && !F && !L && s(!r);
|
|
961
|
-
}
|
|
962
|
-
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
963
|
-
}, [s, r, Ne]), e.useEffect(() => {
|
|
964
|
-
function d(g) {
|
|
965
|
-
var O, K;
|
|
966
|
-
const F = g.altKey || g.ctrlKey || g.shiftKey || g.metaKey, L = (O = document.activeElement) == null ? void 0 : O.closest(Ne);
|
|
967
|
-
((K = g.key) == null ? void 0 : K.toUpperCase()) === "D" && !F && !L && G(Ie === "light" ? "dark" : "light");
|
|
968
|
-
}
|
|
969
|
-
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
970
|
-
}, [G, Ie, Ne]), e.useEffect(() => {
|
|
971
|
-
const d = document.documentElement, g = document.body;
|
|
972
|
-
function F() {
|
|
973
|
-
const O = d.classList.contains("dark") || d.classList.contains("dark-theme") || g.classList.contains("dark") || g.classList.contains("dark-theme");
|
|
974
|
-
at(c === "inherit" ? O ? "dark" : "light" : c);
|
|
975
|
-
}
|
|
976
|
-
const L = new MutationObserver(function(O) {
|
|
977
|
-
O.forEach(function(K) {
|
|
978
|
-
K.attributeName === "class" && F();
|
|
979
|
-
});
|
|
980
|
-
});
|
|
981
|
-
return F(), c === "inherit" && (L.observe(d, { attributes: !0 }), L.observe(g, { attributes: !0 })), () => L.disconnect();
|
|
982
|
-
}, [c]), e.createElement(M, { asChild: !0, radius: "medium", scaling: "100%" }, e.createElement(z, { direction: "column", position: "fixed", top: "0", right: "0", mr: "4", mt: "4", inert: r ? void 0 : br, ...o, ref: a, style: { zIndex: 9999, overflow: "hidden", maxHeight: "calc(100vh - var(--space-4) - var(--space-4))", borderRadius: "var(--radius-4)", backgroundColor: "var(--color-panel-solid)", transformOrigin: "top center", transitionProperty: "transform, box-shadow", transitionDuration: "200ms", transitionTimingFunction: r ? "ease-out" : "ease-in", transform: r ? "none" : "translateX(105%)", boxShadow: r ? "var(--shadow-5)" : "var(--shadow-2)", ...t.style } }, e.createElement(ae, null, e.createElement(ue, { flexGrow: "1", p: "5", position: "relative" }, e.createElement(ue, { position: "absolute", top: "0", right: "0", m: "2" }, e.createElement(ye, { content: "Press T to show/hide the Theme Panel", side: "bottom", sideOffset: 6 }, e.createElement(ar, { asChild: !0, size: "3", tabIndex: 0, className: "rt-ThemePanelShortcut" }, e.createElement("button", { onClick: () => s(!r) }, "T")))), e.createElement(Re, { size: "5", trim: "both", as: "h3", mb: "5" }, "Theme"), e.createElement(E, { id: "accent-color-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Accent color"), e.createElement(A, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "accent-color-title" }, y.accentColor.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelSwatch", style: { backgroundColor: `var(--${d}-9)` } }, e.createElement(ye, { content: `${W(d)}${p === "gray" && tt !== "gray" ? ` (${W(tt)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "accentColor", value: d, checked: p === d, onChange: (g) => f(g.target.value) }))))), e.createElement(z, { asChild: !0, align: "center", justify: "between" }, e.createElement(E, { as: "p", id: "gray-color-title", size: "2", weight: "medium", mt: "5" }, "Gray color")), e.createElement(A, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "gray-color-title" }, y.grayColor.values.map((d) => e.createElement(z, { key: d, asChild: !0, align: "center", justify: "center" }, e.createElement("label", { className: "rt-ThemePanelSwatch", style: { backgroundColor: d === "auto" ? `var(--${le}-9)` : d === "gray" ? "var(--gray-9)" : `var(--${d}-9)`, filter: d === "gray" ? "saturate(0)" : void 0 } }, e.createElement(ye, { content: `${W(d)}${d === "auto" ? ` (${W(le)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "grayColor", value: d, checked: C === d, onChange: (g) => v(g.target.value) })))))), e.createElement(E, { id: "appearance-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Appearance"), e.createElement(A, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "appearance-title" }, ["light", "dark"].map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "appearance", value: d, checked: Ie === d, onChange: (g) => G(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "light" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(E, { size: "1", weight: "medium" }, W(d)))))), e.createElement(E, { id: "radius-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Radius"), e.createElement(A, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "radius-title" }, y.radius.values.map((d) => e.createElement(z, { key: d, direction: "column", align: "center" }, e.createElement("label", { className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "radius", id: `theme-panel-radius-${d}`, value: d, checked: x === d, onChange: (g) => I(g.target.value) }), e.createElement(M, { asChild: !0, radius: d }, e.createElement(ue, { m: "3", width: "32px", height: "32px", style: { borderTopLeftRadius: d === "full" ? "80%" : "var(--radius-5)", backgroundImage: "linear-gradient(to bottom right, var(--accent-3), var(--accent-4))", borderTop: "2px solid var(--accent-a8)", borderLeft: "2px solid var(--accent-a8)" } }))), e.createElement(ue, { asChild: !0, pt: "2" }, e.createElement(E, { asChild: !0, size: "1", color: "gray" }, e.createElement("label", { htmlFor: `theme-panel-radius-${d}` }, W(d))))))), e.createElement(E, { id: "scaling-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Scaling"), e.createElement(A, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "scaling-title" }, y.scaling.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "scaling", value: d, checked: k === d, onChange: (g) => Z(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px" }, e.createElement(M, { asChild: !0, scaling: d }, e.createElement(z, { align: "center", justify: "center" }, e.createElement(E, { size: "1", weight: "medium" }, W(d)))))))), e.createElement(z, { mt: "5", align: "center", gap: "2" }, e.createElement(E, { id: "panel-background-title", as: "p", size: "2", weight: "medium" }, "Panel background"), e.createElement(Ue, null, e.createElement(Xe, null, e.createElement(tr, { size: "1", variant: "ghost", color: "gray" }, e.createElement(An, { label: "Learn more about panel background options" }, e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, e.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fillRule: "evenodd", clipRule: "evenodd" }))))), e.createElement(Qe, { size: "1", style: { maxWidth: 220 }, side: "top", align: "center" }, e.createElement(E, { as: "p", size: "2" }, "Whether Card and Table panels are translucent, showing some of the background behind them.")))), e.createElement(A, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "panel-background-title" }, y.panelBackground.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "panelBackground", value: d, checked: b === d, onChange: (g) => T(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "solid" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { opacity: ".05", d: "M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".1", d: "M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".15", d: "M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".2", d: "M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".25", d: "M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".3", d: "M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".35", d: "M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".4", d: "M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".45", d: "M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".5", d: "M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(E, { size: "1", weight: "medium" }, W(d)))))), e.createElement(Ot, { mt: "5", style: { width: "100%" }, onClick: jr }, Gr === "copied" ? "Copied" : "Copy Theme")))));
|
|
983
|
-
});
|
|
984
|
-
Vr.displayName = "ThemePanelImpl";
|
|
985
|
-
function mi() {
|
|
986
|
-
const t = document.createElement("style");
|
|
987
|
-
return t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(t), () => {
|
|
988
|
-
window.getComputedStyle(document.body), setTimeout(() => {
|
|
989
|
-
document.head.removeChild(t);
|
|
990
|
-
}, 1);
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
function W(t) {
|
|
994
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
995
|
-
}
|
|
996
|
-
function di(t) {
|
|
997
|
-
const a = document.documentElement, r = a.classList.contains("light-theme"), s = a.classList.contains("dark-theme"), n = a.classList.contains("light"), o = a.classList.contains("dark");
|
|
998
|
-
(r || s) && (a.classList.remove("light-theme", "dark-theme"), a.style.colorScheme = t, a.classList.add(`${t}-theme`)), (n || o) && (a.classList.remove("light", "dark"), a.style.colorScheme = t, a.classList.add(t)), !r && !s && !n && !o && (a.style.colorScheme = t, a.classList.add(t));
|
|
999
|
-
}
|
|
1000
|
-
const pi = { content: { type: "ReactNode", required: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "360px" } }, ye = e.forwardRef((t, a) => {
|
|
1001
|
-
const { children: r, className: s, open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u, content: p, container: f, forceMount: C, ...v } = m(t, pi), b = { open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u };
|
|
1002
|
-
return e.createElement(Dn, { ...b }, e.createElement(_n, { asChild: !0 }, r), e.createElement(Vn, { container: f, forceMount: C }, e.createElement(M, { asChild: !0 }, e.createElement(Gn, { sideOffset: 4, collisionPadding: 10, ...v, asChild: !1, ref: a, className: i("rt-TooltipContent", s) }, e.createElement(E, { as: "p", className: "rt-TooltipText", size: "1" }, p), e.createElement(jn, { className: "rt-TooltipArrow" })))));
|
|
1003
|
-
});
|
|
1004
|
-
ye.displayName = "Tooltip";
|
|
1005
|
-
const Vi = ({ children: t, ...a }) => /* @__PURE__ */ Or(
|
|
1006
|
-
M,
|
|
763
|
+
);
|
|
764
|
+
il.displayName = "IconButton";
|
|
765
|
+
const Ll = ({ children: t, ...a }) => /* @__PURE__ */ y(
|
|
766
|
+
P,
|
|
1007
767
|
{
|
|
1008
768
|
accentColor: "red",
|
|
1009
769
|
appearance: "dark",
|
|
@@ -1011,70 +771,237 @@ const Vi = ({ children: t, ...a }) => /* @__PURE__ */ Or(
|
|
|
1011
771
|
...a,
|
|
1012
772
|
children: t
|
|
1013
773
|
}
|
|
774
|
+
), ul = "_sliderRoot_1fv47_23", ml = "_sliderTrack_1fv47_31", dl = "_sliderRange_1fv47_46", pl = "_sliderThumb_1fv47_65", fl = "_tooltipContent_1fv47_85", gl = "_tooltipArrow_1fv47_99", vl = "_sliderContainer_1fv47_114", O = {
|
|
775
|
+
sliderRoot: ul,
|
|
776
|
+
sliderTrack: ml,
|
|
777
|
+
sliderRange: dl,
|
|
778
|
+
sliderThumb: pl,
|
|
779
|
+
tooltipContent: fl,
|
|
780
|
+
tooltipArrow: gl,
|
|
781
|
+
sliderContainer: vl
|
|
782
|
+
}, Gl = ({ onChangeValue: t, volume: a, disabled: r }) => {
|
|
783
|
+
const [s, n] = ba(!1), o = wa(), l = W((g) => {
|
|
784
|
+
if (g < 1e-3) return -1 / 0;
|
|
785
|
+
const z = 20 * Math.log10(g);
|
|
786
|
+
return z < -60 ? -60 : z;
|
|
787
|
+
}, []), c = W((g) => g === -1 / 0 || g <= -60 ? 0 : Math.pow(10, g / 20), []), i = pe(() => {
|
|
788
|
+
const g = l(a);
|
|
789
|
+
return g === -1 / 0 ? -60 : Math.max(-60, Math.min(6, g));
|
|
790
|
+
}, [a, l]), d = pe(() => a < 1e-3, [a]), p = W(() => {
|
|
791
|
+
clearTimeout(o.current), n(!0);
|
|
792
|
+
}, []), v = W(() => {
|
|
793
|
+
o.current = setTimeout(() => {
|
|
794
|
+
n(!1);
|
|
795
|
+
}, 300);
|
|
796
|
+
}, []), h = W(
|
|
797
|
+
(g) => {
|
|
798
|
+
(g.key === "ArrowUp" || g.key === "ArrowDown") && p(), (g.key === "ArrowLeft" || g.key === "ArrowRight") && (g.preventDefault(), g.stopPropagation());
|
|
799
|
+
},
|
|
800
|
+
[p]
|
|
801
|
+
), b = W(
|
|
802
|
+
(g) => {
|
|
803
|
+
t(g.map(c));
|
|
804
|
+
},
|
|
805
|
+
[t, c]
|
|
806
|
+
), R = pe(
|
|
807
|
+
() => /* @__PURE__ */ L($a, { children: [
|
|
808
|
+
d ? "-∞ dB" : `${i.toFixed(1)} dB`,
|
|
809
|
+
/* @__PURE__ */ y(Qe, { className: O.tooltipArrow })
|
|
810
|
+
] }),
|
|
811
|
+
[i, d]
|
|
812
|
+
);
|
|
813
|
+
return /* @__PURE__ */ y(
|
|
814
|
+
Ge,
|
|
815
|
+
{
|
|
816
|
+
className: O.sliderRoot,
|
|
817
|
+
min: -60,
|
|
818
|
+
max: 6,
|
|
819
|
+
step: 0.1,
|
|
820
|
+
value: [d ? -60 : i],
|
|
821
|
+
onValueChange: b,
|
|
822
|
+
onMouseEnter: p,
|
|
823
|
+
onMouseLeave: v,
|
|
824
|
+
disabled: r,
|
|
825
|
+
children: /* @__PURE__ */ L(
|
|
826
|
+
"div",
|
|
827
|
+
{
|
|
828
|
+
className: O.sliderContainer,
|
|
829
|
+
onMouseEnter: p,
|
|
830
|
+
onMouseLeave: v,
|
|
831
|
+
children: [
|
|
832
|
+
/* @__PURE__ */ y(
|
|
833
|
+
He,
|
|
834
|
+
{
|
|
835
|
+
className: O.sliderTrack,
|
|
836
|
+
onMouseEnter: p,
|
|
837
|
+
onMouseLeave: v,
|
|
838
|
+
children: /* @__PURE__ */ y(Fe, { className: O.sliderRange })
|
|
839
|
+
}
|
|
840
|
+
),
|
|
841
|
+
/* @__PURE__ */ y(Be, { delayDuration: 200, children: /* @__PURE__ */ L(qe, { open: s, children: [
|
|
842
|
+
/* @__PURE__ */ y(Ke, { asChild: !0, children: /* @__PURE__ */ y(
|
|
843
|
+
We,
|
|
844
|
+
{
|
|
845
|
+
className: O.sliderThumb,
|
|
846
|
+
onPointerDown: p,
|
|
847
|
+
onMouseEnter: p,
|
|
848
|
+
onMouseLeave: v,
|
|
849
|
+
onKeyDown: h
|
|
850
|
+
}
|
|
851
|
+
) }),
|
|
852
|
+
/* @__PURE__ */ y(
|
|
853
|
+
Ze,
|
|
854
|
+
{
|
|
855
|
+
className: O.tooltipContent,
|
|
856
|
+
side: "bottom",
|
|
857
|
+
align: "center",
|
|
858
|
+
sideOffset: 10,
|
|
859
|
+
children: R
|
|
860
|
+
}
|
|
861
|
+
)
|
|
862
|
+
] }) })
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
)
|
|
866
|
+
}
|
|
867
|
+
);
|
|
868
|
+
}, Nl = "_dropdownMenuContent_1139i_2", hl = "_dropdownMenuSubContent_1139i_2", yl = "_dropdownMenuItem_1139i_11", Cl = "_dropdownMenuSeparator_1139i_29", $l = "_rightSlot_1139i_35", bl = "_dropdownMenuSub_1139i_2", wl = "_dropdownMenuSubTrigger_1139i_51", El = "_dropdownMenuLabel_1139i_78", Rl = "_dropdownMenuTrigger_1139i_86", T = {
|
|
869
|
+
dropdownMenuContent: Nl,
|
|
870
|
+
dropdownMenuSubContent: hl,
|
|
871
|
+
dropdownMenuItem: yl,
|
|
872
|
+
dropdownMenuSeparator: Cl,
|
|
873
|
+
rightSlot: $l,
|
|
874
|
+
dropdownMenuSub: bl,
|
|
875
|
+
dropdownMenuSubTrigger: wl,
|
|
876
|
+
dropdownMenuLabel: El,
|
|
877
|
+
dropdownMenuTrigger: Rl
|
|
878
|
+
}, ya = (t) => {
|
|
879
|
+
var a;
|
|
880
|
+
switch (t.type) {
|
|
881
|
+
case "separator":
|
|
882
|
+
return /* @__PURE__ */ y(
|
|
883
|
+
ts,
|
|
884
|
+
{
|
|
885
|
+
className: T.dropdownMenuSeparator
|
|
886
|
+
},
|
|
887
|
+
t.key
|
|
888
|
+
);
|
|
889
|
+
case "label":
|
|
890
|
+
return /* @__PURE__ */ y(
|
|
891
|
+
es,
|
|
892
|
+
{
|
|
893
|
+
className: T.dropdownMenuLabel,
|
|
894
|
+
children: t.label
|
|
895
|
+
},
|
|
896
|
+
t.key
|
|
897
|
+
);
|
|
898
|
+
case "sub":
|
|
899
|
+
return /* @__PURE__ */ L(Xr, { className: T.dropdownMenuSub, children: [
|
|
900
|
+
/* @__PURE__ */ L(
|
|
901
|
+
Jr,
|
|
902
|
+
{
|
|
903
|
+
className: T.dropdownMenuSubTrigger,
|
|
904
|
+
children: [
|
|
905
|
+
t.label,
|
|
906
|
+
/* @__PURE__ */ y("div", { className: T.rightSlot, children: /* @__PURE__ */ y(as, {}) })
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
),
|
|
910
|
+
/* @__PURE__ */ y(
|
|
911
|
+
Ur,
|
|
912
|
+
{
|
|
913
|
+
className: T.dropdownMenuSubContent,
|
|
914
|
+
children: (a = t == null ? void 0 : t.children) == null ? void 0 : a.map((r) => ya(r))
|
|
915
|
+
}
|
|
916
|
+
)
|
|
917
|
+
] }, t.key);
|
|
918
|
+
case "item":
|
|
919
|
+
return /* @__PURE__ */ L(
|
|
920
|
+
Yr,
|
|
921
|
+
{
|
|
922
|
+
className: T.dropdownMenuItem,
|
|
923
|
+
onSelect: t.onClick,
|
|
924
|
+
disabled: t.disabled,
|
|
925
|
+
children: [
|
|
926
|
+
t.label,
|
|
927
|
+
t.keybinding && /* @__PURE__ */ y("div", { className: T.rightSlot, children: t.keybinding })
|
|
928
|
+
]
|
|
929
|
+
},
|
|
930
|
+
t.key
|
|
931
|
+
);
|
|
932
|
+
default:
|
|
933
|
+
return null;
|
|
934
|
+
}
|
|
935
|
+
}, Hl = Ea(
|
|
936
|
+
({ trigger: t, options: a, className: r, ...s }) => /* @__PURE__ */ y(mt, { children: /* @__PURE__ */ L(Kr, { children: [
|
|
937
|
+
/* @__PURE__ */ y(
|
|
938
|
+
Zr,
|
|
939
|
+
{
|
|
940
|
+
asChild: !0,
|
|
941
|
+
className: T.dropdownMenuTrigger,
|
|
942
|
+
children: t
|
|
943
|
+
}
|
|
944
|
+
),
|
|
945
|
+
/* @__PURE__ */ y(
|
|
946
|
+
Qr,
|
|
947
|
+
{
|
|
948
|
+
className: u(T.dropdownMenuContent, r),
|
|
949
|
+
side: s.side,
|
|
950
|
+
align: s.align,
|
|
951
|
+
sideOffset: 5,
|
|
952
|
+
alignOffset: 0,
|
|
953
|
+
onCloseAutoFocus: (n) => {
|
|
954
|
+
n.preventDefault();
|
|
955
|
+
},
|
|
956
|
+
children: a == null ? void 0 : a.map((n) => ya(n))
|
|
957
|
+
}
|
|
958
|
+
)
|
|
959
|
+
] }) })
|
|
1014
960
|
);
|
|
1015
961
|
export {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
Ni as Slottable,
|
|
1062
|
-
Gt as Spinner,
|
|
1063
|
-
Vc as Strong,
|
|
1064
|
-
Ac as Switch,
|
|
1065
|
-
Li as TabNav,
|
|
1066
|
-
Bi as Table,
|
|
1067
|
-
Di as Tabs,
|
|
1068
|
-
E as Text,
|
|
1069
|
-
si as TextArea,
|
|
1070
|
-
_i as TextField,
|
|
1071
|
-
Vi as Theme,
|
|
1072
|
-
be as ThemeContext,
|
|
1073
|
-
ui as ThemePanel,
|
|
1074
|
-
H as ThickCheckIcon,
|
|
1075
|
-
Ke as ThickChevronRightIcon,
|
|
1076
|
-
ta as ThickDividerHorizontalIcon,
|
|
1077
|
-
ye as Tooltip,
|
|
1078
|
-
Po as VisuallyHidden,
|
|
1079
|
-
xe as useThemeContext
|
|
962
|
+
Pl as AlertDialog,
|
|
963
|
+
zl as AspectRatio,
|
|
964
|
+
ws as Avatar,
|
|
965
|
+
xs as Badge,
|
|
966
|
+
Ts as Blockquote,
|
|
967
|
+
mt as Box,
|
|
968
|
+
Qs as Button,
|
|
969
|
+
Us as Card,
|
|
970
|
+
pn as Checkbox,
|
|
971
|
+
Nn as Code,
|
|
972
|
+
En as Container,
|
|
973
|
+
Il as ContextMenu,
|
|
974
|
+
kl as Dialog,
|
|
975
|
+
Hl as DropdownMenu,
|
|
976
|
+
_n as Em,
|
|
977
|
+
ue as Flex,
|
|
978
|
+
dn as Grid,
|
|
979
|
+
we as Heading,
|
|
980
|
+
_l as HoverCard,
|
|
981
|
+
il as IconButton,
|
|
982
|
+
On as Inset,
|
|
983
|
+
Hn as Kbd,
|
|
984
|
+
Kn as Link,
|
|
985
|
+
Bl as Popover,
|
|
986
|
+
Un as Progress,
|
|
987
|
+
to as Quote,
|
|
988
|
+
io as Radio,
|
|
989
|
+
Al as RadioGroup,
|
|
990
|
+
de as ScrollArea,
|
|
991
|
+
go as Section,
|
|
992
|
+
Dl as Select,
|
|
993
|
+
Eo as Separator,
|
|
994
|
+
xo as Skeleton,
|
|
995
|
+
zo as Slider,
|
|
996
|
+
ft as Spinner,
|
|
997
|
+
ko as Strong,
|
|
998
|
+
Do as Switch,
|
|
999
|
+
Vl as Table,
|
|
1000
|
+
jl as Tabs,
|
|
1001
|
+
F as Text,
|
|
1002
|
+
el as TextArea,
|
|
1003
|
+
Ol as TextField,
|
|
1004
|
+
Ll as Theme,
|
|
1005
|
+
ll as Tooltip,
|
|
1006
|
+
Gl as VerticalVolume
|
|
1080
1007
|
};
|