@fluidattacks/design 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +22 -1
- package/dist/components/accordion/index.js +78 -1
- package/dist/components/alert/index.js +162 -4
- package/dist/components/button/index.js +69 -1
- package/dist/components/card/card-header/index.js +83 -1
- package/dist/components/card/card-with-image/index.js +93 -1
- package/dist/components/card/card-with-input/index.js +106 -3
- package/dist/components/card/card-with-selector/index.js +71 -1
- package/dist/components/card/card-with-switch/index.js +50 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +62 -10
- package/dist/components/checkbox/index.js +118 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +72 -1
- package/dist/components/code-snippet/location-code/index.js +171 -1
- package/dist/components/colors/index.js +224 -1
- package/dist/components/confirm-dialog/index.js +46 -1
- package/dist/components/container/index.js +51 -3
- package/dist/components/content-card/category-tag/index.js +42 -1
- package/dist/components/content-card/event-date/index.js +61 -1
- package/dist/components/content-card/index.js +168 -3
- package/dist/components/content-card-carousel/index.js +95 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +25 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +58 -8
- package/dist/components/file-preview/index.js +31 -3
- package/dist/components/form/index.js +63 -3
- package/dist/components/grid-container/index.js +46 -5
- package/dist/components/group-selector/index.js +135 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +102 -4
- package/dist/components/icon-button/index.js +76 -3
- package/dist/components/indicator-card/index.js +74 -1
- package/dist/components/info-sidebar/index.js +116 -1
- package/dist/components/inputs/fields/combobox/index.js +146 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
- package/dist/components/inputs/fields/date/calendar/index.js +30 -1
- package/dist/components/inputs/fields/date/index.js +68 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
- package/dist/components/inputs/fields/date-range/index.js +108 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
- package/dist/components/inputs/fields/date-time/index.js +69 -1
- package/dist/components/inputs/fields/editable/index.js +28 -1
- package/dist/components/inputs/fields/input/index.js +77 -1
- package/dist/components/inputs/fields/input-file/index.js +117 -4
- package/dist/components/inputs/fields/input-tags/index.js +63 -2
- package/dist/components/inputs/fields/number/index.js +57 -1
- package/dist/components/inputs/fields/number-range/index.js +49 -1
- package/dist/components/inputs/fields/phone/index.js +574 -11
- package/dist/components/inputs/fields/text-area/index.js +81 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +38 -1
- package/dist/components/inputs/outline-container/index.js +104 -1
- package/dist/components/inputs/utils/action-button/index.js +31 -1
- package/dist/components/inputs/utils/calendar-button/index.js +37 -1
- package/dist/components/inputs/utils/date-selector/index.js +62 -1
- package/dist/components/inputs/utils/date-time-field/index.js +133 -1
- package/dist/components/inputs/utils/dialog/index.js +14 -1
- package/dist/components/inputs/utils/number-field/index.js +86 -1
- package/dist/components/inputs/utils/popover/index.js +44 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +118 -1
- package/dist/components/language-selector/index.js +37 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +106 -7
- package/dist/components/list-item/index.js +67 -1
- package/dist/components/little-flag/index.js +32 -3
- package/dist/components/loading/index.js +55 -14
- package/dist/components/logo/index.js +13 -1
- package/dist/components/logo-carousel/index.js +45 -4
- package/dist/components/lottie/index.js +20 -3
- package/dist/components/menu/index.js +67 -1
- package/dist/components/message-banner/index.js +87 -4
- package/dist/components/modal/index.js +65 -1
- package/dist/components/modal/modal-confirm/index.js +51 -1
- package/dist/components/modal/modal-footer/index.js +25 -1
- package/dist/components/modal/modal-header/index.js +51 -1
- package/dist/components/notification/index.js +113 -5
- package/dist/components/notification-sign/index.js +43 -6
- package/dist/components/number-input/index.js +62 -7
- package/dist/components/oauth-selector/index.js +100 -1
- package/dist/components/oauth-selector/option-container/index.js +76 -1
- package/dist/components/plan-card/index.js +155 -5
- package/dist/components/plan-card/recommended-tag/index.js +31 -1
- package/dist/components/pop-up/description/index.js +51 -1
- package/dist/components/pop-up/index.js +152 -1
- package/dist/components/premium-feature/index.js +85 -3
- package/dist/components/priority-score/index.js +29 -1
- package/dist/components/progress/index.js +36 -3
- package/dist/components/progress-bar/index.js +153 -5
- package/dist/components/radio-button/index.js +125 -3
- package/dist/components/scroll-button/index.js +38 -2
- package/dist/components/search/index.js +105 -7
- package/dist/components/search-bar/index.js +219 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +74 -1
- package/dist/components/severity-overview/badge/index.js +69 -1
- package/dist/components/severity-overview/index.js +17 -1
- package/dist/components/show-on-hover/index.js +31 -3
- package/dist/components/slide-out-menu/index.js +3456 -3
- package/dist/components/slide-out-menu/menu-item/index.js +67 -1
- package/dist/components/slider/index.js +124 -7
- package/dist/components/slider/thumb/index.js +17 -1
- package/dist/components/step-lapse/index.js +153 -9
- package/dist/components/table-button/index.js +97 -3
- package/dist/components/tabs/fixed-tabs/index.js +29 -1
- package/dist/components/tabs/index.js +57 -1
- package/dist/components/tabs/tab/index.js +39 -1
- package/dist/components/tag/index.js +184 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +17 -1
- package/dist/components/toggle/index.js +85 -14
- package/dist/components/toggle-buttons/index.js +103 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +4549 -4
- package/dist/components/typography/heading/index.js +47 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +41 -1
- package/dist/components/typography/text/index.js +47 -1
- package/dist/components/web-form/index.js +68 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +206 -1
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/styles-BlHspTrz.mjs +144 -0
- package/dist/styles-CROOwXEH.mjs +76 -0
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C0_LPuYU.mjs +0 -106
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { styled as a, useTheme as p } from "styled-components";
|
|
3
|
+
import { Container as o } from "../container/index.js";
|
|
4
|
+
import { Icon as e } from "../icon/index.js";
|
|
5
|
+
import "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as d } from "../typography/text/index.js";
|
|
8
|
+
const m = a.div`
|
|
9
|
+
${({ theme: i }) => `
|
|
10
|
+
height: ${i.spacing[1]};
|
|
11
|
+
width: ${i.spacing[1]};
|
|
12
|
+
position: relative;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
|
|
15
|
+
& .ellipse-1,
|
|
16
|
+
& .ellipse-2,
|
|
17
|
+
& .icon {
|
|
18
|
+
top: 50%;
|
|
19
|
+
left: 50%;
|
|
20
|
+
transform: translate(-50%, -50%);
|
|
21
|
+
position: absolute;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
& .ellipse-1 {
|
|
25
|
+
color: ${i.palette.warning[200]};
|
|
26
|
+
position: absolute;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
& .ellipse-2 {
|
|
30
|
+
transform: scale(0.75) translate(-67%, -66%);
|
|
31
|
+
color: ${i.palette.warning[400]};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
& .icon {
|
|
35
|
+
color: ${i.palette.warning[600]};
|
|
36
|
+
font-size: ${i.spacing[0.5]};
|
|
37
|
+
}
|
|
38
|
+
`}
|
|
39
|
+
`, b = ({
|
|
40
|
+
margin: i,
|
|
41
|
+
onClick: r,
|
|
42
|
+
text: l
|
|
43
|
+
}) => {
|
|
44
|
+
const s = p(), t = /* @__PURE__ */ c(m, { children: [
|
|
45
|
+
/* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }),
|
|
46
|
+
/* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }),
|
|
47
|
+
/* @__PURE__ */ n(e, { icon: "crown", iconClass: "icon", iconSize: "xs" })
|
|
48
|
+
] });
|
|
49
|
+
return l !== void 0 ? /* @__PURE__ */ n(
|
|
50
|
+
o,
|
|
51
|
+
{
|
|
52
|
+
cursor: "pointer",
|
|
53
|
+
display: "inline-block",
|
|
54
|
+
mr: i,
|
|
55
|
+
onClick: r,
|
|
56
|
+
children: /* @__PURE__ */ c(
|
|
57
|
+
o,
|
|
58
|
+
{
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
bgColor: s.palette.warning[50],
|
|
61
|
+
borderRadius: "4px",
|
|
62
|
+
display: "flex",
|
|
63
|
+
padding: [0.25, 0.25, 0.25, 0.25],
|
|
64
|
+
width: "fit-content",
|
|
65
|
+
children: [
|
|
66
|
+
t,
|
|
67
|
+
/* @__PURE__ */ n(
|
|
68
|
+
d,
|
|
69
|
+
{
|
|
70
|
+
color: s.palette.warning[500],
|
|
71
|
+
display: "inline",
|
|
72
|
+
ml: 0.25,
|
|
73
|
+
size: "xs",
|
|
74
|
+
children: l
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ n(o, { display: "inline-block", mr: i, onClick: r, children: t });
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
b as PremiumFeature
|
|
85
|
+
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as a } from "styled-components";
|
|
3
|
+
import { Container as m } from "../container/index.js";
|
|
4
|
+
import { Icon as p } from "../icon/index.js";
|
|
5
|
+
import "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as l } from "../typography/text/index.js";
|
|
8
|
+
const d = ({
|
|
9
|
+
score: r
|
|
10
|
+
}) => {
|
|
11
|
+
const i = a(), t = r <= 33 ? "priority-bars-low" : "priority-bars-medium", e = r > 66 || r === 0 ? "priority-bars-high" : t;
|
|
12
|
+
return /* @__PURE__ */ n(m, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [
|
|
13
|
+
/* @__PURE__ */ o(
|
|
14
|
+
p,
|
|
15
|
+
{
|
|
16
|
+
icon: e,
|
|
17
|
+
iconClass: r <= 66 ? "fa-kit-duotone" : "",
|
|
18
|
+
iconColor: r > 0 ? i.palette.primary[500] : i.palette.gray[200],
|
|
19
|
+
iconSize: "xs",
|
|
20
|
+
iconType: "fa-kit",
|
|
21
|
+
secondaryColor: i.palette.gray[200]
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ o(l, { color: i.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })
|
|
25
|
+
] });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
d as PriorityScore
|
|
29
|
+
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useEffect as n } from "react";
|
|
3
|
+
import { styled as g, useTheme as c } from "styled-components";
|
|
4
|
+
import { B as d } from "../../styles-CplEd2kw.mjs";
|
|
5
|
+
import { Container as l } from "../container/index.js";
|
|
6
|
+
const p = g(d)`
|
|
7
|
+
animation: ${({ $animationTime: t }) => `progress-bar ${t}s ease-in-out`};
|
|
3
8
|
animation-fill-mode: both;
|
|
4
9
|
|
|
5
10
|
@keyframes progress-bar {
|
|
@@ -11,4 +16,32 @@
|
|
|
11
16
|
width: 100%;
|
|
12
17
|
}
|
|
13
18
|
}
|
|
14
|
-
|
|
19
|
+
`, b = (t) => t * 1e3 / 100, x = ({
|
|
20
|
+
progressTime: t = 10,
|
|
21
|
+
onComplete: r
|
|
22
|
+
}) => {
|
|
23
|
+
const s = c(), i = 100, [e, m] = f(0);
|
|
24
|
+
return n(() => {
|
|
25
|
+
e === i && (r == null || r());
|
|
26
|
+
}, [e, r]), n(() => {
|
|
27
|
+
const h = setInterval(() => {
|
|
28
|
+
m(
|
|
29
|
+
(a) => a === i ? 0 : a + 1
|
|
30
|
+
);
|
|
31
|
+
}, b(t));
|
|
32
|
+
return () => {
|
|
33
|
+
clearInterval(h);
|
|
34
|
+
};
|
|
35
|
+
}, [e, t]), /* @__PURE__ */ o(l, { bgColor: s.palette.gray[200], height: "4px", children: /* @__PURE__ */ o(
|
|
36
|
+
p,
|
|
37
|
+
{
|
|
38
|
+
$animationTime: t,
|
|
39
|
+
bgGradient: s.palette.gradients["01"],
|
|
40
|
+
height: "100%",
|
|
41
|
+
width: `${e}%`
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
x as Progress
|
|
47
|
+
};
|
|
@@ -1,5 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as $, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as p } from "styled-components";
|
|
3
|
+
import { v as h } from "../../utils-V0EumEPM.mjs";
|
|
4
|
+
import "../../styles-CplEd2kw.mjs";
|
|
5
|
+
import { Container as d } from "../container/index.js";
|
|
6
|
+
import "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as f } from "../typography/text/index.js";
|
|
9
|
+
const { getVariant: u } = h(
|
|
10
|
+
(r) => ({
|
|
11
|
+
compliance: `
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
|
|
14
|
+
&.horizontal {
|
|
15
|
+
height: ${r.spacing[0.75]};
|
|
16
|
+
}
|
|
17
|
+
&.vertical {
|
|
18
|
+
width: ${r.spacing[0.75]};
|
|
19
|
+
}
|
|
20
|
+
`,
|
|
21
|
+
default: `
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
|
|
24
|
+
&.horizontal {
|
|
25
|
+
height: ${r.spacing[0.5]};
|
|
26
|
+
}
|
|
27
|
+
&.vertical {
|
|
28
|
+
width: ${r.spacing[0.5]};
|
|
29
|
+
}
|
|
30
|
+
.progress-bar {
|
|
31
|
+
background-color: ${r.palette.primary[500]};
|
|
32
|
+
}
|
|
33
|
+
`,
|
|
34
|
+
progressIndicator: `
|
|
35
|
+
display: flex;
|
|
36
|
+
|
|
37
|
+
&.horizontal {
|
|
38
|
+
height: ${r.spacing[0.125]};
|
|
39
|
+
}
|
|
40
|
+
&.vertical {
|
|
41
|
+
width: ${r.spacing[0.125]};
|
|
42
|
+
}
|
|
43
|
+
.progress-bar {
|
|
44
|
+
background-color: ${r.palette.primary[500]};
|
|
45
|
+
}
|
|
46
|
+
`,
|
|
47
|
+
progressIndicatorError: `
|
|
48
|
+
display: flex;
|
|
49
|
+
|
|
50
|
+
&.horizontal {
|
|
51
|
+
height: ${r.spacing[0.125]};
|
|
52
|
+
}
|
|
53
|
+
&.vertical {
|
|
54
|
+
width: ${r.spacing[0.125]};
|
|
55
|
+
}
|
|
56
|
+
.progress-bar {
|
|
57
|
+
background-color: ${r.palette.error[200]};
|
|
58
|
+
}
|
|
59
|
+
`,
|
|
60
|
+
small: `
|
|
61
|
+
color: ${r.palette.primary[500]};
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
|
|
64
|
+
&.horizontal {
|
|
65
|
+
height: ${r.spacing[0.25]};
|
|
66
|
+
}
|
|
67
|
+
&.vertical {
|
|
68
|
+
width: ${r.spacing[0.25]};
|
|
69
|
+
}
|
|
70
|
+
.progress-bar {
|
|
71
|
+
background-color: ${r.palette.primary[500]};
|
|
72
|
+
}
|
|
73
|
+
`
|
|
74
|
+
})
|
|
75
|
+
), x = (r, i) => i < 50 ? r.palette.error[500] : i < 80 ? r.palette.warning[500] : r.palette.success[500], b = p.div`
|
|
76
|
+
${({ theme: r, $minWidth: i, $orientation: a, $rounded: t, $variant: o }) => `
|
|
77
|
+
background-color: ${r.palette.gray[100]};
|
|
78
|
+
border-radius: ${t ? "100px" : "unset"};
|
|
79
|
+
${a === "horizontal" ? "min-width" : "min-height"}: ${i}px;
|
|
80
|
+
${a === "horizontal" ? "" : "height: 100%;"}
|
|
81
|
+
|
|
82
|
+
${u(r, o)}
|
|
83
|
+
|
|
84
|
+
`}
|
|
85
|
+
`, m = p.div`
|
|
86
|
+
${({ theme: r, $percentage: i, $rounded: a, $variant: t }) => `
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
width: ${i}%;
|
|
89
|
+
max-width: 100%;
|
|
90
|
+
min-width: 0%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
border-radius: ${a ? "100px" : "unset"};
|
|
93
|
+
border-end-end-radius: ${a && i < 100 ? "0" : "inherit"};
|
|
94
|
+
border-start-end-radius: ${a && i < 100 ? "0" : "inherit"};
|
|
95
|
+
background-color: ${t === "compliance" ? x(r, i) : "inherit"};
|
|
96
|
+
`}
|
|
97
|
+
`, C = ({
|
|
98
|
+
minWidth: r = 100,
|
|
99
|
+
percentage: i,
|
|
100
|
+
percentageLocation: a = "right",
|
|
101
|
+
showPercentage: t = !1,
|
|
102
|
+
orientation: o = "horizontal",
|
|
103
|
+
rounded: s = !0,
|
|
104
|
+
variant: e = "default"
|
|
105
|
+
}) => {
|
|
106
|
+
const l = t && a === "left", c = t ? /* @__PURE__ */ n(
|
|
107
|
+
d,
|
|
108
|
+
{
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
display: "flex",
|
|
111
|
+
justify: l ? "flex-end" : "flex-start",
|
|
112
|
+
width: "40px",
|
|
113
|
+
children: /* @__PURE__ */ n(f, { ml: 0.5, mr: l ? 0.5 : 0, size: "sm", children: `${i}%` })
|
|
114
|
+
}
|
|
115
|
+
) : null, g = /* @__PURE__ */ n(
|
|
116
|
+
b,
|
|
117
|
+
{
|
|
118
|
+
$minWidth: r,
|
|
119
|
+
$orientation: o,
|
|
120
|
+
$rounded: s,
|
|
121
|
+
$variant: e,
|
|
122
|
+
className: o,
|
|
123
|
+
children: /* @__PURE__ */ n(
|
|
124
|
+
m,
|
|
125
|
+
{
|
|
126
|
+
$percentage: i,
|
|
127
|
+
$rounded: s,
|
|
128
|
+
$variant: e,
|
|
129
|
+
className: "progress-bar"
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
return /* @__PURE__ */ $(
|
|
135
|
+
d,
|
|
136
|
+
{
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
display: "inline-flex",
|
|
139
|
+
flexDirection: l ? "row-reverse" : "row",
|
|
140
|
+
height: o === "horizontal" ? "auto" : "100%",
|
|
141
|
+
maxWidth: l ? `${r + 43}px` : void 0,
|
|
142
|
+
minWidth: l ? `${r + 43}px` : void 0,
|
|
143
|
+
textAlign: "end",
|
|
144
|
+
children: [
|
|
145
|
+
g,
|
|
146
|
+
c
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
C as ProgressBar
|
|
153
|
+
};
|
|
@@ -1,3 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as k, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { styled as i } from "styled-components";
|
|
4
|
+
const g = i.label`
|
|
5
|
+
${({ theme: r }) => `
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: flex;
|
|
8
|
+
color: ${r.palette.gray[600]};
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
font-family: ${r.typography.type.primary};
|
|
11
|
+
font-size: ${r.typography.text.sm};
|
|
12
|
+
font-weight: ${r.typography.weight.regular};
|
|
13
|
+
gap: ${r.spacing[0.5]};
|
|
14
|
+
line-height: ${r.typography.text.lg};
|
|
15
|
+
text-align: left;
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
&[aria-disabled="true"] {
|
|
19
|
+
color: ${r.palette.gray[300]};
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input {
|
|
24
|
+
position: absolute;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checkmark {
|
|
31
|
+
position: relative;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
height: 16px;
|
|
35
|
+
width: 16px;
|
|
36
|
+
background-color: ${r.palette.white};
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
border: 1px solid ${r.palette.gray[600]};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input:disabled ~ .checkmark {
|
|
42
|
+
border: 1px solid ${r.palette.gray[300]};
|
|
43
|
+
background-color: ${r.palette.white};
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
input:not(:disabled):checked ~ .checkmark {
|
|
48
|
+
background-color: ${r.palette.white};
|
|
49
|
+
border: 1px solid ${r.palette.primary[500]};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input:not(:disabled):hover ~ .checkmark {
|
|
53
|
+
background-color: ${r.palette.white};
|
|
54
|
+
box-shadow: 0 0 0 4px ${r.palette.gray[100]};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
input:not(:disabled):hover:checked ~ .checkmark {
|
|
58
|
+
background-color: ${r.palette.white};
|
|
59
|
+
box-shadow: 0 0 0 4px ${r.palette.primary[50]};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.checkmark::after {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
display: none;
|
|
66
|
+
top: 3px;
|
|
67
|
+
left: 3px;
|
|
68
|
+
width: 8px;
|
|
69
|
+
height: 8px;
|
|
70
|
+
border-radius: 50%;
|
|
71
|
+
background: ${r.palette.primary[500]};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input:checked ~ .checkmark::after {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
input:disabled:checked ~ .checkmark::after {
|
|
79
|
+
background-color: ${r.palette.gray[300]};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
`}
|
|
83
|
+
`, b = i.span.attrs({ className: "checkmark" })``, $ = u(function({
|
|
84
|
+
defaultChecked: t = !1,
|
|
85
|
+
disabled: a = !1,
|
|
86
|
+
label: l,
|
|
87
|
+
name: o,
|
|
88
|
+
onChange: p,
|
|
89
|
+
onClick: c,
|
|
90
|
+
value: d,
|
|
91
|
+
...n
|
|
92
|
+
}, s) {
|
|
93
|
+
return /* @__PURE__ */ k(
|
|
94
|
+
g,
|
|
95
|
+
{
|
|
96
|
+
"aria-disabled": a,
|
|
97
|
+
"aria-label": o,
|
|
98
|
+
role: "radiogroup",
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
"input",
|
|
102
|
+
{
|
|
103
|
+
"aria-checked": t,
|
|
104
|
+
"aria-disabled": a,
|
|
105
|
+
"aria-label": o,
|
|
106
|
+
defaultChecked: t,
|
|
107
|
+
disabled: a,
|
|
108
|
+
name: o,
|
|
109
|
+
onChange: p,
|
|
110
|
+
onClick: c,
|
|
111
|
+
ref: s,
|
|
112
|
+
type: "radio",
|
|
113
|
+
value: d,
|
|
114
|
+
...n
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ e(b, {}),
|
|
118
|
+
l ?? null
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
$ as RadioButton
|
|
125
|
+
};
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useEffect as p, useCallback as m } from "react";
|
|
3
|
+
import { styled as a } from "styled-components";
|
|
4
|
+
import { IconButton as u } from "../icon-button/index.js";
|
|
5
|
+
const d = a.div.attrs({
|
|
6
|
+
className: "comp-scroll-up"
|
|
7
|
+
})`
|
|
2
8
|
bottom: 15px;
|
|
3
9
|
position: fixed;
|
|
4
10
|
right: 140px;
|
|
5
11
|
z-index: 100;
|
|
6
|
-
|
|
12
|
+
`, g = ({
|
|
13
|
+
scrollerId: t = "dashboard",
|
|
14
|
+
visibleAt: e = 500
|
|
15
|
+
}) => {
|
|
16
|
+
const [n, l] = i(!1), [o, r] = i(null);
|
|
17
|
+
p(() => {
|
|
18
|
+
r(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
|
|
19
|
+
l(o.scrollTop > e);
|
|
20
|
+
});
|
|
21
|
+
}, [o, t, e]);
|
|
22
|
+
const c = m(() => {
|
|
23
|
+
o == null || o.scrollTo({
|
|
24
|
+
behavior: "smooth",
|
|
25
|
+
top: 0
|
|
26
|
+
});
|
|
27
|
+
}, [o]);
|
|
28
|
+
return n ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(
|
|
29
|
+
u,
|
|
30
|
+
{
|
|
31
|
+
height: "40px",
|
|
32
|
+
icon: "arrow-up",
|
|
33
|
+
iconSize: "sm",
|
|
34
|
+
id: "scroll-up",
|
|
35
|
+
onClick: c,
|
|
36
|
+
width: "40px"
|
|
37
|
+
}
|
|
38
|
+
) }) : null;
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
g as ScrollUpButton
|
|
42
|
+
};
|
|
@@ -1,7 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { u as h } from "../../index-DwznImvK.mjs";
|
|
3
|
+
import { isEmpty as $ } from "lodash";
|
|
4
|
+
import { forwardRef as b, useState as w, useCallback as S, Fragment as k } from "react";
|
|
5
|
+
import { styled as i, useTheme as C } from "styled-components";
|
|
6
|
+
import { Icon as z } from "../icon/index.js";
|
|
7
|
+
import { IconButton as c } from "../icon-button/index.js";
|
|
8
|
+
import { u as O } from "../../use-click-outside-BUll8Ag-.mjs";
|
|
9
|
+
const v = i.input`
|
|
10
|
+
${({ theme: o }) => `
|
|
11
|
+
background: none;
|
|
12
|
+
border: none !important;
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
color: ${o.palette.gray[800]};
|
|
16
|
+
font-family: ${o.typography.type.primary};
|
|
17
|
+
font-size: ${o.typography.text.sm};
|
|
18
|
+
outline: none;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
&::placeholder {
|
|
22
|
+
color: ${o.palette.gray[400]};
|
|
23
|
+
}
|
|
24
|
+
`}
|
|
25
|
+
`, I = i.div`
|
|
26
|
+
${({ theme: o }) => `
|
|
27
|
+
align-items: center;
|
|
28
|
+
background-color: ${o.palette.white};
|
|
29
|
+
border: 1px solid ${o.palette.gray[300]};
|
|
30
|
+
border-radius: ${o.spacing[0.5]};
|
|
31
|
+
display: flex;
|
|
32
|
+
height: 40px;
|
|
33
|
+
gap: ${o.spacing[0.5]};
|
|
34
|
+
padding: ${o.spacing[0.5]};
|
|
35
|
+
width: 100%;
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
border-color: ${o.palette.gray[600]};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus-within {
|
|
42
|
+
border: 2px solid ${o.palette.black};
|
|
43
|
+
}
|
|
44
|
+
`}
|
|
45
|
+
`, T = i.div`
|
|
46
|
+
${({ theme: o }) => `
|
|
47
|
+
background-color: ${o.palette.white};
|
|
48
|
+
border-radius: ${o.spacing[0.5]};
|
|
49
|
+
width: 250px;
|
|
50
|
+
`}
|
|
51
|
+
`, G = b(function({ name: n, smallSearch: d = !1, value: a, ...g }, f) {
|
|
52
|
+
const t = C(), [y, s] = w(!1), { refs: e, floatingStyles: u } = h(), m = S(() => {
|
|
53
|
+
s((x) => !x);
|
|
54
|
+
}, []);
|
|
55
|
+
O(
|
|
56
|
+
e.floating.current,
|
|
57
|
+
() => {
|
|
58
|
+
s(!1);
|
|
59
|
+
},
|
|
60
|
+
!0
|
|
61
|
+
);
|
|
62
|
+
const p = /* @__PURE__ */ l(I, { children: [
|
|
63
|
+
/* @__PURE__ */ r(
|
|
64
|
+
z,
|
|
65
|
+
{
|
|
66
|
+
icon: "magnifying-glass",
|
|
67
|
+
iconColor: t.palette.gray[700],
|
|
68
|
+
iconSize: "xs",
|
|
69
|
+
iconType: "fa-light"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ r(v, { ...g, id: n, name: n, ref: f, value: a }),
|
|
73
|
+
!$(a) && /* @__PURE__ */ r(
|
|
74
|
+
c,
|
|
75
|
+
{
|
|
76
|
+
icon: "xmark",
|
|
77
|
+
iconColor: t.palette.gray[300],
|
|
78
|
+
iconSize: "xs",
|
|
79
|
+
iconType: "fa-light",
|
|
80
|
+
px: 0.25,
|
|
81
|
+
py: 0.25,
|
|
82
|
+
type: "reset",
|
|
83
|
+
variant: "ghost"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] });
|
|
87
|
+
return d ? /* @__PURE__ */ l(k, { children: [
|
|
88
|
+
/* @__PURE__ */ r(
|
|
89
|
+
c,
|
|
90
|
+
{
|
|
91
|
+
border: `1px solid ${t.palette.gray[300]} !important`,
|
|
92
|
+
icon: "magnifying-glass",
|
|
93
|
+
iconSize: "xs",
|
|
94
|
+
iconType: "fa-light",
|
|
95
|
+
onClick: m,
|
|
96
|
+
ref: e.setReference,
|
|
97
|
+
variant: "ghost"
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
y ? /* @__PURE__ */ r(T, { ref: e.setFloating, style: u, children: p }) : void 0
|
|
101
|
+
] }) : p;
|
|
102
|
+
});
|
|
103
|
+
export {
|
|
104
|
+
G as Search
|
|
105
|
+
};
|