@fluidattacks/design 3.1.12 → 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/components/@core/index.js +2 -2
- package/dist/components/accordion/accordion-content/index.js +18 -5
- package/dist/components/accordion/index.js +71 -14
- package/dist/components/alert/index.js +108 -57
- package/dist/components/button/index.js +64 -13
- package/dist/components/card/card-header/index.js +78 -9
- package/dist/components/card/card-with-image/index.js +88 -13
- package/dist/components/card/card-with-input/index.js +72 -23
- package/dist/components/card/card-with-selector/index.js +63 -8
- package/dist/components/card/card-with-switch/index.js +46 -8
- package/dist/components/carousel/index.js +54 -28
- package/dist/components/checkbox/index.js +66 -32
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +64 -19
- package/dist/components/code-snippet/location-code/index.js +146 -100
- package/dist/components/colors/index.js +220 -5
- package/dist/components/confirm-dialog/index.js +41 -18
- package/dist/components/container/index.js +39 -15
- package/dist/components/content-card/category-tag/index.js +37 -8
- package/dist/components/content-card/event-date/index.js +53 -10
- package/dist/components/content-card/index.js +118 -13
- package/dist/components/content-card-carousel/index.js +87 -7
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +22 -7
- package/dist/components/empty-state/empty-button/index.js +4 -4
- package/dist/components/empty-state/index.js +52 -15
- package/dist/components/file-preview/index.js +28 -12
- package/dist/components/form/index.js +46 -9
- package/dist/components/grid-container/index.js +31 -11
- package/dist/components/group-selector/index.js +126 -17
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +78 -18
- package/dist/components/icon-button/index.js +63 -14
- package/dist/components/indicator-card/index.js +70 -11
- package/dist/components/info-sidebar/index.js +107 -7
- package/dist/components/inputs/fields/combobox/index.js +141 -21
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
- package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
- package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
- package/dist/components/inputs/fields/date/calendar/index.js +26 -11
- package/dist/components/inputs/fields/date/index.js +65 -15
- package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
- package/dist/components/inputs/fields/date-range/index.js +98 -18
- package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
- package/dist/components/inputs/fields/date-time/index.js +65 -14
- package/dist/components/inputs/fields/editable/index.js +22 -10
- package/dist/components/inputs/fields/input/index.js +74 -10
- package/dist/components/inputs/fields/input-file/index.js +114 -21
- package/dist/components/inputs/fields/input-tags/index.js +60 -11
- package/dist/components/inputs/fields/number/index.js +54 -7
- package/dist/components/inputs/fields/number-range/index.js +46 -8
- package/dist/components/inputs/fields/phone/index.js +446 -286
- package/dist/components/inputs/fields/text-area/index.js +78 -10
- package/dist/components/inputs/label/index.js +34 -8
- package/dist/components/inputs/outline-container/index.js +98 -12
- package/dist/components/inputs/utils/action-button/index.js +28 -7
- package/dist/components/inputs/utils/calendar-button/index.js +34 -10
- package/dist/components/inputs/utils/date-selector/index.js +60 -6
- package/dist/components/inputs/utils/date-time-field/index.js +129 -28
- package/dist/components/inputs/utils/dialog/index.js +10 -7
- package/dist/components/inputs/utils/number-field/index.js +81 -8
- package/dist/components/inputs/utils/popover/index.js +41 -10
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +110 -7
- package/dist/components/language-selector/index.js +34 -10
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/link/index.js +71 -17
- package/dist/components/list-item/index.js +64 -13
- package/dist/components/little-flag/index.js +26 -9
- package/dist/components/loading/index.js +48 -21
- package/dist/components/logo/index.js +10 -4
- package/dist/components/logo-carousel/index.js +40 -5
- package/dist/components/lottie/index.js +12 -7
- package/dist/components/menu/index.js +53 -9
- package/dist/components/message-banner/index.js +79 -13
- package/dist/components/modal/index.js +59 -13
- package/dist/components/modal/modal-confirm/index.js +48 -7
- package/dist/components/modal/modal-footer/index.js +22 -13
- package/dist/components/modal/modal-header/index.js +45 -19
- package/dist/components/notification/index.js +65 -20
- package/dist/components/notification-sign/index.js +27 -10
- package/dist/components/number-input/index.js +58 -21
- package/dist/components/oauth-selector/index.js +97 -23
- package/dist/components/oauth-selector/option-container/index.js +68 -7
- package/dist/components/plan-card/index.js +99 -28
- package/dist/components/plan-card/recommended-tag/index.js +23 -2
- package/dist/components/pop-up/description/index.js +47 -9
- package/dist/components/pop-up/index.js +146 -17
- package/dist/components/premium-feature/index.js +56 -16
- package/dist/components/priority-score/index.js +24 -9
- package/dist/components/progress/index.js +30 -17
- package/dist/components/progress-bar/index.js +99 -41
- package/dist/components/radio-button/index.js +64 -27
- package/dist/components/scroll-button/index.js +33 -15
- package/dist/components/search/index.js +77 -35
- package/dist/components/search-bar/index.js +211 -24
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +66 -6
- package/dist/components/severity-overview/badge/index.js +62 -11
- package/dist/components/severity-overview/index.js +15 -5
- package/dist/components/show-on-hover/index.js +16 -10
- package/dist/components/slide-out-menu/index.js +2611 -1164
- package/dist/components/slide-out-menu/menu-item/index.js +58 -6
- package/dist/components/slider/index.js +79 -48
- package/dist/components/slider/thumb/index.js +13 -6
- package/dist/components/step-lapse/index.js +81 -23
- package/dist/components/table-button/index.js +65 -24
- package/dist/components/tabs/fixed-tabs/index.js +24 -4
- package/dist/components/tabs/index.js +54 -11
- package/dist/components/tabs/tab/index.js +37 -6
- package/dist/components/tag/index.js +95 -27
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +15 -5
- package/dist/components/toggle/index.js +65 -25
- package/dist/components/toggle-buttons/index.js +51 -22
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +3897 -1829
- package/dist/components/typography/heading/index.js +43 -5
- package/dist/components/typography/span/index.js +38 -6
- package/dist/components/typography/text/index.js +44 -6
- package/dist/components/web-form/index.js +28 -19
- package/dist/hooks/index.js +5 -5
- 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 +11 -11
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
- package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
- 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/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-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/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,19 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { keyframes as
|
|
3
|
-
import { v as
|
|
4
|
-
import "../../styles-
|
|
5
|
-
import { Container as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { keyframes as n, styled as o, css as a, useTheme as l } from "styled-components";
|
|
3
|
+
import { v as c } from "../../utils-V0EumEPM.mjs";
|
|
4
|
+
import "../../styles-CplEd2kw.mjs";
|
|
5
|
+
import { Container as d } from "../container/index.js";
|
|
6
6
|
import "../typography/heading/index.js";
|
|
7
7
|
import "../typography/span/index.js";
|
|
8
8
|
import { Text as f } from "../typography/text/index.js";
|
|
9
|
-
const p = {
|
|
9
|
+
const p = {
|
|
10
|
+
lg: "56",
|
|
11
|
+
md: "30",
|
|
12
|
+
sm: "12"
|
|
13
|
+
}, { getVariant: h } = c(
|
|
14
|
+
(t) => ({
|
|
15
|
+
red: `stroke: ${t.palette.primary[500]};`,
|
|
16
|
+
white: `stroke: ${t.palette.white};`
|
|
17
|
+
})
|
|
18
|
+
), g = n`
|
|
10
19
|
0% {
|
|
11
20
|
transform: rotateZ(0deg);
|
|
12
21
|
}
|
|
13
22
|
100% {
|
|
14
23
|
transform: rotateZ(360deg)
|
|
15
24
|
}
|
|
16
|
-
`,
|
|
25
|
+
`, k = n`
|
|
17
26
|
0%,
|
|
18
27
|
25% {
|
|
19
28
|
stroke-dashoffset: 280;
|
|
@@ -30,16 +39,16 @@ const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red:
|
|
|
30
39
|
stroke-dashoffset: 280;
|
|
31
40
|
transform: rotate(360deg);
|
|
32
41
|
}
|
|
33
|
-
`,
|
|
34
|
-
${({ $size:
|
|
35
|
-
animation: ${
|
|
42
|
+
`, y = o.svg`
|
|
43
|
+
${({ $size: t = "md" }) => a`
|
|
44
|
+
animation: ${g} 2s linear infinite;
|
|
36
45
|
animation-timing-function: linear;
|
|
37
46
|
display: inline-block;
|
|
38
|
-
width: ${p[
|
|
47
|
+
width: ${p[t]}px;
|
|
39
48
|
`}
|
|
40
|
-
`,
|
|
41
|
-
${({ theme:
|
|
42
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
49
|
+
`, $ = o.circle`
|
|
50
|
+
${({ theme: t, $color: r = "red" }) => a`
|
|
51
|
+
animation: 1.4s ease-in-out infinite both ${k};
|
|
43
52
|
display: block;
|
|
44
53
|
fill: transparent;
|
|
45
54
|
stroke-linecap: round;
|
|
@@ -48,20 +57,38 @@ const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red:
|
|
|
48
57
|
stroke-width: 10px;
|
|
49
58
|
transform-origin: 50% 50%;
|
|
50
59
|
|
|
51
|
-
${h(
|
|
60
|
+
${h(t, r)}
|
|
52
61
|
`}
|
|
53
62
|
`, x = o.circle`
|
|
54
63
|
display: block;
|
|
55
64
|
fill: transparent;
|
|
56
|
-
stroke: ${({ theme:
|
|
65
|
+
stroke: ${({ theme: t }) => t.palette.gray[200]};
|
|
57
66
|
stroke-linecap: round;
|
|
58
67
|
stroke-width: 10px;
|
|
59
68
|
transform-origin: 50% 50%;
|
|
60
|
-
opacity: ${({ $color:
|
|
61
|
-
`,
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
opacity: ${({ $color: t }) => t === "white" ? "20%" : "unset"};
|
|
70
|
+
`, L = ({
|
|
71
|
+
color: t = "red",
|
|
72
|
+
label: r,
|
|
73
|
+
size: m
|
|
74
|
+
}) => {
|
|
75
|
+
const i = l();
|
|
76
|
+
return /* @__PURE__ */ s(d, { alignItems: "center", display: "flex", children: [
|
|
77
|
+
/* @__PURE__ */ s(y, { $size: m, viewBox: "0 0 100 100", children: [
|
|
78
|
+
/* @__PURE__ */ e(x, { $color: t, cx: "50", cy: "50", r: "45" }),
|
|
79
|
+
/* @__PURE__ */ e($, { $color: t, cx: "50", cy: "50", r: "45" })
|
|
80
|
+
] }),
|
|
81
|
+
r && /* @__PURE__ */ e(
|
|
82
|
+
f,
|
|
83
|
+
{
|
|
84
|
+
color: t === "red" ? i.palette.gray[700] : i.palette.white,
|
|
85
|
+
ml: 0.5,
|
|
86
|
+
size: "sm",
|
|
87
|
+
children: r
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] });
|
|
64
91
|
};
|
|
65
92
|
export {
|
|
66
|
-
|
|
93
|
+
L as Loading
|
|
67
94
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { M as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { M as e } from "../../index-maWH3JYC.mjs";
|
|
3
3
|
import { Container as h } from "../container/index.js";
|
|
4
|
-
const
|
|
4
|
+
const p = {
|
|
5
|
+
company: { height: "83px", width: "460px" },
|
|
6
|
+
footer: { height: "57px", width: "315px" },
|
|
7
|
+
header: { height: "35px", width: "160px" },
|
|
8
|
+
icon: { height: "40px", width: "40px" },
|
|
9
|
+
inline: { width: "150px" }
|
|
10
|
+
}, m = ({ publicId: t, variant: i }) => /* @__PURE__ */ o(h, { ...p[i], children: /* @__PURE__ */ o(e, { alt: "logo", publicId: t }) });
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
m as Logo
|
|
7
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { M as n, p as t } from "../../index-
|
|
2
|
+
import { M as n, p as t } from "../../index-maWH3JYC.mjs";
|
|
3
3
|
import { styled as o } from "styled-components";
|
|
4
4
|
const u = o.div`
|
|
5
5
|
display: flex;
|
|
@@ -7,7 +7,7 @@ const u = o.div`
|
|
|
7
7
|
max-width: 1440px;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
position: relative;
|
|
10
|
-
`,
|
|
10
|
+
`, s = o.div`
|
|
11
11
|
height: 79px;
|
|
12
12
|
width: 64px;
|
|
13
13
|
flex-shrink: 0;
|
|
@@ -31,7 +31,7 @@ const u = o.div`
|
|
|
31
31
|
);
|
|
32
32
|
right: 0;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, p = o.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 40px;
|
|
37
37
|
animation: clients-animation 50s linear infinite;
|
|
@@ -46,7 +46,42 @@ const u = o.div`
|
|
|
46
46
|
transform: translateX(calc(-180px * 15));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`, f = [
|
|
50
|
+
"airs/clients-carousel/color/bancolombia",
|
|
51
|
+
"airs/clients-carousel/color/itau_colombia",
|
|
52
|
+
"airs/clients-carousel/color/lulo_bank",
|
|
53
|
+
"airs/clients-carousel/color/oxxo_international",
|
|
54
|
+
"airs/clients-carousel/color/interbank",
|
|
55
|
+
"airs/clients-carousel/color/global_bank",
|
|
56
|
+
"airs/clients-carousel/color/gesa",
|
|
57
|
+
"airs/clients-carousel/color/copa_airlines",
|
|
58
|
+
"airs/clients-carousel/color/consubanco",
|
|
59
|
+
"airs/clients-carousel/color/bantrab",
|
|
60
|
+
"airs/clients-carousel/color/banistmo",
|
|
61
|
+
"airs/clients-carousel/color/banco_internacional",
|
|
62
|
+
"airs/clients-carousel/color/banco_general",
|
|
63
|
+
"airs/clients-carousel/color/banbif",
|
|
64
|
+
"airs/clients-carousel/color/avianca"
|
|
65
|
+
], h = ({
|
|
66
|
+
fusion: l = !1,
|
|
67
|
+
logos: r = f
|
|
68
|
+
}) => /* @__PURE__ */ c(u, { children: [
|
|
69
|
+
l && /* @__PURE__ */ a(s, { className: "left" }),
|
|
70
|
+
/* @__PURE__ */ a(p, { children: [...r, ...r].map(
|
|
71
|
+
(i, e) => /* @__PURE__ */ a(
|
|
72
|
+
n,
|
|
73
|
+
{
|
|
74
|
+
alt: `${i}-${e}`,
|
|
75
|
+
height: "80px",
|
|
76
|
+
plugins: [t()],
|
|
77
|
+
publicId: i,
|
|
78
|
+
width: "140px"
|
|
79
|
+
},
|
|
80
|
+
`${i}-${e}`
|
|
81
|
+
)
|
|
82
|
+
) }),
|
|
83
|
+
l && /* @__PURE__ */ a(s, { className: "right" })
|
|
84
|
+
] });
|
|
50
85
|
export {
|
|
51
|
-
|
|
86
|
+
h as LogoCarousel
|
|
52
87
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { styled as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import i from "lottie-light-react";
|
|
3
|
+
import { styled as r } from "styled-components";
|
|
4
|
+
const m = r(i).attrs(
|
|
5
|
+
({ autoplay: t = !0 }) => ({
|
|
6
|
+
autoplay: t,
|
|
7
|
+
className: "comp-lottie"
|
|
8
|
+
})
|
|
9
|
+
)`
|
|
5
10
|
${({ $size: t = 16 }) => `
|
|
6
11
|
height: ${t}px;
|
|
7
12
|
width: ${t}px;
|
|
8
13
|
`}
|
|
9
|
-
`,
|
|
14
|
+
`, l = (t) => {
|
|
10
15
|
const { size: o } = t;
|
|
11
|
-
return
|
|
16
|
+
return /* @__PURE__ */ e(m, { $size: o, ...t });
|
|
12
17
|
};
|
|
13
18
|
export {
|
|
14
|
-
|
|
19
|
+
l as Lottie
|
|
15
20
|
};
|
|
@@ -1,22 +1,66 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { isUndefined as g } from "lodash";
|
|
3
3
|
import { useTheme as x } from "styled-components";
|
|
4
4
|
import { Container as t } from "../container/index.js";
|
|
5
|
-
import { Divider as
|
|
5
|
+
import { Divider as l } from "../divider/index.js";
|
|
6
6
|
import { Link as y } from "../link/index.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as z } from "../../styles-Bdque9TT.mjs";
|
|
9
9
|
import "../icon/index.js";
|
|
10
|
-
import { Tag as
|
|
10
|
+
import { Tag as b } from "../tag/index.js";
|
|
11
11
|
import "../typography/heading/index.js";
|
|
12
12
|
import "../typography/span/index.js";
|
|
13
13
|
import { Text as r } from "../typography/text/index.js";
|
|
14
|
-
import { u as
|
|
15
|
-
const R = ({
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
import { u as k } from "../../use-click-outside-BUll8Ag-.mjs";
|
|
15
|
+
const R = ({
|
|
16
|
+
children: n,
|
|
17
|
+
commitSha: s,
|
|
18
|
+
commitShortSha: a,
|
|
19
|
+
parentElement: c,
|
|
20
|
+
userInfo: p,
|
|
21
|
+
setVisibility: d
|
|
22
|
+
}) => {
|
|
23
|
+
const i = x(), { userName: f, email: h, phone: m, userRole: u } = p;
|
|
24
|
+
return k(c, () => {
|
|
18
25
|
d(!1);
|
|
19
|
-
}),
|
|
26
|
+
}), /* @__PURE__ */ o(z, { children: [
|
|
27
|
+
/* @__PURE__ */ e("li", { className: "user-info", children: /* @__PURE__ */ o(t, { display: "inline-flex", gap: 0.25, width: "100%", children: [
|
|
28
|
+
/* @__PURE__ */ o(
|
|
29
|
+
t,
|
|
30
|
+
{
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
gap: 0.25,
|
|
34
|
+
width: "100%",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
r,
|
|
38
|
+
{
|
|
39
|
+
color: i.palette.gray[800],
|
|
40
|
+
fontWeight: "bold",
|
|
41
|
+
size: "sm",
|
|
42
|
+
children: f
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "sm", children: h }),
|
|
46
|
+
g(m) ? void 0 : /* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "sm", children: m })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(b, { tagLabel: u, variant: "role" }) })
|
|
51
|
+
] }) }),
|
|
52
|
+
/* @__PURE__ */ e(l, {}),
|
|
53
|
+
n,
|
|
54
|
+
/* @__PURE__ */ e(l, {}),
|
|
55
|
+
/* @__PURE__ */ e("li", { className: "commit-info", children: /* @__PURE__ */ e(
|
|
56
|
+
y,
|
|
57
|
+
{
|
|
58
|
+
href: `https://gitlab.com/fluidattacks/universe/-/tree/${s}`,
|
|
59
|
+
iconPosition: "hidden",
|
|
60
|
+
children: /* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "xs", children: `commit : ${a}` })
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
63
|
+
] });
|
|
20
64
|
};
|
|
21
65
|
export {
|
|
22
66
|
R as Menu
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as x, useCallback as
|
|
3
|
-
import { styled as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useCallback as w } from "react";
|
|
3
|
+
import { styled as b, useTheme as z } from "styled-components";
|
|
4
4
|
import { theme as c } from "../colors/index.js";
|
|
5
|
-
import { Container as
|
|
6
|
-
import { Icon as
|
|
5
|
+
import { Container as l } from "../container/index.js";
|
|
6
|
+
import { Icon as p } from "../icon/index.js";
|
|
7
7
|
import "../typography/heading/index.js";
|
|
8
8
|
import "../typography/span/index.js";
|
|
9
|
-
import { Text as
|
|
10
|
-
const
|
|
9
|
+
import { Text as m } from "../typography/text/index.js";
|
|
10
|
+
const S = b.button`
|
|
11
11
|
align-items: center;
|
|
12
12
|
background-color: transparent;
|
|
13
13
|
border: unset;
|
|
@@ -24,12 +24,78 @@ const k = w.button`
|
|
|
24
24
|
&:hover span {
|
|
25
25
|
color: ${c.palette.primary[200]};
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
`, j = (t) => t === "platform" ? { normal: "sm", small: void 0 } : { normal: "md", small: "sm" }, M = ({
|
|
28
|
+
message: t,
|
|
29
|
+
onClickButton: a,
|
|
30
|
+
buttonText: d,
|
|
31
|
+
buttonFontWeight: s = "regular",
|
|
32
|
+
icon: f,
|
|
33
|
+
onClose: i,
|
|
34
|
+
variant: h = "web"
|
|
35
|
+
}) => {
|
|
36
|
+
const e = z(), [u, g] = x(!0), y = w(() => {
|
|
37
|
+
g(!1), i == null || i();
|
|
38
|
+
}, [i]), o = j(h);
|
|
39
|
+
return /* @__PURE__ */ n(
|
|
40
|
+
l,
|
|
41
|
+
{
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
bgGradient: e.palette.gradients["01"],
|
|
44
|
+
display: u ? "flex" : "none",
|
|
45
|
+
id: "message-banner",
|
|
46
|
+
justify: "space-between",
|
|
47
|
+
padding: [0.75, 0.75, 0.75, 0.75],
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ n(l, { display: "flex", gap: 0.5, justify: "center", width: "100%", children: [
|
|
50
|
+
/* @__PURE__ */ r(l, { children: typeof t == "string" ? /* @__PURE__ */ r(
|
|
51
|
+
m,
|
|
52
|
+
{
|
|
53
|
+
color: e.palette.white,
|
|
54
|
+
display: "inline",
|
|
55
|
+
size: o.normal,
|
|
56
|
+
sizeSm: o.small,
|
|
57
|
+
children: t
|
|
58
|
+
}
|
|
59
|
+
) : t }),
|
|
60
|
+
a ? /* @__PURE__ */ n(S, { onClick: a, children: [
|
|
61
|
+
/* @__PURE__ */ r(
|
|
62
|
+
m,
|
|
63
|
+
{
|
|
64
|
+
color: e.palette.white,
|
|
65
|
+
fontWeight: s,
|
|
66
|
+
size: o.normal,
|
|
67
|
+
sizeSm: o.small,
|
|
68
|
+
textDecoration: "underline",
|
|
69
|
+
children: d
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ r(
|
|
73
|
+
p,
|
|
74
|
+
{
|
|
75
|
+
icon: f ?? "arrow-right",
|
|
76
|
+
iconColor: e.palette.white,
|
|
77
|
+
iconSize: "xs",
|
|
78
|
+
iconType: s === "bold" ? "fa-regular" : "fa-light"
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }) : void 0
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ r(
|
|
84
|
+
p,
|
|
85
|
+
{
|
|
86
|
+
clickable: !0,
|
|
87
|
+
hoverColor: e.palette.primary[200],
|
|
88
|
+
icon: "close",
|
|
89
|
+
iconColor: e.palette.white,
|
|
90
|
+
iconSize: "xs",
|
|
91
|
+
iconType: "fa-light",
|
|
92
|
+
onClick: y
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
32
98
|
};
|
|
33
99
|
export {
|
|
34
|
-
|
|
100
|
+
M as MessageBanner
|
|
35
101
|
};
|
|
@@ -1,19 +1,65 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { ModalConfirm as
|
|
5
|
-
import { ModalFooter as
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import a from "lodash";
|
|
3
|
+
import { createPortal as M } from "react-dom";
|
|
4
|
+
import { ModalConfirm as k } from "./modal-confirm/index.js";
|
|
5
|
+
import { ModalFooter as x } from "./modal-footer/index.js";
|
|
6
6
|
import { ModalHeader as b } from "./modal-header/index.js";
|
|
7
|
-
import { M as
|
|
8
|
-
import { M as
|
|
7
|
+
import { M as I, a as h, I as j } from "../../styles-BZQOqe8p.mjs";
|
|
8
|
+
import { M as O } from "../../index-maWH3JYC.mjs";
|
|
9
9
|
import "../typography/heading/index.js";
|
|
10
10
|
import "../typography/span/index.js";
|
|
11
|
-
import { Text as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import { Text as S } from "../typography/text/index.js";
|
|
12
|
+
const P = ({
|
|
13
|
+
_portal: t = !0,
|
|
14
|
+
cancelButton: n = void 0,
|
|
15
|
+
children: p = void 0,
|
|
16
|
+
confirmButton: s = void 0,
|
|
17
|
+
content: r = void 0,
|
|
18
|
+
description: l = "",
|
|
19
|
+
modalRef: i,
|
|
20
|
+
otherActions: u = void 0,
|
|
21
|
+
onClose: f = void 0,
|
|
22
|
+
title: m = "",
|
|
23
|
+
size: g,
|
|
24
|
+
id: o = "modal-container"
|
|
25
|
+
}) => {
|
|
26
|
+
const d = () => /* @__PURE__ */ e(
|
|
27
|
+
I,
|
|
28
|
+
{
|
|
29
|
+
"aria-label": i.name,
|
|
30
|
+
"aria-modal": "true",
|
|
31
|
+
id: "modal-wrapper",
|
|
32
|
+
children: /* @__PURE__ */ c(h, { $size: g, "data-testid": o, id: o, children: [
|
|
33
|
+
!a.isEmpty(m) && /* @__PURE__ */ e(
|
|
34
|
+
b,
|
|
35
|
+
{
|
|
36
|
+
description: l,
|
|
37
|
+
modalRef: i,
|
|
38
|
+
onClose: f,
|
|
39
|
+
otherActions: u,
|
|
40
|
+
title: m
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
p,
|
|
44
|
+
a.isObject(r) && a.isString(r.imageSrc) && /* @__PURE__ */ e(j, { $framed: r.imageFramed, children: /* @__PURE__ */ e(O, { alt: "modal-img", publicId: r.imageSrc }) }),
|
|
45
|
+
a.isObject(r) && a.isString(r.imageText) && /* @__PURE__ */ e(S, { mb: 1.5, size: "sm", children: r.imageText }),
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
x,
|
|
48
|
+
{
|
|
49
|
+
cancelButton: n,
|
|
50
|
+
confirmButton: s,
|
|
51
|
+
modalRef: i
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
return t && i.isOpen ? M(
|
|
58
|
+
d(),
|
|
59
|
+
document.getElementById("portals") ?? document.body
|
|
60
|
+
) : i.isOpen ? d() : null;
|
|
15
61
|
};
|
|
16
62
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
63
|
+
P as Modal,
|
|
64
|
+
k as ModalConfirm
|
|
19
65
|
};
|
|
@@ -1,10 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Container as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Button as m } from "../../button/index.js";
|
|
3
|
+
import { Container as c } from "../../container/index.js";
|
|
4
|
+
const l = ({
|
|
5
|
+
disabled: o,
|
|
6
|
+
id: i = "modal-confirm",
|
|
7
|
+
onCancel: t,
|
|
8
|
+
onConfirm: r = "submit",
|
|
9
|
+
txtCancel: d,
|
|
10
|
+
txtConfirm: a
|
|
11
|
+
}) => {
|
|
12
|
+
const n = r === "submit";
|
|
13
|
+
return /* @__PURE__ */ s(
|
|
14
|
+
c,
|
|
15
|
+
{
|
|
16
|
+
display: "flex",
|
|
17
|
+
gap: 0.75,
|
|
18
|
+
maxWidth: t ? "392px" : "190px",
|
|
19
|
+
mt: 1.5,
|
|
20
|
+
children: [
|
|
21
|
+
t ? /* @__PURE__ */ e(
|
|
22
|
+
m,
|
|
23
|
+
{
|
|
24
|
+
id: `${i}-cancel`,
|
|
25
|
+
justify: "center",
|
|
26
|
+
onClick: t,
|
|
27
|
+
variant: "tertiary",
|
|
28
|
+
width: "100%",
|
|
29
|
+
children: d ?? "Cancel"
|
|
30
|
+
}
|
|
31
|
+
) : void 0,
|
|
32
|
+
/* @__PURE__ */ e(
|
|
33
|
+
m,
|
|
34
|
+
{
|
|
35
|
+
disabled: o,
|
|
36
|
+
id: i,
|
|
37
|
+
justify: "center",
|
|
38
|
+
onClick: n ? void 0 : r,
|
|
39
|
+
type: n ? "submit" : "button",
|
|
40
|
+
variant: "primary",
|
|
41
|
+
width: "100%",
|
|
42
|
+
children: a ?? "Confirm"
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
7
48
|
};
|
|
8
49
|
export {
|
|
9
|
-
|
|
50
|
+
l as ModalConfirm
|
|
10
51
|
};
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isEmpty as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { F as
|
|
5
|
-
import { Button as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as C } from "lodash";
|
|
3
|
+
import { useCallback as d } from "react";
|
|
4
|
+
import { F as m } from "../../../styles-BZQOqe8p.mjs";
|
|
5
|
+
import { Button as h } from "../../button/index.js";
|
|
6
|
+
const j = ({
|
|
7
|
+
modalRef: l,
|
|
8
|
+
confirmButton: r = void 0,
|
|
9
|
+
cancelButton: i = void 0
|
|
10
|
+
}) => {
|
|
11
|
+
const { close: e } = l, p = d(() => {
|
|
12
|
+
i == null || i.onClick(), e();
|
|
13
|
+
}, [i, e]), a = d(() => {
|
|
14
|
+
r == null || r.onClick(), e();
|
|
15
|
+
}, [r, e]);
|
|
16
|
+
return [r, i].some(
|
|
17
|
+
(o) => !C(o)
|
|
18
|
+
) ? /* @__PURE__ */ s(m, { children: /* @__PURE__ */ x("div", { children: [
|
|
19
|
+
i && /* @__PURE__ */ s(h, { onClick: p, variant: "tertiary", width: "100%", children: i.text }),
|
|
20
|
+
r && /* @__PURE__ */ s(h, { onClick: a, variant: "primary", width: "100%", children: r.text })
|
|
21
|
+
] }) }) : null;
|
|
13
22
|
};
|
|
14
23
|
export {
|
|
15
|
-
|
|
24
|
+
j as ModalFooter
|
|
16
25
|
};
|