@fluidattacks/design 3.1.13 → 3.2.0
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 +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -20
- package/dist/components/accordion/index.js +5 -76
- package/dist/components/alert/index.js +4 -162
- package/dist/components/button/index.js +4 -67
- package/dist/components/card/card-header/index.js +4 -81
- package/dist/components/card/card-with-image/index.js +5 -91
- package/dist/components/card/card-with-input/index.js +5 -103
- package/dist/components/card/card-with-selector/index.js +4 -69
- package/dist/components/card/card-with-switch/index.js +4 -48
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -73
- package/dist/components/checkbox/index.js +4 -116
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -70
- package/dist/components/code-snippet/location-code/index.js +7 -169
- package/dist/components/colors/index.js +7 -222
- package/dist/components/confirm-dialog/index.js +4 -43
- package/dist/components/container/index.js +4 -49
- package/dist/components/content-card/category-tag/index.js +4 -40
- package/dist/components/content-card/event-date/index.js +5 -59
- package/dist/components/content-card/index.js +4 -166
- package/dist/components/content-card-carousel/index.js +4 -93
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -23
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -83
- package/dist/components/file-preview/index.js +3 -42
- package/dist/components/form/index.js +4 -61
- package/dist/components/grid-container/index.js +4 -46
- package/dist/components/group-selector/index.js +6 -133
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -106
- package/dist/components/icon-button/index.js +4 -74
- package/dist/components/indicator-card/index.js +5 -72
- package/dist/components/info-sidebar/index.js +4 -114
- package/dist/components/inputs/fields/combobox/index.js +7 -144
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
- package/dist/components/inputs/fields/date/calendar/index.js +6 -28
- package/dist/components/inputs/fields/date/index.js +8 -66
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-range/index.js +6 -106
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
- package/dist/components/inputs/fields/date-time/index.js +6 -67
- package/dist/components/inputs/fields/editable/index.js +4 -26
- package/dist/components/inputs/fields/input/index.js +5 -75
- package/dist/components/inputs/fields/input-file/index.js +6 -123
- package/dist/components/inputs/fields/input-tags/index.js +4 -66
- package/dist/components/inputs/fields/number/index.js +4 -55
- package/dist/components/inputs/fields/number-range/index.js +4 -47
- package/dist/components/inputs/fields/phone/index.js +7 -577
- package/dist/components/inputs/fields/text-area/index.js +5 -79
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -36
- package/dist/components/inputs/outline-container/index.js +4 -102
- package/dist/components/inputs/utils/action-button/index.js +4 -29
- package/dist/components/inputs/utils/calendar-button/index.js +5 -35
- package/dist/components/inputs/utils/date-selector/index.js +3 -60
- package/dist/components/inputs/utils/date-time-field/index.js +10 -131
- package/dist/components/inputs/utils/dialog/index.js +5 -12
- package/dist/components/inputs/utils/number-field/index.js +5 -84
- package/dist/components/inputs/utils/popover/index.js +5 -42
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -116
- package/dist/components/language-selector/index.js +4 -35
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -104
- package/dist/components/list-item/index.js +6 -65
- package/dist/components/little-flag/index.js +3 -30
- package/dist/components/loading/index.js +4 -92
- package/dist/components/logo/index.js +2 -10
- package/dist/components/logo-carousel/index.js +4 -85
- package/dist/components/lottie/index.js +3 -18
- package/dist/components/menu/index.js +5 -64
- package/dist/components/message-banner/index.js +5 -99
- package/dist/components/modal/index.js +6 -63
- package/dist/components/modal/modal-confirm/index.js +3 -49
- package/dist/components/modal/modal-footer/index.js +5 -23
- package/dist/components/modal/modal-header/index.js +6 -49
- package/dist/components/notification/index.js +5 -111
- package/dist/components/notification-sign/index.js +4 -45
- package/dist/components/number-input/index.js +5 -87
- package/dist/components/oauth-selector/index.js +6 -98
- package/dist/components/oauth-selector/option-container/index.js +4 -74
- package/dist/components/plan-card/index.js +3 -153
- package/dist/components/plan-card/recommended-tag/index.js +3 -29
- package/dist/components/pop-up/description/index.js +5 -49
- package/dist/components/pop-up/index.js +7 -150
- package/dist/components/premium-feature/index.js +4 -83
- package/dist/components/priority-score/index.js +4 -27
- package/dist/components/progress/index.js +5 -45
- package/dist/components/progress-bar/index.js +3 -151
- package/dist/components/radio-button/index.js +4 -123
- package/dist/components/scroll-button/index.js +4 -40
- package/dist/components/search/index.js +7 -103
- package/dist/components/search-bar/index.js +4 -217
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -72
- package/dist/components/severity-overview/badge/index.js +4 -67
- package/dist/components/severity-overview/index.js +3 -15
- package/dist/components/show-on-hover/index.js +3 -29
- package/dist/components/slide-out-menu/index.js +6 -3453
- package/dist/components/slide-out-menu/menu-item/index.js +4 -65
- package/dist/components/slider/index.js +7 -122
- package/dist/components/slider/thumb/index.js +5 -15
- package/dist/components/step-lapse/index.js +4 -157
- package/dist/components/table-button/index.js +4 -95
- package/dist/components/tabs/fixed-tabs/index.js +3 -27
- package/dist/components/tabs/index.js +6 -55
- package/dist/components/tabs/tab/index.js +3 -37
- package/dist/components/tag/index.js +4 -182
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -15
- package/dist/components/toggle/index.js +4 -101
- package/dist/components/toggle-buttons/index.js +4 -101
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -4582
- package/dist/components/typography/heading/index.js +4 -45
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -39
- package/dist/components/typography/text/index.js +4 -45
- package/dist/components/web-form/index.js +4 -78
- package/dist/components-C7JPRIEW.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +112 -204
- package/dist/vendor-_XDhaIzo.mjs +14504 -0
- package/package.json +3 -7
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/index-BMHVi812.mjs +0 -234
- package/dist/index-BzAniA2J.mjs +0 -135
- package/dist/index-C6LbClYh.mjs +0 -146
- package/dist/index-CAIe8hBv.mjs +0 -130
- package/dist/index-CUQBAqt_.mjs +0 -75
- package/dist/index-CWlrSlUk.mjs +0 -68
- package/dist/index-Ckmu1TfV.mjs +0 -86
- package/dist/index-DwznImvK.mjs +0 -1678
- package/dist/index-maWH3JYC.mjs +0 -3561
- package/dist/styles-B2N0JLw1.mjs +0 -114
- package/dist/styles-B64DVBIF.mjs +0 -115
- package/dist/styles-BXFVwnWT.mjs +0 -133
- package/dist/styles-BZQOqe8p.mjs +0 -141
- package/dist/styles-Bdque9TT.mjs +0 -65
- package/dist/styles-BlHspTrz.mjs +0 -144
- package/dist/styles-CROOwXEH.mjs +0 -76
- package/dist/styles-CplEd2kw.mjs +0 -228
- package/dist/styles-D1eTIklB.mjs +0 -110
- package/dist/styles-ePGii_9g.mjs +0 -74
- package/dist/use-carousel-CgAF78h3.mjs +0 -23
- package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
- package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
- package/dist/use-modal-CtgexKnf.mjs +0 -14
- package/dist/use-search-Dj47QDw9.mjs +0 -15
- package/dist/utils-V0EumEPM.mjs +0 -6
- /package/dist/assets/{index2.css → vendor.css} +0 -0
|
@@ -1,67 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Divider as l } from "../divider/index.js";
|
|
6
|
-
import { Link as y } from "../link/index.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { ab as a } from "../../components-C7JPRIEW.mjs";
|
|
7
5
|
import "react";
|
|
8
|
-
import { a as z } from "../../styles-Bdque9TT.mjs";
|
|
9
|
-
import "../icon/index.js";
|
|
10
|
-
import { Tag as b } from "../tag/index.js";
|
|
11
|
-
import "../typography/heading/index.js";
|
|
12
|
-
import "../typography/span/index.js";
|
|
13
|
-
import { Text as r } from "../typography/text/index.js";
|
|
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, () => {
|
|
25
|
-
d(!1);
|
|
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
|
-
] });
|
|
64
|
-
};
|
|
65
6
|
export {
|
|
66
|
-
|
|
7
|
+
a as Menu
|
|
67
8
|
};
|
|
@@ -1,101 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as l } from "../container/index.js";
|
|
6
|
-
import { Icon as p } from "../icon/index.js";
|
|
7
|
-
import "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as m } from "../typography/text/index.js";
|
|
10
|
-
const S = b.button`
|
|
11
|
-
align-items: center;
|
|
12
|
-
background-color: transparent;
|
|
13
|
-
border: unset;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
gap: 5px;
|
|
18
|
-
padding: 0;
|
|
19
|
-
|
|
20
|
-
&:hover p {
|
|
21
|
-
color: ${c.palette.primary[200]};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:hover span {
|
|
25
|
-
color: ${c.palette.primary[200]};
|
|
26
|
-
}
|
|
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
|
-
);
|
|
98
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { ac as p } from "../../components-C7JPRIEW.mjs";
|
|
99
5
|
export {
|
|
100
|
-
|
|
6
|
+
p as MessageBanner
|
|
101
7
|
};
|
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { ModalFooter as x } from "./modal-footer/index.js";
|
|
6
|
-
import { ModalHeader as b } from "./modal-header/index.js";
|
|
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
|
-
import "../typography/heading/index.js";
|
|
10
|
-
import "../typography/span/index.js";
|
|
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;
|
|
61
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
import { ad as p, ae as t } from "../../components-C7JPRIEW.mjs";
|
|
62
5
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
6
|
+
p as Modal,
|
|
7
|
+
t as ModalConfirm
|
|
65
8
|
};
|
|
@@ -1,51 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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
|
-
);
|
|
48
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { ae as m } from "../../../components-C7JPRIEW.mjs";
|
|
49
3
|
export {
|
|
50
|
-
|
|
4
|
+
m as ModalConfirm
|
|
51
5
|
};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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;
|
|
22
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import { bb as i } from "../../../components-C7JPRIEW.mjs";
|
|
23
5
|
export {
|
|
24
|
-
|
|
6
|
+
i as ModalFooter
|
|
25
7
|
};
|
|
@@ -1,51 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { IconButton as u } from "../../icon-button/index.js";
|
|
7
|
-
import { Heading as x } from "../../typography/heading/index.js";
|
|
8
|
-
import "../../typography/span/index.js";
|
|
9
|
-
import { Text as k } from "../../typography/text/index.js";
|
|
10
|
-
const B = ({
|
|
11
|
-
title: o,
|
|
12
|
-
description: e,
|
|
13
|
-
modalRef: m,
|
|
14
|
-
otherActions: a,
|
|
15
|
-
onClose: r
|
|
16
|
-
}) => {
|
|
17
|
-
const c = g(), i = h(() => {
|
|
18
|
-
r == null || r(), m.close();
|
|
19
|
-
}, [m, r]);
|
|
20
|
-
return p(() => {
|
|
21
|
-
const s = (d) => {
|
|
22
|
-
d.key === "Escape" && i();
|
|
23
|
-
};
|
|
24
|
-
return window.addEventListener("keydown", s), () => {
|
|
25
|
-
window.removeEventListener("keydown", s);
|
|
26
|
-
};
|
|
27
|
-
}, [i]), /* @__PURE__ */ t(y, { children: [
|
|
28
|
-
/* @__PURE__ */ t(w, { children: [
|
|
29
|
-
typeof o == "string" ? /* @__PURE__ */ n(x, { fontWeight: "bold", lineSpacing: 1.75, mr: 1, size: "sm", children: o }) : o,
|
|
30
|
-
/* @__PURE__ */ t("div", { className: "flex", children: [
|
|
31
|
-
a,
|
|
32
|
-
/* @__PURE__ */ n(
|
|
33
|
-
u,
|
|
34
|
-
{
|
|
35
|
-
icon: "close",
|
|
36
|
-
iconColor: c.palette.gray[300],
|
|
37
|
-
iconSize: "xs",
|
|
38
|
-
iconType: "fa-light",
|
|
39
|
-
id: "modal-close",
|
|
40
|
-
onClick: i,
|
|
41
|
-
variant: "ghost"
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] })
|
|
45
|
-
] }),
|
|
46
|
-
e && l(e) && !f(e) ? /* @__PURE__ */ n(k, { mt: 0.5, size: "sm", children: e }) : e
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import "styled-components";
|
|
5
|
+
import { bc as a } from "../../../components-C7JPRIEW.mjs";
|
|
49
6
|
export {
|
|
50
|
-
|
|
7
|
+
a as ModalHeader
|
|
51
8
|
};
|
|
@@ -1,113 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Icon as r } from "../icon/index.js";
|
|
6
|
-
import { IconButton as g } from "../icon-button/index.js";
|
|
7
|
-
import { Heading as x } from "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as $ } from "../typography/text/index.js";
|
|
10
|
-
const u = c.div`
|
|
11
|
-
${({ theme: i, $variant: o }) => `
|
|
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[o][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
|
-
`, m = c.div`
|
|
30
|
-
${({ theme: i, $variant: o }) => `
|
|
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[o][50]};
|
|
48
|
-
position: absolute;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
& .ellipse-2 {
|
|
52
|
-
transform: scale(2) translate(-25%, -25%);
|
|
53
|
-
color: ${i.palette[o][200]};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .icon {
|
|
57
|
-
color: ${i.palette[o][500]};
|
|
58
|
-
}
|
|
59
|
-
`}
|
|
60
|
-
`, b = (i) => i === "warning" ? "triangle-exclamation" : i === "info" ? "circle-info" : i === "success" ? "circle-check" : "circle-exclamation", N = ({
|
|
61
|
-
description: i,
|
|
62
|
-
onClose: o,
|
|
63
|
-
title: s,
|
|
64
|
-
variant: n
|
|
65
|
-
}) => {
|
|
66
|
-
const l = d(), a = p(() => {
|
|
67
|
-
o == null || o();
|
|
68
|
-
}, [o]);
|
|
69
|
-
return /* @__PURE__ */ e(
|
|
70
|
-
u,
|
|
71
|
-
{
|
|
72
|
-
$variant: n,
|
|
73
|
-
className: `notification notification__${n}`,
|
|
74
|
-
role: "alertdialog",
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ e(m, { $variant: n, children: [
|
|
77
|
-
/* @__PURE__ */ t(r, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }),
|
|
78
|
-
/* @__PURE__ */ t(r, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }),
|
|
79
|
-
/* @__PURE__ */ t(
|
|
80
|
-
r,
|
|
81
|
-
{
|
|
82
|
-
icon: b(n),
|
|
83
|
-
iconClass: "icon",
|
|
84
|
-
iconSize: "xs",
|
|
85
|
-
iconType: "fa-light"
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] }),
|
|
89
|
-
/* @__PURE__ */ e(f, { pr: 1.5, children: [
|
|
90
|
-
/* @__PURE__ */ t(x, { fontWeight: "bold", size: "xs", children: s }),
|
|
91
|
-
/* @__PURE__ */ t($, { size: "sm", whiteSpace: "break-spaces", wordWrap: "break-word", children: i })
|
|
92
|
-
] }),
|
|
93
|
-
/* @__PURE__ */ t(
|
|
94
|
-
g,
|
|
95
|
-
{
|
|
96
|
-
height: "fit-content",
|
|
97
|
-
icon: "close",
|
|
98
|
-
iconColor: l.palette.gray[400],
|
|
99
|
-
iconSize: "xs",
|
|
100
|
-
iconType: "fa-light",
|
|
101
|
-
onClick: a,
|
|
102
|
-
px: 0.125,
|
|
103
|
-
py: 0.125,
|
|
104
|
-
variant: "ghost"
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { af as p } from "../../components-C7JPRIEW.mjs";
|
|
111
5
|
export {
|
|
112
|
-
|
|
6
|
+
p as Notification
|
|
113
7
|
};
|
|
@@ -1,47 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { B as c } from "../../styles-CplEd2kw.mjs";
|
|
5
|
-
const f = n(
|
|
6
|
-
c
|
|
7
|
-
)`
|
|
8
|
-
${({ theme: t, $variant: i }) => `
|
|
9
|
-
align-items: center;
|
|
10
|
-
background: ${i === "error" ? t.palette.primary[400] : t.palette.warning[500]};
|
|
11
|
-
border-radius: 100%;
|
|
12
|
-
font-family: ${t.typography.type.primary};
|
|
13
|
-
justify-content: center;
|
|
14
|
-
padding: 0;
|
|
15
|
-
position: absolute;
|
|
16
|
-
z-index: 11;
|
|
17
|
-
width: ${t.spacing[0.5]};
|
|
18
|
-
height: ${t.spacing[0.5]};
|
|
19
|
-
`}
|
|
20
|
-
`, d = n.div`
|
|
21
|
-
align-items: center;
|
|
22
|
-
color: ${({ theme: t }) => t.palette.white};
|
|
23
|
-
display: flex;
|
|
24
|
-
font-size: 6px;
|
|
25
|
-
font-weight: ${({ theme: t }) => t.typography.weight.bold};
|
|
26
|
-
justify-content: center;
|
|
27
|
-
`, $ = s(function({
|
|
28
|
-
numberIndicator: i,
|
|
29
|
-
show: r,
|
|
30
|
-
variant: e = "error",
|
|
31
|
-
...a
|
|
32
|
-
}, p) {
|
|
33
|
-
return /* @__PURE__ */ o(
|
|
34
|
-
f,
|
|
35
|
-
{
|
|
36
|
-
$variant: e,
|
|
37
|
-
className: r ? "flex" : "hidden",
|
|
38
|
-
"data-testid": "notification-sign",
|
|
39
|
-
ref: p,
|
|
40
|
-
...a,
|
|
41
|
-
children: i && /* @__PURE__ */ o(d, { children: i <= 9 ? i : 9 })
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ag as a } from "../../components-C7JPRIEW.mjs";
|
|
45
4
|
export {
|
|
46
|
-
|
|
5
|
+
a as NotificationSign
|
|
47
6
|
};
|
|
@@ -1,89 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { T as $ } from "../../index-DwznImvK.mjs";
|
|
6
|
-
const S = f.div`
|
|
7
|
-
width: fit-content;
|
|
8
|
-
border: ${({ theme: e }) => `1px solid ${e.palette.gray[300]}`};
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
background: none;
|
|
11
|
-
color: ${({ theme: e }) => e.palette.black};
|
|
12
|
-
font-family: ${({ theme: e }) => e.typography.type.primary};
|
|
13
|
-
font-size: ${({ theme: e }) => e.typography.text.md};
|
|
14
|
-
height: 40px;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
padding: 0.5em;
|
|
19
|
-
`, F = f.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
|
-
`, K = T(function({
|
|
40
|
-
autoUpdate: c = !1,
|
|
41
|
-
decimalPlaces: b = 0,
|
|
42
|
-
defaultValue: p = 0,
|
|
43
|
-
max: o,
|
|
44
|
-
min: n,
|
|
45
|
-
name: m,
|
|
46
|
-
onEnter: a,
|
|
47
|
-
tooltipMessage: y,
|
|
48
|
-
...h
|
|
49
|
-
}, x) {
|
|
50
|
-
const r = b < 0 ? 0 : b, [g, u] = C(Number(p).toFixed(r)), N = s(
|
|
51
|
-
(t) => {
|
|
52
|
-
const i = d(t.target.value);
|
|
53
|
-
t.target.value.endsWith(".") ? u(t.target.value) : i >= Number(n) && i <= Number(o) && (u(String(i)), c && a(d(i.toFixed(r)))), t.stopPropagation();
|
|
54
|
-
},
|
|
55
|
-
[c, r, o, n, a]
|
|
56
|
-
), I = s(
|
|
57
|
-
(t) => {
|
|
58
|
-
t.currentTarget.contains(t.relatedTarget) || u(Number(p).toFixed(r)), t.stopPropagation();
|
|
59
|
-
},
|
|
60
|
-
[r, p]
|
|
61
|
-
), w = s(
|
|
62
|
-
(t) => {
|
|
63
|
-
t.stopPropagation(), t.key === "Enter" && !k(t.currentTarget.value) && a(d(t.currentTarget.value));
|
|
64
|
-
},
|
|
65
|
-
[a]
|
|
66
|
-
);
|
|
67
|
-
return /* @__PURE__ */ l(S, { onBlur: I, tabIndex: -1, children: /* @__PURE__ */ l($, { id: "numberInputTooltip", tip: y, children: /* @__PURE__ */ l(
|
|
68
|
-
F,
|
|
69
|
-
{
|
|
70
|
-
...h,
|
|
71
|
-
"aria-label": m,
|
|
72
|
-
"aria-valuemax": Number(o),
|
|
73
|
-
"aria-valuemin": Number(n),
|
|
74
|
-
"aria-valuenow": Number(g),
|
|
75
|
-
max: o,
|
|
76
|
-
min: n,
|
|
77
|
-
name: m,
|
|
78
|
-
onChange: N,
|
|
79
|
-
onKeyUp: w,
|
|
80
|
-
ref: x,
|
|
81
|
-
step: 10 ** -r,
|
|
82
|
-
type: "number",
|
|
83
|
-
value: g
|
|
84
|
-
}
|
|
85
|
-
) }) });
|
|
86
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import { ah as i } from "../../components-C7JPRIEW.mjs";
|
|
87
5
|
export {
|
|
88
|
-
|
|
6
|
+
i as NumberInput
|
|
89
7
|
};
|