@facto-to/design-system 0.1.0-beta.4 → 0.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,123 +1,475 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as a, Fragment as A } from "react/jsx-runtime";
3
- import * as P from "@radix-ui/react-tooltip";
4
- import * as p from "@radix-ui/react-toast";
5
- import { createPortal as K } from "react-dom";
6
- import * as E from "@radix-ui/react-checkbox";
7
- import * as u from "@radix-ui/react-dialog";
8
- import * as g from "@radix-ui/react-select";
9
- import * as H from "@radix-ui/react-switch";
10
- import * as M from "@radix-ui/react-tabs";
11
- import { createContext as Z, forwardRef as R, useId as I, useContext as _, useState as O, useRef as V, useEffect as L, useCallback as z } from "react";
12
- const F = /* @__PURE__ */ new WeakMap();
13
- function J(t) {
2
+ import { jsx as n, jsxs as f, Fragment as q } from "react/jsx-runtime";
3
+ import * as K from "@radix-ui/react-popover";
4
+ import * as O from "@radix-ui/react-dropdown-menu";
5
+ import * as U from "@radix-ui/react-tooltip";
6
+ import * as W from "@radix-ui/react-toast";
7
+ import { createPortal as st } from "react-dom";
8
+ import * as tt from "@radix-ui/react-checkbox";
9
+ import * as M from "@radix-ui/react-dialog";
10
+ import * as D from "@radix-ui/react-select";
11
+ import * as et from "@radix-ui/react-switch";
12
+ import * as X from "@radix-ui/react-tabs";
13
+ import { useState as H, useEffect as L, useId as j, forwardRef as Z, Children as lt, isValidElement as dt, cloneElement as ut, useRef as F, useCallback as R, useMemo as ft, useContext as S, createContext as it } from "react";
14
+ const Q = /* @__PURE__ */ new WeakMap();
15
+ function mt(t) {
14
16
  const e = Array.from(t.ownerDocument.body.children).filter(
15
- (n) => n instanceof HTMLElement && !n.hasAttribute("data-radix-focus-guard") && !n.contains(t)
17
+ (o) => o instanceof HTMLElement && !o.hasAttribute("data-radix-focus-guard") && !o.contains(t)
16
18
  );
17
- for (const n of e) {
18
- const c = F.get(n);
19
- c ? c.count += 1 : (F.set(n, { count: 1, wasInert: n.inert }), n.inert = !0);
19
+ for (const o of e) {
20
+ const i = Q.get(o);
21
+ i ? i.count += 1 : (Q.set(o, { count: 1, wasInert: o.inert }), o.inert = !0);
20
22
  }
21
- let o = !0;
23
+ let a = !0;
22
24
  return () => {
23
- if (o) {
24
- o = !1;
25
- for (const n of e) {
26
- const c = F.get(n);
27
- c && (c.count -= 1, c.count === 0 && (c.wasInert || (n.inert = !1), F.delete(n)));
25
+ if (a) {
26
+ a = !1;
27
+ for (const o of e) {
28
+ const i = Q.get(o);
29
+ i && (i.count -= 1, i.count === 0 && (i.wasInert || (o.inert = !1), Q.delete(o)));
28
30
  }
29
31
  }
30
32
  };
31
33
  }
32
- const i = (...t) => t.filter(Boolean).join(" "), C = (...t) => t.filter(Boolean).join(" ") || void 0, N = Z({}), Q = (t) => Object.fromEntries(
33
- Object.entries(t ?? {}).filter(([e, o]) => e.startsWith("--facto-") && o !== void 0 && o !== null)
34
+ const A = (...t) => t.filter(Boolean).join(" "), Bt = Z(function(e, a) {
35
+ const { leading: o, title: i, description: c, value: r, status: m, trailing: d, className: g } = e, p = /* @__PURE__ */ f(q, { children: [
36
+ o != null && /* @__PURE__ */ n("span", { className: "facto-list-row__leading", children: o }),
37
+ /* @__PURE__ */ f("span", { className: "facto-list-row__copy", children: [
38
+ /* @__PURE__ */ n("span", { className: "facto-list-row__title", children: i }),
39
+ c != null && /* @__PURE__ */ n("span", { className: "facto-list-row__description", children: c })
40
+ ] }),
41
+ (r != null || m != null) && /* @__PURE__ */ f("span", { className: "facto-list-row__meta", children: [
42
+ r != null && /* @__PURE__ */ n("span", { className: "facto-list-row__value", children: r }),
43
+ m != null && /* @__PURE__ */ n("span", { className: "facto-list-row__status", children: m })
44
+ ] }),
45
+ d != null && /* @__PURE__ */ n("span", { className: "facto-list-row__trailing", children: d })
46
+ ] }), v = A("facto-list-row", g);
47
+ if ("href" in e && typeof e.href == "string") {
48
+ const { leading: h, title: _, description: C, value: N, status: E, trailing: P, className: J, ...I } = e;
49
+ return /* @__PURE__ */ n("a", { ...I, ref: a, className: v, children: p });
50
+ }
51
+ if ("onClick" in e && typeof e.onClick == "function") {
52
+ const { leading: h, title: _, description: C, value: N, status: E, trailing: P, className: J, type: I = "button", ...$ } = e;
53
+ return /* @__PURE__ */ n("button", { ...$, ref: a, type: I, className: v, children: p });
54
+ }
55
+ const { leading: w, title: k, description: y, value: T, status: x, trailing: s, className: u, ...b } = e;
56
+ return /* @__PURE__ */ n("div", { ...b, ref: a, className: v, children: p });
57
+ });
58
+ function St({ heading: t, children: e, className: a, ...o }) {
59
+ const i = j();
60
+ return /* @__PURE__ */ f("section", { ...o, className: A("facto-list-group", a), "aria-labelledby": t ? i : o["aria-labelledby"], children: [
61
+ t && /* @__PURE__ */ n("h2", { id: i, className: "facto-list-group__heading", children: t }),
62
+ /* @__PURE__ */ n("div", { className: "facto-list-group__rows", children: e })
63
+ ] });
64
+ }
65
+ function ht({ src: t, alt: e = "", fallback: a, size: o = "md", className: i, onError: c, ...r }) {
66
+ const [m, d] = H(!1);
67
+ L(() => d(!1), [t]);
68
+ const g = a ?? (e ? e.slice(0, 1).toUpperCase() : null);
69
+ return /* @__PURE__ */ n("span", { className: A("facto-avatar", `facto-avatar--${o}`, i), children: t && !m ? /* @__PURE__ */ n("img", { ...r, src: t, alt: e, onError: (p) => {
70
+ d(!0), c?.(p);
71
+ } }) : /* @__PURE__ */ n("span", { className: "facto-avatar__fallback", role: e ? "img" : void 0, "aria-label": e || void 0, "aria-hidden": e ? void 0 : !0, children: g }) });
72
+ }
73
+ function xt({ logos: t, size: e = "md", max: a, className: o, ...i }) {
74
+ const c = a === void 0 ? t : t.slice(0, a), r = t.length - c.length;
75
+ return /* @__PURE__ */ f("div", { ...i, className: A("facto-logo-stack", `facto-logo-stack--${e}`, o), children: [
76
+ c.map((m, d) => /* @__PURE__ */ n(ht, { ...m, size: e }, `${m.src ?? "fallback"}-${d}`)),
77
+ r > 0 && /* @__PURE__ */ f("span", { className: "facto-logo-stack__more", "aria-label": `${r} more logos`, children: [
78
+ "+",
79
+ r
80
+ ] })
81
+ ] });
82
+ }
83
+ function Lt({ title: t, description: e, retryLabel: a = "Try again", onRetry: o, className: i, ...c }) {
84
+ return /* @__PURE__ */ f("div", { ...c, className: A("facto-error-state", i), role: "alert", children: [
85
+ /* @__PURE__ */ n("strong", { children: t }),
86
+ e && /* @__PURE__ */ n("p", { children: e }),
87
+ o && /* @__PURE__ */ n("button", { type: "button", className: "facto-error-state__retry", onClick: o, children: a })
88
+ ] });
89
+ }
90
+ function Rt({ label: t = "Loading more", className: e, ...a }) {
91
+ return /* @__PURE__ */ f("div", { ...a, className: A("facto-loading-more", e), role: "status", "aria-live": "polite", children: [
92
+ /* @__PURE__ */ n("span", { className: "facto-loading-more__spinner", "aria-hidden": "true" }),
93
+ /* @__PURE__ */ n("span", { children: t })
94
+ ] });
95
+ }
96
+ function Ft({ steps: t, className: e, ...a }) {
97
+ return /* @__PURE__ */ n("ol", { ...a, className: A("facto-step-checklist", e), children: t.map((o, i) => {
98
+ const c = o.state ?? "upcoming";
99
+ return /* @__PURE__ */ f("li", { className: `facto-step-checklist__item facto-step-checklist__item--${c}`, "aria-current": c === "current" ? "step" : void 0, children: [
100
+ /* @__PURE__ */ n("span", { className: "facto-step-checklist__marker", "aria-hidden": "true", children: c === "complete" ? "✓" : i + 1 }),
101
+ /* @__PURE__ */ f("span", { className: "facto-step-checklist__copy", children: [
102
+ /* @__PURE__ */ f("span", { children: [
103
+ o.label,
104
+ c === "complete" && /* @__PURE__ */ n("span", { className: "facto-visually-hidden", children: ", completed" })
105
+ ] }),
106
+ o.description != null && /* @__PURE__ */ n("small", { children: o.description })
107
+ ] })
108
+ ] }, i);
109
+ }) });
110
+ }
111
+ const G = (...t) => t.filter(Boolean).join(" "), pt = (...t) => t.filter(Boolean).join(" ") || void 0;
112
+ function jt({
113
+ label: t,
114
+ leading: e,
115
+ trailing: a,
116
+ children: o,
117
+ invalid: i,
118
+ inputId: c,
119
+ className: r,
120
+ ...m
121
+ }) {
122
+ return /* @__PURE__ */ f(
123
+ "div",
124
+ {
125
+ ...m,
126
+ className: G("facto-inset-field", i && "facto-inset-field--invalid", r),
127
+ children: [
128
+ t && /* @__PURE__ */ n("label", { className: "facto-inset-field__label", htmlFor: c, children: t }),
129
+ /* @__PURE__ */ f("span", { className: "facto-inset-field__control", children: [
130
+ e && /* @__PURE__ */ n("span", { className: "facto-inset-field__slot facto-inset-field__slot--leading", children: e }),
131
+ lt.map(o, (d) => dt(d) && typeof d.type == "string" && ["input", "textarea", "select"].includes(d.type) ? ut(d, { id: c, "aria-invalid": i || d.props["aria-invalid"] }) : d),
132
+ a && /* @__PURE__ */ n("span", { className: "facto-inset-field__slot facto-inset-field__slot--trailing", children: a })
133
+ ] })
134
+ ]
135
+ }
136
+ );
137
+ }
138
+ const nt = (t, e) => t.replace(/\D/g, "").slice(0, e);
139
+ function Et({
140
+ value: t,
141
+ onValueChange: e,
142
+ length: a = 6,
143
+ onComplete: o,
144
+ completionDelay: i = 300,
145
+ pending: c,
146
+ pendingLabel: r = "Verifying code…",
147
+ label: m,
148
+ helperText: d,
149
+ error: g,
150
+ id: p,
151
+ className: v,
152
+ containerClassName: w,
153
+ disabled: k,
154
+ readOnly: y,
155
+ onPaste: T,
156
+ onFocus: x,
157
+ onBlur: s,
158
+ ...u
159
+ }) {
160
+ const b = j(), h = p ?? b, _ = g || d ? `${h}-description` : void 0, C = Number.isFinite(a) ? Math.min(32, Math.max(1, Math.floor(a))) : 6, N = nt(t, C), E = F(void 0), P = F(o);
161
+ L(() => {
162
+ P.current = o;
163
+ }, [o]), L(() => {
164
+ if (k || y || c) return;
165
+ if (N.length !== C) {
166
+ E.current = void 0;
167
+ return;
168
+ }
169
+ if (E.current === N) return;
170
+ const I = window.setTimeout(() => {
171
+ E.current = N, P.current?.(N);
172
+ }, Math.max(0, i));
173
+ return () => window.clearTimeout(I);
174
+ }, [i, k, C, N, c, y]);
175
+ const J = (I) => {
176
+ if (k || y || c) return;
177
+ const $ = nt(I, C);
178
+ $ !== N && e($);
179
+ };
180
+ return /* @__PURE__ */ f("div", { className: G("facto-otp", w), children: [
181
+ m && /* @__PURE__ */ n("label", { className: "facto-otp__label", htmlFor: h, children: m }),
182
+ /* @__PURE__ */ f(
183
+ "div",
184
+ {
185
+ className: G("facto-otp__cells", !!g && "facto-otp__cells--error", v),
186
+ "data-disabled": k ? "" : void 0,
187
+ "data-pending": c ? "" : void 0,
188
+ children: [
189
+ /* @__PURE__ */ n(
190
+ "input",
191
+ {
192
+ ...u,
193
+ id: h,
194
+ className: "facto-otp__input",
195
+ type: "text",
196
+ inputMode: "numeric",
197
+ autoComplete: "one-time-code",
198
+ pattern: "[0-9]*",
199
+ maxLength: C,
200
+ disabled: k || c,
201
+ readOnly: y,
202
+ value: N,
203
+ "aria-invalid": !!g || u["aria-invalid"],
204
+ "aria-busy": c || void 0,
205
+ "aria-describedby": pt(u["aria-describedby"], _, c ? `${h}-pending` : void 0),
206
+ "aria-errormessage": g ? _ : void 0,
207
+ onChange: (I) => J(I.currentTarget.value),
208
+ onPaste: (I) => {
209
+ T?.(I), !I.defaultPrevented && (I.preventDefault(), J(I.clipboardData.getData("text")));
210
+ },
211
+ onFocus: x,
212
+ onBlur: s
213
+ }
214
+ ),
215
+ /* @__PURE__ */ n("span", { className: "facto-otp__visual", style: { gridTemplateColumns: `repeat(${Math.min(C, 8)}, minmax(0, 1fr))` }, "aria-hidden": "true", children: Array.from({ length: C }, (I, $) => /* @__PURE__ */ n("span", { className: "facto-otp__cell", children: N[$] && /* @__PURE__ */ n("span", { className: "facto-otp__digit", children: N[$] }, `${$}-${N[$]}`) }, $)) })
216
+ ]
217
+ }
218
+ ),
219
+ (g || d) && /* @__PURE__ */ n(
220
+ "span",
221
+ {
222
+ id: _,
223
+ className: G("facto-otp__message", !!g && "facto-otp__message--error"),
224
+ role: g ? "alert" : void 0,
225
+ children: g ?? d
226
+ }
227
+ ),
228
+ c && /* @__PURE__ */ n("span", { className: "facto-otp__pending", id: `${h}-pending`, role: "status", children: r })
229
+ ] });
230
+ }
231
+ const Y = (t) => t instanceof Date ? t.getTime() : t ?? 0, gt = (t, e) => Math.max(0, Math.ceil((Y(t) - e) / 1e3)), vt = (t) => `Resend code in ${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
232
+ function Wt({
233
+ deadline: t,
234
+ pending: e,
235
+ disabled: a,
236
+ children: o = "Resend code",
237
+ formatCountdown: i = vt,
238
+ className: c,
239
+ onClick: r,
240
+ ...m
241
+ }) {
242
+ const [d, g] = H(null), p = d === null ? 0 : gt(t, d);
243
+ L(() => {
244
+ let w;
245
+ const k = () => {
246
+ const y = Date.now();
247
+ g(y);
248
+ const T = Y(t) - y;
249
+ Number.isFinite(T) && T > 0 && (w = window.setTimeout(k, Math.min(T, 250)));
250
+ };
251
+ return k(), () => window.clearTimeout(w);
252
+ }, [t]);
253
+ const v = d === null ? Y(t) > 0 : p > 0;
254
+ return /* @__PURE__ */ f(
255
+ "button",
256
+ {
257
+ ...m,
258
+ type: "button",
259
+ className: G("facto-resend-code", e && "facto-resend-code--pending", c),
260
+ disabled: !!(a || e || v),
261
+ "aria-busy": e || void 0,
262
+ onClick: r,
263
+ children: [
264
+ e && /* @__PURE__ */ n("span", { className: "facto-resend-code__spinner", "aria-hidden": "true" }),
265
+ v && d !== null ? i(p) : o
266
+ ]
267
+ }
268
+ );
269
+ }
270
+ const ct = it(null);
271
+ function At({
272
+ children: t,
273
+ duration: e,
274
+ maxVisible: a = 3,
275
+ label: o = "Notifications ({hotkey})"
276
+ }) {
277
+ const [i, c] = H([]), r = F([]), m = F(0), d = F(0), g = Number.isFinite(a) ? Math.max(1, Math.floor(a)) : 3, p = e ?? 2600, v = R((s) => {
278
+ r.current = s, c(s);
279
+ }, []);
280
+ L(() => {
281
+ v(r.current.slice(-g));
282
+ }, [v, g]);
283
+ const w = R((s, u, b = {}) => {
284
+ const h = b.id ?? `toast-${++m.current}`, _ = ++d.current, C = {
285
+ id: h,
286
+ tone: s,
287
+ title: u,
288
+ description: b.description,
289
+ action: b.action,
290
+ duration: s === "loading" ? b.duration ?? 1 / 0 : b.duration,
291
+ generation: _
292
+ }, N = r.current, E = N.findIndex((P) => P.id === h);
293
+ return v(E >= 0 ? N.map((P) => P.id === h ? { ...P, ...C } : P) : [...N, C].slice(-g)), { id: h, generation: _ };
294
+ }, [v, g]), k = R((s, u, b) => {
295
+ const h = r.current, _ = h.findIndex((N) => N.id === s);
296
+ if (_ < 0 || b !== void 0 && h[_].generation !== b) return !1;
297
+ const C = ++d.current;
298
+ v(h.map((N) => N.id !== s ? N : {
299
+ ...N,
300
+ ...u.title === void 0 ? {} : { title: u.title },
301
+ ...u.tone === void 0 ? {} : { tone: u.tone },
302
+ ...u.description === void 0 ? {} : { description: u.description },
303
+ ...u.action === void 0 ? {} : { action: u.action },
304
+ duration: u.duration ?? (N.tone === "loading" && (u.tone ?? N.tone) !== "loading" ? p : (u.tone ?? N.tone) === "loading" ? 1 / 0 : N.duration),
305
+ generation: C
306
+ }));
307
+ }, [v, p]), y = R((s, u) => (k(s, u), s), [k]), T = R((s, u) => {
308
+ const b = r.current, h = s === void 0 ? void 0 : b.find((_) => _.id === s);
309
+ s !== void 0 && (!h || u !== void 0 && h.generation !== u) || v(s === void 0 ? [] : b.filter((_) => _.id !== s));
310
+ }, [v]), x = ft(() => ({
311
+ success: (s, u) => w("success", s, u).id,
312
+ error: (s, u) => w("error", s, u).id,
313
+ warning: (s, u) => w("warning", s, u).id,
314
+ info: (s, u) => w("info", s, u).id,
315
+ loading: (s, u) => w("loading", s, u).id,
316
+ update: y,
317
+ dismiss: T,
318
+ promise: (s, u, b) => {
319
+ const h = w("loading", u.loading, b);
320
+ return Promise.resolve(s).then(
321
+ (_) => (k(h.id, {
322
+ title: typeof u.success == "function" ? u.success(_) : u.success,
323
+ tone: "success",
324
+ duration: b?.duration ?? p
325
+ }, h.generation), _),
326
+ (_) => {
327
+ throw k(h.id, {
328
+ title: typeof u.error == "function" ? u.error(_) : u.error,
329
+ tone: "error",
330
+ duration: b?.duration ?? p
331
+ }, h.generation), _;
332
+ }
333
+ );
334
+ }
335
+ }), [w, p, T, y, k]);
336
+ return /* @__PURE__ */ n(ct.Provider, { value: x, children: /* @__PURE__ */ f(kt, { duration: e, children: [
337
+ t,
338
+ i.map((s) => /* @__PURE__ */ f(
339
+ yt,
340
+ {
341
+ duration: s.duration,
342
+ icon: s.tone === "loading" ? /* @__PURE__ */ n("span", { className: "facto-notification-spinner" }) : void 0,
343
+ tone: s.tone === "error" ? "danger" : s.tone === "loading" ? "info" : s.tone,
344
+ type: s.tone === "error" ? "foreground" : "background",
345
+ open: !0,
346
+ onOpenChange: (u) => {
347
+ u || T(s.id, s.generation);
348
+ },
349
+ children: [
350
+ /* @__PURE__ */ n(Tt, { children: s.title }),
351
+ s.tone === "loading" && /* @__PURE__ */ n(ot, { children: /* @__PURE__ */ n("span", { role: "status", children: "Loading" }) }),
352
+ s.description != null && /* @__PURE__ */ n(ot, { children: s.description }),
353
+ s.action && /* @__PURE__ */ n(Ct, { altText: s.action.altText, onClick: s.action.onClick, children: s.action.label }),
354
+ /* @__PURE__ */ n(It, {})
355
+ ]
356
+ },
357
+ `${s.id}-${s.generation}`
358
+ )),
359
+ /* @__PURE__ */ n(Mt, { label: o })
360
+ ] }) });
361
+ }
362
+ function Ot() {
363
+ const t = S(ct);
364
+ if (!t) throw new Error("useToast must be used within a NotificationsProvider");
365
+ return t;
366
+ }
367
+ const l = (...t) => t.filter(Boolean).join(" "), V = (...t) => t.filter(Boolean).join(" ") || void 0, B = it({}), _t = (t) => Object.fromEntries(
368
+ Object.entries(t ?? {}).filter(([e, a]) => e.startsWith("--facto-") && a !== void 0 && a !== null)
34
369
  );
35
- function ot({ className: t, tokens: e, style: o, ...n }) {
36
- const c = _(N), s = { ...e, ...o }, r = { ...c, ...Q(s) };
37
- return /* @__PURE__ */ a(N.Provider, { value: r, children: /* @__PURE__ */ a("div", { ...n, style: s, className: i("facto-theme", t) }) });
38
- }
39
- function w({ name: t, size: e = 20, ...o }) {
40
- return /* @__PURE__ */ a("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", ...o, children: {
41
- close: /* @__PURE__ */ a("path", { d: "m6 6 12 12M18 6 6 18" }),
42
- arrowLeft: /* @__PURE__ */ a("path", { d: "m12 5-7 7 7 7M5 12h14" }),
43
- check: /* @__PURE__ */ a("path", { d: "m5 12 4 4L19 6" }),
44
- chevronDown: /* @__PURE__ */ a("path", { d: "m6 9 6 6 6-6" }),
45
- info: /* @__PURE__ */ d(A, { children: [
46
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "9" }),
47
- /* @__PURE__ */ a("path", { d: "M12 11v6M12 7v1" })
370
+ function zt({ className: t, tokens: e, style: a, ...o }) {
371
+ const i = S(B), c = { ...e, ...a }, r = { ...i, ..._t(c) };
372
+ return /* @__PURE__ */ n(B.Provider, { value: r, children: /* @__PURE__ */ n("div", { ...o, style: c, className: l("facto-theme", t) }) });
373
+ }
374
+ function z({ name: t, size: e = 20, ...a }) {
375
+ return /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", ...a, children: {
376
+ plus: /* @__PURE__ */ n("path", { d: "M12 5v14M5 12h14" }),
377
+ chevronLeft: /* @__PURE__ */ n("path", { d: "m15 6-6 6 6 6" }),
378
+ copy: /* @__PURE__ */ f(q, { children: [
379
+ /* @__PURE__ */ n("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2" }),
380
+ /* @__PURE__ */ n("path", { d: "M16 8V4H4v12h4" })
381
+ ] }),
382
+ search: /* @__PURE__ */ f(q, { children: [
383
+ /* @__PURE__ */ n("circle", { cx: "10", cy: "10", r: "6" }),
384
+ /* @__PURE__ */ n("path", { d: "m15 15 5 5" })
48
385
  ] }),
49
- warning: /* @__PURE__ */ d(A, { children: [
50
- /* @__PURE__ */ a("path", { d: "m12 3 10 18H2L12 3Z" }),
51
- /* @__PURE__ */ a("path", { d: "M12 9v5M12 17v1" })
386
+ close: /* @__PURE__ */ n("path", { d: "m6 6 12 12M18 6 6 18" }),
387
+ arrowLeft: /* @__PURE__ */ n("path", { d: "m12 5-7 7 7 7M5 12h14" }),
388
+ check: /* @__PURE__ */ n("path", { d: "m5 12 4 4L19 6" }),
389
+ chevronDown: /* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" }),
390
+ chevronRight: /* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" }),
391
+ info: /* @__PURE__ */ f(q, { children: [
392
+ /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "9" }),
393
+ /* @__PURE__ */ n("path", { d: "M12 11v6M12 7v1" })
394
+ ] }),
395
+ warning: /* @__PURE__ */ f(q, { children: [
396
+ /* @__PURE__ */ n("path", { d: "m12 3 10 18H2L12 3Z" }),
397
+ /* @__PURE__ */ n("path", { d: "M12 9v5M12 17v1" })
52
398
  ] })
53
399
  }[t] });
54
400
  }
55
- function nt({ className: t, ...e }) {
56
- return /* @__PURE__ */ a("div", { ...e, className: i("facto-modal-header", t) });
401
+ function Ht({ className: t, ...e }) {
402
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-modal-header", t) });
57
403
  }
58
- function ct({ className: t, ...e }) {
59
- return /* @__PURE__ */ a("div", { ...e, className: i("facto-modal-footer", t) });
404
+ function Vt({ className: t, ...e }) {
405
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-modal-footer", t) });
60
406
  }
61
- const it = R(
407
+ const qt = Z(
62
408
  function({
63
409
  variant: e = "primary",
64
- size: o = "md",
65
- fullWidth: n,
66
- loading: c,
67
- className: s,
68
- children: r,
69
- disabled: f,
70
- type: l = "button",
71
- ...m
72
- }, k) {
73
- return /* @__PURE__ */ d(
410
+ size: a = "md",
411
+ fullWidth: o,
412
+ loading: i,
413
+ leadingIcon: c,
414
+ trailingIcon: r,
415
+ className: m,
416
+ children: d,
417
+ disabled: g,
418
+ type: p = "button",
419
+ ...v
420
+ }, w) {
421
+ return /* @__PURE__ */ f(
74
422
  "button",
75
423
  {
76
- ...m,
77
- ref: k,
78
- type: l,
79
- disabled: f || c,
80
- "aria-busy": c || void 0,
81
- className: i(
424
+ ...v,
425
+ ref: w,
426
+ type: p,
427
+ disabled: g || i,
428
+ "aria-busy": i || void 0,
429
+ className: l(
82
430
  "facto-button",
83
431
  `facto-button--${e}`,
84
- `facto-button--${o}`,
85
- n && "facto-button--full",
86
- s
432
+ `facto-button--${a}`,
433
+ o && "facto-button--full",
434
+ m
87
435
  ),
88
436
  children: [
89
- c && /* @__PURE__ */ a("span", { className: "facto-button__spinner", "aria-hidden": "true" }),
90
- r
437
+ /* @__PURE__ */ f("span", { className: "facto-button__content", style: i ? { opacity: 0 } : void 0, children: [
438
+ c,
439
+ /* @__PURE__ */ n("span", { children: d }),
440
+ r
441
+ ] }),
442
+ i && /* @__PURE__ */ n("span", { className: "facto-button__spinner", "aria-hidden": "true" })
91
443
  ]
92
444
  }
93
445
  );
94
446
  }
95
- ), st = R(
96
- function({ ariaLabel: e, size: o = "md", className: n, title: c, type: s = "button", children: r, ...f }, l) {
97
- return /* @__PURE__ */ a(
447
+ ), Gt = Z(
448
+ function({ ariaLabel: e, size: a = "md", className: o, title: i, type: c = "button", children: r, ...m }, d) {
449
+ return /* @__PURE__ */ n(
98
450
  "button",
99
451
  {
100
- ...f,
101
- ref: l,
102
- type: s,
452
+ ...m,
453
+ ref: d,
454
+ type: c,
103
455
  "aria-label": e,
104
- title: c ?? e,
105
- className: i(
456
+ title: i ?? e,
457
+ className: l(
106
458
  "facto-icon-button",
107
- `facto-icon-button--${o}`,
108
- n
459
+ `facto-icon-button--${a}`,
460
+ o
109
461
  ),
110
- children: /* @__PURE__ */ a("span", { className: "facto-icon-button__visual", children: r })
462
+ children: /* @__PURE__ */ n("span", { className: "facto-icon-button__visual", children: r })
111
463
  }
112
464
  );
113
465
  }
114
466
  );
115
- function q({ padding: t = "lg", className: e, ...o }) {
116
- return /* @__PURE__ */ a(
467
+ function rt({ padding: t = "lg", className: e, ...a }) {
468
+ return /* @__PURE__ */ n(
117
469
  "div",
118
470
  {
119
- ...o,
120
- className: i(
471
+ ...a,
472
+ className: l(
121
473
  "facto-surface",
122
474
  `facto-surface--padding-${t}`,
123
475
  e
@@ -125,16 +477,16 @@ function q({ padding: t = "lg", className: e, ...o }) {
125
477
  }
126
478
  );
127
479
  }
128
- function rt(t) {
129
- return /* @__PURE__ */ a(q, { ...t });
480
+ function Kt(t) {
481
+ return /* @__PURE__ */ n(rt, { ...t });
130
482
  }
131
- function lt({ span: t = 1, className: e, ...o }) {
132
- return /* @__PURE__ */ a(
133
- q,
483
+ function Ut({ span: t = 1, className: e, ...a }) {
484
+ return /* @__PURE__ */ n(
485
+ rt,
134
486
  {
135
- ...o,
487
+ ...a,
136
488
  padding: "md",
137
- className: i(
489
+ className: l(
138
490
  "facto-widget",
139
491
  t === 2 && "facto-widget--span-2",
140
492
  e
@@ -142,202 +494,206 @@ function lt({ span: t = 1, className: e, ...o }) {
142
494
  }
143
495
  );
144
496
  }
145
- function dt({ className: t, children: e, ...o }) {
146
- return /* @__PURE__ */ a("div", { ...o, className: i("facto-dashboard-container", t), children: /* @__PURE__ */ a("div", { className: "facto-dashboard-grid", children: e }) });
497
+ function Zt({ className: t, children: e, ...a }) {
498
+ return /* @__PURE__ */ n("div", { ...a, className: l("facto-dashboard-container", t), children: /* @__PURE__ */ n("div", { className: "facto-dashboard-grid", children: e }) });
147
499
  }
148
- function ft({ withAction: t, className: e, ...o }) {
149
- return /* @__PURE__ */ a(
500
+ function Jt({ withAction: t, className: e, ...a }) {
501
+ return /* @__PURE__ */ n(
150
502
  "div",
151
503
  {
152
- ...o,
153
- className: i("facto-widget-head", t && "facto-widget-head--with-action", e)
504
+ ...a,
505
+ className: l("facto-widget-head", t && "facto-widget-head--with-action", e)
154
506
  }
155
507
  );
156
508
  }
157
- function ut({ className: t, ...e }) {
158
- return /* @__PURE__ */ a("div", { ...e, className: i("facto-widget-list", t) });
509
+ function Qt({ className: t, ...e }) {
510
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-list", t) });
159
511
  }
160
- function mt({ className: t, ...e }) {
161
- return /* @__PURE__ */ a("div", { ...e, className: i("facto-widget-kv", t) });
512
+ function Xt({ className: t, ...e }) {
513
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-kv", t) });
162
514
  }
163
- function ht({ className: t, ...e }) {
164
- return /* @__PURE__ */ a("div", { ...e, className: i("facto-widget-amount", t) });
515
+ function Yt({ className: t, ...e }) {
516
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-amount", t) });
165
517
  }
166
- function gt(t) {
167
- const e = i("facto-widget-action", t.dark && "facto-widget-action--dark", t.className);
518
+ function te(t) {
519
+ const e = l("facto-widget-action", t.dark && "facto-widget-action--dark", t.className);
168
520
  if (typeof t.href == "string") {
169
- const { dark: r, className: f, ...l } = t;
170
- return /* @__PURE__ */ a("a", { ...l, className: e });
521
+ const { dark: r, className: m, ...d } = t;
522
+ return /* @__PURE__ */ n("a", { ...d, className: e });
171
523
  }
172
- const { dark: o, className: n, type: c = "button", ...s } = t;
173
- return /* @__PURE__ */ a("button", { ...s, type: c, className: e });
524
+ const { dark: a, className: o, type: i = "button", ...c } = t;
525
+ return /* @__PURE__ */ n("button", { ...c, type: i, className: e });
174
526
  }
175
- function bt({
527
+ function ee({
176
528
  className: t,
177
529
  type: e = "button",
178
- ...o
530
+ ...a
179
531
  }) {
180
- return /* @__PURE__ */ a(
532
+ return /* @__PURE__ */ n(
181
533
  "button",
182
534
  {
183
- ...o,
535
+ ...a,
184
536
  type: e,
185
- className: i("facto-widget-row", t)
537
+ className: l("facto-widget-row", t)
186
538
  }
187
539
  );
188
540
  }
189
- function U({
541
+ function Nt({
190
542
  label: t,
191
543
  helperText: e,
192
- error: o,
193
- id: n,
194
- containerClassName: c,
195
- className: s,
544
+ error: a,
545
+ id: o,
546
+ containerClassName: i,
547
+ className: c,
196
548
  ...r
197
549
  }) {
198
- const f = I(), l = n ?? f, m = o || e ? `${l}-description` : void 0;
199
- return /* @__PURE__ */ d("div", { className: i("facto-field", c), children: [
200
- t && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: l, children: t }),
201
- /* @__PURE__ */ a(
550
+ const m = j(), d = o ?? m, g = a || e ? `${d}-description` : void 0;
551
+ return /* @__PURE__ */ f("div", { className: l("facto-field", i), children: [
552
+ t && /* @__PURE__ */ n("label", { className: "facto-field__label", htmlFor: d, children: t }),
553
+ /* @__PURE__ */ n(
202
554
  "input",
203
555
  {
204
556
  ...r,
205
- id: l,
206
- "aria-invalid": !!o || r["aria-invalid"],
207
- "aria-describedby": C(r["aria-describedby"], m),
208
- className: i(
557
+ id: d,
558
+ "aria-invalid": !!a || r["aria-invalid"],
559
+ "aria-describedby": V(r["aria-describedby"], g),
560
+ className: l(
209
561
  "facto-input",
210
- !!o && "facto-input--error",
211
- s
562
+ !!a && "facto-input--error",
563
+ c
212
564
  )
213
565
  }
214
566
  ),
215
- (o || e) && /* @__PURE__ */ a(
567
+ (a || e) && /* @__PURE__ */ n(
216
568
  "span",
217
569
  {
218
- id: m,
219
- className: i(
570
+ id: g,
571
+ className: l(
220
572
  "facto-field__message",
221
- !!o && "facto-field__message--error"
573
+ !!a && "facto-field__message--error"
222
574
  ),
223
- children: o ?? e
575
+ children: a ?? e
224
576
  }
225
577
  )
226
578
  ] });
227
579
  }
228
- function vt({
580
+ function ne({
229
581
  label: t,
230
582
  helperText: e,
231
- error: o,
232
- id: n,
233
- containerClassName: c,
234
- className: s,
583
+ error: a,
584
+ id: o,
585
+ containerClassName: i,
586
+ className: c,
235
587
  ...r
236
588
  }) {
237
- const f = I(), l = n ?? f, m = o || e ? `${l}-description` : void 0;
238
- return /* @__PURE__ */ d("div", { className: i("facto-field", c), children: [
239
- t && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: l, children: t }),
240
- /* @__PURE__ */ a(
589
+ const m = j(), d = o ?? m, g = a || e ? `${d}-description` : void 0;
590
+ return /* @__PURE__ */ f("div", { className: l("facto-field", i), children: [
591
+ t && /* @__PURE__ */ n("label", { className: "facto-field__label", htmlFor: d, children: t }),
592
+ /* @__PURE__ */ n(
241
593
  "textarea",
242
594
  {
243
595
  ...r,
244
- id: l,
245
- "aria-invalid": !!o || r["aria-invalid"],
246
- "aria-describedby": C(r["aria-describedby"], m),
247
- className: i(
596
+ id: d,
597
+ "aria-invalid": !!a || r["aria-invalid"],
598
+ "aria-describedby": V(r["aria-describedby"], g),
599
+ className: l(
248
600
  "facto-textarea",
249
- !!o && "facto-input--error",
250
- s
601
+ !!a && "facto-input--error",
602
+ c
251
603
  )
252
604
  }
253
605
  ),
254
- (o || e) && /* @__PURE__ */ a(
606
+ (a || e) && /* @__PURE__ */ n(
255
607
  "span",
256
608
  {
257
- id: m,
258
- className: i(
609
+ id: g,
610
+ className: l(
259
611
  "facto-field__message",
260
- !!o && "facto-field__message--error"
612
+ !!a && "facto-field__message--error"
261
613
  ),
262
- children: o ?? e
614
+ children: a ?? e
263
615
  }
264
616
  )
265
617
  ] });
266
618
  }
267
- function Nt({ tone: t = "neutral", className: e, ...o }) {
268
- return /* @__PURE__ */ a(
619
+ function ae({ tone: t = "neutral", className: e, ...a }) {
620
+ return /* @__PURE__ */ n(
269
621
  "span",
270
622
  {
271
- ...o,
272
- className: i("facto-badge", `facto-badge--${t}`, e)
623
+ ...a,
624
+ className: l("facto-badge", `facto-badge--${t}`, e)
273
625
  }
274
626
  );
275
627
  }
276
- function pt({
628
+ function oe({
277
629
  options: t,
278
630
  value: e,
279
- defaultValue: o,
280
- onValueChange: n,
281
- placeholder: c = "Select an option",
282
- label: s,
631
+ defaultValue: a,
632
+ onValueChange: o,
633
+ placeholder: i = "Select an option",
634
+ label: c,
283
635
  error: r,
284
- disabled: f,
285
- name: l,
286
- id: m,
287
- ariaLabel: k,
288
- "aria-describedby": $,
289
- className: B
636
+ disabled: m,
637
+ name: d,
638
+ id: g,
639
+ ariaLabel: p,
640
+ "aria-describedby": v,
641
+ className: w
290
642
  }) {
291
- const W = _(N), S = I(), y = m ?? S, x = r ? `${y}-description` : void 0, T = V(null), b = z(() => {
292
- T.current?.(), T.current = null;
293
- }, []), D = z(
643
+ const k = S(B), y = j(), T = g ?? y, x = r ? `${T}-description` : void 0, s = F(null), u = R(() => {
644
+ s.current?.(), s.current = null;
645
+ }, []), b = R(
294
646
  (h) => {
295
- b(), h && (T.current = J(h));
647
+ u(), h && (s.current = mt(h));
296
648
  },
297
- [b]
649
+ [u]
298
650
  );
299
- return L(() => b, [b]), /* @__PURE__ */ d("div", { className: i("facto-field", B), children: [
300
- s && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: y, children: s }),
301
- /* @__PURE__ */ d(
302
- g.Root,
651
+ return L(() => u, [u]), /* @__PURE__ */ f("div", { className: l("facto-field", w), children: [
652
+ c && /* @__PURE__ */ n("label", { className: "facto-field__label", htmlFor: T, children: c }),
653
+ /* @__PURE__ */ f(
654
+ D.Root,
303
655
  {
304
656
  value: e,
305
- defaultValue: o,
306
- onValueChange: n,
307
- disabled: f,
308
- name: l,
657
+ defaultValue: a,
658
+ onValueChange: o,
659
+ disabled: m,
660
+ name: d,
309
661
  children: [
310
- /* @__PURE__ */ d(
311
- g.Trigger,
662
+ /* @__PURE__ */ f(
663
+ D.Trigger,
312
664
  {
313
- id: y,
314
- className: i("facto-select", !!r && "facto-input--error"),
315
- "aria-label": k,
316
- "aria-describedby": C($, x),
665
+ id: T,
666
+ className: l("facto-select", !!r && "facto-input--error"),
667
+ "aria-label": p,
668
+ "aria-describedby": V(v, x),
317
669
  "aria-invalid": !!r,
318
670
  children: [
319
- /* @__PURE__ */ a(g.Value, { placeholder: c }),
320
- /* @__PURE__ */ a(g.Icon, { className: "facto-select__chevron", children: /* @__PURE__ */ a(w, { name: "chevronDown", size: 16 }) })
671
+ /* @__PURE__ */ n(D.Value, { placeholder: i }),
672
+ /* @__PURE__ */ n(D.Icon, { className: "facto-select__chevron", children: /* @__PURE__ */ n(z, { name: "chevronDown", size: 16 }) })
321
673
  ]
322
674
  }
323
675
  ),
324
- /* @__PURE__ */ a(g.Portal, { children: /* @__PURE__ */ a(
325
- g.Content,
676
+ /* @__PURE__ */ n(D.Portal, { children: /* @__PURE__ */ n(
677
+ D.Content,
326
678
  {
327
- ref: D,
679
+ ref: b,
328
680
  className: "facto-theme facto-select-content",
329
- style: W,
681
+ style: k,
330
682
  position: "popper",
331
- onCloseAutoFocus: b,
332
- children: /* @__PURE__ */ a(g.Viewport, { children: t.map((h) => /* @__PURE__ */ d(
333
- g.Item,
683
+ side: "bottom",
684
+ align: "start",
685
+ sideOffset: 8,
686
+ collisionPadding: 16,
687
+ onCloseAutoFocus: u,
688
+ children: /* @__PURE__ */ n(D.Viewport, { children: t.map((h) => /* @__PURE__ */ f(
689
+ D.Item,
334
690
  {
335
691
  value: h.value,
336
692
  disabled: h.disabled,
337
693
  className: "facto-select-item",
338
694
  children: [
339
- /* @__PURE__ */ a(g.ItemText, { children: h.label }),
340
- /* @__PURE__ */ a(g.ItemIndicator, { children: /* @__PURE__ */ a(w, { name: "check", size: 16 }) })
695
+ /* @__PURE__ */ n(D.ItemText, { children: h.label }),
696
+ /* @__PURE__ */ n(D.ItemIndicator, { children: /* @__PURE__ */ n(z, { name: "check", size: 16 }) })
341
697
  ]
342
698
  },
343
699
  h.value
@@ -347,7 +703,7 @@ function pt({
347
703
  ]
348
704
  }
349
705
  ),
350
- r && /* @__PURE__ */ a(
706
+ r && /* @__PURE__ */ n(
351
707
  "span",
352
708
  {
353
709
  id: x,
@@ -357,390 +713,467 @@ function pt({
357
713
  )
358
714
  ] });
359
715
  }
360
- function _t({
716
+ function ie({
361
717
  label: t,
362
718
  description: e,
363
- className: o,
364
- id: n,
365
- ...c
719
+ className: a,
720
+ id: o,
721
+ ...i
366
722
  }) {
367
- const s = I(), r = n ?? s, f = e ? `${r}-description` : void 0, l = /* @__PURE__ */ a(
368
- H.Root,
723
+ const c = j(), r = o ?? c, m = e ? `${r}-description` : void 0, d = /* @__PURE__ */ n(
724
+ et.Root,
369
725
  {
370
- ...c,
726
+ ...i,
371
727
  id: r,
372
- "aria-describedby": C(c["aria-describedby"], f),
373
- className: i("facto-switch", o),
374
- children: /* @__PURE__ */ a("span", { className: "facto-switch__track", "aria-hidden": "true", children: /* @__PURE__ */ a(H.Thumb, { className: "facto-switch__thumb" }) })
728
+ "aria-describedby": V(i["aria-describedby"], m),
729
+ className: l("facto-switch", a),
730
+ children: /* @__PURE__ */ n("span", { className: "facto-switch__track", "aria-hidden": "true", children: /* @__PURE__ */ n(et.Thumb, { className: "facto-switch__thumb" }) })
375
731
  }
376
732
  );
377
- return t ? /* @__PURE__ */ d("div", { className: "facto-check-field", children: [
378
- l,
379
- /* @__PURE__ */ d("span", { children: [
380
- /* @__PURE__ */ a("label", { htmlFor: r, children: /* @__PURE__ */ a("strong", { children: t }) }),
381
- e && /* @__PURE__ */ a("small", { id: f, children: e })
733
+ return t ? /* @__PURE__ */ f("div", { className: "facto-check-field", children: [
734
+ d,
735
+ /* @__PURE__ */ f("span", { children: [
736
+ /* @__PURE__ */ n("label", { htmlFor: r, children: /* @__PURE__ */ n("strong", { children: t }) }),
737
+ e && /* @__PURE__ */ n("small", { id: m, children: e })
382
738
  ] })
383
- ] }) : l;
739
+ ] }) : d;
384
740
  }
385
- function kt({
741
+ function ce({
386
742
  label: t,
387
743
  description: e,
388
- className: o,
389
- id: n,
390
- ...c
744
+ className: a,
745
+ id: o,
746
+ ...i
391
747
  }) {
392
- const s = I(), r = n ?? s, f = e ? `${r}-description` : void 0, l = /* @__PURE__ */ a(
393
- E.Root,
748
+ const c = j(), r = o ?? c, m = e ? `${r}-description` : void 0, d = /* @__PURE__ */ n(
749
+ tt.Root,
394
750
  {
395
- ...c,
751
+ ...i,
396
752
  id: r,
397
- "aria-describedby": C(c["aria-describedby"], f),
398
- className: i("facto-checkbox", o),
399
- children: /* @__PURE__ */ a("span", { className: "facto-checkbox__visual", "aria-hidden": "true", children: /* @__PURE__ */ a(E.Indicator, { className: "facto-checkbox__indicator", children: /* @__PURE__ */ a(w, { name: "check", size: 16 }) }) })
753
+ "aria-describedby": V(i["aria-describedby"], m),
754
+ className: l("facto-checkbox", a),
755
+ children: /* @__PURE__ */ n("span", { className: "facto-checkbox__visual", "aria-hidden": "true", children: /* @__PURE__ */ n(tt.Indicator, { className: "facto-checkbox__indicator", children: /* @__PURE__ */ n(z, { name: "check", size: 16 }) }) })
400
756
  }
401
757
  );
402
- return t ? /* @__PURE__ */ d("div", { className: "facto-check-field", children: [
403
- l,
404
- /* @__PURE__ */ d("span", { children: [
405
- /* @__PURE__ */ a("label", { htmlFor: r, children: /* @__PURE__ */ a("strong", { children: t }) }),
406
- e && /* @__PURE__ */ a("small", { id: f, children: e })
758
+ return t ? /* @__PURE__ */ f("div", { className: "facto-check-field", children: [
759
+ d,
760
+ /* @__PURE__ */ f("span", { children: [
761
+ /* @__PURE__ */ n("label", { htmlFor: r, children: /* @__PURE__ */ n("strong", { children: t }) }),
762
+ e && /* @__PURE__ */ n("small", { id: m, children: e })
407
763
  ] })
408
- ] }) : l;
764
+ ] }) : d;
409
765
  }
410
- const yt = M.Root;
411
- function Tt({
766
+ const re = X.Root;
767
+ function se({
412
768
  className: t,
413
769
  ...e
414
770
  }) {
415
- return /* @__PURE__ */ a(
416
- M.List,
771
+ return /* @__PURE__ */ n(
772
+ X.List,
417
773
  {
418
774
  ...e,
419
- className: i("facto-tabs-list", t)
775
+ className: l("facto-tabs-list", t)
420
776
  }
421
777
  );
422
778
  }
423
- function wt({
779
+ function le({
424
780
  className: t,
425
781
  ...e
426
782
  }) {
427
- return /* @__PURE__ */ a(
428
- M.Trigger,
783
+ return /* @__PURE__ */ n(
784
+ X.Trigger,
429
785
  {
430
786
  ...e,
431
- className: i("facto-tabs-trigger", t)
787
+ className: l("facto-tabs-trigger", t)
432
788
  }
433
789
  );
434
790
  }
435
- function It({
791
+ function de({
436
792
  className: t,
437
793
  ...e
438
794
  }) {
439
- return /* @__PURE__ */ a(
440
- M.Content,
795
+ return /* @__PURE__ */ n(
796
+ X.Content,
441
797
  {
442
798
  ...e,
443
- className: i("facto-tabs-content", t)
799
+ className: l("facto-tabs-content", t)
444
800
  }
445
801
  );
446
802
  }
447
- const Ct = u.Root, Bt = u.Trigger, St = u.Close, X = R(function({ className: e, ...o }, n) {
448
- return /* @__PURE__ */ a(u.Title, { ...o, ref: n, className: i("facto-modal-title", e) });
449
- }), Y = R(function({ className: e, ...o }, n) {
450
- return /* @__PURE__ */ a(u.Description, { ...o, ref: n, className: i("facto-modal-description", e) });
803
+ const ue = M.Root, fe = M.Trigger, me = M.Close, bt = Z(
804
+ function({ className: e, children: a, tabIndex: o, ...i }, c) {
805
+ const r = F(null), [m, d] = H(!1), g = R((p) => {
806
+ if (r.current = p, typeof c == "function") {
807
+ const v = c(p);
808
+ if (typeof v == "function")
809
+ return () => {
810
+ r.current === p && (r.current = null), v();
811
+ };
812
+ } else c && (c.current = p);
813
+ }, [c]);
814
+ return L(() => {
815
+ const p = r.current;
816
+ if (!p) return;
817
+ const v = () => d(p.scrollHeight > p.clientHeight + 1);
818
+ v();
819
+ const w = new ResizeObserver(v), k = new MutationObserver(v);
820
+ return w.observe(p), k.observe(p, { childList: !0, characterData: !0, subtree: !0 }), () => {
821
+ w.disconnect(), k.disconnect();
822
+ };
823
+ }, [a]), /* @__PURE__ */ n(M.Title, { ...i, ref: g, tabIndex: m ? o ?? 0 : o, className: l("facto-modal-title", e), children: a });
824
+ }
825
+ ), wt = Z(function({ className: e, ...a }, o) {
826
+ return /* @__PURE__ */ n(M.Description, { ...a, ref: o, className: l("facto-modal-description", e) });
451
827
  });
452
- function Dt({
828
+ function he({
453
829
  size: t = "sm",
454
- className: e,
830
+ motionVariant: e = "auto",
831
+ className: a,
455
832
  style: o,
456
- children: n,
833
+ children: i,
457
834
  ...c
458
835
  }) {
459
- const s = _(N);
460
- return /* @__PURE__ */ d(u.Portal, { children: [
461
- /* @__PURE__ */ a(u.Overlay, { className: "facto-dialog-overlay", style: s }),
462
- /* @__PURE__ */ a(
463
- u.Content,
836
+ const r = S(B);
837
+ return /* @__PURE__ */ f(M.Portal, { children: [
838
+ /* @__PURE__ */ n(M.Overlay, { className: "facto-dialog-overlay", "data-motion": e, style: r }),
839
+ /* @__PURE__ */ n(
840
+ M.Content,
464
841
  {
465
842
  ...c,
466
- style: { ...s, ...o },
467
- className: i(
843
+ "data-motion": e,
844
+ style: { ...r, ...o },
845
+ className: l(
468
846
  "facto-theme",
469
847
  "facto-dialog",
470
848
  `facto-dialog--${t}`,
471
- e
849
+ a
472
850
  ),
473
- children: n
851
+ children: i
474
852
  }
475
853
  )
476
854
  ] });
477
855
  }
478
- const Pt = u.Root, $t = u.Trigger, xt = u.Close, Ft = X, Mt = Y;
479
- function Rt({
856
+ const pe = M.Root, ge = M.Trigger, ve = M.Close, _e = bt, Ne = wt;
857
+ function be({
480
858
  side: t = "center",
481
- className: e,
859
+ motionVariant: e = "auto",
860
+ className: a,
482
861
  style: o,
483
- children: n,
862
+ children: i,
484
863
  ...c
485
864
  }) {
486
- const s = _(N);
487
- return /* @__PURE__ */ d(u.Portal, { children: [
488
- /* @__PURE__ */ a(u.Overlay, { className: "facto-dialog-overlay", style: s }),
489
- /* @__PURE__ */ a(
490
- u.Content,
865
+ const r = S(B);
866
+ return /* @__PURE__ */ f(M.Portal, { children: [
867
+ /* @__PURE__ */ n(M.Overlay, { className: "facto-dialog-overlay", "data-motion": e, style: r }),
868
+ /* @__PURE__ */ n(
869
+ M.Content,
491
870
  {
492
871
  ...c,
493
- style: { ...s, ...o },
494
- className: i(
872
+ "data-motion": e,
873
+ style: { ...r, ...o },
874
+ className: l(
495
875
  "facto-theme",
496
876
  "facto-sheet",
497
877
  `facto-sheet--${t}`,
498
- e
878
+ a
499
879
  ),
500
- children: n
880
+ children: i
501
881
  }
502
882
  )
503
883
  ] });
504
884
  }
505
- function Wt({
885
+ function at({
506
886
  width: t,
507
887
  height: e,
508
- circle: o,
509
- className: n,
510
- style: c,
511
- ...s
888
+ circle: a,
889
+ className: o,
890
+ style: i,
891
+ ...c
512
892
  }) {
513
- return /* @__PURE__ */ a(
893
+ return /* @__PURE__ */ n(
514
894
  "span",
515
895
  {
516
- ...s,
896
+ ...c,
517
897
  "aria-hidden": "true",
518
- className: i(
898
+ className: l(
519
899
  "facto-skeleton",
520
- o && "facto-skeleton--circle",
521
- n
900
+ a && "facto-skeleton--circle",
901
+ o
522
902
  ),
523
- style: { ...c, width: t, height: e }
903
+ style: { ...i, width: t, height: e }
524
904
  }
525
905
  );
526
906
  }
527
- function Lt({
907
+ function we({
528
908
  title: t,
529
909
  description: e,
530
- action: o,
531
- icon: n,
532
- className: c,
533
- ...s
910
+ action: a,
911
+ icon: o,
912
+ className: i,
913
+ ...c
534
914
  }) {
535
- return /* @__PURE__ */ d("div", { ...s, className: i("facto-empty-state", c), children: [
536
- n && /* @__PURE__ */ a("div", { className: "facto-empty-state__icon", "aria-hidden": "true", children: n }),
537
- /* @__PURE__ */ a("strong", { children: t }),
538
- e && /* @__PURE__ */ a("p", { children: e }),
539
- o && /* @__PURE__ */ a("div", { children: o })
915
+ return /* @__PURE__ */ f("div", { ...c, className: l("facto-empty-state", i), children: [
916
+ o && /* @__PURE__ */ n("div", { className: "facto-empty-state__icon", "aria-hidden": "true", children: o }),
917
+ /* @__PURE__ */ n("strong", { children: t }),
918
+ e && /* @__PURE__ */ n("p", { children: e }),
919
+ a && /* @__PURE__ */ n("div", { children: a })
540
920
  ] });
541
921
  }
542
- function jt({
922
+ function ke({
543
923
  tone: t = "info",
544
924
  title: e,
545
- description: o,
546
- action: n,
547
- className: c,
548
- ...s
925
+ description: a,
926
+ action: o,
927
+ className: i,
928
+ ...c
549
929
  }) {
550
- return /* @__PURE__ */ d(
930
+ return /* @__PURE__ */ f(
551
931
  "div",
552
932
  {
553
- ...s,
933
+ ...c,
554
934
  role: t === "danger" ? "alert" : "status",
555
- className: i("facto-notice", `facto-notice--${t}`, c),
935
+ className: l("facto-notice", `facto-notice--${t}`, i),
556
936
  children: [
557
- /* @__PURE__ */ d("div", { children: [
558
- /* @__PURE__ */ a("strong", { children: e }),
559
- o && /* @__PURE__ */ a("span", { children: o })
937
+ /* @__PURE__ */ f("div", { children: [
938
+ /* @__PURE__ */ n("strong", { children: e }),
939
+ a && /* @__PURE__ */ n("span", { children: a })
560
940
  ] }),
561
- n
941
+ o
562
942
  ]
563
943
  }
564
944
  );
565
945
  }
566
- function At({
946
+ function ye({
567
947
  gap: t = 3,
568
948
  direction: e = "vertical",
569
- align: o = "stretch",
570
- justify: n = "start",
571
- className: c,
572
- ...s
949
+ align: a = "stretch",
950
+ justify: o = "start",
951
+ className: i,
952
+ ...c
573
953
  }) {
574
- return /* @__PURE__ */ a(
954
+ return /* @__PURE__ */ n(
575
955
  "div",
576
956
  {
577
- ...s,
578
- className: i(
957
+ ...c,
958
+ className: l(
579
959
  "facto-stack",
580
960
  `facto-stack--${e}`,
581
961
  `facto-stack--gap-${t}`,
582
- `facto-stack--align-${o}`,
583
- `facto-stack--justify-${n}`,
584
- c
962
+ `facto-stack--align-${a}`,
963
+ `facto-stack--justify-${o}`,
964
+ i
585
965
  )
586
966
  }
587
967
  );
588
968
  }
589
- function Et({ delayDuration: t = 300, ...e }) {
590
- return /* @__PURE__ */ a(P.Provider, { ...e, delayDuration: t });
969
+ function Te({ delayDuration: t = 300, ...e }) {
970
+ return /* @__PURE__ */ n(U.Provider, { ...e, delayDuration: t });
591
971
  }
592
- const Ht = P.Root, zt = P.Trigger;
593
- function Ot({ variant: t = "default", className: e, style: o, sideOffset: n = 6, children: c, ...s }) {
594
- const r = _(N);
595
- return /* @__PURE__ */ a(P.Portal, { children: /* @__PURE__ */ a(
596
- P.Content,
972
+ const Ce = U.Root, Ie = U.Trigger;
973
+ function Me({ variant: t = "default", className: e, style: a, sideOffset: o = 6, collisionPadding: i = 16, children: c, ...r }) {
974
+ const m = S(B);
975
+ return /* @__PURE__ */ n(U.Portal, { children: /* @__PURE__ */ n(
976
+ U.Content,
597
977
  {
598
- ...s,
599
- sideOffset: n,
600
- className: i("facto-theme", "facto-tooltip", t === "content" && "facto-tooltip--content", e),
601
- style: { ...r, ...o },
978
+ ...r,
979
+ sideOffset: o,
980
+ collisionPadding: i,
981
+ className: l("facto-theme", "facto-tooltip", t === "content" && "facto-tooltip--content", e),
982
+ style: { ...m, ...a },
602
983
  children: c
603
984
  }
604
985
  ) });
605
986
  }
606
- function Vt({ duration: t = 2600, ...e }) {
607
- return /* @__PURE__ */ a(p.Provider, { ...e, duration: t });
987
+ function kt({ duration: t = 2600, ...e }) {
988
+ return /* @__PURE__ */ n(W.Provider, { ...e, duration: t });
608
989
  }
609
- function qt({ tone: t = "success", className: e, style: o, children: n, ...c }) {
610
- const s = _(N);
611
- return /* @__PURE__ */ d(p.Root, { ...c, className: i("facto-theme", "facto-toast", `facto-toast--${t}`, e), style: { ...s, ...o }, children: [
612
- /* @__PURE__ */ a("span", { className: "facto-toast__icon", "aria-hidden": "true", children: /* @__PURE__ */ a(w, { name: t === "danger" ? "close" : t === "warning" ? "warning" : t === "info" ? "info" : "check" }) }),
613
- /* @__PURE__ */ a("div", { className: "facto-toast__copy", children: n })
990
+ function yt({ tone: t = "success", icon: e, className: a, style: o, children: i, ...c }) {
991
+ const r = S(B);
992
+ return /* @__PURE__ */ f(W.Root, { ...c, className: l("facto-theme", "facto-toast", `facto-toast--${t}`, a), style: { ...r, ...o }, children: [
993
+ /* @__PURE__ */ n("span", { className: "facto-toast__icon", "aria-hidden": "true", children: e ?? /* @__PURE__ */ n(z, { name: t === "danger" ? "close" : t === "warning" ? "warning" : t === "info" ? "info" : "check" }) }),
994
+ /* @__PURE__ */ n("div", { className: "facto-toast__copy", children: i })
614
995
  ] });
615
996
  }
616
- function Gt({ className: t, ...e }) {
617
- return /* @__PURE__ */ a(p.Title, { ...e, className: i("facto-toast__title", t) });
997
+ function Tt({ className: t, ...e }) {
998
+ return /* @__PURE__ */ n(W.Title, { ...e, className: l("facto-toast__title", t) });
618
999
  }
619
- function Kt({ className: t, ...e }) {
620
- return /* @__PURE__ */ a(p.Description, { ...e, className: i("facto-toast__description", t) });
1000
+ function ot({ className: t, ...e }) {
1001
+ return /* @__PURE__ */ n(W.Description, { ...e, className: l("facto-toast__description", t) });
621
1002
  }
622
- function Zt({ className: t, ...e }) {
623
- return /* @__PURE__ */ a(p.Action, { ...e, className: i("facto-button", "facto-button--secondary", "facto-button--sm", t) });
1003
+ function Ct({ className: t, ...e }) {
1004
+ return /* @__PURE__ */ n(W.Action, { ...e, className: l("facto-button", "facto-button--secondary", "facto-button--sm", t) });
624
1005
  }
625
- function Jt({ className: t, children: e = /* @__PURE__ */ a(w, { name: "close" }), "aria-label": o = "Dismiss notification", ...n }) {
626
- return /* @__PURE__ */ a(p.Close, { ...n, "aria-label": o, className: i("facto-toast__close", t), children: e });
1006
+ function It({ className: t, children: e = /* @__PURE__ */ n(z, { name: "close" }), "aria-label": a = "Dismiss notification", ...o }) {
1007
+ return /* @__PURE__ */ n(W.Close, { ...o, "aria-label": a, className: l("facto-toast__close", t), children: e });
627
1008
  }
628
- function Qt({ className: t, style: e, ...o }) {
629
- const n = _(N), [c, s] = O(!1);
630
- return L(() => s(!0), []), c ? K(/* @__PURE__ */ a(p.Viewport, { ...o, className: i("facto-toast-viewport", t), style: { ...n, ...e } }), document.body) : null;
1009
+ function Mt({ className: t, style: e, ...a }) {
1010
+ const o = S(B), [i, c] = H(!1);
1011
+ return L(() => c(!0), []), i ? st(/* @__PURE__ */ n(W.Viewport, { ...a, className: l("facto-toast-viewport", t), style: { ...o, ...e } }), document.body) : null;
631
1012
  }
632
- function Ut({ value: t, defaultValue: e = "", onValueChange: o, clearLabel: n = "Clear search", label: c = "Search", helperText: s, error: r, id: f, containerClassName: l, className: m, disabled: k, readOnly: $, ...B }) {
633
- const W = I(), S = f ?? W, y = r || s ? `${S}-description` : void 0, [x, T] = O(e), b = t ?? x, D = V(null);
1013
+ function Pe({ value: t, defaultValue: e = "", onValueChange: a, clearLabel: o = "Clear search", label: i = "Search", helperText: c, error: r, id: m, containerClassName: d, className: g, disabled: p, readOnly: v, ...w }) {
1014
+ const k = j(), y = m ?? k, T = r || c ? `${y}-description` : void 0, [x, s] = H(e), u = t ?? x, b = F(null);
634
1015
  L(() => {
635
- const v = D.current?.form;
636
- if (!v || t !== void 0) return;
637
- const j = (G) => {
1016
+ const _ = b.current?.form;
1017
+ if (!_ || t !== void 0) return;
1018
+ const C = (N) => {
638
1019
  queueMicrotask(() => {
639
- G.defaultPrevented || (T(e), o?.(e));
1020
+ N.defaultPrevented || (s(e), a?.(e));
640
1021
  });
641
1022
  };
642
- return v.addEventListener("reset", j), () => v.removeEventListener("reset", j);
643
- }, [e, t, o]);
644
- const h = (v) => {
645
- t === void 0 && T(v), o?.(v);
1023
+ return _.addEventListener("reset", C), () => _.removeEventListener("reset", C);
1024
+ }, [e, t, a]);
1025
+ const h = (_) => {
1026
+ t === void 0 && s(_), a?.(_);
646
1027
  };
647
- return /* @__PURE__ */ d("div", { className: i("facto-field", l), children: [
648
- c && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: S, children: c }),
649
- /* @__PURE__ */ d("div", { className: "facto-search", children: [
650
- /* @__PURE__ */ d("svg", { className: "facto-search__icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": "true", children: [
651
- /* @__PURE__ */ a("circle", { cx: "10.5", cy: "10.5", r: "6.5" }),
652
- /* @__PURE__ */ a("path", { d: "m16 16 5 5" })
1028
+ return /* @__PURE__ */ f("div", { className: l("facto-field", d), children: [
1029
+ i && /* @__PURE__ */ n("label", { className: "facto-field__label", htmlFor: y, children: i }),
1030
+ /* @__PURE__ */ f("div", { className: "facto-search", children: [
1031
+ /* @__PURE__ */ f("svg", { className: "facto-search__icon", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": "true", children: [
1032
+ /* @__PURE__ */ n("circle", { cx: "10.5", cy: "10.5", r: "6.5" }),
1033
+ /* @__PURE__ */ n("path", { d: "m16 16 5 5" })
653
1034
  ] }),
654
- /* @__PURE__ */ a(
1035
+ /* @__PURE__ */ n(
655
1036
  "input",
656
1037
  {
657
- ...B,
658
- ref: D,
659
- id: S,
1038
+ ...w,
1039
+ ref: b,
1040
+ id: y,
660
1041
  type: "search",
661
- disabled: k,
662
- readOnly: $,
663
- value: b,
664
- onChange: (v) => h(v.target.value),
665
- "aria-invalid": !!r || B["aria-invalid"],
666
- "aria-describedby": C(B["aria-describedby"], y),
667
- className: i("facto-input", "facto-search__input", !!r && "facto-input--error", m)
1042
+ disabled: p,
1043
+ readOnly: v,
1044
+ value: u,
1045
+ onChange: (_) => h(_.target.value),
1046
+ "aria-invalid": !!r || w["aria-invalid"],
1047
+ "aria-describedby": V(w["aria-describedby"], T),
1048
+ className: l("facto-input", "facto-search__input", !!r && "facto-input--error", g)
668
1049
  }
669
1050
  ),
670
- b && !$ && /* @__PURE__ */ a(
1051
+ u && !v && /* @__PURE__ */ n(
671
1052
  "button",
672
1053
  {
673
1054
  type: "button",
674
1055
  className: "facto-search__clear",
675
- disabled: k,
676
- "aria-label": n,
1056
+ disabled: p,
1057
+ "aria-label": o,
677
1058
  onClick: () => {
678
- h(""), D.current?.focus();
1059
+ h(""), b.current?.focus();
679
1060
  },
680
- children: /* @__PURE__ */ a(w, { name: "close", size: 16 })
1061
+ children: /* @__PURE__ */ n(z, { name: "close", size: 16 })
681
1062
  }
682
1063
  )
683
1064
  ] }),
684
- (r || s) && /* @__PURE__ */ a("span", { id: y, className: i("facto-field__message", !!r && "facto-field__message--error"), children: r ?? s })
1065
+ (r || c) && /* @__PURE__ */ n("span", { id: T, className: l("facto-field__message", !!r && "facto-field__message--error"), children: r ?? c })
685
1066
  ] });
686
1067
  }
687
- function Xt({ className: t, ...e }) {
688
- return /* @__PURE__ */ a(U, { ...e, type: "search", className: i("facto-search-field", t) });
1068
+ function $e({ className: t, ...e }) {
1069
+ return /* @__PURE__ */ n(Nt, { ...e, type: "search", className: l("facto-search-field", t) });
1070
+ }
1071
+ const De = K.Root, Be = K.Trigger, Se = K.Close;
1072
+ function xe({ className: t, style: e, sideOffset: a = 8, collisionPadding: o = 16, ...i }) {
1073
+ const c = S(B);
1074
+ return /* @__PURE__ */ n(K.Portal, { children: /* @__PURE__ */ n(K.Content, { ...i, sideOffset: a, collisionPadding: o, className: l("facto-theme", "facto-popover", t), style: { ...c, ...e } }) });
1075
+ }
1076
+ function Le({ modal: t = !1, ...e }) {
1077
+ return /* @__PURE__ */ n(O.Root, { ...e, modal: t });
1078
+ }
1079
+ const Re = O.Trigger;
1080
+ function Fe({ className: t, style: e, sideOffset: a = 8, collisionPadding: o = 16, ...i }) {
1081
+ const c = S(B);
1082
+ return /* @__PURE__ */ n(O.Portal, { children: /* @__PURE__ */ n(O.Content, { ...i, sideOffset: a, collisionPadding: o, className: l("facto-theme", "facto-menu", t), style: { ...c, ...e } }) });
1083
+ }
1084
+ function je({ className: t, ...e }) {
1085
+ return /* @__PURE__ */ n(O.Item, { ...e, className: l("facto-menu-item", t) });
1086
+ }
1087
+ function Ee({ className: t, ...e }) {
1088
+ return /* @__PURE__ */ n(O.Separator, { ...e, className: l("facto-menu-separator", t) });
1089
+ }
1090
+ function We({ selected: t = !1, className: e, type: a = "button", ...o }) {
1091
+ return /* @__PURE__ */ n("button", { ...o, type: a, "aria-pressed": t, className: l("facto-filter-chip", e) });
1092
+ }
1093
+ function Ae({ rows: t = 3, label: e = "Loading", className: a, ...o }) {
1094
+ const i = Number.isFinite(t) ? Math.min(20, Math.max(1, Math.floor(t))) : 3;
1095
+ return /* @__PURE__ */ n("div", { ...o, className: l("facto-list-skeleton", a), role: "status", "aria-label": e, children: Array.from({ length: i }, (c, r) => /* @__PURE__ */ f("div", { "aria-hidden": "true", className: "facto-list-skeleton__row", children: [
1096
+ /* @__PURE__ */ n(at, { style: { width: 32, height: 32 } }),
1097
+ /* @__PURE__ */ n(at, { style: { width: "60%", height: 16 } })
1098
+ ] }, r)) });
689
1099
  }
690
1100
  export {
691
- Nt as Badge,
692
- it as Button,
693
- rt as Card,
694
- kt as Checkbox,
695
- dt as DashboardGrid,
696
- Ct as Dialog,
697
- St as DialogClose,
698
- Dt as DialogContent,
699
- Y as DialogDescription,
700
- X as DialogTitle,
701
- Bt as DialogTrigger,
702
- Lt as EmptyState,
703
- Ut as EnhancedSearchField,
704
- ot as FactoTheme,
705
- w as Icon,
706
- st as IconButton,
707
- ct as ModalFooter,
708
- nt as ModalHeader,
709
- jt as Notice,
710
- Xt as SearchField,
711
- pt as Select,
712
- Pt as Sheet,
713
- xt as SheetClose,
714
- Rt as SheetContent,
715
- Mt as SheetDescription,
716
- Ft as SheetTitle,
717
- $t as SheetTrigger,
718
- Wt as Skeleton,
719
- At as Stack,
720
- q as Surface,
721
- _t as Switch,
722
- yt as Tabs,
723
- It as TabsContent,
724
- Tt as TabsList,
725
- wt as TabsTrigger,
726
- U as TextField,
727
- vt as Textarea,
728
- qt as Toast,
729
- Zt as ToastAction,
730
- Jt as ToastClose,
731
- Kt as ToastDescription,
732
- Vt as ToastProvider,
733
- Gt as ToastTitle,
734
- Qt as ToastViewport,
735
- Ht as Tooltip,
736
- Ot as TooltipContent,
737
- Et as TooltipProvider,
738
- zt as TooltipTrigger,
739
- lt as Widget,
740
- gt as WidgetAction,
741
- ht as WidgetAmount,
742
- ft as WidgetHeader,
743
- mt as WidgetKeyValue,
744
- ut as WidgetList,
745
- bt as WidgetRow
1101
+ ht as Avatar,
1102
+ ae as Badge,
1103
+ qt as Button,
1104
+ Kt as Card,
1105
+ ce as Checkbox,
1106
+ Zt as DashboardGrid,
1107
+ ue as Dialog,
1108
+ me as DialogClose,
1109
+ he as DialogContent,
1110
+ wt as DialogDescription,
1111
+ bt as DialogTitle,
1112
+ fe as DialogTrigger,
1113
+ Le as DropdownMenu,
1114
+ Fe as DropdownMenuContent,
1115
+ je as DropdownMenuItem,
1116
+ Ee as DropdownMenuSeparator,
1117
+ Re as DropdownMenuTrigger,
1118
+ we as EmptyState,
1119
+ Pe as EnhancedSearchField,
1120
+ Lt as ErrorState,
1121
+ zt as FactoTheme,
1122
+ jt as Field,
1123
+ We as FilterChip,
1124
+ z as Icon,
1125
+ Gt as IconButton,
1126
+ St as ListGroup,
1127
+ Bt as ListRow,
1128
+ Ae as ListSkeleton,
1129
+ Rt as LoadingMore,
1130
+ xt as LogoStack,
1131
+ Vt as ModalFooter,
1132
+ Ht as ModalHeader,
1133
+ ke as Notice,
1134
+ At as NotificationsProvider,
1135
+ Et as OtpInput,
1136
+ De as Popover,
1137
+ Se as PopoverClose,
1138
+ xe as PopoverContent,
1139
+ Be as PopoverTrigger,
1140
+ Wt as ResendCodeButton,
1141
+ $e as SearchField,
1142
+ oe as Select,
1143
+ pe as Sheet,
1144
+ ve as SheetClose,
1145
+ be as SheetContent,
1146
+ Ne as SheetDescription,
1147
+ _e as SheetTitle,
1148
+ ge as SheetTrigger,
1149
+ at as Skeleton,
1150
+ ye as Stack,
1151
+ Ft as StepChecklist,
1152
+ rt as Surface,
1153
+ ie as Switch,
1154
+ re as Tabs,
1155
+ de as TabsContent,
1156
+ se as TabsList,
1157
+ le as TabsTrigger,
1158
+ Nt as TextField,
1159
+ ne as Textarea,
1160
+ yt as Toast,
1161
+ Ct as ToastAction,
1162
+ It as ToastClose,
1163
+ ot as ToastDescription,
1164
+ kt as ToastProvider,
1165
+ Tt as ToastTitle,
1166
+ Mt as ToastViewport,
1167
+ Ce as Tooltip,
1168
+ Me as TooltipContent,
1169
+ Te as TooltipProvider,
1170
+ Ie as TooltipTrigger,
1171
+ Ut as Widget,
1172
+ te as WidgetAction,
1173
+ Yt as WidgetAmount,
1174
+ Jt as WidgetHeader,
1175
+ Xt as WidgetKeyValue,
1176
+ Qt as WidgetList,
1177
+ ee as WidgetRow,
1178
+ Ot as useToast
746
1179
  };