@fluidattacks/design 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +22 -1
- package/dist/components/accordion/index.js +78 -1
- package/dist/components/alert/index.js +162 -4
- package/dist/components/button/index.js +69 -1
- package/dist/components/card/card-header/index.js +83 -1
- package/dist/components/card/card-with-image/index.js +93 -1
- package/dist/components/card/card-with-input/index.js +106 -3
- package/dist/components/card/card-with-selector/index.js +71 -1
- package/dist/components/card/card-with-switch/index.js +50 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +62 -10
- package/dist/components/checkbox/index.js +118 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +72 -1
- package/dist/components/code-snippet/location-code/index.js +171 -1
- package/dist/components/colors/index.js +224 -1
- package/dist/components/confirm-dialog/index.js +46 -1
- package/dist/components/container/index.js +51 -3
- package/dist/components/content-card/category-tag/index.js +42 -1
- package/dist/components/content-card/event-date/index.js +61 -1
- package/dist/components/content-card/index.js +168 -3
- package/dist/components/content-card-carousel/index.js +95 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +25 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +58 -8
- package/dist/components/file-preview/index.js +31 -3
- package/dist/components/form/index.js +63 -3
- package/dist/components/grid-container/index.js +46 -5
- package/dist/components/group-selector/index.js +135 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +102 -4
- package/dist/components/icon-button/index.js +76 -3
- package/dist/components/indicator-card/index.js +74 -1
- package/dist/components/info-sidebar/index.js +116 -1
- package/dist/components/inputs/fields/combobox/index.js +146 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
- package/dist/components/inputs/fields/date/calendar/index.js +30 -1
- package/dist/components/inputs/fields/date/index.js +68 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
- package/dist/components/inputs/fields/date-range/index.js +108 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
- package/dist/components/inputs/fields/date-time/index.js +69 -1
- package/dist/components/inputs/fields/editable/index.js +28 -1
- package/dist/components/inputs/fields/input/index.js +77 -1
- package/dist/components/inputs/fields/input-file/index.js +117 -4
- package/dist/components/inputs/fields/input-tags/index.js +63 -2
- package/dist/components/inputs/fields/number/index.js +57 -1
- package/dist/components/inputs/fields/number-range/index.js +49 -1
- package/dist/components/inputs/fields/phone/index.js +574 -11
- package/dist/components/inputs/fields/text-area/index.js +81 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +38 -1
- package/dist/components/inputs/outline-container/index.js +104 -1
- package/dist/components/inputs/utils/action-button/index.js +31 -1
- package/dist/components/inputs/utils/calendar-button/index.js +37 -1
- package/dist/components/inputs/utils/date-selector/index.js +62 -1
- package/dist/components/inputs/utils/date-time-field/index.js +133 -1
- package/dist/components/inputs/utils/dialog/index.js +14 -1
- package/dist/components/inputs/utils/number-field/index.js +86 -1
- package/dist/components/inputs/utils/popover/index.js +44 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +118 -1
- package/dist/components/language-selector/index.js +37 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +106 -7
- package/dist/components/list-item/index.js +67 -1
- package/dist/components/little-flag/index.js +32 -3
- package/dist/components/loading/index.js +55 -14
- package/dist/components/logo/index.js +13 -1
- package/dist/components/logo-carousel/index.js +45 -4
- package/dist/components/lottie/index.js +20 -3
- package/dist/components/menu/index.js +67 -1
- package/dist/components/message-banner/index.js +87 -4
- package/dist/components/modal/index.js +65 -1
- package/dist/components/modal/modal-confirm/index.js +51 -1
- package/dist/components/modal/modal-footer/index.js +25 -1
- package/dist/components/modal/modal-header/index.js +51 -1
- package/dist/components/notification/index.js +113 -5
- package/dist/components/notification-sign/index.js +43 -6
- package/dist/components/number-input/index.js +62 -7
- package/dist/components/oauth-selector/index.js +100 -1
- package/dist/components/oauth-selector/option-container/index.js +76 -1
- package/dist/components/plan-card/index.js +155 -5
- package/dist/components/plan-card/recommended-tag/index.js +31 -1
- package/dist/components/pop-up/description/index.js +51 -1
- package/dist/components/pop-up/index.js +152 -1
- package/dist/components/premium-feature/index.js +85 -3
- package/dist/components/priority-score/index.js +29 -1
- package/dist/components/progress/index.js +36 -3
- package/dist/components/progress-bar/index.js +153 -5
- package/dist/components/radio-button/index.js +125 -3
- package/dist/components/scroll-button/index.js +38 -2
- package/dist/components/search/index.js +105 -7
- package/dist/components/search-bar/index.js +219 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +74 -1
- package/dist/components/severity-overview/badge/index.js +69 -1
- package/dist/components/severity-overview/index.js +17 -1
- package/dist/components/show-on-hover/index.js +31 -3
- package/dist/components/slide-out-menu/index.js +3456 -3
- package/dist/components/slide-out-menu/menu-item/index.js +67 -1
- package/dist/components/slider/index.js +124 -7
- package/dist/components/slider/thumb/index.js +17 -1
- package/dist/components/step-lapse/index.js +153 -9
- package/dist/components/table-button/index.js +97 -3
- package/dist/components/tabs/fixed-tabs/index.js +29 -1
- package/dist/components/tabs/index.js +57 -1
- package/dist/components/tabs/tab/index.js +39 -1
- package/dist/components/tag/index.js +184 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +17 -1
- package/dist/components/toggle/index.js +85 -14
- package/dist/components/toggle-buttons/index.js +103 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +4549 -4
- package/dist/components/typography/heading/index.js +47 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +41 -1
- package/dist/components/typography/text/index.js +47 -1
- package/dist/components/web-form/index.js +68 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +206 -1
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/styles-BlHspTrz.mjs +144 -0
- package/dist/styles-CROOwXEH.mjs +76 -0
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
- package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
- package/dist/index-BH27NQKA.mjs +0 -2311
- package/dist/index-Bcw2vW_n.mjs +0 -75
- package/dist/index-C0_LPuYU.mjs +0 -106
- package/dist/index-C8zdgAVH.mjs +0 -82
- package/dist/index-CA_9DXWd.js +0 -5
- package/dist/index-CmylnDrF.js +0 -14
- package/dist/index-DUMgwAbO.js +0 -26
- package/dist/index-DpQYiwGu.js +0 -5
- package/dist/index-Dy8ZUIYs.js +0 -5
- package/dist/index-JPf5Yzg6.js +0 -17
- package/dist/index-OBZtKZuT.mjs +0 -1021
- package/dist/index-SsXlDjK4.mjs +0 -122
- package/dist/index-TKLFHcRp.js +0 -18
- package/dist/index-TnyKqJHo.mjs +0 -61
- package/dist/index-Yr95Cb7Z.mjs +0 -54
- package/dist/index-h9-U5wxq.mjs +0 -209
- package/dist/index-qCiUU4sZ.js +0 -9
- package/dist/index-qe0nJwzl.js +0 -15
- package/dist/styles--Elze-LV.js +0 -3
- package/dist/styles-3pR4Xdvy.js +0 -33
- package/dist/styles-59h91S9m.mjs +0 -65
- package/dist/styles-BCwLWpC3.mjs +0 -126
- package/dist/styles-BJ7-0I5X.mjs +0 -74
- package/dist/styles-BKObp9bh.mjs +0 -76
- package/dist/styles-BWVdbvFu.js +0 -5
- package/dist/styles-Bl-CstrT.js +0 -5
- package/dist/styles-Bn42XCW5.js +0 -7
- package/dist/styles-C2CoGJl7.js +0 -33
- package/dist/styles-CNzziAXG.js +0 -5
- package/dist/styles-CdD9waPD.js +0 -29
- package/dist/styles-CnKTwnFk.mjs +0 -110
- package/dist/styles-D4R-eerv.mjs +0 -77
- package/dist/styles-DNIIhyRC.mjs +0 -144
- package/dist/styles-DV8yOaqV.mjs +0 -131
- package/dist/styles-DYoftbd3.js +0 -42
- package/dist/styles-DlmKLhPh.js +0 -7
- package/dist/styles-be8gOdgy.mjs +0 -106
- package/dist/use-carousel-64dKFW4E.js +0 -1
- package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
- package/dist/use-click-outside-BqkLISED.js +0 -1
- package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
- package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
- package/dist/use-cloudinary-image-YMMafagv.js +0 -1
- package/dist/use-modal-CNbLSSQb.mjs +0 -14
- package/dist/use-modal-_bYY6M_n.js +0 -1
- package/dist/use-search-75ip5xR-.mjs +0 -12
- package/dist/use-search-DeL4UDMh.js +0 -1
- package/dist/utils-C2whpEd3.js +0 -1
- package/dist/utils-Da0qL35u.mjs +0 -4
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
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
|
+
export {
|
|
4
|
+
o as BaseButtonComponent,
|
|
5
|
+
n as BaseComponent,
|
|
6
|
+
i as BaseSpanComponent,
|
|
7
|
+
r as BaseTextComponent,
|
|
8
|
+
p as getStyledConfig,
|
|
9
|
+
d as hiddenProps,
|
|
10
|
+
B as setBorder,
|
|
11
|
+
m as setDisplay,
|
|
12
|
+
g as setInteraction,
|
|
13
|
+
C as setMargin,
|
|
14
|
+
f as setPadding,
|
|
15
|
+
x as setPosition,
|
|
16
|
+
l as setText,
|
|
17
|
+
e as variantBuilder
|
|
18
|
+
};
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Container as r } from "../../container/index.js";
|
|
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
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
s as AccordionContent
|
|
22
|
+
};
|
|
@@ -1 +1,78 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
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
|
+
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
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
H as Accordion
|
|
78
|
+
};
|
|
@@ -1,6 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { styled as p } from "styled-components";
|
|
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`
|
|
4
102
|
padding-right: 4px;
|
|
5
103
|
width: 100%;
|
|
6
|
-
`,
|
|
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
|
+
});
|
|
162
|
+
export {
|
|
163
|
+
F as Alert
|
|
164
|
+
};
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
|
|
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
|
+
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
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
q as Button
|
|
69
|
+
};
|
|
@@ -1 +1,83 @@
|
|
|
1
|
-
|
|
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
|
+
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
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
W as CardHeader
|
|
83
|
+
};
|
|
@@ -1 +1,93 @@
|
|
|
1
|
-
|
|
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
|
+
import { CardHeader as j } from "../card-header/index.js";
|
|
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
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
D as CardWithImage
|
|
93
|
+
};
|
|
@@ -1,3 +1,106 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as I } from "react";
|
|
3
|
+
import { styled as C } from "styled-components";
|
|
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";
|
|
9
|
+
import "lodash";
|
|
10
|
+
import "../../icon/index.js";
|
|
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
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
Z as CardWithInput
|
|
106
|
+
};
|