@neowit/orbit-react 0.1.0

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 ADDED
@@ -0,0 +1,1669 @@
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" }) });
6
+ }
7
+ const r1 = Z0(
8
+ 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,
24
+ 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 = [
29
+ "orb-btn",
30
+ `orb-btn--${i}`,
31
+ `orb-btn--${a}`
32
+ ];
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();
38
+ return;
39
+ }
40
+ $ == null || $(S);
41
+ }
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: [
46
+ 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 })
50
+ ] }),
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(
54
+ "span",
55
+ {
56
+ className: `orb-btn__disclosure${j === "up" ? " orb-btn__disclosure--up" : ""}`,
57
+ "aria-hidden": "true",
58
+ children: /* @__PURE__ */ e("svg", { viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: W0 }) })
59
+ }
60
+ )
61
+ ] });
62
+ return H ? /* @__PURE__ */ b(
63
+ "a",
64
+ {
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,
74
+ children: [
75
+ /* @__PURE__ */ e(
76
+ "span",
77
+ {
78
+ className: `orb-btn__spinner${r0 ? " orb-btn__spinner--visible" : ""}`,
79
+ "aria-hidden": "true",
80
+ children: /* @__PURE__ */ e(p0, {})
81
+ }
82
+ ),
83
+ s0
84
+ ]
85
+ }
86
+ ) : /* @__PURE__ */ b(
87
+ "button",
88
+ {
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,
95
+ children: [
96
+ /* @__PURE__ */ e(
97
+ "span",
98
+ {
99
+ className: `orb-btn__spinner${r0 ? " orb-btn__spinner--visible" : ""}`,
100
+ "aria-hidden": "true",
101
+ children: /* @__PURE__ */ e(p0, {})
102
+ }
103
+ ),
104
+ s0
105
+ ]
106
+ }
107
+ );
108
+ }
109
+ );
110
+ function i1({
111
+ type: o = "soft",
112
+ color: i = "gray",
113
+ maxWidth: a,
114
+ iconOnly: t = !1,
115
+ icon: n,
116
+ children: r
117
+ }) {
118
+ if (o === "dot")
119
+ return /* @__PURE__ */ e(
120
+ "span",
121
+ {
122
+ className: `orb-badge orb-badge--dot orb-badge--${i}`,
123
+ "aria-label": `Status: ${i}`
124
+ }
125
+ );
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]
132
+ );
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 })
137
+ ] });
138
+ }
139
+ function w0({
140
+ label: o,
141
+ required: i = !1,
142
+ optional: a = !1,
143
+ disabled: t = !1,
144
+ charCount: n,
145
+ maxLength: r
146
+ }) {
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(
151
+ "label",
152
+ {
153
+ className: `orb-field-label__text${t ? " orb-field-label__text--disabled" : ""}`,
154
+ children: [
155
+ o,
156
+ s && /* @__PURE__ */ e("span", { className: "orb-field-label__suffix", children: s })
157
+ ]
158
+ }
159
+ ),
160
+ r != null && /* @__PURE__ */ e(
161
+ "span",
162
+ {
163
+ className: `orb-field-label__counter${t ? " orb-field-label__counter--disabled" : ""}`,
164
+ children: n ?? 0
165
+ }
166
+ )
167
+ ] });
168
+ }
169
+ function N0({
170
+ variant: o = "neutral",
171
+ disabled: i = !1,
172
+ children: a
173
+ }) {
174
+ const t = [
175
+ "orb-help-text",
176
+ `orb-help-text--${o}`,
177
+ i && o === "neutral" ? "orb-help-text--disabled" : ""
178
+ ].filter(Boolean).join(" ");
179
+ return /* @__PURE__ */ e(
180
+ "span",
181
+ {
182
+ className: t,
183
+ role: o === "negative" ? "alert" : void 0,
184
+ children: a
185
+ }
186
+ );
187
+ }
188
+ function S0({
189
+ size: o = "medium",
190
+ focused: i = !1,
191
+ invalid: a = !1,
192
+ disabled: t = !1,
193
+ children: n
194
+ }) {
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 });
200
+ }
201
+ function A0({
202
+ status: o,
203
+ size: i = "md",
204
+ filled: a = !1,
205
+ inverted: t = !1
206
+ }) {
207
+ const n = [
208
+ "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 = {
214
+ viewBox: "0 0 24 24",
215
+ fill: "none",
216
+ stroke: "currentColor",
217
+ strokeWidth: 1.5,
218
+ strokeLinecap: "round",
219
+ strokeLinejoin: "round",
220
+ "aria-hidden": !0
221
+ };
222
+ let s;
223
+ return o === "success" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
224
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
225
+ /* @__PURE__ */ e("path", { d: "m9 12 2 2 4-4" })
226
+ ] }) : o === "warning" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
227
+ /* @__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
+ /* @__PURE__ */ e("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
229
+ /* @__PURE__ */ e("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
230
+ ] }) : o === "error" ? s = /* @__PURE__ */ b("svg", { ...r, children: [
231
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
232
+ /* @__PURE__ */ e("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
233
+ /* @__PURE__ */ e("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
234
+ ] }) : s = /* @__PURE__ */ b("svg", { ...r, children: [
235
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
236
+ /* @__PURE__ */ e("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
237
+ /* @__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
+ }
240
+ const j0 = {
241
+ cpf: "###.###.###-##",
242
+ cnpj: "##.###.###/####-##",
243
+ cep: "#####-###",
244
+ tel: "(##) ####-####",
245
+ cel: "(##) #####-####"
246
+ };
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;
253
+ }
254
+ function z0(o) {
255
+ return o.replace(/\D/g, "");
256
+ }
257
+ function D0(o) {
258
+ return j0[o] ?? o;
259
+ }
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,
278
+ 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
288
+ }) {
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);
301
+ } else
302
+ i0(R.value), i == null || i(R.value);
303
+ },
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();
318
+ },
319
+ [D, P, N, k, i]
320
+ );
321
+ return /* @__PURE__ */ b("div", { className: `orb-text-field orb-text-field--${n}`, children: [
322
+ (a || u != null) && /* @__PURE__ */ e(
323
+ w0,
324
+ {
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
331
+ }
332
+ ),
333
+ /* @__PURE__ */ b(
334
+ S0,
335
+ {
336
+ size: n,
337
+ focused: s0,
338
+ invalid: r === "invalid",
339
+ disabled: r === "disabled",
340
+ 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(
344
+ "button",
345
+ {
346
+ type: "button",
347
+ className: "orb-text-field__stepper",
348
+ "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 }) })
352
+ }
353
+ ),
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 }),
356
+ /* @__PURE__ */ e(
357
+ "input",
358
+ {
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,
372
+ className: "orb-text-field__input",
373
+ onChange: M0,
374
+ onFocus: () => S(!0),
375
+ onBlur: () => S(!1)
376
+ }
377
+ ),
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(
380
+ "button",
381
+ {
382
+ type: "button",
383
+ className: "orb-text-field__clear",
384
+ "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 }) })
387
+ }
388
+ ),
389
+ u0 && r !== "disabled" && /* @__PURE__ */ e(
390
+ "button",
391
+ {
392
+ type: "button",
393
+ 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 }) })
397
+ }
398
+ ),
399
+ I && r !== "disabled" && /* @__PURE__ */ e(
400
+ "button",
401
+ {
402
+ type: "button",
403
+ className: "orb-text-field__stepper",
404
+ "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 }) })
408
+ }
409
+ ),
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 })
412
+ ]
413
+ }
414
+ ),
415
+ _ && /* @__PURE__ */ e(
416
+ N0,
417
+ {
418
+ variant: r === "invalid" ? "negative" : "neutral",
419
+ disabled: r === "disabled",
420
+ children: _
421
+ }
422
+ ),
423
+ M && /* @__PURE__ */ b(
424
+ "a",
425
+ {
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());
430
+ },
431
+ children: [
432
+ r0 && /* @__PURE__ */ e("span", { className: "orb-text-field__hyperlink-icon", children: r0 }),
433
+ M
434
+ ]
435
+ }
436
+ )
437
+ ] });
438
+ }
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
456
+ }) {
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);
463
+ },
464
+ [i, g, k]
465
+ );
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,
473
+ {
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
480
+ }
481
+ ),
482
+ /* @__PURE__ */ e(
483
+ S0,
484
+ {
485
+ size: n,
486
+ focused: w,
487
+ invalid: r === "invalid",
488
+ disabled: r === "disabled",
489
+ children: /* @__PURE__ */ e(
490
+ "textarea",
491
+ {
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)
504
+ }
505
+ )
506
+ }
507
+ ),
508
+ _ && /* @__PURE__ */ e(
509
+ N0,
510
+ {
511
+ variant: r === "invalid" ? "negative" : "neutral",
512
+ disabled: r === "disabled",
513
+ children: _
514
+ }
515
+ ),
516
+ H && /* @__PURE__ */ e(
517
+ "a",
518
+ {
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 || $());
523
+ },
524
+ children: H
525
+ }
526
+ )
527
+ ] });
528
+ }
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: _
540
+ }) {
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 = [
548
+ "orb-alert",
549
+ `orb-alert--${o}`,
550
+ `orb-alert--${i}`,
551
+ g ? "orb-alert--closing" : "",
552
+ M ? "orb-alert--has-icon" : ""
553
+ ].filter(Boolean).join(" ");
554
+ return /* @__PURE__ */ b(
555
+ "div",
556
+ {
557
+ className: C,
558
+ role: $,
559
+ onTransitionEnd: w,
560
+ children: [
561
+ M && /* @__PURE__ */ e("span", { className: "orb-alert__icon", children: y || /* @__PURE__ */ e(
562
+ A0,
563
+ {
564
+ status: o,
565
+ size: "md"
566
+ }
567
+ ) }),
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: _ })
572
+ ] }),
573
+ t && /* @__PURE__ */ e(
574
+ "button",
575
+ {
576
+ type: "button",
577
+ className: "orb-alert__close",
578
+ "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 }) })
581
+ }
582
+ )
583
+ ]
584
+ }
585
+ );
586
+ }
587
+ var d = {
588
+ white: {
589
+ 100: "rgba(255, 255, 255, 0.10)",
590
+ 120: "rgba(255, 255, 255, 0.12)",
591
+ 200: "rgba(255, 255, 255, 0.20)",
592
+ 250: "rgba(255, 255, 255, 0.25)",
593
+ 400: "rgba(255, 255, 255, 0.40)",
594
+ 550: "rgba(255, 255, 255, 0.55)",
595
+ 700: "rgba(255, 255, 255, 0.70)",
596
+ 800: "rgba(255, 255, 255, 0.80)",
597
+ 900: "rgba(255, 255, 255, 0.90)",
598
+ 1e3: "rgba(255, 255, 255, 1)"
599
+ },
600
+ black: {
601
+ 100: "rgba(0, 0, 0, 0.10)",
602
+ 250: "rgba(0, 0, 0, 0.25)",
603
+ 400: "rgba(0, 0, 0, 0.40)",
604
+ 550: "rgba(0, 0, 0, 0.55)",
605
+ 700: "rgba(0, 0, 0, 0.70)",
606
+ 800: "rgba(0, 0, 0, 0.80)",
607
+ 900: "rgba(0, 0, 0, 0.90)",
608
+ 1e3: "rgba(0, 0, 0, 1)"
609
+ }
610
+ }, l = {
611
+ 0: "#fff",
612
+ 50: "oklch(98.5% 0 0)",
613
+ 100: "oklch(97% 0 0)",
614
+ 200: "oklch(92.2% 0 0)",
615
+ 300: "oklch(87% 0 0)",
616
+ 400: "oklch(70.8% 0 0)",
617
+ 500: "oklch(55.6% 0 0)",
618
+ 600: "oklch(43.9% 0 0)",
619
+ 700: "oklch(37.1% 0 0)",
620
+ 800: "oklch(26.9% 0 0)",
621
+ 900: "oklch(20.5% 0 0)",
622
+ 950: "oklch(14.5% 0 0)",
623
+ 1e3: "#000"
624
+ }, h = {
625
+ 50: "oklch(97.1% 0.013 17.38)",
626
+ 100: "oklch(93.6% 0.032 17.717)",
627
+ 200: "oklch(88.5% 0.062 18.334)",
628
+ 300: "oklch(80.8% 0.114 19.571)",
629
+ 400: "oklch(70.4% 0.191 22.216)",
630
+ 500: "oklch(63.7% 0.237 25.331)",
631
+ 600: "oklch(57.7% 0.245 27.325)",
632
+ 700: "oklch(50.5% 0.213 27.518)",
633
+ 800: "oklch(44.4% 0.177 26.899)",
634
+ 900: "oklch(39.6% 0.141 25.723)",
635
+ 950: "oklch(25.8% 0.092 26.042)"
636
+ }, q = {
637
+ 50: "oklch(98% 0.016 73.684)",
638
+ 100: "oklch(95.4% 0.038 75.164)",
639
+ 200: "oklch(90.1% 0.076 70.697)",
640
+ 300: "oklch(83.7% 0.128 66.29)",
641
+ 400: "oklch(75% 0.183 55.934)",
642
+ 500: "oklch(70.5% 0.213 47.604)",
643
+ 600: "oklch(64.6% 0.222 41.116)",
644
+ 700: "oklch(55.3% 0.195 38.402)",
645
+ 800: "oklch(47% 0.157 37.304)",
646
+ 900: "oklch(40.8% 0.123 38.172)",
647
+ 950: "oklch(26.6% 0.079 36.259)"
648
+ }, B = {
649
+ 50: "oklch(98.7% 0.022 95.277)",
650
+ 100: "oklch(96.2% 0.059 95.617)",
651
+ 200: "oklch(92.4% 0.12 95.746)",
652
+ 300: "oklch(87.9% 0.169 91.605)",
653
+ 400: "oklch(82.8% 0.189 84.429)",
654
+ 500: "oklch(76.9% 0.188 70.08)",
655
+ 600: "oklch(66.6% 0.179 58.318)",
656
+ 700: "oklch(55.5% 0.163 48.998)",
657
+ 800: "oklch(47.3% 0.137 46.201)",
658
+ 900: "oklch(41.4% 0.112 45.904)",
659
+ 950: "oklch(27.9% 0.077 45.635)"
660
+ }, X = {
661
+ 50: "oklch(98.7% 0.026 102.212)",
662
+ 100: "oklch(97.3% 0.071 103.193)",
663
+ 200: "oklch(94.5% 0.129 101.54)",
664
+ 300: "oklch(90.5% 0.182 98.111)",
665
+ 400: "oklch(85.2% 0.199 91.936)",
666
+ 500: "oklch(79.5% 0.184 86.047)",
667
+ 600: "oklch(68.1% 0.162 75.834)",
668
+ 700: "oklch(55.4% 0.135 66.442)",
669
+ 800: "oklch(47.6% 0.114 61.907)",
670
+ 900: "oklch(42.1% 0.095 57.708)",
671
+ 950: "oklch(28.6% 0.066 53.813)"
672
+ }, n1 = {
673
+ 50: "oklch(98.6% 0.031 120.757)",
674
+ 100: "oklch(96.7% 0.067 122.328)",
675
+ 200: "oklch(93.8% 0.127 124.321)",
676
+ 300: "oklch(89.7% 0.196 126.665)",
677
+ 400: "oklch(84.1% 0.238 128.85)",
678
+ 500: "oklch(76.8% 0.233 130.85)",
679
+ 600: "oklch(64.8% 0.2 131.684)",
680
+ 700: "oklch(53.2% 0.157 131.589)",
681
+ 800: "oklch(45.3% 0.124 130.933)",
682
+ 900: "oklch(40.5% 0.101 131.063)",
683
+ 950: "oklch(27.4% 0.072 132.109)"
684
+ }, Z = {
685
+ 50: "oklch(98.2% 0.018 155.826)",
686
+ 100: "oklch(96.2% 0.044 156.743)",
687
+ 200: "oklch(92.5% 0.084 155.995)",
688
+ 300: "oklch(87.1% 0.15 154.449)",
689
+ 400: "oklch(79.2% 0.209 151.711)",
690
+ 500: "oklch(72.3% 0.219 149.579)",
691
+ 600: "oklch(62.7% 0.194 149.214)",
692
+ 700: "oklch(52.7% 0.154 150.069)",
693
+ 800: "oklch(44.8% 0.119 151.328)",
694
+ 900: "oklch(39.3% 0.095 152.535)",
695
+ 950: "oklch(26.6% 0.065 152.934)"
696
+ }, F = {
697
+ 50: "oklch(97.9% 0.021 166.113)",
698
+ 100: "oklch(95% 0.052 163.051)",
699
+ 200: "oklch(90.5% 0.093 164.15)",
700
+ 300: "oklch(84.5% 0.143 164.978)",
701
+ 400: "oklch(76.5% 0.177 163.223)",
702
+ 500: "oklch(69.6% 0.17 162.48)",
703
+ 600: "oklch(59.6% 0.145 163.225)",
704
+ 700: "oklch(50.8% 0.118 165.612)",
705
+ 800: "oklch(43.2% 0.095 166.913)",
706
+ 900: "oklch(37.8% 0.077 168.94)",
707
+ 950: "oklch(26.2% 0.051 172.552)"
708
+ }, Y = {
709
+ 50: "oklch(98.4% 0.014 180.72)",
710
+ 100: "oklch(95.3% 0.051 180.801)",
711
+ 200: "oklch(91% 0.096 180.426)",
712
+ 300: "oklch(85.5% 0.138 181.071)",
713
+ 400: "oklch(77.7% 0.152 181.912)",
714
+ 500: "oklch(70.4% 0.14 182.503)",
715
+ 600: "oklch(60% 0.118 184.704)",
716
+ 700: "oklch(51.1% 0.096 186.391)",
717
+ 800: "oklch(43.7% 0.078 188.216)",
718
+ 900: "oklch(38.6% 0.063 188.416)",
719
+ 950: "oklch(27.7% 0.046 192.524)"
720
+ }, K = {
721
+ 50: "oklch(98.4% 0.019 200.873)",
722
+ 100: "oklch(95.6% 0.045 203.388)",
723
+ 200: "oklch(91.7% 0.08 205.041)",
724
+ 300: "oklch(86.5% 0.127 207.078)",
725
+ 400: "oklch(78.9% 0.154 211.53)",
726
+ 500: "oklch(71.5% 0.143 215.221)",
727
+ 600: "oklch(60.9% 0.126 221.723)",
728
+ 700: "oklch(52% 0.105 223.128)",
729
+ 800: "oklch(45% 0.085 224.283)",
730
+ 900: "oklch(39.8% 0.07 227.392)",
731
+ 950: "oklch(30.2% 0.056 229.695)"
732
+ }, E = {
733
+ 50: "oklch(97.7% 0.013 236.62)",
734
+ 100: "oklch(95.1% 0.026 236.824)",
735
+ 200: "oklch(90.1% 0.058 230.902)",
736
+ 300: "oklch(82.8% 0.111 230.318)",
737
+ 400: "oklch(74.6% 0.16 232.661)",
738
+ 500: "oklch(68.5% 0.169 237.323)",
739
+ 600: "oklch(58.8% 0.158 241.966)",
740
+ 700: "oklch(50% 0.134 242.749)",
741
+ 800: "oklch(44.3% 0.11 240.79)",
742
+ 900: "oklch(39.1% 0.09 240.876)",
743
+ 950: "oklch(29.3% 0.066 243.157)"
744
+ }, J = {
745
+ 50: "oklch(97% 0.014 254.604)",
746
+ 100: "oklch(93.2% 0.032 255.585)",
747
+ 200: "oklch(88.2% 0.059 254.128)",
748
+ 300: "oklch(80.9% 0.105 251.813)",
749
+ 400: "oklch(70.7% 0.165 254.624)",
750
+ 500: "oklch(62.3% 0.214 259.815)",
751
+ 600: "oklch(54.6% 0.245 262.881)",
752
+ 700: "oklch(48.8% 0.243 264.376)",
753
+ 800: "oklch(42.4% 0.199 265.638)",
754
+ 900: "oklch(37.9% 0.146 265.522)",
755
+ 950: "oklch(28.2% 0.091 267.935)"
756
+ }, Q = {
757
+ 50: "oklch(96.2% 0.018 272.314)",
758
+ 100: "oklch(93% 0.034 272.788)",
759
+ 200: "oklch(87% 0.065 274.039)",
760
+ 300: "oklch(78.5% 0.115 274.713)",
761
+ 400: "oklch(67.3% 0.182 276.935)",
762
+ 500: "oklch(58.5% 0.233 277.117)",
763
+ 600: "oklch(51.1% 0.262 276.966)",
764
+ 700: "oklch(45.7% 0.24 277.023)",
765
+ 800: "oklch(39.8% 0.195 277.366)",
766
+ 900: "oklch(35.9% 0.144 278.697)",
767
+ 950: "oklch(25.7% 0.09 281.288)"
768
+ }, s1 = {
769
+ 50: "oklch(96.9% 0.016 293.756)",
770
+ 100: "oklch(94.3% 0.029 294.588)",
771
+ 200: "oklch(89.4% 0.057 293.283)",
772
+ 300: "oklch(81.1% 0.111 293.571)",
773
+ 400: "oklch(70.2% 0.183 293.541)",
774
+ 500: "oklch(60.6% 0.25 292.717)",
775
+ 600: "oklch(54.1% 0.281 293.009)",
776
+ 700: "oklch(49.1% 0.27 292.581)",
777
+ 800: "oklch(43.2% 0.232 292.759)",
778
+ 900: "oklch(38% 0.189 293.745)",
779
+ 950: "oklch(28.3% 0.141 291.089)"
780
+ }, e0 = {
781
+ 50: "oklch(97.7% 0.014 308.299)",
782
+ 100: "oklch(94.6% 0.033 307.174)",
783
+ 200: "oklch(90.2% 0.063 306.703)",
784
+ 300: "oklch(82.7% 0.119 306.383)",
785
+ 400: "oklch(71.4% 0.203 305.504)",
786
+ 500: "oklch(62.7% 0.265 303.9)",
787
+ 600: "oklch(55.8% 0.288 302.321)",
788
+ 700: "oklch(49.6% 0.265 301.924)",
789
+ 800: "oklch(43.8% 0.218 303.724)",
790
+ 900: "oklch(38.1% 0.176 304.987)",
791
+ 950: "oklch(29.1% 0.149 302.717)"
792
+ }, h1 = {
793
+ 50: "oklch(97.7% 0.017 320.058)",
794
+ 100: "oklch(95.2% 0.037 318.852)",
795
+ 200: "oklch(90.3% 0.076 319.62)",
796
+ 300: "oklch(83.3% 0.145 321.434)",
797
+ 400: "oklch(74% 0.238 322.16)",
798
+ 500: "oklch(66.7% 0.295 322.15)",
799
+ 600: "oklch(59.1% 0.293 322.896)",
800
+ 700: "oklch(51.8% 0.253 323.949)",
801
+ 800: "oklch(45.2% 0.211 324.591)",
802
+ 900: "oklch(40.1% 0.17 325.612)",
803
+ 950: "oklch(29.3% 0.136 325.661)"
804
+ }, l0 = {
805
+ 50: "oklch(97.1% 0.014 343.198)",
806
+ 100: "oklch(94.8% 0.028 342.258)",
807
+ 200: "oklch(89.9% 0.061 343.231)",
808
+ 300: "oklch(82.3% 0.12 346.018)",
809
+ 400: "oklch(71.8% 0.202 349.761)",
810
+ 500: "oklch(65.6% 0.241 354.308)",
811
+ 600: "oklch(59.2% 0.249 0.584)",
812
+ 700: "oklch(52.5% 0.223 3.958)",
813
+ 800: "oklch(45.9% 0.187 3.815)",
814
+ 900: "oklch(40.8% 0.153 2.432)",
815
+ 950: "oklch(28.4% 0.109 3.907)"
816
+ }, d1 = {
817
+ 50: "oklch(96.9% 0.015 12.422)",
818
+ 100: "oklch(94.1% 0.03 12.58)",
819
+ 200: "oklch(89.2% 0.058 10.001)",
820
+ 300: "oklch(81% 0.117 11.638)",
821
+ 400: "oklch(71.2% 0.194 13.428)",
822
+ 500: "oklch(64.5% 0.246 16.439)",
823
+ 600: "oklch(58.6% 0.253 17.585)",
824
+ 700: "oklch(51.4% 0.222 16.935)",
825
+ 800: "oklch(45.5% 0.188 13.697)",
826
+ 900: "oklch(41% 0.159 10.272)",
827
+ 950: "oklch(27.1% 0.105 12.094)"
828
+ }, c = {
829
+ 50: "oklch(98.4% 0.003 247.858)",
830
+ 100: "oklch(96.8% 0.007 247.896)",
831
+ 200: "oklch(92.9% 0.013 255.508)",
832
+ 300: "oklch(86.9% 0.022 252.894)",
833
+ 400: "oklch(70.4% 0.04 256.788)",
834
+ 500: "oklch(55.4% 0.046 257.417)",
835
+ 600: "oklch(44.6% 0.043 257.281)",
836
+ 700: "oklch(37.2% 0.044 257.287)",
837
+ 800: "oklch(27.9% 0.041 260.031)",
838
+ 900: "oklch(20.8% 0.042 265.755)",
839
+ 950: "oklch(12.9% 0.042 264.695)"
840
+ }, b1 = {
841
+ 50: "oklch(98.5% 0.002 247.839)",
842
+ 100: "oklch(96.7% 0.003 264.542)",
843
+ 200: "oklch(92.8% 0.006 264.531)",
844
+ 300: "oklch(87.2% 0.01 258.338)",
845
+ 400: "oklch(70.7% 0.022 261.325)",
846
+ 500: "oklch(55.1% 0.027 264.364)",
847
+ 600: "oklch(44.6% 0.03 256.802)",
848
+ 700: "oklch(37.3% 0.034 259.733)",
849
+ 800: "oklch(27.8% 0.033 256.848)",
850
+ 900: "oklch(21% 0.034 264.665)",
851
+ 950: "oklch(13% 0.028 261.692)"
852
+ }, k1 = {
853
+ 50: "oklch(98.5% 0 0)",
854
+ 100: "oklch(96.7% 0.001 286.375)",
855
+ 200: "oklch(92% 0.004 286.32)",
856
+ 300: "oklch(87.1% 0.006 286.286)",
857
+ 400: "oklch(70.5% 0.015 286.067)",
858
+ 500: "oklch(55.2% 0.016 285.938)",
859
+ 600: "oklch(44.2% 0.017 285.786)",
860
+ 700: "oklch(37% 0.013 285.805)",
861
+ 800: "oklch(27.4% 0.006 286.033)",
862
+ 900: "oklch(21% 0.006 285.885)",
863
+ 950: "oklch(14.1% 0.005 285.823)"
864
+ }, p1 = {
865
+ 50: "oklch(98.5% 0.001 106.423)",
866
+ 100: "oklch(97% 0.001 106.424)",
867
+ 200: "oklch(92.3% 0.003 48.717)",
868
+ 300: "oklch(86.9% 0.005 56.366)",
869
+ 400: "oklch(70.9% 0.01 56.259)",
870
+ 500: "oklch(55.3% 0.013 58.071)",
871
+ 600: "oklch(44.4% 0.011 73.639)",
872
+ 700: "oklch(37.4% 0.01 67.558)",
873
+ 800: "oklch(26.8% 0.007 34.298)",
874
+ 900: "oklch(21.6% 0.006 56.043)",
875
+ 950: "oklch(14.7% 0.004 49.25)"
876
+ }, g1 = {
877
+ 50: "oklch(98.5% 0 0)",
878
+ 100: "oklch(96% 0.003 325.6)",
879
+ 200: "oklch(92.2% 0.005 325.62)",
880
+ 300: "oklch(86.5% 0.012 325.68)",
881
+ 400: "oklch(71.1% 0.019 323.02)",
882
+ 500: "oklch(54.2% 0.034 322.5)",
883
+ 600: "oklch(43.5% 0.029 321.78)",
884
+ 700: "oklch(36.4% 0.029 323.89)",
885
+ 800: "oklch(26.3% 0.024 320.12)",
886
+ 900: "oklch(21.2% 0.019 322.12)",
887
+ 950: "oklch(14.5% 0.008 326)"
888
+ }, u1 = {
889
+ 50: "oklch(98.8% 0.003 106.5)",
890
+ 100: "oklch(96.6% 0.005 106.5)",
891
+ 200: "oklch(93% 0.007 106.5)",
892
+ 300: "oklch(88% 0.011 106.6)",
893
+ 400: "oklch(73.7% 0.021 106.9)",
894
+ 500: "oklch(58% 0.031 107.3)",
895
+ 600: "oklch(46.6% 0.025 107.3)",
896
+ 700: "oklch(39.4% 0.023 107.4)",
897
+ 800: "oklch(28.6% 0.016 107.4)",
898
+ 900: "oklch(22.8% 0.013 107.4)",
899
+ 950: "oklch(15.3% 0.006 107.1)"
900
+ }, f1 = {
901
+ 50: "oklch(98.7% 0.002 197.1)",
902
+ 100: "oklch(96.3% 0.002 197.1)",
903
+ 200: "oklch(92.5% 0.005 214.3)",
904
+ 300: "oklch(87.2% 0.007 219.6)",
905
+ 400: "oklch(72.3% 0.014 214.4)",
906
+ 500: "oklch(56% 0.021 213.5)",
907
+ 600: "oklch(45% 0.017 213.2)",
908
+ 700: "oklch(37.8% 0.015 216)",
909
+ 800: "oklch(27.5% 0.011 216.9)",
910
+ 900: "oklch(21.8% 0.008 223.9)",
911
+ 950: "oklch(14.8% 0.004 228.8)"
912
+ }, m1 = {
913
+ 50: "oklch(98.6% 0.002 67.8)",
914
+ 100: "oklch(96% 0.002 17.2)",
915
+ 200: "oklch(92.2% 0.005 34.3)",
916
+ 300: "oklch(86.8% 0.007 39.5)",
917
+ 400: "oklch(71.4% 0.014 41.2)",
918
+ 500: "oklch(54.7% 0.021 43.1)",
919
+ 600: "oklch(43.8% 0.017 39.3)",
920
+ 700: "oklch(36.7% 0.016 35.7)",
921
+ 800: "oklch(26.8% 0.011 36.5)",
922
+ 900: "oklch(21.4% 0.009 43.1)",
923
+ 950: "oklch(14.7% 0.004 49.3)"
924
+ }, x1 = {
925
+ 50: "oklch(97.7% 0.014 308.299)",
926
+ 100: "oklch(94.6% 0.033 307.174)",
927
+ 200: "oklch(90.2% 0.063 306.703)",
928
+ 300: "oklch(82.7% 0.119 306.383)",
929
+ 400: "oklch(71.4% 0.203 305.504)",
930
+ 500: "oklch(62.7% 0.265 303.9)",
931
+ 600: "oklch(55.8% 0.288 302.321)",
932
+ 700: "oklch(49.6% 0.265 301.924)",
933
+ 800: "oklch(43.8% 0.218 303.724)",
934
+ 900: "oklch(38.1% 0.176 304.987)",
935
+ 950: "oklch(29.1% 0.149 302.717)"
936
+ }, Y0 = {
937
+ 50: "oklch(97.9% 0.011 356.992)",
938
+ 100: "oklch(95.1% 0.026 2.758)",
939
+ 200: "oklch(88.9% 0.062 2.08)",
940
+ 300: "oklch(82.9% 0.099 3.505)",
941
+ 400: "oklch(74.4% 0.161 6.263)",
942
+ 500: "oklch(69.4% 0.201 9.064)",
943
+ 600: "oklch(66.4% 0.226 12.253)",
944
+ 700: "oklch(56.9% 0.192 12.094)",
945
+ 800: "oklch(47.4% 0.157 11.378)",
946
+ 900: "oklch(40.8% 0.132 10.888)",
947
+ 950: "oklch(27% 0.08 10.488)"
948
+ }, K0 = {
949
+ 50: "oklch(96.2% 0.018 272.314)",
950
+ 100: "oklch(93% 0.034 272.788)",
951
+ 200: "oklch(87% 0.065 274.039)",
952
+ 300: "oklch(78.5% 0.115 274.713)",
953
+ 400: "oklch(67.3% 0.182 276.935)",
954
+ 500: "oklch(58.5% 0.233 277.117)",
955
+ 600: "oklch(51.1% 0.262 276.966)",
956
+ 700: "oklch(45.7% 0.24 277.023)",
957
+ 800: "oklch(39.8% 0.195 277.366)",
958
+ 900: "oklch(35.9% 0.144 278.697)",
959
+ 950: "oklch(25.7% 0.09 281.288)"
960
+ }, J0 = {
961
+ 50: "oklch(98.4% 0.014 180.72)",
962
+ 100: "oklch(95.3% 0.051 180.801)",
963
+ 200: "oklch(91% 0.096 180.426)",
964
+ 300: "oklch(85.5% 0.138 181.071)",
965
+ 400: "oklch(77.7% 0.152 181.912)",
966
+ 500: "oklch(70.4% 0.14 182.503)",
967
+ 600: "oklch(60% 0.118 184.704)",
968
+ 700: "oklch(51.1% 0.096 186.391)",
969
+ 800: "oklch(43.7% 0.078 188.216)",
970
+ 900: "oklch(38.6% 0.063 188.416)",
971
+ 950: "oklch(27.7% 0.046 192.524)"
972
+ }, Q0 = {
973
+ 50: "oklch(97.5% 0.015 94.196)",
974
+ 100: "oklch(93.7% 0.038 92.236)",
975
+ 200: "oklch(87.4% 0.071 89.461)",
976
+ 300: "oklch(78.3% 0.109 85.27)",
977
+ 400: "oklch(72.3% 0.122 79.487)",
978
+ 500: "oklch(66.4% 0.119 73.618)",
979
+ 600: "oklch(57.5% 0.108 64.952)",
980
+ 700: "oklch(47.9% 0.09 57.119)",
981
+ 800: "oklch(42.3% 0.075 51.375)",
982
+ 900: "oklch(38.1% 0.065 45.673)",
983
+ 950: "oklch(25.9% 0.045 41.584)"
984
+ }, e1 = {
985
+ 50: "oklch(97.4% 0.006 239.819)",
986
+ 100: "oklch(95.2% 0.009 242.84)",
987
+ 200: "oklch(91% 0.018 245.4)",
988
+ 300: "oklch(85.3% 0.029 246.519)",
989
+ 400: "oklch(77.8% 0.043 258.371)",
990
+ 500: "oklch(70.8% 0.057 264.115)",
991
+ 600: "oklch(65.4% 0.065 269.289)",
992
+ 700: "oklch(56.1% 0.068 269.924)",
993
+ 800: "oklch(48.7% 0.057 270.368)",
994
+ 900: "oklch(43.6% 0.038 267.435)",
995
+ 950: "oklch(30.6% 0.025 268.465)"
996
+ }, f = {
997
+ display: "'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"
998
+ }, v1 = {
999
+ display: "'salt' on"
1000
+ }, m = {
1001
+ regular: "400",
1002
+ medium: "500",
1003
+ "semi-bold": "600",
1004
+ bold: "700"
1005
+ }, x = {
1006
+ 100: "12px",
1007
+ 200: "14px",
1008
+ 300: "16px",
1009
+ 400: "18px",
1010
+ 500: "20px",
1011
+ 600: "24px",
1012
+ 700: "28px",
1013
+ 800: "32px",
1014
+ 900: "36px",
1015
+ 1e3: "40px",
1016
+ 1100: "44px",
1017
+ 1200: "48px",
1018
+ 1300: "60px"
1019
+ }, v = {
1020
+ 100: "16px",
1021
+ 200: "20px",
1022
+ 300: "24px",
1023
+ 400: "28px",
1024
+ 500: "32px",
1025
+ 600: "36px",
1026
+ 700: "44px",
1027
+ 800: "48px",
1028
+ 900: "52px",
1029
+ 1e3: "56px",
1030
+ 1100: "76px"
1031
+ }, y1 = {
1032
+ 0: "0px",
1033
+ 100: "2px",
1034
+ 200: "4px",
1035
+ 300: "8px",
1036
+ 400: "12px",
1037
+ 500: "16px",
1038
+ 600: "20px",
1039
+ 700: "24px",
1040
+ 800: "28px",
1041
+ 900: "32px",
1042
+ 1e3: "48px",
1043
+ 1100: "64px",
1044
+ 1200: "80px",
1045
+ 1300: "128px",
1046
+ 1400: "200px",
1047
+ 1500: "400px"
1048
+ }, _1 = {
1049
+ 0: "0px",
1050
+ 100: "4px",
1051
+ 200: "8px",
1052
+ 300: "12px",
1053
+ pill: "9999px"
1054
+ }, w1 = {
1055
+ 0: "0px",
1056
+ 100: "1px",
1057
+ 150: "1.5px",
1058
+ 200: "2px",
1059
+ 300: "3px"
1060
+ }, t0 = {
1061
+ 0: "none",
1062
+ 100: "0px 2px 2px 0px rgba(30, 41, 59, 0.04), 0px 4px 8px 0px rgba(30, 41, 59, 0.08)",
1063
+ 200: "0px 4px 4px 0px rgba(30, 41, 59, 0.04), 0px 8px 24px 0px rgba(30, 41, 59, 0.08)",
1064
+ 300: "0px 16px 40px 0px rgba(30, 41, 59, 0.08), 0px 8px 8px 0px rgba(30, 41, 59, 0.04)",
1065
+ 400: "0px 24px 56px 0px rgba(30, 41, 59, 0.08), 0px 12px 12px 0px rgba(30, 41, 59, 0.04)"
1066
+ }, c0 = {
1067
+ 0: "none",
1068
+ 100: "0px 2px 2px 0px rgba(0, 0, 0, 0.20), 0px 4px 8px 0px rgba(0, 0, 0, 0.30)",
1069
+ 200: "0px 4px 4px 0px rgba(0, 0, 0, 0.20), 0px 8px 24px 0px rgba(0, 0, 0, 0.40)",
1070
+ 300: "0px 16px 40px 0px rgba(0, 0, 0, 0.40), 0px 8px 8px 0px rgba(0, 0, 0, 0.20)",
1071
+ 400: "0px 24px 56px 0px rgba(0, 0, 0, 0.50), 0px 12px 12px 0px rgba(0, 0, 0, 0.25)"
1072
+ }, N1 = {
1073
+ xs: "375px",
1074
+ sm: "640px",
1075
+ md: "768px",
1076
+ lg: "1024px",
1077
+ xl: "1280px",
1078
+ "2xl": "1536px"
1079
+ }, S1 = {
1080
+ hide: "-1",
1081
+ base: "0",
1082
+ dropdown: "1000",
1083
+ sticky: "1100",
1084
+ fixed: "1200",
1085
+ overlay: "1300",
1086
+ modal: "1400",
1087
+ popover: "1500",
1088
+ tooltip: "1600",
1089
+ toast: "1700"
1090
+ }, A1 = {
1091
+ fastest: "50ms",
1092
+ fast: "100ms",
1093
+ normal: "200ms",
1094
+ slow: "300ms",
1095
+ slower: "400ms",
1096
+ slowest: "500ms"
1097
+ }, F1 = {
1098
+ linear: "linear",
1099
+ in: "cubic-bezier(0.4, 0, 1, 1)",
1100
+ out: "cubic-bezier(0, 0, 0.2, 1)",
1101
+ inOut: "cubic-bezier(0.4, 0, 0.2, 1)"
1102
+ }, O1 = {
1103
+ h1: {
1104
+ fontFamily: f.display,
1105
+ fontWeight: m.bold,
1106
+ fontSize: x[1200],
1107
+ // 48px
1108
+ lineHeight: v[700],
1109
+ // 44px
1110
+ letterSpacing: "0px"
1111
+ },
1112
+ h2: {
1113
+ fontFamily: f.display,
1114
+ fontWeight: m.bold,
1115
+ fontSize: x[1e3],
1116
+ // 40px
1117
+ lineHeight: v[600],
1118
+ // 36px
1119
+ letterSpacing: "0px"
1120
+ },
1121
+ h3: {
1122
+ fontFamily: f.display,
1123
+ fontWeight: m["semi-bold"],
1124
+ fontSize: x[800],
1125
+ // 32px
1126
+ lineHeight: v[500],
1127
+ // 32px
1128
+ letterSpacing: "0px"
1129
+ },
1130
+ h4: {
1131
+ fontFamily: f.display,
1132
+ fontWeight: m["semi-bold"],
1133
+ fontSize: x[600],
1134
+ // 24px
1135
+ lineHeight: v[400],
1136
+ // 28px
1137
+ letterSpacing: "0px"
1138
+ },
1139
+ h5: {
1140
+ fontFamily: f.display,
1141
+ fontWeight: m["semi-bold"],
1142
+ fontSize: x[500],
1143
+ // 20px
1144
+ lineHeight: v[300],
1145
+ // 24px
1146
+ letterSpacing: "0px"
1147
+ },
1148
+ h6: {
1149
+ fontFamily: f.display,
1150
+ fontWeight: m["semi-bold"],
1151
+ fontSize: x[400],
1152
+ // 18px
1153
+ lineHeight: v[200],
1154
+ // 20px
1155
+ letterSpacing: "0px"
1156
+ }
1157
+ }, $1 = {
1158
+ large: {
1159
+ fontFamily: f.display,
1160
+ fontWeight: m.regular,
1161
+ fontSize: x[400],
1162
+ // 18px
1163
+ lineHeight: v[300],
1164
+ // 24px
1165
+ letterSpacing: "0px"
1166
+ },
1167
+ medium: {
1168
+ fontFamily: f.display,
1169
+ fontWeight: m.regular,
1170
+ fontSize: x[300],
1171
+ // 16px
1172
+ lineHeight: v[300],
1173
+ // 24px
1174
+ letterSpacing: "0px"
1175
+ },
1176
+ small: {
1177
+ fontFamily: f.display,
1178
+ fontWeight: m.regular,
1179
+ fontSize: x[200],
1180
+ // 14px
1181
+ lineHeight: v[200],
1182
+ // 20px
1183
+ letterSpacing: "0px"
1184
+ },
1185
+ "extra-small": {
1186
+ fontFamily: f.display,
1187
+ fontWeight: m.regular,
1188
+ fontSize: x[100],
1189
+ // 12px
1190
+ lineHeight: v[100],
1191
+ // 16px
1192
+ letterSpacing: "0px"
1193
+ }
1194
+ }, L1 = {
1195
+ large: {
1196
+ fontFamily: f.display,
1197
+ fontWeight: m["semi-bold"],
1198
+ fontSize: x[200],
1199
+ // 14px
1200
+ lineHeight: v[200],
1201
+ // 20px
1202
+ letterSpacing: "0px"
1203
+ },
1204
+ small: {
1205
+ fontFamily: f.display,
1206
+ fontWeight: m["semi-bold"],
1207
+ fontSize: x[100],
1208
+ // 12px
1209
+ lineHeight: v[100],
1210
+ // 16px
1211
+ letterSpacing: "0px"
1212
+ }
1213
+ }, M1 = {
1214
+ large: {
1215
+ fontFamily: f.display,
1216
+ fontWeight: m["semi-bold"],
1217
+ fontSize: x[300],
1218
+ // 16px
1219
+ lineHeight: v[300],
1220
+ // 24px
1221
+ letterSpacing: "0px"
1222
+ },
1223
+ medium: {
1224
+ fontFamily: f.display,
1225
+ fontWeight: m["semi-bold"],
1226
+ fontSize: x[200],
1227
+ // 14px
1228
+ lineHeight: v[300],
1229
+ // 24px
1230
+ letterSpacing: "0px"
1231
+ },
1232
+ small: {
1233
+ fontFamily: f.display,
1234
+ fontWeight: m["semi-bold"],
1235
+ fontSize: x[100],
1236
+ // 12px
1237
+ lineHeight: v[100],
1238
+ // 16px
1239
+ letterSpacing: "0px"
1240
+ }
1241
+ }, C1 = {
1242
+ // ── 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],
1248
+ // ── 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],
1255
+ // ── Border ──
1256
+ border: l[200],
1257
+ "border-subtle": l[100],
1258
+ "border-emphasis": l[400],
1259
+ "border-disabled": d.black[100],
1260
+ // ── Ring (focus) ──
1261
+ ring: "var(--orb-branding-200)",
1262
+ "ring-offset": l[0],
1263
+ // ── Surface ──
1264
+ surface: l[0],
1265
+ "surface-raised": l[50],
1266
+ "surface-overlay": l[0],
1267
+ // ── Primary (brand — driven by --orb-branding-* palette) ──
1268
+ primary: "var(--orb-branding-600)",
1269
+ "primary-hover": "var(--orb-branding-700)",
1270
+ "primary-active": "var(--orb-branding-800)",
1271
+ "primary-focus": "var(--orb-branding-600)",
1272
+ "primary-subtle": "var(--orb-branding-50)",
1273
+ "primary-fg": l[0],
1274
+ "primary-border": "var(--orb-branding-600)",
1275
+ // ── 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],
1282
+ // ── 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],
1289
+ // ── 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],
1296
+ // ── 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],
1303
+ // ── 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],
1310
+ // ── Input ──
1311
+ "input-bg": l[50],
1312
+ "input-border": l[200],
1313
+ "input-border-hover": l[300],
1314
+ "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],
1318
+ // ── 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],
1352
+ // ── Tooltip ──
1353
+ "tooltip-bg": l[900],
1354
+ "tooltip-fg": l[0],
1355
+ // ── Icon ──
1356
+ "icon-default": l[600],
1357
+ "icon-disabled": d.black[250],
1358
+ "icon-hyperlink": "var(--orb-branding-600)",
1359
+ "icon-success": F[600],
1360
+ // ── Text extras ──
1361
+ "text-hyperlink": "var(--orb-branding-600)",
1362
+ "text-disabled": d.black[250],
1363
+ "text-invalid": h[600],
1364
+ // ── Border extras ──
1365
+ "border-field": l[200],
1366
+ "border-field-action": l[700],
1367
+ "border-invalid": h[600],
1368
+ "border-neutral": l[0],
1369
+ // ── 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],
1374
+ // ── 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],
1380
+ // ── Dialog / Modal ──
1381
+ "dialog-bg": l[0],
1382
+ "dialog-border": l[200],
1383
+ "dialog-shadow": t0[300],
1384
+ "dialog-scrim": d.black[400],
1385
+ "dialog-outline": "transparent",
1386
+ "dialog-header-border": "transparent",
1387
+ "dialog-footer-border": "transparent",
1388
+ "dialog-footer-bg": l[50],
1389
+ // ── Shared semantic ──
1390
+ "text-support": c[500],
1391
+ "frame-bg-layer3": l[100]
1392
+ }, B1 = {
1393
+ // ── Background (layer) ──
1394
+ // 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],
1400
+ // ── 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],
1407
+ // ── Border ──
1408
+ border: c[700],
1409
+ "border-subtle": c[800],
1410
+ "border-emphasis": c[600],
1411
+ "border-disabled": d.white[100],
1412
+ // ── Ring (focus) ──
1413
+ ring: "var(--orb-branding-300)",
1414
+ "ring-offset": c[900],
1415
+ // ── Surface ──
1416
+ surface: c[800],
1417
+ "surface-raised": c[700],
1418
+ "surface-overlay": c[700],
1419
+ // ── Primary (brand — driven by --orb-branding-* palette) ──
1420
+ primary: "var(--orb-branding-600)",
1421
+ "primary-hover": "var(--orb-branding-700)",
1422
+ "primary-active": "var(--orb-branding-800)",
1423
+ "primary-focus": "var(--orb-branding-600)",
1424
+ "primary-subtle": "var(--orb-branding-950)",
1425
+ "primary-fg": l[0],
1426
+ "primary-border": "var(--orb-branding-600)",
1427
+ // ── Secondary ──
1428
+ secondary: "rgba(148, 163, 184, 0.1)",
1429
+ "secondary-hover": "rgba(203, 213, 225, 0.1)",
1430
+ "secondary-active": "rgba(241, 245, 249, 0.25)",
1431
+ "secondary-focus": "rgba(241, 245, 249, 0.10)",
1432
+ "secondary-fg": l[0],
1433
+ "secondary-border": "transparent",
1434
+ // ── 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],
1441
+ // ── 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],
1448
+ // ── 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],
1455
+ // ── 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],
1462
+ // ── Input ──
1463
+ "input-bg": c[800],
1464
+ "input-border": c[600],
1465
+ "input-border-hover": c[500],
1466
+ "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],
1470
+ // ── 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],
1504
+ // ── Tooltip ──
1505
+ "tooltip-bg": c[700],
1506
+ "tooltip-fg": l[0],
1507
+ // ── Icon ──
1508
+ "icon-default": c[300],
1509
+ "icon-disabled": d.white[250],
1510
+ "icon-hyperlink": "var(--orb-branding-600)",
1511
+ "icon-success": F[500],
1512
+ // ── Text extras ──
1513
+ "text-hyperlink": "var(--orb-branding-600)",
1514
+ "text-disabled": d.white[250],
1515
+ "text-invalid": h[400],
1516
+ // ── Border extras ──
1517
+ "border-field": c[600],
1518
+ "border-field-action": c[300],
1519
+ "border-invalid": h[500],
1520
+ "border-neutral": l[0],
1521
+ // ── 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],
1526
+ // ── 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],
1532
+ // ── 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],
1538
+ "dialog-header-border": "transparent",
1539
+ "dialog-footer-border": "transparent",
1540
+ "dialog-footer-bg": "rgba(51, 65, 85, 0.25)",
1541
+ // ── Shared semantic ──
1542
+ "text-support": c[400],
1543
+ "frame-bg-layer3": c[600]
1544
+ }, E1 = {
1545
+ // ── 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],
1550
+ // ── 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],
1555
+ // ── 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
1569
+ };
1570
+ function z1(o) {
1571
+ return o;
1572
+ }
1573
+ function g0(o) {
1574
+ return Object.entries(o).map(([i, a]) => ` --orb-${i}: ${a};`).join(`
1575
+ `);
1576
+ }
1577
+ function D1(o) {
1578
+ var n, r;
1579
+ const i = [];
1580
+ i.push(`/**
1581
+ * Orbit Design System - Custom Theme Overrides
1582
+ * Auto-generated from orbit.config.ts
1583
+ *
1584
+ * Import AFTER variables.css:
1585
+ * import '@neowit/orbit-tokens/css'
1586
+ * import './orbit-overrides.css'
1587
+ */`);
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,
1590
+ [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) {
1595
+ :root:not([data-theme="light"]):not([data-theme="dark"]) {
1596
+ ${g0(t)}
1597
+ }
1598
+ }`)), i.join(`
1599
+
1600
+ `) + `
1601
+ `;
1602
+ }
1603
+ 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
1669
+ };