@fluidattacks/design 3.28.1-pr.2 → 3.28.2-pr.1
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/card/indicator-card/index.js +1 -1
- package/dist/components/card-container/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/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/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/form/inner-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/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-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/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/fields/text-input/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/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/lottie/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/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/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/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/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-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/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/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/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/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/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-DZlt4I9w.js → components-CvQuP_ba.js} +2 -2
- package/dist/{components-cyQVDu8b.mjs → components-t_Dn_Kyx.mjs} +63 -59
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as f, Fragment as Le } from "react/jsx-runtime";
|
|
2
|
-
import ot, { forwardRef as q, useState as L, useCallback as w, useMemo as X, StrictMode as jn, useEffect as
|
|
2
|
+
import ot, { forwardRef as q, useState as L, useCallback as w, useMemo as X, StrictMode as jn, useEffect as U, useRef as M, Fragment as ye, Children as tt, isValidElement as Yt, cloneElement as Kt, createContext as An, useContext as he } from "react";
|
|
3
3
|
import { ThemeProvider as Pn, styled as $, useTheme as N, css as Se, keyframes as Zt } from "styled-components";
|
|
4
4
|
import { u as Xt, a as On, b as Wn, c as Hn, d as Mn, l as B, e as at, f as Bn, o as lt, s as Vn, _ as j, $ as Un, g as Gn, h as _n, i as Yn, j as Kn, k as Zn, m as Xn, n as qn, p as Jn, q as qt, C as st, r as Qn, t as ei, v as ti, w as mt, x as je, y as ni, z as ii, A as Jt, B as Qt, D as Ae, E as ri, F as oi, G as ai, H as li, I as si, J as re, K as ci, L as en, M as di, N as tn, O as pi, P as gi, Q as ui, R as hi, S as fi, T as yi, U as ct, V as $i, W as wt, X as vt, Y as kt, Z as bi, a0 as xi, a1 as mi, a2 as wi, a3 as vi, a4 as me, a5 as ki, a6 as Ci, a7 as Si, a8 as nn, a9 as zi, aa as Ii, ab as Ti, ac as Di, ad as Ni, ah as Fi, ai as Ei, aj as Ri, ak as Li, al as ji, am as Ai, an as Pi, ao as Oi, ap as Wi, aq as Hi, ar as Mi, as as nt, at as Bi, au as Ct, av as Vi, aw as St, ax as Ui } from "./vendor-jwPPfCAA.mjs";
|
|
5
5
|
import { createPortal as $e } from "react-dom";
|
|
@@ -1357,14 +1357,14 @@ const R = q(function({
|
|
|
1357
1357
|
const [u, h] = L(s), y = w(() => {
|
|
1358
1358
|
h(!1);
|
|
1359
1359
|
}, []);
|
|
1360
|
-
return
|
|
1360
|
+
return U(() => {
|
|
1361
1361
|
const m = setTimeout(() => {
|
|
1362
1362
|
a == null || a(!0), t && y();
|
|
1363
1363
|
}, l * 1e3);
|
|
1364
1364
|
return () => {
|
|
1365
1365
|
clearTimeout(m);
|
|
1366
1366
|
};
|
|
1367
|
-
}, [t, y, l, a]),
|
|
1367
|
+
}, [t, y, l, a]), U(() => {
|
|
1368
1368
|
h(s);
|
|
1369
1369
|
}, [s, h]), /* @__PURE__ */ i(
|
|
1370
1370
|
b,
|
|
@@ -2769,7 +2769,7 @@ const R = q(function({
|
|
|
2769
2769
|
)
|
|
2770
2770
|
] });
|
|
2771
2771
|
}), pe = (e, t, n = !1, r) => {
|
|
2772
|
-
|
|
2772
|
+
U(() => {
|
|
2773
2773
|
var a;
|
|
2774
2774
|
const o = (s) => {
|
|
2775
2775
|
e && !e.contains(s.target) && !(r != null && r.contains(s.target)) && t();
|
|
@@ -2894,7 +2894,7 @@ const R = q(function({
|
|
|
2894
2894
|
var bt;
|
|
2895
2895
|
const T = N(), E = t ? void 0 : r, z = (e == null ? void 0 : e.value) ?? C, [W, D] = L(
|
|
2896
2896
|
((bt = g.find((H) => H.value === z)) == null ? void 0 : bt.name) ?? ""
|
|
2897
|
-
), [O,
|
|
2897
|
+
), [O, G] = L(z), [Y, J] = L(g), [Z, _] = L(!1), { contains: ae } = Kn({ sensitivity: "base" }), be = M(null), Ze = M(null), Xe = M(null), qe = M(null), Je = M(null), Sn = X(() => g.toSorted((H, Q) => {
|
|
2898
2898
|
const ee = Array.from(n ?? []), xe = ee.includes(H.value), xt = ee.includes(Q.value);
|
|
2899
2899
|
return xe && !xt ? 1 : !xe && xt ? -1 : 0;
|
|
2900
2900
|
}).map(
|
|
@@ -2911,7 +2911,7 @@ const R = q(function({
|
|
|
2911
2911
|
), [ae, n, W, g, Z]), zn = w(
|
|
2912
2912
|
(H) => {
|
|
2913
2913
|
const Q = H.split(/,|\s/u).slice(-1)[0].trim();
|
|
2914
|
-
D(p ? Q : H), H === "" || H.endsWith(",") ?
|
|
2914
|
+
D(p ? Q : H), H === "" || H.endsWith(",") ? _(!0) : (_(!1), G((ee) => {
|
|
2915
2915
|
const xe = H === "" ? "" : ee;
|
|
2916
2916
|
return e && e.onChange(xe), h && h(H), xe;
|
|
2917
2917
|
}), J(
|
|
@@ -2924,18 +2924,18 @@ const R = q(function({
|
|
|
2924
2924
|
), In = w(
|
|
2925
2925
|
(H) => {
|
|
2926
2926
|
var Q;
|
|
2927
|
-
D(((Q = g.find((ee) => ee.value === H)) == null ? void 0 : Q.name) ?? ""),
|
|
2927
|
+
D(((Q = g.find((ee) => ee.value === H)) == null ? void 0 : Q.name) ?? ""), G(H ? String(H) : ""), e && e.onChange(H), h && h(H ? String(H) : ""), J(g);
|
|
2928
2928
|
},
|
|
2929
2929
|
[g, e, h]
|
|
2930
2930
|
), $t = w(
|
|
2931
2931
|
(H) => {
|
|
2932
|
-
H.key === "Enter" && H.preventDefault(),
|
|
2932
|
+
H.key === "Enter" && H.preventDefault(), _(!1);
|
|
2933
2933
|
},
|
|
2934
2934
|
[]
|
|
2935
2935
|
), Tn = w(() => {
|
|
2936
2936
|
u && u(), e && e.onBlur();
|
|
2937
2937
|
}, [e, u]), Dn = w(() => {
|
|
2938
|
-
|
|
2938
|
+
_(!0);
|
|
2939
2939
|
}, []), ie = Xn({
|
|
2940
2940
|
allowsCustomValue: p,
|
|
2941
2941
|
allowsEmptyCollection: !0,
|
|
@@ -2950,7 +2950,7 @@ const R = q(function({
|
|
|
2950
2950
|
onKeyDown: $t,
|
|
2951
2951
|
onKeyUp: Dn,
|
|
2952
2952
|
onOpenChange(H, Q) {
|
|
2953
|
-
|
|
2953
|
+
_(
|
|
2954
2954
|
H && (Q === "manual" || Q === "focus")
|
|
2955
2955
|
), H && setTimeout(() => {
|
|
2956
2956
|
var ee;
|
|
@@ -2984,11 +2984,11 @@ const R = q(function({
|
|
|
2984
2984
|
},
|
|
2985
2985
|
!0,
|
|
2986
2986
|
Je.current
|
|
2987
|
-
),
|
|
2987
|
+
), U(() => {
|
|
2988
2988
|
var H;
|
|
2989
2989
|
if ((c === !1 || !z) && !p) {
|
|
2990
2990
|
const Q = ((H = g.find((ee) => ee.value === z)) == null ? void 0 : H.name) ?? "";
|
|
2991
|
-
D(Q),
|
|
2991
|
+
D(Q), G(Q);
|
|
2992
2992
|
}
|
|
2993
2993
|
}, [z, g, c, p]), /* @__PURE__ */ f(
|
|
2994
2994
|
te,
|
|
@@ -4108,14 +4108,14 @@ const R = q(function({
|
|
|
4108
4108
|
weight: k,
|
|
4109
4109
|
...S
|
|
4110
4110
|
}) => {
|
|
4111
|
-
const { required: T, onBlur: E, onChange: z } = S, W = N(), D = e ? void 0 : a, [O,
|
|
4112
|
-
(
|
|
4113
|
-
|
|
4111
|
+
const { required: T, onBlur: E, onChange: z } = S, W = N(), D = e ? void 0 : a, [O, G] = L(""), Y = w(
|
|
4112
|
+
(_) => {
|
|
4113
|
+
G(_.target.value), z == null || z(_);
|
|
4114
4114
|
},
|
|
4115
4115
|
[z]
|
|
4116
4116
|
), J = c && d && !e && O.trim() !== "", Z = w(
|
|
4117
|
-
(
|
|
4118
|
-
|
|
4117
|
+
(_) => {
|
|
4118
|
+
_.key === "Enter" && _.preventDefault();
|
|
4119
4119
|
},
|
|
4120
4120
|
[]
|
|
4121
4121
|
);
|
|
@@ -4193,7 +4193,7 @@ const R = q(function({
|
|
|
4193
4193
|
}
|
|
4194
4194
|
),
|
|
4195
4195
|
I ? /* @__PURE__ */ i("datalist", { id: `list_${g}`, children: I.map(
|
|
4196
|
-
(
|
|
4196
|
+
(_) => /* @__PURE__ */ i("option", { value: _ }, _)
|
|
4197
4197
|
) }) : void 0
|
|
4198
4198
|
]
|
|
4199
4199
|
}
|
|
@@ -4588,7 +4588,7 @@ const R = q(function({
|
|
|
4588
4588
|
}) => {
|
|
4589
4589
|
const m = N(), x = e ? void 0 : t, [I, v] = L(""), C = c ? h : n == null ? void 0 : n.value, k = X(() => C && typeof C == "string" ? C.split(",").filter(Boolean) : [], [C]), S = w(
|
|
4590
4590
|
(D) => {
|
|
4591
|
-
const
|
|
4591
|
+
const G = [...new Set(D.filter(Boolean))].join(","), Y = ve("change", l, G);
|
|
4592
4592
|
n && n.onChange(Y), c && c(Y);
|
|
4593
4593
|
},
|
|
4594
4594
|
[n, l, c]
|
|
@@ -4780,27 +4780,27 @@ const R = q(function({
|
|
|
4780
4780
|
const v = N(), C = n ? void 0 : e, k = t < 0 ? 0 : t, [S, T] = L(
|
|
4781
4781
|
m ? j.toNumber(m) : I ? j.toNumber(I) : 0
|
|
4782
4782
|
), E = w(() => {
|
|
4783
|
-
const
|
|
4783
|
+
const G = (S - 10 ** -k).toFixed(k), Y = Math.max(Number(s), Number(G));
|
|
4784
4784
|
h && h(l, Y, { shouldDirty: !0 }), T(Y);
|
|
4785
|
-
const J = ve("change", l,
|
|
4785
|
+
const J = ve("change", l, G);
|
|
4786
4786
|
c && c(J);
|
|
4787
4787
|
}, [S, k, s, h, l, c]), z = w(() => {
|
|
4788
|
-
const
|
|
4788
|
+
const G = (S + 10 ** -k).toFixed(k), Y = Math.min(
|
|
4789
4789
|
Number(a),
|
|
4790
|
-
Number(
|
|
4790
|
+
Number(G) > Number(s) ? Number(G) : Number(s)
|
|
4791
4791
|
);
|
|
4792
4792
|
h && h(l, Y, { shouldDirty: !0 }), T(Y);
|
|
4793
|
-
const J = ve("change", l,
|
|
4793
|
+
const J = ve("change", l, G);
|
|
4794
4794
|
c && c(J);
|
|
4795
4795
|
}, [S, k, a, s, h, l, c]), W = w(
|
|
4796
|
-
(
|
|
4797
|
-
const { value: Y } =
|
|
4798
|
-
h && h(l, J ? Y : void 0), c && c(
|
|
4796
|
+
(G) => {
|
|
4797
|
+
const { value: Y } = G.target, J = /\d+/u.test(Y) && !j.isEmpty(Y);
|
|
4798
|
+
h && h(l, J ? Y : void 0), c && c(G), T(Number(Y));
|
|
4799
4799
|
},
|
|
4800
4800
|
[l, c, h]
|
|
4801
4801
|
), D = w(
|
|
4802
|
-
(
|
|
4803
|
-
|
|
4802
|
+
(G) => {
|
|
4803
|
+
G.stopPropagation(), G.key === "Enter" && !B.isEmpty(G.currentTarget.value) && (d == null || d(B.toNumber(G.currentTarget.value)));
|
|
4804
4804
|
},
|
|
4805
4805
|
[d]
|
|
4806
4806
|
), O = () => /* @__PURE__ */ i(
|
|
@@ -5172,22 +5172,22 @@ const R = q(function({
|
|
|
5172
5172
|
[]
|
|
5173
5173
|
), O = w(
|
|
5174
5174
|
(Z) => {
|
|
5175
|
-
Z.preventDefault(), x((
|
|
5175
|
+
Z.preventDefault(), x((_) => !_), m || v("");
|
|
5176
5176
|
},
|
|
5177
5177
|
[m]
|
|
5178
|
-
),
|
|
5178
|
+
), G = w(
|
|
5179
5179
|
(Z) => () => {
|
|
5180
5180
|
W(Z), x(!1), v("");
|
|
5181
5181
|
},
|
|
5182
5182
|
[W, x]
|
|
5183
5183
|
), Y = w(
|
|
5184
5184
|
(Z) => {
|
|
5185
|
-
Z.key.length === 1 ? v((
|
|
5185
|
+
Z.key.length === 1 ? v((_) => _ + Z.key) : Z.key === "Backspace" && v((_) => _.slice(0, -1));
|
|
5186
5186
|
},
|
|
5187
5187
|
[]
|
|
5188
5188
|
), J = wt.filter((Z) => {
|
|
5189
|
-
const { name:
|
|
5190
|
-
return
|
|
5189
|
+
const { name: _ } = vt(Z);
|
|
5190
|
+
return _.toLowerCase().includes(I.toLowerCase());
|
|
5191
5191
|
});
|
|
5192
5192
|
return pe(
|
|
5193
5193
|
C.floating.current,
|
|
@@ -5276,11 +5276,11 @@ const R = q(function({
|
|
|
5276
5276
|
),
|
|
5277
5277
|
m && $e(
|
|
5278
5278
|
/* @__PURE__ */ i(vo, { ref: C.setFloating, style: k, children: J.map((Z) => {
|
|
5279
|
-
const { dialCode:
|
|
5279
|
+
const { dialCode: _, iso2: ae, name: be } = vt(Z);
|
|
5280
5280
|
return /* @__PURE__ */ f(
|
|
5281
5281
|
ko,
|
|
5282
5282
|
{
|
|
5283
|
-
onClick:
|
|
5283
|
+
onClick: G(ae),
|
|
5284
5284
|
value: ae,
|
|
5285
5285
|
children: [
|
|
5286
5286
|
/* @__PURE__ */ i(kt, { iso2: ae, size: "16px" }),
|
|
@@ -5291,7 +5291,7 @@ const R = q(function({
|
|
|
5291
5291
|
color: g.palette.gray[400],
|
|
5292
5292
|
size: "md",
|
|
5293
5293
|
textAlign: "end",
|
|
5294
|
-
children: "+" +
|
|
5294
|
+
children: "+" + _
|
|
5295
5295
|
}
|
|
5296
5296
|
)
|
|
5297
5297
|
]
|
|
@@ -5594,13 +5594,13 @@ const R = q(function({
|
|
|
5594
5594
|
height: auto;
|
|
5595
5595
|
`, Io = (e, t) => {
|
|
5596
5596
|
const [r, o] = L(0), [a, s] = L(0);
|
|
5597
|
-
return
|
|
5597
|
+
return U(() => {
|
|
5598
5598
|
a === 100 && (() => {
|
|
5599
5599
|
o(
|
|
5600
5600
|
(c) => c === t - 1 ? 0 : c + 1
|
|
5601
5601
|
);
|
|
5602
5602
|
})();
|
|
5603
|
-
}, [a, t]),
|
|
5603
|
+
}, [a, t]), U(() => {
|
|
5604
5604
|
const l = setInterval(() => {
|
|
5605
5605
|
s(
|
|
5606
5606
|
(c) => c === 100 ? 0 : c + 1
|
|
@@ -6296,7 +6296,7 @@ const R = q(function({
|
|
|
6296
6296
|
noCodeMessage: e = "Code snippet not available",
|
|
6297
6297
|
snippet: t,
|
|
6298
6298
|
specific: n
|
|
6299
|
-
}) => (
|
|
6299
|
+
}) => (U(() => {
|
|
6300
6300
|
ki.highlightAll();
|
|
6301
6301
|
}, []), /* @__PURE__ */ i(bn, { "data-private": !0, children: /* @__PURE__ */ i(
|
|
6302
6302
|
"pre",
|
|
@@ -6580,7 +6580,7 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
6580
6580
|
const a = N(), s = w(() => {
|
|
6581
6581
|
o == null || o(), n.close();
|
|
6582
6582
|
}, [n, o]);
|
|
6583
|
-
return
|
|
6583
|
+
return U(() => {
|
|
6584
6584
|
const l = (c) => {
|
|
6585
6585
|
c.key === "Escape" && s();
|
|
6586
6586
|
};
|
|
@@ -7126,7 +7126,11 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
7126
7126
|
value: o,
|
|
7127
7127
|
...a
|
|
7128
7128
|
}) => {
|
|
7129
|
-
const s = M(null), l = N(), [c, d] = L(!1), [p, g] = L(o ?? ""), { refs: u, floatingStyles: h } = ct()
|
|
7129
|
+
const s = M(null), l = N(), [c, d] = L(!1), [p, g] = L(o ?? ""), { refs: u, floatingStyles: h } = ct();
|
|
7130
|
+
U(() => {
|
|
7131
|
+
g(o ?? "");
|
|
7132
|
+
}, [o]);
|
|
7133
|
+
const y = w(() => {
|
|
7130
7134
|
d((C) => !C);
|
|
7131
7135
|
}, []), m = w(
|
|
7132
7136
|
(C) => {
|
|
@@ -7216,7 +7220,7 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
7216
7220
|
), p = w(() => {
|
|
7217
7221
|
o.current && (o.current.reset(), c(""));
|
|
7218
7222
|
}, [o]);
|
|
7219
|
-
return
|
|
7223
|
+
return U(() => {
|
|
7220
7224
|
s(
|
|
7221
7225
|
e.filter(
|
|
7222
7226
|
(g) => {
|
|
@@ -7737,7 +7741,7 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
7737
7741
|
},
|
|
7738
7742
|
[n]
|
|
7739
7743
|
);
|
|
7740
|
-
return
|
|
7744
|
+
return U(() => {
|
|
7741
7745
|
l(e), ba(e, p);
|
|
7742
7746
|
}, [e, l, p]), /* @__PURE__ */ f(
|
|
7743
7747
|
"div",
|
|
@@ -7837,7 +7841,7 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
7837
7841
|
},
|
|
7838
7842
|
[g, m]
|
|
7839
7843
|
);
|
|
7840
|
-
return
|
|
7844
|
+
return U(() => {
|
|
7841
7845
|
const v = e.reduce(
|
|
7842
7846
|
(C, { label: k, filterOptions: S }) => {
|
|
7843
7847
|
const T = S.flatMap(({ value: W, minValue: D, maxValue: O }) => [
|
|
@@ -7935,7 +7939,7 @@ ${y[8]}...` : (y.length < 8 && d(!1), t);
|
|
|
7935
7939
|
variant: "ghost"
|
|
7936
7940
|
}
|
|
7937
7941
|
);
|
|
7938
|
-
return
|
|
7942
|
+
return U(() => {
|
|
7939
7943
|
const u = (h) => {
|
|
7940
7944
|
const y = p.current;
|
|
7941
7945
|
y && !y.contains(h.target) && r.close();
|
|
@@ -8262,7 +8266,7 @@ const Te = ({
|
|
|
8262
8266
|
},
|
|
8263
8267
|
[u, s, t]
|
|
8264
8268
|
);
|
|
8265
|
-
return
|
|
8269
|
+
return U(() => {
|
|
8266
8270
|
const k = r.flatMap((E) => E.filterOptions), S = n();
|
|
8267
8271
|
if ((() => {
|
|
8268
8272
|
if (!S) return !1;
|
|
@@ -8277,7 +8281,7 @@ const Te = ({
|
|
|
8277
8281
|
h(E);
|
|
8278
8282
|
} else
|
|
8279
8283
|
k.flatMap((z) => z.value).filter(Boolean).length > 0 || k.flatMap((z) => z.options).filter((z) => (z == null ? void 0 : z.checked) === !0).length > 0 ? (h(k), p && et(k, t)) : h(k);
|
|
8280
|
-
}, [r, h, t, n, p]),
|
|
8284
|
+
}, [r, h, t, n, p]), U(() => {
|
|
8281
8285
|
o && e !== void 0 && o(Fa(e, u)), a == null || a(u);
|
|
8282
8286
|
}, [e, u, o, a]), { Filters: () => /* @__PURE__ */ f(
|
|
8283
8287
|
b,
|
|
@@ -8329,7 +8333,7 @@ const Te = ({
|
|
|
8329
8333
|
id: h = "modal-container"
|
|
8330
8334
|
}) => {
|
|
8331
8335
|
const y = N(), [m, x] = L(void 0), I = M(null), v = M(!1), C = Array.isArray(p) && p.length > 0, k = n ?? o;
|
|
8332
|
-
|
|
8336
|
+
U(() => {
|
|
8333
8337
|
if (C && !v.current && I.current) {
|
|
8334
8338
|
const T = I.current.getBoundingClientRect().height;
|
|
8335
8339
|
T > 50 && (x(T), v.current = !0);
|
|
@@ -8474,7 +8478,7 @@ const Te = ({
|
|
|
8474
8478
|
var p;
|
|
8475
8479
|
t(!1), r(void 0), (p = o.current) == null || p.call(o, !1);
|
|
8476
8480
|
}, []);
|
|
8477
|
-
return
|
|
8481
|
+
return U(() => {
|
|
8478
8482
|
a.setIsOpen(e);
|
|
8479
8483
|
}, [e, a]), { ConfirmDialog: ({ id: p = "confirm-dialog-modal", children: g }) => /* @__PURE__ */ f(
|
|
8480
8484
|
vn,
|
|
@@ -8919,7 +8923,7 @@ const Te = ({
|
|
|
8919
8923
|
},
|
|
8920
8924
|
[u, h]
|
|
8921
8925
|
);
|
|
8922
|
-
|
|
8926
|
+
U(() => {
|
|
8923
8927
|
p(t), h(g);
|
|
8924
8928
|
}, [t, h, g]);
|
|
8925
8929
|
const m = /* @__PURE__ */ i(
|
|
@@ -9279,7 +9283,7 @@ const Te = ({
|
|
|
9279
9283
|
/* @__PURE__ */ i("li", { className: "commit-info", children: /* @__PURE__ */ i(
|
|
9280
9284
|
de,
|
|
9281
9285
|
{
|
|
9282
|
-
href: `https://
|
|
9286
|
+
href: `https://github.com/fluidattacks/universe/tree/${t}`,
|
|
9283
9287
|
iconPosition: "hidden",
|
|
9284
9288
|
children: /* @__PURE__ */ i(F, { color: s.palette.gray[400], size: "sm", children: `commit : ${n}` })
|
|
9285
9289
|
}
|
|
@@ -9315,7 +9319,7 @@ const Te = ({
|
|
|
9315
9319
|
const c = N(), [d, p] = L(o), g = w(() => {
|
|
9316
9320
|
p(!1), s == null || s();
|
|
9317
9321
|
}, [s]);
|
|
9318
|
-
|
|
9322
|
+
U(() => {
|
|
9319
9323
|
p(o);
|
|
9320
9324
|
}, [o, p]);
|
|
9321
9325
|
const u = /* @__PURE__ */ f(tl, { onClick: t, children: [
|
|
@@ -10242,7 +10246,7 @@ const Te = ({
|
|
|
10242
10246
|
zIndex: a = 100
|
|
10243
10247
|
}) => {
|
|
10244
10248
|
const [s, l] = L(!1), [c, d] = L(null), p = N();
|
|
10245
|
-
|
|
10249
|
+
U(() => {
|
|
10246
10250
|
d(document.getElementById(e)), c == null || c.addEventListener("scroll", () => {
|
|
10247
10251
|
l(c.scrollTop > n);
|
|
10248
10252
|
});
|
|
@@ -10516,7 +10520,7 @@ const Te = ({
|
|
|
10516
10520
|
},
|
|
10517
10521
|
[o]
|
|
10518
10522
|
);
|
|
10519
|
-
return
|
|
10523
|
+
return U(() => {
|
|
10520
10524
|
const d = ["mousedown", "touchstart"], p = (g) => {
|
|
10521
10525
|
var x;
|
|
10522
10526
|
const u = g.target, h = document.getElementById("helpBtn"), y = document.getElementById("filter-btn"), m = (u === h || ((h == null ? void 0 : h.contains(u)) ?? !1) || u === y || (y == null ? void 0 : y.contains(u))) ?? !1;
|
|
@@ -10988,7 +10992,7 @@ const Te = ({
|
|
|
10988
10992
|
}), p = w(() => {
|
|
10989
10993
|
d.toggle();
|
|
10990
10994
|
}, [d]);
|
|
10991
|
-
return
|
|
10995
|
+
return U(() => {
|
|
10992
10996
|
o(
|
|
10993
10997
|
t.getVisibleLeafColumns().filter((g) => g.id !== "selection").length
|
|
10994
10998
|
);
|
|
@@ -11649,7 +11653,7 @@ const Te = ({
|
|
|
11649
11653
|
},
|
|
11650
11654
|
!0,
|
|
11651
11655
|
l.floating.current
|
|
11652
|
-
),
|
|
11656
|
+
), U(() => (window.addEventListener("scrollend", p, !0), () => {
|
|
11653
11657
|
window.removeEventListener("scrollend", p, !0);
|
|
11654
11658
|
}), [p]), /* @__PURE__ */ f(ye, { children: [
|
|
11655
11659
|
/* @__PURE__ */ f(
|
|
@@ -11879,7 +11883,7 @@ const Te = ({
|
|
|
11879
11883
|
},
|
|
11880
11884
|
[p]
|
|
11881
11885
|
);
|
|
11882
|
-
return
|
|
11886
|
+
return U(() => {
|
|
11883
11887
|
t.setPageIndex(0);
|
|
11884
11888
|
}, [t]), /* @__PURE__ */ i(
|
|
11885
11889
|
ge.Provider,
|
|
@@ -12110,7 +12114,7 @@ const Te = ({
|
|
|
12110
12114
|
] });
|
|
12111
12115
|
}, Tc = ({ items: e }) => {
|
|
12112
12116
|
const t = M(null), [n, r] = L("long");
|
|
12113
|
-
return
|
|
12117
|
+
return U(() => {
|
|
12114
12118
|
t.current && r(t.current.offsetWidth <= 1100 ? "small" : "long");
|
|
12115
12119
|
}, []), /* @__PURE__ */ i(b, { ref: t, width: "100%", children: /* @__PURE__ */ i(ys, { $size: n, children: e.map((o, a) => /* @__PURE__ */ i(
|
|
12116
12120
|
$s,
|
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-CvQuP_ba.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-CvQuP_ba.js"),t=require("./vendor-Cg77_nBF.js");exports.Accordion=e.Accordion;exports.Alert=e.Alert;exports.AppliedFilters=e.AppliedFilters;exports.Avatar=e.Avatar;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.CardContainer=e.CardContainer;exports.CardHeader=e.CardHeader;exports.CardWithImage=e.CardWithImage;exports.CardWithInput=e.CardWithInput;exports.CardWithOptions=e.CardWithOptions;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.ColumFilters=e.ColumFilters;exports.ColumnsModal=e.ColumnsModal;exports.ComboBox=e.ComboBox;exports.Container=e.Container;exports.CopyButton=e.CopyButton;exports.CustomThemeProvider=e.CustomThemeProvider;exports.Divider=e.Divider;exports.Dropdown=e.Dropdown;exports.Editable=e.Editable;exports.EmptyState=e.EmptyState;exports.ErrorMessage=e.ErrorMessage;exports.FilePreview=e.FilePreview;exports.Form=e.Form;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.InnerForm=e.InnerForm;exports.InputArray=e.InputArray;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.Link=e.Link;exports.ListItem=e.ListItem;exports.ListItemsWrapper=e.ListItemsWrapper;exports.LittleFlag=e.LittleFlag;exports.Loading=e.Loading;exports.Logo=e.Logo;exports.Lottie=e.Lottie;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.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.ProgressBar=e.ProgressBar;exports.ProgressIndicator=e.ProgressIndicator;exports.ProgressStep=e.ProgressStep;exports.RadioButton=e.RadioButton;exports.Row=e.Row;exports.ScrollUpButton=e.ScrollUpButton;exports.Search=e.Search;exports.SeverityBadge=e.SeverityBadge;exports.SeverityOverview=e.SeverityOverview;exports.ShowOnHover=e.ShowOnHover;exports.SlideOutMenu=e.SlideOutMenu;exports.Slider=e.Slider;exports.Span=e.Span;exports.StepLapse=e.StepLapse;exports.Table=e.Table;exports.TableButton=e.TableButton;exports.Tabs=e.Tabs;exports.Tag=e.Tag;exports.Text=e.Text;exports.TextArea=e.TextArea;exports.TextInput=e.TextInput;exports.TimeLine=e.TimeLine;exports.TimeLineCard=e.TimeLineCard;exports.Toggle=e.Toggle;exports.Tooltip=e.Tooltip;exports.Tour=e.Tour;exports.baseStep=e.baseStep;exports.formatCheckValues=e.formatCheckValues;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.useCarousel=e.useCarousel;exports.useClickOutside=e.useClickOutside;exports.useCloudinaryImage=e.useCloudinaryImage;exports.useColumnsModal=e.useColumnsModal;exports.useConditionsDialog=e.useConditionsDialog;exports.useConfirmDialog=e.useConfirmDialog;exports.useDebouncedCallback=e.useDebouncedCallback;exports.useFilters=e.useFilters;exports.useModal=e.useModal;exports.useSearch=e.useSearch;exports.variantBuilder=e.variantBuilder;exports.Controller=t.Controller;exports.useController=t.useController;exports.useFieldArray=t.useFieldArray;exports.useFormContext=t.useFormContext;exports.useWatch=t.useWatch;
|
package/package.json
CHANGED