@fluidattacks/design 3.1.13 → 3.1.14
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/assets/design.css +1 -0
- 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-C2JBXbtI.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +113 -205
- package/dist/vendor-CVMqCpkZ.mjs +14504 -0
- package/package.json +2 -1
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- 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
|
@@ -1,168 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
import { Icon as S } from "../icon/index.js";
|
|
9
|
-
import { Heading as j } from "../typography/heading/index.js";
|
|
10
|
-
import "../typography/span/index.js";
|
|
11
|
-
import { Text as f } from "../typography/text/index.js";
|
|
12
|
-
const I = z.div`
|
|
13
|
-
${({ theme: t }) => `
|
|
14
|
-
align-items: flex-start;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: ${t.spacing[1.5]};
|
|
18
|
-
width: 384px;
|
|
19
|
-
|
|
20
|
-
img {
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
#card-image {
|
|
26
|
-
border-radius: ${t.spacing[1]};
|
|
27
|
-
height: 240px;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
img {
|
|
33
|
-
transform: scale(1.2);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
> #card-content {
|
|
37
|
-
> .title-dark {
|
|
38
|
-
color: ${t.palette.gray[400]};
|
|
39
|
-
}
|
|
40
|
-
> .title-light {
|
|
41
|
-
background: ${t.palette.gradients["01"]};
|
|
42
|
-
background-clip: text;
|
|
43
|
-
-webkit-background-clip: text;
|
|
44
|
-
-webkit-text-fill-color: transparent;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media screen and (max-width: ${t.breakpoints.mobile}) {
|
|
50
|
-
width: 320px;
|
|
51
|
-
|
|
52
|
-
#card-image {
|
|
53
|
-
height: 200px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`}
|
|
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
|
-
) : $;
|
|
165
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { bg as p } from "../../components-C2JBXbtI.mjs";
|
|
166
4
|
export {
|
|
167
|
-
|
|
5
|
+
p as ContentCard
|
|
168
6
|
};
|
|
@@ -1,95 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { bh as e } from "../../components-C2JBXbtI.mjs";
|
|
93
4
|
export {
|
|
94
|
-
|
|
5
|
+
e as ContentCardCarousel
|
|
95
6
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import "../../container/index.js";
|
|
6
|
-
import "../../icon/index.js";
|
|
4
|
+
import { bd as i } from "../../../components-C2JBXbtI.mjs";
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
i as ScrollButtons
|
|
9
7
|
};
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { F as p } from "../../components-C2JBXbtI.mjs";
|
|
23
4
|
export {
|
|
24
|
-
|
|
5
|
+
p as Divider
|
|
25
6
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const c = ({ buttonProps: t, variant: o }) => /* @__PURE__ */ r(n, { onClick: t.onClick, variant: o, children: t.text });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { bi as p } from "../../../components-C2JBXbtI.mjs";
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
p as EmptyButton
|
|
6
5
|
};
|
|
@@ -1,85 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: center;
|
|
12
|
-
padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
|
|
13
|
-
max-width: 900px;
|
|
14
|
-
white-space: pre-line;
|
|
15
|
-
margin: 0 auto;
|
|
16
|
-
`, y = n.div`
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
align-items: center;
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
width: 96px;
|
|
23
|
-
height: 96px;
|
|
24
|
-
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
25
|
-
|
|
26
|
-
> img {
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
`, u = n.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
margin: 0;
|
|
33
|
-
margin-bottom: ${({ theme: i }) => i.spacing[2]};
|
|
34
|
-
|
|
35
|
-
> * {
|
|
36
|
-
margin-right: ${({ theme: i }) => i.spacing[0.75]};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
> *:last-child {
|
|
40
|
-
margin-right: 0;
|
|
41
|
-
}
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { G as p } from "../../components-C2JBXbtI.mjs";
|
|
83
3
|
export {
|
|
84
|
-
|
|
4
|
+
p as EmptyState
|
|
85
5
|
};
|
|
@@ -1,44 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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
|
-
)`
|
|
13
|
-
& img {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&::after {
|
|
18
|
-
content: "";
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
pointer-events: none;
|
|
25
|
-
${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
|
|
26
|
-
}
|
|
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 }) });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { H as o } from "../../components-C2JBXbtI.mjs";
|
|
42
3
|
export {
|
|
43
|
-
|
|
4
|
+
o as FilePreview
|
|
44
5
|
};
|
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { I as t } from "../../components-C2JBXbtI.mjs";
|
|
61
4
|
export {
|
|
62
|
-
|
|
5
|
+
t as Form
|
|
63
6
|
};
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { B as l } from "../../styles-CplEd2kw.mjs";
|
|
5
|
-
const f = s(l)`
|
|
6
|
-
display: grid;
|
|
7
|
-
gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
|
|
8
|
-
grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
|
|
9
|
-
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { J as m } from "../../components-C2JBXbtI.mjs";
|
|
46
4
|
export {
|
|
47
|
-
|
|
5
|
+
m as GridContainer
|
|
48
6
|
};
|