@fluidattacks/design 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +22 -1
- package/dist/components/accordion/index.js +78 -1
- package/dist/components/alert/index.js +162 -4
- package/dist/components/button/index.js +69 -1
- package/dist/components/card/card-header/index.js +83 -1
- package/dist/components/card/card-with-image/index.js +93 -1
- package/dist/components/card/card-with-input/index.js +106 -3
- package/dist/components/card/card-with-selector/index.js +71 -1
- package/dist/components/card/card-with-switch/index.js +50 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +62 -10
- package/dist/components/checkbox/index.js +118 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +72 -1
- package/dist/components/code-snippet/location-code/index.js +171 -1
- package/dist/components/colors/index.js +224 -1
- package/dist/components/confirm-dialog/index.js +46 -1
- package/dist/components/container/index.js +51 -3
- package/dist/components/content-card/category-tag/index.js +42 -1
- package/dist/components/content-card/event-date/index.js +61 -1
- package/dist/components/content-card/index.js +168 -3
- package/dist/components/content-card-carousel/index.js +95 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +25 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +58 -8
- package/dist/components/file-preview/index.js +31 -3
- package/dist/components/form/index.js +63 -3
- package/dist/components/grid-container/index.js +46 -5
- package/dist/components/group-selector/index.js +135 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +102 -4
- package/dist/components/icon-button/index.js +76 -3
- package/dist/components/indicator-card/index.js +74 -1
- package/dist/components/info-sidebar/index.js +116 -1
- package/dist/components/inputs/fields/combobox/index.js +146 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
- package/dist/components/inputs/fields/date/calendar/index.js +30 -1
- package/dist/components/inputs/fields/date/index.js +68 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
- package/dist/components/inputs/fields/date-range/index.js +108 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
- package/dist/components/inputs/fields/date-time/index.js +69 -1
- package/dist/components/inputs/fields/editable/index.js +28 -1
- package/dist/components/inputs/fields/input/index.js +77 -1
- package/dist/components/inputs/fields/input-file/index.js +117 -4
- package/dist/components/inputs/fields/input-tags/index.js +63 -2
- package/dist/components/inputs/fields/number/index.js +57 -1
- package/dist/components/inputs/fields/number-range/index.js +49 -1
- package/dist/components/inputs/fields/phone/index.js +574 -11
- package/dist/components/inputs/fields/text-area/index.js +81 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +38 -1
- package/dist/components/inputs/outline-container/index.js +104 -1
- package/dist/components/inputs/utils/action-button/index.js +31 -1
- package/dist/components/inputs/utils/calendar-button/index.js +37 -1
- package/dist/components/inputs/utils/date-selector/index.js +62 -1
- package/dist/components/inputs/utils/date-time-field/index.js +133 -1
- package/dist/components/inputs/utils/dialog/index.js +14 -1
- package/dist/components/inputs/utils/number-field/index.js +86 -1
- package/dist/components/inputs/utils/popover/index.js +44 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +118 -1
- package/dist/components/language-selector/index.js +37 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +106 -7
- package/dist/components/list-item/index.js +67 -1
- package/dist/components/little-flag/index.js +32 -3
- package/dist/components/loading/index.js +55 -14
- package/dist/components/logo/index.js +13 -1
- package/dist/components/logo-carousel/index.js +45 -4
- package/dist/components/lottie/index.js +20 -3
- package/dist/components/menu/index.js +67 -1
- package/dist/components/message-banner/index.js +87 -4
- package/dist/components/modal/index.js +65 -1
- package/dist/components/modal/modal-confirm/index.js +51 -1
- package/dist/components/modal/modal-footer/index.js +25 -1
- package/dist/components/modal/modal-header/index.js +51 -1
- package/dist/components/notification/index.js +113 -5
- package/dist/components/notification-sign/index.js +43 -6
- package/dist/components/number-input/index.js +62 -7
- package/dist/components/oauth-selector/index.js +100 -1
- package/dist/components/oauth-selector/option-container/index.js +76 -1
- package/dist/components/plan-card/index.js +155 -5
- package/dist/components/plan-card/recommended-tag/index.js +31 -1
- package/dist/components/pop-up/description/index.js +51 -1
- package/dist/components/pop-up/index.js +152 -1
- package/dist/components/premium-feature/index.js +85 -3
- package/dist/components/priority-score/index.js +29 -1
- package/dist/components/progress/index.js +36 -3
- package/dist/components/progress-bar/index.js +153 -5
- package/dist/components/radio-button/index.js +125 -3
- package/dist/components/scroll-button/index.js +38 -2
- package/dist/components/search/index.js +105 -7
- package/dist/components/search-bar/index.js +219 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +74 -1
- package/dist/components/severity-overview/badge/index.js +69 -1
- package/dist/components/severity-overview/index.js +17 -1
- package/dist/components/show-on-hover/index.js +31 -3
- package/dist/components/slide-out-menu/index.js +3456 -3
- package/dist/components/slide-out-menu/menu-item/index.js +67 -1
- package/dist/components/slider/index.js +124 -7
- package/dist/components/slider/thumb/index.js +17 -1
- package/dist/components/step-lapse/index.js +153 -9
- package/dist/components/table-button/index.js +97 -3
- package/dist/components/tabs/fixed-tabs/index.js +29 -1
- package/dist/components/tabs/index.js +57 -1
- package/dist/components/tabs/tab/index.js +39 -1
- package/dist/components/tag/index.js +184 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +17 -1
- package/dist/components/toggle/index.js +85 -14
- package/dist/components/toggle-buttons/index.js +103 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +4549 -4
- package/dist/components/typography/heading/index.js +47 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +41 -1
- package/dist/components/typography/text/index.js +47 -1
- package/dist/components/web-form/index.js +68 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +206 -1
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/styles-BlHspTrz.mjs +144 -0
- package/dist/styles-CROOwXEH.mjs +76 -0
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C0_LPuYU.mjs +0 -106
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
|
@@ -1 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as d } from "react";
|
|
3
|
+
import { O as p, S as r } from "../../index-CAIe8hBv.mjs";
|
|
4
|
+
import { Container as n } from "../container/index.js";
|
|
5
|
+
import { ContentCard as f } from "../content-card/index.js";
|
|
6
|
+
import { Heading as x } from "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as g } from "../typography/text/index.js";
|
|
9
|
+
const j = ({
|
|
10
|
+
description: a,
|
|
11
|
+
items: o,
|
|
12
|
+
title: s,
|
|
13
|
+
titleHighlighted: m
|
|
14
|
+
}) => {
|
|
15
|
+
const t = d(null);
|
|
16
|
+
return /* @__PURE__ */ i(p, { "data-testid": "content-card-carousel", children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
n,
|
|
19
|
+
{
|
|
20
|
+
alignItems: "flex-start",
|
|
21
|
+
display: "flex",
|
|
22
|
+
justify: "space-between",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ i(
|
|
25
|
+
n,
|
|
26
|
+
{
|
|
27
|
+
alignItems: "flex-start",
|
|
28
|
+
display: "flex",
|
|
29
|
+
flexDirection: "column",
|
|
30
|
+
gap: 0.625,
|
|
31
|
+
maxWidth: "800px",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ i(
|
|
34
|
+
x,
|
|
35
|
+
{
|
|
36
|
+
display: "inline",
|
|
37
|
+
fontWeight: "semibold",
|
|
38
|
+
lineSpacing: 2.25,
|
|
39
|
+
lineSpacingSm: 1.75,
|
|
40
|
+
size: "lg",
|
|
41
|
+
sizeSm: "md",
|
|
42
|
+
children: [
|
|
43
|
+
s + " ",
|
|
44
|
+
" ",
|
|
45
|
+
/* @__PURE__ */ e("span", { className: "inline", children: m })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(
|
|
50
|
+
g,
|
|
51
|
+
{
|
|
52
|
+
lineSpacing: 1.5,
|
|
53
|
+
lineSpacingSm: 1.25,
|
|
54
|
+
size: "md",
|
|
55
|
+
sizeSm: "sm",
|
|
56
|
+
children: a
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ e(r, { containerRef: t, id: "desktop" })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
n,
|
|
68
|
+
{
|
|
69
|
+
alignSelf: "stretch",
|
|
70
|
+
display: "flex",
|
|
71
|
+
id: "carousel",
|
|
72
|
+
pb: 1,
|
|
73
|
+
pr: 2.25,
|
|
74
|
+
ref: t,
|
|
75
|
+
scroll: "x",
|
|
76
|
+
children: /* @__PURE__ */ e(
|
|
77
|
+
n,
|
|
78
|
+
{
|
|
79
|
+
alignItems: "flex-start",
|
|
80
|
+
display: "flex",
|
|
81
|
+
gap: 1.5,
|
|
82
|
+
width: "max-content",
|
|
83
|
+
children: o.map(
|
|
84
|
+
(l, c) => /* @__PURE__ */ e(f, { ...l }, `${c}-${l.title}`)
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ e(r, { containerRef: t, id: "mobile" })
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
j as ContentCardCarousel
|
|
95
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { S as s } from "../../../index-CAIe8hBv.mjs";
|
|
5
|
+
import "../../container/index.js";
|
|
6
|
+
import "../../icon/index.js";
|
|
7
|
+
export {
|
|
8
|
+
s as ScrollButtons
|
|
9
|
+
};
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { theme as p } from "../colors/index.js";
|
|
4
|
+
import { Container as n } from "../container/index.js";
|
|
5
|
+
const h = f(function({
|
|
6
|
+
color: r = p.palette.gray[100],
|
|
7
|
+
mt: o = 0.5,
|
|
8
|
+
mb: t = 0.5,
|
|
9
|
+
...e
|
|
10
|
+
}, i) {
|
|
11
|
+
return /* @__PURE__ */ m(
|
|
12
|
+
n,
|
|
13
|
+
{
|
|
14
|
+
as: "hr",
|
|
15
|
+
border: `1px solid ${r}`,
|
|
16
|
+
mb: t,
|
|
17
|
+
mt: o,
|
|
18
|
+
ref: i,
|
|
19
|
+
...e
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
h as Divider
|
|
25
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Button as n } from "../../button/index.js";
|
|
3
|
+
const c = ({ buttonProps: t, variant: o }) => /* @__PURE__ */ r(n, { onClick: t.onClick, variant: o, children: t.text });
|
|
4
|
+
export {
|
|
5
|
+
c as EmptyButton
|
|
6
|
+
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { EmptyButton as m } from "./empty-button/index.js";
|
|
3
|
+
import { styled as n } from "styled-components";
|
|
4
|
+
import { M as g } from "../../index-maWH3JYC.mjs";
|
|
5
|
+
import { Heading as f } from "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as x } from "../typography/text/index.js";
|
|
8
|
+
const h = n.div`
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: column;
|
|
4
11
|
align-items: center;
|
|
5
|
-
padding: ${({theme:
|
|
12
|
+
padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
|
|
6
13
|
max-width: 900px;
|
|
7
14
|
white-space: pre-line;
|
|
8
15
|
margin: 0 auto;
|
|
9
|
-
`,
|
|
16
|
+
`, y = n.div`
|
|
10
17
|
display: flex;
|
|
11
18
|
flex-direction: row;
|
|
12
19
|
justify-content: center;
|
|
@@ -14,22 +21,65 @@
|
|
|
14
21
|
background-color: transparent;
|
|
15
22
|
width: 96px;
|
|
16
23
|
height: 96px;
|
|
17
|
-
margin-bottom: ${({theme:
|
|
24
|
+
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
18
25
|
|
|
19
26
|
> img {
|
|
20
27
|
width: 100%;
|
|
21
28
|
}
|
|
22
|
-
`,
|
|
29
|
+
`, u = n.div`
|
|
23
30
|
display: flex;
|
|
24
31
|
flex-direction: row;
|
|
25
32
|
margin: 0;
|
|
26
|
-
margin-bottom: ${({theme:
|
|
33
|
+
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
27
34
|
|
|
28
35
|
> * {
|
|
29
|
-
margin-right: ${({theme:
|
|
36
|
+
margin-right: ${({ theme: i }) => i.spacing[0.75]};
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
> *:last-child {
|
|
33
40
|
margin-right: 0;
|
|
34
41
|
}
|
|
35
|
-
`,
|
|
42
|
+
`, a = {
|
|
43
|
+
md: { description: "md", title: "lg" },
|
|
44
|
+
sm: { description: "sm", title: "xs" }
|
|
45
|
+
}, C = ({
|
|
46
|
+
cancelButton: i = void 0,
|
|
47
|
+
confirmButton: e = void 0,
|
|
48
|
+
description: p,
|
|
49
|
+
imageSrc: s = "integrates/empty/addRoot",
|
|
50
|
+
padding: l = 1.25,
|
|
51
|
+
title: c,
|
|
52
|
+
size: r = "md"
|
|
53
|
+
}) => {
|
|
54
|
+
const o = (e ?? i) !== void 0;
|
|
55
|
+
return /* @__PURE__ */ d(h, { $padding: l, children: [
|
|
56
|
+
/* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(g, { alt: "empty-icon", publicId: s }) }),
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
f,
|
|
59
|
+
{
|
|
60
|
+
fontWeight: "bold",
|
|
61
|
+
lineSpacing: 1.75,
|
|
62
|
+
mb: 0.25,
|
|
63
|
+
size: a[r].title,
|
|
64
|
+
textAlign: "center",
|
|
65
|
+
children: c
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ t(
|
|
69
|
+
x,
|
|
70
|
+
{
|
|
71
|
+
mb: o ? 2 : void 0,
|
|
72
|
+
size: a[r].description,
|
|
73
|
+
textAlign: "center",
|
|
74
|
+
children: p
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
o ? /* @__PURE__ */ d(u, { children: [
|
|
78
|
+
i && /* @__PURE__ */ t(m, { buttonProps: i, variant: "tertiary" }),
|
|
79
|
+
e && /* @__PURE__ */ t(m, { buttonProps: e, variant: "primary" })
|
|
80
|
+
] }) : void 0
|
|
81
|
+
] });
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
C as EmptyState
|
|
85
|
+
};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { styled as p } from "styled-components";
|
|
3
|
+
import { Container as a } from "../container/index.js";
|
|
4
|
+
import n from "lodash";
|
|
5
|
+
import { Link as m } from "../link/index.js";
|
|
6
|
+
const d = p(a).attrs(
|
|
7
|
+
({ ...e }) => ({
|
|
8
|
+
display: "inline-block",
|
|
9
|
+
position: "relative",
|
|
10
|
+
...e
|
|
11
|
+
})
|
|
12
|
+
)`
|
|
2
13
|
& img {
|
|
3
14
|
display: block;
|
|
4
15
|
}
|
|
@@ -11,6 +22,23 @@
|
|
|
11
22
|
width: 100%;
|
|
12
23
|
height: 100%;
|
|
13
24
|
pointer-events: none;
|
|
14
|
-
${({$opacity:e=0})
|
|
25
|
+
${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
|
|
15
26
|
}
|
|
16
|
-
|
|
27
|
+
`, u = (e) => {
|
|
28
|
+
if (n.isNil(e)) return "";
|
|
29
|
+
const t = e.split(".");
|
|
30
|
+
return (t.length > 1 ? n.last(t) : "").toLowerCase();
|
|
31
|
+
}, f = (e, t) => n.isUndefined(t) ? !1 : n.includes(e, u(t)), w = ({
|
|
32
|
+
alt: e,
|
|
33
|
+
fileType: t,
|
|
34
|
+
width: r = "100%",
|
|
35
|
+
opacity: s = 0,
|
|
36
|
+
src: o,
|
|
37
|
+
height: l = "auto"
|
|
38
|
+
}) => t === "video" || f(["webm"], o) ? /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ c("video", { controls: !0, height: l, muted: !0, width: r, children: [
|
|
39
|
+
/* @__PURE__ */ i("source", { src: o, type: "video/webm" }),
|
|
40
|
+
/* @__PURE__ */ i(m, { href: o, iconPosition: "hidden", children: o })
|
|
41
|
+
] }) }) : /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ i("img", { alt: e, height: l, src: o, width: r }) });
|
|
42
|
+
export {
|
|
43
|
+
w as FilePreview
|
|
44
|
+
};
|
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x } from "react";
|
|
3
|
+
import { styled as y } from "styled-components";
|
|
4
|
+
import { Button as a } from "../button/index.js";
|
|
5
|
+
import { Container as n } from "../container/index.js";
|
|
6
|
+
const b = y.form`
|
|
7
|
+
${({ theme: i }) => `
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: ${i.spacing[0.5]};
|
|
13
|
+
|
|
14
|
+
&:has(button[type="reset"]) {
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-top: ${i.spacing[1]};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`}
|
|
20
|
+
`, F = x(function({
|
|
21
|
+
cancelLabel: m,
|
|
22
|
+
children: c,
|
|
23
|
+
id: o = "modal-confirm",
|
|
24
|
+
onCancel: e,
|
|
25
|
+
onConfirm: r = "submit",
|
|
26
|
+
submitLabel: d,
|
|
27
|
+
submitDisabled: f = !1,
|
|
28
|
+
...p
|
|
29
|
+
}, u) {
|
|
30
|
+
const s = r === "submit", h = [e, r].some(Boolean);
|
|
31
|
+
return /* @__PURE__ */ t(b, { ref: u, ...p, children: /* @__PURE__ */ l(n, { children: [
|
|
32
|
+
/* @__PURE__ */ t(n, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, children: c }),
|
|
33
|
+
h && /* @__PURE__ */ l(n, { display: "flex", gap: 0.75, maxWidth: "392px", children: [
|
|
34
|
+
e ? /* @__PURE__ */ t(
|
|
35
|
+
a,
|
|
36
|
+
{
|
|
37
|
+
id: `${o}-cancel`,
|
|
38
|
+
justify: "center",
|
|
39
|
+
onClick: e,
|
|
40
|
+
type: "reset",
|
|
41
|
+
variant: "tertiary",
|
|
42
|
+
width: "100%",
|
|
43
|
+
children: m ?? "Cancel"
|
|
44
|
+
}
|
|
45
|
+
) : void 0,
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
a,
|
|
48
|
+
{
|
|
49
|
+
disabled: f,
|
|
50
|
+
id: o,
|
|
51
|
+
justify: "center",
|
|
52
|
+
onClick: s ? void 0 : r,
|
|
53
|
+
type: s ? "submit" : "button",
|
|
54
|
+
width: "100%",
|
|
55
|
+
children: d ?? "Confirm"
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
59
|
+
] }) });
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
F as Form
|
|
63
|
+
};
|
|
@@ -1,7 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { styled as s } from "styled-components";
|
|
4
|
+
import { B as l } from "../../styles-CplEd2kw.mjs";
|
|
5
|
+
const f = s(l)`
|
|
2
6
|
display: grid;
|
|
3
|
-
gap: ${({$gap:
|
|
4
|
-
grid-template-columns: ${({$sm:
|
|
7
|
+
gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
|
|
8
|
+
grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
|
|
5
9
|
|
|
6
|
-
${({theme:
|
|
7
|
-
|
|
10
|
+
${({ theme: r, $xl: t, $lg: e, $md: i }) => `
|
|
11
|
+
@media (width >= ${r.breakpoints.sm}) {
|
|
12
|
+
grid-template-columns: repeat(${i}, 1fr);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (width >= ${r.breakpoints.md}) {
|
|
16
|
+
grid-template-columns: repeat(${e}, 1fr);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (width >= ${r.breakpoints.lg}) {
|
|
20
|
+
grid-template-columns: repeat(${t}, 1fr);
|
|
21
|
+
}
|
|
22
|
+
`}
|
|
23
|
+
`, C = $(function({
|
|
24
|
+
children: t,
|
|
25
|
+
md: e,
|
|
26
|
+
sm: i,
|
|
27
|
+
lg: o,
|
|
28
|
+
xl: a,
|
|
29
|
+
gap: m,
|
|
30
|
+
...n
|
|
31
|
+
}, p) {
|
|
32
|
+
return /* @__PURE__ */ d(
|
|
33
|
+
f,
|
|
34
|
+
{
|
|
35
|
+
$gap: m,
|
|
36
|
+
$lg: o,
|
|
37
|
+
$md: e,
|
|
38
|
+
$sm: i,
|
|
39
|
+
$xl: a,
|
|
40
|
+
ref: p,
|
|
41
|
+
...n,
|
|
42
|
+
children: t
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
C as GridContainer
|
|
48
|
+
};
|
|
@@ -1 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useCallback as d, useEffect as z } from "react";
|
|
3
|
+
import { createPortal as T } from "react-dom";
|
|
4
|
+
import { useTheme as v } from "styled-components";
|
|
5
|
+
import { S as L, O as j, a as k } from "../../index-CWlrSlUk.mjs";
|
|
6
|
+
import { Container as t } from "../container/index.js";
|
|
7
|
+
import { Divider as O } from "../divider/index.js";
|
|
8
|
+
import { Icon as B } from "../icon/index.js";
|
|
9
|
+
import { IconButton as F } from "../icon-button/index.js";
|
|
10
|
+
import { Search as G } from "../search/index.js";
|
|
11
|
+
import "../typography/heading/index.js";
|
|
12
|
+
import "../typography/span/index.js";
|
|
13
|
+
import { Text as h } from "../typography/text/index.js";
|
|
14
|
+
const Q = ({
|
|
15
|
+
isOpen: f = !0,
|
|
16
|
+
items: n,
|
|
17
|
+
handleNewOrganization: u,
|
|
18
|
+
onSelect: g,
|
|
19
|
+
onClose: x,
|
|
20
|
+
selectedItem: y,
|
|
21
|
+
title: C,
|
|
22
|
+
variant: S
|
|
23
|
+
}) => {
|
|
24
|
+
const o = v(), [c, l] = p(n), [s, m] = p(""), a = d(
|
|
25
|
+
(r) => {
|
|
26
|
+
l(
|
|
27
|
+
(I) => I.filter(
|
|
28
|
+
(b) => String(b.name).toLowerCase().includes(r.toLocaleLowerCase())
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
[l]
|
|
33
|
+
), w = d(
|
|
34
|
+
(r) => {
|
|
35
|
+
r.currentTarget && (m(r.currentTarget.value), a(r.currentTarget.value));
|
|
36
|
+
},
|
|
37
|
+
[m, a]
|
|
38
|
+
);
|
|
39
|
+
return z(() => {
|
|
40
|
+
l(n), a(s);
|
|
41
|
+
}, [n, a, s]), f ? T(/* @__PURE__ */ e(
|
|
42
|
+
t,
|
|
43
|
+
{
|
|
44
|
+
"aria-modal": "true",
|
|
45
|
+
className: "comp-modal fixed inset-0 overflow-auto",
|
|
46
|
+
zIndex: 99999,
|
|
47
|
+
children: /* @__PURE__ */ e(
|
|
48
|
+
t,
|
|
49
|
+
{
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
bgColor: "rgb(52 64 84 / 70%)",
|
|
52
|
+
display: "flex",
|
|
53
|
+
height: "100vh",
|
|
54
|
+
justify: "center",
|
|
55
|
+
left: "0",
|
|
56
|
+
top: "0",
|
|
57
|
+
width: "100%",
|
|
58
|
+
children: /* @__PURE__ */ i(L, { $itemsLength: c.length, children: [
|
|
59
|
+
/* @__PURE__ */ i(
|
|
60
|
+
t,
|
|
61
|
+
{
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
display: "flex",
|
|
64
|
+
justify: "space-between",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
h,
|
|
68
|
+
{
|
|
69
|
+
color: o.palette.gray[800],
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
size: "lg",
|
|
72
|
+
children: C
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
F,
|
|
77
|
+
{
|
|
78
|
+
icon: "xmark",
|
|
79
|
+
iconColor: o.palette.gray[400],
|
|
80
|
+
iconSize: "xs",
|
|
81
|
+
iconType: "fa-light",
|
|
82
|
+
onClick: x,
|
|
83
|
+
variant: "ghost"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ e(t, { mt: 1, children: /* @__PURE__ */ e(G, { onInput: w, placeholder: "Search" }) }),
|
|
90
|
+
/* @__PURE__ */ e(O, { mb: 1, mt: 1 }),
|
|
91
|
+
/* @__PURE__ */ i(
|
|
92
|
+
t,
|
|
93
|
+
{
|
|
94
|
+
display: "inline-flex",
|
|
95
|
+
gap: 1,
|
|
96
|
+
maxHeight: "332px",
|
|
97
|
+
scroll: "y",
|
|
98
|
+
wrap: "wrap",
|
|
99
|
+
children: [
|
|
100
|
+
S === "organization-selector" ? /* @__PURE__ */ e(j, { onClick: u, children: /* @__PURE__ */ i(t, { alignItems: "center", display: "flex", children: [
|
|
101
|
+
/* @__PURE__ */ e(
|
|
102
|
+
B,
|
|
103
|
+
{
|
|
104
|
+
icon: "square-plus",
|
|
105
|
+
iconColor: o.palette.gray[400],
|
|
106
|
+
iconSize: "xs",
|
|
107
|
+
iconType: "fa-light",
|
|
108
|
+
mr: 0.5
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ e(h, { color: o.palette.gray[400], size: "sm", children: "New organization" })
|
|
112
|
+
] }) }) : void 0,
|
|
113
|
+
c.map(
|
|
114
|
+
(r) => /* @__PURE__ */ e(
|
|
115
|
+
k,
|
|
116
|
+
{
|
|
117
|
+
isSelected: y.toLowerCase() === r.name,
|
|
118
|
+
label: r.name.charAt(0).toUpperCase() + r.name.slice(1),
|
|
119
|
+
onSelect: g
|
|
120
|
+
},
|
|
121
|
+
r.name
|
|
122
|
+
)
|
|
123
|
+
)
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] })
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
), document.body) : /* @__PURE__ */ e("div", {});
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
Q as GroupSelector
|
|
135
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { O, a as s } from "../../../index-CWlrSlUk.mjs";
|
|
5
|
+
import "../../icon/index.js";
|
|
6
|
+
import "../../typography/heading/index.js";
|
|
7
|
+
import "../../typography/span/index.js";
|
|
8
|
+
import "../../typography/text/index.js";
|
|
9
|
+
export {
|
|
10
|
+
O as OptionBoxContainer,
|
|
11
|
+
s as OptionContainer
|
|
12
|
+
};
|