@fluidattacks/design 3.8.13-pr-03 → 3.8.13-pr-05
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-r2id4ENo.mjs → components-Dxb6_Zi7.mjs} +76 -81
- package/dist/{components-BmLZ_CC-.js → components-p5aX0K53.js} +2 -2
- 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 O, $ 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 On, Y as Hn, 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
|
+
), Oi = 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: Hi } = 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 ?? Hi(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(Oi, { $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
|
+
}), Oe = ({
|
|
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 (O.isNil(e)) return "";
|
|
1876
1876
|
const t = e.split(".");
|
|
1877
|
-
return (t.length > 1 ?
|
|
1878
|
-
}, Ki = (e, t) =>
|
|
1877
|
+
return (t.length > 1 ? O.last(t) : "").toLowerCase();
|
|
1878
|
+
}, Ki = (e, t) => O.isUndefined(t) ? !1 : O.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
|
+
Oe,
|
|
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
|
+
`, Ot = ({
|
|
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
|
+
Ot,
|
|
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, H] = 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), H((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) ?? ""), H(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
|
+
`, Ht = 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
|
+
${Ht}
|
|
2644
2644
|
`, ia = b.td`
|
|
2645
2645
|
${({ theme: e }) => `
|
|
2646
|
-
${
|
|
2646
|
+
${Ht}
|
|
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
|
+
`, He = 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(He, { 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: O.isNil(x) || O.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
|
+
(H) => {
|
|
3146
|
+
T.onChange && T.onChange(H), p && p(s, _t(H.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(He, { 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(He, { 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: O.isNil(d) || O.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(Ot, { 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(), H = 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: H,
|
|
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" : ""} ${H ? "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": H ? "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
|
+
H ? /* @__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]), H = 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: H,
|
|
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
|
+
), H = 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: H,
|
|
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 : O.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: H } = E.target, B = /\d+/u.test(H) && !O.isEmpty(H);
|
|
3935
|
+
u && u(s, B ? Number(H) : 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
|
+
}), H = 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: H,
|
|
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
|
+
Oe,
|
|
4487
4487
|
{
|
|
4488
4488
|
description: e,
|
|
4489
4489
|
id: i,
|
|
@@ -4742,12 +4742,9 @@ const S = V(function({
|
|
|
4742
4742
|
...g,
|
|
4743
4743
|
visible: u
|
|
4744
4744
|
};
|
|
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 h - x;
|
|
4748
|
-
});
|
|
4745
|
+
}).sort((g, u) => Number(u.visible) - Number(g.visible));
|
|
4749
4746
|
l(d), a == null || a(i);
|
|
4750
|
-
}, [o, i, a]), p = Z(() =>
|
|
4747
|
+
}, [o, i, a]), p = Z(() => On(o, (d) => ((i == null ? void 0 : i.includes(d.id)) ?? !1) !== d.visible), [o, i]);
|
|
4751
4748
|
return {
|
|
4752
4749
|
setColumns: s,
|
|
4753
4750
|
resetToDefault: c,
|
|
@@ -4756,7 +4753,7 @@ const S = V(function({
|
|
|
4756
4753
|
hasChanged: p
|
|
4757
4754
|
};
|
|
4758
4755
|
}, Aa = (e, t) => Z(
|
|
4759
|
-
() =>
|
|
4756
|
+
() => O.debounce(e, t),
|
|
4760
4757
|
[e, t]
|
|
4761
4758
|
), Dl = (e) => {
|
|
4762
4759
|
const [t, i] = F(), a = Aa((r) => {
|
|
@@ -4772,7 +4769,7 @@ const S = V(function({
|
|
|
4772
4769
|
}) => {
|
|
4773
4770
|
const o = Ea({ publicId: r });
|
|
4774
4771
|
return /* @__PURE__ */ n(
|
|
4775
|
-
|
|
4772
|
+
Hn,
|
|
4776
4773
|
{
|
|
4777
4774
|
alt: e,
|
|
4778
4775
|
cldImg: o,
|
|
@@ -4860,7 +4857,7 @@ const S = V(function({
|
|
|
4860
4857
|
}
|
|
4861
4858
|
|
|
4862
4859
|
`}
|
|
4863
|
-
`, Ba = b.span.attrs({ className: "checkmark" })``,
|
|
4860
|
+
`, Ba = b.span.attrs({ className: "checkmark" })``, Oa = V(function({
|
|
4864
4861
|
defaultChecked: t = !1,
|
|
4865
4862
|
disabled: i = !1,
|
|
4866
4863
|
label: a,
|
|
@@ -4922,7 +4919,7 @@ const S = V(function({
|
|
|
4922
4919
|
width: l,
|
|
4923
4920
|
children: [
|
|
4924
4921
|
/* @__PURE__ */ n($, { alignSelf: "start", display: "flex", width: "fit-content", children: /* @__PURE__ */ n(
|
|
4925
|
-
|
|
4922
|
+
Oa,
|
|
4926
4923
|
{
|
|
4927
4924
|
name: a.name,
|
|
4928
4925
|
onClick: r,
|
|
@@ -4969,7 +4966,7 @@ const S = V(function({
|
|
|
4969
4966
|
transition: 0.2s;
|
|
4970
4967
|
width: 36px;
|
|
4971
4968
|
`}
|
|
4972
|
-
`,
|
|
4969
|
+
`, Ha = b.div`
|
|
4973
4970
|
${({ theme: e }) => `
|
|
4974
4971
|
background-color: ${e.palette.white};
|
|
4975
4972
|
border-radius: 50%;
|
|
@@ -5046,7 +5043,7 @@ const S = V(function({
|
|
|
5046
5043
|
type: "checkbox"
|
|
5047
5044
|
}
|
|
5048
5045
|
),
|
|
5049
|
-
/* @__PURE__ */ n(ce, { "aria-label": "Toggle Switch", id: `${r}Toggle`, children: /* @__PURE__ */ n(
|
|
5046
|
+
/* @__PURE__ */ n(ce, { "aria-label": "Toggle Switch", id: `${r}Toggle`, children: /* @__PURE__ */ n(Ha, {}) })
|
|
5050
5047
|
] }),
|
|
5051
5048
|
l
|
|
5052
5049
|
]
|
|
@@ -5076,7 +5073,7 @@ const S = V(function({
|
|
|
5076
5073
|
minWidth: a,
|
|
5077
5074
|
padding: [1.25, 1.25, 1.25, 1.25],
|
|
5078
5075
|
children: [
|
|
5079
|
-
/* @__PURE__ */ n(
|
|
5076
|
+
/* @__PURE__ */ n(Oe, { id: e, title: t }),
|
|
5080
5077
|
/* @__PURE__ */ n(
|
|
5081
5078
|
$,
|
|
5082
5079
|
{
|
|
@@ -5240,9 +5237,9 @@ const S = V(function({
|
|
|
5240
5237
|
"pre",
|
|
5241
5238
|
{
|
|
5242
5239
|
className: "line-highlight",
|
|
5243
|
-
"data-line-offset":
|
|
5240
|
+
"data-line-offset": O.isNil(t) || O.isString(t) ? 0 : t.offset + 0.7,
|
|
5244
5241
|
...i !== void 0 ? { "data-line": String(Number(i)) } : {},
|
|
5245
|
-
children:
|
|
5242
|
+
children: O.isNil(t) || O.isString(t) || O.isEmpty(t.content) ? /* @__PURE__ */ n("div", { className: "no-data", children: /* @__PURE__ */ n("p", { children: e }) }) : /* @__PURE__ */ n("code", { className: "language-none", children: t.content })
|
|
5246
5243
|
}
|
|
5247
5244
|
) })), Pl = ({
|
|
5248
5245
|
noCodeMessage: e = "Code snippet not available",
|
|
@@ -5253,7 +5250,7 @@ const S = V(function({
|
|
|
5253
5250
|
const r = j(), [o, l] = F(!1), [s, c] = F(!0), p = k(() => {
|
|
5254
5251
|
l((h) => !h);
|
|
5255
5252
|
}, [l]), d = k(() => {
|
|
5256
|
-
if (
|
|
5253
|
+
if (O.isNil(t) || O.isEmpty(t) || !O.isString(t))
|
|
5257
5254
|
return c(!1), e;
|
|
5258
5255
|
const h = t.split(`
|
|
5259
5256
|
`);
|
|
@@ -6177,9 +6174,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
6177
6174
|
checkboxesName: g,
|
|
6178
6175
|
defaultCollapsed: h === 0,
|
|
6179
6176
|
onChange: i,
|
|
6180
|
-
options: u
|
|
6181
|
-
(y, m) => Number(m.visible) - Number(y.visible)
|
|
6182
|
-
),
|
|
6177
|
+
options: u,
|
|
6183
6178
|
title: g
|
|
6184
6179
|
},
|
|
6185
6180
|
x
|
|
@@ -6678,7 +6673,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
6678
6673
|
flexDirection: "column",
|
|
6679
6674
|
id: h,
|
|
6680
6675
|
children: [
|
|
6681
|
-
!
|
|
6676
|
+
!O.isEmpty(g) && /* @__PURE__ */ n(
|
|
6682
6677
|
ur,
|
|
6683
6678
|
{
|
|
6684
6679
|
description: l,
|
|
@@ -6689,10 +6684,10 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
6689
6684
|
title: g
|
|
6690
6685
|
}
|
|
6691
6686
|
),
|
|
6692
|
-
(
|
|
6687
|
+
(O.isObject(o) || a) && /* @__PURE__ */ f(Qa, { children: [
|
|
6693
6688
|
a,
|
|
6694
|
-
|
|
6695
|
-
|
|
6689
|
+
O.isObject(o) && O.isString(o.imageSrc) && /* @__PURE__ */ n(ir, { $framed: o.imageFramed, children: /* @__PURE__ */ n(ee, { alt: "modal-img", publicId: o.imageSrc }) }),
|
|
6690
|
+
O.isObject(o) && O.isString(o.imageText) && /* @__PURE__ */ n(C, { size: "sm", children: o.imageText })
|
|
6696
6691
|
] }),
|
|
6697
6692
|
/* @__PURE__ */ n(
|
|
6698
6693
|
ar,
|
|
@@ -7223,7 +7218,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7223
7218
|
`, $t = {
|
|
7224
7219
|
md: { description: "md", title: "lg" },
|
|
7225
7220
|
sm: { description: "sm", title: "xs" }
|
|
7226
|
-
},
|
|
7221
|
+
}, Ol = ({
|
|
7227
7222
|
cancelButton: e = void 0,
|
|
7228
7223
|
confirmButton: t = void 0,
|
|
7229
7224
|
description: i,
|
|
@@ -7270,7 +7265,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7270
7265
|
overflow: hidden auto;
|
|
7271
7266
|
width: 100%;
|
|
7272
7267
|
`}
|
|
7273
|
-
`,
|
|
7268
|
+
`, Hl = ({
|
|
7274
7269
|
alert: e,
|
|
7275
7270
|
cancelLabel: t,
|
|
7276
7271
|
children: i,
|
|
@@ -7295,7 +7290,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7295
7290
|
register: w,
|
|
7296
7291
|
watch: v,
|
|
7297
7292
|
formState: { errors: N, isValid: z, dirtyFields: T }
|
|
7298
|
-
} = h, E = (
|
|
7293
|
+
} = h, E = (H) => vt.map(H, (B) => {
|
|
7299
7294
|
var _;
|
|
7300
7295
|
if (B && Ct(B)) {
|
|
7301
7296
|
const L = B.props.children, W = B.props.name ? Ze(B.type, {
|
|
@@ -7818,7 +7813,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7818
7813
|
height: 260px;
|
|
7819
7814
|
width: 260px;
|
|
7820
7815
|
}
|
|
7821
|
-
`,
|
|
7816
|
+
`, Or = ({
|
|
7822
7817
|
icon: e
|
|
7823
7818
|
}) => /* @__PURE__ */ n(Br, { children: /* @__PURE__ */ n(
|
|
7824
7819
|
S,
|
|
@@ -7933,9 +7928,9 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
7933
7928
|
]
|
|
7934
7929
|
}
|
|
7935
7930
|
),
|
|
7936
|
-
/* @__PURE__ */ n(
|
|
7931
|
+
/* @__PURE__ */ n(Or, { icon: a })
|
|
7937
7932
|
] });
|
|
7938
|
-
},
|
|
7933
|
+
}, Hr = b.button`
|
|
7939
7934
|
${({ theme: e }) => `
|
|
7940
7935
|
align-items: center;
|
|
7941
7936
|
border-left: 3px solid transparent;
|
|
@@ -8051,7 +8046,7 @@ ${h[8]}...` : (h.length < 8 && c(!1), t);
|
|
|
8051
8046
|
onClick: i,
|
|
8052
8047
|
text: a
|
|
8053
8048
|
}) => /* @__PURE__ */ n(
|
|
8054
|
-
|
|
8049
|
+
Hr,
|
|
8055
8050
|
{
|
|
8056
8051
|
className: `${e && "disabled"} ${t}`,
|
|
8057
8052
|
disabled: e,
|
|
@@ -10124,7 +10119,7 @@ const xo = {
|
|
|
10124
10119
|
]
|
|
10125
10120
|
}
|
|
10126
10121
|
);
|
|
10127
|
-
},
|
|
10122
|
+
}, Oo = b(Xn.div)`
|
|
10128
10123
|
${({ theme: e }) => `
|
|
10129
10124
|
background-color: ${e.palette.white};
|
|
10130
10125
|
box-shadow: ${e.shadows.lg};
|
|
@@ -10172,7 +10167,7 @@ const xo = {
|
|
|
10172
10167
|
},
|
|
10173
10168
|
!0
|
|
10174
10169
|
), /* @__PURE__ */ n(Zn, { features: Jn, children: /* @__PURE__ */ n(
|
|
10175
|
-
|
|
10170
|
+
Oo,
|
|
10176
10171
|
{
|
|
10177
10172
|
animate: i ? {
|
|
10178
10173
|
display: "block",
|
|
@@ -10306,7 +10301,7 @@ const xo = {
|
|
|
10306
10301
|
] })
|
|
10307
10302
|
}
|
|
10308
10303
|
) });
|
|
10309
|
-
},
|
|
10304
|
+
}, Ho = (e, t) => t >= 50 ? `
|
|
10310
10305
|
${e.palette.gray[200]} 50%,
|
|
10311
10306
|
${e.palette.primary[500]} 50.05%,
|
|
10312
10307
|
${e.palette.primary[500]} ${t}%,
|
|
@@ -10333,7 +10328,7 @@ const xo = {
|
|
|
10333
10328
|
${t >= 0 ? `
|
|
10334
10329
|
${e.palette.primary[500]} ${i}%,
|
|
10335
10330
|
${e.palette.gray[200]} ${i}%
|
|
10336
|
-
` :
|
|
10331
|
+
` : Ho(e, i)}
|
|
10337
10332
|
);
|
|
10338
10333
|
border-radius: ${e.spacing[0.125]};
|
|
10339
10334
|
height: ${e.spacing[0.25]};
|
|
@@ -11071,13 +11066,13 @@ export {
|
|
|
11071
11066
|
Tl as $,
|
|
11072
11067
|
bl as A,
|
|
11073
11068
|
ge as B,
|
|
11074
|
-
|
|
11069
|
+
Oe as C,
|
|
11075
11070
|
Rl as D,
|
|
11076
11071
|
$ as E,
|
|
11077
11072
|
de as F,
|
|
11078
|
-
|
|
11073
|
+
Ol as G,
|
|
11079
11074
|
Yi as H,
|
|
11080
|
-
|
|
11075
|
+
Hl as I,
|
|
11081
11076
|
Vl as J,
|
|
11082
11077
|
_l as K,
|
|
11083
11078
|
S as L,
|
|
@@ -11158,14 +11153,14 @@ export {
|
|
|
11158
11153
|
gs as au,
|
|
11159
11154
|
fs as av,
|
|
11160
11155
|
ps as aw,
|
|
11161
|
-
|
|
11156
|
+
Oa as ax,
|
|
11162
11157
|
hs as ay,
|
|
11163
11158
|
xe as az,
|
|
11164
11159
|
At as b,
|
|
11165
11160
|
Dl as b0,
|
|
11166
11161
|
Ti as b1,
|
|
11167
11162
|
yl as b2,
|
|
11168
|
-
|
|
11163
|
+
Ot as b3,
|
|
11169
11164
|
je as b4,
|
|
11170
11165
|
Qi as b5,
|
|
11171
11166
|
ot as b6,
|
|
@@ -11173,7 +11168,7 @@ export {
|
|
|
11173
11168
|
Ve as b8,
|
|
11174
11169
|
Ee as b9,
|
|
11175
11170
|
Xt as bA,
|
|
11176
|
-
|
|
11171
|
+
Or as bB,
|
|
11177
11172
|
Ur as bC,
|
|
11178
11173
|
$o as bD,
|
|
11179
11174
|
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)=>
|
|
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`
|
|
1301
1301
|
${({theme:e})=>`
|
|
1302
1302
|
align-items: center;
|
|
1303
1303
|
display: flex;
|
|
@@ -1876,7 +1876,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1876
1876
|
border-radius: ${e.spacing[.5]};
|
|
1877
1877
|
width: 250px;
|
|
1878
1878
|
`}
|
|
1879
|
-
`,ae=p.forwardRef(function({name:n,smallSearch:i=!1,value:r,...a},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:u,floatingStyles:g}=s.useFloating(),x=p.useCallback(()=>{d(h=>!h)},[]);J(u.floating.current,()=>{d(!1)},!0);const f=t.jsxs(wr,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(mr,{...a,id:n,name:n,ref:o,value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(B,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(p.Fragment,{children:[t.jsx(B,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:u.setReference,variant:"ghost"}),c?t.jsx(jr,{ref:u.setFloating,style:g,children:f}):void 0]}):f}),Vt=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const[a,o]=p.useState([]),[l,c]=p.useState(""),d=p.useRef(null),u=p.useCallback(x=>{const{value:f}=x.target;c(f)},[]),g=p.useCallback(()=>{d.current&&(d.current.reset(),c(""))},[d]);return p.useEffect(()=>{o(e.filter(x=>{var f;return r==="grouped"?x.name.toLowerCase().includes(l.toLowerCase())||((f=x.group)==null?void 0:f.includes(l.toLowerCase())):x.name.toLowerCase().includes(l.toLowerCase())}))},[e,l,r]),r==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:u,type:"search"})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(_t(a)).map(([x,f],h)=>{const y=`li-checkbox${x}`;return t.jsx(It,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f
|
|
1879
|
+
`,ae=p.forwardRef(function({name:n,smallSearch:i=!1,value:r,...a},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:u,floatingStyles:g}=s.useFloating(),x=p.useCallback(()=>{d(h=>!h)},[]);J(u.floating.current,()=>{d(!1)},!0);const f=t.jsxs(wr,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(mr,{...a,id:n,name:n,ref:o,value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(B,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(p.Fragment,{children:[t.jsx(B,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:u.setReference,variant:"ghost"}),c?t.jsx(jr,{ref:u.setFloating,style:g,children:f}):void 0]}):f}),Vt=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const[a,o]=p.useState([]),[l,c]=p.useState(""),d=p.useRef(null),u=p.useCallback(x=>{const{value:f}=x.target;c(f)},[]),g=p.useCallback(()=>{d.current&&(d.current.reset(),c(""))},[d]);return p.useEffect(()=>{o(e.filter(x=>{var f;return r==="grouped"?x.name.toLowerCase().includes(l.toLowerCase())||((f=x.group)==null?void 0:f.includes(l.toLowerCase())):x.name.toLowerCase().includes(l.toLowerCase())}))},[e,l,r]),r==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:u,type:"search"})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(_t(a)).map(([x,f],h)=>{const y=`li-checkbox${x}`;return t.jsx(It,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},y)})})]}):t.jsxs(b,{height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:u,type:"search"})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:a.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(yr,{selected:x.visible,value:f,width:"content",children:t.jsx(Te,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},kr=({_containerId:e="portals",title:n,modalRef:i,variant:r})=>{const a=s.nt(),o=p.useRef(null),[l,c]=p.useState(void 0),d=p.useCallback(x=>{const{checked:f,value:h}=x.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),u=p.useCallback(x=>{const f=i.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=p.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?G.createPortal(t.jsx(fe,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(he,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{size:"sm",children:n}),t.jsx(B,{icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Vt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:r}),t.jsx(b,{borderLeft:`2px solid ${a.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Ht,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:u,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(D,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to Default"}),t.jsx(D,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Cr=s.dt(be)`
|
|
1880
1880
|
padding: 8px;
|
|
1881
1881
|
min-width: unset;
|
|
1882
1882
|
`,vr=s.dt(be)`
|
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-p5aX0K53.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-p5aX0K53.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;
|