@fluidattacks/design 3.8.13-pr-05 → 3.8.13
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/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-Dxb6_Zi7.mjs → components-BRnTxNj7.mjs} +78 -75
- package/dist/{components-p5aX0K53.js → components-DAOR7gLt.js} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f, Fragment as wt } from "react/jsx-runtime";
|
|
2
2
|
import kt, { forwardRef as V, useState as F, useCallback as k, useRef as A, StrictMode as ln, useEffect as U, useMemo as Z, Children as vt, isValidElement as Ct, cloneElement as sn, Fragment as St, createElement as Ze } from "react";
|
|
3
|
-
import { o as cn, d as b, n as j, M as dn, f as pn, a as gn, l as P, b as pe, _ as
|
|
3
|
+
import { o as cn, d as b, n as j, M as dn, f as pn, a as gn, l as P, b as pe, _ as H, $ as un, c as fn, e as hn, g as bn, h as $n, i as yn, j as xn, k as mn, m as zt, C as It, p as wn, q as kn, r as vn, s as Je, t as me, u as Cn, v as Sn, w as Tt, x as we, y as Nt, z as zn, A as In, B as Tn, D as Nn, E as jn, F as Be, G as Dn, H as jt, I as Fn, J as Dt, K as Wn, L as Ln, N as Pn, O as En, P as An, Q as Ft, R as Mn, S as Qe, T as et, U as Rn, V as tt, W as Bn, X as Hn, Y as On, Z as Vn, a0 as Wt, a1 as _n, a2 as Gn, a3 as Un, a4 as Lt, a5 as Kn, a6 as Yn, a9 as qn, aa as Pt, ab as Xn, ac as Zn, ad as Jn, ae as Qn, af as ei, ag as ti, ah as ni, ai as ii, aj as nt, ak as ai, al as it, am as ri } from "./vendor-Cl-gDlvC.mjs";
|
|
4
4
|
import { createPortal as Q } from "react-dom";
|
|
5
5
|
import { Link as oi, useLocation as li, NavLink as si } from "react-router-dom";
|
|
6
6
|
const ne = (e) => ({
|
|
@@ -1479,7 +1479,7 @@ const S = V(function({
|
|
|
1479
1479
|
}
|
|
1480
1480
|
`
|
|
1481
1481
|
})
|
|
1482
|
-
),
|
|
1482
|
+
), Hi = b.span`
|
|
1483
1483
|
${({ theme: e, $fontSize: t = e.typography.text.xs, $variant: i }) => `
|
|
1484
1484
|
align-items: center;
|
|
1485
1485
|
border-radius: ${e.spacing[i === "technique" ? 1 : 0.25]};
|
|
@@ -1502,7 +1502,7 @@ const S = V(function({
|
|
|
1502
1502
|
|
|
1503
1503
|
${Bi(e, i)}
|
|
1504
1504
|
`}
|
|
1505
|
-
`, { getVariant:
|
|
1505
|
+
`, { getVariant: Oi } = ne(
|
|
1506
1506
|
(e) => ({
|
|
1507
1507
|
highRelevance: `
|
|
1508
1508
|
color: ${e.palette.primary[500]};
|
|
@@ -1541,7 +1541,7 @@ const S = V(function({
|
|
|
1541
1541
|
text-decoration: none;
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
1544
|
-
${t ??
|
|
1544
|
+
${t ?? Oi(e, i)}
|
|
1545
1545
|
`}
|
|
1546
1546
|
`, Vi = b.a`
|
|
1547
1547
|
${Bt}
|
|
@@ -1623,7 +1623,7 @@ const S = V(function({
|
|
|
1623
1623
|
display: s === void 0 ? "initial" : "flex",
|
|
1624
1624
|
size: "sm",
|
|
1625
1625
|
children: [
|
|
1626
|
-
/* @__PURE__ */ f(
|
|
1626
|
+
/* @__PURE__ */ f(Hi, { $fontSize: l, $variant: h, className: d, children: [
|
|
1627
1627
|
t && /* @__PURE__ */ n(
|
|
1628
1628
|
S,
|
|
1629
1629
|
{
|
|
@@ -1778,7 +1778,7 @@ const S = V(function({
|
|
|
1778
1778
|
]
|
|
1779
1779
|
}
|
|
1780
1780
|
) });
|
|
1781
|
-
}),
|
|
1781
|
+
}), He = ({
|
|
1782
1782
|
authorEmail: e,
|
|
1783
1783
|
date: t,
|
|
1784
1784
|
description: i,
|
|
@@ -1872,10 +1872,10 @@ const S = V(function({
|
|
|
1872
1872
|
${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
|
|
1873
1873
|
}
|
|
1874
1874
|
`, Ui = (e) => {
|
|
1875
|
-
if (
|
|
1875
|
+
if (H.isNil(e)) return "";
|
|
1876
1876
|
const t = e.split(".");
|
|
1877
|
-
return (t.length > 1 ?
|
|
1878
|
-
}, Ki = (e, t) =>
|
|
1877
|
+
return (t.length > 1 ? H.last(t) : "").toLowerCase();
|
|
1878
|
+
}, Ki = (e, t) => H.isUndefined(t) ? !1 : H.includes(e, Ui(t)), Yi = ({
|
|
1879
1879
|
alt: e,
|
|
1880
1880
|
fileType: t,
|
|
1881
1881
|
width: i = "100%",
|
|
@@ -1954,7 +1954,7 @@ const S = V(function({
|
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
p ? null : /* @__PURE__ */ n(
|
|
1957
|
-
|
|
1957
|
+
He,
|
|
1958
1958
|
{
|
|
1959
1959
|
authorEmail: t,
|
|
1960
1960
|
date: i,
|
|
@@ -1991,7 +1991,7 @@ const S = V(function({
|
|
|
1991
1991
|
text-align: ${t};
|
|
1992
1992
|
}
|
|
1993
1993
|
`}
|
|
1994
|
-
`,
|
|
1994
|
+
`, Ht = ({
|
|
1995
1995
|
htmlFor: e,
|
|
1996
1996
|
label: t,
|
|
1997
1997
|
link: i,
|
|
@@ -2179,7 +2179,7 @@ const S = V(function({
|
|
|
2179
2179
|
const h = j(), x = g ? g.length : 0;
|
|
2180
2180
|
return /* @__PURE__ */ f(Xi, { children: [
|
|
2181
2181
|
l === void 0 ? void 0 : /* @__PURE__ */ n(
|
|
2182
|
-
|
|
2182
|
+
Ht,
|
|
2183
2183
|
{
|
|
2184
2184
|
htmlFor: o,
|
|
2185
2185
|
label: l,
|
|
@@ -2381,11 +2381,11 @@ const S = V(function({
|
|
|
2381
2381
|
var Xe;
|
|
2382
2382
|
const w = j(), v = t ? void 0 : i, N = (e == null ? void 0 : e.value) ?? y, [z, T] = F(
|
|
2383
2383
|
((Xe = p.find((R) => R.value === N)) == null ? void 0 : Xe.name) ?? ""
|
|
2384
|
-
), [E,
|
|
2384
|
+
), [E, O] = F(N), [B, _] = F(p), [L, W] = F(!1), { contains: Y } = bn({ sensitivity: "base" }), J = A(null), se = A(null), Fe = A(null), Ke = A(null), Ye = A(null), Zt = Z(() => p.map(
|
|
2385
2385
|
(R) => Y(R.name, z) || L ? /* @__PURE__ */ n($n, { children: R.name }, R.value) : null
|
|
2386
2386
|
), [Y, z, p, L]), Jt = k(
|
|
2387
2387
|
(R) => {
|
|
2388
|
-
T(R), R === "" ? W(!0) : (W(!1),
|
|
2388
|
+
T(R), R === "" ? W(!0) : (W(!1), O((X) => {
|
|
2389
2389
|
const he = R === "" ? "" : X;
|
|
2390
2390
|
return e && e.onChange(he), g && g(R), he;
|
|
2391
2391
|
}), _(p.filter((X) => Y(X.name, R))));
|
|
@@ -2394,7 +2394,7 @@ const S = V(function({
|
|
|
2394
2394
|
), Qt = k(
|
|
2395
2395
|
(R) => {
|
|
2396
2396
|
var X;
|
|
2397
|
-
T(((X = p.find((he) => he.value === R)) == null ? void 0 : X.name) ?? ""),
|
|
2397
|
+
T(((X = p.find((he) => he.value === R)) == null ? void 0 : X.name) ?? ""), O(R ? String(R) : ""), e && e.onChange(R), g && g(R ? String(R) : ""), _(p);
|
|
2398
2398
|
},
|
|
2399
2399
|
[p, e, g]
|
|
2400
2400
|
), qe = k(
|
|
@@ -2623,7 +2623,7 @@ const S = V(function({
|
|
|
2623
2623
|
display: flex;
|
|
2624
2624
|
padding: ${({ theme: e }) => e.spacing[0.25]} 0;
|
|
2625
2625
|
width: 100%;
|
|
2626
|
-
`,
|
|
2626
|
+
`, Ot = pe`
|
|
2627
2627
|
${({ theme: e }) => `
|
|
2628
2628
|
align-items: center;
|
|
2629
2629
|
color: ${e.palette.gray[800]};
|
|
@@ -2640,10 +2640,10 @@ const S = V(function({
|
|
|
2640
2640
|
width: ${e.spacing[2.5]};
|
|
2641
2641
|
`}
|
|
2642
2642
|
`, na = b.th`
|
|
2643
|
-
${
|
|
2643
|
+
${Ot}
|
|
2644
2644
|
`, ia = b.td`
|
|
2645
2645
|
${({ theme: e }) => `
|
|
2646
|
-
${
|
|
2646
|
+
${Ot}
|
|
2647
2647
|
height: ${e.spacing[2.5]};
|
|
2648
2648
|
width: ${e.spacing[2.5]};
|
|
2649
2649
|
|
|
@@ -2706,7 +2706,7 @@ const S = V(function({
|
|
|
2706
2706
|
height: 3.5px;
|
|
2707
2707
|
width: 7px;
|
|
2708
2708
|
}
|
|
2709
|
-
`,
|
|
2709
|
+
`, Oe = b.div`
|
|
2710
2710
|
${({ theme: e }) => `
|
|
2711
2711
|
align-items: end;
|
|
2712
2712
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -2924,7 +2924,7 @@ const S = V(function({
|
|
|
2924
2924
|
}
|
|
2925
2925
|
),
|
|
2926
2926
|
/* @__PURE__ */ n(Ve, { state: a }),
|
|
2927
|
-
/* @__PURE__ */ n(
|
|
2927
|
+
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ n(M, { onClick: e, variant: "ghost", children: "Cancel" }) })
|
|
2928
2928
|
] });
|
|
2929
2929
|
}, Vt = ({
|
|
2930
2930
|
segment: e,
|
|
@@ -3136,14 +3136,14 @@ const S = V(function({
|
|
|
3136
3136
|
}) => {
|
|
3137
3137
|
const h = A(null), x = g == null ? void 0 : g(s), y = jt({
|
|
3138
3138
|
...u,
|
|
3139
|
-
value:
|
|
3139
|
+
value: H.isNil(x) || H.isEmpty(x) || x === "-" ? null : Fn(x.replace(/\//gu, "-"))
|
|
3140
3140
|
}), { close: m } = y, { groupProps: w, fieldProps: v, buttonProps: N, dialogProps: z, calendarProps: T } = Dt(
|
|
3141
3141
|
{ ...u, "aria-label": l ?? s, name: s },
|
|
3142
3142
|
y,
|
|
3143
3143
|
h
|
|
3144
3144
|
), E = k(
|
|
3145
|
-
(
|
|
3146
|
-
T.onChange && T.onChange(
|
|
3145
|
+
(O) => {
|
|
3146
|
+
T.onChange && T.onChange(O), p && p(s, _t(O.toString()));
|
|
3147
3147
|
},
|
|
3148
3148
|
[T, s, p]
|
|
3149
3149
|
);
|
|
@@ -3214,7 +3214,7 @@ const S = V(function({
|
|
|
3214
3214
|
}
|
|
3215
3215
|
),
|
|
3216
3216
|
/* @__PURE__ */ n(Ve, { state: r }),
|
|
3217
|
-
/* @__PURE__ */ n(
|
|
3217
|
+
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ n(M, { onClick: e, variant: "ghost", children: "Cancel" }) })
|
|
3218
3218
|
] });
|
|
3219
3219
|
}, ya = b.div`
|
|
3220
3220
|
${({ theme: e, $disabled: t, $show: i }) => `
|
|
@@ -3374,7 +3374,7 @@ const S = V(function({
|
|
|
3374
3374
|
}
|
|
3375
3375
|
) })
|
|
3376
3376
|
] }),
|
|
3377
|
-
/* @__PURE__ */ n(
|
|
3377
|
+
/* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ n(M, { onClick: t, variant: "ghost", children: "Cancel" }) })
|
|
3378
3378
|
] });
|
|
3379
3379
|
}, kl = (e) => {
|
|
3380
3380
|
const {
|
|
@@ -3394,7 +3394,7 @@ const S = V(function({
|
|
|
3394
3394
|
isDisabled: t,
|
|
3395
3395
|
isRequired: a,
|
|
3396
3396
|
shouldCloseOnSelect: !1,
|
|
3397
|
-
value:
|
|
3397
|
+
value: H.isNil(d) || H.isEmpty(d) || d === "-" ? null : An(d.replace(/\//gu, "-"))
|
|
3398
3398
|
}), { close: h } = u, { groupProps: x, fieldProps: y, buttonProps: m, dialogProps: w, calendarProps: v } = Dt(e, u, g), N = k(
|
|
3399
3399
|
(T) => {
|
|
3400
3400
|
v.onChange && v.onChange(T), c == null || c(
|
|
@@ -3468,7 +3468,7 @@ const S = V(function({
|
|
|
3468
3468
|
return /* @__PURE__ */ n("div", { children: e });
|
|
3469
3469
|
const s = P.isNil(t) ? "" : t, c = String(i ?? s);
|
|
3470
3470
|
return /* @__PURE__ */ f($, { children: [
|
|
3471
|
-
/* @__PURE__ */ n(
|
|
3471
|
+
/* @__PURE__ */ n(Ht, { htmlFor: o, label: r, tooltip: l, weight: "bold" }),
|
|
3472
3472
|
c.startsWith("https://") ? /* @__PURE__ */ n(re, { href: c, children: s }) : /* @__PURE__ */ n(C, { size: "md", children: s })
|
|
3473
3473
|
] });
|
|
3474
3474
|
}, ka = ({
|
|
@@ -3492,7 +3492,7 @@ const S = V(function({
|
|
|
3492
3492
|
weight: w,
|
|
3493
3493
|
...v
|
|
3494
3494
|
}) => {
|
|
3495
|
-
const { required: N, onBlur: z, onChange: T } = v, E = j(),
|
|
3495
|
+
const { required: N, onBlur: z, onChange: T } = v, E = j(), O = e ? void 0 : o, B = l && s && !e, _ = k(
|
|
3496
3496
|
(L) => {
|
|
3497
3497
|
L.key === "Enter" && L.preventDefault();
|
|
3498
3498
|
},
|
|
@@ -3501,7 +3501,7 @@ const S = V(function({
|
|
|
3501
3501
|
return /* @__PURE__ */ n(
|
|
3502
3502
|
q,
|
|
3503
3503
|
{
|
|
3504
|
-
error:
|
|
3504
|
+
error: O,
|
|
3505
3505
|
helpLink: i,
|
|
3506
3506
|
helpLinkText: a,
|
|
3507
3507
|
helpText: r,
|
|
@@ -3515,7 +3515,7 @@ const S = V(function({
|
|
|
3515
3515
|
ae,
|
|
3516
3516
|
{
|
|
3517
3517
|
className: `
|
|
3518
|
-
${e ? "disabled" : ""} ${
|
|
3518
|
+
${e ? "disabled" : ""} ${O ? "error" : ""} ${B ? "success" : ""}
|
|
3519
3519
|
`,
|
|
3520
3520
|
children: [
|
|
3521
3521
|
t ? /* @__PURE__ */ n(S, { icon: "user", iconSize: "sm", iconType: "fa-light" }) : void 0,
|
|
@@ -3523,7 +3523,7 @@ const S = V(function({
|
|
|
3523
3523
|
"input",
|
|
3524
3524
|
{
|
|
3525
3525
|
"aria-hidden": !1,
|
|
3526
|
-
"aria-invalid":
|
|
3526
|
+
"aria-invalid": O ? "true" : "false",
|
|
3527
3527
|
"aria-label": d,
|
|
3528
3528
|
"aria-required": N,
|
|
3529
3529
|
autoComplete: "off",
|
|
@@ -3538,7 +3538,7 @@ const S = V(function({
|
|
|
3538
3538
|
...x ? x(d, { required: N, onBlur: z, onChange: T }) : { ...v }
|
|
3539
3539
|
}
|
|
3540
3540
|
),
|
|
3541
|
-
|
|
3541
|
+
O ? /* @__PURE__ */ n(
|
|
3542
3542
|
S,
|
|
3543
3543
|
{
|
|
3544
3544
|
icon: "exclamation-circle",
|
|
@@ -3601,7 +3601,7 @@ const S = V(function({
|
|
|
3601
3601
|
const m = j(), w = t ? void 0 : i, v = A(null), N = x == null ? void 0 : x(c), z = Sa(N), T = g == null ? void 0 : g(c, { required: d }), E = k(() => {
|
|
3602
3602
|
const _ = Ae("change", c, void 0);
|
|
3603
3603
|
u && u(c, ""), T && T.onChange(_);
|
|
3604
|
-
}, [T, c, u]),
|
|
3604
|
+
}, [T, c, u]), O = k(
|
|
3605
3605
|
(_) => {
|
|
3606
3606
|
const { files: L } = _.currentTarget, W = Ae(
|
|
3607
3607
|
"change",
|
|
@@ -3694,7 +3694,7 @@ const S = V(function({
|
|
|
3694
3694
|
id: l ?? c,
|
|
3695
3695
|
multiple: s,
|
|
3696
3696
|
name: c,
|
|
3697
|
-
onChange:
|
|
3697
|
+
onChange: O,
|
|
3698
3698
|
onClick: E,
|
|
3699
3699
|
ref: v,
|
|
3700
3700
|
required: void 0,
|
|
@@ -3739,7 +3739,7 @@ const S = V(function({
|
|
|
3739
3739
|
v(L.target.value);
|
|
3740
3740
|
},
|
|
3741
3741
|
[]
|
|
3742
|
-
),
|
|
3742
|
+
), O = k(
|
|
3743
3743
|
(L) => {
|
|
3744
3744
|
const W = w.trim();
|
|
3745
3745
|
W.length && !z.includes(W) && (L.preventDefault(), T([...z, W]), v("")), i && i.onBlur();
|
|
@@ -3793,7 +3793,7 @@ const S = V(function({
|
|
|
3793
3793
|
"aria-required": g,
|
|
3794
3794
|
autoComplete: "off",
|
|
3795
3795
|
id: s,
|
|
3796
|
-
onBlur:
|
|
3796
|
+
onBlur: O,
|
|
3797
3797
|
onChange: E,
|
|
3798
3798
|
onKeyDown: B,
|
|
3799
3799
|
placeholder: z.length === 0 ? d : void 0,
|
|
@@ -3917,7 +3917,7 @@ const S = V(function({
|
|
|
3917
3917
|
const x = j(), y = i ? void 0 : e, m = Z(
|
|
3918
3918
|
() => t < 0 ? 0 : t,
|
|
3919
3919
|
[t]
|
|
3920
|
-
), w = Z(() => h === void 0 ? 0 :
|
|
3920
|
+
), w = Z(() => h === void 0 ? 0 : H.toNumber(h), [h]), v = k(() => {
|
|
3921
3921
|
const E = (w - 10 ** -m).toFixed(m);
|
|
3922
3922
|
u && u(s, Math.max(Number(l), Number(E)));
|
|
3923
3923
|
}, [m, w, l, s, u]), N = k(() => {
|
|
@@ -3931,8 +3931,8 @@ const S = V(function({
|
|
|
3931
3931
|
);
|
|
3932
3932
|
}, [m, w, o, l, s, u]), z = k(
|
|
3933
3933
|
(E) => {
|
|
3934
|
-
const { value:
|
|
3935
|
-
u && u(s, B ? Number(
|
|
3934
|
+
const { value: O } = E.target, B = /\d+/u.test(O) && !H.isEmpty(O);
|
|
3935
|
+
u && u(s, B ? Number(O) : void 0), c && c(E);
|
|
3936
3936
|
},
|
|
3937
3937
|
[s, c, u]
|
|
3938
3938
|
), T = k(
|
|
@@ -4230,7 +4230,7 @@ const S = V(function({
|
|
|
4230
4230
|
defaultCountry: "us",
|
|
4231
4231
|
forceDialCode: !0,
|
|
4232
4232
|
value: c ? String(c) : void 0
|
|
4233
|
-
}),
|
|
4233
|
+
}), O = k(() => {
|
|
4234
4234
|
x((W) => !W), h || m("");
|
|
4235
4235
|
}, [h]), B = k(
|
|
4236
4236
|
(W) => () => {
|
|
@@ -4274,7 +4274,7 @@ const S = V(function({
|
|
|
4274
4274
|
"data-testid": "country-selector",
|
|
4275
4275
|
disabled: e,
|
|
4276
4276
|
id: "country-selector",
|
|
4277
|
-
onClick:
|
|
4277
|
+
onClick: O,
|
|
4278
4278
|
onKeyDown: _,
|
|
4279
4279
|
ref: w.setReference,
|
|
4280
4280
|
children: [
|
|
@@ -4483,7 +4483,7 @@ const S = V(function({
|
|
|
4483
4483
|
$minWidth: s,
|
|
4484
4484
|
children: [
|
|
4485
4485
|
/* @__PURE__ */ n(
|
|
4486
|
-
|
|
4486
|
+
He,
|
|
4487
4487
|
{
|
|
4488
4488
|
description: e,
|
|
4489
4489
|
id: i,
|
|
@@ -4742,9 +4742,12 @@ const S = V(function({
|
|
|
4742
4742
|
...g,
|
|
4743
4743
|
visible: u
|
|
4744
4744
|
};
|
|
4745
|
-
}).sort((g, u) =>
|
|
4745
|
+
}).sort((g, u) => {
|
|
4746
|
+
const h = (i == null ? void 0 : i.indexOf(g.id)) ?? 0, x = (i == null ? void 0 : i.indexOf(u.id)) ?? 0;
|
|
4747
|
+
return Number(u.visible) !== Number(g.visible) ? Number(u.visible) - Number(g.visible) : h - x;
|
|
4748
|
+
});
|
|
4746
4749
|
l(d), a == null || a(i);
|
|
4747
|
-
}, [o, i, a]), p = Z(() =>
|
|
4750
|
+
}, [o, i, a]), p = Z(() => Hn(o, (d) => ((i == null ? void 0 : i.includes(d.id)) ?? !1) !== d.visible), [o, i]);
|
|
4748
4751
|
return {
|
|
4749
4752
|
setColumns: s,
|
|
4750
4753
|
resetToDefault: c,
|
|
@@ -4753,7 +4756,7 @@ const S = V(function({
|
|
|
4753
4756
|
hasChanged: p
|
|
4754
4757
|
};
|
|
4755
4758
|
}, Aa = (e, t) => Z(
|
|
4756
|
-
() =>
|
|
4759
|
+
() => H.debounce(e, t),
|
|
4757
4760
|
[e, t]
|
|
4758
4761
|
), Dl = (e) => {
|
|
4759
4762
|
const [t, i] = F(), a = Aa((r) => {
|
|
@@ -4769,7 +4772,7 @@ const S = V(function({
|
|
|
4769
4772
|
}) => {
|
|
4770
4773
|
const o = Ea({ publicId: r });
|
|
4771
4774
|
return /* @__PURE__ */ n(
|
|
4772
|
-
|
|
4775
|
+
On,
|
|
4773
4776
|
{
|
|
4774
4777
|
alt: e,
|
|
4775
4778
|
cldImg: o,
|
|
@@ -4857,7 +4860,7 @@ const S = V(function({
|
|
|
4857
4860
|
}
|
|
4858
4861
|
|
|
4859
4862
|
`}
|
|
4860
|
-
`, Ba = b.span.attrs({ className: "checkmark" })``,
|
|
4863
|
+
`, Ba = b.span.attrs({ className: "checkmark" })``, Ha = V(function({
|
|
4861
4864
|
defaultChecked: t = !1,
|
|
4862
4865
|
disabled: i = !1,
|
|
4863
4866
|
label: a,
|
|
@@ -4919,7 +4922,7 @@ const S = V(function({
|
|
|
4919
4922
|
width: l,
|
|
4920
4923
|
children: [
|
|
4921
4924
|
/* @__PURE__ */ n($, { alignSelf: "start", display: "flex", width: "fit-content", children: /* @__PURE__ */ n(
|
|
4922
|
-
|
|
4925
|
+
Ha,
|
|
4923
4926
|
{
|
|
4924
4927
|
name: a.name,
|
|
4925
4928
|
onClick: r,
|
|
@@ -4966,7 +4969,7 @@ const S = V(function({
|
|
|
4966
4969
|
transition: 0.2s;
|
|
4967
4970
|
width: 36px;
|
|
4968
4971
|
`}
|
|
4969
|
-
`,
|
|
4972
|
+
`, Oa = b.div`
|
|
4970
4973
|
${({ theme: e }) => `
|
|
4971
4974
|
background-color: ${e.palette.white};
|
|
4972
4975
|
border-radius: 50%;
|
|
@@ -5043,7 +5046,7 @@ const S = V(function({
|
|
|
5043
5046
|
type: "checkbox"
|
|
5044
5047
|
}
|
|
5045
5048
|
),
|
|
5046
|
-
/* @__PURE__ */ n(ce, { "aria-label": "Toggle Switch", id: `${r}Toggle`, children: /* @__PURE__ */ n(
|
|
5049
|
+
/* @__PURE__ */ n(ce, { "aria-label": "Toggle Switch", id: `${r}Toggle`, children: /* @__PURE__ */ n(Oa, {}) })
|
|
5047
5050
|
] }),
|
|
5048
5051
|
l
|
|
5049
5052
|
]
|
|
@@ -5073,7 +5076,7 @@ const S = V(function({
|
|
|
5073
5076
|
minWidth: a,
|
|
5074
5077
|
padding: [1.25, 1.25, 1.25, 1.25],
|
|
5075
5078
|
children: [
|
|
5076
|
-
/* @__PURE__ */ n(
|
|
5079
|
+
/* @__PURE__ */ n(He, { id: e, title: t }),
|
|
5077
5080
|
/* @__PURE__ */ n(
|
|
5078
5081
|
$,
|
|
5079
5082
|
{
|
|
@@ -5237,9 +5240,9 @@ const S = V(function({
|
|
|
5237
5240
|
"pre",
|
|
5238
5241
|
{
|
|
5239
5242
|
className: "line-highlight",
|
|
5240
|
-
"data-line-offset":
|
|
5243
|
+
"data-line-offset": H.isNil(t) || H.isString(t) ? 0 : t.offset + 0.7,
|
|
5241
5244
|
...i !== void 0 ? { "data-line": String(Number(i)) } : {},
|
|
5242
|
-
children:
|
|
5245
|
+
children: H.isNil(t) || H.isString(t) || H.isEmpty(t.content) ? /* @__PURE__ */ n("div", { className: "no-data", children: /* @__PURE__ */ n("p", { children: e }) }) : /* @__PURE__ */ n("code", { className: "language-none", children: t.content })
|
|
5243
5246
|
}
|
|
5244
5247
|
) })), Pl = ({
|
|
5245
5248
|
noCodeMessage: e = "Code snippet not available",
|
|
@@ -5250,7 +5253,7 @@ const S = V(function({
|
|
|
5250
5253
|
const r = j(), [o, l] = F(!1), [s, c] = F(!0), p = k(() => {
|
|
5251
5254
|
l((h) => !h);
|
|
5252
5255
|
}, [l]), d = k(() => {
|
|
5253
|
-
if (
|
|
5256
|
+
if (H.isNil(t) || H.isEmpty(t) || !H.isString(t))
|
|
5254
5257
|
return c(!1), e;
|
|
5255
5258
|
const h = t.split(`
|
|
5256
5259
|
`);
|
|
@@ -6673,7 +6676,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
6673
6676
|
flexDirection: "column",
|
|
6674
6677
|
id: h,
|
|
6675
6678
|
children: [
|
|
6676
|
-
!
|
|
6679
|
+
!H.isEmpty(g) && /* @__PURE__ */ n(
|
|
6677
6680
|
ur,
|
|
6678
6681
|
{
|
|
6679
6682
|
description: l,
|
|
@@ -6684,10 +6687,10 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
6684
6687
|
title: g
|
|
6685
6688
|
}
|
|
6686
6689
|
),
|
|
6687
|
-
(
|
|
6690
|
+
(H.isObject(o) || a) && /* @__PURE__ */ f(Qa, { children: [
|
|
6688
6691
|
a,
|
|
6689
|
-
|
|
6690
|
-
|
|
6692
|
+
H.isObject(o) && H.isString(o.imageSrc) && /* @__PURE__ */ n(ir, { $framed: o.imageFramed, children: /* @__PURE__ */ n(ee, { alt: "modal-img", publicId: o.imageSrc }) }),
|
|
6693
|
+
H.isObject(o) && H.isString(o.imageText) && /* @__PURE__ */ n(C, { size: "sm", children: o.imageText })
|
|
6691
6694
|
] }),
|
|
6692
6695
|
/* @__PURE__ */ n(
|
|
6693
6696
|
ar,
|
|
@@ -7218,7 +7221,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7218
7221
|
`, $t = {
|
|
7219
7222
|
md: { description: "md", title: "lg" },
|
|
7220
7223
|
sm: { description: "sm", title: "xs" }
|
|
7221
|
-
},
|
|
7224
|
+
}, Hl = ({
|
|
7222
7225
|
cancelButton: e = void 0,
|
|
7223
7226
|
confirmButton: t = void 0,
|
|
7224
7227
|
description: i,
|
|
@@ -7265,7 +7268,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7265
7268
|
overflow: hidden auto;
|
|
7266
7269
|
width: 100%;
|
|
7267
7270
|
`}
|
|
7268
|
-
`,
|
|
7271
|
+
`, Ol = ({
|
|
7269
7272
|
alert: e,
|
|
7270
7273
|
cancelLabel: t,
|
|
7271
7274
|
children: i,
|
|
@@ -7290,7 +7293,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7290
7293
|
register: w,
|
|
7291
7294
|
watch: v,
|
|
7292
7295
|
formState: { errors: N, isValid: z, dirtyFields: T }
|
|
7293
|
-
} = h, E = (
|
|
7296
|
+
} = h, E = (O) => vt.map(O, (B) => {
|
|
7294
7297
|
var _;
|
|
7295
7298
|
if (B && Ct(B)) {
|
|
7296
7299
|
const L = B.props.children, W = B.props.name ? Ze(B.type, {
|
|
@@ -7813,7 +7816,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7813
7816
|
height: 260px;
|
|
7814
7817
|
width: 260px;
|
|
7815
7818
|
}
|
|
7816
|
-
`,
|
|
7819
|
+
`, Hr = ({
|
|
7817
7820
|
icon: e
|
|
7818
7821
|
}) => /* @__PURE__ */ n(Br, { children: /* @__PURE__ */ n(
|
|
7819
7822
|
S,
|
|
@@ -7928,9 +7931,9 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7928
7931
|
]
|
|
7929
7932
|
}
|
|
7930
7933
|
),
|
|
7931
|
-
/* @__PURE__ */ n(
|
|
7934
|
+
/* @__PURE__ */ n(Hr, { icon: a })
|
|
7932
7935
|
] });
|
|
7933
|
-
},
|
|
7936
|
+
}, Or = b.button`
|
|
7934
7937
|
${({ theme: e }) => `
|
|
7935
7938
|
align-items: center;
|
|
7936
7939
|
border-left: 3px solid transparent;
|
|
@@ -8046,7 +8049,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
8046
8049
|
onClick: i,
|
|
8047
8050
|
text: a
|
|
8048
8051
|
}) => /* @__PURE__ */ n(
|
|
8049
|
-
|
|
8052
|
+
Or,
|
|
8050
8053
|
{
|
|
8051
8054
|
className: `${e && "disabled"} ${t}`,
|
|
8052
8055
|
disabled: e,
|
|
@@ -10119,7 +10122,7 @@ const xo = {
|
|
|
10119
10122
|
]
|
|
10120
10123
|
}
|
|
10121
10124
|
);
|
|
10122
|
-
},
|
|
10125
|
+
}, Ho = b(Xn.div)`
|
|
10123
10126
|
${({ theme: e }) => `
|
|
10124
10127
|
background-color: ${e.palette.white};
|
|
10125
10128
|
box-shadow: ${e.shadows.lg};
|
|
@@ -10167,7 +10170,7 @@ const xo = {
|
|
|
10167
10170
|
},
|
|
10168
10171
|
!0
|
|
10169
10172
|
), /* @__PURE__ */ n(Zn, { features: Jn, children: /* @__PURE__ */ n(
|
|
10170
|
-
|
|
10173
|
+
Ho,
|
|
10171
10174
|
{
|
|
10172
10175
|
animate: i ? {
|
|
10173
10176
|
display: "block",
|
|
@@ -10301,7 +10304,7 @@ const xo = {
|
|
|
10301
10304
|
] })
|
|
10302
10305
|
}
|
|
10303
10306
|
) });
|
|
10304
|
-
},
|
|
10307
|
+
}, Oo = (e, t) => t >= 50 ? `
|
|
10305
10308
|
${e.palette.gray[200]} 50%,
|
|
10306
10309
|
${e.palette.primary[500]} 50.05%,
|
|
10307
10310
|
${e.palette.primary[500]} ${t}%,
|
|
@@ -10328,7 +10331,7 @@ const xo = {
|
|
|
10328
10331
|
${t >= 0 ? `
|
|
10329
10332
|
${e.palette.primary[500]} ${i}%,
|
|
10330
10333
|
${e.palette.gray[200]} ${i}%
|
|
10331
|
-
` :
|
|
10334
|
+
` : Oo(e, i)}
|
|
10332
10335
|
);
|
|
10333
10336
|
border-radius: ${e.spacing[0.125]};
|
|
10334
10337
|
height: ${e.spacing[0.25]};
|
|
@@ -11066,13 +11069,13 @@ export {
|
|
|
11066
11069
|
Tl as $,
|
|
11067
11070
|
bl as A,
|
|
11068
11071
|
ge as B,
|
|
11069
|
-
|
|
11072
|
+
He as C,
|
|
11070
11073
|
Rl as D,
|
|
11071
11074
|
$ as E,
|
|
11072
11075
|
de as F,
|
|
11073
|
-
|
|
11076
|
+
Hl as G,
|
|
11074
11077
|
Yi as H,
|
|
11075
|
-
|
|
11078
|
+
Ol as I,
|
|
11076
11079
|
Vl as J,
|
|
11077
11080
|
_l as K,
|
|
11078
11081
|
S as L,
|
|
@@ -11153,14 +11156,14 @@ export {
|
|
|
11153
11156
|
gs as au,
|
|
11154
11157
|
fs as av,
|
|
11155
11158
|
ps as aw,
|
|
11156
|
-
|
|
11159
|
+
Ha as ax,
|
|
11157
11160
|
hs as ay,
|
|
11158
11161
|
xe as az,
|
|
11159
11162
|
At as b,
|
|
11160
11163
|
Dl as b0,
|
|
11161
11164
|
Ti as b1,
|
|
11162
11165
|
yl as b2,
|
|
11163
|
-
|
|
11166
|
+
Ht as b3,
|
|
11164
11167
|
je as b4,
|
|
11165
11168
|
Qi as b5,
|
|
11166
11169
|
ot as b6,
|
|
@@ -11168,7 +11171,7 @@ export {
|
|
|
11168
11171
|
Ve as b8,
|
|
11169
11172
|
Ee as b9,
|
|
11170
11173
|
Xt as bA,
|
|
11171
|
-
|
|
11174
|
+
Hr as bB,
|
|
11172
11175
|
Ur as bC,
|
|
11173
11176
|
$o as bD,
|
|
11174
11177
|
ds as bE,
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
fill: ${e.palette.white};
|
|
1298
1298
|
}
|
|
1299
1299
|
`}
|
|
1300
|
-
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,value:d,...u},g){return t.jsxs(Oi,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-hidden":!1,"aria-label":r,disabled:n,id:r,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,ref:g,type:"checkbox",value:d,...u}),t.jsx(C,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),It=({options:e,title:n,checkboxesName:i,defaultCollapsed:r,onChange:a})=>{const o=s.nt(),[l,c]=p.useState(r??!1),d=p.useCallback(()=>{c(u=>!u)},[]);return t.jsxs(b,{bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(C,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(u=>t.jsx(b,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Te,{checked:u.visible,disabled:u.locked,label:u.name,name:i,onChange:a,value:u.name})},u.name))}):void 0]})},Tt=(e,n)=>{const[r,a]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Nt=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},Ue=e=>{const[n,i]=p.useState(!1),r=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},Hi=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=p.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g).sort((g,x)=>g.visible===x.visible?0:g.visible?-1:1)],[n]),[o,l]=p.useState(a),c=p.useCallback(g=>{const x=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...x],y=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),r&&r(h.map(({id:$})=>$))},[r]),d=p.useCallback(()=>{const g=o.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).sort((x,f)=>Number(f.visible)-Number(x.visible));l(g),r==null||r(i)},[o,i,r]),u=p.useMemo(()=>s.some(o,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ue(e),hasChanged:u}},Et=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),_i=e=>{const[n,i]=p.useState(),r=Et(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Vi=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Nt({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},V=p.memo(Vi),Gi=s.dt.label`
|
|
1300
|
+
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,value:d,...u},g){return t.jsxs(Oi,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-hidden":!1,"aria-label":r,disabled:n,id:r,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,ref:g,type:"checkbox",value:d,...u}),t.jsx(C,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),It=({options:e,title:n,checkboxesName:i,defaultCollapsed:r,onChange:a})=>{const o=s.nt(),[l,c]=p.useState(r??!1),d=p.useCallback(()=>{c(u=>!u)},[]);return t.jsxs(b,{bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(C,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(u=>t.jsx(b,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Te,{checked:u.visible,disabled:u.locked,label:u.name,name:i,onChange:a,value:u.name})},u.name))}):void 0]})},Tt=(e,n)=>{const[r,a]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Nt=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},Ue=e=>{const[n,i]=p.useState(!1),r=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},Hi=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=p.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g).sort((g,x)=>g.visible===x.visible?0:g.visible?-1:1)],[n]),[o,l]=p.useState(a),c=p.useCallback(g=>{const x=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...x],y=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),r&&r(h.map(({id:$})=>$))},[r]),d=p.useCallback(()=>{const g=o.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).sort((x,f)=>{const h=(i==null?void 0:i.indexOf(x.id))??0,y=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-y});l(g),r==null||r(i)},[o,i,r]),u=p.useMemo(()=>s.some(o,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ue(e),hasChanged:u}},Et=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),_i=e=>{const[n,i]=p.useState(),r=Et(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Vi=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Nt({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},V=p.memo(Vi),Gi=s.dt.label`
|
|
1301
1301
|
${({theme:e})=>`
|
|
1302
1302
|
align-items: center;
|
|
1303
1303
|
display: flex;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../components-DAOR7gLt.js");exports.useCarousel=e.useCarousel;exports.useClickOutside=e.useClickOutside;exports.useCloudinaryImage=e.useCloudinaryImage;exports.useColumnsModal=e.useColumnsModal;exports.useDebouncedCallback=e.useDebouncedCallback;exports.useModal=e.useModal;exports.useSearch=e.useSearch;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const e=require("./components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const e=require("./components-DAOR7gLt.js"),t=require("./vendor-BiCYkoh5.js");exports.Accordion=e.Accordion;exports.Alert=e.Alert;exports.BaseButtonComponent=e.BaseButtonComponent;exports.BaseComponent=e.BaseComponent;exports.BaseSpanComponent=e.BaseSpanComponent;exports.BaseTextComponent=e.BaseTextComponent;exports.Button=e.Button;exports.ButtonToolbarCenter=e.ButtonToolbarCenter;exports.ButtonToolbarRow=e.ButtonToolbarRow;exports.ButtonToolbarStartRow=e.ButtonToolbarStartRow;exports.CardHeader=e.CardHeader;exports.CardWithImage=e.CardWithImage;exports.CardWithInput=e.CardWithInput;exports.CardWithSelector=e.CardWithSelector;exports.CardWithSwitch=e.CardWithSwitch;exports.Carousel=e.Carousel;exports.Checkbox=e.Checkbox;exports.CloudImage=e.MemoizedImage;exports.CodeSnippet=e.CodeSnippet;exports.Col=e.Col;exports.ColumnsModal=e.ColumnsModal;exports.ComboBox=e.ComboBox;exports.Container=e.Container;exports.CustomThemeProvider=e.CustomThemeProvider;exports.Divider=e.Divider;exports.Editable=e.Editable;exports.EmptyState=e.EmptyState;exports.FilePreview=e.FilePreview;exports.Form=e.Form;exports.FormItem=e.FormItem;exports.Gap=e.Gap;exports.GridContainer=e.GridContainer;exports.GroupSelector=e.GroupSelector;exports.Heading=e.Heading;exports.Icon=e.Icon;exports.IconButton=e.IconButton;exports.IndicatorCard=e.IndicatorCard;exports.InfoSidebar=e.InfoSidebar;exports.Input=e.Input;exports.InputDate=e.InputDate;exports.InputDateRange=e.InputDateRange;exports.InputDateTime=e.InputDateTime;exports.InputFile=e.InputFile;exports.InputNumber=e.InputNumber;exports.InputNumberRange=e.InputNumberRange;exports.InputTags=e.InputTags;exports.InteractiveCard=e.InteractiveCard;exports.LanguageSelector=e.LanguageSelector;exports.Link=e.Link;exports.ListItem=e.ListItem;exports.ListItemsWrapper=e.ListItemsWrapper;exports.LittleFlag=e.LittleFlag;exports.Loading=e.Loading;exports.Logo=e.Logo;exports.LogoCarousel=e.LogoCarousel;exports.Menu=e.Menu;exports.MessageBanner=e.MessageBanner;exports.Modal=e.Modal;exports.ModalConfirm=e.ModalConfirm;exports.ModalFooter=e.ModalFooter;exports.Notification=e.Notification;exports.NotificationSign=e.NotificationSign;exports.NumberInput=e.NumberInput;exports.OAuthSelector=e.OAuthSelector;exports.OptionContainer=e.OptionContainer;exports.OutlineContainer=e.OutlineContainer;exports.PhoneInput=e.PhoneInput;exports.PopUp=e.PopUp;exports.PremiumFeature=e.PremiumFeature;exports.PriorityScore=e.PriorityScore;exports.Progress=e.Progress;exports.RadioButton=e.RadioButton;exports.Row=e.Row;exports.ScrollUpButton=e.ScrollUpButton;exports.Search=e.Search;exports.SearchBar=e.SearchBar;exports.SeverityBadge=e.SeverityBadge;exports.SeverityOverview=e.SeverityOverview;exports.ShowOnHover=e.ShowOnHover;exports.SingleColumFilters=e.SingleColumFilters;exports.SlideOutMenu=e.SlideOutMenu;exports.Slider=e.Slider;exports.Span=e.Span;exports.StepLapse=e.StepLapse;exports.TableButton=e.TableButton;exports.Tabs=e.Tabs;exports.Tag=e.Tag;exports.Text=e.Text;exports.TextArea=e.TextArea;exports.TimeLine=e.TimeLine;exports.TimeLineCard=e.TimeLineCard;exports.Toggle=e.Toggle;exports.ToggleButton=e.ToggleButton;exports.Tooltip=e.Tooltip;exports.Tour=e.Tour;exports.TwoColumnsFilters=e.TwoColumnsFilters;exports.WebForm=e.WebForm;exports.baseStep=e.baseStep;exports.getStyledConfig=e.getStyledConfig;exports.hiddenProps=e.hiddenProps;exports.icons=e.icons;exports.setBorder=e.setBorder;exports.setDisplay=e.setDisplay;exports.setInteraction=e.setInteraction;exports.setMargin=e.setMargin;exports.setPadding=e.setPadding;exports.setPosition=e.setPosition;exports.setText=e.setText;exports.theme=e.theme;exports.uniqueIcons=e.uniqueIcons;exports.useCarousel=e.useCarousel;exports.useClickOutside=e.useClickOutside;exports.useCloudinaryImage=e.useCloudinaryImage;exports.useColumnsModal=e.useColumnsModal;exports.useConfirmDialog=e.useConfirmDialog;exports.useDebouncedCallback=e.useDebouncedCallback;exports.useModal=e.useModal;exports.useSearch=e.useSearch;exports.variantBuilder=e.variantBuilder;exports.useFormContext=t.useFormContext;exports.useWatch=t.useWatch;
|
package/package.json
CHANGED