@facto-to/design-system 0.1.0-beta.5 → 0.1.0-beta.7

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,124 +1,475 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as a, Fragment as H } from "react/jsx-runtime";
3
- import * as x from "@radix-ui/react-tooltip";
4
- import * as y from "@radix-ui/react-toast";
5
- import { createPortal as K } from "react-dom";
6
- import * as z from "@radix-ui/react-checkbox";
7
- import * as m from "@radix-ui/react-dialog";
8
- import * as v from "@radix-ui/react-select";
9
- import * as V from "@radix-ui/react-switch";
10
- import * as M from "@radix-ui/react-tabs";
11
- import { createContext as Z, forwardRef as L, useRef as j, useState as A, useCallback as O, useEffect as W, useId as S, useContext as T } 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
17
  (o) => o instanceof HTMLElement && !o.hasAttribute("data-radix-focus-guard") && !o.contains(t)
16
18
  );
17
19
  for (const o of e) {
18
- const c = F.get(o);
19
- c ? c.count += 1 : (F.set(o, { count: 1, wasInert: o.inert }), o.inert = !0);
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 n = !0;
23
+ let a = !0;
22
24
  return () => {
23
- if (n) {
24
- n = !1;
25
+ if (a) {
26
+ a = !1;
25
27
  for (const o of e) {
26
- const c = F.get(o);
27
- c && (c.count -= 1, c.count === 0 && (c.wasInert || (o.inert = !1), F.delete(o)));
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 s = (...t) => t.filter(Boolean).join(" "), D = (...t) => t.filter(Boolean).join(" ") || void 0, k = Z({}), Q = (t) => Object.fromEntries(
33
- Object.entries(t ?? {}).filter(([e, n]) => e.startsWith("--facto-") && n !== void 0 && n !== 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 nt({ className: t, tokens: e, style: n, ...o }) {
36
- const c = T(k), i = { ...e, ...n }, r = { ...c, ...Q(i) };
37
- return /* @__PURE__ */ a(k.Provider, { value: r, children: /* @__PURE__ */ a("div", { ...o, style: i, className: s("facto-theme", t) }) });
38
- }
39
- function B({ name: t, size: e = 20, ...n }) {
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", ...n, 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
- chevronRight: /* @__PURE__ */ a("path", { d: "m9 6 6 6-6 6" }),
46
- info: /* @__PURE__ */ d(H, { children: [
47
- /* @__PURE__ */ a("circle", { cx: "12", cy: "12", r: "9" }),
48
- /* @__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" })
49
385
  ] }),
50
- warning: /* @__PURE__ */ d(H, { children: [
51
- /* @__PURE__ */ a("path", { d: "m12 3 10 18H2L12 3Z" }),
52
- /* @__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" })
53
398
  ] })
54
399
  }[t] });
55
400
  }
56
- function ot({ className: t, ...e }) {
57
- return /* @__PURE__ */ a("div", { ...e, className: s("facto-modal-header", t) });
401
+ function Ht({ className: t, ...e }) {
402
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-modal-header", t) });
58
403
  }
59
- function ct({ className: t, ...e }) {
60
- return /* @__PURE__ */ a("div", { ...e, className: s("facto-modal-footer", t) });
404
+ function Vt({ className: t, ...e }) {
405
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-modal-footer", t) });
61
406
  }
62
- const it = L(
407
+ const qt = Z(
63
408
  function({
64
409
  variant: e = "primary",
65
- size: n = "md",
410
+ size: a = "md",
66
411
  fullWidth: o,
67
- loading: c,
68
- className: i,
69
- children: r,
70
- disabled: f,
71
- type: l = "button",
72
- ...h
73
- }, u) {
74
- return /* @__PURE__ */ d(
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(
75
422
  "button",
76
423
  {
77
- ...h,
78
- ref: u,
79
- type: l,
80
- disabled: f || c,
81
- "aria-busy": c || void 0,
82
- className: s(
424
+ ...v,
425
+ ref: w,
426
+ type: p,
427
+ disabled: g || i,
428
+ "aria-busy": i || void 0,
429
+ className: l(
83
430
  "facto-button",
84
431
  `facto-button--${e}`,
85
- `facto-button--${n}`,
432
+ `facto-button--${a}`,
86
433
  o && "facto-button--full",
87
- i
434
+ m
88
435
  ),
89
436
  children: [
90
- c && /* @__PURE__ */ a("span", { className: "facto-button__spinner", "aria-hidden": "true" }),
91
- 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" })
92
443
  ]
93
444
  }
94
445
  );
95
446
  }
96
- ), st = L(
97
- function({ ariaLabel: e, size: n = "md", className: o, title: c, type: i = "button", children: r, ...f }, l) {
98
- 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(
99
450
  "button",
100
451
  {
101
- ...f,
102
- ref: l,
103
- type: i,
452
+ ...m,
453
+ ref: d,
454
+ type: c,
104
455
  "aria-label": e,
105
- title: c ?? e,
106
- className: s(
456
+ title: i ?? e,
457
+ className: l(
107
458
  "facto-icon-button",
108
- `facto-icon-button--${n}`,
459
+ `facto-icon-button--${a}`,
109
460
  o
110
461
  ),
111
- children: /* @__PURE__ */ a("span", { className: "facto-icon-button__visual", children: r })
462
+ children: /* @__PURE__ */ n("span", { className: "facto-icon-button__visual", children: r })
112
463
  }
113
464
  );
114
465
  }
115
466
  );
116
- function q({ padding: t = "lg", className: e, ...n }) {
117
- return /* @__PURE__ */ a(
467
+ function rt({ padding: t = "lg", className: e, ...a }) {
468
+ return /* @__PURE__ */ n(
118
469
  "div",
119
470
  {
120
- ...n,
121
- className: s(
471
+ ...a,
472
+ className: l(
122
473
  "facto-surface",
123
474
  `facto-surface--padding-${t}`,
124
475
  e
@@ -126,16 +477,16 @@ function q({ padding: t = "lg", className: e, ...n }) {
126
477
  }
127
478
  );
128
479
  }
129
- function rt(t) {
130
- return /* @__PURE__ */ a(q, { ...t });
480
+ function Kt(t) {
481
+ return /* @__PURE__ */ n(rt, { ...t });
131
482
  }
132
- function lt({ span: t = 1, className: e, ...n }) {
133
- return /* @__PURE__ */ a(
134
- q,
483
+ function Ut({ span: t = 1, className: e, ...a }) {
484
+ return /* @__PURE__ */ n(
485
+ rt,
135
486
  {
136
- ...n,
487
+ ...a,
137
488
  padding: "md",
138
- className: s(
489
+ className: l(
139
490
  "facto-widget",
140
491
  t === 2 && "facto-widget--span-2",
141
492
  e
@@ -143,629 +494,686 @@ function lt({ span: t = 1, className: e, ...n }) {
143
494
  }
144
495
  );
145
496
  }
146
- function dt({ className: t, children: e, ...n }) {
147
- return /* @__PURE__ */ a("div", { ...n, className: s("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 }) });
148
499
  }
149
- function ft({ withAction: t, className: e, ...n }) {
150
- return /* @__PURE__ */ a(
500
+ function Jt({ withAction: t, className: e, ...a }) {
501
+ return /* @__PURE__ */ n(
151
502
  "div",
152
503
  {
153
- ...n,
154
- className: s("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)
155
506
  }
156
507
  );
157
508
  }
158
- function ut({ className: t, ...e }) {
159
- return /* @__PURE__ */ a("div", { ...e, className: s("facto-widget-list", t) });
509
+ function Qt({ className: t, ...e }) {
510
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-list", t) });
160
511
  }
161
- function mt({ className: t, ...e }) {
162
- return /* @__PURE__ */ a("div", { ...e, className: s("facto-widget-kv", t) });
512
+ function Xt({ className: t, ...e }) {
513
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-kv", t) });
163
514
  }
164
- function ht({ className: t, ...e }) {
165
- return /* @__PURE__ */ a("div", { ...e, className: s("facto-widget-amount", t) });
515
+ function Yt({ className: t, ...e }) {
516
+ return /* @__PURE__ */ n("div", { ...e, className: l("facto-widget-amount", t) });
166
517
  }
167
- function gt(t) {
168
- const e = s("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);
169
520
  if (typeof t.href == "string") {
170
- const { dark: r, className: f, ...l } = t;
171
- return /* @__PURE__ */ a("a", { ...l, className: e });
521
+ const { dark: r, className: m, ...d } = t;
522
+ return /* @__PURE__ */ n("a", { ...d, className: e });
172
523
  }
173
- const { dark: n, className: o, type: c = "button", ...i } = t;
174
- return /* @__PURE__ */ a("button", { ...i, 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 });
175
526
  }
176
- function bt({
527
+ function ee({
177
528
  className: t,
178
529
  type: e = "button",
179
- ...n
530
+ ...a
180
531
  }) {
181
- return /* @__PURE__ */ a(
532
+ return /* @__PURE__ */ n(
182
533
  "button",
183
534
  {
184
- ...n,
535
+ ...a,
185
536
  type: e,
186
- className: s("facto-widget-row", t)
537
+ className: l("facto-widget-row", t)
187
538
  }
188
539
  );
189
540
  }
190
- function U({
541
+ function Nt({
191
542
  label: t,
192
543
  helperText: e,
193
- error: n,
544
+ error: a,
194
545
  id: o,
195
- containerClassName: c,
196
- className: i,
546
+ containerClassName: i,
547
+ className: c,
197
548
  ...r
198
549
  }) {
199
- const f = S(), l = o ?? f, h = n || e ? `${l}-description` : void 0;
200
- return /* @__PURE__ */ d("div", { className: s("facto-field", c), children: [
201
- t && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: l, children: t }),
202
- /* @__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(
203
554
  "input",
204
555
  {
205
556
  ...r,
206
- id: l,
207
- "aria-invalid": !!n || r["aria-invalid"],
208
- "aria-describedby": D(r["aria-describedby"], h),
209
- className: s(
557
+ id: d,
558
+ "aria-invalid": !!a || r["aria-invalid"],
559
+ "aria-describedby": V(r["aria-describedby"], g),
560
+ className: l(
210
561
  "facto-input",
211
- !!n && "facto-input--error",
212
- i
562
+ !!a && "facto-input--error",
563
+ c
213
564
  )
214
565
  }
215
566
  ),
216
- (n || e) && /* @__PURE__ */ a(
567
+ (a || e) && /* @__PURE__ */ n(
217
568
  "span",
218
569
  {
219
- id: h,
220
- className: s(
570
+ id: g,
571
+ className: l(
221
572
  "facto-field__message",
222
- !!n && "facto-field__message--error"
573
+ !!a && "facto-field__message--error"
223
574
  ),
224
- children: n ?? e
575
+ children: a ?? e
225
576
  }
226
577
  )
227
578
  ] });
228
579
  }
229
- function vt({
580
+ function ne({
230
581
  label: t,
231
582
  helperText: e,
232
- error: n,
583
+ error: a,
233
584
  id: o,
234
- containerClassName: c,
235
- className: i,
585
+ containerClassName: i,
586
+ className: c,
236
587
  ...r
237
588
  }) {
238
- const f = S(), l = o ?? f, h = n || e ? `${l}-description` : void 0;
239
- return /* @__PURE__ */ d("div", { className: s("facto-field", c), children: [
240
- t && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: l, children: t }),
241
- /* @__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(
242
593
  "textarea",
243
594
  {
244
595
  ...r,
245
- id: l,
246
- "aria-invalid": !!n || r["aria-invalid"],
247
- "aria-describedby": D(r["aria-describedby"], h),
248
- className: s(
596
+ id: d,
597
+ "aria-invalid": !!a || r["aria-invalid"],
598
+ "aria-describedby": V(r["aria-describedby"], g),
599
+ className: l(
249
600
  "facto-textarea",
250
- !!n && "facto-input--error",
251
- i
601
+ !!a && "facto-input--error",
602
+ c
252
603
  )
253
604
  }
254
605
  ),
255
- (n || e) && /* @__PURE__ */ a(
606
+ (a || e) && /* @__PURE__ */ n(
256
607
  "span",
257
608
  {
258
- id: h,
259
- className: s(
609
+ id: g,
610
+ className: l(
260
611
  "facto-field__message",
261
- !!n && "facto-field__message--error"
612
+ !!a && "facto-field__message--error"
262
613
  ),
263
- children: n ?? e
614
+ children: a ?? e
264
615
  }
265
616
  )
266
617
  ] });
267
618
  }
268
- function Nt({ tone: t = "neutral", className: e, ...n }) {
269
- return /* @__PURE__ */ a(
619
+ function ae({ tone: t = "neutral", className: e, ...a }) {
620
+ return /* @__PURE__ */ n(
270
621
  "span",
271
622
  {
272
- ...n,
273
- className: s("facto-badge", `facto-badge--${t}`, e)
623
+ ...a,
624
+ className: l("facto-badge", `facto-badge--${t}`, e)
274
625
  }
275
626
  );
276
627
  }
277
- function pt({
628
+ function oe({
278
629
  options: t,
279
630
  value: e,
280
- defaultValue: n,
631
+ defaultValue: a,
281
632
  onValueChange: o,
282
- placeholder: c = "Select an option",
283
- label: i,
633
+ placeholder: i = "Select an option",
634
+ label: c,
284
635
  error: r,
285
- disabled: f,
286
- name: l,
287
- id: h,
288
- ariaLabel: u,
289
- "aria-describedby": g,
290
- className: N
636
+ disabled: m,
637
+ name: d,
638
+ id: g,
639
+ ariaLabel: p,
640
+ "aria-describedby": v,
641
+ className: w
291
642
  }) {
292
- const w = T(k), P = S(), I = h ?? P, R = r ? `${I}-description` : void 0, C = j(null), p = O(() => {
293
- C.current?.(), C.current = null;
294
- }, []), $ = O(
295
- (b) => {
296
- p(), b && (C.current = J(b));
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(
646
+ (h) => {
647
+ u(), h && (s.current = mt(h));
297
648
  },
298
- [p]
649
+ [u]
299
650
  );
300
- return W(() => p, [p]), /* @__PURE__ */ d("div", { className: s("facto-field", N), children: [
301
- i && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: I, children: i }),
302
- /* @__PURE__ */ d(
303
- v.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,
304
655
  {
305
656
  value: e,
306
- defaultValue: n,
657
+ defaultValue: a,
307
658
  onValueChange: o,
308
- disabled: f,
309
- name: l,
659
+ disabled: m,
660
+ name: d,
310
661
  children: [
311
- /* @__PURE__ */ d(
312
- v.Trigger,
662
+ /* @__PURE__ */ f(
663
+ D.Trigger,
313
664
  {
314
- id: I,
315
- className: s("facto-select", !!r && "facto-input--error"),
316
- "aria-label": u,
317
- "aria-describedby": D(g, R),
665
+ id: T,
666
+ className: l("facto-select", !!r && "facto-input--error"),
667
+ "aria-label": p,
668
+ "aria-describedby": V(v, x),
318
669
  "aria-invalid": !!r,
319
670
  children: [
320
- /* @__PURE__ */ a(v.Value, { placeholder: c }),
321
- /* @__PURE__ */ a(v.Icon, { className: "facto-select__chevron", children: /* @__PURE__ */ a(B, { 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 }) })
322
673
  ]
323
674
  }
324
675
  ),
325
- /* @__PURE__ */ a(v.Portal, { children: /* @__PURE__ */ a(
326
- v.Content,
676
+ /* @__PURE__ */ n(D.Portal, { children: /* @__PURE__ */ n(
677
+ D.Content,
327
678
  {
328
- ref: $,
679
+ ref: b,
329
680
  className: "facto-theme facto-select-content",
330
- style: w,
681
+ style: k,
331
682
  position: "popper",
332
683
  side: "bottom",
333
684
  align: "start",
334
685
  sideOffset: 8,
335
686
  collisionPadding: 16,
336
- onCloseAutoFocus: p,
337
- children: /* @__PURE__ */ a(v.Viewport, { children: t.map((b) => /* @__PURE__ */ d(
338
- v.Item,
687
+ onCloseAutoFocus: u,
688
+ children: /* @__PURE__ */ n(D.Viewport, { children: t.map((h) => /* @__PURE__ */ f(
689
+ D.Item,
339
690
  {
340
- value: b.value,
341
- disabled: b.disabled,
691
+ value: h.value,
692
+ disabled: h.disabled,
342
693
  className: "facto-select-item",
343
694
  children: [
344
- /* @__PURE__ */ a(v.ItemText, { children: b.label }),
345
- /* @__PURE__ */ a(v.ItemIndicator, { children: /* @__PURE__ */ a(B, { 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 }) })
346
697
  ]
347
698
  },
348
- b.value
699
+ h.value
349
700
  )) })
350
701
  }
351
702
  ) })
352
703
  ]
353
704
  }
354
705
  ),
355
- r && /* @__PURE__ */ a(
706
+ r && /* @__PURE__ */ n(
356
707
  "span",
357
708
  {
358
- id: R,
709
+ id: x,
359
710
  className: "facto-field__message facto-field__message--error",
360
711
  children: r
361
712
  }
362
713
  )
363
714
  ] });
364
715
  }
365
- function _t({
716
+ function ie({
366
717
  label: t,
367
718
  description: e,
368
- className: n,
719
+ className: a,
369
720
  id: o,
370
- ...c
721
+ ...i
371
722
  }) {
372
- const i = S(), r = o ?? i, f = e ? `${r}-description` : void 0, l = /* @__PURE__ */ a(
373
- V.Root,
723
+ const c = j(), r = o ?? c, m = e ? `${r}-description` : void 0, d = /* @__PURE__ */ n(
724
+ et.Root,
374
725
  {
375
- ...c,
726
+ ...i,
376
727
  id: r,
377
- "aria-describedby": D(c["aria-describedby"], f),
378
- className: s("facto-switch", n),
379
- children: /* @__PURE__ */ a("span", { className: "facto-switch__track", "aria-hidden": "true", children: /* @__PURE__ */ a(V.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" }) })
380
731
  }
381
732
  );
382
- return t ? /* @__PURE__ */ d("div", { className: "facto-check-field", children: [
383
- l,
384
- /* @__PURE__ */ d("span", { children: [
385
- /* @__PURE__ */ a("label", { htmlFor: r, children: /* @__PURE__ */ a("strong", { children: t }) }),
386
- 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 })
387
738
  ] })
388
- ] }) : l;
739
+ ] }) : d;
389
740
  }
390
- function kt({
741
+ function ce({
391
742
  label: t,
392
743
  description: e,
393
- className: n,
744
+ className: a,
394
745
  id: o,
395
- ...c
746
+ ...i
396
747
  }) {
397
- const i = S(), r = o ?? i, f = e ? `${r}-description` : void 0, l = /* @__PURE__ */ a(
398
- z.Root,
748
+ const c = j(), r = o ?? c, m = e ? `${r}-description` : void 0, d = /* @__PURE__ */ n(
749
+ tt.Root,
399
750
  {
400
- ...c,
751
+ ...i,
401
752
  id: r,
402
- "aria-describedby": D(c["aria-describedby"], f),
403
- className: s("facto-checkbox", n),
404
- children: /* @__PURE__ */ a("span", { className: "facto-checkbox__visual", "aria-hidden": "true", children: /* @__PURE__ */ a(z.Indicator, { className: "facto-checkbox__indicator", children: /* @__PURE__ */ a(B, { 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 }) }) })
405
756
  }
406
757
  );
407
- return t ? /* @__PURE__ */ d("div", { className: "facto-check-field", children: [
408
- l,
409
- /* @__PURE__ */ d("span", { children: [
410
- /* @__PURE__ */ a("label", { htmlFor: r, children: /* @__PURE__ */ a("strong", { children: t }) }),
411
- 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 })
412
763
  ] })
413
- ] }) : l;
764
+ ] }) : d;
414
765
  }
415
- const yt = M.Root;
416
- function Tt({
766
+ const re = X.Root;
767
+ function se({
417
768
  className: t,
418
769
  ...e
419
770
  }) {
420
- return /* @__PURE__ */ a(
421
- M.List,
771
+ return /* @__PURE__ */ n(
772
+ X.List,
422
773
  {
423
774
  ...e,
424
- className: s("facto-tabs-list", t)
775
+ className: l("facto-tabs-list", t)
425
776
  }
426
777
  );
427
778
  }
428
- function wt({
779
+ function le({
429
780
  className: t,
430
781
  ...e
431
782
  }) {
432
- return /* @__PURE__ */ a(
433
- M.Trigger,
783
+ return /* @__PURE__ */ n(
784
+ X.Trigger,
434
785
  {
435
786
  ...e,
436
- className: s("facto-tabs-trigger", t)
787
+ className: l("facto-tabs-trigger", t)
437
788
  }
438
789
  );
439
790
  }
440
- function It({
791
+ function de({
441
792
  className: t,
442
793
  ...e
443
794
  }) {
444
- return /* @__PURE__ */ a(
445
- M.Content,
795
+ return /* @__PURE__ */ n(
796
+ X.Content,
446
797
  {
447
798
  ...e,
448
- className: s("facto-tabs-content", t)
799
+ className: l("facto-tabs-content", t)
449
800
  }
450
801
  );
451
802
  }
452
- const Ct = m.Root, Bt = m.Trigger, St = m.Close, X = L(
453
- function({ className: e, children: n, tabIndex: o, ...c }, i) {
454
- const r = j(null), [f, l] = A(!1), h = O((u) => {
455
- if (r.current = u, typeof i == "function") {
456
- const g = i(u);
457
- if (typeof g == "function")
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")
458
809
  return () => {
459
- r.current === u && (r.current = null), g();
810
+ r.current === p && (r.current = null), v();
460
811
  };
461
- } else i && (i.current = u);
462
- }, [i]);
463
- return W(() => {
464
- const u = r.current;
465
- if (!u) return;
466
- const g = () => l(u.scrollHeight > u.clientHeight + 1);
467
- g();
468
- const N = new ResizeObserver(g), w = new MutationObserver(g);
469
- return N.observe(u), w.observe(u, { childList: !0, characterData: !0, subtree: !0 }), () => {
470
- N.disconnect(), w.disconnect();
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();
471
822
  };
472
- }, [n]), /* @__PURE__ */ a(m.Title, { ...c, ref: h, tabIndex: f ? o ?? 0 : o, className: s("facto-modal-title", e), children: n });
823
+ }, [a]), /* @__PURE__ */ n(M.Title, { ...i, ref: g, tabIndex: m ? o ?? 0 : o, className: l("facto-modal-title", e), children: a });
473
824
  }
474
- ), Y = L(function({ className: e, ...n }, o) {
475
- return /* @__PURE__ */ a(m.Description, { ...n, ref: o, className: s("facto-modal-description", e) });
825
+ ), wt = Z(function({ className: e, ...a }, o) {
826
+ return /* @__PURE__ */ n(M.Description, { ...a, ref: o, className: l("facto-modal-description", e) });
476
827
  });
477
- function Dt({
828
+ function he({
478
829
  size: t = "sm",
479
- className: e,
480
- style: n,
481
- children: o,
830
+ motionVariant: e = "auto",
831
+ className: a,
832
+ style: o,
833
+ children: i,
482
834
  ...c
483
835
  }) {
484
- const i = T(k);
485
- return /* @__PURE__ */ d(m.Portal, { children: [
486
- /* @__PURE__ */ a(m.Overlay, { className: "facto-dialog-overlay", style: i }),
487
- /* @__PURE__ */ a(
488
- m.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,
489
841
  {
490
842
  ...c,
491
- style: { ...i, ...n },
492
- className: s(
843
+ "data-motion": e,
844
+ style: { ...r, ...o },
845
+ className: l(
493
846
  "facto-theme",
494
847
  "facto-dialog",
495
848
  `facto-dialog--${t}`,
496
- e
849
+ a
497
850
  ),
498
- children: o
851
+ children: i
499
852
  }
500
853
  )
501
854
  ] });
502
855
  }
503
- const Pt = m.Root, $t = m.Trigger, xt = m.Close, Rt = X, Ft = Y;
504
- function Mt({
856
+ const pe = M.Root, ge = M.Trigger, ve = M.Close, _e = bt, Ne = wt;
857
+ function be({
505
858
  side: t = "center",
506
- className: e,
507
- style: n,
508
- children: o,
859
+ motionVariant: e = "auto",
860
+ className: a,
861
+ style: o,
862
+ children: i,
509
863
  ...c
510
864
  }) {
511
- const i = T(k);
512
- return /* @__PURE__ */ d(m.Portal, { children: [
513
- /* @__PURE__ */ a(m.Overlay, { className: "facto-dialog-overlay", style: i }),
514
- /* @__PURE__ */ a(
515
- m.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,
516
870
  {
517
871
  ...c,
518
- style: { ...i, ...n },
519
- className: s(
872
+ "data-motion": e,
873
+ style: { ...r, ...o },
874
+ className: l(
520
875
  "facto-theme",
521
876
  "facto-sheet",
522
877
  `facto-sheet--${t}`,
523
- e
878
+ a
524
879
  ),
525
- children: o
880
+ children: i
526
881
  }
527
882
  )
528
883
  ] });
529
884
  }
530
- function Lt({
885
+ function at({
531
886
  width: t,
532
887
  height: e,
533
- circle: n,
888
+ circle: a,
534
889
  className: o,
535
- style: c,
536
- ...i
890
+ style: i,
891
+ ...c
537
892
  }) {
538
- return /* @__PURE__ */ a(
893
+ return /* @__PURE__ */ n(
539
894
  "span",
540
895
  {
541
- ...i,
896
+ ...c,
542
897
  "aria-hidden": "true",
543
- className: s(
898
+ className: l(
544
899
  "facto-skeleton",
545
- n && "facto-skeleton--circle",
900
+ a && "facto-skeleton--circle",
546
901
  o
547
902
  ),
548
- style: { ...c, width: t, height: e }
903
+ style: { ...i, width: t, height: e }
549
904
  }
550
905
  );
551
906
  }
552
- function Wt({
907
+ function we({
553
908
  title: t,
554
909
  description: e,
555
- action: n,
910
+ action: a,
556
911
  icon: o,
557
- className: c,
558
- ...i
912
+ className: i,
913
+ ...c
559
914
  }) {
560
- return /* @__PURE__ */ d("div", { ...i, className: s("facto-empty-state", c), children: [
561
- o && /* @__PURE__ */ a("div", { className: "facto-empty-state__icon", "aria-hidden": "true", children: o }),
562
- /* @__PURE__ */ a("strong", { children: t }),
563
- e && /* @__PURE__ */ a("p", { children: e }),
564
- n && /* @__PURE__ */ a("div", { children: n })
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 })
565
920
  ] });
566
921
  }
567
- function Ot({
922
+ function ke({
568
923
  tone: t = "info",
569
924
  title: e,
570
- description: n,
925
+ description: a,
571
926
  action: o,
572
- className: c,
573
- ...i
927
+ className: i,
928
+ ...c
574
929
  }) {
575
- return /* @__PURE__ */ d(
930
+ return /* @__PURE__ */ f(
576
931
  "div",
577
932
  {
578
- ...i,
933
+ ...c,
579
934
  role: t === "danger" ? "alert" : "status",
580
- className: s("facto-notice", `facto-notice--${t}`, c),
935
+ className: l("facto-notice", `facto-notice--${t}`, i),
581
936
  children: [
582
- /* @__PURE__ */ d("div", { children: [
583
- /* @__PURE__ */ a("strong", { children: e }),
584
- n && /* @__PURE__ */ a("span", { children: n })
937
+ /* @__PURE__ */ f("div", { children: [
938
+ /* @__PURE__ */ n("strong", { children: e }),
939
+ a && /* @__PURE__ */ n("span", { children: a })
585
940
  ] }),
586
941
  o
587
942
  ]
588
943
  }
589
944
  );
590
945
  }
591
- function jt({
946
+ function ye({
592
947
  gap: t = 3,
593
948
  direction: e = "vertical",
594
- align: n = "stretch",
949
+ align: a = "stretch",
595
950
  justify: o = "start",
596
- className: c,
597
- ...i
951
+ className: i,
952
+ ...c
598
953
  }) {
599
- return /* @__PURE__ */ a(
954
+ return /* @__PURE__ */ n(
600
955
  "div",
601
956
  {
602
- ...i,
603
- className: s(
957
+ ...c,
958
+ className: l(
604
959
  "facto-stack",
605
960
  `facto-stack--${e}`,
606
961
  `facto-stack--gap-${t}`,
607
- `facto-stack--align-${n}`,
962
+ `facto-stack--align-${a}`,
608
963
  `facto-stack--justify-${o}`,
609
- c
964
+ i
610
965
  )
611
966
  }
612
967
  );
613
968
  }
614
- function At({ delayDuration: t = 300, ...e }) {
615
- return /* @__PURE__ */ a(x.Provider, { ...e, delayDuration: t });
969
+ function Te({ delayDuration: t = 300, ...e }) {
970
+ return /* @__PURE__ */ n(U.Provider, { ...e, delayDuration: t });
616
971
  }
617
- const Et = x.Root, Ht = x.Trigger;
618
- function zt({ variant: t = "default", className: e, style: n, sideOffset: o = 6, children: c, ...i }) {
619
- const r = T(k);
620
- return /* @__PURE__ */ a(x.Portal, { children: /* @__PURE__ */ a(
621
- x.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,
622
977
  {
623
- ...i,
978
+ ...r,
624
979
  sideOffset: o,
625
- className: s("facto-theme", "facto-tooltip", t === "content" && "facto-tooltip--content", e),
626
- style: { ...r, ...n },
980
+ collisionPadding: i,
981
+ className: l("facto-theme", "facto-tooltip", t === "content" && "facto-tooltip--content", e),
982
+ style: { ...m, ...a },
627
983
  children: c
628
984
  }
629
985
  ) });
630
986
  }
631
- function Vt({ duration: t = 2600, ...e }) {
632
- return /* @__PURE__ */ a(y.Provider, { ...e, duration: t });
987
+ function kt({ duration: t = 2600, ...e }) {
988
+ return /* @__PURE__ */ n(W.Provider, { ...e, duration: t });
633
989
  }
634
- function qt({ tone: t = "success", className: e, style: n, children: o, ...c }) {
635
- const i = T(k);
636
- return /* @__PURE__ */ d(y.Root, { ...c, className: s("facto-theme", "facto-toast", `facto-toast--${t}`, e), style: { ...i, ...n }, children: [
637
- /* @__PURE__ */ a("span", { className: "facto-toast__icon", "aria-hidden": "true", children: /* @__PURE__ */ a(B, { name: t === "danger" ? "close" : t === "warning" ? "warning" : t === "info" ? "info" : "check" }) }),
638
- /* @__PURE__ */ a("div", { className: "facto-toast__copy", children: o })
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 })
639
995
  ] });
640
996
  }
641
- function Gt({ className: t, ...e }) {
642
- return /* @__PURE__ */ a(y.Title, { ...e, className: s("facto-toast__title", t) });
997
+ function Tt({ className: t, ...e }) {
998
+ return /* @__PURE__ */ n(W.Title, { ...e, className: l("facto-toast__title", t) });
643
999
  }
644
- function Kt({ className: t, ...e }) {
645
- return /* @__PURE__ */ a(y.Description, { ...e, className: s("facto-toast__description", t) });
1000
+ function ot({ className: t, ...e }) {
1001
+ return /* @__PURE__ */ n(W.Description, { ...e, className: l("facto-toast__description", t) });
646
1002
  }
647
- function Zt({ className: t, ...e }) {
648
- return /* @__PURE__ */ a(y.Action, { ...e, className: s("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) });
649
1005
  }
650
- function Jt({ className: t, children: e = /* @__PURE__ */ a(B, { name: "close" }), "aria-label": n = "Dismiss notification", ...o }) {
651
- return /* @__PURE__ */ a(y.Close, { ...o, "aria-label": n, className: s("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 });
652
1008
  }
653
- function Qt({ className: t, style: e, ...n }) {
654
- const o = T(k), [c, i] = A(!1);
655
- return W(() => i(!0), []), c ? K(/* @__PURE__ */ a(y.Viewport, { ...n, className: s("facto-toast-viewport", t), style: { ...o, ...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;
656
1012
  }
657
- function Ut({ value: t, defaultValue: e = "", onValueChange: n, clearLabel: o = "Clear search", label: c = "Search", helperText: i, error: r, id: f, containerClassName: l, className: h, disabled: u, readOnly: g, ...N }) {
658
- const w = S(), P = f ?? w, I = r || i ? `${P}-description` : void 0, [R, C] = A(e), p = t ?? R, $ = j(null);
659
- W(() => {
660
- const _ = $.current?.form;
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);
1015
+ L(() => {
1016
+ const _ = b.current?.form;
661
1017
  if (!_ || t !== void 0) return;
662
- const E = (G) => {
1018
+ const C = (N) => {
663
1019
  queueMicrotask(() => {
664
- G.defaultPrevented || (C(e), n?.(e));
1020
+ N.defaultPrevented || (s(e), a?.(e));
665
1021
  });
666
1022
  };
667
- return _.addEventListener("reset", E), () => _.removeEventListener("reset", E);
668
- }, [e, t, n]);
669
- const b = (_) => {
670
- t === void 0 && C(_), n?.(_);
1023
+ return _.addEventListener("reset", C), () => _.removeEventListener("reset", C);
1024
+ }, [e, t, a]);
1025
+ const h = (_) => {
1026
+ t === void 0 && s(_), a?.(_);
671
1027
  };
672
- return /* @__PURE__ */ d("div", { className: s("facto-field", l), children: [
673
- c && /* @__PURE__ */ a("label", { className: "facto-field__label", htmlFor: P, children: c }),
674
- /* @__PURE__ */ d("div", { className: "facto-search", children: [
675
- /* @__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: [
676
- /* @__PURE__ */ a("circle", { cx: "10.5", cy: "10.5", r: "6.5" }),
677
- /* @__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" })
678
1034
  ] }),
679
- /* @__PURE__ */ a(
1035
+ /* @__PURE__ */ n(
680
1036
  "input",
681
1037
  {
682
- ...N,
683
- ref: $,
684
- id: P,
1038
+ ...w,
1039
+ ref: b,
1040
+ id: y,
685
1041
  type: "search",
686
- disabled: u,
687
- readOnly: g,
688
- value: p,
689
- onChange: (_) => b(_.target.value),
690
- "aria-invalid": !!r || N["aria-invalid"],
691
- "aria-describedby": D(N["aria-describedby"], I),
692
- className: s("facto-input", "facto-search__input", !!r && "facto-input--error", h)
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)
693
1049
  }
694
1050
  ),
695
- p && !g && /* @__PURE__ */ a(
1051
+ u && !v && /* @__PURE__ */ n(
696
1052
  "button",
697
1053
  {
698
1054
  type: "button",
699
1055
  className: "facto-search__clear",
700
- disabled: u,
1056
+ disabled: p,
701
1057
  "aria-label": o,
702
1058
  onClick: () => {
703
- b(""), $.current?.focus();
1059
+ h(""), b.current?.focus();
704
1060
  },
705
- children: /* @__PURE__ */ a(B, { name: "close", size: 16 })
1061
+ children: /* @__PURE__ */ n(z, { name: "close", size: 16 })
706
1062
  }
707
1063
  )
708
1064
  ] }),
709
- (r || i) && /* @__PURE__ */ a("span", { id: I, className: s("facto-field__message", !!r && "facto-field__message--error"), children: r ?? i })
1065
+ (r || c) && /* @__PURE__ */ n("span", { id: T, className: l("facto-field__message", !!r && "facto-field__message--error"), children: r ?? c })
710
1066
  ] });
711
1067
  }
712
- function Xt({ className: t, ...e }) {
713
- return /* @__PURE__ */ a(U, { ...e, type: "search", className: s("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)) });
714
1099
  }
715
1100
  export {
716
- Nt as Badge,
717
- it as Button,
718
- rt as Card,
719
- kt as Checkbox,
720
- dt as DashboardGrid,
721
- Ct as Dialog,
722
- St as DialogClose,
723
- Dt as DialogContent,
724
- Y as DialogDescription,
725
- X as DialogTitle,
726
- Bt as DialogTrigger,
727
- Wt as EmptyState,
728
- Ut as EnhancedSearchField,
729
- nt as FactoTheme,
730
- B as Icon,
731
- st as IconButton,
732
- ct as ModalFooter,
733
- ot as ModalHeader,
734
- Ot as Notice,
735
- Xt as SearchField,
736
- pt as Select,
737
- Pt as Sheet,
738
- xt as SheetClose,
739
- Mt as SheetContent,
740
- Ft as SheetDescription,
741
- Rt as SheetTitle,
742
- $t as SheetTrigger,
743
- Lt as Skeleton,
744
- jt as Stack,
745
- q as Surface,
746
- _t as Switch,
747
- yt as Tabs,
748
- It as TabsContent,
749
- Tt as TabsList,
750
- wt as TabsTrigger,
751
- U as TextField,
752
- vt as Textarea,
753
- qt as Toast,
754
- Zt as ToastAction,
755
- Jt as ToastClose,
756
- Kt as ToastDescription,
757
- Vt as ToastProvider,
758
- Gt as ToastTitle,
759
- Qt as ToastViewport,
760
- Et as Tooltip,
761
- zt as TooltipContent,
762
- At as TooltipProvider,
763
- Ht as TooltipTrigger,
764
- lt as Widget,
765
- gt as WidgetAction,
766
- ht as WidgetAmount,
767
- ft as WidgetHeader,
768
- mt as WidgetKeyValue,
769
- ut as WidgetList,
770
- 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
771
1179
  };