@fluityy/designsystem 0.2.4 → 0.2.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 +104 -65
- package/dist/index.js.map +1 -1
- package/dist/styles.css +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as p, useState as
|
|
2
|
+
import { forwardRef as p, useState as v, useRef as L, useEffect as C, createContext as N, useContext as y, useId as K, cloneElement as q, Children as oe, Fragment as le, useCallback as z, useMemo as se } from "react";
|
|
3
3
|
import { cva as V } from "class-variance-authority";
|
|
4
4
|
import { clsx as ie } from "clsx";
|
|
5
5
|
import { twMerge as ce } from "tailwind-merge";
|
|
@@ -62,12 +62,12 @@ const fe = V(
|
|
|
62
62
|
}
|
|
63
63
|
), me = p(
|
|
64
64
|
({ className: e, size: r, invalid: a, label: n, id: o, type: l, ...s }, c) => {
|
|
65
|
-
const [d, f] =
|
|
65
|
+
const [d, f] = v(!1), g = l === "password", b = g ? d ? "text" : "password" : l, x = o ?? (n ? n.toLowerCase().replace(/\s+/g, "-") : void 0), h = /* @__PURE__ */ u("div", { className: "relative flex w-full items-center", children: [
|
|
66
66
|
/* @__PURE__ */ t(
|
|
67
67
|
"input",
|
|
68
68
|
{
|
|
69
69
|
ref: c,
|
|
70
|
-
id:
|
|
70
|
+
id: x,
|
|
71
71
|
type: b,
|
|
72
72
|
className: i(
|
|
73
73
|
fe({ size: r, invalid: a }),
|
|
@@ -103,7 +103,7 @@ const fe = V(
|
|
|
103
103
|
)
|
|
104
104
|
] });
|
|
105
105
|
return n ? /* @__PURE__ */ u("div", { className: "flex w-full flex-col gap-1.5", children: [
|
|
106
|
-
/* @__PURE__ */ t("label", { htmlFor:
|
|
106
|
+
/* @__PURE__ */ t("label", { htmlFor: x, className: "text-xs font-medium text-fg", children: n }),
|
|
107
107
|
h
|
|
108
108
|
] }) : h;
|
|
109
109
|
}
|
|
@@ -131,11 +131,11 @@ const he = p(({ className: e, ...r }, a) => /* @__PURE__ */ t("h3", { ref: a, cl
|
|
|
131
131
|
he.displayName = "CardTitle";
|
|
132
132
|
const be = p(({ className: e, ...r }, a) => /* @__PURE__ */ t("p", { ref: a, className: i("text-sm text-fg-muted", e), ...r }));
|
|
133
133
|
be.displayName = "CardDescription";
|
|
134
|
-
const
|
|
134
|
+
const ve = p(
|
|
135
135
|
({ className: e, ...r }, a) => /* @__PURE__ */ t("div", { ref: a, className: i("p-6 pt-0", e), ...r })
|
|
136
136
|
);
|
|
137
|
-
|
|
138
|
-
const
|
|
137
|
+
ve.displayName = "CardContent";
|
|
138
|
+
const xe = V(
|
|
139
139
|
"relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 ring-offset-bg disabled:cursor-not-allowed disabled:opacity-50",
|
|
140
140
|
{
|
|
141
141
|
variants: {
|
|
@@ -159,7 +159,7 @@ const ve = V(
|
|
|
159
159
|
}
|
|
160
160
|
), G = p(
|
|
161
161
|
({ className: e, size: r, checked: a, defaultChecked: n, onCheckedChange: o, disabled: l, ...s }, c) => {
|
|
162
|
-
const d = a !== void 0, [f, g] =
|
|
162
|
+
const d = a !== void 0, [f, g] = v(n ?? !1), b = d ? a : f;
|
|
163
163
|
return /* @__PURE__ */ t(
|
|
164
164
|
"button",
|
|
165
165
|
{
|
|
@@ -172,7 +172,7 @@ const ve = V(
|
|
|
172
172
|
const h = !b;
|
|
173
173
|
d || g(h), o == null || o(h);
|
|
174
174
|
},
|
|
175
|
-
className: i(
|
|
175
|
+
className: i(xe({ size: r, checked: b }), e),
|
|
176
176
|
...s,
|
|
177
177
|
children: /* @__PURE__ */ t("span", { className: we({ size: r, checked: b }) })
|
|
178
178
|
}
|
|
@@ -183,7 +183,7 @@ G.displayName = "Switch";
|
|
|
183
183
|
const ye = p(
|
|
184
184
|
({ className: e, label: r, indeterminate: a = !1, disabled: n, id: o, ...l }, s) => {
|
|
185
185
|
const c = L(null);
|
|
186
|
-
|
|
186
|
+
C(() => {
|
|
187
187
|
c.current && (c.current.indeterminate = a);
|
|
188
188
|
}, [a]);
|
|
189
189
|
const d = (f) => {
|
|
@@ -248,7 +248,7 @@ const ye = p(
|
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
ye.displayName = "Checkbox";
|
|
251
|
-
const U =
|
|
251
|
+
const U = N(null);
|
|
252
252
|
function ur({
|
|
253
253
|
value: e,
|
|
254
254
|
defaultValue: r,
|
|
@@ -258,18 +258,18 @@ function ur({
|
|
|
258
258
|
children: l,
|
|
259
259
|
...s
|
|
260
260
|
}) {
|
|
261
|
-
const c = K(), d = e !== void 0, [f, g] =
|
|
261
|
+
const c = K(), d = e !== void 0, [f, g] = v(r), b = d ? e : f, x = (h) => {
|
|
262
262
|
d || g(h), a == null || a(h);
|
|
263
263
|
};
|
|
264
264
|
return /* @__PURE__ */ t(
|
|
265
265
|
U.Provider,
|
|
266
266
|
{
|
|
267
|
-
value: { name: n ?? c, value: b, onChange:
|
|
267
|
+
value: { name: n ?? c, value: b, onChange: x },
|
|
268
268
|
children: /* @__PURE__ */ t("div", { role: "radiogroup", className: i("flex flex-col gap-2", o), ...s, children: l })
|
|
269
269
|
}
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const Ce = p(
|
|
273
273
|
({ className: e, value: r, label: a, disabled: n, ...o }, l) => {
|
|
274
274
|
const s = y(U);
|
|
275
275
|
if (!s) throw new Error("<Radio> precisa estar dentro de <RadioGroup>");
|
|
@@ -315,8 +315,8 @@ const Ne = p(
|
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
317
|
);
|
|
318
|
-
|
|
319
|
-
const
|
|
318
|
+
Ce.displayName = "Radio";
|
|
319
|
+
const Ne = V(
|
|
320
320
|
"w-full appearance-none bg-bg-muted text-fg border border-transparent transition-colors outline-none focus-visible:border-border-strong disabled:opacity-50 disabled:pointer-events-none rounded-lg pr-9",
|
|
321
321
|
{
|
|
322
322
|
variants: {
|
|
@@ -338,7 +338,7 @@ const Ce = V(
|
|
|
338
338
|
"select",
|
|
339
339
|
{
|
|
340
340
|
ref: l,
|
|
341
|
-
className: i(
|
|
341
|
+
className: i(Ne({ size: r, invalid: a }), e),
|
|
342
342
|
...o,
|
|
343
343
|
children: n
|
|
344
344
|
}
|
|
@@ -360,15 +360,15 @@ const Ce = V(
|
|
|
360
360
|
] })
|
|
361
361
|
);
|
|
362
362
|
Ve.displayName = "Select";
|
|
363
|
-
const O =
|
|
363
|
+
const O = N(null);
|
|
364
364
|
function j() {
|
|
365
365
|
const e = y(O);
|
|
366
366
|
if (!e) throw new Error("Componentes de Dropdown precisam estar dentro de <Dropdown>");
|
|
367
367
|
return e;
|
|
368
368
|
}
|
|
369
369
|
function dr({ children: e }) {
|
|
370
|
-
const [r, a] =
|
|
371
|
-
return
|
|
370
|
+
const [r, a] = v(!1), n = L(null);
|
|
371
|
+
return C(() => {
|
|
372
372
|
if (!r) return;
|
|
373
373
|
const o = (s) => {
|
|
374
374
|
n.current && !n.current.contains(s.target) && a(!1);
|
|
@@ -500,7 +500,7 @@ function Ee(e) {
|
|
|
500
500
|
}
|
|
501
501
|
const Le = p(
|
|
502
502
|
({ className: e, size: r = "md", src: a, alt: n, name: o, status: l, ...s }, c) => {
|
|
503
|
-
const [d, f] =
|
|
503
|
+
const [d, f] = v(!1), g = a && !d;
|
|
504
504
|
return /* @__PURE__ */ u("span", { ref: c, className: i(ze({ size: r }), e), ...s, children: [
|
|
505
505
|
/* @__PURE__ */ t("span", { className: "flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-bg-muted font-medium text-fg", children: g ? /* @__PURE__ */ t(
|
|
506
506
|
"img",
|
|
@@ -662,8 +662,8 @@ function je() {
|
|
|
662
662
|
return /* @__PURE__ */ t("li", { "aria-hidden": !0, className: "text-fg-muted", children: "/" });
|
|
663
663
|
}
|
|
664
664
|
function Be(e, r = 1e3) {
|
|
665
|
-
const [a, n] =
|
|
666
|
-
return
|
|
665
|
+
const [a, n] = v(0);
|
|
666
|
+
return C(() => {
|
|
667
667
|
n(0);
|
|
668
668
|
const o = performance.now(), l = (s) => {
|
|
669
669
|
const c = Math.min((s - o) / r, 1), d = 1 - (1 - c) ** 4;
|
|
@@ -674,7 +674,7 @@ function Be(e, r = 1e3) {
|
|
|
674
674
|
}
|
|
675
675
|
const _e = p(
|
|
676
676
|
({ className: e, label: r, value: a, countUp: n, formatCount: o, delta: l, helpText: s, icon: c, ...d }, f) => {
|
|
677
|
-
const g = Be(n ?? 0), b = typeof l == "number",
|
|
677
|
+
const g = Be(n ?? 0), b = typeof l == "number", x = b && l >= 0, h = n !== void 0 ? o ? o(g) : Math.round(g).toLocaleString("pt-BR") : a;
|
|
678
678
|
return /* @__PURE__ */ u(
|
|
679
679
|
"div",
|
|
680
680
|
{
|
|
@@ -690,8 +690,8 @@ const _e = p(
|
|
|
690
690
|
c && /* @__PURE__ */ t("span", { className: "text-fg-muted", children: c })
|
|
691
691
|
] }),
|
|
692
692
|
/* @__PURE__ */ t("span", { className: "text-3xl font-bold text-fg whitespace-nowrap tabular-nums", children: h }),
|
|
693
|
-
b && /* @__PURE__ */ u(Y, { variant:
|
|
694
|
-
|
|
693
|
+
b && /* @__PURE__ */ u(Y, { variant: x ? "success" : "danger", size: "sm", className: "self-start", children: [
|
|
694
|
+
x ? "▲" : "▼",
|
|
695
695
|
" ",
|
|
696
696
|
Math.abs(l),
|
|
697
697
|
"%"
|
|
@@ -770,7 +770,7 @@ function Ke({
|
|
|
770
770
|
defaultValue: r,
|
|
771
771
|
onChange: a
|
|
772
772
|
}) {
|
|
773
|
-
const n = e !== void 0, [o, l] =
|
|
773
|
+
const n = e !== void 0, [o, l] = v(r), s = n ? e : o, c = z(
|
|
774
774
|
(d) => {
|
|
775
775
|
n || l(d), a == null || a(d);
|
|
776
776
|
},
|
|
@@ -778,7 +778,7 @@ function Ke({
|
|
|
778
778
|
);
|
|
779
779
|
return [s, c];
|
|
780
780
|
}
|
|
781
|
-
const $ =
|
|
781
|
+
const $ = N(null);
|
|
782
782
|
function B() {
|
|
783
783
|
const e = y($);
|
|
784
784
|
if (!e) throw new Error("Componentes de Tabs precisam estar dentro de <Tabs>");
|
|
@@ -799,9 +799,9 @@ function br({
|
|
|
799
799
|
});
|
|
800
800
|
return /* @__PURE__ */ t($.Provider, { value: { value: s, setValue: c }, children: /* @__PURE__ */ t("div", { className: n, ...l, children: o }) });
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
const { value: n } = B(), o = L(null), [l, s] =
|
|
804
|
-
return
|
|
802
|
+
function vr({ className: e, children: r, ...a }) {
|
|
803
|
+
const { value: n } = B(), o = L(null), [l, s] = v({ left: 0, width: 0, ready: !1 });
|
|
804
|
+
return C(() => {
|
|
805
805
|
const c = o.current;
|
|
806
806
|
if (!c) return;
|
|
807
807
|
const d = c.querySelector('[aria-selected="true"]');
|
|
@@ -827,7 +827,7 @@ function xr({ className: e, children: r, ...a }) {
|
|
|
827
827
|
}
|
|
828
828
|
);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function xr({ value: e, className: r, ...a }) {
|
|
831
831
|
const n = B(), o = n.value === e;
|
|
832
832
|
return /* @__PURE__ */ t(
|
|
833
833
|
"button",
|
|
@@ -856,7 +856,7 @@ function wr({ value: e, className: r, ...a }) {
|
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
}
|
|
859
|
-
const J =
|
|
859
|
+
const J = N(null), _ = N("");
|
|
860
860
|
function Q() {
|
|
861
861
|
const e = y(J);
|
|
862
862
|
if (!e) throw new Error("Componentes de Accordion precisam estar dentro de <Accordion>");
|
|
@@ -869,9 +869,9 @@ function yr({
|
|
|
869
869
|
children: n,
|
|
870
870
|
...o
|
|
871
871
|
}) {
|
|
872
|
-
const l = r ? Array.isArray(r) ? r : [r] : [], [s, c] =
|
|
872
|
+
const l = r ? Array.isArray(r) ? r : [r] : [], [s, c] = v(l), d = (f) => c((g) => {
|
|
873
873
|
const b = g.includes(f);
|
|
874
|
-
return e === "single" ? b ? [] : [f] : b ? g.filter((
|
|
874
|
+
return e === "single" ? b ? [] : [f] : b ? g.filter((x) => x !== f) : [...g, f];
|
|
875
875
|
});
|
|
876
876
|
return /* @__PURE__ */ t(J.Provider, { value: { open: s, toggle: d }, children: /* @__PURE__ */ t(
|
|
877
877
|
"div",
|
|
@@ -882,10 +882,10 @@ function yr({
|
|
|
882
882
|
}
|
|
883
883
|
) });
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Cr({ value: e, children: r, ...a }) {
|
|
886
886
|
return /* @__PURE__ */ t(_.Provider, { value: e, children: /* @__PURE__ */ t("div", { ...a, children: r }) });
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Nr({
|
|
889
889
|
className: e,
|
|
890
890
|
children: r,
|
|
891
891
|
...a
|
|
@@ -924,7 +924,7 @@ const qe = {
|
|
|
924
924
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
925
925
|
};
|
|
926
926
|
function kr({ content: e, side: r = "top", children: a, className: n }) {
|
|
927
|
-
const [o, l] =
|
|
927
|
+
const [o, l] = v(!1), s = K();
|
|
928
928
|
return /* @__PURE__ */ u(
|
|
929
929
|
"span",
|
|
930
930
|
{
|
|
@@ -953,15 +953,15 @@ function kr({ content: e, side: r = "top", children: a, className: n }) {
|
|
|
953
953
|
}
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
|
-
const X =
|
|
956
|
+
const X = N(null);
|
|
957
957
|
function Z() {
|
|
958
958
|
const e = y(X);
|
|
959
959
|
if (!e) throw new Error("Componentes de Popover precisam estar dentro de <Popover>");
|
|
960
960
|
return e;
|
|
961
961
|
}
|
|
962
962
|
function zr({ children: e }) {
|
|
963
|
-
const [r, a] =
|
|
964
|
-
return
|
|
963
|
+
const [r, a] = v(!1), n = L(null);
|
|
964
|
+
return C(() => {
|
|
965
965
|
if (!r) return;
|
|
966
966
|
const o = (s) => {
|
|
967
967
|
n.current && !n.current.contains(s.target) && a(!1);
|
|
@@ -1000,11 +1000,11 @@ function Tr({
|
|
|
1000
1000
|
) : null;
|
|
1001
1001
|
}
|
|
1002
1002
|
function R({ children: e }) {
|
|
1003
|
-
const [r, a] =
|
|
1004
|
-
return
|
|
1003
|
+
const [r, a] = v(!1);
|
|
1004
|
+
return C(() => a(!0), []), r ? ue(e, document.body) : null;
|
|
1005
1005
|
}
|
|
1006
1006
|
function ee(e, r) {
|
|
1007
|
-
|
|
1007
|
+
C(() => {
|
|
1008
1008
|
if (!e) return;
|
|
1009
1009
|
const a = (o) => o.key === "Escape" && r(), n = document.body.style.overflow;
|
|
1010
1010
|
return document.body.style.overflow = "hidden", document.addEventListener("keydown", a), () => {
|
|
@@ -1012,7 +1012,7 @@ function ee(e, r) {
|
|
|
1012
1012
|
};
|
|
1013
1013
|
}, [e, r]);
|
|
1014
1014
|
}
|
|
1015
|
-
const re =
|
|
1015
|
+
const re = N(null);
|
|
1016
1016
|
function Ge({ open: e, onOpenChange: r, children: a }) {
|
|
1017
1017
|
const n = () => r == null ? void 0 : r(!1);
|
|
1018
1018
|
return ee(e, n), e ? /* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(re.Provider, { value: { close: n }, children: /* @__PURE__ */ u("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
|
|
@@ -1077,7 +1077,7 @@ function Dr({ className: e, ...r }) {
|
|
|
1077
1077
|
function Ar({ className: e, ...r }) {
|
|
1078
1078
|
return /* @__PURE__ */ t("div", { className: i("flex justify-end gap-2 p-6 pt-4", e), ...r });
|
|
1079
1079
|
}
|
|
1080
|
-
const te =
|
|
1080
|
+
const te = N(null), Oe = {
|
|
1081
1081
|
left: "left-0 top-0 h-full w-[420px] max-w-[96vw] border-r",
|
|
1082
1082
|
right: "right-0 top-0 h-full w-[420px] max-w-[96vw] border-l",
|
|
1083
1083
|
top: "top-0 left-0 w-full max-h-[90vh] border-b",
|
|
@@ -1154,14 +1154,14 @@ function Rr({ className: e, ...r }) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
);
|
|
1156
1156
|
}
|
|
1157
|
-
const ae =
|
|
1157
|
+
const ae = N(null), Ye = {
|
|
1158
1158
|
info: { wrapper: "bg-[var(--color-toast-info-bg)]", title: "text-fg", description: "text-fg-muted", action: "text-primary hover:text-primary/80" },
|
|
1159
1159
|
success: { wrapper: "bg-[var(--color-toast-success-bg)]", title: "text-success-fg", description: "text-fg-muted", action: "text-success-fg hover:text-success-fg/80" },
|
|
1160
1160
|
warning: { wrapper: "bg-[var(--color-toast-warning-bg)]", title: "text-fg", description: "text-fg-muted", action: "text-fg hover:text-fg/80" },
|
|
1161
1161
|
danger: { wrapper: "bg-[var(--color-toast-danger-bg)]", title: "text-danger", description: "text-fg-muted", action: "text-danger hover:text-danger/80" }
|
|
1162
1162
|
};
|
|
1163
1163
|
function Fr({ children: e }) {
|
|
1164
|
-
const [r, a] =
|
|
1164
|
+
const [r, a] = v([]), n = L(0), o = z((s) => {
|
|
1165
1165
|
a((c) => c.map((d) => d.id === s ? { ...d, leaving: !0 } : d)), setTimeout(() => {
|
|
1166
1166
|
a((c) => c.filter((d) => d.id !== s));
|
|
1167
1167
|
}, 160);
|
|
@@ -1175,7 +1175,7 @@ function Fr({ children: e }) {
|
|
|
1175
1175
|
] });
|
|
1176
1176
|
}
|
|
1177
1177
|
function $e({ item: e, onDismiss: r }) {
|
|
1178
|
-
|
|
1178
|
+
C(() => {
|
|
1179
1179
|
if (!e.duration) return;
|
|
1180
1180
|
const n = setTimeout(r, e.duration);
|
|
1181
1181
|
return () => clearTimeout(n);
|
|
@@ -1406,9 +1406,9 @@ function qr({
|
|
|
1406
1406
|
footerAction: g
|
|
1407
1407
|
}) {
|
|
1408
1408
|
var T, E;
|
|
1409
|
-
const b = ((E = (T = n[0]) == null ? void 0 : T.items[0]) == null ? void 0 : E.id) ?? "", [
|
|
1409
|
+
const b = ((E = (T = n[0]) == null ? void 0 : T.items[0]) == null ? void 0 : E.id) ?? "", [x, h] = v(
|
|
1410
1410
|
o ?? b
|
|
1411
|
-
), w = l ??
|
|
1411
|
+
), w = l ?? x, P = (k) => {
|
|
1412
1412
|
h(k), s == null || s(k);
|
|
1413
1413
|
}, M = n.flatMap((k) => k.items).find((k) => k.id === w), D = c[w] ?? (M == null ? void 0 : M.label) ?? w, m = d[w];
|
|
1414
1414
|
return /* @__PURE__ */ t(Ge, { open: e, onOpenChange: r, children: /* @__PURE__ */ t(Ue, { className: "max-w-[1300px] overflow-hidden p-0", children: /* @__PURE__ */ u("div", { className: "flex h-[820px]", children: [
|
|
@@ -1436,7 +1436,7 @@ function qr({
|
|
|
1436
1436
|
] })
|
|
1437
1437
|
] }) }) });
|
|
1438
1438
|
}
|
|
1439
|
-
const ne =
|
|
1439
|
+
const ne = N(null), F = "flui-color-mode", W = "flui-brand", H = "flui-radius";
|
|
1440
1440
|
function ar() {
|
|
1441
1441
|
var e;
|
|
1442
1442
|
return typeof window < "u" && ((e = window.matchMedia) == null ? void 0 : e.call(window, "(prefers-color-scheme: dark)").matches);
|
|
@@ -1455,22 +1455,22 @@ function Gr({
|
|
|
1455
1455
|
defaultRadius: n = "default",
|
|
1456
1456
|
target: o
|
|
1457
1457
|
}) {
|
|
1458
|
-
const [l, s] =
|
|
1458
|
+
const [l, s] = v(
|
|
1459
1459
|
() => I(F, r)
|
|
1460
|
-
), [c, d] =
|
|
1460
|
+
), [c, d] = v(
|
|
1461
1461
|
() => I(W, a)
|
|
1462
|
-
), [f, g] =
|
|
1462
|
+
), [f, g] = v(
|
|
1463
1463
|
() => I(H, n)
|
|
1464
|
-
), [b,
|
|
1465
|
-
|
|
1464
|
+
), [b, x] = v(ar);
|
|
1465
|
+
C(() => {
|
|
1466
1466
|
var E;
|
|
1467
1467
|
const m = (E = window.matchMedia) == null ? void 0 : E.call(window, "(prefers-color-scheme: dark)");
|
|
1468
1468
|
if (!m) return;
|
|
1469
|
-
const T = (k) =>
|
|
1469
|
+
const T = (k) => x(k.matches);
|
|
1470
1470
|
return m.addEventListener("change", T), () => m.removeEventListener("change", T);
|
|
1471
1471
|
}, []);
|
|
1472
1472
|
const h = l === "system" ? b ? "dark" : "light" : l;
|
|
1473
|
-
|
|
1473
|
+
C(() => {
|
|
1474
1474
|
const m = (o == null ? void 0 : o()) ?? document.documentElement;
|
|
1475
1475
|
m.setAttribute("data-theme", h), c && c !== "default" ? m.setAttribute("data-brand", c) : m.removeAttribute("data-brand"), f && f !== "default" ? m.setAttribute("data-radius", f) : m.removeAttribute("data-radius");
|
|
1476
1476
|
}, [h, c, f, o]);
|
|
@@ -1884,6 +1884,19 @@ const Or = [
|
|
|
1884
1884
|
isColor: !0,
|
|
1885
1885
|
reference: null
|
|
1886
1886
|
},
|
|
1887
|
+
{
|
|
1888
|
+
name: "flui-color-neutral-750",
|
|
1889
|
+
cssVar: "--flui-color-neutral-750",
|
|
1890
|
+
path: [
|
|
1891
|
+
"color",
|
|
1892
|
+
"neutral",
|
|
1893
|
+
"750"
|
|
1894
|
+
],
|
|
1895
|
+
group: "color",
|
|
1896
|
+
value: "#2c303c",
|
|
1897
|
+
isColor: !0,
|
|
1898
|
+
reference: null
|
|
1899
|
+
},
|
|
1887
1900
|
{
|
|
1888
1901
|
name: "flui-color-neutral-800",
|
|
1889
1902
|
cssVar: "--flui-color-neutral-800",
|
|
@@ -1897,6 +1910,32 @@ const Or = [
|
|
|
1897
1910
|
isColor: !0,
|
|
1898
1911
|
reference: null
|
|
1899
1912
|
},
|
|
1913
|
+
{
|
|
1914
|
+
name: "flui-color-neutral-850",
|
|
1915
|
+
cssVar: "--flui-color-neutral-850",
|
|
1916
|
+
path: [
|
|
1917
|
+
"color",
|
|
1918
|
+
"neutral",
|
|
1919
|
+
"850"
|
|
1920
|
+
],
|
|
1921
|
+
group: "color",
|
|
1922
|
+
value: "#1a1d25",
|
|
1923
|
+
isColor: !0,
|
|
1924
|
+
reference: null
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
name: "flui-color-neutral-875",
|
|
1928
|
+
cssVar: "--flui-color-neutral-875",
|
|
1929
|
+
path: [
|
|
1930
|
+
"color",
|
|
1931
|
+
"neutral",
|
|
1932
|
+
"875"
|
|
1933
|
+
],
|
|
1934
|
+
group: "color",
|
|
1935
|
+
value: "#161920",
|
|
1936
|
+
isColor: !0,
|
|
1937
|
+
reference: null
|
|
1938
|
+
},
|
|
1900
1939
|
{
|
|
1901
1940
|
name: "flui-color-neutral-900",
|
|
1902
1941
|
cssVar: "--flui-color-neutral-900",
|
|
@@ -2765,8 +2804,8 @@ const Or = [
|
|
|
2765
2804
|
export {
|
|
2766
2805
|
yr as Accordion,
|
|
2767
2806
|
Vr as AccordionContent,
|
|
2768
|
-
|
|
2769
|
-
|
|
2807
|
+
Cr as AccordionItem,
|
|
2808
|
+
Nr as AccordionTrigger,
|
|
2770
2809
|
He as Alert,
|
|
2771
2810
|
Le as Avatar,
|
|
2772
2811
|
Y as Badge,
|
|
@@ -2775,7 +2814,7 @@ export {
|
|
|
2775
2814
|
je as BreadcrumbSeparator,
|
|
2776
2815
|
S as Button,
|
|
2777
2816
|
pe as Card,
|
|
2778
|
-
|
|
2817
|
+
ve as CardContent,
|
|
2779
2818
|
be as CardDescription,
|
|
2780
2819
|
ge as CardHeader,
|
|
2781
2820
|
he as CardTitle,
|
|
@@ -2807,7 +2846,7 @@ export {
|
|
|
2807
2846
|
Mr as PopoverTrigger,
|
|
2808
2847
|
qr as ProfileSettingsModal,
|
|
2809
2848
|
Ae as Progress,
|
|
2810
|
-
|
|
2849
|
+
Ce as Radio,
|
|
2811
2850
|
ur as RadioGroup,
|
|
2812
2851
|
Ve as Select,
|
|
2813
2852
|
Wr as SettingRow,
|
|
@@ -2818,8 +2857,8 @@ export {
|
|
|
2818
2857
|
G as Switch,
|
|
2819
2858
|
br as Tabs,
|
|
2820
2859
|
wr as TabsContent,
|
|
2821
|
-
|
|
2822
|
-
|
|
2860
|
+
vr as TabsList,
|
|
2861
|
+
xr as TabsTrigger,
|
|
2823
2862
|
Xe as Textarea,
|
|
2824
2863
|
Gr as ThemeProvider,
|
|
2825
2864
|
Fr as ToastProvider,
|