@fluidattacks/design 3.1.10 → 3.1.12
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/assets/{design.css → index.css} +1 -1
- package/dist/assets/index2.css +1 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +3 -2
- 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-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 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { Container as i } from "../../container/index.js";
|
|
4
|
+
import { Icon as d } from "../../icon/index.js";
|
|
5
|
+
import { PremiumFeature as g } from "../../premium-feature/index.js";
|
|
6
|
+
import "../../typography/heading/index.js";
|
|
7
|
+
import "../../typography/span/index.js";
|
|
8
|
+
import { Text as o } from "../../typography/text/index.js";
|
|
9
|
+
const j = ({ customBadge: a, description: l, icon: s, onClick: n, requiresUpgrade: p = !1, title: c }) => {
|
|
10
|
+
const e = m();
|
|
11
|
+
return t(i, { bgColor: e.palette.white, bgColorHover: e.palette.gray[100], cursor: "pointer", display: "flex", gap: 0.5, onClick: n, px: 1.25, py: 1, width: "100%", children: [r(i, { alignItems: "center", bgColor: e.palette.gray[300], borderRadius: e.spacing[0.25], display: "flex", height: "24px", justify: "center", width: "24px", children: r(d, { icon: s, iconColor: e.palette.gray[800], iconSize: "xxs", ml: 0.5, mr: 0.5 }) }), t(i, { children: [t(i, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [r(o, { color: e.palette.gray[800], size: "sm", children: c }), p ? r(g, { text: "Upgrade" }) : void 0, a] }), r(o, { color: e.palette.gray[400], size: "xs", children: l })] })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
j as MenuItem
|
|
15
|
+
};
|
|
@@ -1,7 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { useNumberFormatter as y, useSlider as f } from "react-aria";
|
|
4
|
+
import { useSliderState as x } from "react-stately";
|
|
5
|
+
import { styled as o, useTheme as b } from "styled-components";
|
|
6
|
+
import { Thumb as w } from "./thumb/index.js";
|
|
7
|
+
import { Container as k } from "../container/index.js";
|
|
8
|
+
import "../typography/heading/index.js";
|
|
9
|
+
import "../typography/span/index.js";
|
|
10
|
+
import { Text as j } from "../typography/text/index.js";
|
|
11
|
+
const v = o.div`
|
|
12
|
+
${({ theme: e, $min: p, $value: r }) => `
|
|
13
|
+
align-items: center;
|
|
14
|
+
align-self: stretch;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: end;
|
|
18
|
+
gap: ${e.spacing[0.75]};
|
|
19
|
+
width: 304px;
|
|
20
|
+
|
|
21
|
+
.track {
|
|
22
|
+
background: linear-gradient(
|
|
23
|
+
to right,
|
|
24
|
+
${p >= 0 ? `
|
|
25
|
+
${e.palette.primary[500]} ${r}%,
|
|
26
|
+
${e.palette.gray[200]} ${r}%
|
|
27
|
+
` : ((a, t) => t >= 50 ? `
|
|
28
|
+
${a.palette.gray[200]} 50%,
|
|
29
|
+
${a.palette.primary[500]} 50.05%,
|
|
30
|
+
${a.palette.primary[500]} ${t}%,
|
|
31
|
+
${a.palette.gray[200]} ${t}%
|
|
32
|
+
` : `
|
|
33
|
+
${a.palette.gray[200]} ${t}%,
|
|
34
|
+
${a.palette.primary[500]} ${t}%,
|
|
35
|
+
${a.palette.primary[500]} 50%,
|
|
36
|
+
${a.palette.gray[200]} 50.05%,
|
|
37
|
+
${a.palette.gray[200]} 100%
|
|
38
|
+
`)(e, r)}
|
|
39
|
+
);
|
|
40
|
+
border-radius: ${e.spacing[0.125]};
|
|
41
|
+
height: ${e.spacing[0.25]};
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.track.disabled {
|
|
46
|
+
opacity: 0.4;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.thumb {
|
|
50
|
+
background: ${e.palette.white};
|
|
51
|
+
border-radius: ${e.spacing[1.25]};
|
|
52
|
+
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
|
|
53
|
+
top: 50%;
|
|
54
|
+
height: 20px;
|
|
55
|
+
width: 20px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.thumb.dragging {
|
|
59
|
+
border: 1px solid ${e.palette.primary[500]};
|
|
60
|
+
}
|
|
61
|
+
`}
|
|
62
|
+
`, T = o.div`
|
|
63
|
+
${({ theme: e }) => `
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
height: ${e.spacing[0.625]};
|
|
68
|
+
width: 100%;
|
|
69
|
+
|
|
70
|
+
p {
|
|
71
|
+
color: ${e.palette.gray[400]};
|
|
72
|
+
font-family: ${e.typography.type.primary};
|
|
73
|
+
font-size: ${e.spacing[0.5]};
|
|
74
|
+
}
|
|
75
|
+
`}
|
|
76
|
+
`, S = o.output`
|
|
77
|
+
${({ theme: e }) => `
|
|
78
|
+
align-items: flex-end;
|
|
79
|
+
border-radius: ${e.spacing[0.5]};
|
|
80
|
+
border: 1px solid ${e.palette.gray[300]};
|
|
81
|
+
background: ${e.palette.white};
|
|
82
|
+
display: flex;
|
|
83
|
+
gap: ${e.spacing[0.625]};
|
|
84
|
+
padding: ${e.spacing[0.625]} ${e.spacing[0.75]};
|
|
85
|
+
width: 59px;
|
|
86
|
+
`}
|
|
87
|
+
`, H = (e) => {
|
|
88
|
+
const p = b(), r = u(null), { minValue: a = 0, maxValue: t = 100 } = e, l = y(), i = x({ ...e, numberFormatter: l }), m = ((d, c, h) => Math.round((h - d) / (c - d) * 100))(a, t, i.getThumbValue(0)), { groupProps: g, trackProps: $ } = f({ ...e, "aria-label": "slider" }, i, r);
|
|
89
|
+
return s(k, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [s(v, { ...g, $min: a ?? 0, $value: m, className: "slider", children: [n("div", { ...$, className: "track " + (i.isDisabled ? "disabled" : ""), ref: r, children: n(w, { index: 0, state: i, trackRef: r }) }), s(T, { children: [n("p", { children: `${l.format(a)} (Low)` }), a < 0 && n("p", { children: "0" }), n("p", { children: `${l.format(t)} (High)` })] })] }), n(S, { children: n(j, { color: p.palette.gray[800], size: "sm", textAlign: "right", children: i.getThumbValueLabel(0) }) })] });
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
H as Slider
|
|
93
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
import { useSliderThumb as o, VisuallyHidden as p } from "react-aria";
|
|
4
|
+
const l = ({ state: i, trackRef: s, index: t }) => {
|
|
5
|
+
const e = u(null), { thumbProps: n, inputProps: a, isDragging: m } = o({ index: t, trackRef: s, inputRef: e }, i);
|
|
6
|
+
return r("div", { ...n, className: "thumb " + (m ? "dragging" : ""), children: r(p, { children: r("input", { ref: e, ...a }) }) });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
l as Thumb
|
|
10
|
+
};
|
|
@@ -1,15 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useCallback as k } from "react";
|
|
3
|
+
import { styled as o } from "styled-components";
|
|
4
|
+
import { v as w } from "../../utils-CQvBF-wY.mjs";
|
|
5
|
+
import "../../styles-C3cZmKVJ.mjs";
|
|
6
|
+
import { Button as d } from "../button/index.js";
|
|
7
|
+
import { Container as g } from "../container/index.js";
|
|
8
|
+
import { Icon as C } from "../icon/index.js";
|
|
9
|
+
import { Heading as z } from "../typography/heading/index.js";
|
|
10
|
+
import "../typography/span/index.js";
|
|
11
|
+
import "../typography/text/index.js";
|
|
12
|
+
const { getVariant: S } = w((t) => ({ completed: `
|
|
13
|
+
background-color: ${t.palette.primary[500]};
|
|
14
|
+
color: ${t.palette.white};
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
background-color: ${t.palette.primary[500]};
|
|
18
|
+
}
|
|
19
|
+
`, current: `
|
|
20
|
+
background-color: ${t.palette.primary[500]};
|
|
21
|
+
color: ${t.palette.white};
|
|
22
|
+
|
|
23
|
+
&::after {
|
|
24
|
+
background-color: ${t.palette.gray[200]};
|
|
25
|
+
}
|
|
26
|
+
`, disabled: `
|
|
27
|
+
background-color: ${t.palette.gray[200]};
|
|
28
|
+
outline: 1px solid ${t.palette.gray[400]};
|
|
29
|
+
outline-offset: -1px;
|
|
30
|
+
color: ${t.palette.gray[400]};
|
|
31
|
+
|
|
32
|
+
&::after {
|
|
33
|
+
background-color: ${t.palette.gray[200]};
|
|
34
|
+
}
|
|
35
|
+
` })), j = o.div`
|
|
36
|
+
${({ theme: t }) => `
|
|
37
|
+
align-items: stretch;
|
|
38
|
+
background-color: ${t.palette.white};
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
height: 100%;
|
|
42
|
+
padding: ${t.spacing[1]} ${t.spacing[1]};
|
|
43
|
+
scroll-behavior: unset;
|
|
44
|
+
`}
|
|
45
|
+
`, A = o.div`
|
|
4
46
|
display: flex;
|
|
5
47
|
flex-direction: row;
|
|
6
|
-
margin-bottom: ${({theme:
|
|
48
|
+
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
7
49
|
|
|
8
50
|
&:last-child > div:first-child > span::after {
|
|
9
51
|
display: none;
|
|
10
52
|
}
|
|
11
|
-
`,
|
|
12
|
-
${({theme:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
53
|
+
`, D = o.div`
|
|
54
|
+
${({ theme: t }) => `
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
font-family: ${t.typography.type.primary};
|
|
57
|
+
font-size: ${t.typography.text.sm};
|
|
58
|
+
line-height: ${t.spacing[1.25]};
|
|
59
|
+
margin-top: ${t.spacing[1]};
|
|
60
|
+
|
|
61
|
+
& > button:first-child {
|
|
62
|
+
margin-right: ${t.spacing[0.5]};
|
|
63
|
+
}
|
|
64
|
+
`}
|
|
65
|
+
`, N = o.span`
|
|
66
|
+
${({ theme: t, $variant: l }) => `
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
display: inline-block;
|
|
69
|
+
text-align: center;
|
|
70
|
+
font-size: ${t.typography.text.sm};
|
|
71
|
+
font-weight: ${t.typography.weight.bold};
|
|
72
|
+
font-family: ${t.typography.type.primary};
|
|
73
|
+
line-height: ${t.spacing[1]};
|
|
74
|
+
padding: ${t.spacing[0.5]} ${t.spacing[0.5]};
|
|
75
|
+
height: ${t.spacing[2]};
|
|
76
|
+
width: ${t.spacing[2]};
|
|
77
|
+
|
|
78
|
+
&::after {
|
|
79
|
+
content: "";
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: calc(32px + ${t.spacing[0.5]});
|
|
82
|
+
left: 50%;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
width: 2px;
|
|
85
|
+
height: calc(100% - ${t.spacing[1]});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
${S(t, l)}
|
|
89
|
+
`}
|
|
90
|
+
`, G = ({ button: { disabled: t = !1, text: l, type: y = "button", onClick: $ }, steps: h }) => {
|
|
91
|
+
const [a, f] = v(1), m = k((n, i) => () => {
|
|
92
|
+
f((p) => p + n), i == null || i();
|
|
93
|
+
}, []);
|
|
94
|
+
return e(j, { children: h.map((n, i) => {
|
|
95
|
+
const { content: p, title: b, nextAction: u, previousAction: x } = n, c = i + 1, s = c < a ? "completed" : c === a ? "current" : "disabled";
|
|
96
|
+
return r(A, { children: [e(g, { maxWidth: "40px", position: "relative", children: e(N, { $variant: s, children: s === "completed" ? e(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }), r(g, { ml: 1.5, width: "100%", children: [e(z, { fontWeight: "bold", lineSpacing: 1.25, mb: 1.5, size: "xs", children: b }), s === "current" && r(g, { children: [p, r(D, { children: [a > 1 && e(d, { disabled: n.isDisabledPrevious ?? !1, onClick: m(-1, x), variant: "tertiary", children: "Previous" }), a < h.length ? e(d, { disabled: n.isDisabledNext ?? !1, onClick: m(1, u), variant: "primary", children: "Next step" }) : e(d, { disabled: t, onClick: $, type: y, variant: "primary", children: l })] })] })] })] }, n.title);
|
|
97
|
+
}) });
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
G as StepLapse
|
|
101
|
+
};
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as m, useTheme as b } from "styled-components";
|
|
3
|
+
import { Container as u } from "../container/index.js";
|
|
4
|
+
import { Icon as g } from "../icon/index.js";
|
|
5
|
+
import "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as h } from "../typography/text/index.js";
|
|
8
|
+
const y = m.button`
|
|
9
|
+
${({ theme: e }) => `
|
|
10
|
+
align-items: center;
|
|
11
|
+
background-color: ${e.palette.white};
|
|
12
|
+
border: 1px solid ${e.palette.gray[100]};
|
|
13
|
+
border-radius: ${e.spacing[0.25]};
|
|
14
|
+
color: ${e.palette.gray[800]};
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
display: flex;
|
|
17
|
+
font-size: ${e.typography.text.sm};
|
|
18
|
+
gap: ${e.spacing[0.25]};
|
|
19
|
+
height: 21px;
|
|
20
|
+
width: 21px;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
padding: 6px;
|
|
23
|
+
transition: all 0.25s ease;
|
|
24
|
+
|
|
25
|
+
&[aria-label] {
|
|
26
|
+
height: auto;
|
|
27
|
+
width: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.success {
|
|
31
|
+
border-color: ${e.palette.success[500]};
|
|
32
|
+
color: ${e.palette.success[500]};
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: ${e.palette.success[200]};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:disabled {
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
background: ${e.palette.gray[200]};
|
|
42
|
+
border-color: ${e.palette.gray[200]};
|
|
43
|
+
color: ${e.palette.gray[300]};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover:not(.success) {
|
|
47
|
+
background-color: ${e.palette.gray[100]};
|
|
48
|
+
}
|
|
49
|
+
`}
|
|
50
|
+
`, x = { add: { icon: "plus" }, approve: { icon: "check" }, disabled: { icon: "ban" }, reject: { icon: "xmark" }, submit: { icon: "arrow-right" }, success: { icon: "check" } }, z = ({ disabled: e = !1, icon: i, id: s, label: n, name: o, onClick: c, type: l = "button", variant: t }) => {
|
|
51
|
+
const p = b(), d = a(y, { "aria-label": o ?? void 0, className: t, disabled: e, id: s, onClick: c, type: l, children: [r(g, { clickable: !1, icon: i ?? x[t].icon, iconSize: o === void 0 ? "xxs" : "xs", iconType: "fa-light" }), o ?? void 0] });
|
|
52
|
+
return a(u, { alignItems: "center", display: "flex", children: [d, n && r(h, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: n })] });
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
z as TableButton
|
|
56
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { S as r, a } from "../../../styles-BA0WIQL-.mjs";
|
|
3
|
+
import { Heading as c } from "../../typography/heading/index.js";
|
|
4
|
+
import "../../typography/span/index.js";
|
|
5
|
+
import "../../typography/text/index.js";
|
|
6
|
+
const b = ({ items: o }) => i(r, { children: o.map(({ isActive: s, label: e, onClick: t }, m) => i(a, { className: s ? "active" : "", onClick: t, type: "button", children: i(c, { color: "inherit", fontWeight: "semibold", size: "sm", sizeSm: "xs", children: e }) }, `${e}-${m}`)) });
|
|
7
|
+
export {
|
|
8
|
+
b as FixedTabs
|
|
9
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { FixedTabs as u } from "./fixed-tabs/index.js";
|
|
4
|
+
import { Tab as c } from "./tab/index.js";
|
|
5
|
+
import { Container as v } from "../container/index.js";
|
|
6
|
+
const T = ({ items: a, borders: t = !0, box: i = !1 }) => {
|
|
7
|
+
const o = m();
|
|
8
|
+
return e(v, { bgColor: o.palette.white, border: i ? "1px solid" : void 0, borderBottom: t ? `1px solid ${o.palette.gray[300]}` : void 0, borderColor: i ? o.palette.gray[200] : void 0, borderRadius: i ? o.spacing[0.25] : void 0, display: "inline-flex", gap: 0.25, padding: i ? [0, 0, 0, 0] : void 0, pl: t ? 1.25 : void 0, pr: t ? 1.25 : void 0, role: "tablist", width: i ? "max-content" : "100%", children: a.map(({ id: r, isActive: l, link: s, label: d, notificationSign: p, onClick: n, tooltip: b }) => e(c, { id: r, isActive: l, label: d, link: s, notificationSign: p, onClick: n, tooltip: b }, r)) });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u as FixedTabs,
|
|
12
|
+
c as Tab,
|
|
13
|
+
T as Tabs
|
|
14
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { T as m } from "../../../styles-BA0WIQL-.mjs";
|
|
3
|
+
import { NotificationSign as p } from "../../notification-sign/index.js";
|
|
4
|
+
import { T as d } from "../../../index-D-lcuEHY.mjs";
|
|
5
|
+
const x = ({ label: r, id: o, isActive: t = !1, link: n, notificationSign: i, onClick: e, tooltip: s = "" }) => a(d, { display: "flex", id: `${o}-tooltip`, tip: s, children: l(m, { "aria-selected": t, className: t ? "active" : "", id: o, onClick: e, role: "tab", to: n, children: [r, a(p, { left: i == null ? void 0 : i.left, numberIndicator: i == null ? void 0 : i.numberIndicator, show: i == null ? void 0 : i.show, top: i == null ? void 0 : i.top, variant: i == null ? void 0 : i.variant })] }) });
|
|
6
|
+
export {
|
|
7
|
+
x as Tab
|
|
8
|
+
};
|
|
@@ -1,3 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as y } from "lodash";
|
|
3
|
+
import { styled as b } from "styled-components";
|
|
4
|
+
import { v as k } from "../../utils-CQvBF-wY.mjs";
|
|
5
|
+
import "../../styles-C3cZmKVJ.mjs";
|
|
6
|
+
import { Icon as w } from "../icon/index.js";
|
|
7
|
+
import { IconButton as x } from "../icon-button/index.js";
|
|
8
|
+
import { Link as v } from "../link/index.js";
|
|
9
|
+
import "../typography/heading/index.js";
|
|
10
|
+
import { Span as z } from "../typography/span/index.js";
|
|
11
|
+
import "../typography/text/index.js";
|
|
12
|
+
const { getVariant: S } = k((o) => ({ default: `
|
|
13
|
+
background-color: ${o.palette.gray[200]};
|
|
14
|
+
color: ${o.palette.gray[800]};
|
|
15
|
+
`, error: `
|
|
16
|
+
&.high {
|
|
17
|
+
background-color: ${o.palette.error[700]};
|
|
18
|
+
color: ${o.palette.white};
|
|
19
|
+
}
|
|
20
|
+
&.low {
|
|
21
|
+
background-color: ${o.palette.error[50]};
|
|
22
|
+
color: ${o.palette.error[700]};
|
|
23
|
+
}
|
|
24
|
+
&.medium {
|
|
25
|
+
background-color: ${o.palette.error[500]};
|
|
26
|
+
color: ${o.palette.error[50]};
|
|
27
|
+
}
|
|
28
|
+
`, inactive: `
|
|
29
|
+
background-color: ${o.palette.gray[200]};
|
|
30
|
+
color: ${o.palette.gray[600]};
|
|
31
|
+
`, info: `
|
|
32
|
+
&.high {
|
|
33
|
+
background-color: ${o.palette.info[700]};
|
|
34
|
+
color: ${o.palette.white};
|
|
35
|
+
}
|
|
36
|
+
&.low {
|
|
37
|
+
background-color: ${o.palette.info[50]};
|
|
38
|
+
color: ${o.palette.info[700]};
|
|
39
|
+
}
|
|
40
|
+
&.medium {
|
|
41
|
+
background-color: ${o.palette.info[500]};
|
|
42
|
+
color: ${o.palette.info[50]};
|
|
43
|
+
}
|
|
44
|
+
`, reachable: `
|
|
45
|
+
background-color: ${o.palette.gray[50]};
|
|
46
|
+
color: ${o.palette.gray[800]};
|
|
47
|
+
`, remediation: `
|
|
48
|
+
background-color: inherit;
|
|
49
|
+
border: 1px solid ${o.palette.gray[300]};
|
|
50
|
+
color: ${o.palette.gray[400]};
|
|
51
|
+
`, role: `
|
|
52
|
+
background-color: ${o.palette.gray[800]};
|
|
53
|
+
color: ${o.palette.white};
|
|
54
|
+
`, success: `
|
|
55
|
+
&.high {
|
|
56
|
+
background-color: ${o.palette.success[700]};
|
|
57
|
+
color: ${o.palette.white};
|
|
58
|
+
}
|
|
59
|
+
&.low {
|
|
60
|
+
background-color: ${o.palette.success[50]};
|
|
61
|
+
color: ${o.palette.success[700]};
|
|
62
|
+
}
|
|
63
|
+
&.medium {
|
|
64
|
+
background-color: ${o.palette.success[500]};
|
|
65
|
+
color: ${o.palette.success[50]};
|
|
66
|
+
}
|
|
67
|
+
`, technique: `
|
|
68
|
+
--tag-padding-y: ${o.spacing[0.25]};
|
|
69
|
+
--tag-padding-x: ${o.spacing[0.75]};
|
|
70
|
+
|
|
71
|
+
background-color: inherit;
|
|
72
|
+
border: 1px solid ${o.palette.success[800]};
|
|
73
|
+
color: ${o.palette.success[800]};
|
|
74
|
+
`, warning: `
|
|
75
|
+
&.high {
|
|
76
|
+
background-color: ${o.palette.warning[600]};
|
|
77
|
+
color: ${o.palette.white};
|
|
78
|
+
}
|
|
79
|
+
&.low {
|
|
80
|
+
background-color: ${o.palette.warning[50]};
|
|
81
|
+
color: ${o.palette.warning[700]};
|
|
82
|
+
}
|
|
83
|
+
&.medium {
|
|
84
|
+
background-color: ${o.palette.warning[400]};
|
|
85
|
+
color: ${o.palette.warning[700]};
|
|
86
|
+
}
|
|
87
|
+
` })), T = b.span`
|
|
88
|
+
${({ theme: o, $fontSize: n = o.typography.text.xs, $variant: t }) => `
|
|
89
|
+
align-items: center;
|
|
90
|
+
border-radius: ${o.spacing[t === "technique" ? 1 : 0.25]};
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
gap: ${o.spacing[0.25]};
|
|
93
|
+
font-family: ${o.typography.type.primary};
|
|
94
|
+
font-size: ${n};
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: ${o.typography.weight.regular};
|
|
97
|
+
justify-content: center;
|
|
98
|
+
line-height: 18px;
|
|
99
|
+
padding: var(--tag-padding-y) var(--tag-padding-x);
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
width: max-content;
|
|
102
|
+
|
|
103
|
+
~ a {
|
|
104
|
+
font-size: ${o.typography.text.xs};
|
|
105
|
+
display: flex;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
${S(o, t)}
|
|
109
|
+
`}
|
|
110
|
+
`, F = ({ disabled: o, icon: n, iconColor: t = "inherit", iconType: s = "fa-light", id: g = "close-tag", filterValues: l = "", fontSize: d, href: r, linkLabel: $, onClose: c, priority: h = "default", tagTitle: p = "", tagLabel: a, variant: m = "default" }) => {
|
|
111
|
+
const u = a.length > 25 && y(p + l), f = `${a.slice(0, 25)}...`;
|
|
112
|
+
return i(z, { className: "gap-0.5", display: r === void 0 ? "initial" : "flex", size: "sm", children: [i(T, { $fontSize: d, $variant: m, className: h, children: [n && e(w, { icon: n, iconColor: t, iconSize: "xxs", iconType: s }), i("span", { children: [e("strong", { children: p }), e("span", { children: u ? f : a }), e("strong", { children: l })] }), c ? e(x, { disabled: o, icon: "xmark", iconSize: "xxs", iconType: "fa-light", id: g, onClick: c, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }), r === void 0 ? void 0 : e(v, { href: r, children: $ })] });
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
F as Tag
|
|
116
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { a as e } from "../../../index-Bu448Tz2.mjs";
|
|
4
|
+
import "../../typography/heading/index.js";
|
|
5
|
+
import "../../typography/span/index.js";
|
|
6
|
+
import "../../typography/text/index.js";
|
|
7
|
+
export {
|
|
8
|
+
e as TimeLineCard
|
|
9
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, a as s } from "../../index-Bu448Tz2.mjs";
|
|
3
|
+
const d = ({ items: e }) => t(r, { children: e.map((i, a) => t(s, { date: i.date, description: i.description, title: i.title }, `${i.title}-${a}`)) });
|
|
4
|
+
export {
|
|
5
|
+
d as TimeLine,
|
|
6
|
+
s as TimeLineCard
|
|
7
|
+
};
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, useCallback as m } from "react";
|
|
3
|
+
import { styled as a } from "styled-components";
|
|
4
|
+
import { Container as $ } from "../container/index.js";
|
|
5
|
+
const i = a.div`
|
|
6
|
+
${({ theme: e }) => `
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e.palette.gray[200]};
|
|
9
|
+
border-radius: 34px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
display: flex;
|
|
12
|
+
height: 20px;
|
|
13
|
+
position: relative;
|
|
14
|
+
transition: 0.2s;
|
|
15
|
+
width: 36px;
|
|
16
|
+
`}
|
|
17
|
+
`, y = a.div`
|
|
18
|
+
${({ theme: e }) => `
|
|
19
|
+
background-color: ${e.palette.white};
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
height: ${e.spacing[1]};
|
|
22
|
+
left: 2px;
|
|
23
|
+
position: absolute;
|
|
24
|
+
transition: 0.2s;
|
|
25
|
+
width: ${e.spacing[1]};
|
|
26
|
+
z-index: 1;
|
|
27
|
+
`}
|
|
28
|
+
`, k = a.label`
|
|
6
29
|
display: inline-block;
|
|
7
30
|
|
|
8
31
|
input {
|
|
@@ -12,21 +35,29 @@
|
|
|
12
35
|
width: 0;
|
|
13
36
|
}
|
|
14
37
|
|
|
15
|
-
input:checked + ${
|
|
16
|
-
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
38
|
+
input:checked + ${i} {
|
|
39
|
+
background-color: ${({ theme: e }) => e.palette.primary[500]};
|
|
17
40
|
}
|
|
18
41
|
|
|
19
|
-
input:checked + ${
|
|
42
|
+
input:checked + ${i} > div {
|
|
20
43
|
transform: translateX(100%);
|
|
21
44
|
}
|
|
22
45
|
|
|
23
|
-
input:disabled + ${
|
|
46
|
+
input:disabled + ${i} {
|
|
24
47
|
cursor: not-allowed;
|
|
25
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
48
|
+
background-color: ${({ theme: e }) => e.palette.gray[100]};
|
|
26
49
|
}
|
|
27
50
|
|
|
28
|
-
input:disabled + ${
|
|
29
|
-
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
30
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
51
|
+
input:disabled + ${i} > div {
|
|
52
|
+
background-color: ${({ theme: e }) => e.palette.gray[200]};
|
|
53
|
+
border: 1px solid ${({ theme: e }) => e.palette.gray[200]};
|
|
31
54
|
}
|
|
32
|
-
`,
|
|
55
|
+
`, C = u(function({ defaultChecked: e, disabled: r = !1, justify: d, name: n, leftDescription: t, rightDescription: s, ...c }, p) {
|
|
56
|
+
const h = e === !0 ? "on" : "off", g = typeof t == "object" && t.on && t.off ? t[h] : t, b = m((f) => {
|
|
57
|
+
f.stopPropagation();
|
|
58
|
+
}, []);
|
|
59
|
+
return l($, { alignItems: "center", display: "flex", fontSize: "14px", gap: 0.75, justify: d, children: [g, l(k, { onClick: b, role: "switch", children: [o("input", { ...c, "aria-disabled": r, "aria-label": n, checked: e === !0, disabled: r, name: n, ref: p, type: "checkbox" }), o(i, { "aria-label": "Toggle Switch", id: `${n}Toggle`, children: o(y, {}) })] }), s] });
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
C as Toggle
|
|
63
|
+
};
|