@fluidattacks/design 3.39.2 → 3.39.4
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/advanced-badge/index.js +1 -1
- package/dist/components/advisories-card/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/fa-tag/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/filters/active-filters/active-filter/index.js +1 -1
- package/dist/components/filters/active-filters/index.js +1 -1
- package/dist/components/filters/context/index.js +1 -1
- package/dist/components/filters/filters-menu/index.js +1 -1
- package/dist/components/filters/index.js +1 -1
- package/dist/components/filters/options-menu/index.js +1 -1
- package/dist/components/filters/options-menu/options/index.js +1 -1
- package/dist/components/filters/search/no-matches/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/indicator-card-db/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/default/index.js +1 -1
- package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-section/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/item-card-db/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/paginator-db/btn/index.js +1 -1
- package/dist/components/paginator-db/dropdown/index.js +1 -1
- package/dist/components/paginator-db/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-cards/card/index.js +1 -1
- package/dist/components/priority-cards/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/rank-position/icon/index.js +1 -1
- package/dist/components/rank-position/index.js +1 -1
- package/dist/components/rules-card/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-dropdown/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/table-content/index.js +1 -1
- package/dist/components/table-content/item-content/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/tree/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/weaknesses-card/index.js +1 -1
- package/dist/{components-BVuyyQ0U.mjs → components-DiVe1dJO.mjs} +173 -144
- package/dist/context/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, jsxs as h, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import rt, { forwardRef as te, useState as j, useCallback as w, useEffect as _, useMemo as X, useRef as M, StrictMode as Gi, Fragment as fe, Children as zt, isValidElement as On, cloneElement as Vn, createContext as Wn, useContext as ye } from "react";
|
|
3
3
|
import Ui, { ThemeProvider as Yi, styled as m, useTheme as R, css as He, keyframes as Pn } from "styled-components";
|
|
4
|
-
import { C as Xi, s as Zi, _ as O, u as Bn, p as It, A as Ki, l as qi, a as Ji, c as Et, b as
|
|
5
|
-
import { createPortal as
|
|
4
|
+
import { C as Xi, s as Zi, _ as O, u as Bn, p as It, A as Ki, l as qi, a as Ji, c as Et, b as Ve, d as Qi, e as er, f as tr, g as nr, h as G, i as ot, j as Hn, o as at, k as ir, $ as rr, m as or, n as ar, q as lr, r as sr, t as cr, v as dr, w as pr, x as gr, y as Mn, z as _n, B as Lt, D as ur, E as hr, F as fr, G as en, H as lt, I as yr, J as $r, K as Gn, L as st, M as Un, N as br, O as xr, P as mr, Q as wr, R as vr, S as q, T as kr, U as Yn, V as Cr, W as Xn, X as Zn, Y as Sr, Z as zr, a0 as Ir, a1 as Tr, a2 as Dr, a3 as Nr, a4 as At, a5 as Fr, a6 as tn, a7 as nn, a8 as rn, a9 as je, aa as Er, ab as Kn, ac as qn, ad as Jn, ae as Qn, af as ei, ag as Lr, ah as ti, ai as Ar, aj as Rr, ak as jr, al as Or, am as Vr, an as Wr, ao as Pr, as as ni, at as Br, au as Hr, av as Mr, aw as _r, ax as Gr, ay as Ur, az as Yr, aA as Xr, aB as Zr, aC as Kr, aD as Tt, aE as qr, aF as on, aG as Jr, aH as an, aI as Qr } from "./vendor-B1TUvK03.mjs";
|
|
5
|
+
import { createPortal as Ee } from "react-dom";
|
|
6
6
|
import { Link as eo, useLocation as to, NavLink as no } from "react-router-dom";
|
|
7
7
|
const me = (e) => ({
|
|
8
8
|
getVariant: (t, n) => e(t)[n]
|
|
@@ -262,7 +262,7 @@ const me = (e) => ({
|
|
|
262
262
|
"minus",
|
|
263
263
|
"check",
|
|
264
264
|
"circle-question"
|
|
265
|
-
],
|
|
265
|
+
], V = {
|
|
266
266
|
typography: uo,
|
|
267
267
|
shadows: ho,
|
|
268
268
|
breakpoints: fo,
|
|
@@ -281,20 +281,20 @@ const me = (e) => ({
|
|
|
281
281
|
}
|
|
282
282
|
}, Wd = ({
|
|
283
283
|
children: e
|
|
284
|
-
}) => /* @__PURE__ */ i(Yi, { theme:
|
|
284
|
+
}) => /* @__PURE__ */ i(Yi, { theme: V, children: e }), P = (e, t) => t === void 0 ? "" : `${e}: ${t};`, ct = (e) => {
|
|
285
285
|
const t = e.py ?? e.pt ?? 0, n = e.px ?? e.pr ?? 0, r = e.py ?? e.pb ?? 0, o = e.px ?? e.pl ?? 0;
|
|
286
286
|
if (e.padding) {
|
|
287
287
|
const [a, l, s, c] = e.padding;
|
|
288
|
-
return `padding: ${
|
|
288
|
+
return `padding: ${V.spacing[a]} ${V.spacing[l]} ${V.spacing[s]} ${V.spacing[c]};`;
|
|
289
289
|
}
|
|
290
|
-
return `padding: ${
|
|
290
|
+
return `padding: ${V.spacing[t]} ${V.spacing[n]} ${V.spacing[r]} ${V.spacing[o]};`;
|
|
291
291
|
}, dt = (e) => {
|
|
292
292
|
const t = e.my ?? e.mt ?? 0, n = e.mx ?? e.mr ?? 0, r = e.my ?? e.mb ?? 0, o = e.mx ?? e.ml ?? 0;
|
|
293
293
|
if (e.margin) {
|
|
294
294
|
const [a, l, s, c] = e.margin;
|
|
295
|
-
return `margin: ${
|
|
295
|
+
return `margin: ${V.spacing[a]} ${V.spacing[l]} ${V.spacing[s]} ${V.spacing[c]};`;
|
|
296
296
|
}
|
|
297
|
-
return `margin: ${
|
|
297
|
+
return `margin: ${V.spacing[t]} ${V.spacing[n]} ${V.spacing[r]} ${V.spacing[o]};`;
|
|
298
298
|
}, pt = (e) => {
|
|
299
299
|
const t = P("position", e.position), n = P("top", e.top), r = P("right", e.right), o = P("bottom", e.bottom), a = P("left", e.left), l = P("z-index", e.zIndex);
|
|
300
300
|
return `
|
|
@@ -322,10 +322,10 @@ const me = (e) => ({
|
|
|
322
322
|
${bo(e.scroll)}
|
|
323
323
|
` : "", n = P("visibility", e.visibility), r = P("display", e.display), o = P("height", e.height), a = P("width", e.width), l = P("max-height", e.maxHeight), s = P("max-width", e.maxWidth), c = P("min-height", e.minHeight), p = P("min-width", e.minWidth), d = P(
|
|
324
324
|
"box-shadow",
|
|
325
|
-
e.shadow ?
|
|
325
|
+
e.shadow ? V.shadows[e.shadow] : void 0
|
|
326
326
|
), g = P(
|
|
327
327
|
"gap",
|
|
328
|
-
e.gap === void 0 ? void 0 :
|
|
328
|
+
e.gap === void 0 ? void 0 : V.spacing[e.gap]
|
|
329
329
|
), u = P("background-color", e.bgColor), f = P("background", e.bgGradient), y = P("flex-direction", e.flexDirection), $ = P("flex-grow", e.flexGrow), x = P("justify-content", e.justify), C = P("justify-self", e.justifySelf), k = P("align-items", e.alignItems), S = P("align-self", e.alignSelf), v = P("flex-wrap", e.wrap);
|
|
330
330
|
return `
|
|
331
331
|
${t}
|
|
@@ -368,7 +368,7 @@ const me = (e) => ({
|
|
|
368
368
|
}, ft = (e) => {
|
|
369
369
|
const t = P("cursor", e.cursor), n = P("border-color", e.borderColorHover), r = P("background-color", e.bgColorHover), o = P(
|
|
370
370
|
"box-shadow",
|
|
371
|
-
e.shadowHover === void 0 ? void 0 :
|
|
371
|
+
e.shadowHover === void 0 ? void 0 : V.shadows[e.shadowHover]
|
|
372
372
|
), a = P("transition", e.transition);
|
|
373
373
|
return `
|
|
374
374
|
${t}
|
|
@@ -567,16 +567,20 @@ const me = (e) => ({
|
|
|
567
567
|
$content: n = void 0,
|
|
568
568
|
$display: r = "inline",
|
|
569
569
|
$fontWeight: o = "regular",
|
|
570
|
-
$
|
|
571
|
-
$
|
|
570
|
+
$overflow: a = "unset",
|
|
571
|
+
$size: l,
|
|
572
|
+
$lineSpacing: s = 1.25,
|
|
573
|
+
$whiteSpace: c = "pre-line"
|
|
572
574
|
}) => `
|
|
573
575
|
color: ${t};
|
|
574
576
|
display: ${r};
|
|
575
577
|
font-family: ${e.typography.type.primary};
|
|
576
|
-
font-size: ${e.typography.text[
|
|
578
|
+
font-size: ${e.typography.text[l]};
|
|
577
579
|
font-weight: ${e.typography.weight[o]};
|
|
578
|
-
line-height: ${e.spacing[
|
|
580
|
+
line-height: ${e.spacing[s]};
|
|
579
581
|
max-width: 100%;
|
|
582
|
+
overflow: ${a};
|
|
583
|
+
white-space: ${c};
|
|
580
584
|
width: ${r === "block" ? "100%" : "auto"};
|
|
581
585
|
|
|
582
586
|
${n === void 0 ? "" : `&::after { content: "${n}"; }`}
|
|
@@ -625,7 +629,7 @@ const me = (e) => ({
|
|
|
625
629
|
children: n
|
|
626
630
|
}
|
|
627
631
|
);
|
|
628
|
-
}),
|
|
632
|
+
}), Fe = te(function({
|
|
629
633
|
children: t,
|
|
630
634
|
color: n,
|
|
631
635
|
content: r,
|
|
@@ -635,11 +639,13 @@ const me = (e) => ({
|
|
|
635
639
|
letterSpacing: s,
|
|
636
640
|
lineSpacing: c,
|
|
637
641
|
lineSpacingSm: p,
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
642
|
+
overflow: d,
|
|
643
|
+
whiteSpace: g,
|
|
644
|
+
size: u,
|
|
645
|
+
sizeMd: f,
|
|
646
|
+
sizeSm: y,
|
|
647
|
+
...$
|
|
648
|
+
}, x) {
|
|
643
649
|
return /* @__PURE__ */ i(
|
|
644
650
|
wo,
|
|
645
651
|
{
|
|
@@ -651,11 +657,13 @@ const me = (e) => ({
|
|
|
651
657
|
$letterSpacing: s,
|
|
652
658
|
$lineSpacing: c,
|
|
653
659
|
$lineSpacingSm: p,
|
|
654
|
-
$
|
|
655
|
-
$
|
|
656
|
-
$
|
|
657
|
-
|
|
658
|
-
|
|
660
|
+
$overflow: d,
|
|
661
|
+
$size: u,
|
|
662
|
+
$sizeMd: f,
|
|
663
|
+
$sizeSm: y,
|
|
664
|
+
$whiteSpace: g,
|
|
665
|
+
ref: x,
|
|
666
|
+
...$,
|
|
659
667
|
children: t
|
|
660
668
|
}
|
|
661
669
|
);
|
|
@@ -1342,29 +1350,29 @@ const A = te(function({
|
|
|
1342
1350
|
] });
|
|
1343
1351
|
}, _o = {
|
|
1344
1352
|
critical: {
|
|
1345
|
-
bgColor:
|
|
1346
|
-
colorL:
|
|
1347
|
-
colorR:
|
|
1353
|
+
bgColor: V.palette.primary[700],
|
|
1354
|
+
colorL: V.palette.gray[800],
|
|
1355
|
+
colorR: V.palette.white
|
|
1348
1356
|
},
|
|
1349
1357
|
disable: {
|
|
1350
|
-
bgColor:
|
|
1351
|
-
colorL:
|
|
1352
|
-
colorR:
|
|
1358
|
+
bgColor: V.palette.gray[200],
|
|
1359
|
+
colorL: V.palette.gray[400],
|
|
1360
|
+
colorR: V.palette.gray[400]
|
|
1353
1361
|
},
|
|
1354
1362
|
high: {
|
|
1355
|
-
bgColor:
|
|
1356
|
-
colorL:
|
|
1357
|
-
colorR:
|
|
1363
|
+
bgColor: V.palette.error[500],
|
|
1364
|
+
colorL: V.palette.gray[800],
|
|
1365
|
+
colorR: V.palette.white
|
|
1358
1366
|
},
|
|
1359
1367
|
low: {
|
|
1360
|
-
bgColor:
|
|
1361
|
-
colorL:
|
|
1362
|
-
colorR:
|
|
1368
|
+
bgColor: V.palette.warning[200],
|
|
1369
|
+
colorL: V.palette.gray[800],
|
|
1370
|
+
colorR: V.palette.gray[800]
|
|
1363
1371
|
},
|
|
1364
1372
|
medium: {
|
|
1365
|
-
bgColor:
|
|
1366
|
-
colorL:
|
|
1367
|
-
colorR:
|
|
1373
|
+
bgColor: V.palette.warning[500],
|
|
1374
|
+
colorL: V.palette.gray[800],
|
|
1375
|
+
colorR: V.palette.gray[800]
|
|
1368
1376
|
}
|
|
1369
1377
|
}, Rt = ({
|
|
1370
1378
|
textL: e,
|
|
@@ -1464,7 +1472,7 @@ const A = te(function({
|
|
|
1464
1472
|
children: [
|
|
1465
1473
|
o.flatId,
|
|
1466
1474
|
/* @__PURE__ */ h(
|
|
1467
|
-
|
|
1475
|
+
Fe,
|
|
1468
1476
|
{
|
|
1469
1477
|
color: u.palette.gray[800],
|
|
1470
1478
|
display: "inline",
|
|
@@ -1849,7 +1857,7 @@ const A = te(function({
|
|
|
1849
1857
|
hide: f = g === "" && u === "" && p === void 0,
|
|
1850
1858
|
width: y
|
|
1851
1859
|
}) => {
|
|
1852
|
-
const $ = R(), [x, C] = j(!1), { refs: k, floatingStyles: S, context: v, placement: z } =
|
|
1860
|
+
const $ = R(), [x, C] = j(!1), { refs: k, floatingStyles: S, context: v, placement: z } = Ve({
|
|
1853
1861
|
middleware: [
|
|
1854
1862
|
Hn({
|
|
1855
1863
|
fallbackAxisSideDirection: "start"
|
|
@@ -1892,7 +1900,7 @@ const A = te(function({
|
|
|
1892
1900
|
) : e
|
|
1893
1901
|
}
|
|
1894
1902
|
),
|
|
1895
|
-
x && !f &&
|
|
1903
|
+
x && !f && Ee(
|
|
1896
1904
|
/* @__PURE__ */ h(
|
|
1897
1905
|
ea,
|
|
1898
1906
|
{
|
|
@@ -2435,7 +2443,7 @@ const A = te(function({
|
|
|
2435
2443
|
}) => {
|
|
2436
2444
|
const $ = f.length > 25 && G.isEmpty(u + l), x = `${f.slice(0, 25)}...`;
|
|
2437
2445
|
return /* @__PURE__ */ h(
|
|
2438
|
-
|
|
2446
|
+
Fe,
|
|
2439
2447
|
{
|
|
2440
2448
|
className: "gap-0.5",
|
|
2441
2449
|
"data-testid": a,
|
|
@@ -2510,7 +2518,7 @@ const A = te(function({
|
|
|
2510
2518
|
}, D) {
|
|
2511
2519
|
const F = C !== void 0, T = `${a}-tooltip`, L = w(() => {
|
|
2512
2520
|
o && gi(o, r);
|
|
2513
|
-
}, [r, o]),
|
|
2521
|
+
}, [r, o]), W = /* @__PURE__ */ h(
|
|
2514
2522
|
pi,
|
|
2515
2523
|
{
|
|
2516
2524
|
$variant: z,
|
|
@@ -2574,9 +2582,9 @@ const A = te(function({
|
|
|
2574
2582
|
place: k,
|
|
2575
2583
|
tip: C,
|
|
2576
2584
|
width: I,
|
|
2577
|
-
children:
|
|
2585
|
+
children: W
|
|
2578
2586
|
}
|
|
2579
|
-
) :
|
|
2587
|
+
) : W;
|
|
2580
2588
|
}), Gd = te(function({
|
|
2581
2589
|
children: t,
|
|
2582
2590
|
onClick: n,
|
|
@@ -3572,13 +3580,13 @@ const A = te(function({
|
|
|
3572
3580
|
weight: D
|
|
3573
3581
|
}) => {
|
|
3574
3582
|
var qt, Jt;
|
|
3575
|
-
const F = R(), T = t ? void 0 : r, L = (e == null ? void 0 : e.value) ?? I, [
|
|
3583
|
+
const F = R(), T = t ? void 0 : r, L = (e == null ? void 0 : e.value) ?? I, [W, B] = j(
|
|
3576
3584
|
((qt = g.find((H) => H.value === L)) == null ? void 0 : qt.name) ?? ""
|
|
3577
|
-
), [Z, J] = j(L), [ee, ie] = j(g), [ve, Y] = j(!1), { contains: K } = sr({ sensitivity: "base" }), ue = M(null), ke = M(null),
|
|
3578
|
-
const se = Array.from(n ?? []),
|
|
3579
|
-
return
|
|
3585
|
+
), [Z, J] = j(L), [ee, ie] = j(g), [ve, Y] = j(!1), { contains: K } = sr({ sensitivity: "base" }), ue = M(null), ke = M(null), Le = M(null), Ae = M(null), _e = M(null), Ri = X(() => g.toSorted((H, oe) => {
|
|
3586
|
+
const se = Array.from(n ?? []), Re = se.includes(H.value), Qt = se.includes(oe.value);
|
|
3587
|
+
return Re && !Qt ? 1 : !Re && Qt ? -1 : 0;
|
|
3580
3588
|
}).map(
|
|
3581
|
-
(H) => K(H.name,
|
|
3589
|
+
(H) => K(H.name, W) || ve ? /* @__PURE__ */ i(
|
|
3582
3590
|
cr,
|
|
3583
3591
|
{
|
|
3584
3592
|
"aria-label": H.value,
|
|
@@ -3588,12 +3596,12 @@ const A = te(function({
|
|
|
3588
3596
|
},
|
|
3589
3597
|
H.value
|
|
3590
3598
|
) : null
|
|
3591
|
-
), [K, n,
|
|
3599
|
+
), [K, n, W, g, ve]), ji = w(
|
|
3592
3600
|
(H) => {
|
|
3593
3601
|
const oe = H.split(/,|\s/u).slice(-1)[0].trim();
|
|
3594
3602
|
B(d ? oe : H), H === "" || H.endsWith(",") ? Y(!0) : (Y(!1), J((se) => {
|
|
3595
|
-
const
|
|
3596
|
-
return e && e.onChange(
|
|
3603
|
+
const Re = H === "" ? "" : se;
|
|
3604
|
+
return e && e.onChange(Re), f && f(H), Re;
|
|
3597
3605
|
}), ie(
|
|
3598
3606
|
g.filter(
|
|
3599
3607
|
(se) => K(se.name, d ? oe : H)
|
|
@@ -3620,7 +3628,7 @@ const A = te(function({
|
|
|
3620
3628
|
allowsCustomValue: d,
|
|
3621
3629
|
allowsEmptyCollection: !0,
|
|
3622
3630
|
disabledKeys: n,
|
|
3623
|
-
inputValue:
|
|
3631
|
+
inputValue: W,
|
|
3624
3632
|
items: ee,
|
|
3625
3633
|
menuTrigger: "focus",
|
|
3626
3634
|
shouldCloseOnBlur: !d,
|
|
@@ -3647,22 +3655,22 @@ const A = te(function({
|
|
|
3647
3655
|
listBoxProps: Mi
|
|
3648
3656
|
} = pr(
|
|
3649
3657
|
{
|
|
3650
|
-
inputValue:
|
|
3658
|
+
inputValue: W,
|
|
3651
3659
|
buttonRef: ke,
|
|
3652
3660
|
id: p,
|
|
3653
3661
|
inputRef: ue,
|
|
3654
3662
|
label: s ?? p,
|
|
3655
|
-
listBoxRef:
|
|
3663
|
+
listBoxRef: Le,
|
|
3656
3664
|
name: p,
|
|
3657
3665
|
placeholder: $,
|
|
3658
3666
|
popoverRef: _e
|
|
3659
3667
|
},
|
|
3660
3668
|
re
|
|
3661
|
-
), { listBoxProps: Yt } = gr(Mi, re,
|
|
3669
|
+
), { listBoxProps: Yt } = gr(Mi, re, Le), { buttonProps: _i } = Mn(Bi, ke), { width: Xt } = ((Jt = Ae.current) == null ? void 0 : Jt.getBoundingClientRect()) ?? {
|
|
3662
3670
|
width: 240
|
|
3663
3671
|
};
|
|
3664
3672
|
$e(
|
|
3665
|
-
|
|
3673
|
+
Ae.current,
|
|
3666
3674
|
() => {
|
|
3667
3675
|
re.isOpen && !d && re.close();
|
|
3668
3676
|
},
|
|
@@ -3678,7 +3686,7 @@ const A = te(function({
|
|
|
3678
3686
|
const Zt = Array.from(re.collection), Kt = _n({
|
|
3679
3687
|
count: Zt.length,
|
|
3680
3688
|
estimateSize: () => 28,
|
|
3681
|
-
getScrollElement: () =>
|
|
3689
|
+
getScrollElement: () => Le.current
|
|
3682
3690
|
});
|
|
3683
3691
|
return /* @__PURE__ */ h(
|
|
3684
3692
|
de,
|
|
@@ -3698,7 +3706,7 @@ const A = te(function({
|
|
|
3698
3706
|
ge,
|
|
3699
3707
|
{
|
|
3700
3708
|
className: `${t ? "disabled" : ""} ${T ? "error" : ""}`,
|
|
3701
|
-
ref:
|
|
3709
|
+
ref: Ae,
|
|
3702
3710
|
children: [
|
|
3703
3711
|
/* @__PURE__ */ i(
|
|
3704
3712
|
"input",
|
|
@@ -3762,14 +3770,14 @@ const A = te(function({
|
|
|
3762
3770
|
placement: "bottom start",
|
|
3763
3771
|
popoverRef: _e,
|
|
3764
3772
|
state: re,
|
|
3765
|
-
triggerRef:
|
|
3773
|
+
triggerRef: Ae,
|
|
3766
3774
|
children: /* @__PURE__ */ i(
|
|
3767
3775
|
pn,
|
|
3768
3776
|
{
|
|
3769
3777
|
...Yt,
|
|
3770
3778
|
$multiSelection: d && !Array.from(n ?? []).includes("All"),
|
|
3771
3779
|
$width: Xt,
|
|
3772
|
-
ref:
|
|
3780
|
+
ref: Le,
|
|
3773
3781
|
children: /* @__PURE__ */ i(
|
|
3774
3782
|
"div",
|
|
3775
3783
|
{
|
|
@@ -3820,14 +3828,14 @@ const A = te(function({
|
|
|
3820
3828
|
placement: "bottom start",
|
|
3821
3829
|
popoverRef: _e,
|
|
3822
3830
|
state: re,
|
|
3823
|
-
triggerRef:
|
|
3831
|
+
triggerRef: Ae,
|
|
3824
3832
|
children: /* @__PURE__ */ i(
|
|
3825
3833
|
pn,
|
|
3826
3834
|
{
|
|
3827
3835
|
...Yt,
|
|
3828
3836
|
$multiSelection: !1,
|
|
3829
3837
|
$width: Xt,
|
|
3830
|
-
ref:
|
|
3838
|
+
ref: Le,
|
|
3831
3839
|
children: /* @__PURE__ */ i($a, { children: /* @__PURE__ */ i(
|
|
3832
3840
|
N,
|
|
3833
3841
|
{
|
|
@@ -4222,7 +4230,7 @@ const A = te(function({
|
|
|
4222
4230
|
A,
|
|
4223
4231
|
{
|
|
4224
4232
|
icon: t,
|
|
4225
|
-
iconColor:
|
|
4233
|
+
iconColor: V.palette.gray[e ? 400 : 700],
|
|
4226
4234
|
iconSize: "lg",
|
|
4227
4235
|
iconType: "fa-light"
|
|
4228
4236
|
}
|
|
@@ -4615,8 +4623,8 @@ const A = te(function({
|
|
|
4615
4623
|
const f = `${r}Max`, y = `${r}Min`, $ = M(null), x = et(d == null ? void 0 : d.value), C = et(p == null ? void 0 : p.value), k = w(
|
|
4616
4624
|
(L) => {
|
|
4617
4625
|
if (L) {
|
|
4618
|
-
const
|
|
4619
|
-
c && (c((p == null ? void 0 : p.name) ?? f,
|
|
4626
|
+
const W = Qe(String(L.end)), B = Qe(String(L.start));
|
|
4627
|
+
c && (c((p == null ? void 0 : p.name) ?? f, W), c((d == null ? void 0 : d.name) ?? y, B)), p != null && p.onChange && (p == null || p.onChange(W)), d != null && d.onChange && (d == null || d.onChange(B));
|
|
4620
4628
|
}
|
|
4621
4629
|
},
|
|
4622
4630
|
[f, y, c, p, d]
|
|
@@ -4898,9 +4906,9 @@ const A = te(function({
|
|
|
4898
4906
|
weight: v,
|
|
4899
4907
|
...z
|
|
4900
4908
|
}) => {
|
|
4901
|
-
const { required: I, onBlur: E, onChange: D } = z, F = R(), T = e ? void 0 : a, [L,
|
|
4909
|
+
const { required: I, onBlur: E, onChange: D } = z, F = R(), T = e ? void 0 : a, [L, W] = j(""), B = w(
|
|
4902
4910
|
(ee) => {
|
|
4903
|
-
|
|
4911
|
+
W(ee.target.value), D == null || D(ee);
|
|
4904
4912
|
},
|
|
4905
4913
|
[D]
|
|
4906
4914
|
), Z = c && p && !e && L.trim() !== "", J = w(
|
|
@@ -5606,10 +5614,10 @@ const A = te(function({
|
|
|
5606
5614
|
async onDrop(L) {
|
|
5607
5615
|
$ == null || $(!0);
|
|
5608
5616
|
try {
|
|
5609
|
-
const
|
|
5617
|
+
const W = L.items.filter(
|
|
5610
5618
|
(ie) => ie.kind === "file"
|
|
5611
5619
|
), B = await Promise.all(
|
|
5612
|
-
|
|
5620
|
+
W.map(async (ie) => ie.getFile())
|
|
5613
5621
|
), Z = c ? B.filter((ie) => ol(ie, rl(c))) : B;
|
|
5614
5622
|
c && Z.length < B.length && console.warn(
|
|
5615
5623
|
"InputFile: Some files were rejected due to invalid type."
|
|
@@ -5624,8 +5632,8 @@ const A = te(function({
|
|
|
5624
5632
|
const ie = new Event("change", { bubbles: !0 });
|
|
5625
5633
|
x.current.dispatchEvent(ie);
|
|
5626
5634
|
}
|
|
5627
|
-
} catch (
|
|
5628
|
-
console.error("Error reading dropped files:",
|
|
5635
|
+
} catch (W) {
|
|
5636
|
+
console.error("Error reading dropped files:", W);
|
|
5629
5637
|
}
|
|
5630
5638
|
}
|
|
5631
5639
|
}), z = /* @__PURE__ */ i(
|
|
@@ -5802,10 +5810,10 @@ const A = te(function({
|
|
|
5802
5810
|
progressPercentage: v,
|
|
5803
5811
|
maxSize: z
|
|
5804
5812
|
}) => {
|
|
5805
|
-
const I = R(), E = t ? void 0 : n, D = M(null), F = g == null ? void 0 : g(c, { required: d }), T = $ == null ? void 0 : $(c), L = Ja(T), [
|
|
5813
|
+
const I = R(), E = t ? void 0 : n, D = M(null), F = g == null ? void 0 : g(c, { required: d }), T = $ == null ? void 0 : $(c), L = Ja(T), [W, B] = j(!1), [Z, J] = j(v);
|
|
5806
5814
|
_(() => {
|
|
5807
|
-
J(!v &&
|
|
5808
|
-
}, [
|
|
5815
|
+
J(!v && W ? 50 : !v && !W ? void 0 : v);
|
|
5816
|
+
}, [W, v]);
|
|
5809
5817
|
const ee = w(
|
|
5810
5818
|
(Y) => {
|
|
5811
5819
|
Y.stopPropagation();
|
|
@@ -5948,7 +5956,7 @@ const A = te(function({
|
|
|
5948
5956
|
}) => {
|
|
5949
5957
|
const $ = R(), x = e ? void 0 : t, [C, k] = j(""), S = c ? f : n == null ? void 0 : n.value, v = X(() => S && typeof S == "string" ? S.split(",").filter(Boolean) : [], [S]), z = w(
|
|
5950
5958
|
(T) => {
|
|
5951
|
-
const
|
|
5959
|
+
const W = [...new Set(T.filter(Boolean))].join(","), B = Pe("change", s, W);
|
|
5952
5960
|
n && n.onChange(B), c && c(B);
|
|
5953
5961
|
},
|
|
5954
5962
|
[n, s, c]
|
|
@@ -6167,7 +6175,7 @@ const A = te(function({
|
|
|
6167
6175
|
B.stopPropagation(), B.key === "Enter" && !G.isEmpty(B.currentTarget.value) && (p == null || p(G.toNumber(B.currentTarget.value)));
|
|
6168
6176
|
},
|
|
6169
6177
|
[p]
|
|
6170
|
-
),
|
|
6178
|
+
), W = () => /* @__PURE__ */ i(
|
|
6171
6179
|
"input",
|
|
6172
6180
|
{
|
|
6173
6181
|
"aria-hidden": !1,
|
|
@@ -6208,9 +6216,9 @@ const A = te(function({
|
|
|
6208
6216
|
id: `numberInputTooltip-${s}`,
|
|
6209
6217
|
tip: y,
|
|
6210
6218
|
width: "100%",
|
|
6211
|
-
children:
|
|
6219
|
+
children: W()
|
|
6212
6220
|
}
|
|
6213
|
-
) :
|
|
6221
|
+
) : W(),
|
|
6214
6222
|
S && /* @__PURE__ */ i(
|
|
6215
6223
|
A,
|
|
6216
6224
|
{
|
|
@@ -6535,7 +6543,7 @@ const A = te(function({
|
|
|
6535
6543
|
defaultCountry: "co",
|
|
6536
6544
|
forceDialCode: !0,
|
|
6537
6545
|
value: y ? String(y) : ""
|
|
6538
|
-
}),
|
|
6546
|
+
}), W = w(
|
|
6539
6547
|
(Y) => {
|
|
6540
6548
|
Y.key === "Enter" && Y.preventDefault();
|
|
6541
6549
|
},
|
|
@@ -6627,7 +6635,7 @@ const A = te(function({
|
|
|
6627
6635
|
disabled: e,
|
|
6628
6636
|
id: r,
|
|
6629
6637
|
name: r,
|
|
6630
|
-
onKeyDown:
|
|
6638
|
+
onKeyDown: W,
|
|
6631
6639
|
placeholder: o,
|
|
6632
6640
|
ref: E,
|
|
6633
6641
|
type: "tel",
|
|
@@ -6650,7 +6658,7 @@ const A = te(function({
|
|
|
6650
6658
|
]
|
|
6651
6659
|
}
|
|
6652
6660
|
),
|
|
6653
|
-
$ &&
|
|
6661
|
+
$ && Ee(
|
|
6654
6662
|
/* @__PURE__ */ i(pl, { ref: z.setFloating, style: I, children: ve.map((Y) => {
|
|
6655
6663
|
const { dialCode: K, iso2: ue, name: ke } = nn(Y);
|
|
6656
6664
|
return /* @__PURE__ */ h(
|
|
@@ -7517,7 +7525,7 @@ const A = te(function({
|
|
|
7517
7525
|
width: d,
|
|
7518
7526
|
children: [
|
|
7519
7527
|
/* @__PURE__ */ h(b, { alignItems: "center", display: "flex", gap: 0.5, children: [
|
|
7520
|
-
u ||
|
|
7528
|
+
u || je(n) ? void 0 : f,
|
|
7521
7529
|
/* @__PURE__ */ i(
|
|
7522
7530
|
N,
|
|
7523
7531
|
{
|
|
@@ -7527,15 +7535,15 @@ const A = te(function({
|
|
|
7527
7535
|
children: e
|
|
7528
7536
|
}
|
|
7529
7537
|
),
|
|
7530
|
-
u ||
|
|
7538
|
+
u || je(o) ? void 0 : f
|
|
7531
7539
|
] }),
|
|
7532
7540
|
/* @__PURE__ */ h(b, { alignItems: "center", display: "flex", gap: 0.5, children: [
|
|
7533
|
-
u && !
|
|
7541
|
+
u && !je(n) ? f : void 0,
|
|
7534
7542
|
/* @__PURE__ */ h("div", { style: { display: "flex", gap: "12px" }, children: [
|
|
7535
|
-
|
|
7543
|
+
je(a) ? void 0 : /* @__PURE__ */ i(ne, { fontWeight: "bold", size: "sm", children: a }),
|
|
7536
7544
|
r
|
|
7537
7545
|
] }),
|
|
7538
|
-
u && !
|
|
7546
|
+
u && !je(o) ? f : void 0
|
|
7539
7547
|
] })
|
|
7540
7548
|
]
|
|
7541
7549
|
}
|
|
@@ -8052,7 +8060,7 @@ ${$[8]}...` : ($.length < 8 && d(!1), n);
|
|
|
8052
8060
|
] })
|
|
8053
8061
|
] }),
|
|
8054
8062
|
t && G.isString(t) && !G.isEmpty(t) ? /* @__PURE__ */ i(N, { mt: 0.5, size: "md", children: t }) : void 0,
|
|
8055
|
-
t && !G.isString(t) && /* @__PURE__ */ i(
|
|
8063
|
+
t && !G.isString(t) && /* @__PURE__ */ i(Fe, { display: "block", mt: 0.5, size: "md", children: t })
|
|
8056
8064
|
] });
|
|
8057
8065
|
}, Ol = ({
|
|
8058
8066
|
disabled: e,
|
|
@@ -8224,7 +8232,7 @@ ${$[8]}...` : ($.length < 8 && d(!1), n);
|
|
|
8224
8232
|
}
|
|
8225
8233
|
);
|
|
8226
8234
|
}, Be = te(function({
|
|
8227
|
-
color: t =
|
|
8235
|
+
color: t = V.palette.gray[100],
|
|
8228
8236
|
mt: n = 0.5,
|
|
8229
8237
|
mb: r = 0.5,
|
|
8230
8238
|
width: o,
|
|
@@ -8727,7 +8735,7 @@ ${$[8]}...` : ($.length < 8 && d(!1), n);
|
|
|
8727
8735
|
const g = (u = a.current) == null ? void 0 : u.scrollHeight;
|
|
8728
8736
|
l !== g && s(g);
|
|
8729
8737
|
}, [l]);
|
|
8730
|
-
return n.isOpen ?
|
|
8738
|
+
return n.isOpen ? Ee(
|
|
8731
8739
|
/* @__PURE__ */ i(vi, { "aria-label": n.name, "aria-modal": "true", children: /* @__PURE__ */ h(Mt, { $size: "md", flexDirection: "column", children: [
|
|
8732
8740
|
/* @__PURE__ */ h(
|
|
8733
8741
|
b,
|
|
@@ -9197,9 +9205,9 @@ ${$[8]}...` : ($.length < 8 && d(!1), n);
|
|
|
9197
9205
|
var T, L;
|
|
9198
9206
|
return {
|
|
9199
9207
|
...F,
|
|
9200
|
-
options: (T = F.options) == null ? void 0 : T.map((
|
|
9201
|
-
...
|
|
9202
|
-
checked: S.checkbox.includes(
|
|
9208
|
+
options: (T = F.options) == null ? void 0 : T.map((W) => ({
|
|
9209
|
+
...W,
|
|
9210
|
+
checked: S.checkbox.includes(W.value) || S.radio === W.value
|
|
9203
9211
|
})),
|
|
9204
9212
|
value: ["text", "select"].includes(F.type) ? ((L = S.text) == null ? void 0 : L[`${String(F.key)}-${F.filterFn ?? "caseInsensitive"}`]) ?? F.value : F.value,
|
|
9205
9213
|
minValue: ["numberRange", "dateRange"].includes(F.type) ? S.minValue : F.minValue,
|
|
@@ -9240,9 +9248,9 @@ ${$[8]}...` : ($.length < 8 && d(!1), n);
|
|
|
9240
9248
|
return _(() => {
|
|
9241
9249
|
const S = e.reduce(
|
|
9242
9250
|
(v, { label: z, filterOptions: I }) => {
|
|
9243
|
-
const E = I.flatMap(({ value: T, minValue: L, maxValue:
|
|
9251
|
+
const E = I.flatMap(({ value: T, minValue: L, maxValue: W }) => [
|
|
9244
9252
|
L,
|
|
9245
|
-
|
|
9253
|
+
W,
|
|
9246
9254
|
T
|
|
9247
9255
|
]).filter(
|
|
9248
9256
|
(T) => typeof T == "string" || typeof T == "number"
|
|
@@ -9884,7 +9892,7 @@ const Ye = ({
|
|
|
9884
9892
|
)
|
|
9885
9893
|
}
|
|
9886
9894
|
);
|
|
9887
|
-
return e && s.isOpen ?
|
|
9895
|
+
return e && s.isOpen ? Ee(
|
|
9888
9896
|
z,
|
|
9889
9897
|
document.getElementById("portals") ?? document.body
|
|
9890
9898
|
) : s.isOpen ? z : null;
|
|
@@ -10056,7 +10064,7 @@ const Ye = ({
|
|
|
10056
10064
|
options: o,
|
|
10057
10065
|
title: a
|
|
10058
10066
|
}) => {
|
|
10059
|
-
const l = R(), [s, c] = j(!1), p = s ? "chevron-up" : "chevron-down", { refs: d, floatingStyles: g } =
|
|
10067
|
+
const l = R(), [s, c] = j(!1), p = s ? "chevron-up" : "chevron-down", { refs: d, floatingStyles: g } = Ve({
|
|
10060
10068
|
middleware: [at({ mainAxis: 4 })],
|
|
10061
10069
|
placement: "bottom-start"
|
|
10062
10070
|
}), u = w(() => {
|
|
@@ -10338,6 +10346,7 @@ const Ye = ({
|
|
|
10338
10346
|
display: flex;
|
|
10339
10347
|
flex-direction: column;
|
|
10340
10348
|
justify-content: center;
|
|
10349
|
+
overflow: hidden auto;
|
|
10341
10350
|
padding: ${e.spacing[0.875]};
|
|
10342
10351
|
width: 100%;
|
|
10343
10352
|
|
|
@@ -10345,7 +10354,7 @@ const Ye = ({
|
|
|
10345
10354
|
width: 100%;
|
|
10346
10355
|
}
|
|
10347
10356
|
`}
|
|
10348
|
-
`,
|
|
10357
|
+
`, Oe = m.div`
|
|
10349
10358
|
${({ theme: e }) => `
|
|
10350
10359
|
align-items: center;
|
|
10351
10360
|
display: flex;
|
|
@@ -10355,6 +10364,7 @@ const Ye = ({
|
|
|
10355
10364
|
font-weight: ${e.typography.weight.regular};
|
|
10356
10365
|
gap: ${e.spacing[0.5]};
|
|
10357
10366
|
line-height: ${e.spacing[1.25]};
|
|
10367
|
+
overflow: hidden;
|
|
10358
10368
|
padding: ${e.spacing[0.5]};
|
|
10359
10369
|
width: 100%;
|
|
10360
10370
|
|
|
@@ -10366,6 +10376,13 @@ const Ye = ({
|
|
|
10366
10376
|
&:has(.selected) {
|
|
10367
10377
|
background: ${e.palette.gray[100]};
|
|
10368
10378
|
}
|
|
10379
|
+
|
|
10380
|
+
* > label {
|
|
10381
|
+
display: block;
|
|
10382
|
+
overflow: hidden;
|
|
10383
|
+
text-overflow: ellipsis;
|
|
10384
|
+
white-space: nowrap;
|
|
10385
|
+
}
|
|
10369
10386
|
`}
|
|
10370
10387
|
`, Di = m.button`
|
|
10371
10388
|
${Ot}
|
|
@@ -10510,7 +10527,7 @@ const Ye = ({
|
|
|
10510
10527
|
S.map((z) => {
|
|
10511
10528
|
const E = d[z.id].split(",").filter((D) => D && D !== "-").length.toString();
|
|
10512
10529
|
return /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ h(
|
|
10513
|
-
|
|
10530
|
+
Oe,
|
|
10514
10531
|
{
|
|
10515
10532
|
as: "button",
|
|
10516
10533
|
"data-testid": z.id,
|
|
@@ -10603,7 +10620,7 @@ const Ye = ({
|
|
|
10603
10620
|
left: 0,
|
|
10604
10621
|
width: "100%"
|
|
10605
10622
|
},
|
|
10606
|
-
children: /* @__PURE__ */ i(
|
|
10623
|
+
children: /* @__PURE__ */ i(Oe, { "aria-selected": s, children: /* @__PURE__ */ i(
|
|
10607
10624
|
ze,
|
|
10608
10625
|
{
|
|
10609
10626
|
checked: s,
|
|
@@ -10618,14 +10635,26 @@ const Ye = ({
|
|
|
10618
10635
|
);
|
|
10619
10636
|
}) : /* @__PURE__ */ i(Ni, {}),
|
|
10620
10637
|
list: ({ items: e, filterValue: t, onListChange: n }) => e.map((r) => /* @__PURE__ */ h(
|
|
10621
|
-
|
|
10638
|
+
Oe,
|
|
10622
10639
|
{
|
|
10623
10640
|
"aria-selected": t == null ? void 0 : t.split(",").includes(r == null ? void 0 : r.value),
|
|
10624
10641
|
as: "button",
|
|
10625
10642
|
onClick: n == null ? void 0 : n(r.value),
|
|
10626
10643
|
children: [
|
|
10627
10644
|
r.icon ? /* @__PURE__ */ i(A, { icon: r.icon, iconSize: "md", iconType: "fa-light" }) : void 0,
|
|
10628
|
-
|
|
10645
|
+
/* @__PURE__ */ i(
|
|
10646
|
+
Fe,
|
|
10647
|
+
{
|
|
10648
|
+
color: V.palette.gray[800],
|
|
10649
|
+
display: "block",
|
|
10650
|
+
overflow: "hidden",
|
|
10651
|
+
size: "md",
|
|
10652
|
+
textAlign: "left",
|
|
10653
|
+
textOverflow: "ellipsis",
|
|
10654
|
+
whiteSpace: "nowrap",
|
|
10655
|
+
children: r.label
|
|
10656
|
+
}
|
|
10657
|
+
),
|
|
10629
10658
|
/* @__PURE__ */ i("span", { className: "filter-item" }),
|
|
10630
10659
|
t != null && t.split(",").includes(r == null ? void 0 : r.value) ? /* @__PURE__ */ i("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ i(
|
|
10631
10660
|
A,
|
|
@@ -10647,7 +10676,7 @@ const Ye = ({
|
|
|
10647
10676
|
updateCalendarState: r
|
|
10648
10677
|
}) => {
|
|
10649
10678
|
const [o, a] = (t == null ? void 0 : t.split(",").filter((l) => q(l).isValid() || l === "-")) ?? [];
|
|
10650
|
-
return /* @__PURE__ */ i(
|
|
10679
|
+
return /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(
|
|
10651
10680
|
$i,
|
|
10652
10681
|
{
|
|
10653
10682
|
name: e,
|
|
@@ -10674,7 +10703,7 @@ const Ye = ({
|
|
|
10674
10703
|
onRangeNumberChange: o
|
|
10675
10704
|
}) => {
|
|
10676
10705
|
const [a, l] = (t == null ? void 0 : t.split(",").filter(Boolean).map(Number).filter((s) => !Ar(s))) ?? [];
|
|
10677
|
-
return /* @__PURE__ */ i(
|
|
10706
|
+
return /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(
|
|
10678
10707
|
xi,
|
|
10679
10708
|
{
|
|
10680
10709
|
name: e,
|
|
@@ -10791,13 +10820,13 @@ const Ye = ({
|
|
|
10791
10820
|
(B) => B !== "-" && !RegExp(/^\d+\-\d+\-\d+$/).test(B.trim())
|
|
10792
10821
|
), T = D.filter(
|
|
10793
10822
|
(B) => q(B).isValid() && q(B).isAfter(q("1903-01-01"))
|
|
10794
|
-
), L = q(v, "YYYY-MM-DD", !0),
|
|
10795
|
-
return T.length === 2 ? (
|
|
10823
|
+
), L = q(v, "YYYY-MM-DD", !0), W = ["-", "-"];
|
|
10824
|
+
return T.length === 2 ? (W[0] = T[0], W[1] = T[1]) : T.length === 1 && (L.isAfter(q(T[0])) ? (W[0] = T[0], W[1] = v) : (W[0] = v, W[1] = T[0])), W[I ?? 0] = v, { ...E, [a]: [...F, ...W].join(",") };
|
|
10796
10825
|
}
|
|
10797
10826
|
if (z === "numberRange") {
|
|
10798
10827
|
const D = Xe(E[a] ?? ""), F = D.filter(
|
|
10799
|
-
(
|
|
10800
|
-
), T = D.map(Number).filter((
|
|
10828
|
+
(W) => !RegExp(/^\d+$/).test(W)
|
|
10829
|
+
), T = D.map(Number).filter((W) => G.isNumber(W) && !G.isNaN(W)), L = [T[0] ?? "", T[1] ?? ""];
|
|
10801
10830
|
return L[I ?? 0] = Number(v), { ...E, [a]: [...F, ...L].join(",") };
|
|
10802
10831
|
}
|
|
10803
10832
|
if (z === "list") {
|
|
@@ -10912,7 +10941,7 @@ const Ye = ({
|
|
|
10912
10941
|
}) => {
|
|
10913
10942
|
const r = Me("filters"), { calendarState: o } = Es(), { searchState: a, updateSearch: l } = Ns(!1), { scrollState: s, updateScrollHeight: c } = Fs(), [p, d] = Rr("filter", {
|
|
10914
10943
|
history: "replace"
|
|
10915
|
-
}), [g, u] = j(""), { refs: f } =
|
|
10944
|
+
}), [g, u] = j(""), { refs: f } = Ve({ placement: "bottom-start" }), { refs: y } = Ve({
|
|
10916
10945
|
elements: { reference: f.reference.current },
|
|
10917
10946
|
placement: "right-end"
|
|
10918
10947
|
}), { activeFilters: $, values: x, setValues: C } = di({
|
|
@@ -10927,7 +10956,7 @@ const Ye = ({
|
|
|
10927
10956
|
[d]
|
|
10928
10957
|
), L = w(() => {
|
|
10929
10958
|
$ === 0 && !r.isOpen && Je(F), r.toggle(), d(null), S({ searchGlobal: "", search: "" });
|
|
10930
|
-
}, [$, r, F, d, S]),
|
|
10959
|
+
}, [$, r, F, d, S]), W = w(() => {
|
|
10931
10960
|
o.isOpen || (r.close(), d(null), S({ searchGlobal: "", search: "" }), $ === 0 && Je(F));
|
|
10932
10961
|
}, [
|
|
10933
10962
|
$,
|
|
@@ -10937,7 +10966,7 @@ const Ye = ({
|
|
|
10937
10966
|
d,
|
|
10938
10967
|
S
|
|
10939
10968
|
]);
|
|
10940
|
-
return $e(f.floating.current,
|
|
10969
|
+
return $e(f.floating.current, W, !0, [
|
|
10941
10970
|
f.reference.current,
|
|
10942
10971
|
y.floating.current
|
|
10943
10972
|
]), /* @__PURE__ */ i(
|
|
@@ -11349,7 +11378,7 @@ const Ye = ({
|
|
|
11349
11378
|
)
|
|
11350
11379
|
}
|
|
11351
11380
|
);
|
|
11352
|
-
return e ?
|
|
11381
|
+
return e ? Ee(x, document.body) : /* @__PURE__ */ i("div", {});
|
|
11353
11382
|
}, Ps = m.div`
|
|
11354
11383
|
${({ theme: e, $backgroundColor: t = e.palette.white }) => `
|
|
11355
11384
|
align-items: flex-start;
|
|
@@ -11806,11 +11835,11 @@ const Ye = ({
|
|
|
11806
11835
|
padding: 0;
|
|
11807
11836
|
|
|
11808
11837
|
&:hover p {
|
|
11809
|
-
color: ${
|
|
11838
|
+
color: ${V.palette.primary[200]};
|
|
11810
11839
|
}
|
|
11811
11840
|
|
|
11812
11841
|
&:hover span {
|
|
11813
|
-
color: ${
|
|
11842
|
+
color: ${V.palette.primary[200]};
|
|
11814
11843
|
}
|
|
11815
11844
|
`, Lp = ({
|
|
11816
11845
|
message: e,
|
|
@@ -12186,7 +12215,7 @@ const Ye = ({
|
|
|
12186
12215
|
pageSize: e,
|
|
12187
12216
|
setPageSize: t
|
|
12188
12217
|
}) => {
|
|
12189
|
-
const n = R(), [r, o] = j(!1), { refs: a, floatingStyles: l } =
|
|
12218
|
+
const n = R(), [r, o] = j(!1), { refs: a, floatingStyles: l } = Ve({
|
|
12190
12219
|
middleware: [Hn(), at({ mainAxis: 4 })],
|
|
12191
12220
|
placement: "top-end",
|
|
12192
12221
|
whileElementsMounted: ot
|
|
@@ -12917,7 +12946,7 @@ const Ye = ({
|
|
|
12917
12946
|
textAlign: n ? "start" : "center",
|
|
12918
12947
|
children: a ? /* @__PURE__ */ h(fe, { children: [
|
|
12919
12948
|
/* @__PURE__ */ i(
|
|
12920
|
-
|
|
12949
|
+
Fe,
|
|
12921
12950
|
{
|
|
12922
12951
|
color: r.palette.gray[600],
|
|
12923
12952
|
display: "inline",
|
|
@@ -12930,7 +12959,7 @@ const Ye = ({
|
|
|
12930
12959
|
e
|
|
12931
12960
|
] }) : e.split(l).map(
|
|
12932
12961
|
(s, c) => t.includes(s) ? /* @__PURE__ */ i(
|
|
12933
|
-
|
|
12962
|
+
Fe,
|
|
12934
12963
|
{
|
|
12935
12964
|
color: r.palette.gray[600],
|
|
12936
12965
|
display: "inline",
|
|
@@ -13101,7 +13130,7 @@ const Ye = ({
|
|
|
13101
13130
|
)
|
|
13102
13131
|
}
|
|
13103
13132
|
);
|
|
13104
|
-
return e ?
|
|
13133
|
+
return e ? Ee(I, a ?? document.body) : I;
|
|
13105
13134
|
}, Sc = {
|
|
13106
13135
|
md: {
|
|
13107
13136
|
methodIdSize: "sm",
|
|
@@ -13177,8 +13206,8 @@ const Ye = ({
|
|
|
13177
13206
|
N,
|
|
13178
13207
|
{
|
|
13179
13208
|
color: f.palette.gray[400],
|
|
13209
|
+
display: "inline",
|
|
13180
13210
|
size: x,
|
|
13181
|
-
whiteSpace: "nowrap",
|
|
13182
13211
|
children: [
|
|
13183
13212
|
/* @__PURE__ */ i("b", { children: "Target: " }),
|
|
13184
13213
|
s
|
|
@@ -13192,8 +13221,8 @@ const Ye = ({
|
|
|
13192
13221
|
N,
|
|
13193
13222
|
{
|
|
13194
13223
|
color: f.palette.gray[400],
|
|
13224
|
+
display: "inline",
|
|
13195
13225
|
size: x,
|
|
13196
|
-
whiteSpace: "nowrap",
|
|
13197
13226
|
children: [
|
|
13198
13227
|
/* @__PURE__ */ i("b", { children: "Technology: " }),
|
|
13199
13228
|
e
|
|
@@ -13207,9 +13236,9 @@ const Ye = ({
|
|
|
13207
13236
|
N,
|
|
13208
13237
|
{
|
|
13209
13238
|
color: f.palette.gray[400],
|
|
13239
|
+
display: "inline",
|
|
13210
13240
|
fontWeight: "bold",
|
|
13211
13241
|
size: x,
|
|
13212
|
-
whiteSpace: "nowrap",
|
|
13213
13242
|
children: "CWE ID(s): "
|
|
13214
13243
|
}
|
|
13215
13244
|
),
|
|
@@ -13218,8 +13247,8 @@ const Ye = ({
|
|
|
13218
13247
|
N,
|
|
13219
13248
|
{
|
|
13220
13249
|
color: f.palette.gray[400],
|
|
13250
|
+
display: "inline",
|
|
13221
13251
|
size: x,
|
|
13222
|
-
whiteSpace: "nowrap",
|
|
13223
13252
|
children: " , "
|
|
13224
13253
|
}
|
|
13225
13254
|
) : void 0,
|
|
@@ -13227,9 +13256,9 @@ const Ye = ({
|
|
|
13227
13256
|
N,
|
|
13228
13257
|
{
|
|
13229
13258
|
color: f.palette.gray[400],
|
|
13259
|
+
display: "inline",
|
|
13230
13260
|
size: x,
|
|
13231
13261
|
textDecoration: "underline",
|
|
13232
|
-
whiteSpace: "nowrap",
|
|
13233
13262
|
children: k.key
|
|
13234
13263
|
}
|
|
13235
13264
|
) })
|
|
@@ -13241,8 +13270,8 @@ const Ye = ({
|
|
|
13241
13270
|
N,
|
|
13242
13271
|
{
|
|
13243
13272
|
color: f.palette.gray[400],
|
|
13273
|
+
display: "inline",
|
|
13244
13274
|
size: x,
|
|
13245
|
-
whiteSpace: "nowrap",
|
|
13246
13275
|
children: [
|
|
13247
13276
|
/* @__PURE__ */ i("b", { children: "Last update time: " }),
|
|
13248
13277
|
c
|
|
@@ -13414,8 +13443,8 @@ const Ye = ({
|
|
|
13414
13443
|
}), (T = u.current) == null || T.focus(), y(!1);
|
|
13415
13444
|
}, [o, a]), I = w(
|
|
13416
13445
|
(T) => {
|
|
13417
|
-
const L = Number(T.currentTarget.dataset.index),
|
|
13418
|
-
r == null || r(
|
|
13446
|
+
const L = Number(T.currentTarget.dataset.index), W = t[L];
|
|
13447
|
+
r == null || r(W), y(!1);
|
|
13419
13448
|
},
|
|
13420
13449
|
[t, r]
|
|
13421
13450
|
), E = f && ($.trim().length > 0 || t.length > 0), D = X(
|
|
@@ -13475,20 +13504,20 @@ const Ye = ({
|
|
|
13475
13504
|
] });
|
|
13476
13505
|
}, Rc = (e, t) => {
|
|
13477
13506
|
const n = {
|
|
13478
|
-
critical:
|
|
13479
|
-
high:
|
|
13480
|
-
low:
|
|
13481
|
-
medium:
|
|
13482
|
-
none:
|
|
13507
|
+
critical: V.palette.primary[700],
|
|
13508
|
+
high: V.palette.error[500],
|
|
13509
|
+
low: V.palette.warning[200],
|
|
13510
|
+
medium: V.palette.warning[500],
|
|
13511
|
+
none: V.palette.gray[200]
|
|
13483
13512
|
}, r = {
|
|
13484
|
-
disabled:
|
|
13485
|
-
enabled:
|
|
13513
|
+
disabled: V.palette.gray[400],
|
|
13514
|
+
enabled: V.palette.gray[800]
|
|
13486
13515
|
}, o = {
|
|
13487
|
-
critical:
|
|
13488
|
-
high:
|
|
13489
|
-
low:
|
|
13490
|
-
medium:
|
|
13491
|
-
none:
|
|
13516
|
+
critical: V.palette.white,
|
|
13517
|
+
high: V.palette.white,
|
|
13518
|
+
low: V.palette.gray[800],
|
|
13519
|
+
medium: V.palette.gray[800],
|
|
13520
|
+
none: V.palette.gray[400]
|
|
13492
13521
|
};
|
|
13493
13522
|
return {
|
|
13494
13523
|
iconColor: t < 1 ? n.none : n[e],
|
|
@@ -15777,7 +15806,7 @@ export {
|
|
|
15777
15806
|
xe as P,
|
|
15778
15807
|
gp as Q,
|
|
15779
15808
|
Wd as R,
|
|
15780
|
-
|
|
15809
|
+
V as S,
|
|
15781
15810
|
Vd as T,
|
|
15782
15811
|
fp as U,
|
|
15783
15812
|
yp as V,
|
|
@@ -15906,7 +15935,7 @@ export {
|
|
|
15906
15935
|
ig as bn,
|
|
15907
15936
|
ne as bo,
|
|
15908
15937
|
N as bp,
|
|
15909
|
-
|
|
15938
|
+
Fe as bq,
|
|
15910
15939
|
rg as br,
|
|
15911
15940
|
Fo as bs,
|
|
15912
15941
|
Eo as bt,
|