@moises.ai/design-system 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,153 +1,153 @@
1
- import { jsx as y, jsxs as L, Fragment as Ca } from "react/jsx-runtime";
2
- import * as e from "react";
3
- import x, { useState as $a, useRef as ba, useCallback as W, useMemo as pe, memo as wa } from "react";
4
- import { S as $, P as _e, a as Ea, A as Ra, C as Sa, b as xa, O as Ta, c as Ma, D as Pa, R as za, T as Ia, d as ka, e as _a, f as Ba, F as Aa, I as Da, g as Va, u as ja, h as Oa, i as La, j as Be, V as Ae, k as Ne, l as he, m as Ga, n as Ha, o as Ce, p as De, q as Ve, r as Fa, G as Wa, s as qa, L as Ka, t as Za, v as Qa, w as Ya, x as Xa, y as Ja, z as Ua, B as er, E as tr, H as ar, J as rr, K as sr, M as nr, N as or, Q as lr, U as cr, W as ir, X as ur, Y as mr, Z as dr, _ as pr, $ as fr, a0 as gr, a1 as vr, a2 as Nr, a3 as hr, a4 as yr, a5 as Cr, a6 as $r, a7 as br, a8 as je, a9 as wr, aa as Er, ab as Oe, ac as Rr, ad as Sr, ae as xr, af as Tr, ag as Mr, ah as Pr, ai as zr, aj as Ir, ak as kr, al as _r, am as Br, an as Ar, ao as Dr, ap as Vr, aq as Le, ar as Ge, as as He, at as Fe, au as jr, av as Or, aw as Lr, ax as Gr, ay as Hr, az as Fr, aA as We, aB as qe, aC as Wr, aD as Ke, aE as Ze, aF as qr, aG as Kr, aH as Zr, aI as Qr, aJ as Yr, aK as Xr, aL as Jr, aM as Ur, aN as es } from "./index-Cz-U2WeV.js";
5
- import { C as ts } from "./react-icons.esm-oPXFAjzR.js";
6
- function as(t) {
7
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ import { jsx as m, jsxs as E, Fragment as La } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import x, { useState as Oa, useRef as Ha, useCallback as F, useMemo as ge, memo as Ga } from "react";
4
+ import { S as $, P as je, a as Fa, A as Wa, C as qa, b as Ka, O as Za, c as Qa, D as Ya, R as Ua, T as Xa, d as Ja, e as er, f as tr, F as ar, I as rr, g as sr, u as Le, h as nr, i as lr, j as Oe, V as He, k as ye, l as Ce, m as or, n as cr, o as be, p as Ge, q as Fe, r as ir, G as ur, s as dr, L as mr, t as pr, v as fr, w as gr, x as hr, y as vr, z as Nr, B as yr, E as Cr, H as $r, J as br, K as wr, M as Er, N as Rr, Q as Sr, U as xr, W as Tr, X as Mr, Y as zr, Z as Pr, _ as Ir, $ as kr, a0 as _r, a1 as Br, a2 as Ar, a3 as Vr, a4 as Dr, a5 as jr, a6 as Lr, a7 as We, a8 as qe, a9 as Or, aa as Ke, ab as Ze, ac as Hr, ad as Gr, ae as Fr, af as Wr, ag as qr, ah as Kr, ai as Zr, aj as Qr, ak as Yr, al as Ur, am as Xr, an as Jr, ao as es, ap as ts, aq as as, ar as rs, as as Qe, at as Ye, au as Ue, av as Xe, aw as ss, ax as ns, ay as ls, az as os, aA as cs, aB as is, aC as Je, aD as et, aE as us, aF as tt, aG as at, aH as ds, aI as ms, aJ as ps, aK as fs, aL as gs, aM as hs, aN as vs, aO as Ns, aP as ys } from "./index-CsjBionl.js";
5
+ import { C as Cs, I as rt } from "./react-icons.esm-CDVTF3xl.js";
6
+ function $s(e) {
7
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
9
- var Qe = { exports: {} };
9
+ var st = { exports: {} };
10
10
  /*!
11
11
  Copyright (c) 2018 Jed Watson.
12
12
  Licensed under the MIT License (MIT), see
13
13
  http://jedwatson.github.io/classnames
14
14
  */
15
- (function(t) {
15
+ (function(e) {
16
16
  (function() {
17
17
  var a = {}.hasOwnProperty;
18
18
  function r() {
19
- for (var o = "", l = 0; l < arguments.length; l++) {
20
- var c = arguments[l];
21
- c && (o = s(o, n(c)));
19
+ for (var l = "", o = 0; o < arguments.length; o++) {
20
+ var c = arguments[o];
21
+ c && (l = n(l, s(c)));
22
22
  }
23
- return o;
23
+ return l;
24
24
  }
25
- function n(o) {
26
- if (typeof o == "string" || typeof o == "number")
27
- return o;
28
- if (typeof o != "object")
25
+ function s(l) {
26
+ if (typeof l == "string" || typeof l == "number")
27
+ return l;
28
+ if (typeof l != "object")
29
29
  return "";
30
- if (Array.isArray(o))
31
- return r.apply(null, o);
32
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
33
- return o.toString();
34
- var l = "";
35
- for (var c in o)
36
- a.call(o, c) && o[c] && (l = s(l, c));
37
- return l;
30
+ if (Array.isArray(l))
31
+ return r.apply(null, l);
32
+ if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
33
+ return l.toString();
34
+ var o = "";
35
+ for (var c in l)
36
+ a.call(l, c) && l[c] && (o = n(o, c));
37
+ return o;
38
38
  }
39
- function s(o, l) {
40
- return l ? o ? o + " " + l : o + l : o;
39
+ function n(l, o) {
40
+ return o ? l ? l + " " + o : l + o : l;
41
41
  }
42
- t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
42
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
43
43
  })();
44
- })(Qe);
45
- var rs = Qe.exports;
46
- const u = /* @__PURE__ */ as(rs), 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 } }, ss = ["1", "2", "3", "4"], Ye = { ...N, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: ss, default: "3", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "600px" }, ...K }, Xe = ["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: Xe, default: void 0 } }, re = { color: { type: "enum", values: Xe, default: "" } }, E = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, ns = ["normal", "start", "end", "both"], $e = { trim: { type: "enum", className: "rt-r-lt", values: ns, responsive: !0 } }, os = ["left", "center", "right"], Je = { align: { type: "enum", className: "rt-r-ta", values: os, responsive: !0 } }, ls = ["wrap", "nowrap", "pretty", "balance"], G = { wrap: { type: "enum", className: "rt-r-tw", values: ls, responsive: !0 } }, H = { truncate: { type: "boolean", className: "rt-truncate" } }, cs = ["light", "regular", "medium", "bold"], me = { weight: { type: "enum", className: "rt-r-weight", values: cs, responsive: !0 } }, is = ["h1", "h2", "h3", "h4", "h5", "h6"], us = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], ms = { as: { type: "enum", values: is, default: "h1" }, ...N, size: { type: "enum", className: "rt-r-size", values: us, default: "6", responsive: !0 }, ...me, ...Je, ...$e, ...H, ...G, ...C, ...E }, be = ["initial", "xs", "sm", "md", "lg", "xl"];
47
- function Ue(t, a) {
48
- return Object.prototype.hasOwnProperty.call(t, a);
44
+ })(st);
45
+ var bs = st.exports;
46
+ const i = /* @__PURE__ */ $s(bs), N = { asChild: { type: "boolean" } }, R = { 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 } }, Z = { 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 } }, ws = ["1", "2", "3", "4"], nt = { ...N, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: ws, default: "3", responsive: !0 }, width: R.width, minWidth: R.minWidth, maxWidth: { ...R.maxWidth, default: "600px" }, ...Z }, lt = ["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: lt, default: void 0 } }, Q = { color: { type: "enum", values: lt, default: "" } }, b = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Es = ["normal", "start", "end", "both"], we = { trim: { type: "enum", className: "rt-r-lt", values: Es, responsive: !0 } }, Rs = ["left", "center", "right"], ot = { align: { type: "enum", className: "rt-r-ta", values: Rs, responsive: !0 } }, Ss = ["wrap", "nowrap", "pretty", "balance"], W = { wrap: { type: "enum", className: "rt-r-tw", values: Ss, responsive: !0 } }, q = { truncate: { type: "boolean", className: "rt-truncate" } }, xs = ["light", "regular", "medium", "bold"], pe = { weight: { type: "enum", className: "rt-r-weight", values: xs, responsive: !0 } }, Ts = ["h1", "h2", "h3", "h4", "h5", "h6"], Ms = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], zs = { as: { type: "enum", values: Ts, default: "h1" }, ...N, size: { type: "enum", className: "rt-r-size", values: Ms, default: "6", responsive: !0 }, ...pe, ...ot, ...we, ...q, ...W, ...C, ...b }, Ee = ["initial", "xs", "sm", "md", "lg", "xl"];
47
+ function ct(e, a) {
48
+ return Object.prototype.hasOwnProperty.call(e, a);
49
49
  }
50
- function U(t) {
51
- return typeof t == "object" && Object.keys(t).some((a) => be.includes(a));
50
+ function ae(e) {
51
+ return typeof e == "object" && Object.keys(e).some((a) => Ee.includes(a));
52
52
  }
53
- function k({ className: t, customProperties: a, ...r }) {
54
- const n = te({ allowArbitraryValues: !0, className: t, ...r }), s = ds({ customProperties: a, ...r });
55
- return [n, s];
53
+ function A({ className: e, customProperties: a, ...r }) {
54
+ const s = se({ allowArbitraryValues: !0, className: e, ...r }), n = Ps({ customProperties: a, ...r });
55
+ return [s, n];
56
56
  }
57
- function te({ allowArbitraryValues: t, value: a, className: r, propValues: n, parseValue: s = (o) => o }) {
58
- const o = [];
57
+ function se({ allowArbitraryValues: e, value: a, className: r, propValues: s, parseValue: n = (l) => l }) {
58
+ const l = [];
59
59
  if (a) {
60
- if (typeof a == "string" && n.includes(a)) return ze(r, a, s);
61
- if (U(a)) {
62
- const l = a;
63
- for (const c in l) {
64
- if (!Ue(l, c) || !be.includes(c)) continue;
65
- const i = l[c];
66
- if (i !== void 0) {
67
- if (n.includes(i)) {
68
- const d = ze(r, i, s), p = c === "initial" ? d : `${c}:${d}`;
69
- o.push(p);
70
- } else if (t) {
71
- const d = c === "initial" ? r : `${c}:${r}`;
72
- o.push(d);
60
+ if (typeof a == "string" && s.includes(a)) return Be(r, a, n);
61
+ if (ae(a)) {
62
+ const o = a;
63
+ for (const c in o) {
64
+ if (!ct(o, c) || !Ee.includes(c)) continue;
65
+ const u = o[c];
66
+ if (u !== void 0) {
67
+ if (s.includes(u)) {
68
+ const p = Be(r, u, n), f = c === "initial" ? p : `${c}:${p}`;
69
+ l.push(f);
70
+ } else if (e) {
71
+ const p = c === "initial" ? r : `${c}:${r}`;
72
+ l.push(p);
73
73
  }
74
74
  }
75
75
  }
76
- return o.join(" ");
76
+ return l.join(" ");
77
77
  }
78
- if (t) return r;
78
+ if (e) return r;
79
79
  }
80
80
  }
81
- function ze(t, a, r) {
82
- const n = t ? "-" : "", s = r(a), o = s == null ? void 0 : s.startsWith("-"), l = o ? "-" : "", c = o ? s == null ? void 0 : s.substring(1) : s;
83
- return `${l}${t}${n}${c}`;
81
+ function Be(e, a, r) {
82
+ const s = e ? "-" : "", n = r(a), l = n == null ? void 0 : n.startsWith("-"), o = l ? "-" : "", c = l ? n == null ? void 0 : n.substring(1) : n;
83
+ return `${o}${e}${s}${c}`;
84
84
  }
85
- function ds({ customProperties: t, value: a, propValues: r, parseValue: n = (s) => s }) {
86
- let s = {};
85
+ function Ps({ customProperties: e, value: a, propValues: r, parseValue: s = (n) => n }) {
86
+ let n = {};
87
87
  if (!(!a || typeof a == "string" && r.includes(a))) {
88
- if (typeof a == "string" && (s = Object.fromEntries(t.map((o) => [o, a]))), U(a)) {
89
- const o = a;
90
- for (const l in o) {
91
- if (!Ue(o, l) || !be.includes(l)) continue;
92
- const c = o[l];
93
- if (!r.includes(c)) for (const i of t) s = { [l === "initial" ? i : `${i}-${l}`]: c, ...s };
88
+ if (typeof a == "string" && (n = Object.fromEntries(e.map((l) => [l, a]))), ae(a)) {
89
+ const l = a;
90
+ for (const o in l) {
91
+ if (!ct(l, o) || !Ee.includes(o)) continue;
92
+ const c = l[o];
93
+ if (!r.includes(c)) for (const u of e) n = { [o === "initial" ? u : `${u}-${o}`]: c, ...n };
94
94
  }
95
95
  }
96
- for (const o in s) {
97
- const l = s[o];
98
- l !== void 0 && (s[o] = n(l));
96
+ for (const l in n) {
97
+ const o = n[l];
98
+ o !== void 0 && (n[l] = s(o));
99
99
  }
100
- return s;
100
+ return n;
101
101
  }
102
102
  }
103
- function ae(...t) {
103
+ function ne(...e) {
104
104
  let a = {};
105
- for (const r of t) r && (a = { ...a, ...r });
105
+ for (const r of e) r && (a = { ...a, ...r });
106
106
  return Object.keys(a).length ? a : void 0;
107
107
  }
108
- function ps(...t) {
109
- return Object.assign({}, ...t);
108
+ function Is(...e) {
109
+ return Object.assign({}, ...e);
110
110
  }
111
- function m(t, ...a) {
112
- let r, n;
113
- const s = { ...t }, o = ps(...a);
114
- for (const l in o) {
115
- let c = s[l];
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), s[l] = c, "className" in i && i.className) {
118
- delete s[l];
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);
111
+ function d(e, ...a) {
112
+ let r, s;
113
+ const n = { ...e }, l = Is(...a);
114
+ for (const o in l) {
115
+ let c = n[o];
116
+ const u = l[o];
117
+ if (u.default !== void 0 && c === void 0 && (c = u.default), u.type === "enum" && ![u.default, ...u.values].includes(c) && !ae(c) && (c = u.default), n[o] = c, "className" in u && u.className) {
118
+ delete n[o];
119
+ const p = "responsive" in u;
120
+ if (!c || ae(c) && !p) continue;
121
+ if (ae(c) && (u.default !== void 0 && c.initial === void 0 && (c.initial = u.default), u.type === "enum" && ([u.default, ...u.values].includes(c.initial) || (c.initial = u.default))), u.type === "enum") {
122
+ const f = se({ allowArbitraryValues: !1, value: c, className: u.className, propValues: u.values, parseValue: u.parseValue });
123
+ r = i(r, f);
124
124
  continue;
125
125
  }
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
- n = ae(n, h), r = u(r, v);
126
+ if (u.type === "string" || u.type === "enum | string") {
127
+ const f = u.type === "string" ? [] : u.values, [h, y] = A({ className: u.className, customProperties: u.customProperties, propValues: f, parseValue: u.parseValue, value: c });
128
+ s = ne(s, y), r = i(r, h);
129
129
  continue;
130
130
  }
131
- if (i.type === "boolean" && c) {
132
- r = u(r, i.className);
131
+ if (u.type === "boolean" && c) {
132
+ r = i(r, u.className);
133
133
  continue;
134
134
  }
135
135
  }
136
136
  }
137
- return s.className = u(r, t.className), s.style = ae(n, t.style), s;
137
+ return n.className = i(r, e.className), n.style = ne(s, e.style), n;
138
138
  }
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: n, asChild: s, as: o = "h1", color: l, ...c } = m(t, ms, f);
141
- return e.createElement($, { "data-accent-color": l, ...c, ref: a, className: u("rt-Heading", n) }, s ? r : e.createElement(o, null, r));
142
- });
143
- we.displayName = "Heading";
144
- const fs = ["span", "div", "label", "p"], gs = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], vs = { as: { type: "enum", values: fs, default: "span" }, ...N, size: { type: "enum", className: "rt-r-size", values: gs, responsive: !0 }, ...me, ...Je, ...$e, ...H, ...G, ...C, ...E }, F = e.forwardRef((t, a) => {
145
- const { children: r, className: n, asChild: s, as: o = "span", color: l, ...c } = m(t, vs, f);
146
- return e.createElement($, { "data-accent-color": l, ...c, ref: a, className: u("rt-Text", n) }, s ? r : e.createElement(o, null, r));
147
- });
148
- F.displayName = "Text";
149
- function Ns(t) {
150
- switch (t) {
139
+ const D = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], g = { m: { type: "enum | string", values: D, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: D, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: D, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: D, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: D, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: D, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: D, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Re = t.forwardRef((e, a) => {
140
+ const { children: r, className: s, asChild: n, as: l = "h1", color: o, ...c } = d(e, zs, g);
141
+ return t.createElement($, { "data-accent-color": o, ...c, ref: a, className: i("rt-Heading", s) }, n ? r : t.createElement(l, null, r));
142
+ });
143
+ Re.displayName = "Heading";
144
+ const ks = ["span", "div", "label", "p"], _s = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Bs = { as: { type: "enum", values: ks, default: "span" }, ...N, size: { type: "enum", className: "rt-r-size", values: _s, responsive: !0 }, ...pe, ...ot, ...we, ...q, ...W, ...C, ...b }, z = t.forwardRef((e, a) => {
145
+ const { children: r, className: s, asChild: n, as: l = "span", color: o, ...c } = d(e, Bs, g);
146
+ return t.createElement($, { "data-accent-color": o, ...c, ref: a, className: i("rt-Text", s) }, n ? r : t.createElement(l, null, r));
147
+ });
148
+ z.displayName = "Text";
149
+ function As(e) {
150
+ switch (e) {
151
151
  case "tomato":
152
152
  case "red":
153
153
  case "ruby":
@@ -182,121 +182,124 @@ function Ns(t) {
182
182
  return "gray";
183
183
  }
184
184
  }
185
- const hs = ["none", "small", "medium", "large", "full"], M = { radius: { type: "enum", values: hs, 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 et() {
188
- const t = e.useContext(ie);
189
- if (t === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
190
- return t;
185
+ const Vs = ["none", "small", "medium", "large", "full"], P = { radius: { type: "enum", values: Vs, default: void 0 } }, M = { hasBackground: { default: !0 }, appearance: { default: "inherit" }, accentColor: { default: "indigo" }, grayColor: { default: "auto" }, panelBackground: { default: "translucent" }, radius: { default: "medium" }, scaling: { default: "100%" } }, K = () => {
186
+ }, de = t.createContext(void 0);
187
+ function it() {
188
+ const e = t.useContext(de);
189
+ if (e === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
190
+ return e;
191
191
  }
192
- const P = e.forwardRef((t, a) => e.useContext(ie) === void 0 ? e.createElement(_e, { delayDuration: 200 }, e.createElement(Ea, { dir: "ltr" }, e.createElement(tt, { ...t, ref: a }))) : e.createElement(Ee, { ...t, ref: a }));
193
- P.displayName = "Theme";
194
- const tt = e.forwardRef((t, a) => {
195
- const { appearance: r = S.appearance.default, accentColor: n = S.accentColor.default, grayColor: s = 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(n);
198
- e.useEffect(() => b(n), [n]);
199
- const [R, g] = e.useState(s);
200
- e.useEffect(() => g(s), [s]);
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
- tt.displayName = "ThemeRoot";
209
- const Ee = e.forwardRef((t, a) => {
210
- const r = e.useContext(ie), { asChild: n, isRoot: s, 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 = n ? $ : "div", Z = i === "auto" ? Ns(c) : i, ce = t.appearance === "light" || t.appearance === "dark", ya = o === void 0 ? s || 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": s ? "true" : "false", "data-accent-color": c, "data-gray-color": Z, "data-has-background": ya ? "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
- 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
- return t;
217
- }, at = (t) => e.createElement(za, { ...t });
218
- at.displayName = "AlertDialog.Root";
219
- const rt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ka, { ...a, ref: r, asChild: !0 }, I(t)));
220
- rt.displayName = "AlertDialog.Trigger";
221
- const st = e.forwardRef(({ align: t, ...a }, r) => {
222
- const { align: n, ...s } = Ye, { className: o } = m({ align: t }, { align: n }), { className: l, forceMount: c, container: i, ...d } = m(a, s);
223
- return e.createElement(xa, { container: i, forceMount: c }, e.createElement(P, { asChild: !0 }, e.createElement(Ta, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, e.createElement(Ma, { ...d, ref: r, className: u("rt-BaseDialogContent", "rt-AlertDialogContent", l) }))))));
224
- });
225
- st.displayName = "AlertDialog.Content";
226
- const nt = e.forwardRef((t, a) => e.createElement(Ia, { asChild: !0 }, e.createElement(we, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
227
- nt.displayName = "AlertDialog.Title";
228
- const ot = e.forwardRef((t, a) => e.createElement(Pa, { asChild: !0 }, e.createElement(F, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
229
- ot.displayName = "AlertDialog.Description";
230
- const lt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Ra, { ...a, ref: r, asChild: !0 }, I(t)));
231
- lt.displayName = "AlertDialog.Action";
232
- const ct = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Sa, { ...a, ref: r, asChild: !0 }, I(t)));
233
- ct.displayName = "AlertDialog.Cancel";
234
- const Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
192
+ const k = t.forwardRef((e, a) => t.useContext(de) === void 0 ? t.createElement(je, { delayDuration: 200 }, t.createElement(Fa, { dir: "ltr" }, t.createElement(ut, { ...e, ref: a }))) : t.createElement(Se, { ...e, ref: a }));
193
+ k.displayName = "Theme";
194
+ const ut = t.forwardRef((e, a) => {
195
+ const { appearance: r = M.appearance.default, accentColor: s = M.accentColor.default, grayColor: n = M.grayColor.default, panelBackground: l = M.panelBackground.default, radius: o = M.radius.default, scaling: c = M.scaling.default, hasBackground: u = M.hasBackground.default, ...p } = e, [f, h] = t.useState(r);
196
+ t.useEffect(() => h(r), [r]);
197
+ const [y, w] = t.useState(s);
198
+ t.useEffect(() => w(s), [s]);
199
+ const [T, v] = t.useState(n);
200
+ t.useEffect(() => v(n), [n]);
201
+ const [_, V] = t.useState(l);
202
+ t.useEffect(() => V(l), [l]);
203
+ const [ce, ie] = t.useState(o);
204
+ t.useEffect(() => ie(o), [o]);
205
+ const [U, ue] = t.useState(c);
206
+ return t.useEffect(() => ue(c), [c]), t.createElement(Se, { ...p, ref: a, isRoot: !0, hasBackground: u, appearance: f, accentColor: y, grayColor: T, panelBackground: _, radius: ce, scaling: U, onAppearanceChange: h, onAccentColorChange: w, onGrayColorChange: v, onPanelBackgroundChange: V, onRadiusChange: ie, onScalingChange: ue });
207
+ });
208
+ ut.displayName = "ThemeRoot";
209
+ const Se = t.forwardRef((e, a) => {
210
+ const r = t.useContext(de), { asChild: s, isRoot: n, hasBackground: l, appearance: o = (r == null ? void 0 : r.appearance) ?? M.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? M.accentColor.default, grayColor: u = (r == null ? void 0 : r.resolvedGrayColor) ?? M.grayColor.default, panelBackground: p = (r == null ? void 0 : r.panelBackground) ?? M.panelBackground.default, radius: f = (r == null ? void 0 : r.radius) ?? M.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? M.scaling.default, onAppearanceChange: y = K, onAccentColorChange: w = K, onGrayColorChange: T = K, onPanelBackgroundChange: v = K, onRadiusChange: _ = K, onScalingChange: V = K, ...ce } = e, ie = s ? $ : "div", U = u === "auto" ? As(c) : u, ue = e.appearance === "light" || e.appearance === "dark", ja = l === void 0 ? n || ue : l;
211
+ return t.createElement(de.Provider, { value: t.useMemo(() => ({ appearance: o, accentColor: c, grayColor: u, resolvedGrayColor: U, panelBackground: p, radius: f, scaling: h, onAppearanceChange: y, onAccentColorChange: w, onGrayColorChange: T, onPanelBackgroundChange: v, onRadiusChange: _, onScalingChange: V }), [o, c, u, U, p, f, h, y, w, T, v, _, V]) }, t.createElement(ie, { "data-is-root-theme": n ? "true" : "false", "data-accent-color": c, "data-gray-color": U, "data-has-background": ja ? "true" : "false", "data-panel-background": p, "data-radius": f, "data-scaling": h, ref: a, ...ce, className: i("radix-themes", { light: o === "light", dark: o === "dark" }, ce.className) }));
212
+ });
213
+ Se.displayName = "ThemeImpl";
214
+ const B = (e) => {
215
+ if (!t.isValidElement(e)) throw Error(`Expected a single React Element child, but got: ${t.Children.toArray(e).map((a) => typeof a == "object" && "type" in a && typeof a.type == "string" ? a.type : typeof a).join(", ")}`);
216
+ return e;
217
+ }, dt = (e) => t.createElement(Ua, { ...e });
218
+ dt.displayName = "AlertDialog.Root";
219
+ const mt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Ja, { ...a, ref: r, asChild: !0 }, B(e)));
220
+ mt.displayName = "AlertDialog.Trigger";
221
+ const pt = t.forwardRef(({ align: e, ...a }, r) => {
222
+ const { align: s, ...n } = nt, { className: l } = d({ align: e }, { align: s }), { className: o, forceMount: c, container: u, ...p } = d(a, n);
223
+ return t.createElement(Ka, { container: u, forceMount: c }, t.createElement(k, { asChild: !0 }, t.createElement(Za, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, t.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, t.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${l}` }, t.createElement(Qa, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-AlertDialogContent", o) }))))));
224
+ });
225
+ pt.displayName = "AlertDialog.Content";
226
+ const ft = t.forwardRef((e, a) => t.createElement(Xa, { asChild: !0 }, t.createElement(Re, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: a })));
227
+ ft.displayName = "AlertDialog.Title";
228
+ const gt = t.forwardRef((e, a) => t.createElement(Ya, { asChild: !0 }, t.createElement(z, { as: "p", size: "3", ...e, asChild: !1, ref: a })));
229
+ gt.displayName = "AlertDialog.Description";
230
+ const ht = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Wa, { ...a, ref: r, asChild: !0 }, B(e)));
231
+ ht.displayName = "AlertDialog.Action";
232
+ const vt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(qa, { ...a, ref: r, asChild: !0 }, B(e)));
233
+ vt.displayName = "AlertDialog.Cancel";
234
+ const sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
235
235
  __proto__: null,
236
- Action: lt,
237
- Cancel: ct,
238
- Content: st,
239
- Description: ot,
240
- Root: at,
241
- Title: nt,
242
- Trigger: rt
243
- }, Symbol.toStringTag, { value: "Module" })), Ml = _a, ys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Cs = ["solid", "soft"], $s = { ...N, size: { type: "enum", className: "rt-r-size", values: ys, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Cs, default: "soft" }, ...re, ...E, ...M, fallback: { type: "ReactNode", required: !0 } };
244
- function Re(t, a) {
245
- const { asChild: r, children: n } = t;
246
- if (!r) return typeof a == "function" ? a(n) : a;
247
- const s = e.Children.only(n);
248
- return e.cloneElement(s, { children: typeof a == "function" ? a(s.props.children) : a });
236
+ Action: ht,
237
+ Cancel: vt,
238
+ Content: pt,
239
+ Description: gt,
240
+ Root: dt,
241
+ Title: ft,
242
+ Trigger: mt
243
+ }, Symbol.toStringTag, { value: "Module" })), nc = er, Ds = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], js = ["solid", "soft"], Ls = { ...N, size: { type: "enum", className: "rt-r-size", values: Ds, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: js, default: "soft" }, ...Q, ...b, ...P, fallback: { type: "ReactNode", required: !0 } };
244
+ function xe(e, a) {
245
+ const { asChild: r, children: s } = e;
246
+ if (!r) return typeof a == "function" ? a(s) : a;
247
+ const n = t.Children.only(s);
248
+ return t.cloneElement(n, { children: typeof a == "function" ? a(n.props.children) : a });
249
249
  }
250
- const bs = e.forwardRef((t, a) => {
251
- const { asChild: r, children: n, className: s, style: o, color: l, radius: c, ...i } = m(t, $s, f);
252
- return e.createElement(Ba, { "data-accent-color": l, "data-radius": c, className: u("rt-reset", "rt-AvatarRoot", s), style: o, asChild: r }, Re({ asChild: r, children: n }, e.createElement(it, { ref: a, ...i })));
253
- });
254
- bs.displayName = "Avatar";
255
- const it = e.forwardRef(({ fallback: t, ...a }, r) => {
256
- const [n, s] = e.useState("idle");
257
- return e.createElement(e.Fragment, null, n === "idle" || n === "loading" ? e.createElement("span", { className: "rt-AvatarFallback" }) : null, n === "error" ? e.createElement(Aa, { 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(Da, { ref: r, className: "rt-AvatarImage", ...a, onLoadingStatusChange: (o) => {
258
- var l;
259
- (l = a.onLoadingStatusChange) == null || l.call(a, o), s(o);
250
+ const Nt = t.forwardRef((e, a) => {
251
+ const { asChild: r, children: s, className: n, style: l, color: o, radius: c, ...u } = d(e, Ls, g);
252
+ return t.createElement(tr, { "data-accent-color": o, "data-radius": c, className: i("rt-reset", "rt-AvatarRoot", n), style: l, asChild: r }, xe({ asChild: r, children: s }, t.createElement(yt, { ref: a, ...u })));
253
+ });
254
+ Nt.displayName = "Avatar";
255
+ const yt = t.forwardRef(({ fallback: e, ...a }, r) => {
256
+ const [s, n] = t.useState("idle");
257
+ return t.createElement(t.Fragment, null, s === "idle" || s === "loading" ? t.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? t.createElement(ar, { className: i("rt-AvatarFallback", { "rt-one-letter": typeof e == "string" && e.length === 1, "rt-two-letters": typeof e == "string" && e.length === 2 }), delayMs: 0 }, e) : null, t.createElement(rr, { ref: r, className: "rt-AvatarImage", ...a, onLoadingStatusChange: (l) => {
258
+ var o;
259
+ (o = a.onLoadingStatusChange) == null || o.call(a, l), n(l);
260
260
  } }));
261
261
  });
262
- it.displayName = "AvatarImpl";
263
- const ws = ["1", "2", "3"], Es = ["solid", "soft", "surface", "outline"], Rs = { ...N, size: { type: "enum", className: "rt-r-size", values: ws, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Es, default: "soft" }, ...re, ...E, ...M }, Ss = e.forwardRef((t, a) => {
264
- const { asChild: r, className: n, color: s, radius: o, ...l } = m(t, Rs, f), c = r ? $ : "span";
265
- return e.createElement(c, { "data-accent-color": s, "data-radius": o, ...l, ref: a, className: u("rt-reset", "rt-Badge", n) });
266
- });
267
- Ss.displayName = "Badge";
268
- const xs = e.forwardRef((t, a) => {
269
- const { asChild: r, children: n, className: s, ...o } = t, l = r ? $ : "blockquote";
270
- return e.createElement(F, { asChild: !0, ...o, ref: a, className: u("rt-Blockquote", s) }, e.createElement(l, null, n));
271
- });
272
- xs.displayName = "Blockquote";
273
- const Se = $, Ts = ["div", "span"], Ms = ["none", "inline", "inline-block", "block", "contents"], Ps = { as: { type: "enum", values: Ts, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Ms, 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"], zs = ["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"], Is = ["0", "1"], ks = ["0", "1"], se = { ...ee, ...w, ...K, position: { type: "enum", className: "rt-r-position", values: zs, 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: Is, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: ks, 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 } }, ut = e.forwardRef((t, a) => {
274
- const { className: r, asChild: n, as: s = "div", ...o } = m(t, Ps, se, f);
275
- return e.createElement(n ? Se : s, { ...o, ref: a, className: u("rt-Box", r) });
276
- });
277
- ut.displayName = "Box";
278
- const _s = ["1", "2", "3", "4"], Bs = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ie = { ...N, size: { type: "enum", className: "rt-r-size", values: _s, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Bs, default: "solid" }, ...re, ...E, ...M, loading: { type: "boolean", className: "rt-loading", default: !1 } }, ge = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], mt = { 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 } }, As = ["div", "span"], Ds = ["none", "inline-flex", "flex"], Vs = ["row", "column", "row-reverse", "column-reverse"], js = ["start", "center", "end", "baseline", "stretch"], Os = ["start", "center", "end", "between"], Ls = ["nowrap", "wrap", "wrap-reverse"], dt = { as: { type: "enum", values: As, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Ds, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: Vs, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: js, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Os, parseValue: Gs, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Ls, responsive: !0 }, ...mt };
279
- function Gs(t) {
280
- return t === "between" ? "space-between" : t;
262
+ yt.displayName = "AvatarImpl";
263
+ const Os = ["1", "2", "3"], Hs = ["solid", "soft", "surface", "outline"], Gs = { ...N, size: { type: "enum", className: "rt-r-size", values: Os, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Hs, default: "soft" }, ...Q, ...b, ...P }, Fs = t.forwardRef((e, a) => {
264
+ const { asChild: r, className: s, color: n, radius: l, ...o } = d(e, Gs, g), c = r ? $ : "span";
265
+ return t.createElement(c, { "data-accent-color": n, "data-radius": l, ...o, ref: a, className: i("rt-reset", "rt-Badge", s) });
266
+ });
267
+ Fs.displayName = "Badge";
268
+ const Ws = t.forwardRef((e, a) => {
269
+ const { asChild: r, children: s, className: n, ...l } = e, o = r ? $ : "blockquote";
270
+ return t.createElement(z, { asChild: !0, ...l, ref: a, className: i("rt-Blockquote", n) }, t.createElement(o, null, s));
271
+ });
272
+ Ws.displayName = "Blockquote";
273
+ const Te = $, qs = ["div", "span"], Ks = ["none", "inline", "inline-block", "block", "contents"], Zs = { as: { type: "enum", values: qs, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Ks, responsive: !0 } }, j = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], re = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: j, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: j, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: j, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: j, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: j, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: j, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: j, responsive: !0 } }, he = ["visible", "hidden", "clip", "scroll", "auto"], Qs = ["static", "relative", "absolute", "fixed", "sticky"], X = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Ys = ["0", "1"], Us = ["0", "1"], le = { ...re, ...R, ...Z, position: { type: "enum", className: "rt-r-position", values: Qs, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: X, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: X, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: X, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: X, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: X, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: he, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: he, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: he, 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: Ys, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: Us, 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 } }, Y = t.forwardRef((e, a) => {
274
+ const { className: r, asChild: s, as: n = "div", ...l } = d(e, Zs, le, g);
275
+ return t.createElement(s ? Te : n, { ...l, ref: a, className: i("rt-Box", r) });
276
+ });
277
+ Y.displayName = "Box";
278
+ const Xs = ["1", "2", "3", "4"], Js = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ae = { ...N, size: { type: "enum", className: "rt-r-size", values: Xs, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Js, default: "solid" }, ...Q, ...b, ...P, loading: { type: "boolean", className: "rt-loading", default: !1 } }, ve = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Ct = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: ve, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: ve, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: ve, responsive: !0 } }, en = ["div", "span"], tn = ["none", "inline-flex", "flex"], an = ["row", "column", "row-reverse", "column-reverse"], rn = ["start", "center", "end", "baseline", "stretch"], sn = ["start", "center", "end", "between"], nn = ["nowrap", "wrap", "wrap-reverse"], $t = { as: { type: "enum", values: en, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: tn, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: an, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: rn, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: sn, parseValue: ln, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: nn, responsive: !0 }, ...Ct };
279
+ function ln(e) {
280
+ return e === "between" ? "space-between" : e;
281
+ }
282
+ const S = t.forwardRef((e, a) => {
283
+ const { className: r, asChild: s, as: n = "div", ...l } = d(e, $t, le, g);
284
+ return t.createElement(s ? Te : n, { ...l, ref: a, className: i("rt-Flex", r) });
285
+ });
286
+ S.displayName = "Flex";
287
+ const on = ["1", "2", "3"], cn = { size: { type: "enum", className: "rt-r-size", values: on, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, bt = t.forwardRef((e, a) => {
288
+ const { className: r, children: s, loading: n, ...l } = d(e, cn, g);
289
+ if (!n) return s;
290
+ const o = t.createElement("span", { ...l, ref: a, className: i("rt-Spinner", r) }, t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }));
291
+ return s === void 0 ? o : t.createElement(S, { asChild: !0, position: "relative", align: "center", justify: "center" }, t.createElement("span", null, t.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), t.createElement(S, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, t.createElement("span", null, o))));
292
+ });
293
+ bt.displayName = "Spinner";
294
+ const un = sr;
295
+ function wt(e, a) {
296
+ if (e !== void 0) return typeof e == "string" ? a(e) : Object.fromEntries(Object.entries(e).map(([r, s]) => [r, a(s)]));
281
297
  }
282
- const ue = e.forwardRef((t, a) => {
283
- const { className: r, asChild: n, as: s = "div", ...o } = m(t, dt, se, f);
284
- return e.createElement(n ? Se : s, { ...o, ref: a, className: u("rt-Flex", r) });
285
- });
286
- ue.displayName = "Flex";
287
- const Hs = ["1", "2", "3"], Fs = { size: { type: "enum", className: "rt-r-size", values: Hs, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, pt = e.forwardRef((t, a) => {
288
- const { className: r, children: n, loading: s, ...o } = m(t, Fs, f);
289
- if (!s) return n;
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 n === 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 }, n), e.createElement(ue, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, l))));
292
- });
293
- pt.displayName = "Spinner";
294
- const Ws = Va;
295
- function qs(t, a) {
296
- if (t !== void 0) return typeof t == "string" ? a(t) : Object.fromEntries(Object.entries(t).map(([r, n]) => [r, a(n)]));
298
+ function dn(e) {
299
+ return e === "3" ? "3" : "2";
297
300
  }
298
- function Ks(t) {
299
- switch (t) {
301
+ function mn(e) {
302
+ switch (e) {
300
303
  case "1":
301
304
  return "1";
302
305
  case "2":
@@ -306,550 +309,571 @@ function Ks(t) {
306
309
  return "3";
307
310
  }
308
311
  }
309
- const xe = e.forwardRef((t, a) => {
310
- const { size: r = Ie.size.default } = t, { className: n, children: s, 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", n), disabled: i }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, s), e.createElement(Ws, null, s), e.createElement(ue, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(pt, { size: qs(r, Ks) })))) : s);
312
- });
313
- xe.displayName = "BaseButton";
314
- const Zs = e.forwardRef(({ className: t, ...a }, r) => e.createElement(xe, { ...a, ref: r, className: u("rt-Button", t) }));
315
- Zs.displayName = "Button";
316
- const Qs = ["1", "2", "3", "4", "5"], Ys = ["surface", "classic", "ghost"], Xs = { ...N, size: { type: "enum", className: "rt-r-size", values: Qs, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ys, default: "surface" } }, Js = e.forwardRef((t, a) => {
317
- const { asChild: r, className: n, ...s } = m(t, Xs, f), o = r ? $ : "div";
318
- return e.createElement(o, { ref: a, ...s, className: u("rt-reset", "rt-BaseCard", "rt-Card", n) });
319
- });
320
- Js.displayName = "Card";
321
- const Us = ["div", "span"], en = ["none", "inline-grid", "grid"], tn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], an = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], rn = ["row", "column", "dense", "row-dense", "column-dense"], sn = ["start", "center", "end", "baseline", "stretch"], nn = ["start", "center", "end", "between"], ft = { as: { type: "enum", values: Us, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: en, 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: tn, parseValue: ke, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: an, parseValue: ke, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: rn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: sn, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: nn, parseValue: on, responsive: !0 }, ...mt };
322
- function ke(t) {
323
- return ft.columns.values.includes(t) ? t : t != null && t.match(/^\d+$/) ? `repeat(${t}, minmax(0, 1fr))` : t;
312
+ const Me = t.forwardRef((e, a) => {
313
+ const { size: r = Ae.size.default } = e, { className: s, children: n, asChild: l, color: o, radius: c, disabled: u = e.loading, ...p } = d(e, Ae, g), f = l ? $ : "button";
314
+ return t.createElement(f, { "data-disabled": u || void 0, "data-accent-color": o, "data-radius": c, ...p, ref: a, className: i("rt-reset", "rt-BaseButton", s), disabled: u }, e.loading ? t.createElement(t.Fragment, null, t.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, n), t.createElement(un, null, n), t.createElement(S, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, t.createElement("span", null, t.createElement(bt, { size: wt(r, mn) })))) : n);
315
+ });
316
+ Me.displayName = "BaseButton";
317
+ const Et = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Me, { ...a, ref: r, className: i("rt-Button", e) }));
318
+ Et.displayName = "Button";
319
+ const pn = ["1", "2", "3"], fn = ["soft", "surface", "outline"], Ve = { ...N, size: { type: "enum", className: "rt-r-size", values: pn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: fn, default: "soft" }, ...Q, ...b }, Rt = t.createContext({}), St = t.forwardRef((e, a) => {
320
+ const { size: r = Ve.size.default } = e, { asChild: s, children: n, className: l, color: o, ...c } = d(e, Ve, g), u = s ? $ : "div";
321
+ return t.createElement(u, { "data-accent-color": o, ...c, className: i("rt-CalloutRoot", l), ref: a }, t.createElement(Rt.Provider, { value: t.useMemo(() => ({ size: r }), [r]) }, n));
322
+ });
323
+ St.displayName = "Callout.Root";
324
+ const xt = t.forwardRef(({ className: e, ...a }, r) => t.createElement("div", { ...a, className: i("rt-CalloutIcon", e), ref: r }));
325
+ xt.displayName = "Callout.Icon";
326
+ const Tt = t.forwardRef(({ className: e, ...a }, r) => {
327
+ const { size: s } = t.useContext(Rt);
328
+ return t.createElement(z, { as: "p", size: wt(s, dn), ...a, asChild: !1, ref: r, className: i("rt-CalloutText", e) });
329
+ });
330
+ Tt.displayName = "Callout.Text";
331
+ const gn = ["1", "2", "3", "4", "5"], hn = ["surface", "classic", "ghost"], vn = { ...N, size: { type: "enum", className: "rt-r-size", values: gn, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hn, default: "surface" } }, Mt = t.forwardRef((e, a) => {
332
+ const { asChild: r, className: s, ...n } = d(e, vn, g), l = r ? $ : "div";
333
+ return t.createElement(l, { ref: a, ...n, className: i("rt-reset", "rt-BaseCard", "rt-Card", s) });
334
+ });
335
+ Mt.displayName = "Card";
336
+ const Nn = ["div", "span"], yn = ["none", "inline-grid", "grid"], Cn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $n = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], bn = ["row", "column", "dense", "row-dense", "column-dense"], wn = ["start", "center", "end", "baseline", "stretch"], En = ["start", "center", "end", "between"], me = { as: { type: "enum", values: Nn, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: yn, 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: Cn, parseValue: De, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: $n, parseValue: De, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: bn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: wn, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: En, parseValue: Rn, responsive: !0 }, ...Ct };
337
+ function De(e) {
338
+ return me.columns.values.includes(e) ? e : e != null && e.match(/^\d+$/) ? `repeat(${e}, minmax(0, 1fr))` : e;
324
339
  }
325
- function on(t) {
326
- return t === "between" ? "space-between" : t;
340
+ function Rn(e) {
341
+ return e === "between" ? "space-between" : e;
327
342
  }
328
- const ln = ["1", "2", "3"], cn = ["classic", "surface", "soft"], un = { size: { type: "enum", className: "rt-r-size", values: ln, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: cn, default: "surface" }, ...C, ...E }, mn = e.forwardRef((t, a) => {
329
- const { className: r, asChild: n, as: s = "div", ...o } = m(t, ft, se, f);
330
- return e.createElement(n ? Se : s, { ...o, ref: a, className: u("rt-Grid", r) });
331
- });
332
- mn.displayName = "Grid";
333
- const gt = 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
- gt.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 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", { 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
- vt.displayName = "ChevronDownIcon";
339
- 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", { 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
- Nt.displayName = "ThickChevronRightIcon";
341
- const dn = e.forwardRef((t, a) => {
342
- const { className: r, color: n, checked: s, defaultChecked: o, onCheckedChange: l, ...c } = m(t, un, f), [i, d] = ja({ prop: s, defaultProp: o, onChange: l });
343
- return e.createElement(Oa, { "data-accent-color": n, ...c, defaultChecked: o, checked: i, onCheckedChange: d, asChild: !1, ref: a, className: u("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, e.createElement(La, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, e.createElement(i === "indeterminate" ? gt : ne, null)));
344
- });
345
- dn.displayName = "Checkbox";
346
- const pn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], fn = ["solid", "soft", "outline", "ghost"], gn = { ...N, size: { type: "enum", className: "rt-r-size", values: pn, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: fn, default: "soft" }, ...me, ...re, ...E, ...H, ...G }, vn = e.forwardRef((t, a) => {
347
- const { asChild: r, className: n, color: s, ...o } = m(t, gn, f), l = t.variant === "ghost" ? s || void 0 : s, c = r ? $ : "code";
348
- return e.createElement(c, { "data-accent-color": l, ...o, ref: a, className: u("rt-reset", "rt-Code", n) });
349
- });
350
- vn.displayName = "Code";
351
- const Nn = ["1", "2", "3", "4"], hn = ["none", "initial"], yn = ["left", "center", "right"], Cn = { ...N, size: { type: "enum", className: "rt-r-size", values: Nn, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: hn, parseValue: $n, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: yn, parseValue: bn, responsive: !0 } };
352
- function $n(t) {
353
- return t === "initial" ? "flex" : t;
343
+ const Sn = ["1", "2", "3"], xn = ["classic", "surface", "soft"], Tn = { size: { type: "enum", className: "rt-r-size", values: Sn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: xn, default: "surface" }, ...C, ...b }, zt = t.forwardRef((e, a) => {
344
+ const { className: r, asChild: s, as: n = "div", ...l } = d(e, me, le, g);
345
+ return t.createElement(s ? Te : n, { ...l, ref: a, className: i("rt-Grid", r) });
346
+ });
347
+ zt.displayName = "Grid";
348
+ const Pt = x.forwardRef((e, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, 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" })));
349
+ Pt.displayName = "ThickDividerHorizontalIcon";
350
+ const oe = x.forwardRef((e, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, 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" })));
351
+ oe.displayName = "ThickCheckIcon";
352
+ const It = x.forwardRef((e, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, 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" })));
353
+ It.displayName = "ChevronDownIcon";
354
+ const kt = x.forwardRef((e, a) => x.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, 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" })));
355
+ kt.displayName = "ThickChevronRightIcon";
356
+ const Mn = t.forwardRef((e, a) => {
357
+ const { className: r, color: s, checked: n, defaultChecked: l, onCheckedChange: o, ...c } = d(e, Tn, g), [u, p] = Le({ prop: n, defaultProp: l, onChange: o });
358
+ return t.createElement(nr, { "data-accent-color": s, ...c, defaultChecked: l, checked: u, onCheckedChange: p, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, t.createElement(lr, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, t.createElement(u === "indeterminate" ? Pt : oe, null)));
359
+ });
360
+ Mn.displayName = "Checkbox";
361
+ const zn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Pn = ["solid", "soft", "outline", "ghost"], In = { ...N, size: { type: "enum", className: "rt-r-size", values: zn, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Pn, default: "soft" }, ...pe, ...Q, ...b, ...q, ...W }, kn = t.forwardRef((e, a) => {
362
+ const { asChild: r, className: s, color: n, ...l } = d(e, In, g), o = e.variant === "ghost" ? n || void 0 : n, c = r ? $ : "code";
363
+ return t.createElement(c, { "data-accent-color": o, ...l, ref: a, className: i("rt-reset", "rt-Code", s) });
364
+ });
365
+ kn.displayName = "Code";
366
+ const _n = ["1", "2", "3", "4"], Bn = ["none", "initial"], An = ["left", "center", "right"], Vn = { ...N, size: { type: "enum", className: "rt-r-size", values: _n, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Bn, parseValue: Dn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: An, parseValue: jn, responsive: !0 } };
367
+ function Dn(e) {
368
+ return e === "initial" ? "flex" : e;
354
369
  }
355
- function bn(t) {
356
- return t === "left" ? "start" : t === "right" ? "end" : t;
370
+ function jn(e) {
371
+ return e === "left" ? "start" : e === "right" ? "end" : e;
357
372
  }
358
- const wn = e.forwardRef(({ width: t, minWidth: a, maxWidth: r, height: n, minHeight: s, maxHeight: o, ...l }, c) => {
359
- const { asChild: i, children: d, className: p, ...v } = m(l, Cn, se, f), { className: h, style: b } = m({ width: t, minWidth: a, maxWidth: r, height: n, minHeight: s, 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
- wn.displayName = "Container";
363
- const En = ["1", "2", "3"], Y = { ...N, size: { values: En, default: "1" }, ...M, scrollbars: { default: "both" } };
364
- function Rn(t) {
365
- const { m: a, mx: r, my: n, mt: s, mr: o, mb: l, ml: c, ...i } = t;
366
- return { m: a, mx: r, my: n, mt: s, mr: o, mb: l, ml: c, rest: i };
373
+ const Ln = t.forwardRef(({ width: e, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: l, ...o }, c) => {
374
+ const { asChild: u, children: p, className: f, ...h } = d(o, Vn, le, g), { className: y, style: w } = d({ width: e, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: l }, R, Z), T = u ? $ : "div";
375
+ return t.createElement(T, { ...h, ref: c, className: i("rt-Container", f) }, xe({ asChild: u, children: p }, (v) => t.createElement("div", { className: i("rt-ContainerInner", y), style: w }, v)));
376
+ });
377
+ Ln.displayName = "Container";
378
+ const On = ["1", "2", "3"], J = { ...N, size: { values: On, default: "1" }, ...P, scrollbars: { default: "both" } };
379
+ function Hn(e) {
380
+ const { m: a, mx: r, my: s, mt: n, mr: l, mb: o, ml: c, ...u } = e;
381
+ return { m: a, mx: r, my: s, mt: n, mr: l, mb: o, ml: c, rest: u };
367
382
  }
368
- const D = f.m.values;
369
- function Sn(t) {
370
- const [a, r] = k({ className: "rt-r-m", customProperties: ["--margin"], propValues: D, value: t.m }), [n, s] = 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, n, o, c, d, v, b), ae(r, s, l, i, p, h, R)];
383
+ const L = g.m.values;
384
+ function Gn(e) {
385
+ const [a, r] = A({ className: "rt-r-m", customProperties: ["--margin"], propValues: L, value: e.m }), [s, n] = A({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: L, value: e.mx }), [l, o] = A({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: L, value: e.my }), [c, u] = A({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: L, value: e.mt }), [p, f] = A({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: L, value: e.mr }), [h, y] = A({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: L, value: e.mb }), [w, T] = A({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: L, value: e.ml });
386
+ return [i(a, s, l, c, p, h, w), ne(r, n, o, u, f, y, T)];
372
387
  }
373
- const de = e.forwardRef((t, a) => {
374
- const { rest: r, ...n } = Rn(t), [s, o] = Sn(n), { 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(Be, { type: p, scrollHideDelay: v, className: u("rt-ScrollAreaRoot", s, i), style: ae(o, d), asChild: l }, Re({ asChild: l, children: c }, (_) => e.createElement(e.Fragment, null, e.createElement(Ae, { ...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(Ga, { className: "rt-ScrollAreaCorner" }) : null)));
376
- });
377
- de.displayName = "ScrollArea";
378
- const xn = ["1", "2"], Tn = ["solid", "soft"], X = { size: { type: "enum", className: "rt-r-size", values: xn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Tn, default: "solid" }, ...C, ...E }, Mn = { ...N, ...C }, Pn = { ...C }, zn = { ...C }, ht = (t) => e.createElement(Ya, { ...t });
379
- ht.displayName = "ContextMenu.Root";
380
- const yt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(tr, { ...a, ref: r, asChild: !0 }, I(t)));
381
- yt.displayName = "ContextMenu.Trigger";
382
- const Ct = e.createContext({}), $t = e.forwardRef((t, a) => {
383
- const r = et(), { size: n = X.size.default, variant: s = 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(Ve, { container: d, forceMount: p }, e.createElement(P, { asChild: !0 }, e.createElement(Fa, { "data-accent-color": h, alignOffset: -Number(n) * 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(Ct.Provider, { value: e.useMemo(() => ({ size: n, variant: s, color: h, highContrast: o }), [n, s, h, o]) }, c))))));
385
- });
386
- $t.displayName = "ContextMenu.Content";
387
- const bt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ka, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuLabel", "rt-ContextMenuLabel", t) }));
388
- bt.displayName = "ContextMenu.Label";
389
- const wt = e.forwardRef((t, a) => {
390
- const { className: r, children: n, color: s = Mn.color.default, shortcut: o, ...l } = t;
391
- return e.createElement(qa, { "data-accent-color": s, ...l, ref: a, className: u("rt-reset", "rt-BaseMenuItem", "rt-ContextMenuItem", r) }, e.createElement(Ce, null, n), o && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, o));
392
- });
393
- wt.displayName = "ContextMenu.Item";
394
- const Et = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Wa, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuGroup", "rt-ContextMenuGroup", t) }));
395
- Et.displayName = "ContextMenu.Group";
396
- const Rt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Za, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuRadioGroup", "rt-ContextMenuRadioGroup", t) }));
397
- Rt.displayName = "ContextMenu.RadioGroup";
398
- const St = e.forwardRef((t, a) => {
399
- const { children: r, className: n, color: s = zn.color.default, ...o } = t;
400
- return e.createElement(Qa, { ...o, asChild: !1, ref: a, "data-accent-color": s, className: u("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-ContextMenuItem", "rt-ContextMenuRadioItem", n) }, e.createElement(Ce, null, r), e.createElement(De, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(ne, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })));
401
- });
402
- St.displayName = "ContextMenu.RadioItem";
403
- const xt = e.forwardRef((t, a) => {
404
- const { children: r, className: n, shortcut: s, color: o = Pn.color.default, ...l } = t;
405
- return e.createElement(Ha, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: u("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-ContextMenuItem", "rt-ContextMenuCheckboxItem", n) }, e.createElement(Ce, null, r), e.createElement(De, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(ne, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), s && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, s));
406
- });
407
- xt.displayName = "ContextMenu.CheckboxItem";
408
- const Tt = (t) => e.createElement(Ja, { ...t });
409
- Tt.displayName = "ContextMenu.Sub";
410
- const Mt = e.forwardRef((t, a) => {
411
- const { className: r, children: n, ...s } = t;
412
- return e.createElement(er, { ...s, asChild: !1, ref: a, className: u("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-ContextMenuItem", "rt-ContextMenuSubTrigger", r) }, n, e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, e.createElement(Nt, { className: "rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon" })));
413
- });
414
- Mt.displayName = "ContextMenu.SubTrigger";
415
- const Pt = e.forwardRef((t, a) => {
416
- const { size: r, variant: n, color: s, highContrast: o } = e.useContext(Ct), { className: l, children: c, container: i, forceMount: d, ...p } = m({ size: r, variant: n, color: s, highContrast: o, ...t }, X);
417
- return e.createElement(Ve, { container: i, forceMount: d }, e.createElement(P, { asChild: !0 }, e.createElement(Ua, { "data-accent-color": s, 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)))));
418
- });
419
- Pt.displayName = "ContextMenu.SubContent";
420
- const zt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Xa, { ...a, asChild: !1, ref: r, className: u("rt-BaseMenuSeparator", "rt-ContextMenuSeparator", t) }));
421
- zt.displayName = "ContextMenu.Separator";
422
- const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
388
+ const fe = t.forwardRef((e, a) => {
389
+ const { rest: r, ...s } = Hn(e), [n, l] = Gn(s), { asChild: o, children: c, className: u, style: p, type: f, scrollHideDelay: h = f !== "scroll" ? 0 : void 0, dir: y, size: w = J.size.default, radius: T = J.radius.default, scrollbars: v = J.scrollbars.default, ..._ } = r;
390
+ return t.createElement(Oe, { type: f, scrollHideDelay: h, className: i("rt-ScrollAreaRoot", n, u), style: ne(l, p), asChild: o }, xe({ asChild: o, children: c }, (V) => t.createElement(t.Fragment, null, t.createElement(He, { ..._, ref: a, className: "rt-ScrollAreaViewport" }, V), t.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), v !== "vertical" ? t.createElement(ye, { "data-radius": T, orientation: "horizontal", className: i("rt-ScrollAreaScrollbar", se({ className: "rt-r-size", value: w, propValues: J.size.values })) }, t.createElement(Ce, { className: "rt-ScrollAreaThumb" })) : null, v !== "horizontal" ? t.createElement(ye, { "data-radius": T, orientation: "vertical", className: i("rt-ScrollAreaScrollbar", se({ className: "rt-r-size", value: w, propValues: J.size.values })) }, t.createElement(Ce, { className: "rt-ScrollAreaThumb" })) : null, v === "both" ? t.createElement(or, { className: "rt-ScrollAreaCorner" }) : null)));
391
+ });
392
+ fe.displayName = "ScrollArea";
393
+ const Fn = ["1", "2"], Wn = ["solid", "soft"], ee = { size: { type: "enum", className: "rt-r-size", values: Fn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Wn, default: "solid" }, ...C, ...b }, qn = { ...N, ...C }, Kn = { ...C }, Zn = { ...C }, _t = (e) => t.createElement(gr, { ...e });
394
+ _t.displayName = "ContextMenu.Root";
395
+ const Bt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Cr, { ...a, ref: r, asChild: !0 }, B(e)));
396
+ Bt.displayName = "ContextMenu.Trigger";
397
+ const At = t.createContext({}), Vt = t.forwardRef((e, a) => {
398
+ const r = it(), { size: s = ee.size.default, variant: n = ee.variant.default, highContrast: l = ee.highContrast.default } = e, { className: o, children: c, color: u, container: p, forceMount: f, ...h } = d(e, ee), y = u || r.accentColor;
399
+ return t.createElement(Fe, { container: p, forceMount: f }, t.createElement(k, { asChild: !0 }, t.createElement(ir, { "data-accent-color": y, alignOffset: -Number(s) * 4, collisionPadding: 10, ...h, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-ContextMenuContent", o) }, t.createElement(fe, { type: "auto" }, t.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, t.createElement(At.Provider, { value: t.useMemo(() => ({ size: s, variant: n, color: y, highContrast: l }), [s, n, y, l]) }, c))))));
400
+ });
401
+ Vt.displayName = "ContextMenu.Content";
402
+ const Dt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(mr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuLabel", "rt-ContextMenuLabel", e) }));
403
+ Dt.displayName = "ContextMenu.Label";
404
+ const jt = t.forwardRef((e, a) => {
405
+ const { className: r, children: s, color: n = qn.color.default, shortcut: l, ...o } = e;
406
+ return t.createElement(dr, { "data-accent-color": n, ...o, ref: a, className: i("rt-reset", "rt-BaseMenuItem", "rt-ContextMenuItem", r) }, t.createElement(be, null, s), l && t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, l));
407
+ });
408
+ jt.displayName = "ContextMenu.Item";
409
+ const Lt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(ur, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuGroup", "rt-ContextMenuGroup", e) }));
410
+ Lt.displayName = "ContextMenu.Group";
411
+ const Ot = t.forwardRef(({ className: e, ...a }, r) => t.createElement(pr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuRadioGroup", "rt-ContextMenuRadioGroup", e) }));
412
+ Ot.displayName = "ContextMenu.RadioGroup";
413
+ const Ht = t.forwardRef((e, a) => {
414
+ const { children: r, className: s, color: n = Zn.color.default, ...l } = e;
415
+ return t.createElement(fr, { ...l, asChild: !1, ref: a, "data-accent-color": n, className: i("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-ContextMenuItem", "rt-ContextMenuRadioItem", s) }, t.createElement(be, null, r), t.createElement(Ge, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, t.createElement(oe, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })));
416
+ });
417
+ Ht.displayName = "ContextMenu.RadioItem";
418
+ const Gt = t.forwardRef((e, a) => {
419
+ const { children: r, className: s, shortcut: n, color: l = Kn.color.default, ...o } = e;
420
+ return t.createElement(cr, { ...o, asChild: !1, ref: a, "data-accent-color": l, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-ContextMenuItem", "rt-ContextMenuCheckboxItem", s) }, t.createElement(be, null, r), t.createElement(Ge, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, t.createElement(oe, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, n));
421
+ });
422
+ Gt.displayName = "ContextMenu.CheckboxItem";
423
+ const Ft = (e) => t.createElement(vr, { ...e });
424
+ Ft.displayName = "ContextMenu.Sub";
425
+ const Wt = t.forwardRef((e, a) => {
426
+ const { className: r, children: s, ...n } = e;
427
+ return t.createElement(yr, { ...n, asChild: !1, ref: a, className: i("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-ContextMenuItem", "rt-ContextMenuSubTrigger", r) }, s, t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, t.createElement(kt, { className: "rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon" })));
428
+ });
429
+ Wt.displayName = "ContextMenu.SubTrigger";
430
+ const qt = t.forwardRef((e, a) => {
431
+ const { size: r, variant: s, color: n, highContrast: l } = t.useContext(At), { className: o, children: c, container: u, forceMount: p, ...f } = d({ size: r, variant: s, color: n, highContrast: l, ...e }, ee);
432
+ return t.createElement(Fe, { container: u, forceMount: p }, t.createElement(k, { asChild: !0 }, t.createElement(Nr, { "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-ContextMenuContent", "rt-ContextMenuSubContent", o) }, t.createElement(fe, { type: "auto" }, t.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, c)))));
433
+ });
434
+ qt.displayName = "ContextMenu.SubContent";
435
+ const Kt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(hr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuSeparator", "rt-ContextMenuSeparator", e) }));
436
+ Kt.displayName = "ContextMenu.Separator";
437
+ const lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
423
438
  __proto__: null,
424
- CheckboxItem: xt,
425
- Content: $t,
426
- Group: Et,
427
- Item: wt,
428
- Label: bt,
429
- RadioGroup: Rt,
430
- RadioItem: St,
431
- Root: ht,
432
- Separator: zt,
433
- Sub: Tt,
434
- SubContent: Pt,
435
- SubTrigger: Mt,
436
- Trigger: yt
437
- }, Symbol.toStringTag, { value: "Module" })), It = (t) => e.createElement(lr, { ...t, modal: !0 });
438
- It.displayName = "Dialog.Root";
439
- const kt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ir, { ...a, ref: r, asChild: !0 }, I(t)));
440
- kt.displayName = "Dialog.Trigger";
441
- const _t = e.forwardRef(({ align: t, ...a }, r) => {
442
- const { align: n, ...s } = Ye, { className: o } = m({ align: t }, { align: n }), { className: l, forceMount: c, container: i, ...d } = m(a, s);
443
- return e.createElement(rr, { container: i, forceMount: c }, e.createElement(P, { asChild: !0 }, e.createElement(sr, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, e.createElement(nr, { ...d, ref: r, className: u("rt-BaseDialogContent", "rt-DialogContent", l) }))))));
444
- });
445
- _t.displayName = "Dialog.Content";
446
- const Bt = e.forwardRef((t, a) => e.createElement(cr, { asChild: !0 }, e.createElement(we, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
447
- Bt.displayName = "Dialog.Title";
448
- const At = e.forwardRef((t, a) => e.createElement(or, { asChild: !0 }, e.createElement(F, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
449
- At.displayName = "Dialog.Description";
450
- const Dt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ar, { ...a, ref: r, asChild: !0 }, I(t)));
451
- Dt.displayName = "Dialog.Close";
452
- const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
+ CheckboxItem: Gt,
440
+ Content: Vt,
441
+ Group: Lt,
442
+ Item: jt,
443
+ Label: Dt,
444
+ RadioGroup: Ot,
445
+ RadioItem: Ht,
446
+ Root: _t,
447
+ Separator: Kt,
448
+ Sub: Ft,
449
+ SubContent: qt,
450
+ SubTrigger: Wt,
451
+ Trigger: Bt
452
+ }, Symbol.toStringTag, { value: "Module" })), Zt = (e) => t.createElement(Sr, { ...e, modal: !0 });
453
+ Zt.displayName = "Dialog.Root";
454
+ const Qt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Tr, { ...a, ref: r, asChild: !0 }, B(e)));
455
+ Qt.displayName = "Dialog.Trigger";
456
+ const Yt = t.forwardRef(({ align: e, ...a }, r) => {
457
+ const { align: s, ...n } = nt, { className: l } = d({ align: e }, { align: s }), { className: o, forceMount: c, container: u, ...p } = d(a, n);
458
+ return t.createElement(br, { container: u, forceMount: c }, t.createElement(k, { asChild: !0 }, t.createElement(wr, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, t.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, t.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${l}` }, t.createElement(Er, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-DialogContent", o) }))))));
459
+ });
460
+ Yt.displayName = "Dialog.Content";
461
+ const Ut = t.forwardRef((e, a) => t.createElement(xr, { asChild: !0 }, t.createElement(Re, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: a })));
462
+ Ut.displayName = "Dialog.Title";
463
+ const Xt = t.forwardRef((e, a) => t.createElement(Rr, { asChild: !0 }, t.createElement(z, { as: "p", size: "3", ...e, asChild: !1, ref: a })));
464
+ Xt.displayName = "Dialog.Description";
465
+ const Jt = t.forwardRef(({ children: e, ...a }, r) => t.createElement($r, { ...a, ref: r, asChild: !0 }, B(e)));
466
+ Jt.displayName = "Dialog.Close";
467
+ const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
453
468
  __proto__: null,
454
- Close: Dt,
455
- Content: _t,
456
- Description: At,
457
- Root: It,
458
- Title: Bt,
459
- Trigger: kt
460
- }, Symbol.toStringTag, { value: "Module" })), In = { ...N, ...H, ...G }, kn = e.forwardRef((t, a) => {
461
- const { asChild: r, className: n, ...s } = m(t, In), o = r ? $ : "em";
462
- return e.createElement(o, { ...s, ref: a, className: u("rt-Em", n) });
463
- });
464
- kn.displayName = "Em";
465
- const _n = ["1", "2", "3"], Bn = { ...N, size: { type: "enum", className: "rt-r-size", values: _n, default: "2", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "480px" }, ...K }, Vt = (t) => e.createElement(dr, { closeDelay: 150, openDelay: 200, ...t });
466
- Vt.displayName = "HoverCard.Root";
467
- const jt = e.forwardRef(({ children: t, className: a, ...r }, n) => e.createElement(pr, { ref: n, className: u("rt-HoverCardTrigger", a), ...r, asChild: !0 }, I(t)));
468
- jt.displayName = "HoverCard.Trigger";
469
- const Ot = e.forwardRef((t, a) => {
470
- const { className: r, forceMount: n, container: s, ...o } = m(t, Bn);
471
- return e.createElement(ur, { container: s, forceMount: n }, e.createElement(P, { asChild: !0 }, e.createElement(mr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: u("rt-PopperContent", "rt-HoverCardContent", r) })));
472
- });
473
- Ot.displayName = "HoverCard.Content";
474
- const Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
+ Close: Jt,
470
+ Content: Yt,
471
+ Description: Xt,
472
+ Root: Zt,
473
+ Title: Ut,
474
+ Trigger: Qt
475
+ }, Symbol.toStringTag, { value: "Module" })), Qn = { ...N, ...q, ...W }, Yn = t.forwardRef((e, a) => {
476
+ const { asChild: r, className: s, ...n } = d(e, Qn), l = r ? $ : "em";
477
+ return t.createElement(l, { ...n, ref: a, className: i("rt-Em", s) });
478
+ });
479
+ Yn.displayName = "Em";
480
+ const Un = ["1", "2", "3"], Xn = { ...N, size: { type: "enum", className: "rt-r-size", values: Un, default: "2", responsive: !0 }, width: R.width, minWidth: R.minWidth, maxWidth: { ...R.maxWidth, default: "480px" }, ...Z }, ea = (e) => t.createElement(Pr, { closeDelay: 150, openDelay: 200, ...e });
481
+ ea.displayName = "HoverCard.Root";
482
+ const ta = t.forwardRef(({ children: e, className: a, ...r }, s) => t.createElement(Ir, { ref: s, className: i("rt-HoverCardTrigger", a), ...r, asChild: !0 }, B(e)));
483
+ ta.displayName = "HoverCard.Trigger";
484
+ const aa = t.forwardRef((e, a) => {
485
+ const { className: r, forceMount: s, container: n, ...l } = d(e, Xn);
486
+ return t.createElement(Mr, { container: n, forceMount: s }, t.createElement(k, { asChild: !0 }, t.createElement(zr, { align: "start", sideOffset: 8, collisionPadding: 10, ...l, ref: a, className: i("rt-PopperContent", "rt-HoverCardContent", r) })));
487
+ });
488
+ aa.displayName = "HoverCard.Content";
489
+ const cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
475
490
  __proto__: null,
476
- Content: Ot,
477
- Root: Vt,
478
- Trigger: jt
479
- }, Symbol.toStringTag, { value: "Module" })), Lt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(xe, { ...a, ref: r, className: u("rt-IconButton", t) }));
480
- Lt.displayName = "IconButton";
481
- const An = ["all", "x", "y", "top", "bottom", "left", "right"], Dn = ["border-box", "padding-box"], V = ["current", "0"], Vn = { ...N, side: { type: "enum", className: "rt-r-side", values: An, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: Dn, 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) {
483
- return t === "current" ? "inset" : t;
491
+ Content: aa,
492
+ Root: ea,
493
+ Trigger: ta
494
+ }, Symbol.toStringTag, { value: "Module" })), ra = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Me, { ...a, ref: r, className: i("rt-IconButton", e) }));
495
+ ra.displayName = "IconButton";
496
+ const Jn = ["all", "x", "y", "top", "bottom", "left", "right"], el = ["border-box", "padding-box"], O = ["current", "0"], tl = { ...N, side: { type: "enum", className: "rt-r-side", values: Jn, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: el, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: O, parseValue: H, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: O, parseValue: H, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: O, parseValue: H, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: O, parseValue: H, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: O, parseValue: H, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: O, parseValue: H, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: O, parseValue: H, responsive: !0 } };
497
+ function H(e) {
498
+ return e === "current" ? "inset" : e;
484
499
  }
485
- const jn = e.forwardRef((t, a) => {
486
- const { asChild: r, className: n, ...s } = m(t, Vn, f), o = r ? $ : "div";
487
- return e.createElement(o, { ...s, ref: a, className: u("rt-Inset", n) });
488
- });
489
- jn.displayName = "Inset";
490
- const On = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Ln = { ...N, size: { type: "enum", className: "rt-r-size", values: On, responsive: !0 } }, Gn = e.forwardRef((t, a) => {
491
- const { asChild: r, className: n, ...s } = m(t, Ln, f), o = r ? $ : "kbd";
492
- return e.createElement(o, { ...s, ref: a, className: u("rt-reset", "rt-Kbd", n) });
493
- });
494
- Gn.displayName = "Kbd";
495
- const Hn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Fn = ["auto", "always", "hover", "none"], Wn = { ...N, size: { type: "enum", className: "rt-r-size", values: Hn, responsive: !0 }, ...me, ...$e, ...H, ...G, underline: { type: "enum", className: "rt-underline", values: Fn, default: "auto" }, ...re, ...E }, qn = e.forwardRef((t, a) => {
496
- const { children: r, className: n, color: s, asChild: o, ...l } = m(t, Wn);
497
- return e.createElement(F, { ...l, "data-accent-color": s, ref: a, asChild: !0, className: u("rt-reset", "rt-Link", n) }, o ? r : e.createElement("a", null, r));
498
- });
499
- qn.displayName = "Link";
500
- const Kn = ["1", "2", "3", "4"], Zn = { ...N, size: { type: "enum", className: "rt-r-size", values: Kn, default: "2", responsive: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "480px" }, ...K }, Gt = (t) => e.createElement(hr, { ...t });
501
- Gt.displayName = "Popover.Root";
502
- const Ht = e.forwardRef(({ children: t, ...a }, r) => e.createElement(yr, { ...a, ref: r, asChild: !0 }, I(t)));
503
- Ht.displayName = "Popover.Trigger";
504
- const Ft = e.forwardRef((t, a) => {
505
- const { className: r, forceMount: n, container: s, ...o } = m(t, Zn);
506
- return e.createElement(vr, { container: s, forceMount: n }, e.createElement(P, { asChild: !0 }, e.createElement(Nr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: u("rt-PopperContent", "rt-PopoverContent", r) })));
507
- });
508
- Ft.displayName = "Popover.Content";
509
- const Wt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(gr, { ...a, ref: r, asChild: !0 }, I(t)));
510
- Wt.displayName = "Popover.Close";
511
- const qt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(fr, { ...a, ref: r }));
512
- qt.displayName = "Popover.Anchor";
513
- const kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
+ const al = t.forwardRef((e, a) => {
501
+ const { asChild: r, className: s, ...n } = d(e, tl, g), l = r ? $ : "div";
502
+ return t.createElement(l, { ...n, ref: a, className: i("rt-Inset", s) });
503
+ });
504
+ al.displayName = "Inset";
505
+ const rl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], sl = { ...N, size: { type: "enum", className: "rt-r-size", values: rl, responsive: !0 } }, nl = t.forwardRef((e, a) => {
506
+ const { asChild: r, className: s, ...n } = d(e, sl, g), l = r ? $ : "kbd";
507
+ return t.createElement(l, { ...n, ref: a, className: i("rt-reset", "rt-Kbd", s) });
508
+ });
509
+ nl.displayName = "Kbd";
510
+ const ll = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], ol = ["auto", "always", "hover", "none"], cl = { ...N, size: { type: "enum", className: "rt-r-size", values: ll, responsive: !0 }, ...pe, ...we, ...q, ...W, underline: { type: "enum", className: "rt-underline", values: ol, default: "auto" }, ...Q, ...b }, il = t.forwardRef((e, a) => {
511
+ const { children: r, className: s, color: n, asChild: l, ...o } = d(e, cl);
512
+ return t.createElement(z, { ...o, "data-accent-color": n, ref: a, asChild: !0, className: i("rt-reset", "rt-Link", s) }, l ? r : t.createElement("a", null, r));
513
+ });
514
+ il.displayName = "Link";
515
+ const ul = ["1", "2", "3", "4"], dl = { ...N, size: { type: "enum", className: "rt-r-size", values: ul, default: "2", responsive: !0 }, width: R.width, minWidth: R.minWidth, maxWidth: { ...R.maxWidth, default: "480px" }, ...Z }, sa = (e) => t.createElement(Vr, { ...e });
516
+ sa.displayName = "Popover.Root";
517
+ const na = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Dr, { ...a, ref: r, asChild: !0 }, B(e)));
518
+ na.displayName = "Popover.Trigger";
519
+ const la = t.forwardRef((e, a) => {
520
+ const { className: r, forceMount: s, container: n, ...l } = d(e, dl);
521
+ return t.createElement(Br, { container: n, forceMount: s }, t.createElement(k, { asChild: !0 }, t.createElement(Ar, { align: "start", sideOffset: 8, collisionPadding: 10, ...l, ref: a, className: i("rt-PopperContent", "rt-PopoverContent", r) })));
522
+ });
523
+ la.displayName = "Popover.Content";
524
+ const oa = t.forwardRef(({ children: e, ...a }, r) => t.createElement(_r, { ...a, ref: r, asChild: !0 }, B(e)));
525
+ oa.displayName = "Popover.Close";
526
+ const ca = t.forwardRef(({ children: e, ...a }, r) => t.createElement(kr, { ...a, ref: r }));
527
+ ca.displayName = "Popover.Anchor";
528
+ const ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
514
529
  __proto__: null,
515
- Anchor: qt,
516
- Close: Wt,
517
- Content: Ft,
518
- Root: Gt,
519
- Trigger: Ht
520
- }, Symbol.toStringTag, { value: "Module" })), Qn = ["1", "2", "3"], Yn = ["classic", "surface", "soft"], Xn = { size: { type: "enum", className: "rt-r-size", values: Qn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Yn, default: "surface" }, ...C, ...E, ...M, duration: { type: "string" } }, Jn = e.forwardRef((t, a) => {
521
- const { className: r, style: n, color: s, radius: o, duration: l, ...c } = m(t, Xn, f);
522
- return e.createElement(Cr, { "data-accent-color": s, "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 }, n), ...c, asChild: !1 }, e.createElement($r, { className: "rt-ProgressIndicator" }));
523
- });
524
- Jn.displayName = "Progress";
525
- const Un = { ...N, ...H, ...G }, eo = e.forwardRef((t, a) => {
526
- const { asChild: r, className: n, ...s } = m(t, Un), o = r ? $ : "q";
527
- return e.createElement(o, { ...s, ref: a, className: u("rt-Quote", n) });
528
- });
529
- eo.displayName = "Quote";
530
- const to = ["1", "2", "3"], ao = ["classic", "surface", "soft"], J = { ...N, size: { type: "enum", className: "rt-r-size", values: to, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ao, default: "surface" }, ...C, ...E }, Kt = "RadioGroup", [ro] = br(Kt, [je]), Zt = je(), [so, Qt] = ro(Kt), Yt = e.forwardRef(({ color: t = J.color.default, highContrast: a = J.highContrast.default, size: r = J.size.default, variant: n = J.variant.default, ...s }, o) => {
531
- const { __scopeRadioGroup: l, className: c, ...i } = m(s, f), d = Zt(l);
532
- return e.createElement(so, { scope: l, color: t, highContrast: a, size: r, variant: n }, e.createElement(wr, { ...d, ...i, ref: o, className: u("rt-RadioGroupRoot", c) }));
533
- });
534
- Yt.displayName = "RadioGroup.Root";
535
- const Xt = e.forwardRef((t, a) => {
536
- const { __scopeRadioGroup: r, children: n, className: s, style: o, ...l } = t, { size: c } = Qt("RadioGroupItem", r);
537
- return n ? e.createElement(F, { as: "label", size: c, className: u("rt-RadioGroupItem", s), style: o }, e.createElement(ye, { __scopeRadioGroup: r, ...l, ref: a }), n && e.createElement("span", { className: "rt-RadioGroupItemInner" }, n)) : e.createElement(ye, { __scopeRadioGroup: r, ...l, ref: a, className: s, style: o });
538
- });
539
- Xt.displayName = "RadioGroup.Item";
540
- const ye = e.forwardRef(({ __scopeRadioGroup: t, ...a }, r) => {
541
- const n = Qt("RadioGroupItemRadio", t), s = Zt(t), { color: o, className: l } = m({ ...a, ...n }, J, f);
542
- return e.createElement(Er, { ...s, "data-accent-color": o, ...a, asChild: !1, ref: r, className: u("rt-reset", "rt-BaseRadioRoot", l) });
543
- });
544
- ye.displayName = "RadioGroup.ItemRadio";
545
- const _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
530
+ Anchor: ca,
531
+ Close: oa,
532
+ Content: la,
533
+ Root: sa,
534
+ Trigger: na
535
+ }, Symbol.toStringTag, { value: "Module" })), ml = ["1", "2", "3"], pl = ["classic", "surface", "soft"], fl = { size: { type: "enum", className: "rt-r-size", values: ml, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: pl, default: "surface" }, ...C, ...b, ...P, duration: { type: "string" } }, gl = t.forwardRef((e, a) => {
536
+ const { className: r, style: s, color: n, radius: l, duration: o, ...c } = d(e, fl, g);
537
+ return t.createElement(jr, { "data-accent-color": n, "data-radius": l, ref: a, className: i("rt-ProgressRoot", r), style: ne({ "--progress-duration": "value" in c ? void 0 : o, "--progress-value": "value" in c ? c.value : void 0, "--progress-max": "max" in c ? c.max : void 0 }, s), ...c, asChild: !1 }, t.createElement(Lr, { className: "rt-ProgressIndicator" }));
538
+ });
539
+ gl.displayName = "Progress";
540
+ const hl = { ...N, ...q, ...W }, vl = t.forwardRef((e, a) => {
541
+ const { asChild: r, className: s, ...n } = d(e, hl), l = r ? $ : "q";
542
+ return t.createElement(l, { ...n, ref: a, className: i("rt-Quote", s) });
543
+ });
544
+ vl.displayName = "Quote";
545
+ const Nl = ["1", "2", "3"], yl = ["surface", "classic"], Cl = { ...N, size: { type: "enum", className: "rt-r-size", values: Nl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: yl, default: "surface" }, ...C, ...b, columns: { ...me.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...me.gap, default: "4" } }, ia = t.forwardRef((e, a) => {
546
+ const { className: r, color: s, ...n } = d(e, Cl, g);
547
+ return t.createElement(zt, { asChild: !0 }, t.createElement(We, { "data-accent-color": s, ...n, ref: a, className: i("rt-RadioCardsRoot", r) }));
548
+ });
549
+ ia.displayName = "RadioCards.Root";
550
+ const ua = t.forwardRef(({ className: e, ...a }, r) => t.createElement(qe, { ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", e) }));
551
+ ua.displayName = "RadioCards.Item";
552
+ const $l = ["1", "2", "3"], bl = ["classic", "surface", "soft"], te = { ...N, size: { type: "enum", className: "rt-r-size", values: $l, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: bl, default: "surface" }, ...C, ...b }, da = "RadioGroup", [wl] = Or(da, [Ke]), ma = Ke(), [El, pa] = wl(da), fa = t.forwardRef(({ color: e = te.color.default, highContrast: a = te.highContrast.default, size: r = te.size.default, variant: s = te.variant.default, ...n }, l) => {
553
+ const { __scopeRadioGroup: o, className: c, ...u } = d(n, g), p = ma(o);
554
+ return t.createElement(El, { scope: o, color: e, highContrast: a, size: r, variant: s }, t.createElement(We, { ...p, ...u, ref: l, className: i("rt-RadioGroupRoot", c) }));
555
+ });
556
+ fa.displayName = "RadioGroup.Root";
557
+ const ga = t.forwardRef((e, a) => {
558
+ const { __scopeRadioGroup: r, children: s, className: n, style: l, ...o } = e, { size: c } = pa("RadioGroupItem", r);
559
+ return s ? t.createElement(z, { as: "label", size: c, className: i("rt-RadioGroupItem", n), style: l }, t.createElement($e, { __scopeRadioGroup: r, ...o, ref: a }), s && t.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : t.createElement($e, { __scopeRadioGroup: r, ...o, ref: a, className: n, style: l });
560
+ });
561
+ ga.displayName = "RadioGroup.Item";
562
+ const $e = t.forwardRef(({ __scopeRadioGroup: e, ...a }, r) => {
563
+ const s = pa("RadioGroupItemRadio", e), n = ma(e), { color: l, className: o } = d({ ...a, ...s }, te, g);
564
+ return t.createElement(qe, { ...n, "data-accent-color": l, ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseRadioRoot", o) });
565
+ });
566
+ $e.displayName = "RadioGroup.ItemRadio";
567
+ const uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
546
568
  __proto__: null,
547
- Item: Xt,
548
- Root: Yt
549
- }, Symbol.toStringTag, { value: "Module" })), no = ["1", "2", "3"], oo = ["classic", "surface", "soft"], lo = { size: { type: "enum", className: "rt-r-size", values: no, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: oo, default: "surface" }, ...C, ...E }, co = e.forwardRef((t, a) => {
550
- const r = e.useRef(null), { className: n, color: s, onChange: o, onValueChange: l, ...c } = m(t, lo, f);
551
- return e.createElement("input", { type: "radio", "data-accent-color": s, ...c, onChange: Rr(o, (i) => l == null ? void 0 : l(i.currentTarget.value)), ref: Oe(r, a), className: u("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", n) });
552
- });
553
- co.displayName = "Radio";
554
- const io = ["1", "2", "3", "4"], uo = ["none", "initial"], mo = { ...N, size: { type: "enum", className: "rt-r-size", values: io, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: uo, parseValue: po, responsive: !0 } };
555
- function po(t) {
556
- return t === "initial" ? "block" : t;
569
+ Item: ga,
570
+ Root: fa
571
+ }, Symbol.toStringTag, { value: "Module" })), Rl = ["1", "2", "3"], Sl = ["classic", "surface", "soft"], xl = { size: { type: "enum", className: "rt-r-size", values: Rl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Sl, default: "surface" }, ...C, ...b }, Tl = t.forwardRef((e, a) => {
572
+ const r = t.useRef(null), { className: s, color: n, onChange: l, onValueChange: o, ...c } = d(e, xl, g);
573
+ return t.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange: Hr(l, (u) => o == null ? void 0 : o(u.currentTarget.value)), ref: Ze(r, a), className: i("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
574
+ });
575
+ Tl.displayName = "Radio";
576
+ const Ml = ["1", "2", "3"], zl = ["surface", "classic"], Pl = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: Ml, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: zl, default: "surface" }, ...P }, ha = t.forwardRef((e, a) => {
577
+ const { className: r, children: s, radius: n, value: l, defaultValue: o, onValueChange: c, ...u } = d(e, Pl, g), [p, f] = Le({ prop: l, onChange: c, defaultProp: o });
578
+ return t.createElement(Gr, { "data-disabled": e.disabled || void 0, "data-radius": n, ref: a, className: i("rt-SegmentedControlRoot", r), onValueChange: (h) => {
579
+ h && f(h);
580
+ }, ...u, type: "single", value: p, asChild: !1, disabled: !!e.disabled }, s, t.createElement("div", { className: "rt-SegmentedControlIndicator" }));
581
+ });
582
+ ha.displayName = "SegmentedControl.Root";
583
+ const va = t.forwardRef(({ children: e, className: a, ...r }, s) => t.createElement(Fr, { ref: s, className: i("rt-reset", "rt-SegmentedControlItem", a), ...r, disabled: !1, asChild: !1 }, t.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), t.createElement("span", { className: "rt-SegmentedControlItemLabel" }, t.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, e), t.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, e))));
584
+ va.displayName = "SegmentedControl.Item";
585
+ const Il = ["1", "2", "3", "4"], kl = ["none", "initial"], _l = { ...N, size: { type: "enum", className: "rt-r-size", values: Il, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: kl, parseValue: Bl, responsive: !0 } };
586
+ function Bl(e) {
587
+ return e === "initial" ? "block" : e;
557
588
  }
558
- const fo = e.forwardRef((t, a) => {
559
- const { asChild: r, className: n, ...s } = m(t, mo, se, f), o = r ? $ : "section";
560
- return e.createElement(o, { ...s, ref: a, className: u("rt-Section", n) });
561
- });
562
- fo.displayName = "Section";
563
- const go = ["1", "2", "3"], Te = { size: { type: "enum", className: "rt-r-size", values: go, default: "2", responsive: !0 } }, vo = ["classic", "surface", "soft", "ghost"], No = { variant: { type: "enum", className: "rt-variant", values: vo, default: "surface" }, ...C, ...M, placeholder: { type: "string" } }, ho = ["solid", "soft"], yo = { variant: { type: "enum", className: "rt-variant", values: ho, default: "solid" }, ...C, ...E }, Me = e.createContext({}), Jt = (t) => {
564
- const { children: a, size: r = Te.size.default, ...n } = t;
565
- return e.createElement(_r, { ...n }, e.createElement(Me.Provider, { value: e.useMemo(() => ({ size: r }), [r]) }, a));
589
+ const Al = t.forwardRef((e, a) => {
590
+ const { asChild: r, className: s, ...n } = d(e, _l, le, g), l = r ? $ : "section";
591
+ return t.createElement(l, { ...n, ref: a, className: i("rt-Section", s) });
592
+ });
593
+ Al.displayName = "Section";
594
+ const Vl = ["1", "2", "3"], ze = { size: { type: "enum", className: "rt-r-size", values: Vl, default: "2", responsive: !0 } }, Dl = ["classic", "surface", "soft", "ghost"], jl = { variant: { type: "enum", className: "rt-variant", values: Dl, default: "surface" }, ...C, ...P, placeholder: { type: "string" } }, Ll = ["solid", "soft"], Ol = { variant: { type: "enum", className: "rt-variant", values: Ll, default: "solid" }, ...C, ...b }, Pe = t.createContext({}), Na = (e) => {
595
+ const { children: a, size: r = ze.size.default, ...s } = e;
596
+ return t.createElement(Wr, { ...s }, t.createElement(Pe.Provider, { value: t.useMemo(() => ({ size: r }), [r]) }, a));
566
597
  };
567
- Jt.displayName = "Select.Root";
568
- const Ut = e.forwardRef((t, a) => {
569
- const r = e.useContext(Me), { children: n, className: s, color: o, radius: l, placeholder: c, ...i } = m({ size: r == null ? void 0 : r.size, ...t }, { size: Te.size }, No, f);
570
- return e.createElement(Ar, { asChild: !0 }, e.createElement("button", { "data-accent-color": o, "data-radius": l, ...i, ref: a, className: u("rt-reset", "rt-SelectTrigger", s) }, e.createElement("span", { className: "rt-SelectTriggerInner" }, e.createElement(Dr, { placeholder: c }, n)), e.createElement(Vr, { asChild: !0 }, e.createElement(vt, { className: "rt-SelectIcon" }))));
571
- });
572
- Ut.displayName = "Select.Trigger";
573
- const ea = e.forwardRef((t, a) => {
574
- const r = e.useContext(Me), { className: n, children: s, color: o, container: l, ...c } = m({ size: r == null ? void 0 : r.size, ...t }, { size: Te.size }, yo), i = et(), d = o || i.accentColor;
575
- return e.createElement(Sr, { container: l }, e.createElement(P, { asChild: !0 }, e.createElement(xr, { "data-accent-color": d, sideOffset: 4, ...c, asChild: !1, ref: a, className: u({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", n) }, e.createElement(Be, { type: "auto", className: "rt-ScrollAreaRoot" }, e.createElement(Tr, { asChild: !0, className: "rt-SelectViewport" }, e.createElement(Ae, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, s)), e.createElement(Ne, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, e.createElement(he, { className: "rt-ScrollAreaThumb" }))))));
576
- });
577
- ea.displayName = "Select.Content";
578
- const ta = e.forwardRef((t, a) => {
579
- const { className: r, children: n, ...s } = t;
580
- return e.createElement(Pr, { ...s, asChild: !1, ref: a, className: u("rt-SelectItem", r) }, e.createElement(zr, { className: "rt-SelectItemIndicator" }, e.createElement(ne, { className: "rt-SelectItemIndicatorIcon" })), e.createElement(Ir, null, n));
581
- });
582
- ta.displayName = "Select.Item";
583
- const aa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Mr, { ...a, asChild: !1, ref: r, className: u("rt-SelectGroup", t) }));
584
- aa.displayName = "Select.Group";
585
- const ra = e.forwardRef(({ className: t, ...a }, r) => e.createElement(kr, { ...a, asChild: !1, ref: r, className: u("rt-SelectLabel", t) }));
586
- ra.displayName = "Select.Label";
587
- const sa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Br, { ...a, asChild: !1, ref: r, className: u("rt-SelectSeparator", t) }));
588
- sa.displayName = "Select.Separator";
589
- const Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
- __proto__: null,
591
- Content: ea,
592
- Group: aa,
593
- Item: ta,
594
- Label: ra,
595
- Root: Jt,
596
- Separator: sa,
597
- Trigger: Ut
598
- }, Symbol.toStringTag, { value: "Module" })), Co = ["horizontal", "vertical"], $o = ["1", "2", "3", "4"], bo = { orientation: { type: "enum", className: "rt-r-orientation", values: Co, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: $o, default: "1", responsive: !0 }, color: { ...C.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, wo = e.forwardRef((t, a) => {
599
- const { className: r, color: n, decorative: s, ...o } = m(t, bo, f);
600
- return e.createElement("span", { "data-accent-color": n, role: s ? void 0 : "separator", ...o, ref: a, className: u("rt-Separator", r) });
601
- });
602
- wo.displayName = "Separator";
603
- const Eo = parseFloat(e.version) >= 19 || "", Ro = { loading: { type: "boolean", default: !0 }, ...w, ...K }, So = e.forwardRef((t, a) => {
604
- const { children: r, className: n, loading: s, ...o } = m(t, Ro, f);
605
- if (!s) return r;
606
- const l = e.isValidElement(r) ? $ : "span";
607
- return e.createElement(l, { ref: a, "aria-hidden": !0, className: u("rt-Skeleton", n), "data-inline-skeleton": e.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: Eo, ...o }, r);
608
- });
609
- So.displayName = "Skeleton";
610
- const xo = ["1", "2", "3"], To = ["classic", "surface", "soft"], Mo = { size: { type: "enum", className: "rt-r-size", values: xo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: To, default: "surface" }, ...C, ...E, ...M }, Po = e.forwardRef((t, a) => {
611
- const { className: r, color: n, radius: s, tabIndex: o, ...l } = m(t, Mo, f);
612
- return e.createElement(Le, { "data-accent-color": n, "data-radius": s, ref: a, ...l, asChild: !1, className: u("rt-SliderRoot", r) }, e.createElement(Ge, { className: "rt-SliderTrack" }, e.createElement(He, { className: u("rt-SliderRange", { "rt-high-contrast": t.highContrast }), "data-inverted": l.inverted ? "" : void 0 })), (l.value ?? l.defaultValue ?? []).map((c, i) => e.createElement(Fe, { key: i, className: "rt-SliderThumb", ...o !== void 0 ? { tabIndex: o } : void 0 })));
613
- });
614
- Po.displayName = "Slider";
615
- const zo = { ...N, ...H, ...G }, Io = e.forwardRef((t, a) => {
616
- const { asChild: r, className: n, ...s } = m(t, zo), o = r ? $ : "strong";
617
- return e.createElement(o, { ...s, ref: a, className: u("rt-Strong", n) });
618
- });
619
- Io.displayName = "Strong";
620
- const ko = ["1", "2", "3"], _o = ["classic", "surface", "soft"], Bo = { size: { type: "enum", className: "rt-r-size", values: ko, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: _o, default: "surface" }, ...C, ...E, ...M }, Ao = e.forwardRef((t, a) => {
621
- const { className: r, color: n, radius: s, ...o } = m(t, Bo, f);
622
- return e.createElement(jr, { "data-accent-color": n, "data-radius": s, ...o, asChild: !1, ref: a, className: u("rt-reset", "rt-SwitchRoot", r) }, e.createElement(Or, { className: u("rt-SwitchThumb", { "rt-high-contrast": t.highContrast }) }));
623
- });
624
- Ao.displayName = "Switch";
625
- const Do = ["1", "2"], Vo = ["nowrap", "wrap", "wrap-reverse"], jo = ["start", "center", "end"], Oo = { size: { type: "enum", className: "rt-r-size", values: Do, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Vo, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: jo, responsive: !0 }, ...C, ...E }, Lo = ["1", "2", "3"], Go = ["surface", "ghost"], Ho = ["auto", "fixed"], ve = { size: { type: "enum", className: "rt-r-size", values: Lo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Go, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: Ho, responsive: !0 } }, Fo = ["start", "center", "end", "baseline"], Wo = { align: { type: "enum", className: "rt-r-va", values: Fo, parseValue: qo, responsive: !0 } };
626
- function qo(t) {
627
- return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[t];
598
+ Na.displayName = "Select.Root";
599
+ const ya = t.forwardRef((e, a) => {
600
+ const r = t.useContext(Pe), { children: s, className: n, color: l, radius: o, placeholder: c, ...u } = d({ size: r == null ? void 0 : r.size, ...e }, { size: ze.size }, jl, g);
601
+ return t.createElement(qr, { asChild: !0 }, t.createElement("button", { "data-accent-color": l, "data-radius": o, ...u, ref: a, className: i("rt-reset", "rt-SelectTrigger", n) }, t.createElement("span", { className: "rt-SelectTriggerInner" }, t.createElement(Kr, { placeholder: c }, s)), t.createElement(Zr, { asChild: !0 }, t.createElement(It, { className: "rt-SelectIcon" }))));
602
+ });
603
+ ya.displayName = "Select.Trigger";
604
+ const Ca = t.forwardRef((e, a) => {
605
+ const r = t.useContext(Pe), { className: s, children: n, color: l, container: o, ...c } = d({ size: r == null ? void 0 : r.size, ...e }, { size: ze.size }, Ol), u = it(), p = l || u.accentColor;
606
+ return t.createElement(Qr, { container: o }, t.createElement(k, { asChild: !0 }, t.createElement(Yr, { "data-accent-color": p, sideOffset: 4, ...c, asChild: !1, ref: a, className: i({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, t.createElement(Oe, { type: "auto", className: "rt-ScrollAreaRoot" }, t.createElement(Ur, { asChild: !0, className: "rt-SelectViewport" }, t.createElement(He, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, n)), t.createElement(ye, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, t.createElement(Ce, { className: "rt-ScrollAreaThumb" }))))));
607
+ });
608
+ Ca.displayName = "Select.Content";
609
+ const $a = t.forwardRef((e, a) => {
610
+ const { className: r, children: s, ...n } = e;
611
+ return t.createElement(Jr, { ...n, asChild: !1, ref: a, className: i("rt-SelectItem", r) }, t.createElement(es, { className: "rt-SelectItemIndicator" }, t.createElement(oe, { className: "rt-SelectItemIndicatorIcon" })), t.createElement(ts, null, s));
612
+ });
613
+ $a.displayName = "Select.Item";
614
+ const ba = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Xr, { ...a, asChild: !1, ref: r, className: i("rt-SelectGroup", e) }));
615
+ ba.displayName = "Select.Group";
616
+ const Hl = t.forwardRef(({ className: e, ...a }, r) => t.createElement(as, { ...a, asChild: !1, ref: r, className: i("rt-SelectLabel", e) }));
617
+ Hl.displayName = "Select.Label";
618
+ const Gl = t.forwardRef(({ className: e, ...a }, r) => t.createElement(rs, { ...a, asChild: !1, ref: r, className: i("rt-SelectSeparator", e) }));
619
+ Gl.displayName = "Select.Separator";
620
+ const Fl = ["horizontal", "vertical"], Wl = ["1", "2", "3", "4"], ql = { orientation: { type: "enum", className: "rt-r-orientation", values: Fl, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: Wl, default: "1", responsive: !0 }, color: { ...C.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Kl = t.forwardRef((e, a) => {
621
+ const { className: r, color: s, decorative: n, ...l } = d(e, ql, g);
622
+ return t.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...l, ref: a, className: i("rt-Separator", r) });
623
+ });
624
+ Kl.displayName = "Separator";
625
+ const Zl = parseFloat(t.version) >= 19 || "", Ql = { loading: { type: "boolean", default: !0 }, ...R, ...Z }, Yl = t.forwardRef((e, a) => {
626
+ const { children: r, className: s, loading: n, ...l } = d(e, Ql, g);
627
+ if (!n) return r;
628
+ const o = t.isValidElement(r) ? $ : "span";
629
+ return t.createElement(o, { ref: a, "aria-hidden": !0, className: i("rt-Skeleton", s), "data-inline-skeleton": t.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: Zl, ...l }, r);
630
+ });
631
+ Yl.displayName = "Skeleton";
632
+ const Ul = ["1", "2", "3"], Xl = ["classic", "surface", "soft"], Jl = { size: { type: "enum", className: "rt-r-size", values: Ul, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Xl, default: "surface" }, ...C, ...b, ...P }, eo = t.forwardRef((e, a) => {
633
+ const { className: r, color: s, radius: n, tabIndex: l, ...o } = d(e, Jl, g);
634
+ return t.createElement(Qe, { "data-accent-color": s, "data-radius": n, ref: a, ...o, asChild: !1, className: i("rt-SliderRoot", r) }, t.createElement(Ye, { className: "rt-SliderTrack" }, t.createElement(Ue, { className: i("rt-SliderRange", { "rt-high-contrast": e.highContrast }), "data-inverted": o.inverted ? "" : void 0 })), (o.value ?? o.defaultValue ?? []).map((c, u) => t.createElement(Xe, { key: u, className: "rt-SliderThumb", ...l !== void 0 ? { tabIndex: l } : void 0 })));
635
+ });
636
+ eo.displayName = "Slider";
637
+ const to = { ...N, ...q, ...W }, ao = t.forwardRef((e, a) => {
638
+ const { asChild: r, className: s, ...n } = d(e, to), l = r ? $ : "strong";
639
+ return t.createElement(l, { ...n, ref: a, className: i("rt-Strong", s) });
640
+ });
641
+ ao.displayName = "Strong";
642
+ const ro = ["1", "2", "3"], so = ["classic", "surface", "soft"], no = { size: { type: "enum", className: "rt-r-size", values: ro, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: so, default: "surface" }, ...C, ...b, ...P }, lo = t.forwardRef((e, a) => {
643
+ const { className: r, color: s, radius: n, ...l } = d(e, no, g);
644
+ return t.createElement(ss, { "data-accent-color": s, "data-radius": n, ...l, asChild: !1, ref: a, className: i("rt-reset", "rt-SwitchRoot", r) }, t.createElement(ns, { className: i("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
645
+ });
646
+ lo.displayName = "Switch";
647
+ const oo = ["1", "2"], co = ["nowrap", "wrap", "wrap-reverse"], io = ["start", "center", "end"], uo = { size: { type: "enum", className: "rt-r-size", values: oo, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: co, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: io, responsive: !0 }, ...C, ...b }, mo = ["1", "2", "3"], po = ["surface", "ghost"], fo = ["auto", "fixed"], Ne = { size: { type: "enum", className: "rt-r-size", values: mo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: po, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: fo, responsive: !0 } }, go = ["start", "center", "end", "baseline"], ho = { align: { type: "enum", className: "rt-r-va", values: go, parseValue: vo, responsive: !0 } };
648
+ function vo(e) {
649
+ return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[e];
628
650
  }
629
- const Ko = ["start", "center", "end"], Pe = { justify: { type: "enum", className: "rt-r-ta", values: Ko, parseValue: Zo, responsive: !0 }, ...w, ...ee };
630
- function Zo(t) {
631
- return { start: "left", center: "center", end: "right" }[t];
651
+ const No = ["start", "center", "end"], Ie = { justify: { type: "enum", className: "rt-r-ta", values: No, parseValue: yo, responsive: !0 }, ...R, ...re };
652
+ function yo(e) {
653
+ return { start: "left", center: "center", end: "right" }[e];
632
654
  }
633
- const na = e.forwardRef((t, a) => {
634
- const { layout: r, ...n } = ve, { className: s, children: o, layout: l, ...c } = m(t, n, f), i = te({ value: l, className: ve.layout.className, propValues: ve.layout.values });
635
- return e.createElement("div", { ref: a, className: u("rt-TableRoot", s), ...c }, e.createElement(de, null, e.createElement("table", { className: u("rt-TableRootTable", i) }, o)));
636
- });
637
- na.displayName = "Table.Root";
638
- const oa = e.forwardRef(({ className: t, ...a }, r) => e.createElement("thead", { ...a, ref: r, className: u("rt-TableHeader", t) }));
639
- oa.displayName = "Table.Header";
640
- const la = e.forwardRef(({ className: t, ...a }, r) => e.createElement("tbody", { ...a, ref: r, className: u("rt-TableBody", t) }));
641
- la.displayName = "Table.Body";
642
- const ca = e.forwardRef((t, a) => {
643
- const { className: r, ...n } = m(t, Wo);
644
- return e.createElement("tr", { ...n, ref: a, className: u("rt-TableRow", r) });
645
- });
646
- ca.displayName = "Table.Row";
647
- const ia = e.forwardRef((t, a) => {
648
- const { className: r, ...n } = m(t, Pe);
649
- return e.createElement("td", { className: u("rt-TableCell", r), ref: a, ...n });
650
- });
651
- ia.displayName = "Table.Cell";
652
- const ua = e.forwardRef((t, a) => {
653
- const { className: r, ...n } = m(t, Pe);
654
- return e.createElement("th", { className: u("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: a, ...n });
655
- });
656
- ua.displayName = "Table.ColumnHeaderCell";
657
- const ma = e.forwardRef((t, a) => {
658
- const { className: r, ...n } = m(t, Pe);
659
- return e.createElement("th", { className: u("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: a, ...n });
660
- });
661
- ma.displayName = "Table.RowHeaderCell";
662
- const Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
655
+ const wa = t.forwardRef((e, a) => {
656
+ const { layout: r, ...s } = Ne, { className: n, children: l, layout: o, ...c } = d(e, s, g), u = se({ value: o, className: Ne.layout.className, propValues: Ne.layout.values });
657
+ return t.createElement("div", { ref: a, className: i("rt-TableRoot", n), ...c }, t.createElement(fe, null, t.createElement("table", { className: i("rt-TableRootTable", u) }, l)));
658
+ });
659
+ wa.displayName = "Table.Root";
660
+ const Ea = t.forwardRef(({ className: e, ...a }, r) => t.createElement("thead", { ...a, ref: r, className: i("rt-TableHeader", e) }));
661
+ Ea.displayName = "Table.Header";
662
+ const Ra = t.forwardRef(({ className: e, ...a }, r) => t.createElement("tbody", { ...a, ref: r, className: i("rt-TableBody", e) }));
663
+ Ra.displayName = "Table.Body";
664
+ const Sa = t.forwardRef((e, a) => {
665
+ const { className: r, ...s } = d(e, ho);
666
+ return t.createElement("tr", { ...s, ref: a, className: i("rt-TableRow", r) });
667
+ });
668
+ Sa.displayName = "Table.Row";
669
+ const xa = t.forwardRef((e, a) => {
670
+ const { className: r, ...s } = d(e, Ie);
671
+ return t.createElement("td", { className: i("rt-TableCell", r), ref: a, ...s });
672
+ });
673
+ xa.displayName = "Table.Cell";
674
+ const Ta = t.forwardRef((e, a) => {
675
+ const { className: r, ...s } = d(e, Ie);
676
+ return t.createElement("th", { className: i("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: a, ...s });
677
+ });
678
+ Ta.displayName = "Table.ColumnHeaderCell";
679
+ const Ma = t.forwardRef((e, a) => {
680
+ const { className: r, ...s } = d(e, Ie);
681
+ return t.createElement("th", { className: i("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: a, ...s });
682
+ });
683
+ Ma.displayName = "Table.RowHeaderCell";
684
+ const dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
663
685
  __proto__: null,
664
- Body: la,
665
- Cell: ia,
666
- ColumnHeaderCell: ua,
667
- Header: oa,
668
- Root: na,
669
- Row: ca,
670
- RowHeaderCell: ma
671
- }, Symbol.toStringTag, { value: "Module" })), da = e.forwardRef((t, a) => {
672
- const { className: r, ...n } = m(t, f);
673
- return e.createElement(Hr, { ...n, ref: a, className: u("rt-TabsRoot", r) });
674
- });
675
- da.displayName = "Tabs.Root";
676
- const pa = e.forwardRef((t, a) => {
677
- const { className: r, color: n, ...s } = m(t, Oo, f);
678
- return e.createElement(Gr, { "data-accent-color": n, ...s, asChild: !1, ref: a, className: u("rt-BaseTabList", "rt-TabsList", r) });
679
- });
680
- pa.displayName = "Tabs.List";
681
- const fa = e.forwardRef((t, a) => {
682
- const { className: r, children: n, ...s } = t;
683
- return e.createElement(Fr, { ...s, asChild: !1, ref: a, className: u("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, e.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, n), e.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, n));
684
- });
685
- fa.displayName = "Tabs.Trigger";
686
- const ga = e.forwardRef((t, a) => {
687
- const { className: r, ...n } = m(t, f);
688
- return e.createElement(Lr, { ...n, ref: a, className: u("rt-TabsContent", r) });
689
- });
690
- ga.displayName = "Tabs.Content";
691
- const Dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
686
+ Body: Ra,
687
+ Cell: xa,
688
+ ColumnHeaderCell: Ta,
689
+ Header: Ea,
690
+ Root: wa,
691
+ Row: Sa,
692
+ RowHeaderCell: Ma
693
+ }, Symbol.toStringTag, { value: "Module" })), za = t.forwardRef((e, a) => {
694
+ const { className: r, ...s } = d(e, g);
695
+ return t.createElement(cs, { ...s, ref: a, className: i("rt-TabsRoot", r) });
696
+ });
697
+ za.displayName = "Tabs.Root";
698
+ const Pa = t.forwardRef((e, a) => {
699
+ const { className: r, color: s, ...n } = d(e, uo, g);
700
+ return t.createElement(os, { "data-accent-color": s, ...n, asChild: !1, ref: a, className: i("rt-BaseTabList", "rt-TabsList", r) });
701
+ });
702
+ Pa.displayName = "Tabs.List";
703
+ const Ia = t.forwardRef((e, a) => {
704
+ const { className: r, children: s, ...n } = e;
705
+ return t.createElement(is, { ...n, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, t.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), t.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
706
+ });
707
+ Ia.displayName = "Tabs.Trigger";
708
+ const ka = t.forwardRef((e, a) => {
709
+ const { className: r, ...s } = d(e, g);
710
+ return t.createElement(ls, { ...s, ref: a, className: i("rt-TabsContent", r) });
711
+ });
712
+ ka.displayName = "Tabs.Content";
713
+ const mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
692
714
  __proto__: null,
693
- Content: ga,
694
- List: pa,
695
- Root: da,
696
- Trigger: fa
697
- }, Symbol.toStringTag, { value: "Module" })), Qo = ["1", "2", "3"], Yo = ["classic", "surface", "soft"], Xo = ["none", "vertical", "horizontal", "both"], Jo = { size: { type: "enum", className: "rt-r-size", values: Qo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Yo, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Xo, responsive: !0 }, ...C, ...M }, Uo = e.forwardRef((t, a) => {
698
- const { className: r, color: n, radius: s, style: o, ...l } = m(t, Jo, f);
699
- return e.createElement("div", { "data-accent-color": n, "data-radius": s, className: u("rt-TextAreaRoot", r), style: o }, e.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...l }));
700
- });
701
- Uo.displayName = "TextArea";
702
- const el = ["1", "2", "3"], tl = ["classic", "surface", "soft"], al = { size: { type: "enum", className: "rt-r-size", values: el, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: tl, default: "surface" }, ...C, ...M }, rl = ["left", "right"], sl = { side: { type: "enum", values: rl }, ...C, gap: dt.gap, px: ee.px, pl: ee.pl, pr: ee.pr }, va = e.forwardRef((t, a) => {
703
- const r = e.useRef(null), { children: n, className: s, color: o, radius: l, style: c, ...i } = m(t, al, f);
704
- return e.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className: u("rt-TextFieldRoot", s), 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(`
715
+ Content: ka,
716
+ List: Pa,
717
+ Root: za,
718
+ Trigger: Ia
719
+ }, Symbol.toStringTag, { value: "Module" })), Co = ["1", "2", "3"], $o = ["classic", "surface", "soft"], bo = ["none", "vertical", "horizontal", "both"], wo = { size: { type: "enum", className: "rt-r-size", values: Co, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $o, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: bo, responsive: !0 }, ...C, ...P }, Eo = t.forwardRef((e, a) => {
720
+ const { className: r, color: s, radius: n, style: l, ...o } = d(e, wo, g);
721
+ return t.createElement("div", { "data-accent-color": s, "data-radius": n, className: i("rt-TextAreaRoot", r), style: l }, t.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...o }));
722
+ });
723
+ Eo.displayName = "TextArea";
724
+ const Ro = ["1", "2", "3"], So = ["classic", "surface", "soft"], xo = { size: { type: "enum", className: "rt-r-size", values: Ro, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: So, default: "surface" }, ...C, ...P }, To = ["left", "right"], Mo = { side: { type: "enum", values: To }, ...C, gap: $t.gap, px: re.px, pl: re.pl, pr: re.pr }, _a = t.forwardRef((e, a) => {
725
+ const r = t.useRef(null), { children: s, className: n, color: l, radius: o, style: c, ...u } = d(e, xo, g);
726
+ return t.createElement("div", { "data-accent-color": l, "data-radius": o, style: c, className: i("rt-TextFieldRoot", n), onPointerDown: (p) => {
727
+ const f = p.target;
728
+ if (f.closest("input, button, a")) return;
729
+ const h = r.current;
730
+ if (!h) return;
731
+ const y = f.closest(`
710
732
  .rt-TextFieldSlot[data-side='right'],
711
733
  .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
712
- `) ? v.value.length : 0;
734
+ `) ? h.value.length : 0;
713
735
  requestAnimationFrame(() => {
714
736
  try {
715
- v.setSelectionRange(h, h);
737
+ h.setSelectionRange(y, y);
716
738
  } catch {
717
739
  }
718
- v.focus();
740
+ h.focus();
719
741
  });
720
- } }, e.createElement("input", { spellCheck: "false", ...i, ref: Oe(r, a), className: "rt-reset rt-TextFieldInput" }), n);
742
+ } }, t.createElement("input", { spellCheck: "false", ...u, ref: Ze(r, a), className: "rt-reset rt-TextFieldInput" }), s);
721
743
  });
722
- va.displayName = "TextField.Root";
723
- const Na = e.forwardRef((t, a) => {
724
- const { className: r, color: n, side: s, ...o } = m(t, sl);
725
- return e.createElement("div", { "data-accent-color": n, "data-side": s, ...o, ref: a, className: u("rt-TextFieldSlot", r) });
744
+ _a.displayName = "TextField.Root";
745
+ const Ba = t.forwardRef((e, a) => {
746
+ const { className: r, color: s, side: n, ...l } = d(e, Mo);
747
+ return t.createElement("div", { "data-accent-color": s, "data-side": n, ...l, ref: a, className: i("rt-TextFieldSlot", r) });
726
748
  });
727
- Na.displayName = "TextField.Slot";
728
- const Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
749
+ Ba.displayName = "TextField.Slot";
750
+ const pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
729
751
  __proto__: null,
730
- Root: va,
731
- Slot: Na
732
- }, Symbol.toStringTag, { value: "Module" })), nl = { content: { type: "ReactNode", required: !0 }, width: w.width, minWidth: w.minWidth, maxWidth: { ...w.maxWidth, default: "360px" } }, ol = e.forwardRef((t, a) => {
733
- const { children: r, className: n, open: s, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: i, content: d, container: p, forceMount: v, ...h } = m(t, nl), b = { open: s, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: i };
734
- return e.createElement(We, { ...b }, e.createElement(qe, { asChild: !0 }, r), e.createElement(Wr, { container: p, forceMount: v }, e.createElement(P, { asChild: !0 }, e.createElement(Ke, { sideOffset: 4, collisionPadding: 10, ...h, asChild: !1, ref: a, className: u("rt-TooltipContent", n) }, e.createElement(F, { as: "p", className: "rt-TooltipText", size: "1" }, d), e.createElement(Ze, { className: "rt-TooltipArrow" })))));
735
- });
736
- ol.displayName = "Tooltip";
737
- const ll = ({
738
- onClick: t,
752
+ Root: _a,
753
+ Slot: Ba
754
+ }, Symbol.toStringTag, { value: "Module" })), zo = { content: { type: "ReactNode", required: !0 }, width: R.width, minWidth: R.minWidth, maxWidth: { ...R.maxWidth, default: "360px" } }, ke = t.forwardRef((e, a) => {
755
+ const { children: r, className: s, open: n, defaultOpen: l, onOpenChange: o, delayDuration: c, disableHoverableContent: u, content: p, container: f, forceMount: h, ...y } = d(e, zo), w = { open: n, defaultOpen: l, onOpenChange: o, delayDuration: c, disableHoverableContent: u };
756
+ return t.createElement(Je, { ...w }, t.createElement(et, { asChild: !0 }, r), t.createElement(us, { container: f, forceMount: h }, t.createElement(k, { asChild: !0 }, t.createElement(tt, { sideOffset: 4, collisionPadding: 10, ...y, asChild: !1, ref: a, className: i("rt-TooltipContent", s) }, t.createElement(z, { as: "p", className: "rt-TooltipText", size: "1" }, p), t.createElement(at, { className: "rt-TooltipArrow" })))));
757
+ });
758
+ ke.displayName = "Tooltip";
759
+ const Aa = ({
760
+ onClick: e,
739
761
  className: a,
740
762
  children: r,
741
- variant: n = "ghost",
742
- color: s = "gray",
743
- disabled: o,
744
- ...l
745
- }) => /* @__PURE__ */ y(
746
- Lt,
763
+ variant: s = "ghost",
764
+ color: n = "gray",
765
+ disabled: l,
766
+ size: o = "1",
767
+ ...c
768
+ }) => /* @__PURE__ */ m(
769
+ ra,
747
770
  {
748
- onClick: t,
749
- className: u(a),
750
- variant: n,
751
- disabled: o,
752
- color: s,
753
- ...l,
771
+ onClick: e,
772
+ className: i(a),
773
+ variant: s,
774
+ disabled: l,
775
+ color: n,
776
+ size: o,
777
+ ...c,
754
778
  children: r
755
779
  }
756
780
  );
757
- ll.displayName = "IconButton";
758
- const jl = ({ children: t, ...a }) => /* @__PURE__ */ y(
759
- P,
781
+ Aa.displayName = "IconButton";
782
+ const fc = ({ children: e, ...a }) => /* @__PURE__ */ m(
783
+ k,
760
784
  {
761
- accentColor: "red",
785
+ accentColor: "cyan",
762
786
  appearance: "dark",
763
787
  panelBackground: "solid",
764
788
  ...a,
765
- children: t
789
+ children: e
766
790
  }
767
- ), cl = "_sliderRoot_1fv47_23", il = "_sliderTrack_1fv47_31", ul = "_sliderRange_1fv47_46", ml = "_sliderThumb_1fv47_65", dl = "_tooltipContent_1fv47_85", pl = "_tooltipArrow_1fv47_99", fl = "_sliderContainer_1fv47_114", O = {
768
- sliderRoot: cl,
769
- sliderTrack: il,
770
- sliderRange: ul,
771
- sliderThumb: ml,
772
- tooltipContent: dl,
773
- tooltipArrow: pl,
774
- sliderContainer: fl
775
- }, Ol = ({ onChangeValue: t, volume: a, disabled: r }) => {
776
- const [n, s] = $a(!1), o = ba(), l = W((g) => {
777
- if (g < 1e-3) return -1 / 0;
778
- const z = 20 * Math.log10(g);
779
- return z < -60 ? -60 : z;
780
- }, []), c = W((g) => g === -1 / 0 || g <= -60 ? 0 : Math.pow(10, g / 20), []), i = pe(() => {
781
- const g = l(a);
782
- return g === -1 / 0 ? -60 : Math.max(-60, Math.min(6, g));
783
- }, [a, l]), d = pe(() => a < 1e-3, [a]), p = W(() => {
784
- clearTimeout(o.current), s(!0);
785
- }, []), v = W(() => {
786
- o.current = setTimeout(() => {
787
- s(!1);
791
+ ), Po = "_sliderRoot_1fv47_23", Io = "_sliderTrack_1fv47_31", ko = "_sliderRange_1fv47_46", _o = "_sliderThumb_1fv47_65", Bo = "_tooltipContent_1fv47_85", Ao = "_tooltipArrow_1fv47_99", Vo = "_sliderContainer_1fv47_114", G = {
792
+ sliderRoot: Po,
793
+ sliderTrack: Io,
794
+ sliderRange: ko,
795
+ sliderThumb: _o,
796
+ tooltipContent: Bo,
797
+ tooltipArrow: Ao,
798
+ sliderContainer: Vo
799
+ }, gc = ({ onChangeValue: e, volume: a, disabled: r }) => {
800
+ const [s, n] = Oa(!1), l = Ha(), o = F((v) => {
801
+ if (v < 1e-3) return -1 / 0;
802
+ const _ = 20 * Math.log10(v);
803
+ return _ < -60 ? -60 : _;
804
+ }, []), c = F((v) => v === -1 / 0 || v <= -60 ? 0 : Math.pow(10, v / 20), []), u = ge(() => {
805
+ const v = o(a);
806
+ return v === -1 / 0 ? -60 : Math.max(-60, Math.min(6, v));
807
+ }, [a, o]), p = ge(() => a < 1e-3, [a]), f = F(() => {
808
+ clearTimeout(l.current), n(!0);
809
+ }, []), h = F(() => {
810
+ l.current = setTimeout(() => {
811
+ n(!1);
788
812
  }, 300);
789
- }, []), h = W(
790
- (g) => {
791
- (g.key === "ArrowUp" || g.key === "ArrowDown") && p(), (g.key === "ArrowLeft" || g.key === "ArrowRight") && (g.preventDefault(), g.stopPropagation());
813
+ }, []), y = F(
814
+ (v) => {
815
+ (v.key === "ArrowUp" || v.key === "ArrowDown") && f(), (v.key === "ArrowLeft" || v.key === "ArrowRight") && (v.preventDefault(), v.stopPropagation());
792
816
  },
793
- [p]
794
- ), b = W(
795
- (g) => {
796
- t(g.map(c));
817
+ [f]
818
+ ), w = F(
819
+ (v) => {
820
+ e(v.map(c));
797
821
  },
798
- [t, c]
799
- ), R = pe(
800
- () => /* @__PURE__ */ L(Ca, { children: [
801
- d ? "-∞ dB" : `${i.toFixed(1)} dB`,
802
- /* @__PURE__ */ y(Ze, { className: O.tooltipArrow })
822
+ [e, c]
823
+ ), T = ge(
824
+ () => /* @__PURE__ */ E(La, { children: [
825
+ p ? "-∞ dB" : `${u.toFixed(1)} dB`,
826
+ /* @__PURE__ */ m(at, { className: G.tooltipArrow })
803
827
  ] }),
804
- [i, d]
828
+ [u, p]
805
829
  );
806
- return /* @__PURE__ */ y(
807
- Le,
830
+ return /* @__PURE__ */ m(
831
+ Qe,
808
832
  {
809
- className: O.sliderRoot,
833
+ className: G.sliderRoot,
810
834
  min: -60,
811
835
  max: 6,
812
836
  step: 0.1,
813
- value: [d ? -60 : i],
814
- onValueChange: b,
815
- onMouseEnter: p,
816
- onMouseLeave: v,
837
+ value: [p ? -60 : u],
838
+ onValueChange: w,
839
+ onMouseEnter: f,
840
+ onMouseLeave: h,
817
841
  disabled: r,
818
- children: /* @__PURE__ */ L(
842
+ children: /* @__PURE__ */ E(
819
843
  "div",
820
844
  {
821
- className: O.sliderContainer,
822
- onMouseEnter: p,
823
- onMouseLeave: v,
845
+ className: G.sliderContainer,
846
+ onMouseEnter: f,
847
+ onMouseLeave: h,
824
848
  children: [
825
- /* @__PURE__ */ y(
826
- Ge,
849
+ /* @__PURE__ */ m(
850
+ Ye,
827
851
  {
828
- className: O.sliderTrack,
829
- onMouseEnter: p,
830
- onMouseLeave: v,
831
- children: /* @__PURE__ */ y(He, { className: O.sliderRange })
852
+ className: G.sliderTrack,
853
+ onMouseEnter: f,
854
+ onMouseLeave: h,
855
+ children: /* @__PURE__ */ m(Ue, { className: G.sliderRange })
832
856
  }
833
857
  ),
834
- /* @__PURE__ */ y(_e, { delayDuration: 200, children: /* @__PURE__ */ L(We, { open: n, children: [
835
- /* @__PURE__ */ y(qe, { asChild: !0, children: /* @__PURE__ */ y(
836
- Fe,
858
+ /* @__PURE__ */ m(je, { delayDuration: 200, children: /* @__PURE__ */ E(Je, { open: s, children: [
859
+ /* @__PURE__ */ m(et, { asChild: !0, children: /* @__PURE__ */ m(
860
+ Xe,
837
861
  {
838
- className: O.sliderThumb,
839
- onPointerDown: p,
840
- onMouseEnter: p,
841
- onMouseLeave: v,
842
- onKeyDown: h
862
+ className: G.sliderThumb,
863
+ onPointerDown: f,
864
+ onMouseEnter: f,
865
+ onMouseLeave: h,
866
+ onKeyDown: y
843
867
  }
844
868
  ) }),
845
- /* @__PURE__ */ y(
846
- Ke,
869
+ /* @__PURE__ */ m(
870
+ tt,
847
871
  {
848
- className: O.tooltipContent,
872
+ className: G.tooltipContent,
849
873
  side: "bottom",
850
874
  align: "center",
851
875
  sideOffset: 10,
852
- children: R
876
+ children: T
853
877
  }
854
878
  )
855
879
  ] }) })
@@ -858,143 +882,331 @@ const jl = ({ children: t, ...a }) => /* @__PURE__ */ y(
858
882
  )
859
883
  }
860
884
  );
861
- }, gl = "_dropdownMenuContent_1139i_2", vl = "_dropdownMenuSubContent_1139i_2", Nl = "_dropdownMenuItem_1139i_11", hl = "_dropdownMenuSeparator_1139i_29", yl = "_rightSlot_1139i_35", Cl = "_dropdownMenuSub_1139i_2", $l = "_dropdownMenuSubTrigger_1139i_51", bl = "_dropdownMenuLabel_1139i_78", wl = "_dropdownMenuTrigger_1139i_86", T = {
862
- dropdownMenuContent: gl,
863
- dropdownMenuSubContent: vl,
864
- dropdownMenuItem: Nl,
865
- dropdownMenuSeparator: hl,
866
- rightSlot: yl,
867
- dropdownMenuSub: Cl,
868
- dropdownMenuSubTrigger: $l,
869
- dropdownMenuLabel: bl,
870
- dropdownMenuTrigger: wl
871
- }, ha = (t) => {
885
+ }, Do = "_dropdownMenuContent_fegrn_1", jo = "_dropdownMenuSubContent_fegrn_1", Lo = "_dropdownMenuItem_fegrn_15", Oo = "_dropdownMenuSeparator_fegrn_33", Ho = "_rightSlot_fegrn_39", Go = "_dropdownMenuSub_fegrn_1", Fo = "_dropdownMenuSubTrigger_fegrn_55", Wo = "_dropdownMenuLabel_fegrn_82", qo = "_dropdownMenuTrigger_fegrn_90", I = {
886
+ dropdownMenuContent: Do,
887
+ dropdownMenuSubContent: jo,
888
+ dropdownMenuItem: Lo,
889
+ dropdownMenuSeparator: Oo,
890
+ rightSlot: Ho,
891
+ dropdownMenuSub: Go,
892
+ dropdownMenuSubTrigger: Fo,
893
+ dropdownMenuLabel: Wo,
894
+ dropdownMenuTrigger: qo
895
+ }, Va = (e) => {
872
896
  var a;
873
- switch (t.type) {
897
+ switch (e.type) {
874
898
  case "separator":
875
- return /* @__PURE__ */ y(
876
- es,
899
+ return /* @__PURE__ */ m(
900
+ ys,
877
901
  {
878
- className: T.dropdownMenuSeparator
902
+ className: I.dropdownMenuSeparator
879
903
  },
880
- t.key
904
+ e.key
881
905
  );
882
906
  case "label":
883
- return /* @__PURE__ */ y(
884
- Ur,
907
+ return /* @__PURE__ */ m(
908
+ Ns,
885
909
  {
886
- className: T.dropdownMenuLabel,
887
- children: t.label
910
+ className: I.dropdownMenuLabel,
911
+ children: e.label
888
912
  },
889
- t.key
913
+ e.key
890
914
  );
891
915
  case "sub":
892
- return /* @__PURE__ */ L(Yr, { className: T.dropdownMenuSub, children: [
893
- /* @__PURE__ */ L(
894
- Xr,
916
+ return /* @__PURE__ */ E(gs, { className: I.dropdownMenuSub, children: [
917
+ /* @__PURE__ */ E(
918
+ hs,
895
919
  {
896
- className: T.dropdownMenuSubTrigger,
920
+ className: I.dropdownMenuSubTrigger,
897
921
  children: [
898
- t.label,
899
- /* @__PURE__ */ y("div", { className: T.rightSlot, children: /* @__PURE__ */ y(ts, {}) })
922
+ e.label,
923
+ /* @__PURE__ */ m("div", { className: I.rightSlot, children: /* @__PURE__ */ m(Cs, {}) })
900
924
  ]
901
925
  }
902
926
  ),
903
- /* @__PURE__ */ y(
904
- Jr,
927
+ /* @__PURE__ */ m(
928
+ vs,
905
929
  {
906
- className: T.dropdownMenuSubContent,
907
- children: (a = t == null ? void 0 : t.children) == null ? void 0 : a.map((r) => ha(r))
930
+ className: I.dropdownMenuSubContent,
931
+ children: (a = e == null ? void 0 : e.children) == null ? void 0 : a.map((r) => Va(r))
908
932
  }
909
933
  )
910
- ] }, t.key);
934
+ ] }, e.key);
911
935
  case "item":
912
- return /* @__PURE__ */ L(
913
- Qr,
936
+ return /* @__PURE__ */ E(
937
+ fs,
914
938
  {
915
- className: T.dropdownMenuItem,
916
- onSelect: t.onClick,
917
- disabled: t.disabled,
939
+ className: I.dropdownMenuItem,
940
+ onSelect: e.onClick,
941
+ disabled: e.disabled,
918
942
  children: [
919
- t.label,
920
- t.keybinding && /* @__PURE__ */ y("div", { className: T.rightSlot, children: t.keybinding })
943
+ e.label,
944
+ e.keybinding && /* @__PURE__ */ m("div", { className: I.rightSlot, children: e.keybinding })
921
945
  ]
922
946
  },
923
- t.key
947
+ e.key
924
948
  );
925
949
  default:
926
950
  return null;
927
951
  }
928
- }, Ll = wa(
929
- ({ trigger: t, options: a, className: r, ...n }) => /* @__PURE__ */ y(ut, { children: /* @__PURE__ */ L(qr, { children: [
930
- /* @__PURE__ */ y(
931
- Kr,
952
+ }, hc = Ga(
953
+ ({ trigger: e, options: a, className: r, ...s }) => /* @__PURE__ */ E(ds, { children: [
954
+ /* @__PURE__ */ m(
955
+ ms,
932
956
  {
933
957
  asChild: !0,
934
- className: T.dropdownMenuTrigger,
935
- children: t
958
+ className: I.dropdownMenuTrigger,
959
+ children: e
936
960
  }
937
961
  ),
938
- /* @__PURE__ */ y(
939
- Zr,
962
+ /* @__PURE__ */ m(
963
+ ps,
940
964
  {
941
- className: u(T.dropdownMenuContent, r),
942
- side: n.side,
943
- align: n.align,
965
+ className: i(I.dropdownMenuContent, r),
966
+ side: s.side,
967
+ align: s.align,
944
968
  sideOffset: 5,
945
969
  alignOffset: 0,
946
- onCloseAutoFocus: (s) => {
947
- s.preventDefault();
970
+ onCloseAutoFocus: (n) => {
971
+ n.preventDefault();
948
972
  },
949
- children: a == null ? void 0 : a.map((s) => ha(s))
973
+ children: a == null ? void 0 : a.map((n) => Va(n))
974
+ }
975
+ )
976
+ ] })
977
+ ), Da = x.forwardRef(
978
+ ({ children: e, onClick: a, title: r, className: s, ...n }, l) => /* @__PURE__ */ m(
979
+ Aa,
980
+ {
981
+ ref: l,
982
+ variant: "ghost",
983
+ className: s,
984
+ ...n,
985
+ onClick: a,
986
+ children: r ? /* @__PURE__ */ m(ke, { content: r, children: e }) : e
987
+ }
988
+ )
989
+ );
990
+ Da.displayName = "HeaderPanel.Button";
991
+ const _e = x.forwardRef(
992
+ ({ title: e, children: a, className: r, ...s }, n) => /* @__PURE__ */ E(
993
+ S,
994
+ {
995
+ ref: n,
996
+ gap: "4",
997
+ align: "center",
998
+ justify: "between",
999
+ className: r,
1000
+ ...s,
1001
+ children: [
1002
+ /* @__PURE__ */ m(z, { size: "4", weight: "bold", children: e }),
1003
+ /* @__PURE__ */ m(S, { gap: "3", children: a })
1004
+ ]
1005
+ }
1006
+ )
1007
+ );
1008
+ _e.displayName = "HeaderPanel";
1009
+ _e.Button = Da;
1010
+ const vc = _e, Ko = ({ className: e, image: a, name: r, description: s, id: n, ...l }) => {
1011
+ const o = a && (a != null && a.startsWith("url(")) ? a == null ? void 0 : a.substring(4, (a == null ? void 0 : a.length) - 1).replace(/"/g, "") : a;
1012
+ return /* @__PURE__ */ m(
1013
+ ua,
1014
+ {
1015
+ value: n,
1016
+ style: { justifyContent: "flex-start" },
1017
+ className: e,
1018
+ ...l,
1019
+ children: /* @__PURE__ */ E(S, { gap: "4", align: "center", children: [
1020
+ /* @__PURE__ */ m(Nt, { size: "6", src: o, radius: 10 }),
1021
+ /* @__PURE__ */ E(Y, { children: [
1022
+ /* @__PURE__ */ m(z, { as: "div", size: "2", weight: "bold", children: r }),
1023
+ /* @__PURE__ */ m(z, { as: "div", size: "2", color: "gray", children: s })
1024
+ ] })
1025
+ ] })
1026
+ }
1027
+ );
1028
+ }, Zo = ({ items: e, value: a, onSelect: r, className: s, ...n }) => /* @__PURE__ */ m(Y, { height: "100%", width: "100%", overflow: "auto", children: /* @__PURE__ */ m(
1029
+ ia,
1030
+ {
1031
+ defaultValue: a,
1032
+ onValueChange: r,
1033
+ columns: { initial: "1", sm: "1" },
1034
+ className: s,
1035
+ ...n,
1036
+ children: e.map((l) => /* @__PURE__ */ m(
1037
+ Ko,
1038
+ {
1039
+ id: l.id,
1040
+ name: l.name,
1041
+ description: l.description,
1042
+ image: l.image
1043
+ },
1044
+ l.id
1045
+ ))
1046
+ }
1047
+ ) });
1048
+ Zo.displayName = "ListCards";
1049
+ const Qo = ({ item: e, value: a, onSelect: r }) => {
1050
+ const s = F(() => {
1051
+ r && r(e.id);
1052
+ }, [r, e.id]), n = a == null ? void 0 : a.includes(e.id);
1053
+ return /* @__PURE__ */ m(Y, { width: "calc(50% - 6px)", children: /* @__PURE__ */ m(
1054
+ Mt,
1055
+ {
1056
+ onClick: s,
1057
+ cursor: "pointer",
1058
+ style: {
1059
+ cursor: "pointer",
1060
+ boxSizing: "border-box",
1061
+ border: n ? "2px solid var(--accent-9)" : "2px solid transparent",
1062
+ background: n ? "var(--accent-3)" : "var(--color-surface)"
1063
+ },
1064
+ children: /* @__PURE__ */ E(S, { gap: "3", align: "start", direction: "column", height: "87px", children: [
1065
+ e == null ? void 0 : e.icon,
1066
+ /* @__PURE__ */ m(z, { as: "div", size: "2", color: "gray", weight: "bold", children: e == null ? void 0 : e.name })
1067
+ ] })
1068
+ }
1069
+ ) });
1070
+ }, Yo = ({
1071
+ items: e,
1072
+ value: a = [],
1073
+ onSelect: r,
1074
+ className: s,
1075
+ ...n
1076
+ }) => /* @__PURE__ */ m(Y, { height: "100%", width: "100%", overflow: "auto", children: /* @__PURE__ */ m(S, { className: s, ...n, gap: "3", wrap: "wrap", children: e.map((l) => /* @__PURE__ */ m(Qo, { item: l, value: a, onSelect: r }, l.id)) }) });
1077
+ Yo.displayName = "MultiSelectCards";
1078
+ const Uo = ({
1079
+ className: e,
1080
+ selectedType: a,
1081
+ size: r = "1",
1082
+ handleTypeChange: s,
1083
+ items: n,
1084
+ ...l
1085
+ }) => /* @__PURE__ */ m(
1086
+ S,
1087
+ {
1088
+ padding: "1",
1089
+ width: "100%",
1090
+ className: "custom-segmented-control-container",
1091
+ children: /* @__PURE__ */ m(
1092
+ ha,
1093
+ {
1094
+ size: r,
1095
+ value: a,
1096
+ onValueChange: s,
1097
+ variant: "surface",
1098
+ className: `custom-segmented-control ${e || ""}`,
1099
+ ...l,
1100
+ children: n.map((o) => /* @__PURE__ */ m(va, { value: o.value, children: o.label }, o.value))
950
1101
  }
951
1102
  )
952
- ] }) })
1103
+ }
1104
+ );
1105
+ Uo.displayName = "SegmentedControl";
1106
+ const Xo = ({
1107
+ type: e,
1108
+ message: a,
1109
+ ctaLabel: r,
1110
+ onClick: s,
1111
+ className: n,
1112
+ ...l
1113
+ }) => /* @__PURE__ */ m(
1114
+ St,
1115
+ {
1116
+ size: "1",
1117
+ color: e === "error" ? "red" : e === "warn" ? "yellow" : "gray",
1118
+ style: {
1119
+ padding: "5px 10px",
1120
+ borderRadius: "2px",
1121
+ display: "flex"
1122
+ },
1123
+ className: n,
1124
+ ...l,
1125
+ children: /* @__PURE__ */ E(S, { align: "center", width: "100%", gap: "2", justify: "between", children: [
1126
+ /* @__PURE__ */ E(S, { align: "center", gap: "2", children: [
1127
+ /* @__PURE__ */ m(xt, { children: /* @__PURE__ */ m(rt, {}) }),
1128
+ /* @__PURE__ */ m(Tt, { children: a })
1129
+ ] }),
1130
+ /* @__PURE__ */ m(S, { children: r && /* @__PURE__ */ m(Et, { size: "1", variant: "solid", color: "gray", onClick: s, children: r }) })
1131
+ ] })
1132
+ }
953
1133
  );
1134
+ Xo.displayName = "MessageWithAction";
1135
+ const Jo = ({
1136
+ className: e,
1137
+ title: a,
1138
+ handleModelChange: r,
1139
+ defaultValue: s,
1140
+ items: n,
1141
+ info: l,
1142
+ ...o
1143
+ }) => /* @__PURE__ */ E(Y, { width: "100%", className: e, ...o, children: [
1144
+ a && /* @__PURE__ */ E(S, { mb: "2", alignItems: "center", gap: "2", children: [
1145
+ /* @__PURE__ */ m(z, { size: "1", weight: "bold", children: a }),
1146
+ l && /* @__PURE__ */ m(ke, { content: l, children: /* @__PURE__ */ m(rt, {}) })
1147
+ ] }),
1148
+ /* @__PURE__ */ m(S, { direction: "column", children: /* @__PURE__ */ E(
1149
+ Na,
1150
+ {
1151
+ onValueChange: r,
1152
+ defaultValue: s,
1153
+ children: [
1154
+ /* @__PURE__ */ m(ya, { variant: "soft", color: "gray" }),
1155
+ /* @__PURE__ */ m(Ca, { children: /* @__PURE__ */ m(ba, { children: n.map((c) => /* @__PURE__ */ m($a, { value: c.value, children: c.label }, c.value)) }) })
1156
+ ]
1157
+ }
1158
+ ) })
1159
+ ] });
1160
+ Jo.displayName = "Select";
954
1161
  export {
955
- Tl as AlertDialog,
956
- Ml as AspectRatio,
957
- bs as Avatar,
958
- Ss as Badge,
959
- xs as Blockquote,
960
- ut as Box,
961
- Zs as Button,
962
- Js as Card,
963
- dn as Checkbox,
964
- vn as Code,
965
- wn as Container,
966
- Pl as ContextMenu,
967
- zl as Dialog,
968
- Ll as DropdownMenu,
969
- kn as Em,
970
- ue as Flex,
971
- mn as Grid,
972
- we as Heading,
973
- Ol as HorizontalVolume,
974
- Il as HoverCard,
975
- ll as IconButton,
976
- jn as Inset,
977
- Gn as Kbd,
978
- qn as Link,
979
- kl as Popover,
980
- Jn as Progress,
981
- eo as Quote,
982
- co as Radio,
983
- _l as RadioGroup,
984
- de as ScrollArea,
985
- fo as Section,
986
- Bl as Select,
987
- wo as Separator,
988
- So as Skeleton,
989
- Po as Slider,
990
- pt as Spinner,
991
- Io as Strong,
992
- Ao as Switch,
993
- Al as Table,
994
- Dl as Tabs,
995
- F as Text,
996
- Uo as TextArea,
997
- Vl as TextField,
998
- jl as Theme,
999
- ol as Tooltip
1162
+ sc as AlertDialog,
1163
+ nc as AspectRatio,
1164
+ Nt as Avatar,
1165
+ Fs as Badge,
1166
+ Ws as Blockquote,
1167
+ Y as Box,
1168
+ Et as Button,
1169
+ Mt as Card,
1170
+ Mn as Checkbox,
1171
+ kn as Code,
1172
+ Ln as Container,
1173
+ lc as ContextMenu,
1174
+ oc as Dialog,
1175
+ hc as DropdownMenu,
1176
+ Yn as Em,
1177
+ S as Flex,
1178
+ zt as Grid,
1179
+ vc as HeaderPanel,
1180
+ Re as Heading,
1181
+ gc as HorizontalVolume,
1182
+ cc as HoverCard,
1183
+ Aa as IconButton,
1184
+ al as Inset,
1185
+ nl as Kbd,
1186
+ il as Link,
1187
+ Zo as ListCards,
1188
+ Xo as MessageWithAction,
1189
+ Yo as MultiSelectCards,
1190
+ ic as Popover,
1191
+ gl as Progress,
1192
+ vl as Quote,
1193
+ Tl as Radio,
1194
+ uc as RadioGroup,
1195
+ fe as ScrollArea,
1196
+ Al as Section,
1197
+ Uo as SegmentedControl,
1198
+ Jo as Select,
1199
+ Kl as Separator,
1200
+ Yl as Skeleton,
1201
+ eo as Slider,
1202
+ bt as Spinner,
1203
+ ao as Strong,
1204
+ lo as Switch,
1205
+ dc as Table,
1206
+ mc as Tabs,
1207
+ z as Text,
1208
+ Eo as TextArea,
1209
+ pc as TextField,
1210
+ fc as Theme,
1211
+ ke as Tooltip
1000
1212
  };