@fluidattacks/design 3.1.12 → 3.1.14
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/assets/design.css +1 -0
- package/dist/components/@core/index.js +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -7
- package/dist/components/accordion/index.js +5 -19
- package/dist/components/alert/index.js +4 -111
- package/dist/components/button/index.js +4 -16
- package/dist/components/card/card-header/index.js +4 -12
- package/dist/components/card/card-with-image/index.js +5 -16
- package/dist/components/card/card-with-input/index.js +5 -54
- package/dist/components/card/card-with-selector/index.js +4 -14
- package/dist/components/card/card-with-switch/index.js +4 -10
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -47
- package/dist/components/checkbox/index.js +4 -82
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -25
- package/dist/components/code-snippet/location-code/index.js +7 -123
- package/dist/components/colors/index.js +7 -7
- package/dist/components/confirm-dialog/index.js +4 -20
- package/dist/components/container/index.js +4 -25
- package/dist/components/content-card/category-tag/index.js +4 -11
- package/dist/components/content-card/event-date/index.js +5 -16
- package/dist/components/content-card/index.js +4 -61
- package/dist/components/content-card-carousel/index.js +4 -13
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -8
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -46
- package/dist/components/file-preview/index.js +3 -26
- package/dist/components/form/index.js +4 -24
- package/dist/components/grid-container/index.js +4 -26
- package/dist/components/group-selector/index.js +6 -24
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -46
- package/dist/components/icon-button/index.js +4 -25
- package/dist/components/indicator-card/index.js +5 -13
- package/dist/components/info-sidebar/index.js +4 -14
- package/dist/components/inputs/fields/combobox/index.js +7 -24
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
- package/dist/components/inputs/fields/date/calendar/index.js +6 -13
- package/dist/components/inputs/fields/date/index.js +8 -16
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
- package/dist/components/inputs/fields/date-range/index.js +6 -26
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-time/index.js +6 -16
- package/dist/components/inputs/fields/editable/index.js +4 -14
- package/dist/components/inputs/fields/input/index.js +5 -11
- package/dist/components/inputs/fields/input-file/index.js +6 -30
- package/dist/components/inputs/fields/input-tags/index.js +4 -17
- package/dist/components/inputs/fields/number/index.js +4 -8
- package/dist/components/inputs/fields/number-range/index.js +4 -9
- package/dist/components/inputs/fields/phone/index.js +7 -417
- package/dist/components/inputs/fields/text-area/index.js +5 -11
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -10
- package/dist/components/inputs/outline-container/index.js +4 -16
- package/dist/components/inputs/utils/action-button/index.js +4 -8
- package/dist/components/inputs/utils/calendar-button/index.js +5 -11
- package/dist/components/inputs/utils/date-selector/index.js +3 -6
- package/dist/components/inputs/utils/date-time-field/index.js +10 -30
- package/dist/components/inputs/utils/dialog/index.js +5 -9
- package/dist/components/inputs/utils/number-field/index.js +5 -11
- package/dist/components/inputs/utils/popover/index.js +5 -11
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -13
- package/dist/components/language-selector/index.js +4 -11
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -50
- package/dist/components/list-item/index.js +6 -14
- package/dist/components/little-flag/index.js +3 -13
- package/dist/components/loading/index.js +4 -65
- package/dist/components/logo/index.js +3 -5
- package/dist/components/logo-carousel/index.js +4 -50
- package/dist/components/lottie/index.js +3 -13
- package/dist/components/menu/index.js +5 -20
- package/dist/components/message-banner/index.js +5 -33
- package/dist/components/modal/index.js +6 -17
- package/dist/components/modal/modal-confirm/index.js +3 -8
- package/dist/components/modal/modal-footer/index.js +5 -14
- package/dist/components/modal/modal-header/index.js +6 -23
- package/dist/components/notification/index.js +5 -66
- package/dist/components/notification-sign/index.js +4 -28
- package/dist/components/number-input/index.js +5 -50
- package/dist/components/oauth-selector/index.js +6 -24
- package/dist/components/oauth-selector/option-container/index.js +4 -13
- package/dist/components/plan-card/index.js +3 -82
- package/dist/components/plan-card/recommended-tag/index.js +3 -8
- package/dist/components/pop-up/description/index.js +5 -11
- package/dist/components/pop-up/index.js +7 -21
- package/dist/components/premium-feature/index.js +4 -43
- package/dist/components/priority-score/index.js +4 -12
- package/dist/components/progress/index.js +5 -32
- package/dist/components/progress-bar/index.js +3 -93
- package/dist/components/radio-button/index.js +4 -86
- package/dist/components/scroll-button/index.js +4 -22
- package/dist/components/search/index.js +7 -61
- package/dist/components/search-bar/index.js +4 -30
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -12
- package/dist/components/severity-overview/badge/index.js +4 -16
- package/dist/components/severity-overview/index.js +3 -5
- package/dist/components/show-on-hover/index.js +3 -23
- package/dist/components/slide-out-menu/index.js +6 -2006
- package/dist/components/slide-out-menu/menu-item/index.js +4 -13
- package/dist/components/slider/index.js +7 -91
- package/dist/components/slider/thumb/index.js +5 -8
- package/dist/components/step-lapse/index.js +4 -99
- package/dist/components/table-button/index.js +4 -54
- package/dist/components/tabs/fixed-tabs/index.js +3 -7
- package/dist/components/tabs/index.js +6 -12
- package/dist/components/tabs/tab/index.js +3 -6
- package/dist/components/tag/index.js +4 -114
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -5
- package/dist/components/toggle/index.js +4 -61
- package/dist/components/toggle-buttons/index.js +4 -72
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -2514
- package/dist/components/typography/heading/index.js +4 -7
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -7
- package/dist/components/typography/text/index.js +4 -7
- package/dist/components/web-form/index.js +4 -69
- package/dist/components-C2JBXbtI.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +113 -205
- package/dist/vendor-CVMqCpkZ.mjs +14504 -0
- package/package.json +2 -3
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/index-38JqtnAI.mjs +0 -122
- package/dist/index-B5yoGFs6.mjs +0 -54
- package/dist/index-BLbKylyw.mjs +0 -209
- package/dist/index-Bu448Tz2.mjs +0 -106
- package/dist/index-BwFnfaRh.mjs +0 -2310
- package/dist/index-Co_k0WFk.mjs +0 -75
- package/dist/index-Cu7uUMlx.mjs +0 -82
- package/dist/index-D-lcuEHY.mjs +0 -1018
- package/dist/index-DrfjITyT.mjs +0 -61
- package/dist/styles-7_q7nHce.mjs +0 -110
- package/dist/styles-BA0WIQL-.mjs +0 -74
- package/dist/styles-C3cZmKVJ.mjs +0 -131
- package/dist/styles-CI-I6joH.mjs +0 -144
- package/dist/styles-Cx93EcVo.mjs +0 -76
- package/dist/styles-D85YYIjM.mjs +0 -131
- package/dist/styles-EIbGRPlk.mjs +0 -106
- package/dist/styles-Q1VXuWI7.mjs +0 -65
- package/dist/styles-fH2c4cfc.mjs +0 -77
- package/dist/styles-lSVV9kjn.mjs +0 -133
- package/dist/use-carousel-CvRxi2FI.mjs +0 -17
- package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
- package/dist/use-modal-CkrZ-_-M.mjs +0 -14
- package/dist/use-search-DpLNvt7Q.mjs +0 -12
- package/dist/utils-CQvBF-wY.mjs +0 -4
|
@@ -1,68 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Icon as a } from "../icon/index.js";
|
|
6
|
-
import { IconButton as f } from "../icon-button/index.js";
|
|
7
|
-
import { Heading as g } from "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as $ } from "../typography/text/index.js";
|
|
10
|
-
const h = s.div`
|
|
11
|
-
${({ theme: i, $variant: n }) => `
|
|
12
|
-
background: ${i.palette.white};
|
|
13
|
-
border: 1px solid ${i.palette.gray[200]};
|
|
14
|
-
border-radius: ${i.spacing[0.25]};
|
|
15
|
-
border-left: 4px solid ${i.palette[n][500]};
|
|
16
|
-
box-shadow: ${i.shadows.md};
|
|
17
|
-
position: relative;
|
|
18
|
-
display: flex;
|
|
19
|
-
width: 360px;
|
|
20
|
-
padding: ${i.spacing[1.25]} ${i.spacing[1]} ${i.spacing[1.25]} ${i.spacing[0.75]};
|
|
21
|
-
gap: ${i.spacing[0.5]};
|
|
22
|
-
|
|
23
|
-
button {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 20px;
|
|
26
|
-
right: 16px;
|
|
27
|
-
}
|
|
28
|
-
`}
|
|
29
|
-
`, x = s.div`
|
|
30
|
-
${({ theme: i, $variant: n }) => `
|
|
31
|
-
height: ${i.spacing[2.5]};
|
|
32
|
-
width: ${i.spacing[2.5]};
|
|
33
|
-
position: relative;
|
|
34
|
-
flex-shrink: 0;
|
|
35
|
-
|
|
36
|
-
& .ellipse-1,
|
|
37
|
-
& .ellipse-2,
|
|
38
|
-
& .icon {
|
|
39
|
-
top: 50%;
|
|
40
|
-
left: 50%;
|
|
41
|
-
transform: translate(-50%, -50%);
|
|
42
|
-
position: absolute;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
& .ellipse-1 {
|
|
46
|
-
transform: scale(2.5) translate(-20%, -20%);
|
|
47
|
-
color: ${i.palette[n][50]};
|
|
48
|
-
position: absolute;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
& .ellipse-2 {
|
|
52
|
-
transform: scale(2) translate(-25%, -25%);
|
|
53
|
-
color: ${i.palette[n][200]};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .icon {
|
|
57
|
-
color: ${i.palette[n][500]};
|
|
58
|
-
}
|
|
59
|
-
`}
|
|
60
|
-
`, b = (i) => i === "warning" ? "triangle-exclamation" : i === "info" ? "circle-info" : i === "success" ? "circle-check" : "circle-exclamation", j = ({ description: i, onClose: n, title: r, variant: e }) => {
|
|
61
|
-
const l = d(), c = p(() => {
|
|
62
|
-
n == null || n();
|
|
63
|
-
}, [n]);
|
|
64
|
-
return t(h, { $variant: e, className: `notification notification__${e}`, role: "alertdialog", children: [t(x, { $variant: e, children: [o(a, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }), o(a, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }), o(a, { icon: b(e), iconClass: "icon", iconSize: "xs", iconType: "fa-light" })] }), t(m, { pr: 1.5, children: [o(g, { fontWeight: "bold", size: "xs", children: r }), o($, { size: "sm", whiteSpace: "break-spaces", wordWrap: "break-word", children: i })] }), o(f, { height: "fit-content", icon: "close", iconColor: l.palette.gray[400], iconSize: "xs", iconType: "fa-light", onClick: c, px: 0.125, py: 0.125, variant: "ghost" })] });
|
|
65
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { af as p } from "../../components-C2JBXbtI.mjs";
|
|
66
5
|
export {
|
|
67
|
-
|
|
6
|
+
p as Notification
|
|
68
7
|
};
|
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { B as p } from "../../styles-C3cZmKVJ.mjs";
|
|
5
|
-
const d = i(p)`
|
|
6
|
-
${({ theme: t, $variant: n }) => `
|
|
7
|
-
align-items: center;
|
|
8
|
-
background: ${n === "error" ? t.palette.primary[400] : t.palette.warning[500]};
|
|
9
|
-
border-radius: 100%;
|
|
10
|
-
font-family: ${t.typography.type.primary};
|
|
11
|
-
justify-content: center;
|
|
12
|
-
padding: 0;
|
|
13
|
-
position: absolute;
|
|
14
|
-
z-index: 11;
|
|
15
|
-
width: ${t.spacing[0.5]};
|
|
16
|
-
height: ${t.spacing[0.5]};
|
|
17
|
-
`}
|
|
18
|
-
`, c = i.div`
|
|
19
|
-
align-items: center;
|
|
20
|
-
color: ${({ theme: t }) => t.palette.white};
|
|
21
|
-
display: flex;
|
|
22
|
-
font-size: 6px;
|
|
23
|
-
font-weight: ${({ theme: t }) => t.typography.weight.bold};
|
|
24
|
-
justify-content: center;
|
|
25
|
-
`, g = s(function({ numberIndicator: t, show: n, variant: r = "error", ...a }, o) {
|
|
26
|
-
return e(d, { $variant: r, className: n ? "flex" : "hidden", "data-testid": "notification-sign", ref: o, ...a, children: t && e(c, { children: t <= 9 ? t : 9 }) });
|
|
27
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ag as a } from "../../components-C2JBXbtI.mjs";
|
|
28
4
|
export {
|
|
29
|
-
|
|
5
|
+
a as NotificationSign
|
|
30
6
|
};
|
|
@@ -1,52 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { T as $ } from "../../index-D-lcuEHY.mjs";
|
|
6
|
-
const P = g.div`
|
|
7
|
-
width: fit-content;
|
|
8
|
-
border: ${({ theme: t }) => `1px solid ${t.palette.gray[300]}`};
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
background: none;
|
|
11
|
-
color: ${({ theme: t }) => t.palette.black};
|
|
12
|
-
font-family: ${({ theme: t }) => t.typography.type.primary};
|
|
13
|
-
font-size: ${({ theme: t }) => t.typography.text.md};
|
|
14
|
-
height: 40px;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
padding: 0.5em;
|
|
19
|
-
`, E = g.input`
|
|
20
|
-
width: 4em;
|
|
21
|
-
appearance: textfield;
|
|
22
|
-
border-style: none;
|
|
23
|
-
padding: 0.5rem;
|
|
24
|
-
padding-top: 0.5rem;
|
|
25
|
-
padding-bottom: 0.5rem;
|
|
26
|
-
padding-left: 0.5rem;
|
|
27
|
-
background: none;
|
|
28
|
-
|
|
29
|
-
&:focus {
|
|
30
|
-
border-color: unset;
|
|
31
|
-
box-shadow: none;
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&::-webkit-outer-spin-button,
|
|
36
|
-
&::-webkit-inner-spin-button {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
}
|
|
39
|
-
`, U = w(function({ autoUpdate: t = !1, decimalPlaces: s = 0, defaultValue: m = 0, max: r, min: o, name: b, onEnter: n, tooltipMessage: f, ...y }, h) {
|
|
40
|
-
const a = s < 0 ? 0 : s, [c, p] = T(Number(m).toFixed(a)), x = l((e) => {
|
|
41
|
-
const i = d(e.target.value);
|
|
42
|
-
e.target.value.endsWith(".") ? p(e.target.value) : i >= Number(o) && i <= Number(r) && (p(String(i)), t && n(d(i.toFixed(a)))), e.stopPropagation();
|
|
43
|
-
}, [t, a, r, o, n]), v = l((e) => {
|
|
44
|
-
e.currentTarget.contains(e.relatedTarget) || p(Number(m).toFixed(a)), e.stopPropagation();
|
|
45
|
-
}, [a, m]), N = l((e) => {
|
|
46
|
-
e.stopPropagation(), e.key !== "Enter" || k(e.currentTarget.value) || n(d(e.currentTarget.value));
|
|
47
|
-
}, [n]);
|
|
48
|
-
return u(P, { onBlur: v, tabIndex: -1, children: u($, { id: "numberInputTooltip", tip: f, children: u(E, { ...y, "aria-label": b, "aria-valuemax": Number(r), "aria-valuemin": Number(o), "aria-valuenow": Number(c), max: r, min: o, name: b, onChange: x, onKeyUp: N, ref: h, step: 10 ** -a, type: "number", value: c }) }) });
|
|
49
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import { ah as i } from "../../components-C2JBXbtI.mjs";
|
|
50
5
|
export {
|
|
51
|
-
|
|
6
|
+
i as NumberInput
|
|
52
7
|
};
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Button as I } from "../button/index.js";
|
|
6
|
-
import { Container as d } from "../container/index.js";
|
|
7
|
-
import { u as j } from "../../use-click-outside-BtZLIoU1.mjs";
|
|
8
|
-
const D = ({ align: m = "end", buttonLabel: c = "Add Credential", children: u, id: b, manualOption: e, providers: r }) => {
|
|
9
|
-
const f = O(), [h, o] = y(!1), a = x(null);
|
|
10
|
-
j(a.current, () => {
|
|
11
|
-
o(!1);
|
|
12
|
-
}, !0);
|
|
13
|
-
const C = n((i) => {
|
|
14
|
-
e == null || e.onClick(i), o(!1);
|
|
15
|
-
}, [e]), v = n(() => {
|
|
16
|
-
o((i) => !i);
|
|
17
|
-
}, [o]), g = n((i) => (k) => {
|
|
18
|
-
var l;
|
|
19
|
-
(l = r[i]) == null || l.onClick(k), o(!1);
|
|
20
|
-
}, [r]);
|
|
21
|
-
return s(d, { alignItems: m, display: "flex", flexDirection: "column", position: "relative", ref: a, width: "max-content", zIndex: 10, children: [t(I, { icon: "plus", onClick: v, variant: "primary", children: c }), s(d, { alignItems: "center", bgColor: "#fff", border: `1px solid ${f.palette.gray[200]}`, borderRadius: "4px", display: "flex", gap: 0.5, height: "78px", id: b, pb: 0.5, pl: 0.75, position: "absolute", pr: 0.75, pt: 0.5, shadow: "md", top: "40px", visibility: h ? "visible" : "hidden", zIndex: 10, children: [Object.keys(r).map((i) => t(p, { onClick: g(i), provider: i }, i)), e === void 0 ? void 0 : t(p, { icon: "square-plus", label: e.label ?? "Add manually", onClick: C }), u] })] });
|
|
22
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { ai as p, aj as e } from "../../components-C2JBXbtI.mjs";
|
|
23
5
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
p as OAuthSelector,
|
|
7
|
+
e as OptionContainer
|
|
26
8
|
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Container as i } from "../../container/index.js";
|
|
5
|
-
import { Icon as m } from "../../icon/index.js";
|
|
6
|
-
import "../../typography/heading/index.js";
|
|
7
|
-
import "../../typography/span/index.js";
|
|
8
|
-
import { Text as g } from "../../typography/text/index.js";
|
|
9
|
-
const h = { Azure: "integrates/autoenrollment/azureIcon", Bitbucket: "integrates/autoenrollment/bitbucketLogo", GitHub: "integrates/autoenrollment/githubLogo", GitLab: "integrates/autoenrollment/gitlabIcon" }, L = ({ icon: o, label: a, onClick: l, onlyLabel: r = !1, provider: t = "GitLab" }) => {
|
|
10
|
-
const n = s();
|
|
11
|
-
return p(i, { alignItems: "center", bgColorHover: n.palette.gray[100], borderRadius: "4px", cursor: "pointer", display: "flex", flexDirection: "column", gap: 0.25, height: "62px", justify: "center", minWidth: "64px", onClick: l, pb: 0.5, pl: 0.25, pr: 0.25, pt: 0.5, children: [!r && e(i, { height: "24px", width: "24px", children: o === void 0 ? e(c, { alt: `${t} Logo`, height: "100%", publicId: h[t], width: "100%" }) : e(m, { icon: o, iconColor: "#000", iconSize: "sm", iconType: "fa-light" }) }), e(i, { alignItems: "center", display: "flex", minWidth: "24px", children: e(g, { color: n.palette.gray[800], display: "inline", size: "xs", textAlign: "center", whiteSpace: r ? "break-spaces" : "nowrap", wordWrap: "unset", children: a ?? t }) })] });
|
|
12
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { aj as p } from "../../../components-C2JBXbtI.mjs";
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
p as OptionContainer
|
|
15
6
|
};
|
|
@@ -1,84 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { styled as o } from "styled-components";
|
|
4
|
-
import { Button as x } from "../button/index.js";
|
|
5
|
-
import { theme as r } from "../colors/index.js";
|
|
6
|
-
import { Container as b } from "../container/index.js";
|
|
7
|
-
import { Heading as u } from "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as s } from "../typography/text/index.js";
|
|
10
|
-
const f = o.div`
|
|
11
|
-
${({ className: t, theme: n }) => `
|
|
12
|
-
align-items: flex-start;
|
|
13
|
-
border-radius: ${n.spacing[1]};
|
|
14
|
-
background: ${n.palette.white};
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: ${n.spacing[1]};
|
|
18
|
-
padding: ${n.spacing[1.5]};
|
|
19
|
-
position: relative;
|
|
20
|
-
width: 320px;
|
|
21
|
-
|
|
22
|
-
button {
|
|
23
|
-
text-align: center;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
${t === "essential" ? `border: 2px solid ${n.palette.gray[300]};` : `
|
|
28
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
29
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
30
|
-
|
|
31
|
-
&::before {
|
|
32
|
-
background: ${n.palette.gradients["01"]} border-box;
|
|
33
|
-
border-radius: ${n.spacing[1]};
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
inset: 0;
|
|
37
|
-
border: 2px solid transparent;
|
|
38
|
-
mask:
|
|
39
|
-
linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
40
|
-
mask-composite: exclude;
|
|
41
|
-
}
|
|
42
|
-
`}
|
|
43
|
-
`}
|
|
44
|
-
`;
|
|
45
|
-
o.div`
|
|
46
|
-
${({ className: t, theme: n }) => `
|
|
47
|
-
align-items: flex-start;
|
|
48
|
-
border-radius: ${n.spacing[1]};
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
gap: ${n.spacing[1.5]};
|
|
53
|
-
padding: ${n.spacing[1.5]};
|
|
54
|
-
width: 466px;
|
|
55
|
-
|
|
56
|
-
button {
|
|
57
|
-
text-align: center;
|
|
58
|
-
width: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
${t === "essential" ? `
|
|
62
|
-
background: linear-gradient(
|
|
63
|
-
180deg,
|
|
64
|
-
${n.palette.primary[400]} 0%,
|
|
65
|
-
${n.palette.black} 100%
|
|
66
|
-
);` : `
|
|
67
|
-
background: ${n.palette.white};
|
|
68
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
69
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
70
|
-
`}
|
|
71
|
-
|
|
72
|
-
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
73
|
-
width: 320px;
|
|
74
|
-
}
|
|
75
|
-
`}
|
|
76
|
-
`;
|
|
77
|
-
const h = { advanced: { title: "Advanced plan", benefits: "Leverage vulnerability scanning + AI + expert intelligence", buttonText: "Contact sales", description: "For teams that want to discover risk exposure with speed and accuracy.", priceGroup: "$1,579" }, essential: { title: "Essential plan", benefits: "Leverage vulnerability scanning", buttonText: "Start a 21-day free trial", description: `For teams that want to discover risk exposure quickly
|
|
78
|
-
through our scanning tool.`, priceAuthor: "$499", priceGroup: "$1,579" } }, j = ({ description: t, onClick: n, plan: e }) => {
|
|
79
|
-
const { title: p, description: l, benefits: d, buttonText: c } = h[e], m = t ?? l;
|
|
80
|
-
return a(f, { className: e, children: [a(b, { display: "flex", flexDirection: "column", gap: 0.25, pt: e === "essential" ? 1.75 : 0, children: [e === "advanced" && i(g, {}), i(u, { color: r.palette.gray[900], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: p }), i(s, { color: r.palette.gray[400], fontWeight: "semibold", pb: e === "essential" ? 1.25 : 0, size: "sm", sizeSm: "xs", children: d })] }), i(s, { lineSpacing: 1.5, lineSpacingSm: 1.25, pb: e === "advanced" ? 1.5 : 0, size: "md", sizeSm: "sm", children: m }), i(x, { onClick: n, variant: "primary", children: c })] });
|
|
81
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { bo as m } from "../../components-C2JBXbtI.mjs";
|
|
82
3
|
export {
|
|
83
|
-
|
|
4
|
+
m as PlanCard
|
|
84
5
|
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Container as r } from "../../container/index.js";
|
|
4
|
-
import "../../typography/heading/index.js";
|
|
5
|
-
import "../../typography/span/index.js";
|
|
6
|
-
import { Text as i } from "../../typography/text/index.js";
|
|
7
|
-
const p = () => e(r, { alignItems: "center", bgColor: t.palette.primary[25], borderRadius: "8px", gap: 0.5, justify: "center", padding: [0.125, 0.25, 0.125, 0.25], width: "max-content", children: e(i, { bgGradient: t.palette.gradients["01"], fontWeight: "semibold", size: "xs", textFill: "transparent", children: "Recommended" }) });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { bn as r } from "../../../components-C2JBXbtI.mjs";
|
|
8
3
|
export {
|
|
9
|
-
|
|
4
|
+
r as RecommendedTag
|
|
10
5
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import { Span as o } from "../../typography/span/index.js";
|
|
6
|
-
import { Text as s } from "../../typography/text/index.js";
|
|
7
|
-
const u = ({ description: n = "", highlightDescription: i = "" }) => {
|
|
8
|
-
const l = m(), r = typeof i == "string", a = r ? "" : new RegExp(`(${i.join("|")})`, "u");
|
|
9
|
-
return i.length > 0 ? e(s, { display: "inline", lineSpacing: 1.5, size: "lg", textAlign: "center", children: r ? c(p, { children: [e(o, { color: l.palette.gray[600], display: "inline", fontWeight: "bold", lineSpacing: 1.5, size: "lg", children: i }), n] }) : n.split(a).map((t, g) => i.includes(t) ? e(o, { color: l.palette.gray[600], display: "inline", fontWeight: "bold", lineSpacing: 1.5, size: "lg", children: t }, `${g + 1}-bold`) : t) }) : e(s, { lineSpacing: 1.5, size: "lg", textAlign: "center", children: n });
|
|
10
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { bp as m } from "../../../components-C2JBXbtI.mjs";
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
m as Description
|
|
13
7
|
};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { Button as h } from "../button/index.js";
|
|
8
|
-
import { M as W } from "../../index-BwFnfaRh.mjs";
|
|
9
|
-
import { Container as r } from "../container/index.js";
|
|
10
|
-
import { Heading as A } from "../typography/heading/index.js";
|
|
11
|
-
import "../typography/span/index.js";
|
|
12
|
-
import "../typography/text/index.js";
|
|
13
|
-
const F = ({ _portal: l = !1, cancelButton: i, darkBackground: f = !1, children: a, confirmButton: t, container: x, description: m, highlightDescription: u = "", image: b, maxWidth: y, title: n, titleColor: C }) => {
|
|
14
|
-
const c = g(), { alt: k, src: w, width: v = "77px", height: D = "77px" } = b, I = s(() => {
|
|
15
|
-
i == null || i.onClick();
|
|
16
|
-
}, [i]), j = s(() => {
|
|
17
|
-
t == null || t.onClick();
|
|
18
|
-
}, [t]), d = e(r, { alignItems: "center", "aria-label": n, "aria-modal": "true", bgColor: f ? "rgba(52, 64, 84, 70%)" : "", display: "flex", height: "100vh", justify: "center", left: "0", position: l ? "fixed" : "absolute", top: "0px", width: "100%", zIndex: 99999, children: o(r, { bgColor: c.palette.white, border: `1px solid ${c.palette.gray[200]}`, borderRadius: "8px", display: "inline-flex", flexDirection: "column", maxWidth: y, pb: 2.5, pl: 2.5, pr: 2.5, pt: 2.5, shadow: "lg", width: "100%", zIndex: 11, children: [o(r, { alignItems: "center", display: "flex", flexDirection: "column", width: "100%", children: [e(r, { children: e(W, { alt: k, height: D, publicId: w, width: v }) }), o(r, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, mt: 1.5, children: [e(A, { color: C, fontWeight: "bold", lineSpacing: 2.5, size: "lg", textAlign: "center", children: n }), e(z, { description: m, highlightDescription: u })] })] }), a && e(r, { mb: 1, scroll: "y", children: e(r, { height: "100%", children: a }) }), o(r, { alignItems: "flex-start", display: "flex", gap: 1, justify: "center", children: [p(t) ? e(h, { onClick: j, variant: (t == null ? void 0 : t.variant) ?? "primary", children: t == null ? void 0 : t.text }, t == null ? void 0 : t.key) : void 0, p(i) ? e(h, { onClick: I, variant: (i == null ? void 0 : i.variant) ?? "tertiary", children: i == null ? void 0 : i.text }, i == null ? void 0 : i.key) : void 0] })] }) });
|
|
19
|
-
return l ? B(d, x ?? document.body) : d;
|
|
20
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "styled-components";
|
|
6
|
+
import { an as e } from "../../components-C2JBXbtI.mjs";
|
|
21
7
|
export {
|
|
22
|
-
|
|
8
|
+
e as PopUp
|
|
23
9
|
};
|
|
@@ -1,45 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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 m } from "../typography/text/index.js";
|
|
8
|
-
const d = c.div`
|
|
9
|
-
${({ theme: n }) => `
|
|
10
|
-
height: ${n.spacing[1]};
|
|
11
|
-
width: ${n.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: ${n.palette.warning[200]};
|
|
26
|
-
position: absolute;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
& .ellipse-2 {
|
|
30
|
-
transform: scale(0.75) translate(-67%, -66%);
|
|
31
|
-
color: ${n.palette.warning[400]};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
& .icon {
|
|
35
|
-
color: ${n.palette.warning[600]};
|
|
36
|
-
font-size: ${n.spacing[0.5]};
|
|
37
|
-
}
|
|
38
|
-
`}
|
|
39
|
-
`, $ = ({ margin: n, onClick: o, text: l }) => {
|
|
40
|
-
const s = p(), r = t(d, { children: [i(e, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }), i(e, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }), i(e, { icon: "crown", iconClass: "icon", iconSize: "xs" })] });
|
|
41
|
-
return i(a, l !== void 0 ? { cursor: "pointer", display: "inline-block", mr: n, onClick: o, children: t(a, { alignItems: "center", bgColor: s.palette.warning[50], borderRadius: "4px", display: "flex", padding: [0.25, 0.25, 0.25, 0.25], width: "fit-content", children: [r, i(m, { color: s.palette.warning[500], display: "inline", ml: 0.25, size: "xs", children: l })] }) } : { display: "inline-block", mr: n, onClick: o, children: r });
|
|
42
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { ak as t } from "../../components-C2JBXbtI.mjs";
|
|
43
4
|
export {
|
|
44
|
-
|
|
5
|
+
t as PremiumFeature
|
|
45
6
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as s } from "../icon/index.js";
|
|
5
|
-
import "../typography/heading/index.js";
|
|
6
|
-
import "../typography/span/index.js";
|
|
7
|
-
import { Text as n } from "../typography/text/index.js";
|
|
8
|
-
const x = ({ score: r }) => {
|
|
9
|
-
const o = e();
|
|
10
|
-
return t(a, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [i(s, { icon: r > 66 || r === 0 ? "priority-bars-high" : r <= 33 ? "priority-bars-low" : "priority-bars-medium", iconClass: r <= 66 ? "fa-kit-duotone" : "", iconColor: r > 0 ? o.palette.primary[500] : o.palette.gray[200], iconSize: "xs", iconType: "fa-kit", secondaryColor: o.palette.gray[200] }), i(n, { color: o.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })] });
|
|
11
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { al as m } from "../../components-C2JBXbtI.mjs";
|
|
12
4
|
export {
|
|
13
|
-
|
|
5
|
+
m as PriorityScore
|
|
14
6
|
};
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as f } from "../container/index.js";
|
|
6
|
-
const d = l(h)`
|
|
7
|
-
animation: ${({ $animationTime: e }) => `progress-bar ${e}s ease-in-out`};
|
|
8
|
-
animation-fill-mode: both;
|
|
9
|
-
|
|
10
|
-
@keyframes progress-bar {
|
|
11
|
-
0% {
|
|
12
|
-
width: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
100% {
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`, w = ({ progressTime: e = 10, onComplete: t }) => {
|
|
20
|
-
const s = g(), [r, m] = p(0);
|
|
21
|
-
return i(() => {
|
|
22
|
-
r === 100 && (t == null || t());
|
|
23
|
-
}, [r, t]), i(() => {
|
|
24
|
-
const n = setInterval(() => {
|
|
25
|
-
m((a) => a === 100 ? 0 : a + 1);
|
|
26
|
-
}, ((a) => 1e3 * a / 100)(e));
|
|
27
|
-
return () => {
|
|
28
|
-
clearInterval(n);
|
|
29
|
-
};
|
|
30
|
-
}, [r, e]), o(f, { bgColor: s.palette.gray[200], height: "4px", children: o(d, { $animationTime: e, bgGradient: s.palette.gradients["01"], height: "100%", width: `${r}%` }) });
|
|
31
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { am as i } from "../../components-C2JBXbtI.mjs";
|
|
32
5
|
export {
|
|
33
|
-
|
|
6
|
+
i as Progress
|
|
34
7
|
};
|
|
@@ -1,95 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { v as g } from "../../utils-CQvBF-wY.mjs";
|
|
4
|
-
import "../../styles-C3cZmKVJ.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 $ } from "../typography/text/index.js";
|
|
9
|
-
const { getVariant: m } = g((n) => ({ compliance: `
|
|
10
|
-
display: inline-flex;
|
|
11
|
-
|
|
12
|
-
&.horizontal {
|
|
13
|
-
height: ${n.spacing[0.75]};
|
|
14
|
-
}
|
|
15
|
-
&.vertical {
|
|
16
|
-
width: ${n.spacing[0.75]};
|
|
17
|
-
}
|
|
18
|
-
`, default: `
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
|
|
21
|
-
&.horizontal {
|
|
22
|
-
height: ${n.spacing[0.5]};
|
|
23
|
-
}
|
|
24
|
-
&.vertical {
|
|
25
|
-
width: ${n.spacing[0.5]};
|
|
26
|
-
}
|
|
27
|
-
.progress-bar {
|
|
28
|
-
background-color: ${n.palette.primary[500]};
|
|
29
|
-
}
|
|
30
|
-
`, progressIndicator: `
|
|
31
|
-
display: flex;
|
|
32
|
-
|
|
33
|
-
&.horizontal {
|
|
34
|
-
height: ${n.spacing[0.125]};
|
|
35
|
-
}
|
|
36
|
-
&.vertical {
|
|
37
|
-
width: ${n.spacing[0.125]};
|
|
38
|
-
}
|
|
39
|
-
.progress-bar {
|
|
40
|
-
background-color: ${n.palette.primary[500]};
|
|
41
|
-
}
|
|
42
|
-
`, progressIndicatorError: `
|
|
43
|
-
display: flex;
|
|
44
|
-
|
|
45
|
-
&.horizontal {
|
|
46
|
-
height: ${n.spacing[0.125]};
|
|
47
|
-
}
|
|
48
|
-
&.vertical {
|
|
49
|
-
width: ${n.spacing[0.125]};
|
|
50
|
-
}
|
|
51
|
-
.progress-bar {
|
|
52
|
-
background-color: ${n.palette.error[200]};
|
|
53
|
-
}
|
|
54
|
-
`, small: `
|
|
55
|
-
color: ${n.palette.primary[500]};
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
|
|
58
|
-
&.horizontal {
|
|
59
|
-
height: ${n.spacing[0.25]};
|
|
60
|
-
}
|
|
61
|
-
&.vertical {
|
|
62
|
-
width: ${n.spacing[0.25]};
|
|
63
|
-
}
|
|
64
|
-
.progress-bar {
|
|
65
|
-
background-color: ${n.palette.primary[500]};
|
|
66
|
-
}
|
|
67
|
-
` })), u = p.div`
|
|
68
|
-
${({ theme: n, $minWidth: r, $orientation: e, $rounded: t, $variant: i }) => `
|
|
69
|
-
background-color: ${n.palette.gray[100]};
|
|
70
|
-
border-radius: ${t ? "100px" : "unset"};
|
|
71
|
-
${e === "horizontal" ? "min-width" : "min-height"}: ${r}px;
|
|
72
|
-
${e === "horizontal" ? "" : "height: 100%;"}
|
|
73
|
-
|
|
74
|
-
${m(n, i)}
|
|
75
|
-
|
|
76
|
-
`}
|
|
77
|
-
`, x = p.div`
|
|
78
|
-
${({ theme: n, $percentage: r, $rounded: e, $variant: t }) => `
|
|
79
|
-
display: inline-flex;
|
|
80
|
-
width: ${r}%;
|
|
81
|
-
max-width: 100%;
|
|
82
|
-
min-width: 0%;
|
|
83
|
-
height: 100%;
|
|
84
|
-
border-radius: ${e ? "100px" : "unset"};
|
|
85
|
-
border-end-end-radius: ${e && r < 100 ? "0" : "inherit"};
|
|
86
|
-
border-start-end-radius: ${e && r < 100 ? "0" : "inherit"};
|
|
87
|
-
background-color: ${t === "compliance" ? ((i, a) => a < 50 ? i.palette.error[500] : a < 80 ? i.palette.warning[500] : i.palette.success[500])(n, r) : "inherit"};
|
|
88
|
-
`}
|
|
89
|
-
`, I = ({ minWidth: n = 100, percentage: r, percentageLocation: e = "right", showPercentage: t = !1, orientation: i = "horizontal", rounded: a = !0, variant: s = "default" }) => {
|
|
90
|
-
const o = t && e === "left", c = t ? l(d, { alignItems: "center", display: "flex", justify: o ? "flex-end" : "flex-start", width: "40px", children: l($, { ml: 0.5, mr: o ? 0.5 : 0, size: "sm", children: `${r}%` }) }) : null;
|
|
91
|
-
return h(d, { alignItems: "center", display: "inline-flex", flexDirection: o ? "row-reverse" : "row", height: i === "horizontal" ? "auto" : "100%", maxWidth: o ? `${n + 43}px` : void 0, minWidth: o ? `${n + 43}px` : void 0, textAlign: "end", children: [l(u, { $minWidth: n, $orientation: i, $rounded: a, $variant: s, className: i, children: l(x, { $percentage: r, $rounded: a, $variant: s, className: "progress-bar" }) }), c] });
|
|
92
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { bq as a } from "../../components-C2JBXbtI.mjs";
|
|
93
3
|
export {
|
|
94
|
-
|
|
4
|
+
a as ProgressBar
|
|
95
5
|
};
|