@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,13 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { Container as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as o } from "styled-components";
|
|
3
|
+
import { Container as n } from "../../container/index.js";
|
|
4
4
|
import "../../typography/heading/index.js";
|
|
5
5
|
import "../../typography/span/index.js";
|
|
6
|
-
import { Text as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { Text as m } from "../../typography/text/index.js";
|
|
7
|
+
const f = ({
|
|
8
|
+
tag: e,
|
|
9
|
+
tagPosition: t
|
|
10
|
+
}) => {
|
|
11
|
+
const r = o();
|
|
12
|
+
return e ? /* @__PURE__ */ i(
|
|
13
|
+
n,
|
|
14
|
+
{
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
bgColor: r.palette.white,
|
|
17
|
+
borderRadius: "8px",
|
|
18
|
+
display: "flex",
|
|
19
|
+
justify: "center",
|
|
20
|
+
margin: t === "top" ? [0.75, 0.75, 0.75, 0.75] : void 0,
|
|
21
|
+
padding: [0.25, 0.5, 0.25, 0.5],
|
|
22
|
+
position: t === "top" ? "absolute" : "relative",
|
|
23
|
+
top: "0",
|
|
24
|
+
width: "max-content",
|
|
25
|
+
children: /* @__PURE__ */ i(
|
|
26
|
+
m,
|
|
27
|
+
{
|
|
28
|
+
color: r.palette.gray[900],
|
|
29
|
+
lineSpacing: 1.5,
|
|
30
|
+
lineSpacingSm: 1.25,
|
|
31
|
+
size: "md",
|
|
32
|
+
sizeSm: "sm",
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
children: e
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
) : null;
|
|
10
39
|
};
|
|
11
40
|
export {
|
|
12
|
-
|
|
41
|
+
f as CategoryTag
|
|
13
42
|
};
|
|
@@ -1,15 +1,58 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { isEmpty as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { Container as
|
|
5
|
-
import { Heading as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as l } from "lodash";
|
|
3
|
+
import { useTheme as s } from "styled-components";
|
|
4
|
+
import { Container as p } from "../../container/index.js";
|
|
5
|
+
import { Heading as d } from "../../typography/heading/index.js";
|
|
6
6
|
import "../../typography/span/index.js";
|
|
7
7
|
import { Text as c } from "../../typography/text/index.js";
|
|
8
|
-
const b = ({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const b = ({
|
|
9
|
+
eventDate: i
|
|
10
|
+
}) => {
|
|
11
|
+
const o = s(), t = l(i) ? null : i == null ? void 0 : i.split("-");
|
|
12
|
+
if (t) {
|
|
13
|
+
const [r, m] = t;
|
|
14
|
+
return /* @__PURE__ */ n(
|
|
15
|
+
p,
|
|
16
|
+
{
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
bgColor: o.palette.white,
|
|
19
|
+
borderRadius: "8px",
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
margin: [0.75, 0.75, 0.75, 0.75],
|
|
23
|
+
padding: [0.75, 1.5, 0.75, 1.5],
|
|
24
|
+
position: "absolute",
|
|
25
|
+
right: "0",
|
|
26
|
+
shadow: "md",
|
|
27
|
+
top: "0",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
d,
|
|
31
|
+
{
|
|
32
|
+
fontWeight: "semibold",
|
|
33
|
+
lineSpacingSm: 1.25,
|
|
34
|
+
size: "md",
|
|
35
|
+
sizeSm: "sm",
|
|
36
|
+
textAlign: "center",
|
|
37
|
+
children: r
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
c,
|
|
42
|
+
{
|
|
43
|
+
color: o.palette.gray[800],
|
|
44
|
+
fontWeight: "semibold",
|
|
45
|
+
lineSpacing: 1.5,
|
|
46
|
+
lineSpacingSm: 1.25,
|
|
47
|
+
size: "md",
|
|
48
|
+
sizeSm: "sm",
|
|
49
|
+
textAlign: "center",
|
|
50
|
+
children: m.toUpperCase()
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
13
56
|
}
|
|
14
57
|
return null;
|
|
15
58
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import z, { useTheme as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import z, { useTheme as b } from "styled-components";
|
|
3
3
|
import { CategoryTag as k } from "./category-tag/index.js";
|
|
4
|
-
import { EventDate as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { M as
|
|
7
|
-
import { Container as
|
|
4
|
+
import { EventDate as u } from "./event-date/index.js";
|
|
5
|
+
import { Button as C } from "../button/index.js";
|
|
6
|
+
import { M as v } from "../../index-maWH3JYC.mjs";
|
|
7
|
+
import { Container as c } from "../container/index.js";
|
|
8
8
|
import { Icon as S } from "../icon/index.js";
|
|
9
|
-
import { Heading as
|
|
9
|
+
import { Heading as j } from "../typography/heading/index.js";
|
|
10
10
|
import "../typography/span/index.js";
|
|
11
|
-
import { Text as
|
|
12
|
-
const
|
|
11
|
+
import { Text as f } from "../typography/text/index.js";
|
|
12
|
+
const I = z.div`
|
|
13
13
|
${({ theme: t }) => `
|
|
14
14
|
align-items: flex-start;
|
|
15
15
|
display: flex;
|
|
@@ -54,10 +54,115 @@ const C = z.div`
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
`}
|
|
57
|
-
`,
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
`, G = ({
|
|
58
|
+
author: t,
|
|
59
|
+
buttonText: g,
|
|
60
|
+
description: x,
|
|
61
|
+
eventDate: h,
|
|
62
|
+
href: a,
|
|
63
|
+
imageId: d,
|
|
64
|
+
mode: y = "light",
|
|
65
|
+
publishDate: s,
|
|
66
|
+
readingTime: m,
|
|
67
|
+
tag: p,
|
|
68
|
+
tagPosition: r = "top",
|
|
69
|
+
title: w
|
|
70
|
+
}) => {
|
|
71
|
+
const i = b(), o = s == null ? void 0 : s.split("-"), n = y === "dark", $ = /* @__PURE__ */ l(I, { "data-testid": `content-card-${w}`, children: [
|
|
72
|
+
d || h || p && r === "top" ? /* @__PURE__ */ l(c, { id: "card-image", position: "relative", children: [
|
|
73
|
+
d && /* @__PURE__ */ e(v, { publicId: d }),
|
|
74
|
+
r === "top" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
|
|
75
|
+
/* @__PURE__ */ e(u, { eventDate: h })
|
|
76
|
+
] }) : void 0,
|
|
77
|
+
/* @__PURE__ */ l(
|
|
78
|
+
c,
|
|
79
|
+
{
|
|
80
|
+
alignItems: "flex-start",
|
|
81
|
+
display: "flex",
|
|
82
|
+
flexDirection: "column",
|
|
83
|
+
gap: 0.5,
|
|
84
|
+
id: "card-content",
|
|
85
|
+
children: [
|
|
86
|
+
r === "bottom" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
|
|
87
|
+
t || o || m ? /* @__PURE__ */ l(c, { display: "flex", justify: "space-between", width: "100%", children: [
|
|
88
|
+
t && o && /* @__PURE__ */ e(
|
|
89
|
+
f,
|
|
90
|
+
{
|
|
91
|
+
color: i.palette.gray[n ? 300 : 400],
|
|
92
|
+
fontWeight: "semibold",
|
|
93
|
+
size: "sm",
|
|
94
|
+
sizeSm: "xs",
|
|
95
|
+
children: t + ` • ${o[0]} ${o[1]}, ${o[2]}`
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
m && /* @__PURE__ */ l(
|
|
99
|
+
c,
|
|
100
|
+
{
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
display: "flex",
|
|
103
|
+
gap: 0.25,
|
|
104
|
+
justify: "center",
|
|
105
|
+
minWidth: "60px",
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
S,
|
|
109
|
+
{
|
|
110
|
+
icon: "eye",
|
|
111
|
+
iconColor: i.palette.gray[n ? 300 : 400],
|
|
112
|
+
iconSize: "xs",
|
|
113
|
+
iconType: "fa-light"
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ e(
|
|
117
|
+
f,
|
|
118
|
+
{
|
|
119
|
+
color: i.palette.gray[n ? 300 : 400],
|
|
120
|
+
size: "sm",
|
|
121
|
+
sizeSm: "xs",
|
|
122
|
+
textAlign: "right",
|
|
123
|
+
children: m
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] }) : void 0,
|
|
130
|
+
/* @__PURE__ */ e(
|
|
131
|
+
j,
|
|
132
|
+
{
|
|
133
|
+
className: `title-${y}`,
|
|
134
|
+
color: n ? i.palette.white : i.palette.gray[800],
|
|
135
|
+
fontWeight: "semibold",
|
|
136
|
+
size: "sm",
|
|
137
|
+
sizeSm: "xs",
|
|
138
|
+
children: w
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
x && /* @__PURE__ */ e(
|
|
142
|
+
f,
|
|
143
|
+
{
|
|
144
|
+
color: i.palette.gray[n ? 100 : 600],
|
|
145
|
+
size: "md",
|
|
146
|
+
sizeSm: "sm",
|
|
147
|
+
children: x
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
g && a && /* @__PURE__ */ e(C, { href: a, variant: "link", children: g })
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] });
|
|
155
|
+
return a ? /* @__PURE__ */ e(
|
|
156
|
+
"a",
|
|
157
|
+
{
|
|
158
|
+
className: "flex w-fit",
|
|
159
|
+
href: a,
|
|
160
|
+
rel: "noopener noreferrer",
|
|
161
|
+
target: "_self",
|
|
162
|
+
children: $
|
|
163
|
+
}
|
|
164
|
+
) : $;
|
|
60
165
|
};
|
|
61
166
|
export {
|
|
62
|
-
|
|
167
|
+
G as ContentCard
|
|
63
168
|
};
|
|
@@ -1,15 +1,95 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { O as p, S as
|
|
4
|
-
import { Container as
|
|
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
5
|
import { ContentCard as f } from "../content-card/index.js";
|
|
6
6
|
import { Heading as x } from "../typography/heading/index.js";
|
|
7
7
|
import "../typography/span/index.js";
|
|
8
8
|
import { Text as g } from "../typography/text/index.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
] });
|
|
12
92
|
};
|
|
13
93
|
export {
|
|
14
|
-
|
|
94
|
+
j as ContentCardCarousel
|
|
15
95
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "styled-components";
|
|
4
|
-
import { S as s } from "../../../index-
|
|
4
|
+
import { S as s } from "../../../index-CAIe8hBv.mjs";
|
|
5
5
|
import "../../container/index.js";
|
|
6
6
|
import "../../icon/index.js";
|
|
7
7
|
export {
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { theme as
|
|
4
|
-
import { Container as
|
|
5
|
-
const
|
|
6
|
-
|
|
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
|
+
);
|
|
7
22
|
});
|
|
8
23
|
export {
|
|
9
|
-
|
|
24
|
+
h as Divider
|
|
10
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Button as
|
|
3
|
-
const
|
|
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
4
|
export {
|
|
5
|
-
|
|
5
|
+
c as EmptyButton
|
|
6
6
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyButton as m } from "./empty-button/index.js";
|
|
3
|
-
import { styled as
|
|
4
|
-
import { M as g } from "../../index-
|
|
5
|
-
import { Heading as
|
|
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
6
|
import "../typography/span/index.js";
|
|
7
7
|
import { Text as x } from "../typography/text/index.js";
|
|
8
|
-
const
|
|
8
|
+
const h = n.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: center;
|
|
12
|
-
padding: ${({ theme:
|
|
12
|
+
padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
|
|
13
13
|
max-width: 900px;
|
|
14
14
|
white-space: pre-line;
|
|
15
15
|
margin: 0 auto;
|
|
16
|
-
`,
|
|
16
|
+
`, y = n.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: row;
|
|
19
19
|
justify-content: center;
|
|
@@ -21,28 +21,65 @@ const f = r.div`
|
|
|
21
21
|
background-color: transparent;
|
|
22
22
|
width: 96px;
|
|
23
23
|
height: 96px;
|
|
24
|
-
margin-bottom: ${({ theme:
|
|
24
|
+
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
25
25
|
|
|
26
26
|
> img {
|
|
27
27
|
width: 100%;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`, u = n.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: row;
|
|
32
32
|
margin: 0;
|
|
33
|
-
margin-bottom: ${({ theme:
|
|
33
|
+
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
34
34
|
|
|
35
35
|
> * {
|
|
36
|
-
margin-right: ${({ theme:
|
|
36
|
+
margin-right: ${({ theme: i }) => i.spacing[0.75]};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
> *:last-child {
|
|
40
40
|
margin-right: 0;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
43
|
-
|
|
44
|
-
|
|
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
|
+
] });
|
|
45
82
|
};
|
|
46
83
|
export {
|
|
47
|
-
|
|
84
|
+
C as EmptyState
|
|
48
85
|
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { Container as
|
|
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
4
|
import n from "lodash";
|
|
5
|
-
import { Link as
|
|
6
|
-
const
|
|
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
|
+
)`
|
|
7
13
|
& img {
|
|
8
14
|
display: block;
|
|
9
15
|
}
|
|
@@ -16,13 +22,23 @@ const a = h(p).attrs(({ ...i }) => ({ display: "inline-block", position: "relati
|
|
|
16
22
|
width: 100%;
|
|
17
23
|
height: 100%;
|
|
18
24
|
pointer-events: none;
|
|
19
|
-
${({ $opacity:
|
|
25
|
+
${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
|
|
20
26
|
}
|
|
21
|
-
`,
|
|
22
|
-
if (n.isNil(
|
|
23
|
-
const
|
|
24
|
-
return (
|
|
25
|
-
}
|
|
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 }) });
|
|
26
42
|
export {
|
|
27
|
-
|
|
43
|
+
w as FilePreview
|
|
28
44
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { styled as
|
|
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
4
|
import { Button as a } from "../button/index.js";
|
|
5
|
-
import { Container as
|
|
6
|
-
const
|
|
5
|
+
import { Container as n } from "../container/index.js";
|
|
6
|
+
const b = y.form`
|
|
7
7
|
${({ theme: i }) => `
|
|
8
8
|
align-items: flex-start;
|
|
9
9
|
align-self: stretch;
|
|
@@ -17,10 +17,47 @@ const x = b.form`
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
`}
|
|
20
|
-
`,
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
] }) });
|
|
23
60
|
});
|
|
24
61
|
export {
|
|
25
|
-
|
|
62
|
+
F as Form
|
|
26
63
|
};
|