@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,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as o, B as n, c as i, b as r, k as p, h as d, j as B, i as m, f as g, e as C, s as f, g as x, d as l } from "../../styles-CplEd2kw.mjs";
|
|
1
|
+
import { a as e, B as t, c as n, b as o, k as i, h as r, j as d, i as p, f as B, e as g, s as m, g as C, d as f, v as l } from "../../components-C7JPRIEW.mjs";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
e as BaseButtonComponent,
|
|
4
|
+
t as BaseComponent,
|
|
5
|
+
n as BaseSpanComponent,
|
|
6
|
+
o as BaseTextComponent,
|
|
7
|
+
i as getStyledConfig,
|
|
8
|
+
r as hiddenProps,
|
|
9
|
+
d as setBorder,
|
|
10
|
+
p as setDisplay,
|
|
11
|
+
B as setInteraction,
|
|
12
|
+
g as setMargin,
|
|
13
|
+
m as setPadding,
|
|
14
|
+
C as setPosition,
|
|
15
|
+
f as setText,
|
|
16
|
+
l as variantBuilder
|
|
18
17
|
};
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "../../typography/heading/index.js";
|
|
4
|
-
import "../../typography/span/index.js";
|
|
5
|
-
import { Text as o } from "../../typography/text/index.js";
|
|
6
|
-
const s = ({
|
|
7
|
-
item: e
|
|
8
|
-
}) => /* @__PURE__ */ i(
|
|
9
|
-
r,
|
|
10
|
-
{
|
|
11
|
-
display: "block",
|
|
12
|
-
id: `panel-${e.title}`,
|
|
13
|
-
padding: [0.75, 0.75, 0.75, 0.75],
|
|
14
|
-
children: [
|
|
15
|
-
e.description ? /* @__PURE__ */ n(o, { mb: e.extraElement ? 0.5 : void 0, size: "sm", children: e.description }) : void 0,
|
|
16
|
-
e.extraElement ? /* @__PURE__ */ n(r, { children: e.extraElement }) : void 0
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { aV as n } from "../../../components-C7JPRIEW.mjs";
|
|
20
3
|
export {
|
|
21
|
-
|
|
4
|
+
n as AccordionContent
|
|
22
5
|
};
|
|
@@ -1,78 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as n } from "../container/index.js";
|
|
6
|
-
import { Icon as y } from "../icon/index.js";
|
|
7
|
-
import "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as A } from "../typography/text/index.js";
|
|
10
|
-
const H = b(function({ aligned: f = "end", items: a, bgColor: s }, h) {
|
|
11
|
-
const o = w(), [c, p] = m(!1), [i, u] = m(-1), g = C(
|
|
12
|
-
(e) => () => {
|
|
13
|
-
u(e), p(e === i ? (t) => !t : !0);
|
|
14
|
-
},
|
|
15
|
-
[i]
|
|
16
|
-
);
|
|
17
|
-
return /* @__PURE__ */ r(n, { ref: h, children: a.map((e, t) => {
|
|
18
|
-
const l = t === i && c;
|
|
19
|
-
return /* @__PURE__ */ d(n, { bgColor: s ?? o.palette.white, children: [
|
|
20
|
-
/* @__PURE__ */ r(
|
|
21
|
-
n,
|
|
22
|
-
{
|
|
23
|
-
"aria-controls": `panel-${e.title}`,
|
|
24
|
-
"aria-expanded": c,
|
|
25
|
-
"aria-label": e.title,
|
|
26
|
-
as: "button",
|
|
27
|
-
bgColor: s ?? o.palette.white,
|
|
28
|
-
bgColorHover: o.palette.gray[100],
|
|
29
|
-
borderBottom: l || t === a.length - 1 ? "1px solid" : void 0,
|
|
30
|
-
borderColor: o.palette.gray[200],
|
|
31
|
-
borderTop: "1px solid",
|
|
32
|
-
cursor: "pointer",
|
|
33
|
-
display: "flex",
|
|
34
|
-
onClick: g(t),
|
|
35
|
-
padding: [0.75, 0.75, 0.75, 0.75],
|
|
36
|
-
width: "100%",
|
|
37
|
-
children: /* @__PURE__ */ d(
|
|
38
|
-
n,
|
|
39
|
-
{
|
|
40
|
-
as: "summary",
|
|
41
|
-
display: "flex",
|
|
42
|
-
flexDirection: f === "end" ? "row" : "row-reverse",
|
|
43
|
-
gap: 0.75,
|
|
44
|
-
justify: "space-between",
|
|
45
|
-
width: "100%",
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ r(
|
|
48
|
-
A,
|
|
49
|
-
{
|
|
50
|
-
color: o.palette.gray[800],
|
|
51
|
-
fontWeight: "bold",
|
|
52
|
-
size: "sm",
|
|
53
|
-
sizeSm: "sm",
|
|
54
|
-
textAlign: "start",
|
|
55
|
-
children: e.title
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ r(
|
|
59
|
-
y,
|
|
60
|
-
{
|
|
61
|
-
icon: l ? "chevron-up" : "chevron-down",
|
|
62
|
-
iconColor: o.palette.gray[400],
|
|
63
|
-
iconSize: "xs",
|
|
64
|
-
iconType: "fa-light"
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
l && /* @__PURE__ */ r(x, { item: e })
|
|
73
|
-
] }, e.title);
|
|
74
|
-
}) });
|
|
75
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { A as t } from "../../components-C7JPRIEW.mjs";
|
|
76
5
|
export {
|
|
77
|
-
|
|
6
|
+
t as Accordion
|
|
78
7
|
};
|
|
@@ -1,164 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { v as C } from "../../utils-V0EumEPM.mjs";
|
|
5
|
-
import { Container as T } from "../container/index.js";
|
|
6
|
-
import { Icon as B } from "../icon/index.js";
|
|
7
|
-
import { IconButton as S } from "../icon-button/index.js";
|
|
8
|
-
const z = (o) => {
|
|
9
|
-
switch (o) {
|
|
10
|
-
case "warning":
|
|
11
|
-
return "triangle-exclamation";
|
|
12
|
-
case "info":
|
|
13
|
-
return "circle-info";
|
|
14
|
-
case "success":
|
|
15
|
-
return "circle-check";
|
|
16
|
-
case "error":
|
|
17
|
-
default:
|
|
18
|
-
return "circle-exclamation";
|
|
19
|
-
}
|
|
20
|
-
}, { getVariant: A } = C(
|
|
21
|
-
(o) => ({
|
|
22
|
-
error: `
|
|
23
|
-
background: ${o.palette.error[50]};
|
|
24
|
-
border: 1px solid ${o.palette.error[500]};
|
|
25
|
-
color: ${o.palette.error[700]};
|
|
26
|
-
|
|
27
|
-
button {
|
|
28
|
-
color: ${o.palette.error[700]};
|
|
29
|
-
|
|
30
|
-
&:hover:not([disabled]) {
|
|
31
|
-
background-color: ${o.palette.error[200]};
|
|
32
|
-
color: ${o.palette.error[700]};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
info: `
|
|
37
|
-
background: ${o.palette.info[50]};
|
|
38
|
-
border: 1px solid ${o.palette.info[500]};
|
|
39
|
-
color: ${o.palette.info[700]};
|
|
40
|
-
|
|
41
|
-
button {
|
|
42
|
-
color: ${o.palette.info[700]};
|
|
43
|
-
|
|
44
|
-
&:hover:not([disabled]) {
|
|
45
|
-
background-color: ${o.palette.info[200]};
|
|
46
|
-
color: ${o.palette.info[700]};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`,
|
|
50
|
-
success: `
|
|
51
|
-
background: ${o.palette.success[50]};
|
|
52
|
-
border: 1px solid ${o.palette.success[500]};
|
|
53
|
-
color: ${o.palette.success[700]};
|
|
54
|
-
|
|
55
|
-
button {
|
|
56
|
-
color: ${o.palette.success[700]};
|
|
57
|
-
|
|
58
|
-
&:hover:not([disabled]) {
|
|
59
|
-
background-color: ${o.palette.success[200]};
|
|
60
|
-
color: ${o.palette.success[700]};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`,
|
|
64
|
-
warning: `
|
|
65
|
-
background: ${o.palette.warning[50]};
|
|
66
|
-
border: 1px solid ${o.palette.warning[500]};
|
|
67
|
-
color: ${o.palette.warning[700]};
|
|
68
|
-
|
|
69
|
-
button {
|
|
70
|
-
color: ${o.palette.warning[700]};
|
|
71
|
-
|
|
72
|
-
&:hover:not([disabled]) {
|
|
73
|
-
background-color: ${o.palette.warning[200]};
|
|
74
|
-
color: ${o.palette.warning[700]};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`
|
|
78
|
-
})
|
|
79
|
-
), I = p.div`
|
|
80
|
-
${({ theme: o, $variant: r }) => `
|
|
81
|
-
background: transparent;
|
|
82
|
-
align-items: center;
|
|
83
|
-
border-radius: ${o.spacing[0.25]};
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
font-family: ${o.typography.type.primary};
|
|
86
|
-
font-size: ${o.typography.text.sm};
|
|
87
|
-
font-weight: ${o.typography.weight.bold};
|
|
88
|
-
line-height: ${o.spacing[1.25]};
|
|
89
|
-
min-width: 250px;
|
|
90
|
-
width: 100%;
|
|
91
|
-
padding: ${o.spacing[0.75]};
|
|
92
|
-
position: relative;
|
|
93
|
-
gap: ${o.spacing[0.75]};
|
|
94
|
-
|
|
95
|
-
button {
|
|
96
|
-
background-color: transparent;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
${A(o, r ?? "error")}
|
|
100
|
-
`}
|
|
101
|
-
`, j = p.div`
|
|
102
|
-
padding-right: 4px;
|
|
103
|
-
width: 100%;
|
|
104
|
-
`, F = w(function({
|
|
105
|
-
autoHide: r = !1,
|
|
106
|
-
children: d,
|
|
107
|
-
closable: u = !1,
|
|
108
|
-
onTimeOut: n,
|
|
109
|
-
show: a = !0,
|
|
110
|
-
time: i = 8,
|
|
111
|
-
variant: l = "error",
|
|
112
|
-
id: g,
|
|
113
|
-
...f
|
|
114
|
-
}, $) {
|
|
115
|
-
const [b, e] = y(a), c = v(() => {
|
|
116
|
-
e(!1);
|
|
117
|
-
}, []);
|
|
118
|
-
return s(() => {
|
|
119
|
-
const x = setTimeout(() => {
|
|
120
|
-
n == null || n(!0), r && c();
|
|
121
|
-
}, i * 1e3);
|
|
122
|
-
return () => {
|
|
123
|
-
clearTimeout(x);
|
|
124
|
-
};
|
|
125
|
-
}, [r, c, i, n]), s(() => {
|
|
126
|
-
e(a);
|
|
127
|
-
}, [a, e]), /* @__PURE__ */ t(
|
|
128
|
-
T,
|
|
129
|
-
{
|
|
130
|
-
display: b ? "block" : "none",
|
|
131
|
-
ref: $,
|
|
132
|
-
role: "alert",
|
|
133
|
-
...f,
|
|
134
|
-
children: /* @__PURE__ */ k(I, { $variant: l, id: g, children: [
|
|
135
|
-
/* @__PURE__ */ t(
|
|
136
|
-
B,
|
|
137
|
-
{
|
|
138
|
-
clickable: !1,
|
|
139
|
-
icon: z(l),
|
|
140
|
-
iconSize: "xs",
|
|
141
|
-
iconType: "fa-light"
|
|
142
|
-
}
|
|
143
|
-
),
|
|
144
|
-
/* @__PURE__ */ t(j, { children: d }),
|
|
145
|
-
u ? /* @__PURE__ */ t(
|
|
146
|
-
S,
|
|
147
|
-
{
|
|
148
|
-
height: "fit-content",
|
|
149
|
-
icon: "close",
|
|
150
|
-
iconSize: "xs",
|
|
151
|
-
iconType: "fa-light",
|
|
152
|
-
onClick: c,
|
|
153
|
-
px: 0.125,
|
|
154
|
-
py: 0.125,
|
|
155
|
-
variant: "ghost"
|
|
156
|
-
}
|
|
157
|
-
) : void 0
|
|
158
|
-
] })
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { l as p } from "../../components-C7JPRIEW.mjs";
|
|
162
4
|
export {
|
|
163
|
-
|
|
5
|
+
p as Alert
|
|
164
6
|
};
|
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as p } from "../icon/index.js";
|
|
5
|
-
import { T as z } from "../../index-DwznImvK.mjs";
|
|
6
|
-
import { isObject as I } from "lodash";
|
|
7
|
-
const $ = (r, n = !0) => {
|
|
8
|
-
const o = window.open(
|
|
9
|
-
r,
|
|
10
|
-
n ? void 0 : "_self",
|
|
11
|
-
"noopener,noreferrer,"
|
|
12
|
-
);
|
|
13
|
-
I(o) && (o.opener = null);
|
|
14
|
-
}, q = j(function({
|
|
15
|
-
children: n,
|
|
16
|
-
disabled: o = !1,
|
|
17
|
-
external: l = !1,
|
|
18
|
-
href: i,
|
|
19
|
-
id: s,
|
|
20
|
-
icon: a,
|
|
21
|
-
name: m,
|
|
22
|
-
onClick: u,
|
|
23
|
-
showArrow: b = !1,
|
|
24
|
-
type: k = "button",
|
|
25
|
-
tooltip: f,
|
|
26
|
-
tooltipPlace: T = "bottom",
|
|
27
|
-
underline: h = !1,
|
|
28
|
-
value: w,
|
|
29
|
-
variant: e = "primary",
|
|
30
|
-
...x
|
|
31
|
-
}, y) {
|
|
32
|
-
const c = f !== void 0, d = `${s}-tooltip`, S = B(() => {
|
|
33
|
-
i && $(i, l);
|
|
34
|
-
}, [l, i]);
|
|
35
|
-
return /* @__PURE__ */ t(
|
|
36
|
-
z,
|
|
37
|
-
{
|
|
38
|
-
disabled: !c,
|
|
39
|
-
id: d,
|
|
40
|
-
place: T,
|
|
41
|
-
tip: f,
|
|
42
|
-
children: /* @__PURE__ */ g(
|
|
43
|
-
C,
|
|
44
|
-
{
|
|
45
|
-
$variant: e,
|
|
46
|
-
"aria-disabled": o,
|
|
47
|
-
className: h ? "underline" : void 0,
|
|
48
|
-
disabled: o,
|
|
49
|
-
id: s,
|
|
50
|
-
name: m,
|
|
51
|
-
onClick: e === "link" ? S : u,
|
|
52
|
-
ref: y,
|
|
53
|
-
type: k,
|
|
54
|
-
value: w,
|
|
55
|
-
...c ? { "data-tooltip-id": d } : {},
|
|
56
|
-
...x,
|
|
57
|
-
children: [
|
|
58
|
-
a !== void 0 && /* @__PURE__ */ t(p, { icon: a, iconSize: "xs", iconType: "fa-light" }),
|
|
59
|
-
n,
|
|
60
|
-
(b || e === "link") && /* @__PURE__ */ t(p, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { m as p } from "../../components-C7JPRIEW.mjs";
|
|
67
4
|
export {
|
|
68
|
-
|
|
5
|
+
p as Button
|
|
69
6
|
};
|
|
@@ -1,83 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { T as g } from "../../../index-DwznImvK.mjs";
|
|
5
|
-
import "../../typography/heading/index.js";
|
|
6
|
-
import "../../typography/span/index.js";
|
|
7
|
-
import { Text as t } from "../../typography/text/index.js";
|
|
8
|
-
const W = ({
|
|
9
|
-
authorEmail: d,
|
|
10
|
-
date: l,
|
|
11
|
-
description: i,
|
|
12
|
-
descriptionColor: c,
|
|
13
|
-
id: p,
|
|
14
|
-
title: a,
|
|
15
|
-
titleColor: f,
|
|
16
|
-
textAlign: e,
|
|
17
|
-
textSpacing: h = 0,
|
|
18
|
-
tooltip: m
|
|
19
|
-
}) => {
|
|
20
|
-
const o = b();
|
|
21
|
-
return /* @__PURE__ */ n(s, { width: "100%", children: [
|
|
22
|
-
typeof a == "string" ? /* @__PURE__ */ r(
|
|
23
|
-
t,
|
|
24
|
-
{
|
|
25
|
-
color: f ?? o.palette.gray[800],
|
|
26
|
-
fontWeight: "bold",
|
|
27
|
-
mb: h,
|
|
28
|
-
size: "sm",
|
|
29
|
-
textAlign: e,
|
|
30
|
-
wordBreak: "break-word",
|
|
31
|
-
children: a
|
|
32
|
-
}
|
|
33
|
-
) : a,
|
|
34
|
-
/* @__PURE__ */ n(
|
|
35
|
-
s,
|
|
36
|
-
{
|
|
37
|
-
alignItems: "start",
|
|
38
|
-
display: "flex",
|
|
39
|
-
flexDirection: "column",
|
|
40
|
-
gap: 0.25,
|
|
41
|
-
children: [
|
|
42
|
-
i && /* @__PURE__ */ r(
|
|
43
|
-
t,
|
|
44
|
-
{
|
|
45
|
-
color: c ?? o.palette.gray[800],
|
|
46
|
-
fontWeight: i === void 0 ? "bold" : "regular",
|
|
47
|
-
size: "sm",
|
|
48
|
-
textAlign: e,
|
|
49
|
-
wordBreak: "break-word",
|
|
50
|
-
children: i
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
l && /* @__PURE__ */ r(
|
|
54
|
-
t,
|
|
55
|
-
{
|
|
56
|
-
color: o.palette.gray[800],
|
|
57
|
-
fontWeight: "bold",
|
|
58
|
-
size: "sm",
|
|
59
|
-
textAlign: e,
|
|
60
|
-
wordBreak: "break-word",
|
|
61
|
-
children: `Date: ${l.split(" ")[0]}`
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
d && /* @__PURE__ */ r(
|
|
65
|
-
t,
|
|
66
|
-
{
|
|
67
|
-
color: o.palette.gray[800],
|
|
68
|
-
fontWeight: "bold",
|
|
69
|
-
size: "sm",
|
|
70
|
-
textAlign: e,
|
|
71
|
-
wordBreak: "break-word",
|
|
72
|
-
children: `$Author: ${d}`
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
m && /* @__PURE__ */ r(g, { icon: "circle-info", id: p, tip: m })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] });
|
|
80
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { C as m } from "../../../components-C7JPRIEW.mjs";
|
|
81
4
|
export {
|
|
82
|
-
|
|
5
|
+
m as CardHeader
|
|
83
6
|
};
|
|
@@ -1,93 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as r } from "../../container/index.js";
|
|
6
|
-
import { FilePreview as I } from "../../file-preview/index.js";
|
|
7
|
-
import { IconButton as T } from "../../icon-button/index.js";
|
|
8
|
-
const D = ({
|
|
9
|
-
alt: o,
|
|
10
|
-
authorEmail: d,
|
|
11
|
-
date: l,
|
|
12
|
-
description: p,
|
|
13
|
-
src: c,
|
|
14
|
-
children: i,
|
|
15
|
-
isEditing: m,
|
|
16
|
-
onClick: f,
|
|
17
|
-
title: u,
|
|
18
|
-
hideDescription: h = !1,
|
|
19
|
-
headerType: x = "image",
|
|
20
|
-
showMaximize: g = !0
|
|
21
|
-
}) => {
|
|
22
|
-
const t = H(), [b, n] = w(!1), v = s(() => {
|
|
23
|
-
n(!0);
|
|
24
|
-
}, []), y = s(() => {
|
|
25
|
-
n(!1);
|
|
26
|
-
}, []);
|
|
27
|
-
return /* @__PURE__ */ a(
|
|
28
|
-
r,
|
|
29
|
-
{
|
|
30
|
-
bgColor: "transparent",
|
|
31
|
-
border: "1px solid transparent",
|
|
32
|
-
borderColorHover: "black",
|
|
33
|
-
borderRadius: t.spacing[0.25],
|
|
34
|
-
display: "flex",
|
|
35
|
-
flexDirection: "column",
|
|
36
|
-
gap: 1,
|
|
37
|
-
onHover: v,
|
|
38
|
-
onLeave: y,
|
|
39
|
-
padding: [0.5, 0.5, 0.5, 0.5],
|
|
40
|
-
width: "100%",
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
r,
|
|
44
|
-
{
|
|
45
|
-
cursor: m ? "unset" : "pointer",
|
|
46
|
-
display: "inline-flex",
|
|
47
|
-
justify: "center",
|
|
48
|
-
onClick: f,
|
|
49
|
-
position: "relative",
|
|
50
|
-
width: "100%",
|
|
51
|
-
children: i === void 0 ? /* @__PURE__ */ a(C.Fragment, { children: [
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
I,
|
|
54
|
-
{
|
|
55
|
-
alt: o,
|
|
56
|
-
fileType: x,
|
|
57
|
-
height: "147px",
|
|
58
|
-
opacity: b ? 0.3 : 0,
|
|
59
|
-
src: c,
|
|
60
|
-
width: "100%"
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
g ? /* @__PURE__ */ e(r, { bottom: "10px", position: "absolute", right: "10px", children: /* @__PURE__ */ e(
|
|
64
|
-
T,
|
|
65
|
-
{
|
|
66
|
-
color: "white",
|
|
67
|
-
icon: "arrows-maximize",
|
|
68
|
-
iconSize: "xxs",
|
|
69
|
-
iconType: "fa-light",
|
|
70
|
-
variant: "secondary"
|
|
71
|
-
}
|
|
72
|
-
) }) : void 0
|
|
73
|
-
] }) : i
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
h ? null : /* @__PURE__ */ e(
|
|
77
|
-
j,
|
|
78
|
-
{
|
|
79
|
-
authorEmail: d,
|
|
80
|
-
date: l,
|
|
81
|
-
description: p,
|
|
82
|
-
descriptionColor: t.palette.gray[600],
|
|
83
|
-
id: `${o}-card-header`,
|
|
84
|
-
title: u
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { o as p } from "../../../components-C7JPRIEW.mjs";
|
|
91
5
|
export {
|
|
92
|
-
|
|
6
|
+
p as CardWithImage
|
|
93
7
|
};
|
|
@@ -1,106 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { CardHeader as j } from "../card-header/index.js";
|
|
5
|
-
import "../../inputs/fields/combobox/index.js";
|
|
6
|
-
import { InputDate as y } from "../../inputs/fields/date/index.js";
|
|
7
|
-
import "../../inputs/fields/date-range/index.js";
|
|
8
|
-
import "../../inputs/fields/date-time/index.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { n as a } from "../../../components-C7JPRIEW.mjs";
|
|
9
4
|
import "lodash";
|
|
10
|
-
import "
|
|
11
|
-
import "../../../index-DwznImvK.mjs";
|
|
12
|
-
import "../../container/index.js";
|
|
13
|
-
import "../../link/index.js";
|
|
14
|
-
import "../../typography/heading/index.js";
|
|
15
|
-
import "../../typography/span/index.js";
|
|
16
|
-
import "../../typography/text/index.js";
|
|
17
|
-
import { Input as h } from "../../inputs/fields/input/index.js";
|
|
18
|
-
import "../../inputs/fields/input-file/index.js";
|
|
19
|
-
import "../../inputs/fields/input-tags/index.js";
|
|
20
|
-
import { InputNumber as w } from "../../inputs/fields/number/index.js";
|
|
21
|
-
import "../../inputs/fields/number-range/index.js";
|
|
22
|
-
import "../../inputs/fields/phone/index.js";
|
|
23
|
-
import "../../inputs/fields/text-area/index.js";
|
|
24
|
-
import "../../../styles-BXFVwnWT.mjs";
|
|
25
|
-
import "../../tag/index.js";
|
|
26
|
-
import "../../icon-button/index.js";
|
|
27
|
-
const H = C.div`
|
|
28
|
-
${({
|
|
29
|
-
theme: t,
|
|
30
|
-
$align: r = "center",
|
|
31
|
-
$minWidth: p = "auto",
|
|
32
|
-
$minHeight: m = "auto"
|
|
33
|
-
}) => `
|
|
34
|
-
display: flex;
|
|
35
|
-
background-color: ${t.palette.white};
|
|
36
|
-
border-radius: ${t.spacing[0.25]};
|
|
37
|
-
border: 1px solid ${t.palette.gray[200]};
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
gap: ${t.spacing[0.5]};
|
|
41
|
-
min-width: ${p};
|
|
42
|
-
min-height: ${m};
|
|
43
|
-
padding: ${t.spacing[1]};
|
|
44
|
-
|
|
45
|
-
input {
|
|
46
|
-
color: ${t.palette.gray[800]};
|
|
47
|
-
line-height: ${t.spacing[1.5]};
|
|
48
|
-
text-align: ${r};
|
|
49
|
-
}
|
|
50
|
-
`}
|
|
51
|
-
`, Z = ({
|
|
52
|
-
description: t,
|
|
53
|
-
disabled: r,
|
|
54
|
-
id: p,
|
|
55
|
-
align: m,
|
|
56
|
-
inputType: n = "text",
|
|
57
|
-
inputNumberProps: c,
|
|
58
|
-
minHeight: e,
|
|
59
|
-
minWidth: u,
|
|
60
|
-
name: i,
|
|
61
|
-
placeholder: a,
|
|
62
|
-
tooltip: g,
|
|
63
|
-
title: s
|
|
64
|
-
}) => {
|
|
65
|
-
const $ = I(() => {
|
|
66
|
-
if (n === "text")
|
|
67
|
-
return /* @__PURE__ */ o(h, { disabled: r, name: i, placeholder: a });
|
|
68
|
-
if (n === "date")
|
|
69
|
-
return /* @__PURE__ */ o(y, { disabled: r, name: i });
|
|
70
|
-
const { decimalPlaces: d, max: f, min: l } = c ?? {};
|
|
71
|
-
return /* @__PURE__ */ o(
|
|
72
|
-
w,
|
|
73
|
-
{
|
|
74
|
-
decimalPlaces: d,
|
|
75
|
-
disabled: r,
|
|
76
|
-
max: f,
|
|
77
|
-
min: l,
|
|
78
|
-
name: i,
|
|
79
|
-
placeholder: a
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}, [r, c, n, i, a]);
|
|
83
|
-
return /* @__PURE__ */ x(
|
|
84
|
-
H,
|
|
85
|
-
{
|
|
86
|
-
$align: m,
|
|
87
|
-
$minHeight: e,
|
|
88
|
-
$minWidth: u,
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ o(
|
|
91
|
-
j,
|
|
92
|
-
{
|
|
93
|
-
description: t,
|
|
94
|
-
id: p,
|
|
95
|
-
title: s,
|
|
96
|
-
tooltip: g
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
$
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
};
|
|
5
|
+
import "styled-components";
|
|
104
6
|
export {
|
|
105
|
-
|
|
7
|
+
a as CardWithInput
|
|
106
8
|
};
|