@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,5 +1,5 @@
|
|
|
1
|
-
import { v as e } from "../../utils-
|
|
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-
|
|
1
|
+
import { v as e } from "../../utils-V0EumEPM.mjs";
|
|
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";
|
|
3
3
|
export {
|
|
4
4
|
o as BaseButtonComponent,
|
|
5
5
|
n as BaseComponent,
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Container as
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Container as r } from "../../container/index.js";
|
|
3
3
|
import "../../typography/heading/index.js";
|
|
4
4
|
import "../../typography/span/index.js";
|
|
5
|
-
import { Text as
|
|
6
|
-
const
|
|
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
|
+
);
|
|
7
20
|
export {
|
|
8
|
-
|
|
21
|
+
s as AccordionContent
|
|
9
22
|
};
|
|
@@ -1,21 +1,78 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { AccordionContent as
|
|
5
|
-
import { Container as
|
|
6
|
-
import { Icon as
|
|
2
|
+
import { forwardRef as b, useState as m, useCallback as C } from "react";
|
|
3
|
+
import { useTheme as w } from "styled-components";
|
|
4
|
+
import { AccordionContent as x } from "./accordion-content/index.js";
|
|
5
|
+
import { Container as n } from "../container/index.js";
|
|
6
|
+
import { Icon as y } from "../icon/index.js";
|
|
7
7
|
import "../typography/heading/index.js";
|
|
8
8
|
import "../typography/span/index.js";
|
|
9
|
-
import { Text as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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);
|
|
17
74
|
}) });
|
|
18
75
|
});
|
|
19
76
|
export {
|
|
20
|
-
|
|
77
|
+
H as Accordion
|
|
21
78
|
};
|
|
@@ -1,113 +1,164 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useState as y, useCallback as v, useEffect as s } from "react";
|
|
3
3
|
import { styled as p } from "styled-components";
|
|
4
|
-
import { v as
|
|
5
|
-
import { Container as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
const z = (
|
|
9
|
-
switch (
|
|
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
10
|
case "warning":
|
|
11
11
|
return "triangle-exclamation";
|
|
12
12
|
case "info":
|
|
13
13
|
return "circle-info";
|
|
14
14
|
case "success":
|
|
15
15
|
return "circle-check";
|
|
16
|
+
case "error":
|
|
16
17
|
default:
|
|
17
18
|
return "circle-exclamation";
|
|
18
19
|
}
|
|
19
|
-
}, { getVariant:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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]};
|
|
23
26
|
|
|
24
27
|
button {
|
|
25
|
-
color: ${
|
|
28
|
+
color: ${o.palette.error[700]};
|
|
26
29
|
|
|
27
30
|
&:hover:not([disabled]) {
|
|
28
|
-
background-color: ${
|
|
29
|
-
color: ${
|
|
31
|
+
background-color: ${o.palette.error[200]};
|
|
32
|
+
color: ${o.palette.error[700]};
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
`,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
`,
|
|
36
|
+
info: `
|
|
37
|
+
background: ${o.palette.info[50]};
|
|
38
|
+
border: 1px solid ${o.palette.info[500]};
|
|
39
|
+
color: ${o.palette.info[700]};
|
|
36
40
|
|
|
37
41
|
button {
|
|
38
|
-
color: ${
|
|
42
|
+
color: ${o.palette.info[700]};
|
|
39
43
|
|
|
40
44
|
&:hover:not([disabled]) {
|
|
41
|
-
background-color: ${
|
|
42
|
-
color: ${
|
|
45
|
+
background-color: ${o.palette.info[200]};
|
|
46
|
+
color: ${o.palette.info[700]};
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
|
-
`,
|
|
46
|
-
|
|
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]};
|
|
49
54
|
|
|
50
55
|
button {
|
|
51
|
-
color: ${
|
|
56
|
+
color: ${o.palette.success[700]};
|
|
52
57
|
|
|
53
58
|
&:hover:not([disabled]) {
|
|
54
|
-
background-color: ${
|
|
55
|
-
color: ${
|
|
59
|
+
background-color: ${o.palette.success[200]};
|
|
60
|
+
color: ${o.palette.success[700]};
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
|
-
`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
`,
|
|
64
|
+
warning: `
|
|
65
|
+
background: ${o.palette.warning[50]};
|
|
66
|
+
border: 1px solid ${o.palette.warning[500]};
|
|
67
|
+
color: ${o.palette.warning[700]};
|
|
62
68
|
|
|
63
69
|
button {
|
|
64
|
-
color: ${
|
|
70
|
+
color: ${o.palette.warning[700]};
|
|
65
71
|
|
|
66
72
|
&:hover:not([disabled]) {
|
|
67
|
-
background-color: ${
|
|
68
|
-
color: ${
|
|
73
|
+
background-color: ${o.palette.warning[200]};
|
|
74
|
+
color: ${o.palette.warning[700]};
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
|
-
`
|
|
72
|
-
|
|
77
|
+
`
|
|
78
|
+
})
|
|
79
|
+
), I = p.div`
|
|
80
|
+
${({ theme: o, $variant: r }) => `
|
|
73
81
|
background: transparent;
|
|
74
82
|
align-items: center;
|
|
75
|
-
border-radius: ${
|
|
83
|
+
border-radius: ${o.spacing[0.25]};
|
|
76
84
|
display: inline-flex;
|
|
77
|
-
font-family: ${
|
|
78
|
-
font-size: ${
|
|
79
|
-
font-weight: ${
|
|
80
|
-
line-height: ${
|
|
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]};
|
|
81
89
|
min-width: 250px;
|
|
82
90
|
width: 100%;
|
|
83
|
-
padding: ${
|
|
91
|
+
padding: ${o.spacing[0.75]};
|
|
84
92
|
position: relative;
|
|
85
|
-
gap: ${
|
|
93
|
+
gap: ${o.spacing[0.75]};
|
|
86
94
|
|
|
87
95
|
button {
|
|
88
96
|
background-color: transparent;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
|
-
${
|
|
99
|
+
${A(o, r ?? "error")}
|
|
92
100
|
`}
|
|
93
101
|
`, j = p.div`
|
|
94
102
|
padding-right: 4px;
|
|
95
103
|
width: 100%;
|
|
96
|
-
`,
|
|
97
|
-
|
|
98
|
-
|
|
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);
|
|
99
117
|
}, []);
|
|
100
118
|
return s(() => {
|
|
101
|
-
const
|
|
102
|
-
n == null || n(!0),
|
|
103
|
-
},
|
|
119
|
+
const x = setTimeout(() => {
|
|
120
|
+
n == null || n(!0), r && c();
|
|
121
|
+
}, i * 1e3);
|
|
104
122
|
return () => {
|
|
105
|
-
clearTimeout(
|
|
123
|
+
clearTimeout(x);
|
|
106
124
|
};
|
|
107
|
-
}, [
|
|
108
|
-
a
|
|
109
|
-
}, [
|
|
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
|
+
);
|
|
110
161
|
});
|
|
111
162
|
export {
|
|
112
|
-
|
|
163
|
+
F as Alert
|
|
113
164
|
};
|
|
@@ -1,17 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { S as
|
|
1
|
+
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useCallback as B } from "react";
|
|
3
|
+
import { S as C } from "../../styles-B2N0JLw1.mjs";
|
|
4
4
|
import { Icon as p } from "../icon/index.js";
|
|
5
|
-
import { T as
|
|
6
|
-
import { isObject as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
);
|
|
15
66
|
});
|
|
16
67
|
export {
|
|
17
68
|
q as Button
|
|
@@ -1,14 +1,83 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { Container as
|
|
4
|
-
import { T as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as b } from "styled-components";
|
|
3
|
+
import { Container as s } from "../../container/index.js";
|
|
4
|
+
import { T as g } from "../../../index-DwznImvK.mjs";
|
|
5
5
|
import "../../typography/heading/index.js";
|
|
6
6
|
import "../../typography/span/index.js";
|
|
7
|
-
import { Text as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
] });
|
|
11
80
|
};
|
|
12
81
|
export {
|
|
13
|
-
|
|
82
|
+
W as CardHeader
|
|
14
83
|
};
|
|
@@ -1,18 +1,93 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import C, { useState as w, useCallback as s } from "react";
|
|
3
|
+
import { useTheme as H } from "styled-components";
|
|
4
4
|
import { CardHeader as j } from "../card-header/index.js";
|
|
5
|
-
import { Container as
|
|
6
|
-
import { FilePreview as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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);
|
|
13
26
|
}, []);
|
|
14
|
-
return
|
|
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
|
+
);
|
|
15
90
|
};
|
|
16
91
|
export {
|
|
17
|
-
|
|
92
|
+
D as CardWithImage
|
|
18
93
|
};
|