@neowit/orbit-react 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orbit.js CHANGED
@@ -1,216 +1,217 @@
1
- import { jsxs as b, jsx as e, Fragment as x0 } from "react/jsx-runtime";
2
- import { forwardRef as Z0, useMemo as n0, useState as U, useRef as y0, useEffect as _0, useCallback as W, useLayoutEffect as H0 } from "react";
3
- const P0 = "M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z", W0 = "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z";
4
- function p0() {
5
- return /* @__PURE__ */ e("svg", { viewBox: "0 0 32 32", fill: "none", children: /* @__PURE__ */ e("path", { d: P0, fill: "currentColor" }) });
1
+ import { jsxs as a, jsx as e, Fragment as j0 } from "react/jsx-runtime";
2
+ import { forwardRef as k0, useMemo as U, createElement as Oe, useRef as F, useEffect as w0, useState as Z, useCallback as d0, useLayoutEffect as Ie } from "react";
3
+ import { createPortal as we } from "react-dom";
4
+ const Ee = "M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z", Me = "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z";
5
+ function te() {
6
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 32 32", fill: "none", children: /* @__PURE__ */ e("path", { d: Ee, fill: "currentColor" }) });
6
7
  }
7
- const r1 = Z0(
8
+ const nr = k0(
8
9
  function({
9
- variant: i = "primary",
10
- size: a = "medium",
11
- disabled: t = !1,
12
- loading: n = !1,
13
- loadingText: r,
14
- fullWidth: s = !1,
15
- pressed: y,
16
- count: _,
17
- description: u,
18
- disclosure: O,
19
- type: g = "button",
20
- href: H,
21
- target: M,
22
- onClick: $,
23
- children: A,
10
+ variant: l = "primary",
11
+ size: t = "medium",
12
+ disabled: i = !1,
13
+ loading: c = !1,
14
+ loadingText: o,
15
+ fullWidth: u = !1,
16
+ pressed: x,
17
+ count: f,
18
+ description: _,
19
+ disclosure: y,
20
+ type: k = "button",
21
+ href: p,
22
+ target: A,
23
+ onClick: b,
24
+ children: h,
24
25
  leadingIcon: w,
25
- trailingIcon: C
26
- }, N) {
27
- const k = !A && !u && (!!w || !!C), P = !!u, p = t || n, j = n0(() => O === !0 || O === "down" ? "down" : O === "up" ? "up" : null, [O]), z = n0(() => {
28
- const S = [
26
+ trailingIcon: D
27
+ }, I) {
28
+ const S = !h && !_ && (!!w || !!D), G = !!_, L = i || c, g = U(() => y === !0 || y === "down" ? "down" : y === "up" ? "up" : null, [y]), W = U(() => {
29
+ const T = [
29
30
  "orb-btn",
30
- `orb-btn--${i}`,
31
- `orb-btn--${a}`
31
+ `orb-btn--${l}`,
32
+ `orb-btn--${t}`
32
33
  ];
33
- return s && S.push("orb-btn--full-width"), n && S.push("orb-btn--loading"), t && S.push("orb-btn--disabled"), y === !0 && S.push("orb-btn--pressed"), k && S.push("orb-btn--icon-only"), P && S.push("orb-btn--compound"), S.join(" ");
34
- }, [i, a, s, n, t, y, k, P]);
35
- function o0(S) {
36
- if (p) {
37
- S.preventDefault();
34
+ return u && T.push("orb-btn--full-width"), c && T.push("orb-btn--loading"), i && T.push("orb-btn--disabled"), x === !0 && T.push("orb-btn--pressed"), S && T.push("orb-btn--icon-only"), G && T.push("orb-btn--compound"), T.join(" ");
35
+ }, [l, t, u, c, i, x, S, G]);
36
+ function N(T) {
37
+ if (L) {
38
+ T.preventDefault();
38
39
  return;
39
40
  }
40
- $ == null || $(S);
41
+ b == null || b(T);
41
42
  }
42
- const r0 = n && !r, s0 = n && r ? /* @__PURE__ */ b(x0, { children: [
43
- /* @__PURE__ */ e("span", { className: "orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible", "aria-hidden": "true", children: /* @__PURE__ */ e(p0, {}) }),
44
- /* @__PURE__ */ e("span", { className: "orb-btn__label", children: r })
45
- ] }) : /* @__PURE__ */ b(x0, { children: [
43
+ const V = c && !o, l0 = c && o ? /* @__PURE__ */ a(j0, { children: [
44
+ /* @__PURE__ */ e("span", { className: "orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible", "aria-hidden": "true", children: /* @__PURE__ */ e(te, {}) }),
45
+ /* @__PURE__ */ e("span", { className: "orb-btn__label", children: o })
46
+ ] }) : /* @__PURE__ */ a(j0, { children: [
46
47
  w && /* @__PURE__ */ e("span", { className: "orb-btn__icon", children: w }),
47
- (A || u) && /* @__PURE__ */ b("span", { className: "orb-btn__content", children: [
48
- A && /* @__PURE__ */ e("span", { className: "orb-btn__label", children: A }),
49
- u && /* @__PURE__ */ e("span", { className: "orb-btn__description", children: u })
48
+ (h || _) && /* @__PURE__ */ a("span", { className: "orb-btn__content", children: [
49
+ h && /* @__PURE__ */ e("span", { className: "orb-btn__label", children: h }),
50
+ _ && /* @__PURE__ */ e("span", { className: "orb-btn__description", children: _ })
50
51
  ] }),
51
- _ !== void 0 && /* @__PURE__ */ e("span", { className: "orb-btn__count", children: _ }),
52
- C && /* @__PURE__ */ e("span", { className: "orb-btn__icon", children: C }),
53
- j && /* @__PURE__ */ e(
52
+ f !== void 0 && /* @__PURE__ */ e("span", { className: "orb-btn__count", children: f }),
53
+ D && /* @__PURE__ */ e("span", { className: "orb-btn__icon", children: D }),
54
+ g && /* @__PURE__ */ e(
54
55
  "span",
55
56
  {
56
- className: `orb-btn__disclosure${j === "up" ? " orb-btn__disclosure--up" : ""}`,
57
+ className: `orb-btn__disclosure${g === "up" ? " orb-btn__disclosure--up" : ""}`,
57
58
  "aria-hidden": "true",
58
- children: /* @__PURE__ */ e("svg", { viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: W0 }) })
59
+ children: /* @__PURE__ */ e("svg", { viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: Me }) })
59
60
  }
60
61
  )
61
62
  ] });
62
- return H ? /* @__PURE__ */ b(
63
+ return p ? /* @__PURE__ */ a(
63
64
  "a",
64
65
  {
65
- ref: N,
66
- className: z,
67
- href: H,
68
- target: M,
69
- "aria-disabled": p ? "true" : void 0,
70
- tabIndex: p ? -1 : void 0,
71
- rel: M === "_blank" ? "noopener noreferrer" : void 0,
72
- "aria-pressed": y !== void 0 ? y ? "true" : "false" : void 0,
73
- onClick: o0,
66
+ ref: I,
67
+ className: W,
68
+ href: p,
69
+ target: A,
70
+ "aria-disabled": L ? "true" : void 0,
71
+ tabIndex: L ? -1 : void 0,
72
+ rel: A === "_blank" ? "noopener noreferrer" : void 0,
73
+ "aria-pressed": x !== void 0 ? x ? "true" : "false" : void 0,
74
+ onClick: N,
74
75
  children: [
75
76
  /* @__PURE__ */ e(
76
77
  "span",
77
78
  {
78
- className: `orb-btn__spinner${r0 ? " orb-btn__spinner--visible" : ""}`,
79
+ className: `orb-btn__spinner${V ? " orb-btn__spinner--visible" : ""}`,
79
80
  "aria-hidden": "true",
80
- children: /* @__PURE__ */ e(p0, {})
81
+ children: /* @__PURE__ */ e(te, {})
81
82
  }
82
83
  ),
83
- s0
84
+ l0
84
85
  ]
85
86
  }
86
- ) : /* @__PURE__ */ b(
87
+ ) : /* @__PURE__ */ a(
87
88
  "button",
88
89
  {
89
- ref: N,
90
- className: z,
91
- type: g,
92
- disabled: p || void 0,
93
- "aria-pressed": y !== void 0 ? y ? "true" : "false" : void 0,
94
- onClick: o0,
90
+ ref: I,
91
+ className: W,
92
+ type: k,
93
+ disabled: L || void 0,
94
+ "aria-pressed": x !== void 0 ? x ? "true" : "false" : void 0,
95
+ onClick: N,
95
96
  children: [
96
97
  /* @__PURE__ */ e(
97
98
  "span",
98
99
  {
99
- className: `orb-btn__spinner${r0 ? " orb-btn__spinner--visible" : ""}`,
100
+ className: `orb-btn__spinner${V ? " orb-btn__spinner--visible" : ""}`,
100
101
  "aria-hidden": "true",
101
- children: /* @__PURE__ */ e(p0, {})
102
+ children: /* @__PURE__ */ e(te, {})
102
103
  }
103
104
  ),
104
- s0
105
+ l0
105
106
  ]
106
107
  }
107
108
  );
108
109
  }
109
110
  );
110
- function i1({
111
- type: o = "soft",
112
- color: i = "gray",
113
- maxWidth: a,
114
- iconOnly: t = !1,
115
- icon: n,
116
- children: r
111
+ function dr({
112
+ type: s = "soft",
113
+ color: l = "gray",
114
+ maxWidth: t,
115
+ iconOnly: i = !1,
116
+ icon: c,
117
+ children: o
117
118
  }) {
118
- if (o === "dot")
119
+ if (s === "dot")
119
120
  return /* @__PURE__ */ e(
120
121
  "span",
121
122
  {
122
- className: `orb-badge orb-badge--dot orb-badge--${i}`,
123
- "aria-label": `Status: ${i}`
123
+ className: `orb-badge orb-badge--dot orb-badge--${l}`,
124
+ "aria-label": `Status: ${l}`
124
125
  }
125
126
  );
126
- const s = n0(() => {
127
- const _ = ["orb-badge", `orb-badge--${o}`, `orb-badge--${i}`];
128
- return t && _.push("orb-badge--icon-only"), _.join(" ");
129
- }, [o, i, t]), y = n0(
130
- () => a ? { maxWidth: a, overflow: "hidden", textOverflow: "ellipsis" } : void 0,
131
- [a]
127
+ const u = U(() => {
128
+ const f = ["orb-badge", `orb-badge--${s}`, `orb-badge--${l}`];
129
+ return i && f.push("orb-badge--icon-only"), f.join(" ");
130
+ }, [s, l, i]), x = U(
131
+ () => t ? { maxWidth: t, overflow: "hidden", textOverflow: "ellipsis" } : void 0,
132
+ [t]
132
133
  );
133
- return /* @__PURE__ */ b("span", { className: s, children: [
134
- o === "status" && /* @__PURE__ */ e("span", { className: "orb-badge__dot" }),
135
- o === "icon" && n,
136
- !t && /* @__PURE__ */ e("span", { className: "orb-badge__label", style: y, children: r })
134
+ return /* @__PURE__ */ a("span", { className: u, children: [
135
+ s === "status" && /* @__PURE__ */ e("span", { className: "orb-badge__dot" }),
136
+ s === "icon" && c,
137
+ !i && /* @__PURE__ */ e("span", { className: "orb-badge__label", style: x, children: o })
137
138
  ] });
138
139
  }
139
- function w0({
140
- label: o,
141
- required: i = !1,
142
- optional: a = !1,
143
- disabled: t = !1,
144
- charCount: n,
145
- maxLength: r
140
+ function ce({
141
+ label: s,
142
+ required: l = !1,
143
+ optional: t = !1,
144
+ disabled: i = !1,
145
+ charCount: c,
146
+ maxLength: o
146
147
  }) {
147
- if (!o && r == null) return null;
148
- const s = i ? " (obrigatório)" : a ? " (opcional)" : "";
149
- return /* @__PURE__ */ b("div", { className: "orb-field-label", children: [
150
- o && /* @__PURE__ */ b(
148
+ if (!s && o == null) return null;
149
+ const u = l ? " (obrigatório)" : t ? " (opcional)" : "";
150
+ return /* @__PURE__ */ a("div", { className: "orb-field-label", children: [
151
+ s && /* @__PURE__ */ a(
151
152
  "label",
152
153
  {
153
- className: `orb-field-label__text${t ? " orb-field-label__text--disabled" : ""}`,
154
+ className: `orb-field-label__text${i ? " orb-field-label__text--disabled" : ""}`,
154
155
  children: [
155
- o,
156
- s && /* @__PURE__ */ e("span", { className: "orb-field-label__suffix", children: s })
156
+ s,
157
+ u && /* @__PURE__ */ e("span", { className: "orb-field-label__suffix", children: u })
157
158
  ]
158
159
  }
159
160
  ),
160
- r != null && /* @__PURE__ */ e(
161
+ o != null && /* @__PURE__ */ e(
161
162
  "span",
162
163
  {
163
- className: `orb-field-label__counter${t ? " orb-field-label__counter--disabled" : ""}`,
164
- children: n ?? 0
164
+ className: `orb-field-label__counter${i ? " orb-field-label__counter--disabled" : ""}`,
165
+ children: c ?? 0
165
166
  }
166
167
  )
167
168
  ] });
168
169
  }
169
- function N0({
170
- variant: o = "neutral",
171
- disabled: i = !1,
172
- children: a
170
+ function U0({
171
+ variant: s = "neutral",
172
+ disabled: l = !1,
173
+ children: t
173
174
  }) {
174
- const t = [
175
+ const i = [
175
176
  "orb-help-text",
176
- `orb-help-text--${o}`,
177
- i && o === "neutral" ? "orb-help-text--disabled" : ""
177
+ `orb-help-text--${s}`,
178
+ l && s === "neutral" ? "orb-help-text--disabled" : ""
178
179
  ].filter(Boolean).join(" ");
179
180
  return /* @__PURE__ */ e(
180
181
  "span",
181
182
  {
182
- className: t,
183
- role: o === "negative" ? "alert" : void 0,
184
- children: a
183
+ className: i,
184
+ role: s === "negative" ? "alert" : void 0,
185
+ children: t
185
186
  }
186
187
  );
187
188
  }
188
- function S0({
189
- size: o = "medium",
190
- focused: i = !1,
191
- invalid: a = !1,
192
- disabled: t = !1,
193
- children: n
189
+ function ae({
190
+ size: s = "medium",
191
+ focused: l = !1,
192
+ invalid: t = !1,
193
+ disabled: i = !1,
194
+ children: c
194
195
  }) {
195
- const r = n0(() => {
196
- const s = ["orb-field-wrap", `orb-field-wrap--${o}`];
197
- return i && !t && s.push("orb-field-wrap--focus"), a && s.push("orb-field-wrap--invalid"), t && s.push("orb-field-wrap--disabled"), s.join(" ");
198
- }, [o, i, a, t]);
199
- return /* @__PURE__ */ e("div", { className: r, children: n });
196
+ const o = U(() => {
197
+ const u = ["orb-field-wrap", `orb-field-wrap--${s}`];
198
+ return l && !i && u.push("orb-field-wrap--focus"), t && u.push("orb-field-wrap--invalid"), i && u.push("orb-field-wrap--disabled"), u.join(" ");
199
+ }, [s, l, t, i]);
200
+ return /* @__PURE__ */ e("div", { className: o, children: c });
200
201
  }
201
- function A0({
202
- status: o,
203
- size: i = "md",
204
- filled: a = !1,
205
- inverted: t = !1
202
+ function Y0({
203
+ status: s,
204
+ size: l = "md",
205
+ filled: t = !1,
206
+ inverted: i = !1
206
207
  }) {
207
- const n = [
208
+ const c = [
208
209
  "orb-status-icon",
209
- `orb-status-icon--${o}`,
210
- `orb-status-icon--${i}`,
211
- a ? "orb-status-icon--filled" : "",
212
- t ? "orb-status-icon--inverted" : ""
213
- ].filter(Boolean).join(" "), r = {
210
+ `orb-status-icon--${s}`,
211
+ `orb-status-icon--${l}`,
212
+ t ? "orb-status-icon--filled" : "",
213
+ i ? "orb-status-icon--inverted" : ""
214
+ ].filter(Boolean).join(" "), o = {
214
215
  viewBox: "0 0 24 24",
215
216
  fill: "none",
216
217
  stroke: "currentColor",
@@ -219,372 +220,1598 @@ function A0({
219
220
  strokeLinejoin: "round",
220
221
  "aria-hidden": !0
221
222
  };
222
- let s;
223
- return o === "success" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
223
+ let u;
224
+ return s === "success" ? u = /* @__PURE__ */ a("svg", { ...o, children: [
224
225
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
225
226
  /* @__PURE__ */ e("path", { d: "m9 12 2 2 4-4" })
226
- ] }) : o === "warning" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
227
+ ] }) : s === "warning" ? u = /* @__PURE__ */ a("svg", { ...o, children: [
227
228
  /* @__PURE__ */ e("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
228
229
  /* @__PURE__ */ e("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
229
230
  /* @__PURE__ */ e("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
230
- ] }) : o === "error" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
231
+ ] }) : s === "error" ? u = /* @__PURE__ */ a("svg", { ...o, children: [
231
232
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
232
233
  /* @__PURE__ */ e("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
233
234
  /* @__PURE__ */ e("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
234
- ] }) : s = /* @__PURE__ */ b("svg", { ...r, children: [
235
+ ] }) : u = /* @__PURE__ */ a("svg", { ...o, children: [
235
236
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
236
237
  /* @__PURE__ */ e("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
237
238
  /* @__PURE__ */ e("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
238
- ] }), /* @__PURE__ */ e("span", { className: n, role: "img", "aria-label": o, children: s });
239
+ ] }), /* @__PURE__ */ e("span", { className: c, role: "img", "aria-label": s, children: u });
240
+ }
241
+ const Te = {
242
+ h1: "h1",
243
+ h2: "h2",
244
+ h3: "h3",
245
+ h4: "h4",
246
+ h5: "h5",
247
+ h6: "h6",
248
+ "body-large": "p",
249
+ "body-medium": "p",
250
+ "body-small": "p",
251
+ "body-extra-small": "p",
252
+ "caption-large": "span",
253
+ "caption-small": "span",
254
+ "button-large": "span",
255
+ "button-medium": "span",
256
+ "button-small": "span"
257
+ }, br = k0(
258
+ function({ variant: l, as: t, weight: i, children: c, className: o }, u) {
259
+ const x = t || Te[l] || "span", f = [
260
+ "orb-text",
261
+ `orb-text--${l}`,
262
+ i ? `orb-text--w-${i}` : "",
263
+ o || ""
264
+ ].filter(Boolean).join(" ");
265
+ return Oe(x, { ref: u, className: f }, c);
266
+ }
267
+ ), hr = k0(
268
+ function({
269
+ checked: l = !1,
270
+ indeterminate: t = !1,
271
+ disabled: i = !1,
272
+ label: c,
273
+ description: o,
274
+ onChange: u
275
+ }, x) {
276
+ const f = F(null);
277
+ w0(() => {
278
+ f.current && (f.current.indeterminate = t);
279
+ }, [t]);
280
+ function _() {
281
+ i || u == null || u(!l);
282
+ }
283
+ return /* @__PURE__ */ a(
284
+ "label",
285
+ {
286
+ ref: x,
287
+ className: `orb-checkbox${i ? " orb-checkbox--disabled" : ""}`,
288
+ children: [
289
+ /* @__PURE__ */ a(
290
+ "span",
291
+ {
292
+ className: [
293
+ "orb-checkbox__box",
294
+ l && !t ? "orb-checkbox__box--checked" : "",
295
+ t ? "orb-checkbox__box--indeterminate" : "",
296
+ i ? "orb-checkbox__box--disabled" : ""
297
+ ].filter(Boolean).join(" "),
298
+ children: [
299
+ /* @__PURE__ */ e(
300
+ "input",
301
+ {
302
+ ref: f,
303
+ type: "checkbox",
304
+ checked: l,
305
+ "aria-checked": t ? "mixed" : l,
306
+ disabled: i,
307
+ className: "orb-checkbox__input",
308
+ onChange: _
309
+ }
310
+ ),
311
+ /* @__PURE__ */ e(
312
+ "svg",
313
+ {
314
+ className: `orb-checkbox__icon${l && !t ? " orb-checkbox__icon--visible" : ""}`,
315
+ viewBox: "0 0 16 16",
316
+ fill: "none",
317
+ children: /* @__PURE__ */ e("path", { d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z", fill: "currentColor" })
318
+ }
319
+ ),
320
+ /* @__PURE__ */ e(
321
+ "svg",
322
+ {
323
+ className: `orb-checkbox__icon orb-checkbox__icon--dash${t ? " orb-checkbox__icon--visible" : ""}`,
324
+ viewBox: "0 0 16 16",
325
+ fill: "none",
326
+ children: /* @__PURE__ */ e("path", { d: "M3 8h10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
327
+ }
328
+ )
329
+ ]
330
+ }
331
+ ),
332
+ (c || o) && /* @__PURE__ */ a("span", { className: "orb-checkbox__content", children: [
333
+ c && /* @__PURE__ */ e("span", { className: "orb-checkbox__label", children: c }),
334
+ o && /* @__PURE__ */ e("span", { className: "orb-checkbox__description", children: o })
335
+ ] })
336
+ ]
337
+ }
338
+ );
339
+ }
340
+ ), ur = k0(
341
+ function({
342
+ value: l,
343
+ checked: t = !1,
344
+ disabled: i = !1,
345
+ label: c,
346
+ description: o,
347
+ name: u,
348
+ onChange: x
349
+ }, f) {
350
+ function _() {
351
+ i || x == null || x(l);
352
+ }
353
+ return /* @__PURE__ */ a(
354
+ "label",
355
+ {
356
+ ref: f,
357
+ className: `orb-radio${i ? " orb-radio--disabled" : ""}`,
358
+ children: [
359
+ /* @__PURE__ */ a(
360
+ "span",
361
+ {
362
+ className: [
363
+ "orb-radio__circle",
364
+ t ? "orb-radio__circle--checked" : "",
365
+ i ? "orb-radio__circle--disabled" : ""
366
+ ].filter(Boolean).join(" "),
367
+ children: [
368
+ /* @__PURE__ */ e(
369
+ "input",
370
+ {
371
+ type: "radio",
372
+ name: u,
373
+ value: l,
374
+ checked: t,
375
+ disabled: i,
376
+ "aria-label": c || l,
377
+ className: "orb-radio__input",
378
+ onChange: _
379
+ }
380
+ ),
381
+ /* @__PURE__ */ e("span", { className: `orb-radio__dot${t ? " orb-radio__dot--visible" : ""}` })
382
+ ]
383
+ }
384
+ ),
385
+ (c || o) && /* @__PURE__ */ a("span", { className: "orb-radio__content", children: [
386
+ c && /* @__PURE__ */ e("span", { className: "orb-radio__label", children: c }),
387
+ o && /* @__PURE__ */ e("span", { className: "orb-radio__description", children: o })
388
+ ] })
389
+ ]
390
+ }
391
+ );
392
+ }
393
+ ), fr = k0(
394
+ function({
395
+ checked: l = !1,
396
+ disabled: t = !1,
397
+ label: i,
398
+ description: c,
399
+ onChange: o
400
+ }, u) {
401
+ function x() {
402
+ t || o == null || o(!l);
403
+ }
404
+ return /* @__PURE__ */ a(
405
+ "label",
406
+ {
407
+ ref: u,
408
+ className: `orb-switch${t ? " orb-switch--disabled" : ""}`,
409
+ children: [
410
+ /* @__PURE__ */ e(
411
+ "button",
412
+ {
413
+ type: "button",
414
+ role: "switch",
415
+ "aria-checked": l,
416
+ "aria-label": i,
417
+ disabled: t,
418
+ className: [
419
+ "orb-switch__track",
420
+ l ? "orb-switch__track--on" : "",
421
+ t ? "orb-switch__track--disabled" : ""
422
+ ].filter(Boolean).join(" "),
423
+ onClick: x,
424
+ children: /* @__PURE__ */ e("span", { className: "orb-switch__thumb" })
425
+ }
426
+ ),
427
+ (i || c) && /* @__PURE__ */ a("span", { className: "orb-switch__content", children: [
428
+ i && /* @__PURE__ */ e("span", { className: "orb-switch__label", children: i }),
429
+ c && /* @__PURE__ */ e("span", { className: "orb-switch__description", children: c })
430
+ ] })
431
+ ]
432
+ }
433
+ );
434
+ }
435
+ );
436
+ function pr({
437
+ text: s,
438
+ placement: l = "top",
439
+ maxWidth: t,
440
+ showDelay: i = 100,
441
+ hideDelay: c = 80,
442
+ children: o,
443
+ content: u
444
+ }) {
445
+ const [x, f] = Z(!1), _ = F(null), y = F(null), k = d0(() => {
446
+ y.current && (clearTimeout(y.current), y.current = null), _.current = setTimeout(() => f(!0), i);
447
+ }, [i]), p = d0(() => {
448
+ _.current && (clearTimeout(_.current), _.current = null), y.current = setTimeout(() => f(!1), c);
449
+ }, [c]), A = d0(() => {
450
+ _.current && (clearTimeout(_.current), _.current = null), y.current && (clearTimeout(y.current), y.current = null), f(!1);
451
+ }, []);
452
+ return /* @__PURE__ */ a(
453
+ "span",
454
+ {
455
+ className: "orb-tooltip-trigger",
456
+ onMouseEnter: k,
457
+ onMouseLeave: p,
458
+ onFocus: k,
459
+ onBlur: p,
460
+ onKeyDown: (b) => {
461
+ b.key === "Escape" && A();
462
+ },
463
+ children: [
464
+ o,
465
+ x && /* @__PURE__ */ a(
466
+ "span",
467
+ {
468
+ role: "tooltip",
469
+ className: `orb-tooltip orb-tooltip--${l}`,
470
+ style: t ? { maxWidth: t, whiteSpace: "normal" } : void 0,
471
+ children: [
472
+ u || s,
473
+ /* @__PURE__ */ e("span", { className: "orb-tooltip__arrow" })
474
+ ]
475
+ }
476
+ )
477
+ ]
478
+ }
479
+ );
239
480
  }
240
- const j0 = {
481
+ const He = {
241
482
  cpf: "###.###.###-##",
242
483
  cnpj: "##.###.###/####-##",
243
484
  cep: "#####-###",
244
485
  tel: "(##) ####-####",
245
486
  cel: "(##) #####-####"
246
487
  };
247
- function v0(o, i) {
248
- const a = o.replace(/\D/g, "");
249
- let t = "", n = 0;
250
- for (let r = 0; r < i.length && n < a.length; r++)
251
- i[r] === "#" ? (t += a[n], n++) : t += i[r];
252
- return t;
488
+ function me(s, l) {
489
+ const t = s.replace(/\D/g, "");
490
+ let i = "", c = 0;
491
+ for (let o = 0; o < l.length && c < t.length; o++)
492
+ l[o] === "#" ? (i += t[c], c++) : i += l[o];
493
+ return i;
253
494
  }
254
- function z0(o) {
255
- return o.replace(/\D/g, "");
495
+ function Re(s) {
496
+ return s.replace(/\D/g, "");
256
497
  }
257
- function D0(o) {
258
- return j0[o] ?? o;
498
+ function Fe(s) {
499
+ return He[s] ?? s;
259
500
  }
260
- const R0 = "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z", V0 = "M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.17-1.4,8.12,8.12,0,0,0,.75-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z", I0 = "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z", T0 = "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128,169.47,169.47,0,0,1,48.07,97.29C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.29A169.47,169.47,0,0,1,231.43,128C223.72,141.72,192.44,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z", G0 = "M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a120.69,120.69,0,0,0,52.57-12.13l21.51,23.75A8,8,0,0,0,208,224a8,8,0,0,0,5.92-13.38ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128c4.65-8.48,19.23-33.33,43.78-49.93l18.44,20.29A48,48,0,0,0,128,176a47.58,47.58,0,0,0,12.27-1.63L155,190.72A104.82,104.82,0,0,1,128,192Zm-4-80.18,29.58,32.54A32,32,0,0,1,124,111.82Zm123.31,12.94c-.35.79-8.82,19.57-27.65,38.4A8,8,0,0,1,204.34,152c14.54-14.54,23.32-29.36,27.09-36A169.47,169.47,0,0,0,207.93,85.3C185.67,63.19,158.78,52,128,52a121.12,121.12,0,0,0-19.69,1.6,8,8,0,1,1-2.62-15.78A137.7,137.7,0,0,1,128,36c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,124.76ZM164,128a36,36,0,0,0-6.21-20.26,8,8,0,1,1,13.42-8.7A52,52,0,0,1,180,128a8,8,0,0,1-16,0Z", U0 = "M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z", q0 = "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z";
261
- function a1({
262
- value: o = "",
263
- onChange: i,
264
- label: a,
265
- placeholder: t,
266
- size: n = "medium",
267
- state: r = "default",
268
- required: s = !1,
269
- optional: y = !1,
270
- helpText: _,
271
- maxLength: u,
272
- prefixText: O,
273
- suffixText: g,
274
- validationIcon: H,
275
- hyperlinkText: M,
276
- hyperlinkHref: $,
277
- onHyperlinkClick: A,
501
+ const Pe = "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z", je = "M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.17-1.4,8.12,8.12,0,0,0,.75-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z", We = "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z", ze = "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128,169.47,169.47,0,0,1,48.07,97.29C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.29A169.47,169.47,0,0,1,231.43,128C223.72,141.72,192.44,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z", Ze = "M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a120.69,120.69,0,0,0,52.57-12.13l21.51,23.75A8,8,0,0,0,208,224a8,8,0,0,0,5.92-13.38ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128c4.65-8.48,19.23-33.33,43.78-49.93l18.44,20.29A48,48,0,0,0,128,176a47.58,47.58,0,0,0,12.27-1.63L155,190.72A104.82,104.82,0,0,1,128,192Zm-4-80.18,29.58,32.54A32,32,0,0,1,124,111.82Zm123.31,12.94c-.35.79-8.82,19.57-27.65,38.4A8,8,0,0,1,204.34,152c14.54-14.54,23.32-29.36,27.09-36A169.47,169.47,0,0,0,207.93,85.3C185.67,63.19,158.78,52,128,52a121.12,121.12,0,0,0-19.69,1.6,8,8,0,1,1-2.62-15.78A137.7,137.7,0,0,1,128,36c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,124.76ZM164,128a36,36,0,0,0-6.21-20.26,8,8,0,1,1,13.42-8.7A52,52,0,0,1,180,128a8,8,0,0,1-16,0Z", Ve = "M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z", Ke = "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z";
502
+ function kr({
503
+ value: s = "",
504
+ onChange: l,
505
+ label: t,
506
+ placeholder: i,
507
+ size: c = "medium",
508
+ state: o = "default",
509
+ required: u = !1,
510
+ optional: x = !1,
511
+ helpText: f,
512
+ maxLength: _,
513
+ prefixText: y,
514
+ suffixText: k,
515
+ validationIcon: p,
516
+ hyperlinkText: A,
517
+ hyperlinkHref: b,
518
+ onHyperlinkClick: h,
278
519
  type: w = "text",
279
- id: C,
280
- min: N,
281
- max: k,
282
- step: P = 1,
283
- mask: p,
284
- onClear: j,
285
- prefixIcon: z,
286
- suffixIcon: o0,
287
- hyperlinkIcon: r0
520
+ id: D,
521
+ min: I,
522
+ max: S,
523
+ step: G = 1,
524
+ mask: L,
525
+ onClear: g,
526
+ prefixIcon: W,
527
+ suffixIcon: N,
528
+ hyperlinkIcon: V
288
529
  }) {
289
- const [s0, S] = U(!1), [b0, F0] = U(!1), [D, i0] = U(o), h0 = y0(null), k0 = w === "search", u0 = w === "password", I = w === "number", f0 = w === "tel", T = !!p, a0 = p ? D0(p) : "", O0 = D.length > 0, $0 = T ? v0(D, a0) : D, L0 = u0 ? b0 ? "text" : "password" : w;
290
- _0(() => {
291
- i0(o ?? "");
292
- }, [o]);
293
- const M0 = W(
294
- (L) => {
295
- const R = L.target;
296
- if (T) {
297
- const V = z0(R.value), d0 = a0.replace(/[^#]/g, "").length, G = V.slice(0, d0);
298
- i0(G);
299
- const E0 = v0(G, a0);
300
- R.value = E0, i == null || i(G);
530
+ const [l0, T] = Z(!1), [o0, b0] = Z(!1), [K, O] = Z(s), z = F(null), a0 = w === "search", h0 = w === "password", E = w === "number", P = w === "tel", v = !!L, t0 = L ? Fe(L) : "", A0 = K.length > 0, N0 = v ? me(K, t0) : K, W0 = h0 ? o0 ? "text" : "password" : w;
531
+ w0(() => {
532
+ O(s ?? "");
533
+ }, [s]);
534
+ const B0 = d0(
535
+ (q) => {
536
+ const X = q.target;
537
+ if (v) {
538
+ const i0 = Re(X.value), f0 = t0.replace(/[^#]/g, "").length, s0 = i0.slice(0, f0);
539
+ O(s0);
540
+ const p0 = me(s0, t0);
541
+ X.value = p0, l == null || l(s0);
301
542
  } else
302
- i0(R.value), i == null || i(R.value);
543
+ O(X.value), l == null || l(X.value);
303
544
  },
304
- [T, a0, i]
305
- ), C0 = W(() => {
306
- var L;
307
- i0(""), i == null || i(""), j == null || j(), (L = h0.current) == null || L.focus();
308
- }, [i, j]), B0 = W(() => {
309
- var L;
310
- F0((R) => !R), (L = h0.current) == null || L.focus();
311
- }, []), m0 = W(
312
- (L) => {
313
- var G;
314
- let V = (parseFloat(D) || 0) + P * L;
315
- N != null && V < N && (V = N), k != null && V > k && (V = k);
316
- const d0 = String(V);
317
- i0(d0), i == null || i(d0), (G = h0.current) == null || G.focus();
545
+ [v, t0, l]
546
+ ), z0 = d0(() => {
547
+ var q;
548
+ O(""), l == null || l(""), g == null || g(), (q = z.current) == null || q.focus();
549
+ }, [l, g]), S0 = d0(() => {
550
+ var q;
551
+ b0((X) => !X), (q = z.current) == null || q.focus();
552
+ }, []), u0 = d0(
553
+ (q) => {
554
+ var s0;
555
+ let i0 = (parseFloat(K) || 0) + G * q;
556
+ I != null && i0 < I && (i0 = I), S != null && i0 > S && (i0 = S);
557
+ const f0 = String(i0);
558
+ O(f0), l == null || l(f0), (s0 = z.current) == null || s0.focus();
318
559
  },
319
- [D, P, N, k, i]
560
+ [K, G, I, S, l]
320
561
  );
321
- return /* @__PURE__ */ b("div", { className: `orb-text-field orb-text-field--${n}`, children: [
322
- (a || u != null) && /* @__PURE__ */ e(
323
- w0,
562
+ return /* @__PURE__ */ a("div", { className: `orb-text-field orb-text-field--${c}`, children: [
563
+ (t || _ != null) && /* @__PURE__ */ e(
564
+ ce,
324
565
  {
325
- label: a,
326
- required: s,
327
- optional: y,
328
- disabled: r === "disabled",
329
- charCount: (o == null ? void 0 : o.length) ?? 0,
330
- maxLength: u
566
+ label: t,
567
+ required: u,
568
+ optional: x,
569
+ disabled: o === "disabled",
570
+ charCount: (s == null ? void 0 : s.length) ?? 0,
571
+ maxLength: _
331
572
  }
332
573
  ),
333
- /* @__PURE__ */ b(
334
- S0,
574
+ /* @__PURE__ */ a(
575
+ ae,
335
576
  {
336
- size: n,
337
- focused: s0,
338
- invalid: r === "invalid",
339
- disabled: r === "disabled",
577
+ size: c,
578
+ focused: l0,
579
+ invalid: o === "invalid",
580
+ disabled: o === "disabled",
340
581
  children: [
341
- k0 && !z && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: R0 }) }) }),
342
- f0 && !z && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: V0 }) }) }),
343
- I && r !== "disabled" && /* @__PURE__ */ e(
582
+ a0 && !W && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: Pe }) }) }),
583
+ P && !W && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: je }) }) }),
584
+ E && o !== "disabled" && /* @__PURE__ */ e(
344
585
  "button",
345
586
  {
346
587
  type: "button",
347
588
  className: "orb-text-field__stepper",
348
589
  "aria-label": "Diminuir",
349
- disabled: N != null && (parseFloat(D) || 0) <= N,
350
- onClick: () => m0(-1),
351
- children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: U0 }) })
590
+ disabled: I != null && (parseFloat(K) || 0) <= I,
591
+ onClick: () => u0(-1),
592
+ children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: Ve }) })
352
593
  }
353
594
  ),
354
- z && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: z }),
355
- O && /* @__PURE__ */ e("span", { className: "orb-text-field__affix", children: O }),
595
+ W && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--prefix", children: W }),
596
+ y && /* @__PURE__ */ e("span", { className: "orb-text-field__affix", children: y }),
356
597
  /* @__PURE__ */ e(
357
598
  "input",
358
599
  {
359
- ref: h0,
360
- id: C,
361
- type: L0,
362
- value: T ? $0 : o,
363
- placeholder: t,
364
- disabled: r === "disabled",
365
- maxLength: T ? a0.length : u,
366
- min: I ? N : void 0,
367
- max: I ? k : void 0,
368
- step: I ? P : void 0,
369
- inputMode: I ? "numeric" : f0 ? "tel" : T ? "numeric" : void 0,
370
- "aria-invalid": r === "invalid" ? !0 : void 0,
371
- "aria-label": k0 && !a ? t || "Pesquisar" : void 0,
600
+ ref: z,
601
+ id: D,
602
+ type: W0,
603
+ value: v ? N0 : s,
604
+ placeholder: i,
605
+ disabled: o === "disabled",
606
+ maxLength: v ? t0.length : _,
607
+ min: E ? I : void 0,
608
+ max: E ? S : void 0,
609
+ step: E ? G : void 0,
610
+ inputMode: E ? "numeric" : P ? "tel" : v ? "numeric" : void 0,
611
+ "aria-invalid": o === "invalid" ? !0 : void 0,
612
+ "aria-label": a0 && !t ? i || "Pesquisar" : void 0,
372
613
  className: "orb-text-field__input",
373
- onChange: M0,
374
- onFocus: () => S(!0),
375
- onBlur: () => S(!1)
614
+ onChange: B0,
615
+ onFocus: () => T(!0),
616
+ onBlur: () => T(!1)
376
617
  }
377
618
  ),
378
- H && r !== "invalid" && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--validation", children: /* @__PURE__ */ e(A0, { status: "success", size: "sm" }) }),
379
- k0 && O0 && r !== "disabled" && /* @__PURE__ */ e(
619
+ p && o !== "invalid" && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--validation", children: /* @__PURE__ */ e(Y0, { status: "success", size: "sm" }) }),
620
+ a0 && A0 && o !== "disabled" && /* @__PURE__ */ e(
380
621
  "button",
381
622
  {
382
623
  type: "button",
383
624
  className: "orb-text-field__clear",
384
625
  "aria-label": "Limpar busca",
385
- onClick: C0,
386
- children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: I0 }) })
626
+ onClick: z0,
627
+ children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: We }) })
387
628
  }
388
629
  ),
389
- u0 && r !== "disabled" && /* @__PURE__ */ e(
630
+ h0 && o !== "disabled" && /* @__PURE__ */ e(
390
631
  "button",
391
632
  {
392
633
  type: "button",
393
634
  className: "orb-text-field__toggle",
394
- "aria-label": b0 ? "Ocultar senha" : "Mostrar senha",
395
- onClick: B0,
396
- children: b0 ? /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: G0 }) }) : /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: T0 }) })
635
+ "aria-label": o0 ? "Ocultar senha" : "Mostrar senha",
636
+ onClick: S0,
637
+ children: o0 ? /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: Ze }) }) : /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: ze }) })
397
638
  }
398
639
  ),
399
- I && r !== "disabled" && /* @__PURE__ */ e(
640
+ E && o !== "disabled" && /* @__PURE__ */ e(
400
641
  "button",
401
642
  {
402
643
  type: "button",
403
644
  className: "orb-text-field__stepper",
404
645
  "aria-label": "Aumentar",
405
- disabled: k != null && (parseFloat(D) || 0) >= k,
406
- onClick: () => m0(1),
407
- children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: q0 }) })
646
+ disabled: S != null && (parseFloat(K) || 0) >= S,
647
+ onClick: () => u0(1),
648
+ children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: Ke }) })
408
649
  }
409
650
  ),
410
- g && /* @__PURE__ */ e("span", { className: "orb-text-field__affix", children: g }),
411
- o0 && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--suffix", children: o0 })
651
+ k && /* @__PURE__ */ e("span", { className: "orb-text-field__affix", children: k }),
652
+ N && /* @__PURE__ */ e("span", { className: "orb-text-field__icon orb-text-field__icon--suffix", children: N })
412
653
  ]
413
654
  }
414
655
  ),
415
- _ && /* @__PURE__ */ e(
416
- N0,
656
+ f && /* @__PURE__ */ e(
657
+ U0,
417
658
  {
418
- variant: r === "invalid" ? "negative" : "neutral",
419
- disabled: r === "disabled",
420
- children: _
659
+ variant: o === "invalid" ? "negative" : "neutral",
660
+ disabled: o === "disabled",
661
+ children: f
421
662
  }
422
663
  ),
423
- M && /* @__PURE__ */ b(
664
+ A && /* @__PURE__ */ a(
424
665
  "a",
425
666
  {
426
- href: $ || "#",
427
- className: `orb-text-field__hyperlink${r === "disabled" ? " orb-text-field__hyperlink--disabled" : ""}`,
428
- onClick: (L) => {
429
- L.preventDefault(), r !== "disabled" && (A == null || A());
667
+ href: b || "#",
668
+ className: `orb-text-field__hyperlink${o === "disabled" ? " orb-text-field__hyperlink--disabled" : ""}`,
669
+ onClick: (q) => {
670
+ q.preventDefault(), o !== "disabled" && (h == null || h());
430
671
  },
431
672
  children: [
432
- r0 && /* @__PURE__ */ e("span", { className: "orb-text-field__hyperlink-icon", children: r0 }),
433
- M
673
+ V && /* @__PURE__ */ e("span", { className: "orb-text-field__hyperlink-icon", children: V }),
674
+ A
434
675
  ]
435
676
  }
436
677
  )
437
678
  ] });
438
679
  }
439
- function t1({
440
- value: o = "",
441
- onChange: i,
442
- label: a,
443
- placeholder: t,
444
- size: n = "medium",
445
- state: r = "default",
446
- required: s = !1,
447
- optional: y = !1,
448
- helpText: _,
449
- maxLength: u,
450
- rows: O = 3,
451
- resize: g = "vertical",
452
- hyperlinkText: H,
453
- hyperlinkHref: M,
454
- onHyperlinkClick: $,
455
- id: A
680
+ function gr({
681
+ value: s = "",
682
+ onChange: l,
683
+ label: t,
684
+ placeholder: i,
685
+ size: c = "medium",
686
+ state: o = "default",
687
+ required: u = !1,
688
+ optional: x = !1,
689
+ helpText: f,
690
+ maxLength: _,
691
+ rows: y = 3,
692
+ resize: k = "vertical",
693
+ hyperlinkText: p,
694
+ hyperlinkHref: A,
695
+ onHyperlinkClick: b,
696
+ id: h
456
697
  }) {
457
- const [w, C] = U(!1), N = y0(null), k = W(() => {
458
- const p = N.current;
459
- p && (p.style.height = "auto", p.style.height = `${p.scrollHeight}px`);
460
- }, []), P = W(
461
- (p) => {
462
- i == null || i(p.target.value), g === "auto" && requestAnimationFrame(k);
698
+ const [w, D] = Z(!1), I = F(null), S = d0(() => {
699
+ const L = I.current;
700
+ L && (L.style.height = "auto", L.style.height = `${L.scrollHeight}px`);
701
+ }, []), G = d0(
702
+ (L) => {
703
+ l == null || l(L.target.value), k === "auto" && requestAnimationFrame(S);
463
704
  },
464
- [i, g, k]
705
+ [l, k, S]
465
706
  );
466
- return _0(() => {
467
- g === "auto" && k();
468
- }, [o, g, k]), H0(() => {
469
- g === "auto" && k();
470
- }, [g, k]), /* @__PURE__ */ b("div", { className: `orb-text-area orb-text-area--${n}`, children: [
471
- (a || u != null) && /* @__PURE__ */ e(
472
- w0,
707
+ return w0(() => {
708
+ k === "auto" && S();
709
+ }, [s, k, S]), Ie(() => {
710
+ k === "auto" && S();
711
+ }, [k, S]), /* @__PURE__ */ a("div", { className: `orb-text-area orb-text-area--${c}`, children: [
712
+ (t || _ != null) && /* @__PURE__ */ e(
713
+ ce,
473
714
  {
474
- label: a,
475
- required: s,
476
- optional: y,
477
- disabled: r === "disabled",
478
- charCount: (o == null ? void 0 : o.length) ?? 0,
479
- maxLength: u
715
+ label: t,
716
+ required: u,
717
+ optional: x,
718
+ disabled: o === "disabled",
719
+ charCount: (s == null ? void 0 : s.length) ?? 0,
720
+ maxLength: _
480
721
  }
481
722
  ),
482
723
  /* @__PURE__ */ e(
483
- S0,
724
+ ae,
484
725
  {
485
- size: n,
726
+ size: c,
486
727
  focused: w,
487
- invalid: r === "invalid",
488
- disabled: r === "disabled",
728
+ invalid: o === "invalid",
729
+ disabled: o === "disabled",
489
730
  children: /* @__PURE__ */ e(
490
731
  "textarea",
491
732
  {
492
- ref: N,
493
- id: A,
494
- value: o,
495
- placeholder: t,
496
- disabled: r === "disabled",
497
- maxLength: u,
498
- rows: O,
499
- "aria-invalid": r === "invalid" ? !0 : void 0,
500
- className: `orb-text-area__input orb-text-area__input--resize-${g}`,
501
- onChange: P,
502
- onFocus: () => C(!0),
503
- onBlur: () => C(!1)
733
+ ref: I,
734
+ id: h,
735
+ value: s,
736
+ placeholder: i,
737
+ disabled: o === "disabled",
738
+ maxLength: _,
739
+ rows: y,
740
+ "aria-invalid": o === "invalid" ? !0 : void 0,
741
+ className: `orb-text-area__input orb-text-area__input--resize-${k}`,
742
+ onChange: G,
743
+ onFocus: () => D(!0),
744
+ onBlur: () => D(!1)
504
745
  }
505
746
  )
506
747
  }
507
748
  ),
508
- _ && /* @__PURE__ */ e(
509
- N0,
749
+ f && /* @__PURE__ */ e(
750
+ U0,
510
751
  {
511
- variant: r === "invalid" ? "negative" : "neutral",
512
- disabled: r === "disabled",
513
- children: _
752
+ variant: o === "invalid" ? "negative" : "neutral",
753
+ disabled: o === "disabled",
754
+ children: f
514
755
  }
515
756
  ),
516
- H && /* @__PURE__ */ e(
757
+ p && /* @__PURE__ */ e(
517
758
  "a",
518
759
  {
519
- href: M || "#",
520
- className: `orb-text-area__hyperlink${r === "disabled" ? " orb-text-area__hyperlink--disabled" : ""}`,
521
- onClick: (p) => {
522
- p.preventDefault(), r !== "disabled" && ($ == null || $());
760
+ href: A || "#",
761
+ className: `orb-text-area__hyperlink${o === "disabled" ? " orb-text-area__hyperlink--disabled" : ""}`,
762
+ onClick: (L) => {
763
+ L.preventDefault(), o !== "disabled" && (b == null || b());
523
764
  },
524
- children: H
765
+ children: p
525
766
  }
526
767
  )
527
768
  ] });
528
769
  }
529
- const X0 = "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z";
530
- function c1({
531
- variant: o = "info",
532
- appearance: i = "soft",
533
- title: a,
534
- closable: t = !1,
535
- hideIcon: n = !1,
536
- onClose: r,
537
- children: s,
538
- icon: y,
539
- actions: _
770
+ const Ge = "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z";
771
+ function mr({
772
+ variant: s = "info",
773
+ appearance: l = "soft",
774
+ title: t,
775
+ closable: i = !1,
776
+ hideIcon: c = !1,
777
+ onClose: o,
778
+ children: u,
779
+ icon: x,
780
+ actions: f
540
781
  }) {
541
- const [u, O] = U(!0), [g, H] = U(!1), M = !n && o !== "neutral", $ = o === "warning" || o === "error" ? "alert" : "status", A = W(() => {
542
- H(!0);
543
- }, []), w = W(() => {
544
- g && (O(!1), r == null || r());
545
- }, [g, r]);
546
- if (!u) return null;
547
- const C = [
782
+ const [_, y] = Z(!0), [k, p] = Z(!1), A = !c && s !== "neutral", b = s === "warning" || s === "error" ? "alert" : "status", h = d0(() => {
783
+ p(!0);
784
+ }, []), w = d0(() => {
785
+ k && (y(!1), o == null || o());
786
+ }, [k, o]);
787
+ if (!_) return null;
788
+ const D = [
548
789
  "orb-alert",
549
- `orb-alert--${o}`,
550
- `orb-alert--${i}`,
551
- g ? "orb-alert--closing" : "",
552
- M ? "orb-alert--has-icon" : ""
790
+ `orb-alert--${s}`,
791
+ `orb-alert--${l}`,
792
+ k ? "orb-alert--closing" : "",
793
+ A ? "orb-alert--has-icon" : ""
553
794
  ].filter(Boolean).join(" ");
554
- return /* @__PURE__ */ b(
795
+ return /* @__PURE__ */ a(
555
796
  "div",
556
797
  {
557
- className: C,
558
- role: $,
798
+ className: D,
799
+ role: b,
559
800
  onTransitionEnd: w,
560
801
  children: [
561
- M && /* @__PURE__ */ e("span", { className: "orb-alert__icon", children: y || /* @__PURE__ */ e(
562
- A0,
802
+ A && /* @__PURE__ */ e("span", { className: "orb-alert__icon", children: x || /* @__PURE__ */ e(
803
+ Y0,
563
804
  {
564
- status: o,
805
+ status: s,
565
806
  size: "md"
566
807
  }
567
808
  ) }),
568
- /* @__PURE__ */ b("div", { className: "orb-alert__content", children: [
569
- a && /* @__PURE__ */ e("p", { className: "orb-alert__title", children: a }),
570
- s && /* @__PURE__ */ e("div", { className: "orb-alert__description", children: s }),
571
- _ && /* @__PURE__ */ e("div", { className: "orb-alert__actions", children: _ })
809
+ /* @__PURE__ */ a("div", { className: "orb-alert__content", children: [
810
+ t && /* @__PURE__ */ e("p", { className: "orb-alert__title", children: t }),
811
+ u && /* @__PURE__ */ e("div", { className: "orb-alert__description", children: u }),
812
+ f && /* @__PURE__ */ e("div", { className: "orb-alert__actions", children: f })
572
813
  ] }),
573
- t && /* @__PURE__ */ e(
814
+ i && /* @__PURE__ */ e(
574
815
  "button",
575
816
  {
576
817
  type: "button",
577
818
  className: "orb-alert__close",
578
819
  "aria-label": "Fechar",
579
- onClick: A,
580
- children: /* @__PURE__ */ e("svg", { viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: X0 }) })
820
+ onClick: h,
821
+ children: /* @__PURE__ */ e("svg", { viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: Ge }) })
581
822
  }
582
823
  )
583
824
  ]
584
825
  }
585
826
  );
586
827
  }
587
- var d = {
828
+ const _r = k0(
829
+ function({ orientation: l = "horizontal", children: t }, i) {
830
+ return /* @__PURE__ */ e(
831
+ "div",
832
+ {
833
+ ref: i,
834
+ className: `orb-btn-group orb-btn-group--${l}`,
835
+ role: "group",
836
+ children: t
837
+ }
838
+ );
839
+ }
840
+ ), xr = k0(
841
+ function({
842
+ value: l = [],
843
+ options: t,
844
+ label: i,
845
+ orientation: c = "vertical",
846
+ state: o = "default",
847
+ required: u = !1,
848
+ optional: x = !1,
849
+ helpText: f,
850
+ selectAll: _ = !1,
851
+ selectAllLabel: y = "Selecionar todos",
852
+ onChange: k
853
+ }, p) {
854
+ const A = F(null), b = o === "disabled", h = t.map((g) => g.value), w = h.length > 0 && h.every((g) => l.includes(g)), D = !w && l.length > 0;
855
+ w0(() => {
856
+ A.current && (A.current.indeterminate = D);
857
+ }, [D]);
858
+ const I = u ? " (obrigatório)" : x ? " (opcional)" : "";
859
+ function S(g) {
860
+ return l.includes(g);
861
+ }
862
+ function G(g) {
863
+ if (b) return;
864
+ const W = S(g) ? l.filter((N) => N !== g) : [...l, g];
865
+ k == null || k(W);
866
+ }
867
+ function L() {
868
+ b || k == null || k(w ? [] : [...h]);
869
+ }
870
+ return /* @__PURE__ */ a(
871
+ "fieldset",
872
+ {
873
+ ref: p,
874
+ className: [
875
+ "orb-checkbox-group",
876
+ `orb-checkbox-group--${c}`,
877
+ b ? "orb-checkbox-group--disabled" : ""
878
+ ].filter(Boolean).join(" "),
879
+ disabled: b || void 0,
880
+ "aria-invalid": o === "invalid" ? !0 : void 0,
881
+ role: "group",
882
+ children: [
883
+ i && /* @__PURE__ */ a(
884
+ "legend",
885
+ {
886
+ className: `orb-field-label__text orb-checkbox-group__legend${b ? " orb-field-label__text--disabled" : ""}`,
887
+ children: [
888
+ i,
889
+ I && /* @__PURE__ */ e("span", { className: "orb-field-label__suffix", children: I })
890
+ ]
891
+ }
892
+ ),
893
+ _ && /* @__PURE__ */ a(
894
+ "label",
895
+ {
896
+ className: `orb-checkbox orb-checkbox-group__select-all${b ? " orb-checkbox--disabled" : ""}`,
897
+ children: [
898
+ /* @__PURE__ */ a(
899
+ "span",
900
+ {
901
+ className: [
902
+ "orb-checkbox__box",
903
+ w ? "orb-checkbox__box--checked" : "",
904
+ D ? "orb-checkbox__box--indeterminate" : "",
905
+ b ? "orb-checkbox__box--disabled" : ""
906
+ ].filter(Boolean).join(" "),
907
+ children: [
908
+ /* @__PURE__ */ e(
909
+ "input",
910
+ {
911
+ ref: A,
912
+ type: "checkbox",
913
+ checked: w,
914
+ "aria-checked": D ? "mixed" : w,
915
+ disabled: b,
916
+ "aria-label": y,
917
+ className: "orb-checkbox__input",
918
+ onChange: L
919
+ }
920
+ ),
921
+ /* @__PURE__ */ e(
922
+ "svg",
923
+ {
924
+ className: `orb-checkbox__icon${w ? " orb-checkbox__icon--visible" : ""}`,
925
+ viewBox: "0 0 16 16",
926
+ fill: "none",
927
+ children: /* @__PURE__ */ e("path", { d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z", fill: "currentColor" })
928
+ }
929
+ ),
930
+ /* @__PURE__ */ e(
931
+ "svg",
932
+ {
933
+ className: `orb-checkbox__icon orb-checkbox__icon--dash${D ? " orb-checkbox__icon--visible" : ""}`,
934
+ viewBox: "0 0 16 16",
935
+ fill: "none",
936
+ children: /* @__PURE__ */ e("path", { d: "M3 8h10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
937
+ }
938
+ )
939
+ ]
940
+ }
941
+ ),
942
+ /* @__PURE__ */ e("span", { className: "orb-checkbox__content", children: /* @__PURE__ */ e("span", { className: "orb-checkbox__label", children: y }) })
943
+ ]
944
+ }
945
+ ),
946
+ /* @__PURE__ */ e("div", { className: `orb-checkbox-group__options orb-checkbox-group__options--${c}`, children: t.map((g) => /* @__PURE__ */ a(
947
+ "label",
948
+ {
949
+ className: `orb-checkbox${b ? " orb-checkbox--disabled" : ""}`,
950
+ children: [
951
+ /* @__PURE__ */ a(
952
+ "span",
953
+ {
954
+ className: [
955
+ "orb-checkbox__box",
956
+ S(g.value) ? "orb-checkbox__box--checked" : "",
957
+ b ? "orb-checkbox__box--disabled" : "",
958
+ o === "invalid" && !S(g.value) ? "orb-checkbox__box--invalid" : ""
959
+ ].filter(Boolean).join(" "),
960
+ children: [
961
+ /* @__PURE__ */ e(
962
+ "input",
963
+ {
964
+ type: "checkbox",
965
+ value: g.value,
966
+ checked: S(g.value),
967
+ disabled: b,
968
+ "aria-label": g.label,
969
+ className: "orb-checkbox__input",
970
+ onChange: () => G(g.value)
971
+ }
972
+ ),
973
+ /* @__PURE__ */ e(
974
+ "svg",
975
+ {
976
+ className: `orb-checkbox__icon${S(g.value) ? " orb-checkbox__icon--visible" : ""}`,
977
+ viewBox: "0 0 16 16",
978
+ fill: "none",
979
+ children: /* @__PURE__ */ e("path", { d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z", fill: "currentColor" })
980
+ }
981
+ )
982
+ ]
983
+ }
984
+ ),
985
+ /* @__PURE__ */ a("span", { className: "orb-checkbox__content", children: [
986
+ /* @__PURE__ */ e("span", { className: "orb-checkbox__label", children: g.label }),
987
+ g.description && /* @__PURE__ */ e("span", { className: "orb-checkbox__description", children: g.description })
988
+ ] })
989
+ ]
990
+ },
991
+ g.value
992
+ )) }),
993
+ f && /* @__PURE__ */ e(
994
+ U0,
995
+ {
996
+ variant: o === "invalid" ? "negative" : "neutral",
997
+ disabled: b,
998
+ children: f
999
+ }
1000
+ )
1001
+ ]
1002
+ }
1003
+ );
1004
+ }
1005
+ ), vr = k0(
1006
+ function({
1007
+ value: l,
1008
+ options: t,
1009
+ label: i,
1010
+ orientation: c = "vertical",
1011
+ state: o = "default",
1012
+ required: u = !1,
1013
+ optional: x = !1,
1014
+ helpText: f,
1015
+ name: _,
1016
+ onChange: y
1017
+ }, k) {
1018
+ const p = o === "disabled", A = u ? " (obrigatório)" : x ? " (opcional)" : "";
1019
+ function b(h) {
1020
+ p || y == null || y(h);
1021
+ }
1022
+ return /* @__PURE__ */ a(
1023
+ "fieldset",
1024
+ {
1025
+ ref: k,
1026
+ className: [
1027
+ "orb-radio-group",
1028
+ `orb-radio-group--${c}`,
1029
+ p ? "orb-radio-group--disabled" : ""
1030
+ ].filter(Boolean).join(" "),
1031
+ disabled: p || void 0,
1032
+ "aria-invalid": o === "invalid" ? !0 : void 0,
1033
+ role: "radiogroup",
1034
+ children: [
1035
+ i && /* @__PURE__ */ a(
1036
+ "legend",
1037
+ {
1038
+ className: `orb-field-label__text orb-radio-group__legend${p ? " orb-field-label__text--disabled" : ""}`,
1039
+ children: [
1040
+ i,
1041
+ A && /* @__PURE__ */ e("span", { className: "orb-field-label__suffix", children: A })
1042
+ ]
1043
+ }
1044
+ ),
1045
+ /* @__PURE__ */ e("div", { className: `orb-radio-group__options orb-radio-group__options--${c}`, children: t.map((h) => /* @__PURE__ */ a(
1046
+ "label",
1047
+ {
1048
+ className: `orb-radio${p ? " orb-radio--disabled" : ""}`,
1049
+ children: [
1050
+ /* @__PURE__ */ a(
1051
+ "span",
1052
+ {
1053
+ className: [
1054
+ "orb-radio__circle",
1055
+ l === h.value ? "orb-radio__circle--checked" : "",
1056
+ p ? "orb-radio__circle--disabled" : "",
1057
+ o === "invalid" && l !== h.value ? "orb-radio__circle--invalid" : ""
1058
+ ].filter(Boolean).join(" "),
1059
+ children: [
1060
+ /* @__PURE__ */ e(
1061
+ "input",
1062
+ {
1063
+ type: "radio",
1064
+ name: _,
1065
+ value: h.value,
1066
+ checked: l === h.value,
1067
+ disabled: p,
1068
+ "aria-label": h.label,
1069
+ className: "orb-radio__input",
1070
+ onChange: () => b(h.value)
1071
+ }
1072
+ ),
1073
+ /* @__PURE__ */ e("span", { className: `orb-radio__dot${l === h.value ? " orb-radio__dot--visible" : ""}` })
1074
+ ]
1075
+ }
1076
+ ),
1077
+ /* @__PURE__ */ a("span", { className: "orb-radio__content", children: [
1078
+ /* @__PURE__ */ e("span", { className: "orb-radio__label", children: h.label }),
1079
+ h.description && /* @__PURE__ */ e("span", { className: "orb-radio__description", children: h.description })
1080
+ ] })
1081
+ ]
1082
+ },
1083
+ h.value
1084
+ )) }),
1085
+ f && /* @__PURE__ */ e(
1086
+ U0,
1087
+ {
1088
+ variant: o === "invalid" ? "negative" : "neutral",
1089
+ disabled: p,
1090
+ children: f
1091
+ }
1092
+ )
1093
+ ]
1094
+ }
1095
+ );
1096
+ }
1097
+ ), qe = "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z", _e = "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z", xe = "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z", Ce = "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z", yr = k0(
1098
+ function({
1099
+ value: l = "",
1100
+ options: t = [],
1101
+ label: i,
1102
+ placeholder: c,
1103
+ size: o = "medium",
1104
+ state: u = "default",
1105
+ required: x = !1,
1106
+ optional: f = !1,
1107
+ helpText: _,
1108
+ clearable: y = !1,
1109
+ loading: k = !1,
1110
+ searchable: p = !1,
1111
+ searchPlaceholder: A = "Buscar...",
1112
+ multiple: b = !1,
1113
+ maxTagCount: h = 0,
1114
+ maxSelections: w = 0,
1115
+ allowDeselect: D = !1,
1116
+ creatable: I = !1,
1117
+ createLabel: S = 'Criar "{query}"',
1118
+ filterFn: G,
1119
+ teleport: L = !1,
1120
+ direction: g = "down",
1121
+ id: W,
1122
+ onChange: N,
1123
+ onSearch: V,
1124
+ onCreate: l0,
1125
+ onLoadMore: T,
1126
+ dropdownHeader: o0,
1127
+ dropdownFooter: b0
1128
+ }, K) {
1129
+ const [O, z] = Z(!1), [a0, h0] = Z(!1), [E, P] = Z(-1), [v, t0] = Z(""), [A0, N0] = Z("down"), [W0, B0] = Z({}), [z0, S0] = Z(!1), u0 = F(null), q = F(null), X = F(null), i0 = F(null), f0 = F(""), s0 = F(null), p0 = u === "disabled", Z0 = u === "invalid", c0 = U(() => b ? Array.isArray(l) ? l : [] : typeof l == "string" && l !== "" ? [l] : [], [l, b]), Q = U(() => {
1130
+ const r = [];
1131
+ for (const n of t)
1132
+ "options" in n ? r.push(...n.options) : r.push(n);
1133
+ return r;
1134
+ }, [t]);
1135
+ function V0(r, n) {
1136
+ return G ? G(r, n) : r.label.toLowerCase().includes(n.toLowerCase());
1137
+ }
1138
+ const C = U(() => !p || !v ? Q : Q.filter((r) => V0(r, v)), [Q, p, v]), J0 = U(() => t.some((r) => "options" in r), [t]), ee = U(() => !p || !v ? t : t.map((r) => {
1139
+ if ("options" in r) {
1140
+ const n = r.options.filter(($) => V0($, v));
1141
+ return n.length > 0 ? { ...r, options: n } : null;
1142
+ }
1143
+ return V0(r, v) ? r : null;
1144
+ }).filter(Boolean), [t, p, v]), g0 = U(
1145
+ () => Q.find((r) => r.value === (b ? "" : l)),
1146
+ [Q, l, b]
1147
+ ), m0 = U(
1148
+ () => Q.filter((r) => c0.includes(r.value)),
1149
+ [Q, c0]
1150
+ ), m = (g0 == null ? void 0 : g0.label) ?? "", j = b ? c0.length > 0 : l !== "" && l != null, L0 = (W ?? "orb-select") + "-listbox", X0 = C.length === 0, Ne = b && w > 0 && c0.length >= w, D0 = U(() => {
1151
+ if (!I || !p || !v.trim()) return !1;
1152
+ const r = v.trim().toLowerCase();
1153
+ return !Q.some((n) => n.label.toLowerCase() === r);
1154
+ }, [I, p, v, Q]), Se = U(() => h > 0 && m0.length > h ? m0.slice(0, h) : m0, [m0, h]), se = U(() => h > 0 && m0.length > h ? m0.length - h : 0, [m0, h]);
1155
+ w0(() => {
1156
+ function r(n) {
1157
+ var H, y0;
1158
+ const $ = n.target;
1159
+ if (!((H = u0.current) != null && H.contains($))) {
1160
+ if (L && ((y0 = X.current) != null && y0.contains($))) return;
1161
+ z(!1);
1162
+ }
1163
+ }
1164
+ return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1165
+ }, [L]), w0(() => {
1166
+ S0(!1);
1167
+ }, [t]), w0(() => {
1168
+ p && (V == null || V(v));
1169
+ }, [v]), w0(() => {
1170
+ if (O) {
1171
+ t0(""), S0(!1), ne(), L && $e();
1172
+ const r = b ? "" : l, n = C.findIndex(($) => $.value === r);
1173
+ P(n >= 0 ? n : 0), setTimeout(() => {
1174
+ var $;
1175
+ p && (($ = i0.current) == null || $.focus()), O0();
1176
+ }, 0);
1177
+ } else
1178
+ P(-1), t0("");
1179
+ }, [O]);
1180
+ function ne() {
1181
+ if (g !== "auto") {
1182
+ N0(g);
1183
+ return;
1184
+ }
1185
+ if (!u0.current) {
1186
+ N0("down");
1187
+ return;
1188
+ }
1189
+ const r = u0.current.getBoundingClientRect(), n = window.innerHeight - r.bottom, $ = r.top;
1190
+ N0(n < 280 && $ > n ? "up" : "down");
1191
+ }
1192
+ function $e() {
1193
+ if (!u0.current) return;
1194
+ ne();
1195
+ const r = u0.current.getBoundingClientRect();
1196
+ B0(A0 === "up" ? {
1197
+ position: "fixed",
1198
+ bottom: `${window.innerHeight - r.top + 4}px`,
1199
+ left: `${r.left}px`,
1200
+ width: `${r.width}px`,
1201
+ zIndex: 9999
1202
+ } : {
1203
+ position: "fixed",
1204
+ top: `${r.bottom + 4}px`,
1205
+ left: `${r.left}px`,
1206
+ width: `${r.width}px`,
1207
+ zIndex: 9999
1208
+ });
1209
+ }
1210
+ function Be() {
1211
+ p0 || k || z((r) => !r);
1212
+ }
1213
+ function Q0() {
1214
+ p0 || k || O || z(!0);
1215
+ }
1216
+ function re() {
1217
+ var r;
1218
+ O && (z(!1), (r = q.current) == null || r.focus());
1219
+ }
1220
+ function de(r) {
1221
+ if (!r.disabled)
1222
+ if (b) {
1223
+ const n = [...c0], $ = n.indexOf(r.value);
1224
+ if ($ >= 0)
1225
+ n.splice($, 1);
1226
+ else {
1227
+ if (Ne) return;
1228
+ n.push(r.value);
1229
+ }
1230
+ N == null || N(n), setTimeout(() => {
1231
+ var H;
1232
+ p && ((H = i0.current) == null || H.focus());
1233
+ }, 0);
1234
+ } else
1235
+ D && r.value === l ? N == null || N("") : N == null || N(r.value), re();
1236
+ }
1237
+ function Ae(r) {
1238
+ var n;
1239
+ r.stopPropagation(), N == null || N(b ? [] : ""), (n = q.current) == null || n.focus();
1240
+ }
1241
+ function be(r, n) {
1242
+ n && n.stopPropagation(), N == null || N(c0.filter(($) => $ !== r));
1243
+ }
1244
+ function he() {
1245
+ const r = v.trim();
1246
+ if (!r) return;
1247
+ const n = r.toLowerCase().replace(/\s+/g, "-");
1248
+ l0 == null || l0(r), b ? N == null || N([...c0, n]) : (N == null || N(n), re()), t0("");
1249
+ }
1250
+ function Le(r) {
1251
+ const n = r.currentTarget;
1252
+ n.scrollHeight - n.scrollTop - n.clientHeight < 40 && !z0 && !k && (S0(!0), T == null || T());
1253
+ }
1254
+ function O0() {
1255
+ var n;
1256
+ const r = (n = X.current) == null ? void 0 : n.querySelector('[data-active="true"]');
1257
+ r == null || r.scrollIntoView({ block: "nearest" });
1258
+ }
1259
+ function le(r) {
1260
+ return `${L0}-option-${r}`;
1261
+ }
1262
+ function De(r) {
1263
+ return C.indexOf(r);
1264
+ }
1265
+ function K0(r) {
1266
+ return c0.includes(r.value);
1267
+ }
1268
+ function ue(r) {
1269
+ var ke, ge;
1270
+ const n = C, $ = n.length + (D0 ? 1 : 0);
1271
+ if ($ === 0) return;
1272
+ let H = E, y0 = 0;
1273
+ do
1274
+ if (H += r, H < 0 && (H = $ - 1), H >= $ && (H = 0), y0++, H === n.length && D0) break;
1275
+ while (H < n.length && ((ke = n[H]) != null && ke.disabled) && y0 < $);
1276
+ (H === n.length || !((ge = n[H]) != null && ge.disabled)) && (P(H), setTimeout(O0, 0));
1277
+ }
1278
+ function fe(r) {
1279
+ switch (r.key) {
1280
+ case "Enter":
1281
+ case " ":
1282
+ if (p && O && r.key === " ") return;
1283
+ if (r.preventDefault(), O)
1284
+ if (D0 && E === C.length)
1285
+ he();
1286
+ else {
1287
+ const n = C[E];
1288
+ n && !n.disabled && de(n);
1289
+ }
1290
+ else
1291
+ Q0();
1292
+ break;
1293
+ case "ArrowDown":
1294
+ r.preventDefault(), O ? ue(1) : Q0();
1295
+ break;
1296
+ case "ArrowUp":
1297
+ r.preventDefault(), O ? ue(-1) : Q0();
1298
+ break;
1299
+ case "Home":
1300
+ if (r.preventDefault(), O) {
1301
+ const n = C.findIndex(($) => !$.disabled);
1302
+ n >= 0 && (P(n), setTimeout(O0, 0));
1303
+ }
1304
+ break;
1305
+ case "End":
1306
+ if (r.preventDefault(), O) {
1307
+ if (D0)
1308
+ P(C.length), setTimeout(O0, 0);
1309
+ else
1310
+ for (let n = C.length - 1; n >= 0; n--)
1311
+ if (!C[n].disabled) {
1312
+ P(n), setTimeout(O0, 0);
1313
+ break;
1314
+ }
1315
+ }
1316
+ break;
1317
+ case "Escape":
1318
+ r.preventDefault(), re();
1319
+ break;
1320
+ case "Backspace":
1321
+ b && p && O && !v && c0.length > 0 && be(c0[c0.length - 1]);
1322
+ break;
1323
+ case "Tab":
1324
+ O && z(!1);
1325
+ break;
1326
+ default:
1327
+ if (!p && r.key.length === 1 && !r.ctrlKey && !r.metaKey) {
1328
+ r.preventDefault(), f0.current += r.key.toLowerCase(), s0.current && clearTimeout(s0.current), s0.current = setTimeout(() => {
1329
+ f0.current = "";
1330
+ }, 500);
1331
+ const n = f0.current, $ = E >= 0 ? E : 0;
1332
+ for (let H = 0; H < Q.length; H++) {
1333
+ const y0 = ($ + H) % Q.length;
1334
+ if (!Q[y0].disabled && Q[y0].label.toLowerCase().startsWith(n)) {
1335
+ P(y0), O || Q0(), setTimeout(O0, 0);
1336
+ break;
1337
+ }
1338
+ }
1339
+ }
1340
+ }
1341
+ }
1342
+ function oe(r, n) {
1343
+ const $ = De(r);
1344
+ return /* @__PURE__ */ a(
1345
+ "div",
1346
+ {
1347
+ id: le($),
1348
+ role: "option",
1349
+ "aria-selected": K0(r),
1350
+ "aria-disabled": r.disabled || void 0,
1351
+ "data-active": $ === E,
1352
+ className: [
1353
+ "orb-select__option",
1354
+ K0(r) ? "orb-select__option--selected" : "",
1355
+ $ === E ? "orb-select__option--active" : "",
1356
+ r.disabled ? "orb-select__option--disabled" : ""
1357
+ ].filter(Boolean).join(" "),
1358
+ onClick: () => de(r),
1359
+ onMouseEnter: () => P($),
1360
+ children: [
1361
+ b && /* @__PURE__ */ e("span", { className: `orb-select__option-checkbox${K0(r) ? " orb-select__option-checkbox--checked" : ""}`, "aria-hidden": "true", children: K0(r) && /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: xe }) }) }),
1362
+ r.icon && /* @__PURE__ */ e("span", { className: "orb-select__option-icon", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: r.icon } }),
1363
+ /* @__PURE__ */ a("span", { className: "orb-select__option-content", children: [
1364
+ /* @__PURE__ */ e("span", { className: "orb-select__option-label", children: r.label }),
1365
+ r.description && /* @__PURE__ */ e("span", { className: "orb-select__option-desc", children: r.description })
1366
+ ] }),
1367
+ !b && K0(r) && /* @__PURE__ */ e("span", { className: "orb-select__option-check", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: xe }) }) })
1368
+ ]
1369
+ },
1370
+ r.value
1371
+ );
1372
+ }
1373
+ const pe = /* @__PURE__ */ e(
1374
+ "div",
1375
+ {
1376
+ ref: X,
1377
+ className: `orb-select__listbox${A0 === "up" ? " orb-select__listbox--up" : ""}`,
1378
+ "aria-label": i || c || "Opções",
1379
+ style: L ? W0 : void 0,
1380
+ children: /* @__PURE__ */ a("div", { className: "orb-select__listbox-inner", children: [
1381
+ o0 && /* @__PURE__ */ e("div", { className: "orb-select__toolbar orb-select__toolbar--top", children: o0 }),
1382
+ p && /* @__PURE__ */ a("div", { className: "orb-select__search", children: [
1383
+ /* @__PURE__ */ e("span", { className: "orb-select__search-icon", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: Ce }) }) }),
1384
+ /* @__PURE__ */ e(
1385
+ "input",
1386
+ {
1387
+ ref: i0,
1388
+ type: "text",
1389
+ className: "orb-select__search-input",
1390
+ placeholder: A,
1391
+ autoComplete: "off",
1392
+ value: v,
1393
+ onChange: (r) => t0(r.target.value),
1394
+ onKeyDown: fe
1395
+ }
1396
+ )
1397
+ ] }),
1398
+ /* @__PURE__ */ a("div", { id: L0, role: "listbox", "aria-multiselectable": b || void 0, className: "orb-select__options", onScroll: Le, children: [
1399
+ J0 ? (p ? ee : t).map((r, n) => "options" in r ? /* @__PURE__ */ a("div", { children: [
1400
+ /* @__PURE__ */ e("div", { className: "orb-select__group-label", role: "presentation", children: r.label }),
1401
+ r.options.map(($, H) => oe($))
1402
+ ] }, n) : oe(r)) : C.map((r, n) => oe(r)),
1403
+ D0 && /* @__PURE__ */ e(
1404
+ "div",
1405
+ {
1406
+ id: le(C.length),
1407
+ role: "option",
1408
+ "aria-selected": !1,
1409
+ "data-active": E === C.length,
1410
+ className: `orb-select__option orb-select__option--create${E === C.length ? " orb-select__option--active" : ""}`,
1411
+ onClick: he,
1412
+ onMouseEnter: () => P(C.length),
1413
+ children: /* @__PURE__ */ e("span", { className: "orb-select__create-label", children: S.replace("{query}", v.trim()) })
1414
+ }
1415
+ ),
1416
+ X0 && !D0 && /* @__PURE__ */ e("div", { className: "orb-select__empty", children: "Nenhum resultado" }),
1417
+ k && /* @__PURE__ */ e("div", { className: "orb-select__loading", children: /* @__PURE__ */ e("span", { className: "orb-select__spinner", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "28", strokeDashoffset: "8" }) }) }) })
1418
+ ] }),
1419
+ b0 && /* @__PURE__ */ e("div", { className: "orb-select__toolbar orb-select__toolbar--bottom", children: b0 })
1420
+ ] })
1421
+ }
1422
+ );
1423
+ return /* @__PURE__ */ a("div", { ref: (r) => {
1424
+ u0.current = r, typeof K == "function" ? K(r) : K && (K.current = r);
1425
+ }, className: `orb-select orb-select--${o}`, children: [
1426
+ i && /* @__PURE__ */ e(ce, { label: i, required: x, optional: f, disabled: p0 }),
1427
+ /* @__PURE__ */ e(ae, { size: o, focused: a0, invalid: Z0, disabled: p0, children: /* @__PURE__ */ a(
1428
+ "button",
1429
+ {
1430
+ ref: q,
1431
+ type: "button",
1432
+ role: "combobox",
1433
+ id: W,
1434
+ "aria-expanded": O,
1435
+ "aria-haspopup": "listbox",
1436
+ "aria-controls": L0,
1437
+ "aria-activedescendant": E >= 0 ? le(E) : void 0,
1438
+ "aria-invalid": Z0 ? !0 : void 0,
1439
+ "aria-label": i ? void 0 : c || "Selecionar",
1440
+ "aria-multiselectable": b || void 0,
1441
+ disabled: p0,
1442
+ className: `orb-select__trigger${b && j ? " orb-select__trigger--multi" : ""}`,
1443
+ onClick: Be,
1444
+ onKeyDown: fe,
1445
+ onFocus: () => h0(!0),
1446
+ onBlur: () => h0(!1),
1447
+ children: [
1448
+ b ? /* @__PURE__ */ e(j0, { children: j ? /* @__PURE__ */ a("div", { className: "orb-select__tags", children: [
1449
+ Se.map((r) => /* @__PURE__ */ a("span", { className: "orb-select__tag", children: [
1450
+ r.icon && /* @__PURE__ */ e("span", { className: "orb-select__tag-icon", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: r.icon } }),
1451
+ /* @__PURE__ */ e("span", { className: "orb-select__tag-label", children: r.label }),
1452
+ /* @__PURE__ */ e(
1453
+ "button",
1454
+ {
1455
+ type: "button",
1456
+ className: "orb-select__tag-remove",
1457
+ "aria-label": `Remover ${r.label}`,
1458
+ onClick: (n) => be(r.value, n),
1459
+ onMouseDown: (n) => n.preventDefault(),
1460
+ children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: _e }) })
1461
+ }
1462
+ )
1463
+ ] }, r.value)),
1464
+ se > 0 && /* @__PURE__ */ a("span", { className: "orb-select__tag orb-select__tag--count", children: [
1465
+ "+",
1466
+ se
1467
+ ] })
1468
+ ] }) : /* @__PURE__ */ e("span", { className: "orb-select__value orb-select__value--placeholder", children: c || "" }) }) : /* @__PURE__ */ a(j0, { children: [
1469
+ (g0 == null ? void 0 : g0.icon) && j && /* @__PURE__ */ e("span", { className: "orb-select__trigger-icon", "aria-hidden": "true", dangerouslySetInnerHTML: { __html: g0.icon } }),
1470
+ /* @__PURE__ */ e("span", { className: `orb-select__value${j ? "" : " orb-select__value--placeholder"}`, children: j ? m : c || "" })
1471
+ ] }),
1472
+ k && /* @__PURE__ */ e("span", { className: "orb-select__spinner", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "28", strokeDashoffset: "8" }) }) }),
1473
+ y && j && !p0 && !k && /* @__PURE__ */ e(
1474
+ "button",
1475
+ {
1476
+ type: "button",
1477
+ className: "orb-select__clear",
1478
+ "aria-label": "Limpar seleção",
1479
+ onClick: Ae,
1480
+ onMouseDown: (r) => r.preventDefault(),
1481
+ children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: _e }) })
1482
+ }
1483
+ ),
1484
+ !k && /* @__PURE__ */ e("span", { className: `orb-select__chevron${O ? " orb-select__chevron--open" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: qe }) }) })
1485
+ ]
1486
+ }
1487
+ ) }),
1488
+ !L && O && pe,
1489
+ L && O && we(pe, document.body),
1490
+ _ && /* @__PURE__ */ e(U0, { variant: u === "invalid" ? "negative" : "neutral", disabled: p0, children: _ })
1491
+ ] });
1492
+ }
1493
+ ), $0 = [];
1494
+ let G0 = 0, ve = "", ye = "";
1495
+ const Ue = /* @__PURE__ */ a("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1496
+ /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1497
+ /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1498
+ ] }), Xe = /* @__PURE__ */ e("svg", { className: "orb-dialog__spinner", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "31.4 31.4" }) }), Qe = /* @__PURE__ */ a("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1499
+ /* @__PURE__ */ e("polyline", { points: "15 3 21 3 21 9" }),
1500
+ /* @__PURE__ */ e("polyline", { points: "9 21 3 21 3 15" }),
1501
+ /* @__PURE__ */ e("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
1502
+ /* @__PURE__ */ e("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
1503
+ ] }), Ye = /* @__PURE__ */ a("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
1504
+ /* @__PURE__ */ e("polyline", { points: "4 14 10 14 10 20" }),
1505
+ /* @__PURE__ */ e("polyline", { points: "20 10 14 10 14 4" }),
1506
+ /* @__PURE__ */ e("line", { x1: "14", y1: "10", x2: "21", y2: "3" }),
1507
+ /* @__PURE__ */ e("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
1508
+ ] }), Je = k0(
1509
+ function({
1510
+ open: l = !1,
1511
+ size: t = "md",
1512
+ title: i,
1513
+ description: c,
1514
+ role: o = "dialog",
1515
+ backdrop: u = "opaque",
1516
+ closeOnOverlayClick: x = !0,
1517
+ closeOnEscape: f = !0,
1518
+ preventBodyScroll: _ = !0,
1519
+ scrollBehavior: y = "inside",
1520
+ showCloseButton: k = !0,
1521
+ initialFocusRef: p,
1522
+ returnFocusRef: A,
1523
+ ariaLabel: b,
1524
+ motionPreset: h = "scale",
1525
+ loading: w = !1,
1526
+ preventCloseWhileLoading: D = !0,
1527
+ beforeClose: I,
1528
+ responsive: S = !0,
1529
+ allowFullscreen: G = !1,
1530
+ position: L = "center",
1531
+ onOpenChange: g,
1532
+ onClose: W,
1533
+ children: N,
1534
+ header: V,
1535
+ footer: l0,
1536
+ hero: T
1537
+ }, o0) {
1538
+ const b0 = F(`orb-dialog-${Math.random().toString(36).slice(2, 8)}`).current, K = F(`orb-dialog-title-${Math.random().toString(36).slice(2, 8)}`).current, O = F(`orb-dialog-desc-${Math.random().toString(36).slice(2, 8)}`).current, z = F(null), a0 = F(null), h0 = F(null), E = F(!1), P = F(!1), [v, t0] = Z(!1), [A0, N0] = Z(!1), [W0, B0] = Z(!1), [z0, S0] = Z(0), u0 = v ? "full" : t, q = 1e3 + z0 * 10, X = d0(async (m) => {
1539
+ if (!(w && D) && !P.current) {
1540
+ if (I) {
1541
+ P.current = !0;
1542
+ try {
1543
+ if (await I(m) === !1) {
1544
+ P.current = !1;
1545
+ return;
1546
+ }
1547
+ } catch {
1548
+ P.current = !1;
1549
+ return;
1550
+ }
1551
+ }
1552
+ P.current = !1, g == null || g(!1), W == null || W({ reason: m });
1553
+ }
1554
+ }, [w, D, I, g, W]);
1555
+ function i0() {
1556
+ if (!(!_ || E.current)) {
1557
+ if (E.current = !0, G0 === 0) {
1558
+ ve = document.body.style.overflow, ye = document.body.style.paddingRight;
1559
+ const m = window.innerWidth - document.documentElement.clientWidth;
1560
+ document.body.style.overflow = "hidden", m > 0 && (document.body.style.paddingRight = `${m}px`);
1561
+ }
1562
+ G0++;
1563
+ }
1564
+ }
1565
+ function f0() {
1566
+ E.current && (E.current = !1, G0--, G0 <= 0 && (G0 = 0, document.body.style.overflow = ve, document.body.style.paddingRight = ye));
1567
+ }
1568
+ function s0() {
1569
+ setTimeout(() => {
1570
+ if (p != null && p.current) {
1571
+ p.current.focus();
1572
+ return;
1573
+ }
1574
+ if (z.current) {
1575
+ const m = z.current.querySelector(
1576
+ 'button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href]'
1577
+ );
1578
+ m ? m.focus() : z.current.focus();
1579
+ }
1580
+ }, 0);
1581
+ }
1582
+ function p0() {
1583
+ A != null && A.current ? A.current.focus() : h0.current && h0.current.focus();
1584
+ }
1585
+ function Z0() {
1586
+ if (!a0.current) return;
1587
+ const m = a0.current;
1588
+ N0(m.scrollTop > 1), B0(m.scrollTop + m.clientHeight < m.scrollHeight - 1);
1589
+ }
1590
+ w0(() => {
1591
+ if (l)
1592
+ h0.current = document.activeElement, $0.push({ id: b0, close: () => X("escape") }), S0($0.length - 1), i0(), s0(), setTimeout(() => {
1593
+ a0.current && y === "inside" && Z0();
1594
+ }, 0);
1595
+ else {
1596
+ t0(!1);
1597
+ const m = $0.findIndex((j) => j.id === b0);
1598
+ m !== -1 && $0.splice(m, 1), S0(0), f0(), p0(), N0(!1), B0(!1);
1599
+ }
1600
+ return () => {
1601
+ if (l) {
1602
+ const m = $0.findIndex((j) => j.id === b0);
1603
+ m !== -1 && $0.splice(m, 1), f0();
1604
+ }
1605
+ };
1606
+ }, [l]);
1607
+ function c0(m) {
1608
+ m.target === m.currentTarget && x && o !== "alertdialog" && X("overlay");
1609
+ }
1610
+ function Q(m) {
1611
+ if (m.key === "Escape" && f && o !== "alertdialog") {
1612
+ const j = $0[$0.length - 1];
1613
+ if (j && j.id !== b0) return;
1614
+ m.stopPropagation(), X("escape");
1615
+ return;
1616
+ }
1617
+ if (m.key === "Tab" && z.current) {
1618
+ const j = z.current.querySelectorAll(
1619
+ 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'
1620
+ );
1621
+ if (j.length === 0) return;
1622
+ const L0 = j[0], X0 = j[j.length - 1];
1623
+ m.shiftKey ? document.activeElement === L0 && (m.preventDefault(), X0.focus()) : document.activeElement === X0 && (m.preventDefault(), L0.focus());
1624
+ }
1625
+ }
1626
+ if (!l) return null;
1627
+ const V0 = [
1628
+ "orb-dialog-backdrop",
1629
+ `orb-dialog-backdrop--${u}`,
1630
+ y === "outside" ? "orb-dialog-backdrop--scroll-outside" : "",
1631
+ S ? "" : "orb-dialog-backdrop--no-responsive",
1632
+ L === "top" ? "orb-dialog-backdrop--top" : ""
1633
+ ].filter(Boolean).join(" "), C = [
1634
+ "orb-dialog",
1635
+ `orb-dialog--${u0}`,
1636
+ y === "inside" ? "orb-dialog--scroll-inside" : "",
1637
+ w ? "orb-dialog--loading" : "",
1638
+ S ? "" : "orb-dialog--no-responsive"
1639
+ ].filter(Boolean).join(" "), J0 = `orb-dialog__header${A0 ? " orb-dialog__header--shadow" : ""}`, ee = `orb-dialog__footer${W0 ? " orb-dialog__footer--shadow" : ""}`, g0 = (m = !1) => k && /* @__PURE__ */ e(
1640
+ "button",
1641
+ {
1642
+ type: "button",
1643
+ className: `orb-dialog__close${m ? " orb-dialog__close--over-hero" : ""}`,
1644
+ "aria-label": "Fechar",
1645
+ disabled: w && D || void 0,
1646
+ onClick: () => X("close-button"),
1647
+ children: w ? Xe : Ue
1648
+ }
1649
+ ), m0 = (m = !1) => G && /* @__PURE__ */ e(
1650
+ "button",
1651
+ {
1652
+ type: "button",
1653
+ className: `orb-dialog__fullscreen${m ? " orb-dialog__fullscreen--over-hero" : ""}`,
1654
+ "aria-label": v ? "Restaurar tamanho" : "Tela cheia",
1655
+ onClick: () => t0((j) => !j),
1656
+ children: v ? Ye : Qe
1657
+ }
1658
+ );
1659
+ return we(
1660
+ /* @__PURE__ */ e("div", { className: V0, style: { zIndex: q }, onMouseDown: c0, children: /* @__PURE__ */ a(
1661
+ "div",
1662
+ {
1663
+ ref: (m) => {
1664
+ z.current = m, typeof o0 == "function" ? o0(m) : o0 && (o0.current = m);
1665
+ },
1666
+ className: C,
1667
+ role: o,
1668
+ "aria-modal": "true",
1669
+ "aria-label": b && !i ? b : void 0,
1670
+ "aria-labelledby": i ? K : void 0,
1671
+ "aria-describedby": c ? O : void 0,
1672
+ "aria-busy": w || void 0,
1673
+ tabIndex: -1,
1674
+ onKeyDown: Q,
1675
+ children: [
1676
+ T && /* @__PURE__ */ a("div", { className: "orb-dialog__hero", children: [
1677
+ T,
1678
+ /* @__PURE__ */ a("div", { className: "orb-dialog__hero-actions", children: [
1679
+ m0(!0),
1680
+ g0(!0)
1681
+ ] })
1682
+ ] }),
1683
+ (V || i) && /* @__PURE__ */ a("div", { className: J0, children: [
1684
+ V || /* @__PURE__ */ a("div", { className: "orb-dialog__header-text", children: [
1685
+ i && /* @__PURE__ */ e("h2", { id: K, className: "orb-dialog__title", children: i }),
1686
+ c && /* @__PURE__ */ e("p", { id: O, className: "orb-dialog__description", children: c })
1687
+ ] }),
1688
+ !T && /* @__PURE__ */ a(j0, { children: [
1689
+ m0(!1),
1690
+ g0(!1)
1691
+ ] })
1692
+ ] }),
1693
+ /* @__PURE__ */ e("div", { ref: a0, className: "orb-dialog__body", onScroll: y === "inside" ? Z0 : void 0, children: N }),
1694
+ l0 && /* @__PURE__ */ e("div", { className: ee, children: l0 })
1695
+ ]
1696
+ }
1697
+ ) }),
1698
+ document.body
1699
+ );
1700
+ }
1701
+ ), er = /* @__PURE__ */ e("svg", { className: "orb-alert-dialog__spinner", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "31.4 31.4" }) }), wr = k0(
1702
+ function({
1703
+ open: l = !1,
1704
+ title: t,
1705
+ description: i,
1706
+ variant: c = "confirmation",
1707
+ confirmLabel: o,
1708
+ cancelLabel: u,
1709
+ secondaryLabel: x,
1710
+ loading: f = !1,
1711
+ size: _ = "sm",
1712
+ closeOnEscape: y = !1,
1713
+ closeOnOverlayClick: k = !1,
1714
+ showIcon: p = !0,
1715
+ confirmationText: A,
1716
+ inlineActions: b = !0,
1717
+ onOpenChange: h,
1718
+ onConfirm: w,
1719
+ onCancel: D,
1720
+ onSecondary: I,
1721
+ children: S
1722
+ }, G) {
1723
+ const L = F(null), g = F(null), [W, N] = Z(""), V = c === "info", l0 = !A || W === A, T = V ? g : L, o0 = o || (c === "info" ? "OK" : c === "destructive" ? "Excluir" : c === "warning" ? "Continuar" : "Confirmar"), b0 = u ?? "Cancelar", K = U(() => {
1724
+ switch (c) {
1725
+ case "info":
1726
+ return "info";
1727
+ case "warning":
1728
+ return "warning";
1729
+ default:
1730
+ return "error";
1731
+ }
1732
+ }, [c]), O = U(() => {
1733
+ if (V) return "orb-alert-dialog__btn orb-alert-dialog__btn--confirm orb-alert-dialog__btn--primary orb-alert-dialog__btn--wide";
1734
+ const v = "orb-alert-dialog__btn orb-alert-dialog__btn--confirm";
1735
+ return c === "destructive" ? `${v} orb-alert-dialog__btn--destructive` : `${v} orb-alert-dialog__btn--primary`;
1736
+ }, [c, V]);
1737
+ function z() {
1738
+ f || !l0 || (w == null || w(), f || h == null || h(!1));
1739
+ }
1740
+ function a0() {
1741
+ f || (D == null || D(), h == null || h(!1));
1742
+ }
1743
+ function h0() {
1744
+ f || I == null || I();
1745
+ }
1746
+ function E(v) {
1747
+ v || (N(""), D == null || D()), h == null || h(v);
1748
+ }
1749
+ const P = (v) => /* @__PURE__ */ a("div", { className: v, children: [
1750
+ x && /* @__PURE__ */ e("button", { type: "button", className: "orb-alert-dialog__btn orb-alert-dialog__btn--secondary", disabled: f, onClick: h0, children: x }),
1751
+ !V && /* @__PURE__ */ e("button", { ref: L, type: "button", className: "orb-alert-dialog__btn orb-alert-dialog__btn--cancel", disabled: f, onClick: a0, children: b0 }),
1752
+ /* @__PURE__ */ a("button", { ref: g, type: "button", className: O, disabled: f || !l0, onClick: z, children: [
1753
+ f && er,
1754
+ o0
1755
+ ] })
1756
+ ] });
1757
+ return /* @__PURE__ */ e(
1758
+ Je,
1759
+ {
1760
+ ref: G,
1761
+ open: l,
1762
+ size: _,
1763
+ role: "alertdialog",
1764
+ closeOnOverlayClick: k,
1765
+ closeOnEscape: y,
1766
+ showCloseButton: !1,
1767
+ loading: f,
1768
+ preventCloseWhileLoading: !0,
1769
+ ariaLabel: t,
1770
+ initialFocusRef: T,
1771
+ onOpenChange: E,
1772
+ children: V ? /* @__PURE__ */ a("div", { className: "orb-alert-dialog orb-alert-dialog--centered", children: [
1773
+ p && /* @__PURE__ */ e("div", { className: `orb-alert-dialog__icon orb-alert-dialog__icon--${c}`, children: /* @__PURE__ */ e(Y0, { status: K, size: "md" }) }),
1774
+ /* @__PURE__ */ e("h3", { className: "orb-alert-dialog__title", children: t }),
1775
+ i && /* @__PURE__ */ e("p", { className: "orb-alert-dialog__description", children: i }),
1776
+ S && /* @__PURE__ */ e("div", { className: "orb-alert-dialog__body", children: S }),
1777
+ P("orb-alert-dialog__actions orb-alert-dialog__actions--centered")
1778
+ ] }) : /* @__PURE__ */ a(j0, { children: [
1779
+ /* @__PURE__ */ a("div", { className: "orb-alert-dialog orb-alert-dialog--horizontal", children: [
1780
+ p && /* @__PURE__ */ e("div", { className: `orb-alert-dialog__icon orb-alert-dialog__icon--${c}`, children: /* @__PURE__ */ e(Y0, { status: K, size: "md" }) }),
1781
+ /* @__PURE__ */ a("div", { className: "orb-alert-dialog__text", children: [
1782
+ /* @__PURE__ */ e("h3", { className: "orb-alert-dialog__title", children: t }),
1783
+ /* @__PURE__ */ a("div", { className: "orb-alert-dialog__desc-wrap", children: [
1784
+ i && /* @__PURE__ */ e("p", { className: "orb-alert-dialog__description", children: i }),
1785
+ S && /* @__PURE__ */ e("div", { className: "orb-alert-dialog__body", children: S }),
1786
+ A && /* @__PURE__ */ a("div", { className: "orb-alert-dialog__confirmation", children: [
1787
+ /* @__PURE__ */ a("p", { className: "orb-alert-dialog__confirmation-label", children: [
1788
+ "Digite ",
1789
+ /* @__PURE__ */ e("strong", { children: A }),
1790
+ " para confirmar:"
1791
+ ] }),
1792
+ /* @__PURE__ */ e(
1793
+ "input",
1794
+ {
1795
+ type: "text",
1796
+ className: "orb-alert-dialog__confirmation-input",
1797
+ placeholder: A,
1798
+ autoComplete: "off",
1799
+ spellCheck: !1,
1800
+ value: W,
1801
+ onChange: (v) => N(v.target.value)
1802
+ }
1803
+ )
1804
+ ] })
1805
+ ] })
1806
+ ] })
1807
+ ] }),
1808
+ b && P("orb-alert-dialog__actions orb-alert-dialog__actions--inline")
1809
+ ] })
1810
+ }
1811
+ );
1812
+ }
1813
+ );
1814
+ var R = {
588
1815
  white: {
589
1816
  100: "rgba(255, 255, 255, 0.10)",
590
1817
  120: "rgba(255, 255, 255, 0.12)",
@@ -607,7 +1834,7 @@ var d = {
607
1834
  900: "rgba(0, 0, 0, 0.90)",
608
1835
  1e3: "rgba(0, 0, 0, 1)"
609
1836
  }
610
- }, l = {
1837
+ }, d = {
611
1838
  0: "#fff",
612
1839
  50: "oklch(98.5% 0 0)",
613
1840
  100: "oklch(97% 0 0)",
@@ -621,7 +1848,7 @@ var d = {
621
1848
  900: "oklch(20.5% 0 0)",
622
1849
  950: "oklch(14.5% 0 0)",
623
1850
  1e3: "#000"
624
- }, h = {
1851
+ }, M = {
625
1852
  50: "oklch(97.1% 0.013 17.38)",
626
1853
  100: "oklch(93.6% 0.032 17.717)",
627
1854
  200: "oklch(88.5% 0.062 18.334)",
@@ -633,7 +1860,7 @@ var d = {
633
1860
  800: "oklch(44.4% 0.177 26.899)",
634
1861
  900: "oklch(39.6% 0.141 25.723)",
635
1862
  950: "oklch(25.8% 0.092 26.042)"
636
- }, q = {
1863
+ }, I0 = {
637
1864
  50: "oklch(98% 0.016 73.684)",
638
1865
  100: "oklch(95.4% 0.038 75.164)",
639
1866
  200: "oklch(90.1% 0.076 70.697)",
@@ -645,7 +1872,7 @@ var d = {
645
1872
  800: "oklch(47% 0.157 37.304)",
646
1873
  900: "oklch(40.8% 0.123 38.172)",
647
1874
  950: "oklch(26.6% 0.079 36.259)"
648
- }, B = {
1875
+ }, _0 = {
649
1876
  50: "oklch(98.7% 0.022 95.277)",
650
1877
  100: "oklch(96.2% 0.059 95.617)",
651
1878
  200: "oklch(92.4% 0.12 95.746)",
@@ -657,7 +1884,7 @@ var d = {
657
1884
  800: "oklch(47.3% 0.137 46.201)",
658
1885
  900: "oklch(41.4% 0.112 45.904)",
659
1886
  950: "oklch(27.9% 0.077 45.635)"
660
- }, X = {
1887
+ }, E0 = {
661
1888
  50: "oklch(98.7% 0.026 102.212)",
662
1889
  100: "oklch(97.3% 0.071 103.193)",
663
1890
  200: "oklch(94.5% 0.129 101.54)",
@@ -669,7 +1896,7 @@ var d = {
669
1896
  800: "oklch(47.6% 0.114 61.907)",
670
1897
  900: "oklch(42.1% 0.095 57.708)",
671
1898
  950: "oklch(28.6% 0.066 53.813)"
672
- }, n1 = {
1899
+ }, Nr = {
673
1900
  50: "oklch(98.6% 0.031 120.757)",
674
1901
  100: "oklch(96.7% 0.067 122.328)",
675
1902
  200: "oklch(93.8% 0.127 124.321)",
@@ -681,7 +1908,7 @@ var d = {
681
1908
  800: "oklch(45.3% 0.124 130.933)",
682
1909
  900: "oklch(40.5% 0.101 131.063)",
683
1910
  950: "oklch(27.4% 0.072 132.109)"
684
- }, Z = {
1911
+ }, v0 = {
685
1912
  50: "oklch(98.2% 0.018 155.826)",
686
1913
  100: "oklch(96.2% 0.044 156.743)",
687
1914
  200: "oklch(92.5% 0.084 155.995)",
@@ -693,7 +1920,7 @@ var d = {
693
1920
  800: "oklch(44.8% 0.119 151.328)",
694
1921
  900: "oklch(39.3% 0.095 152.535)",
695
1922
  950: "oklch(26.6% 0.065 152.934)"
696
- }, F = {
1923
+ }, n0 = {
697
1924
  50: "oklch(97.9% 0.021 166.113)",
698
1925
  100: "oklch(95% 0.052 163.051)",
699
1926
  200: "oklch(90.5% 0.093 164.15)",
@@ -705,7 +1932,7 @@ var d = {
705
1932
  800: "oklch(43.2% 0.095 166.913)",
706
1933
  900: "oklch(37.8% 0.077 168.94)",
707
1934
  950: "oklch(26.2% 0.051 172.552)"
708
- }, Y = {
1935
+ }, M0 = {
709
1936
  50: "oklch(98.4% 0.014 180.72)",
710
1937
  100: "oklch(95.3% 0.051 180.801)",
711
1938
  200: "oklch(91% 0.096 180.426)",
@@ -717,7 +1944,7 @@ var d = {
717
1944
  800: "oklch(43.7% 0.078 188.216)",
718
1945
  900: "oklch(38.6% 0.063 188.416)",
719
1946
  950: "oklch(27.7% 0.046 192.524)"
720
- }, K = {
1947
+ }, T0 = {
721
1948
  50: "oklch(98.4% 0.019 200.873)",
722
1949
  100: "oklch(95.6% 0.045 203.388)",
723
1950
  200: "oklch(91.7% 0.08 205.041)",
@@ -729,7 +1956,7 @@ var d = {
729
1956
  800: "oklch(45% 0.085 224.283)",
730
1957
  900: "oklch(39.8% 0.07 227.392)",
731
1958
  950: "oklch(30.2% 0.056 229.695)"
732
- }, E = {
1959
+ }, x0 = {
733
1960
  50: "oklch(97.7% 0.013 236.62)",
734
1961
  100: "oklch(95.1% 0.026 236.824)",
735
1962
  200: "oklch(90.1% 0.058 230.902)",
@@ -741,7 +1968,7 @@ var d = {
741
1968
  800: "oklch(44.3% 0.11 240.79)",
742
1969
  900: "oklch(39.1% 0.09 240.876)",
743
1970
  950: "oklch(29.3% 0.066 243.157)"
744
- }, J = {
1971
+ }, H0 = {
745
1972
  50: "oklch(97% 0.014 254.604)",
746
1973
  100: "oklch(93.2% 0.032 255.585)",
747
1974
  200: "oklch(88.2% 0.059 254.128)",
@@ -753,7 +1980,7 @@ var d = {
753
1980
  800: "oklch(42.4% 0.199 265.638)",
754
1981
  900: "oklch(37.9% 0.146 265.522)",
755
1982
  950: "oklch(28.2% 0.091 267.935)"
756
- }, Q = {
1983
+ }, R0 = {
757
1984
  50: "oklch(96.2% 0.018 272.314)",
758
1985
  100: "oklch(93% 0.034 272.788)",
759
1986
  200: "oklch(87% 0.065 274.039)",
@@ -765,7 +1992,7 @@ var d = {
765
1992
  800: "oklch(39.8% 0.195 277.366)",
766
1993
  900: "oklch(35.9% 0.144 278.697)",
767
1994
  950: "oklch(25.7% 0.09 281.288)"
768
- }, s1 = {
1995
+ }, Sr = {
769
1996
  50: "oklch(96.9% 0.016 293.756)",
770
1997
  100: "oklch(94.3% 0.029 294.588)",
771
1998
  200: "oklch(89.4% 0.057 293.283)",
@@ -777,7 +2004,7 @@ var d = {
777
2004
  800: "oklch(43.2% 0.232 292.759)",
778
2005
  900: "oklch(38% 0.189 293.745)",
779
2006
  950: "oklch(28.3% 0.141 291.089)"
780
- }, e0 = {
2007
+ }, F0 = {
781
2008
  50: "oklch(97.7% 0.014 308.299)",
782
2009
  100: "oklch(94.6% 0.033 307.174)",
783
2010
  200: "oklch(90.2% 0.063 306.703)",
@@ -789,7 +2016,7 @@ var d = {
789
2016
  800: "oklch(43.8% 0.218 303.724)",
790
2017
  900: "oklch(38.1% 0.176 304.987)",
791
2018
  950: "oklch(29.1% 0.149 302.717)"
792
- }, h1 = {
2019
+ }, $r = {
793
2020
  50: "oklch(97.7% 0.017 320.058)",
794
2021
  100: "oklch(95.2% 0.037 318.852)",
795
2022
  200: "oklch(90.3% 0.076 319.62)",
@@ -801,7 +2028,7 @@ var d = {
801
2028
  800: "oklch(45.2% 0.211 324.591)",
802
2029
  900: "oklch(40.1% 0.17 325.612)",
803
2030
  950: "oklch(29.3% 0.136 325.661)"
804
- }, l0 = {
2031
+ }, P0 = {
805
2032
  50: "oklch(97.1% 0.014 343.198)",
806
2033
  100: "oklch(94.8% 0.028 342.258)",
807
2034
  200: "oklch(89.9% 0.061 343.231)",
@@ -813,7 +2040,7 @@ var d = {
813
2040
  800: "oklch(45.9% 0.187 3.815)",
814
2041
  900: "oklch(40.8% 0.153 2.432)",
815
2042
  950: "oklch(28.4% 0.109 3.907)"
816
- }, d1 = {
2043
+ }, Br = {
817
2044
  50: "oklch(96.9% 0.015 12.422)",
818
2045
  100: "oklch(94.1% 0.03 12.58)",
819
2046
  200: "oklch(89.2% 0.058 10.001)",
@@ -825,7 +2052,7 @@ var d = {
825
2052
  800: "oklch(45.5% 0.188 13.697)",
826
2053
  900: "oklch(41% 0.159 10.272)",
827
2054
  950: "oklch(27.1% 0.105 12.094)"
828
- }, c = {
2055
+ }, B = {
829
2056
  50: "oklch(98.4% 0.003 247.858)",
830
2057
  100: "oklch(96.8% 0.007 247.896)",
831
2058
  200: "oklch(92.9% 0.013 255.508)",
@@ -837,7 +2064,7 @@ var d = {
837
2064
  800: "oklch(27.9% 0.041 260.031)",
838
2065
  900: "oklch(20.8% 0.042 265.755)",
839
2066
  950: "oklch(12.9% 0.042 264.695)"
840
- }, b1 = {
2067
+ }, Ar = {
841
2068
  50: "oklch(98.5% 0.002 247.839)",
842
2069
  100: "oklch(96.7% 0.003 264.542)",
843
2070
  200: "oklch(92.8% 0.006 264.531)",
@@ -849,7 +2076,7 @@ var d = {
849
2076
  800: "oklch(27.8% 0.033 256.848)",
850
2077
  900: "oklch(21% 0.034 264.665)",
851
2078
  950: "oklch(13% 0.028 261.692)"
852
- }, k1 = {
2079
+ }, Lr = {
853
2080
  50: "oklch(98.5% 0 0)",
854
2081
  100: "oklch(96.7% 0.001 286.375)",
855
2082
  200: "oklch(92% 0.004 286.32)",
@@ -861,7 +2088,7 @@ var d = {
861
2088
  800: "oklch(27.4% 0.006 286.033)",
862
2089
  900: "oklch(21% 0.006 285.885)",
863
2090
  950: "oklch(14.1% 0.005 285.823)"
864
- }, p1 = {
2091
+ }, Dr = {
865
2092
  50: "oklch(98.5% 0.001 106.423)",
866
2093
  100: "oklch(97% 0.001 106.424)",
867
2094
  200: "oklch(92.3% 0.003 48.717)",
@@ -873,7 +2100,7 @@ var d = {
873
2100
  800: "oklch(26.8% 0.007 34.298)",
874
2101
  900: "oklch(21.6% 0.006 56.043)",
875
2102
  950: "oklch(14.7% 0.004 49.25)"
876
- }, g1 = {
2103
+ }, Or = {
877
2104
  50: "oklch(98.5% 0 0)",
878
2105
  100: "oklch(96% 0.003 325.6)",
879
2106
  200: "oklch(92.2% 0.005 325.62)",
@@ -885,7 +2112,7 @@ var d = {
885
2112
  800: "oklch(26.3% 0.024 320.12)",
886
2113
  900: "oklch(21.2% 0.019 322.12)",
887
2114
  950: "oklch(14.5% 0.008 326)"
888
- }, u1 = {
2115
+ }, Ir = {
889
2116
  50: "oklch(98.8% 0.003 106.5)",
890
2117
  100: "oklch(96.6% 0.005 106.5)",
891
2118
  200: "oklch(93% 0.007 106.5)",
@@ -897,7 +2124,7 @@ var d = {
897
2124
  800: "oklch(28.6% 0.016 107.4)",
898
2125
  900: "oklch(22.8% 0.013 107.4)",
899
2126
  950: "oklch(15.3% 0.006 107.1)"
900
- }, f1 = {
2127
+ }, Er = {
901
2128
  50: "oklch(98.7% 0.002 197.1)",
902
2129
  100: "oklch(96.3% 0.002 197.1)",
903
2130
  200: "oklch(92.5% 0.005 214.3)",
@@ -909,7 +2136,7 @@ var d = {
909
2136
  800: "oklch(27.5% 0.011 216.9)",
910
2137
  900: "oklch(21.8% 0.008 223.9)",
911
2138
  950: "oklch(14.8% 0.004 228.8)"
912
- }, m1 = {
2139
+ }, Mr = {
913
2140
  50: "oklch(98.6% 0.002 67.8)",
914
2141
  100: "oklch(96% 0.002 17.2)",
915
2142
  200: "oklch(92.2% 0.005 34.3)",
@@ -921,7 +2148,7 @@ var d = {
921
2148
  800: "oklch(26.8% 0.011 36.5)",
922
2149
  900: "oklch(21.4% 0.009 43.1)",
923
2150
  950: "oklch(14.7% 0.004 49.3)"
924
- }, x1 = {
2151
+ }, Tr = {
925
2152
  50: "oklch(97.7% 0.014 308.299)",
926
2153
  100: "oklch(94.6% 0.033 307.174)",
927
2154
  200: "oklch(90.2% 0.063 306.703)",
@@ -933,7 +2160,7 @@ var d = {
933
2160
  800: "oklch(43.8% 0.218 303.724)",
934
2161
  900: "oklch(38.1% 0.176 304.987)",
935
2162
  950: "oklch(29.1% 0.149 302.717)"
936
- }, Y0 = {
2163
+ }, rr = {
937
2164
  50: "oklch(97.9% 0.011 356.992)",
938
2165
  100: "oklch(95.1% 0.026 2.758)",
939
2166
  200: "oklch(88.9% 0.062 2.08)",
@@ -945,7 +2172,7 @@ var d = {
945
2172
  800: "oklch(47.4% 0.157 11.378)",
946
2173
  900: "oklch(40.8% 0.132 10.888)",
947
2174
  950: "oklch(27% 0.08 10.488)"
948
- }, K0 = {
2175
+ }, lr = {
949
2176
  50: "oklch(96.2% 0.018 272.314)",
950
2177
  100: "oklch(93% 0.034 272.788)",
951
2178
  200: "oklch(87% 0.065 274.039)",
@@ -957,7 +2184,7 @@ var d = {
957
2184
  800: "oklch(39.8% 0.195 277.366)",
958
2185
  900: "oklch(35.9% 0.144 278.697)",
959
2186
  950: "oklch(25.7% 0.09 281.288)"
960
- }, J0 = {
2187
+ }, or = {
961
2188
  50: "oklch(98.4% 0.014 180.72)",
962
2189
  100: "oklch(95.3% 0.051 180.801)",
963
2190
  200: "oklch(91% 0.096 180.426)",
@@ -969,7 +2196,7 @@ var d = {
969
2196
  800: "oklch(43.7% 0.078 188.216)",
970
2197
  900: "oklch(38.6% 0.063 188.416)",
971
2198
  950: "oklch(27.7% 0.046 192.524)"
972
- }, Q0 = {
2199
+ }, tr = {
973
2200
  50: "oklch(97.5% 0.015 94.196)",
974
2201
  100: "oklch(93.7% 0.038 92.236)",
975
2202
  200: "oklch(87.4% 0.071 89.461)",
@@ -981,7 +2208,7 @@ var d = {
981
2208
  800: "oklch(42.3% 0.075 51.375)",
982
2209
  900: "oklch(38.1% 0.065 45.673)",
983
2210
  950: "oklch(25.9% 0.045 41.584)"
984
- }, e1 = {
2211
+ }, ir = {
985
2212
  50: "oklch(97.4% 0.006 239.819)",
986
2213
  100: "oklch(95.2% 0.009 242.84)",
987
2214
  200: "oklch(91% 0.018 245.4)",
@@ -993,16 +2220,16 @@ var d = {
993
2220
  800: "oklch(48.7% 0.057 270.368)",
994
2221
  900: "oklch(43.6% 0.038 267.435)",
995
2222
  950: "oklch(30.6% 0.025 268.465)"
996
- }, f = {
2223
+ }, Y = {
997
2224
  display: "'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"
998
- }, v1 = {
2225
+ }, Hr = {
999
2226
  display: "'salt' on"
1000
- }, m = {
2227
+ }, J = {
1001
2228
  regular: "400",
1002
2229
  medium: "500",
1003
2230
  "semi-bold": "600",
1004
2231
  bold: "700"
1005
- }, x = {
2232
+ }, e0 = {
1006
2233
  100: "12px",
1007
2234
  200: "14px",
1008
2235
  300: "16px",
@@ -1016,7 +2243,7 @@ var d = {
1016
2243
  1100: "44px",
1017
2244
  1200: "48px",
1018
2245
  1300: "60px"
1019
- }, v = {
2246
+ }, r0 = {
1020
2247
  100: "16px",
1021
2248
  200: "20px",
1022
2249
  300: "24px",
@@ -1028,7 +2255,7 @@ var d = {
1028
2255
  900: "52px",
1029
2256
  1e3: "56px",
1030
2257
  1100: "76px"
1031
- }, y1 = {
2258
+ }, Rr = {
1032
2259
  0: "0px",
1033
2260
  100: "2px",
1034
2261
  200: "4px",
@@ -1045,38 +2272,38 @@ var d = {
1045
2272
  1300: "128px",
1046
2273
  1400: "200px",
1047
2274
  1500: "400px"
1048
- }, _1 = {
2275
+ }, Fr = {
1049
2276
  0: "0px",
1050
2277
  100: "4px",
1051
2278
  200: "8px",
1052
2279
  300: "12px",
1053
2280
  pill: "9999px"
1054
- }, w1 = {
2281
+ }, Pr = {
1055
2282
  0: "0px",
1056
2283
  100: "1px",
1057
2284
  150: "1.5px",
1058
2285
  200: "2px",
1059
2286
  300: "3px"
1060
- }, t0 = {
2287
+ }, q0 = {
1061
2288
  0: "none",
1062
2289
  100: "0px 2px 2px 0px rgba(30, 41, 59, 0.04), 0px 4px 8px 0px rgba(30, 41, 59, 0.08)",
1063
2290
  200: "0px 4px 4px 0px rgba(30, 41, 59, 0.04), 0px 8px 24px 0px rgba(30, 41, 59, 0.08)",
1064
2291
  300: "0px 16px 40px 0px rgba(30, 41, 59, 0.08), 0px 8px 8px 0px rgba(30, 41, 59, 0.04)",
1065
2292
  400: "0px 24px 56px 0px rgba(30, 41, 59, 0.08), 0px 12px 12px 0px rgba(30, 41, 59, 0.04)"
1066
- }, c0 = {
2293
+ }, C0 = {
1067
2294
  0: "none",
1068
2295
  100: "0px 2px 2px 0px rgba(0, 0, 0, 0.20), 0px 4px 8px 0px rgba(0, 0, 0, 0.30)",
1069
2296
  200: "0px 4px 4px 0px rgba(0, 0, 0, 0.20), 0px 8px 24px 0px rgba(0, 0, 0, 0.40)",
1070
2297
  300: "0px 16px 40px 0px rgba(0, 0, 0, 0.40), 0px 8px 8px 0px rgba(0, 0, 0, 0.20)",
1071
2298
  400: "0px 24px 56px 0px rgba(0, 0, 0, 0.50), 0px 12px 12px 0px rgba(0, 0, 0, 0.25)"
1072
- }, N1 = {
2299
+ }, jr = {
1073
2300
  xs: "375px",
1074
2301
  sm: "640px",
1075
2302
  md: "768px",
1076
2303
  lg: "1024px",
1077
2304
  xl: "1280px",
1078
2305
  "2xl": "1536px"
1079
- }, S1 = {
2306
+ }, Wr = {
1080
2307
  hide: "-1",
1081
2308
  base: "0",
1082
2309
  dropdown: "1000",
@@ -1087,497 +2314,497 @@ var d = {
1087
2314
  popover: "1500",
1088
2315
  tooltip: "1600",
1089
2316
  toast: "1700"
1090
- }, A1 = {
2317
+ }, zr = {
1091
2318
  fastest: "50ms",
1092
2319
  fast: "100ms",
1093
2320
  normal: "200ms",
1094
2321
  slow: "300ms",
1095
2322
  slower: "400ms",
1096
2323
  slowest: "500ms"
1097
- }, F1 = {
2324
+ }, Zr = {
1098
2325
  linear: "linear",
1099
2326
  in: "cubic-bezier(0.4, 0, 1, 1)",
1100
2327
  out: "cubic-bezier(0, 0, 0.2, 1)",
1101
2328
  inOut: "cubic-bezier(0.4, 0, 0.2, 1)"
1102
- }, O1 = {
2329
+ }, Vr = {
1103
2330
  h1: {
1104
- fontFamily: f.display,
1105
- fontWeight: m.bold,
1106
- fontSize: x[1200],
2331
+ fontFamily: Y.display,
2332
+ fontWeight: J.bold,
2333
+ fontSize: e0[1200],
1107
2334
  // 48px
1108
- lineHeight: v[700],
2335
+ lineHeight: r0[700],
1109
2336
  // 44px
1110
2337
  letterSpacing: "0px"
1111
2338
  },
1112
2339
  h2: {
1113
- fontFamily: f.display,
1114
- fontWeight: m.bold,
1115
- fontSize: x[1e3],
2340
+ fontFamily: Y.display,
2341
+ fontWeight: J.bold,
2342
+ fontSize: e0[1e3],
1116
2343
  // 40px
1117
- lineHeight: v[600],
2344
+ lineHeight: r0[600],
1118
2345
  // 36px
1119
2346
  letterSpacing: "0px"
1120
2347
  },
1121
2348
  h3: {
1122
- fontFamily: f.display,
1123
- fontWeight: m["semi-bold"],
1124
- fontSize: x[800],
2349
+ fontFamily: Y.display,
2350
+ fontWeight: J["semi-bold"],
2351
+ fontSize: e0[800],
1125
2352
  // 32px
1126
- lineHeight: v[500],
2353
+ lineHeight: r0[500],
1127
2354
  // 32px
1128
2355
  letterSpacing: "0px"
1129
2356
  },
1130
2357
  h4: {
1131
- fontFamily: f.display,
1132
- fontWeight: m["semi-bold"],
1133
- fontSize: x[600],
2358
+ fontFamily: Y.display,
2359
+ fontWeight: J["semi-bold"],
2360
+ fontSize: e0[600],
1134
2361
  // 24px
1135
- lineHeight: v[400],
2362
+ lineHeight: r0[400],
1136
2363
  // 28px
1137
2364
  letterSpacing: "0px"
1138
2365
  },
1139
2366
  h5: {
1140
- fontFamily: f.display,
1141
- fontWeight: m["semi-bold"],
1142
- fontSize: x[500],
2367
+ fontFamily: Y.display,
2368
+ fontWeight: J["semi-bold"],
2369
+ fontSize: e0[500],
1143
2370
  // 20px
1144
- lineHeight: v[300],
2371
+ lineHeight: r0[300],
1145
2372
  // 24px
1146
2373
  letterSpacing: "0px"
1147
2374
  },
1148
2375
  h6: {
1149
- fontFamily: f.display,
1150
- fontWeight: m["semi-bold"],
1151
- fontSize: x[400],
2376
+ fontFamily: Y.display,
2377
+ fontWeight: J["semi-bold"],
2378
+ fontSize: e0[400],
1152
2379
  // 18px
1153
- lineHeight: v[200],
2380
+ lineHeight: r0[200],
1154
2381
  // 20px
1155
2382
  letterSpacing: "0px"
1156
2383
  }
1157
- }, $1 = {
2384
+ }, Kr = {
1158
2385
  large: {
1159
- fontFamily: f.display,
1160
- fontWeight: m.regular,
1161
- fontSize: x[400],
2386
+ fontFamily: Y.display,
2387
+ fontWeight: J.regular,
2388
+ fontSize: e0[400],
1162
2389
  // 18px
1163
- lineHeight: v[300],
2390
+ lineHeight: r0[300],
1164
2391
  // 24px
1165
2392
  letterSpacing: "0px"
1166
2393
  },
1167
2394
  medium: {
1168
- fontFamily: f.display,
1169
- fontWeight: m.regular,
1170
- fontSize: x[300],
2395
+ fontFamily: Y.display,
2396
+ fontWeight: J.regular,
2397
+ fontSize: e0[300],
1171
2398
  // 16px
1172
- lineHeight: v[300],
2399
+ lineHeight: r0[300],
1173
2400
  // 24px
1174
2401
  letterSpacing: "0px"
1175
2402
  },
1176
2403
  small: {
1177
- fontFamily: f.display,
1178
- fontWeight: m.regular,
1179
- fontSize: x[200],
2404
+ fontFamily: Y.display,
2405
+ fontWeight: J.regular,
2406
+ fontSize: e0[200],
1180
2407
  // 14px
1181
- lineHeight: v[200],
2408
+ lineHeight: r0[200],
1182
2409
  // 20px
1183
2410
  letterSpacing: "0px"
1184
2411
  },
1185
2412
  "extra-small": {
1186
- fontFamily: f.display,
1187
- fontWeight: m.regular,
1188
- fontSize: x[100],
2413
+ fontFamily: Y.display,
2414
+ fontWeight: J.regular,
2415
+ fontSize: e0[100],
1189
2416
  // 12px
1190
- lineHeight: v[100],
2417
+ lineHeight: r0[100],
1191
2418
  // 16px
1192
2419
  letterSpacing: "0px"
1193
2420
  }
1194
- }, L1 = {
2421
+ }, Gr = {
1195
2422
  large: {
1196
- fontFamily: f.display,
1197
- fontWeight: m["semi-bold"],
1198
- fontSize: x[200],
2423
+ fontFamily: Y.display,
2424
+ fontWeight: J["semi-bold"],
2425
+ fontSize: e0[200],
1199
2426
  // 14px
1200
- lineHeight: v[200],
2427
+ lineHeight: r0[200],
1201
2428
  // 20px
1202
2429
  letterSpacing: "0px"
1203
2430
  },
1204
2431
  small: {
1205
- fontFamily: f.display,
1206
- fontWeight: m["semi-bold"],
1207
- fontSize: x[100],
2432
+ fontFamily: Y.display,
2433
+ fontWeight: J["semi-bold"],
2434
+ fontSize: e0[100],
1208
2435
  // 12px
1209
- lineHeight: v[100],
2436
+ lineHeight: r0[100],
1210
2437
  // 16px
1211
2438
  letterSpacing: "0px"
1212
2439
  }
1213
- }, M1 = {
2440
+ }, qr = {
1214
2441
  large: {
1215
- fontFamily: f.display,
1216
- fontWeight: m["semi-bold"],
1217
- fontSize: x[300],
2442
+ fontFamily: Y.display,
2443
+ fontWeight: J["semi-bold"],
2444
+ fontSize: e0[300],
1218
2445
  // 16px
1219
- lineHeight: v[300],
2446
+ lineHeight: r0[300],
1220
2447
  // 24px
1221
2448
  letterSpacing: "0px"
1222
2449
  },
1223
2450
  medium: {
1224
- fontFamily: f.display,
1225
- fontWeight: m["semi-bold"],
1226
- fontSize: x[200],
2451
+ fontFamily: Y.display,
2452
+ fontWeight: J["semi-bold"],
2453
+ fontSize: e0[200],
1227
2454
  // 14px
1228
- lineHeight: v[300],
2455
+ lineHeight: r0[300],
1229
2456
  // 24px
1230
2457
  letterSpacing: "0px"
1231
2458
  },
1232
2459
  small: {
1233
- fontFamily: f.display,
1234
- fontWeight: m["semi-bold"],
1235
- fontSize: x[100],
2460
+ fontFamily: Y.display,
2461
+ fontWeight: J["semi-bold"],
2462
+ fontSize: e0[100],
1236
2463
  // 12px
1237
- lineHeight: v[100],
2464
+ lineHeight: r0[100],
1238
2465
  // 16px
1239
2466
  letterSpacing: "0px"
1240
2467
  }
1241
- }, C1 = {
2468
+ }, Cr = {
1242
2469
  // ── Background (layer) ──
1243
- bg: l[0],
1244
- "bg-subtle": l[50],
1245
- "bg-muted": l[100],
1246
- "bg-emphasis": l[200],
1247
- "bg-inverse": l[1e3],
2470
+ bg: d[0],
2471
+ "bg-subtle": d[50],
2472
+ "bg-muted": d[100],
2473
+ "bg-emphasis": d[200],
2474
+ "bg-inverse": d[1e3],
1248
2475
  // ── Foreground / Text ──
1249
- fg: l[950],
1250
- "fg-subtle": l[800],
1251
- "fg-muted": l[500],
1252
- "fg-on-emphasis": l[0],
1253
- "fg-inverse": l[0],
1254
- "fg-disabled": d.black[250],
2476
+ fg: d[950],
2477
+ "fg-subtle": d[800],
2478
+ "fg-muted": d[500],
2479
+ "fg-on-emphasis": d[0],
2480
+ "fg-inverse": d[0],
2481
+ "fg-disabled": R.black[250],
1255
2482
  // ── Border ──
1256
- border: l[200],
1257
- "border-subtle": l[100],
1258
- "border-emphasis": l[400],
1259
- "border-disabled": d.black[100],
2483
+ border: d[200],
2484
+ "border-subtle": d[100],
2485
+ "border-emphasis": d[400],
2486
+ "border-disabled": R.black[100],
1260
2487
  // ── Ring (focus) ──
1261
2488
  ring: "var(--orb-branding-200)",
1262
- "ring-offset": l[0],
2489
+ "ring-offset": d[0],
1263
2490
  // ── Surface ──
1264
- surface: l[0],
1265
- "surface-raised": l[50],
1266
- "surface-overlay": l[0],
2491
+ surface: d[0],
2492
+ "surface-raised": d[50],
2493
+ "surface-overlay": d[0],
1267
2494
  // ── Primary (brand — driven by --orb-branding-* palette) ──
1268
2495
  primary: "var(--orb-branding-600)",
1269
2496
  "primary-hover": "var(--orb-branding-700)",
1270
2497
  "primary-active": "var(--orb-branding-800)",
1271
2498
  "primary-focus": "var(--orb-branding-600)",
1272
2499
  "primary-subtle": "var(--orb-branding-50)",
1273
- "primary-fg": l[0],
2500
+ "primary-fg": d[0],
1274
2501
  "primary-border": "var(--orb-branding-600)",
1275
2502
  // ── Secondary ──
1276
- secondary: l[0],
1277
- "secondary-hover": l[300],
1278
- "secondary-active": l[400],
1279
- "secondary-focus": l[200],
1280
- "secondary-fg": l[900],
1281
- "secondary-border": l[300],
2503
+ secondary: d[0],
2504
+ "secondary-hover": d[300],
2505
+ "secondary-active": d[400],
2506
+ "secondary-focus": d[200],
2507
+ "secondary-fg": d[900],
2508
+ "secondary-border": d[300],
1282
2509
  // ── Success (emerald) ──
1283
- success: F[600],
1284
- "success-hover": F[700],
1285
- "success-subtle": F[50],
1286
- "success-fg": l[0],
1287
- "success-border": F[300],
1288
- "success-text": F[700],
2510
+ success: n0[600],
2511
+ "success-hover": n0[700],
2512
+ "success-subtle": n0[50],
2513
+ "success-fg": d[0],
2514
+ "success-border": n0[300],
2515
+ "success-text": n0[700],
1289
2516
  // ── Warning (amber) ──
1290
- warning: B[500],
1291
- "warning-hover": B[600],
1292
- "warning-subtle": B[50],
1293
- "warning-fg": l[1e3],
1294
- "warning-border": B[300],
1295
- "warning-text": B[700],
2517
+ warning: _0[500],
2518
+ "warning-hover": _0[600],
2519
+ "warning-subtle": _0[50],
2520
+ "warning-fg": d[1e3],
2521
+ "warning-border": _0[300],
2522
+ "warning-text": _0[700],
1296
2523
  // ── Error (red) ──
1297
- error: h[600],
1298
- "error-hover": h[700],
1299
- "error-subtle": h[50],
1300
- "error-fg": l[0],
1301
- "error-border": h[300],
1302
- "error-text": h[700],
2524
+ error: M[600],
2525
+ "error-hover": M[700],
2526
+ "error-subtle": M[50],
2527
+ "error-fg": d[0],
2528
+ "error-border": M[300],
2529
+ "error-text": M[700],
1303
2530
  // ── Info (sky) ──
1304
- info: E[600],
1305
- "info-hover": E[700],
1306
- "info-subtle": E[50],
1307
- "info-fg": l[0],
1308
- "info-border": E[300],
1309
- "info-text": E[700],
2531
+ info: x0[600],
2532
+ "info-hover": x0[700],
2533
+ "info-subtle": x0[50],
2534
+ "info-fg": d[0],
2535
+ "info-border": x0[300],
2536
+ "info-text": x0[700],
1310
2537
  // ── Input ──
1311
- "input-bg": l[50],
1312
- "input-border": l[200],
1313
- "input-border-hover": l[300],
2538
+ "input-bg": d[50],
2539
+ "input-border": d[200],
2540
+ "input-border-hover": d[300],
1314
2541
  "input-border-focus": "var(--orb-branding-600)",
1315
- "input-placeholder": l[400],
1316
- "input-disabled-bg": d.black[100],
1317
- "input-disabled-fg": d.black[250],
2542
+ "input-placeholder": d[400],
2543
+ "input-disabled-bg": R.black[100],
2544
+ "input-disabled-fg": R.black[250],
1318
2545
  // ── Color variants (medium = solid, light = subtle bg) ──
1319
- "bg-medium-pink": l0[600],
1320
- "bg-light-pink": l0[50],
1321
- "text-medium-pink": l0[600],
1322
- "bg-medium-gray": l[700],
1323
- "bg-light-gray": l[100],
1324
- "text-medium-gray": l[600],
1325
- "bg-medium-green": Z[600],
1326
- "bg-light-green": Z[50],
1327
- "text-medium-green": Z[700],
1328
- "bg-medium-red": h[600],
1329
- "bg-light-red": h[50],
1330
- "text-medium-red": h[600],
1331
- "bg-medium-yellow": X[500],
1332
- "bg-light-yellow": X[50],
1333
- "text-medium-yellow": X[700],
1334
- "bg-medium-blue": J[600],
1335
- "bg-light-blue": J[50],
1336
- "text-medium-blue": J[600],
1337
- "bg-medium-purple": e0[600],
1338
- "bg-light-purple": e0[50],
1339
- "text-medium-purple": e0[600],
1340
- "bg-medium-indigo": Q[600],
1341
- "bg-light-indigo": Q[50],
1342
- "text-medium-indigo": Q[600],
1343
- "bg-medium-orange": q[600],
1344
- "bg-light-orange": q[50],
1345
- "text-medium-orange": q[700],
1346
- "bg-medium-teal": Y[600],
1347
- "bg-light-teal": Y[50],
1348
- "text-medium-teal": Y[700],
1349
- "bg-medium-cyan": K[600],
1350
- "bg-light-cyan": K[50],
1351
- "text-medium-cyan": K[700],
2546
+ "bg-medium-pink": P0[600],
2547
+ "bg-light-pink": P0[50],
2548
+ "text-medium-pink": P0[600],
2549
+ "bg-medium-gray": d[700],
2550
+ "bg-light-gray": d[100],
2551
+ "text-medium-gray": d[600],
2552
+ "bg-medium-green": v0[600],
2553
+ "bg-light-green": v0[50],
2554
+ "text-medium-green": v0[700],
2555
+ "bg-medium-red": M[600],
2556
+ "bg-light-red": M[50],
2557
+ "text-medium-red": M[600],
2558
+ "bg-medium-yellow": E0[500],
2559
+ "bg-light-yellow": E0[50],
2560
+ "text-medium-yellow": E0[700],
2561
+ "bg-medium-blue": H0[600],
2562
+ "bg-light-blue": H0[50],
2563
+ "text-medium-blue": H0[600],
2564
+ "bg-medium-purple": F0[600],
2565
+ "bg-light-purple": F0[50],
2566
+ "text-medium-purple": F0[600],
2567
+ "bg-medium-indigo": R0[600],
2568
+ "bg-light-indigo": R0[50],
2569
+ "text-medium-indigo": R0[600],
2570
+ "bg-medium-orange": I0[600],
2571
+ "bg-light-orange": I0[50],
2572
+ "text-medium-orange": I0[700],
2573
+ "bg-medium-teal": M0[600],
2574
+ "bg-light-teal": M0[50],
2575
+ "text-medium-teal": M0[700],
2576
+ "bg-medium-cyan": T0[600],
2577
+ "bg-light-cyan": T0[50],
2578
+ "text-medium-cyan": T0[700],
1352
2579
  // ── Tooltip ──
1353
- "tooltip-bg": l[900],
1354
- "tooltip-fg": l[0],
2580
+ "tooltip-bg": d[900],
2581
+ "tooltip-fg": d[0],
1355
2582
  // ── Icon ──
1356
- "icon-default": l[600],
1357
- "icon-disabled": d.black[250],
2583
+ "icon-default": d[600],
2584
+ "icon-disabled": R.black[250],
1358
2585
  "icon-hyperlink": "var(--orb-branding-600)",
1359
- "icon-success": F[600],
2586
+ "icon-success": n0[600],
1360
2587
  // ── Text extras ──
1361
2588
  "text-hyperlink": "var(--orb-branding-600)",
1362
- "text-disabled": d.black[250],
1363
- "text-invalid": h[600],
2589
+ "text-disabled": R.black[250],
2590
+ "text-invalid": M[600],
1364
2591
  // ── Border extras ──
1365
- "border-field": l[200],
1366
- "border-field-action": l[700],
1367
- "border-invalid": h[600],
1368
- "border-neutral": l[0],
2592
+ "border-field": d[200],
2593
+ "border-field-action": d[700],
2594
+ "border-invalid": M[600],
2595
+ "border-neutral": d[0],
1369
2596
  // ── Background extras ──
1370
- "bg-field": l[0],
1371
- "bg-field-disabled": d.black[100],
1372
- "bg-layer2": l[50],
1373
- "bg-disabled": d.black[100],
2597
+ "bg-field": d[0],
2598
+ "bg-field-disabled": R.black[100],
2599
+ "bg-layer2": d[50],
2600
+ "bg-disabled": R.black[100],
1374
2601
  // ── Shadow (semantic — references primitives) ──
1375
- "shadow-sm": t0[100],
1376
- "shadow-md": t0[200],
1377
- "shadow-lg": t0[300],
1378
- "shadow-overlay": t0[200],
1379
- "overlay-bg": d.white[200],
2602
+ "shadow-sm": q0[100],
2603
+ "shadow-md": q0[200],
2604
+ "shadow-lg": q0[300],
2605
+ "shadow-overlay": q0[200],
2606
+ "overlay-bg": R.white[200],
1380
2607
  // ── Dialog / Modal ──
1381
- "dialog-bg": l[0],
1382
- "dialog-border": l[200],
1383
- "dialog-shadow": t0[300],
1384
- "dialog-scrim": d.black[400],
2608
+ "dialog-bg": d[0],
2609
+ "dialog-border": d[200],
2610
+ "dialog-shadow": q0[300],
2611
+ "dialog-scrim": R.black[400],
1385
2612
  "dialog-outline": "transparent",
1386
2613
  "dialog-header-border": "transparent",
1387
2614
  "dialog-footer-border": "transparent",
1388
- "dialog-footer-bg": l[50],
2615
+ "dialog-footer-bg": d[50],
1389
2616
  // ── Shared semantic ──
1390
- "text-support": c[500],
1391
- "frame-bg-layer3": l[100]
1392
- }, B1 = {
2617
+ "text-support": B[500],
2618
+ "frame-bg-layer3": d[100]
2619
+ }, Ur = {
1393
2620
  // ── Background (layer) ──
1394
2621
  // Hierarchy: bg (deepest) → bg-subtle (cards/hero) → bg-muted (code/inputs) → bg-emphasis (hover)
1395
- bg: c[900],
1396
- "bg-subtle": c[800],
1397
- "bg-muted": c[700],
1398
- "bg-emphasis": c[600],
1399
- "bg-inverse": c[50],
2622
+ bg: B[900],
2623
+ "bg-subtle": B[800],
2624
+ "bg-muted": B[700],
2625
+ "bg-emphasis": B[600],
2626
+ "bg-inverse": B[50],
1400
2627
  // ── Foreground / Text ──
1401
- fg: l[0],
1402
- "fg-subtle": c[300],
1403
- "fg-muted": c[400],
1404
- "fg-on-emphasis": l[0],
1405
- "fg-inverse": c[950],
1406
- "fg-disabled": d.white[250],
2628
+ fg: d[0],
2629
+ "fg-subtle": B[300],
2630
+ "fg-muted": B[400],
2631
+ "fg-on-emphasis": d[0],
2632
+ "fg-inverse": B[950],
2633
+ "fg-disabled": R.white[250],
1407
2634
  // ── Border ──
1408
- border: c[700],
1409
- "border-subtle": c[800],
1410
- "border-emphasis": c[600],
1411
- "border-disabled": d.white[100],
2635
+ border: B[700],
2636
+ "border-subtle": B[800],
2637
+ "border-emphasis": B[600],
2638
+ "border-disabled": R.white[100],
1412
2639
  // ── Ring (focus) ──
1413
2640
  ring: "var(--orb-branding-300)",
1414
- "ring-offset": c[900],
2641
+ "ring-offset": B[900],
1415
2642
  // ── Surface ──
1416
- surface: c[800],
1417
- "surface-raised": c[700],
1418
- "surface-overlay": c[700],
2643
+ surface: B[800],
2644
+ "surface-raised": B[700],
2645
+ "surface-overlay": B[700],
1419
2646
  // ── Primary (brand — driven by --orb-branding-* palette) ──
1420
2647
  primary: "var(--orb-branding-600)",
1421
2648
  "primary-hover": "var(--orb-branding-700)",
1422
2649
  "primary-active": "var(--orb-branding-800)",
1423
2650
  "primary-focus": "var(--orb-branding-600)",
1424
2651
  "primary-subtle": "var(--orb-branding-950)",
1425
- "primary-fg": l[0],
2652
+ "primary-fg": d[0],
1426
2653
  "primary-border": "var(--orb-branding-600)",
1427
2654
  // ── Secondary ──
1428
2655
  secondary: "rgba(148, 163, 184, 0.1)",
1429
2656
  "secondary-hover": "rgba(203, 213, 225, 0.1)",
1430
2657
  "secondary-active": "rgba(241, 245, 249, 0.25)",
1431
2658
  "secondary-focus": "rgba(241, 245, 249, 0.10)",
1432
- "secondary-fg": l[0],
2659
+ "secondary-fg": d[0],
1433
2660
  "secondary-border": "transparent",
1434
2661
  // ── Success (emerald) ──
1435
- success: F[600],
1436
- "success-hover": F[500],
1437
- "success-subtle": F[950],
1438
- "success-fg": l[0],
1439
- "success-border": F[800],
1440
- "success-text": F[400],
2662
+ success: n0[600],
2663
+ "success-hover": n0[500],
2664
+ "success-subtle": n0[950],
2665
+ "success-fg": d[0],
2666
+ "success-border": n0[800],
2667
+ "success-text": n0[400],
1441
2668
  // ── Warning (amber) ──
1442
- warning: B[500],
1443
- "warning-hover": B[400],
1444
- "warning-subtle": B[950],
1445
- "warning-fg": l[1e3],
1446
- "warning-border": B[800],
1447
- "warning-text": B[400],
2669
+ warning: _0[500],
2670
+ "warning-hover": _0[400],
2671
+ "warning-subtle": _0[950],
2672
+ "warning-fg": d[1e3],
2673
+ "warning-border": _0[800],
2674
+ "warning-text": _0[400],
1448
2675
  // ── Error (red) ──
1449
- error: h[500],
1450
- "error-hover": h[400],
1451
- "error-subtle": h[950],
1452
- "error-fg": l[0],
1453
- "error-border": h[800],
1454
- "error-text": h[400],
2676
+ error: M[500],
2677
+ "error-hover": M[400],
2678
+ "error-subtle": M[950],
2679
+ "error-fg": d[0],
2680
+ "error-border": M[800],
2681
+ "error-text": M[400],
1455
2682
  // ── Info (sky) ──
1456
- info: E[600],
1457
- "info-hover": E[500],
1458
- "info-subtle": E[950],
1459
- "info-fg": l[0],
1460
- "info-border": E[800],
1461
- "info-text": E[400],
2683
+ info: x0[600],
2684
+ "info-hover": x0[500],
2685
+ "info-subtle": x0[950],
2686
+ "info-fg": d[0],
2687
+ "info-border": x0[800],
2688
+ "info-text": x0[400],
1462
2689
  // ── Input ──
1463
- "input-bg": c[800],
1464
- "input-border": c[600],
1465
- "input-border-hover": c[500],
2690
+ "input-bg": B[800],
2691
+ "input-border": B[600],
2692
+ "input-border-hover": B[500],
1466
2693
  "input-border-focus": "var(--orb-branding-600)",
1467
- "input-placeholder": c[400],
1468
- "input-disabled-bg": d.white[100],
1469
- "input-disabled-fg": d.white[250],
2694
+ "input-placeholder": B[400],
2695
+ "input-disabled-bg": R.white[100],
2696
+ "input-disabled-fg": R.white[250],
1470
2697
  // ── Color variants (medium = solid, light = subtle bg) ──
1471
- "bg-medium-pink": l0[600],
1472
- "bg-light-pink": l0[950],
1473
- "text-medium-pink": l0[400],
1474
- "bg-medium-gray": c[400],
1475
- "bg-light-gray": c[700],
1476
- "text-medium-gray": c[300],
1477
- "bg-medium-green": Z[600],
1478
- "bg-light-green": Z[950],
1479
- "text-medium-green": Z[400],
1480
- "bg-medium-red": h[500],
1481
- "bg-light-red": h[950],
1482
- "text-medium-red": h[400],
1483
- "bg-medium-yellow": X[500],
1484
- "bg-light-yellow": X[950],
1485
- "text-medium-yellow": X[400],
1486
- "bg-medium-blue": J[500],
1487
- "bg-light-blue": J[950],
1488
- "text-medium-blue": J[400],
1489
- "bg-medium-purple": e0[500],
1490
- "bg-light-purple": e0[950],
1491
- "text-medium-purple": e0[400],
1492
- "bg-medium-indigo": Q[500],
1493
- "bg-light-indigo": Q[950],
1494
- "text-medium-indigo": Q[400],
1495
- "bg-medium-orange": q[500],
1496
- "bg-light-orange": q[950],
1497
- "text-medium-orange": q[400],
1498
- "bg-medium-teal": Y[500],
1499
- "bg-light-teal": Y[950],
1500
- "text-medium-teal": Y[400],
1501
- "bg-medium-cyan": K[500],
1502
- "bg-light-cyan": K[950],
1503
- "text-medium-cyan": K[400],
2698
+ "bg-medium-pink": P0[600],
2699
+ "bg-light-pink": P0[950],
2700
+ "text-medium-pink": P0[400],
2701
+ "bg-medium-gray": B[400],
2702
+ "bg-light-gray": B[700],
2703
+ "text-medium-gray": B[300],
2704
+ "bg-medium-green": v0[600],
2705
+ "bg-light-green": v0[950],
2706
+ "text-medium-green": v0[400],
2707
+ "bg-medium-red": M[500],
2708
+ "bg-light-red": M[950],
2709
+ "text-medium-red": M[400],
2710
+ "bg-medium-yellow": E0[500],
2711
+ "bg-light-yellow": E0[950],
2712
+ "text-medium-yellow": E0[400],
2713
+ "bg-medium-blue": H0[500],
2714
+ "bg-light-blue": H0[950],
2715
+ "text-medium-blue": H0[400],
2716
+ "bg-medium-purple": F0[500],
2717
+ "bg-light-purple": F0[950],
2718
+ "text-medium-purple": F0[400],
2719
+ "bg-medium-indigo": R0[500],
2720
+ "bg-light-indigo": R0[950],
2721
+ "text-medium-indigo": R0[400],
2722
+ "bg-medium-orange": I0[500],
2723
+ "bg-light-orange": I0[950],
2724
+ "text-medium-orange": I0[400],
2725
+ "bg-medium-teal": M0[500],
2726
+ "bg-light-teal": M0[950],
2727
+ "text-medium-teal": M0[400],
2728
+ "bg-medium-cyan": T0[500],
2729
+ "bg-light-cyan": T0[950],
2730
+ "text-medium-cyan": T0[400],
1504
2731
  // ── Tooltip ──
1505
- "tooltip-bg": c[700],
1506
- "tooltip-fg": l[0],
2732
+ "tooltip-bg": B[700],
2733
+ "tooltip-fg": d[0],
1507
2734
  // ── Icon ──
1508
- "icon-default": c[300],
1509
- "icon-disabled": d.white[250],
2735
+ "icon-default": B[300],
2736
+ "icon-disabled": R.white[250],
1510
2737
  "icon-hyperlink": "var(--orb-branding-600)",
1511
- "icon-success": F[500],
2738
+ "icon-success": n0[500],
1512
2739
  // ── Text extras ──
1513
2740
  "text-hyperlink": "var(--orb-branding-600)",
1514
- "text-disabled": d.white[250],
1515
- "text-invalid": h[400],
2741
+ "text-disabled": R.white[250],
2742
+ "text-invalid": M[400],
1516
2743
  // ── Border extras ──
1517
- "border-field": c[600],
1518
- "border-field-action": c[300],
1519
- "border-invalid": h[500],
1520
- "border-neutral": l[0],
2744
+ "border-field": B[600],
2745
+ "border-field-action": B[300],
2746
+ "border-invalid": M[500],
2747
+ "border-neutral": d[0],
1521
2748
  // ── Background extras ──
1522
- "bg-field": c[800],
1523
- "bg-field-disabled": d.white[100],
1524
- "bg-layer2": c[800],
1525
- "bg-disabled": d.white[100],
2749
+ "bg-field": B[800],
2750
+ "bg-field-disabled": R.white[100],
2751
+ "bg-layer2": B[800],
2752
+ "bg-disabled": R.white[100],
1526
2753
  // ── Shadow (semantic — references primitives) ──
1527
- "shadow-sm": c0[100],
1528
- "shadow-md": c0[200],
1529
- "shadow-lg": c0[300],
1530
- "shadow-overlay": c0[200],
1531
- "overlay-bg": d.white[120],
2754
+ "shadow-sm": C0[100],
2755
+ "shadow-md": C0[200],
2756
+ "shadow-lg": C0[300],
2757
+ "shadow-overlay": C0[200],
2758
+ "overlay-bg": R.white[120],
1532
2759
  // ── Dialog / Modal ──
1533
- "dialog-bg": c[800],
1534
- "dialog-border": c[600],
1535
- "dialog-shadow": c0[300],
1536
- "dialog-scrim": d.black[700],
1537
- "dialog-outline": d.white[100],
2760
+ "dialog-bg": B[800],
2761
+ "dialog-border": B[600],
2762
+ "dialog-shadow": C0[300],
2763
+ "dialog-scrim": R.black[700],
2764
+ "dialog-outline": R.white[100],
1538
2765
  "dialog-header-border": "transparent",
1539
2766
  "dialog-footer-border": "transparent",
1540
2767
  "dialog-footer-bg": "rgba(51, 65, 85, 0.25)",
1541
2768
  // ── Shared semantic ──
1542
- "text-support": c[400],
1543
- "frame-bg-layer3": c[600]
1544
- }, E1 = {
2769
+ "text-support": B[400],
2770
+ "frame-bg-layer3": B[600]
2771
+ }, Xr = {
1545
2772
  // ── Success (fixed across themes) ──
1546
- "static-success-default": Z[600],
1547
- "static-success-hover": Z[700],
1548
- "static-success-active": Z[800],
1549
- "static-success-focus": Z[600],
2773
+ "static-success-default": v0[600],
2774
+ "static-success-hover": v0[700],
2775
+ "static-success-active": v0[800],
2776
+ "static-success-focus": v0[600],
1550
2777
  // ── Invalid (fixed across themes) ──
1551
- "static-invalid-default": h[600],
1552
- "static-invalid-hover": h[700],
1553
- "static-invalid-active": h[800],
1554
- "static-invalid-focus": h[600],
2778
+ "static-invalid-default": M[600],
2779
+ "static-invalid-hover": M[700],
2780
+ "static-invalid-active": M[800],
2781
+ "static-invalid-focus": M[600],
1555
2782
  // ── Overlay actions (buttons over images/media) ──
1556
- "static-overlay-bg": d.black[400],
1557
- "static-overlay-bg-hover": d.black[550],
1558
- "static-overlay-fg": l[0]
1559
- }, Z1 = {
1560
- branding: Y0
1561
- }, H1 = {
1562
- branding: K0
1563
- }, P1 = {
1564
- branding: J0
1565
- }, W1 = {
1566
- branding: Q0
1567
- }, j1 = {
1568
- branding: e1
2783
+ "static-overlay-bg": R.black[400],
2784
+ "static-overlay-bg-hover": R.black[550],
2785
+ "static-overlay-fg": d[0]
2786
+ }, Qr = {
2787
+ branding: rr
2788
+ }, Yr = {
2789
+ branding: lr
2790
+ }, Jr = {
2791
+ branding: or
2792
+ }, el = {
2793
+ branding: tr
2794
+ }, rl = {
2795
+ branding: ir
1569
2796
  };
1570
- function z1(o) {
1571
- return o;
2797
+ function ll(s) {
2798
+ return s;
1572
2799
  }
1573
- function g0(o) {
1574
- return Object.entries(o).map(([i, a]) => ` --orb-${i}: ${a};`).join(`
2800
+ function ie(s) {
2801
+ return Object.entries(s).map(([l, t]) => ` --orb-${l}: ${t};`).join(`
1575
2802
  `);
1576
2803
  }
1577
- function D1(o) {
1578
- var n, r;
1579
- const i = [];
1580
- i.push(`/**
2804
+ function ol(s) {
2805
+ var c, o;
2806
+ const l = [];
2807
+ l.push(`/**
1581
2808
  * Orbit Design System - Custom Theme Overrides
1582
2809
  * Auto-generated from orbit.config.ts
1583
2810
  *
@@ -1585,85 +2812,96 @@ function D1(o) {
1585
2812
  * import '@neowit/orbit-tokens/css'
1586
2813
  * import './orbit-overrides.css'
1587
2814
  */`);
1588
- const a = (n = o.theme) == null ? void 0 : n.light, t = (r = o.theme) == null ? void 0 : r.dark;
1589
- return a && Object.keys(a).length > 0 && i.push(`:root,
2815
+ const t = (c = s.theme) == null ? void 0 : c.light, i = (o = s.theme) == null ? void 0 : o.dark;
2816
+ return t && Object.keys(t).length > 0 && l.push(`:root,
1590
2817
  [data-theme="light"] {
1591
- ${g0(a)}
1592
- }`), t && Object.keys(t).length > 0 && (i.push(`[data-theme="dark"] {
1593
- ${g0(t)}
1594
- }`), i.push(`@media (prefers-color-scheme: dark) {
2818
+ ${ie(t)}
2819
+ }`), i && Object.keys(i).length > 0 && (l.push(`[data-theme="dark"] {
2820
+ ${ie(i)}
2821
+ }`), l.push(`@media (prefers-color-scheme: dark) {
1595
2822
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
1596
- ${g0(t)}
2823
+ ${ie(i)}
1597
2824
  }
1598
- }`)), i.join(`
2825
+ }`)), l.join(`
1599
2826
 
1600
2827
  `) + `
1601
2828
  `;
1602
2829
  }
1603
2830
  export {
1604
- c1 as OAlert,
1605
- i1 as OBadge,
1606
- r1 as OButton,
1607
- w0 as OFieldLabel,
1608
- S0 as OFieldWrap,
1609
- N0 as OHelpText,
1610
- A0 as OStatusIcon,
1611
- t1 as OTextArea,
1612
- a1 as OTextField,
1613
- B as amber,
1614
- J as blue,
1615
- $1 as body,
1616
- _1 as borderRadius,
1617
- w1 as borderWidth,
1618
- N1 as breakpoints,
1619
- M1 as button,
1620
- L1 as caption,
1621
- Z1 as contasy,
1622
- j1 as contasyGlobal,
1623
- W1 as contasyPrivate,
1624
- P1 as contasyStart,
1625
- K as cyan,
1626
- B1 as dark,
1627
- z1 as defineOrbitConfig,
1628
- A1 as duration,
1629
- F1 as easing,
1630
- F as emerald,
1631
- f as fontFamily,
1632
- v1 as fontFeatureSettings,
1633
- x as fontSize,
1634
- m as fontWeight,
1635
- h1 as fuchsia,
1636
- D1 as generateConfigCss,
1637
- b1 as gray,
1638
- Z as green,
1639
- O1 as heading,
1640
- Q as indigo,
1641
- C1 as light,
1642
- n1 as lime,
1643
- v as lineHeight,
1644
- g1 as mauve,
1645
- f1 as mist,
1646
- l as neutral,
1647
- H1 as notasy,
1648
- u1 as olive,
1649
- q as orange,
1650
- x1 as orbit,
1651
- l0 as pink,
1652
- e0 as purple,
1653
- h as red,
1654
- d1 as rose,
1655
- t0 as shadows,
1656
- c0 as shadowsDark,
1657
- E as sky,
1658
- c as slate,
1659
- y1 as spacing,
1660
- E1 as staticTokens,
1661
- p1 as stone,
1662
- m1 as taupe,
1663
- Y as teal,
1664
- d as transparent,
1665
- s1 as violet,
1666
- X as yellow,
1667
- S1 as zIndex,
1668
- k1 as zinc
2831
+ mr as OAlert,
2832
+ wr as OAlertDialog,
2833
+ dr as OBadge,
2834
+ nr as OButton,
2835
+ _r as OButtonGroup,
2836
+ hr as OCheckbox,
2837
+ xr as OCheckboxGroup,
2838
+ Je as ODialog,
2839
+ ce as OFieldLabel,
2840
+ ae as OFieldWrap,
2841
+ U0 as OHelpText,
2842
+ ur as ORadioButton,
2843
+ vr as ORadioGroup,
2844
+ yr as OSelect,
2845
+ Y0 as OStatusIcon,
2846
+ fr as OSwitch,
2847
+ br as OText,
2848
+ gr as OTextArea,
2849
+ kr as OTextField,
2850
+ pr as OTooltip,
2851
+ _0 as amber,
2852
+ H0 as blue,
2853
+ Kr as body,
2854
+ Fr as borderRadius,
2855
+ Pr as borderWidth,
2856
+ jr as breakpoints,
2857
+ qr as button,
2858
+ Gr as caption,
2859
+ Qr as contasy,
2860
+ rl as contasyGlobal,
2861
+ el as contasyPrivate,
2862
+ Jr as contasyStart,
2863
+ T0 as cyan,
2864
+ Ur as dark,
2865
+ ll as defineOrbitConfig,
2866
+ zr as duration,
2867
+ Zr as easing,
2868
+ n0 as emerald,
2869
+ Y as fontFamily,
2870
+ Hr as fontFeatureSettings,
2871
+ e0 as fontSize,
2872
+ J as fontWeight,
2873
+ $r as fuchsia,
2874
+ ol as generateConfigCss,
2875
+ Ar as gray,
2876
+ v0 as green,
2877
+ Vr as heading,
2878
+ R0 as indigo,
2879
+ Cr as light,
2880
+ Nr as lime,
2881
+ r0 as lineHeight,
2882
+ Or as mauve,
2883
+ Er as mist,
2884
+ d as neutral,
2885
+ Yr as notasy,
2886
+ Ir as olive,
2887
+ I0 as orange,
2888
+ Tr as orbit,
2889
+ P0 as pink,
2890
+ F0 as purple,
2891
+ M as red,
2892
+ Br as rose,
2893
+ q0 as shadows,
2894
+ C0 as shadowsDark,
2895
+ x0 as sky,
2896
+ B as slate,
2897
+ Rr as spacing,
2898
+ Xr as staticTokens,
2899
+ Dr as stone,
2900
+ Mr as taupe,
2901
+ M0 as teal,
2902
+ R as transparent,
2903
+ Sr as violet,
2904
+ E0 as yellow,
2905
+ Wr as zIndex,
2906
+ Lr as zinc
1669
2907
  };