@fluidattacks/design 3.1.11 → 3.1.12
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 +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +1 -1
- 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-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-CQvBF-wY.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-C3cZmKVJ.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,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Container as t } from "../../container/index.js";
|
|
3
|
+
import "../../typography/heading/index.js";
|
|
4
|
+
import "../../typography/span/index.js";
|
|
5
|
+
import { Text as r } from "../../typography/text/index.js";
|
|
6
|
+
const p = ({ item: i }) => o(t, { display: "block", id: `panel-${i.title}`, padding: [0.75, 0.75, 0.75, 0.75], children: [i.description ? e(r, { mb: i.extraElement ? 0.5 : void 0, size: "sm", children: i.description }) : void 0, i.extraElement ? e(t, { children: i.extraElement }) : void 0] });
|
|
7
|
+
export {
|
|
8
|
+
p as AccordionContent
|
|
9
|
+
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useState as c, useCallback as u } from "react";
|
|
3
|
+
import { useTheme as y } from "styled-components";
|
|
4
|
+
import { AccordionContent as C } from "./accordion-content/index.js";
|
|
5
|
+
import { Container as i } from "../container/index.js";
|
|
6
|
+
import { Icon as w } from "../icon/index.js";
|
|
7
|
+
import "../typography/heading/index.js";
|
|
8
|
+
import "../typography/span/index.js";
|
|
9
|
+
import { Text as v } from "../typography/text/index.js";
|
|
10
|
+
const I = x(function({ aligned: m = "end", items: l, bgColor: s }, f) {
|
|
11
|
+
const e = y(), [p, g] = c(!1), [a, h] = c(-1), b = u((o) => () => {
|
|
12
|
+
h(o), g(o !== a || ((t) => !t));
|
|
13
|
+
}, [a]);
|
|
14
|
+
return r(i, { ref: f, children: l.map((o, t) => {
|
|
15
|
+
const n = t === a && p;
|
|
16
|
+
return d(i, { bgColor: s ?? e.palette.white, children: [r(i, { "aria-controls": `panel-${o.title}`, "aria-expanded": p, "aria-label": o.title, as: "button", bgColor: s ?? e.palette.white, bgColorHover: e.palette.gray[100], borderBottom: n || t === l.length - 1 ? "1px solid" : void 0, borderColor: e.palette.gray[200], borderTop: "1px solid", cursor: "pointer", display: "flex", onClick: b(t), padding: [0.75, 0.75, 0.75, 0.75], width: "100%", children: d(i, { as: "summary", display: "flex", flexDirection: m === "end" ? "row" : "row-reverse", gap: 0.75, justify: "space-between", width: "100%", children: [r(v, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", sizeSm: "sm", textAlign: "start", children: o.title }), r(w, { icon: n ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[400], iconSize: "xs", iconType: "fa-light" })] }) }), n && r(C, { item: o })] }, o.title);
|
|
17
|
+
}) });
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
I as Accordion
|
|
21
|
+
};
|
|
@@ -1,6 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useState as k, useCallback as w, useEffect as s } from "react";
|
|
3
|
+
import { styled as p } from "styled-components";
|
|
4
|
+
import { v as x } from "../../utils-CQvBF-wY.mjs";
|
|
5
|
+
import { Container as y } from "../container/index.js";
|
|
6
|
+
import { Icon as v } from "../icon/index.js";
|
|
7
|
+
import { IconButton as T } from "../icon-button/index.js";
|
|
8
|
+
const z = (e) => {
|
|
9
|
+
switch (e) {
|
|
10
|
+
case "warning":
|
|
11
|
+
return "triangle-exclamation";
|
|
12
|
+
case "info":
|
|
13
|
+
return "circle-info";
|
|
14
|
+
case "success":
|
|
15
|
+
return "circle-check";
|
|
16
|
+
default:
|
|
17
|
+
return "circle-exclamation";
|
|
18
|
+
}
|
|
19
|
+
}, { getVariant: C } = x((e) => ({ error: `
|
|
20
|
+
background: ${e.palette.error[50]};
|
|
21
|
+
border: 1px solid ${e.palette.error[500]};
|
|
22
|
+
color: ${e.palette.error[700]};
|
|
23
|
+
|
|
24
|
+
button {
|
|
25
|
+
color: ${e.palette.error[700]};
|
|
26
|
+
|
|
27
|
+
&:hover:not([disabled]) {
|
|
28
|
+
background-color: ${e.palette.error[200]};
|
|
29
|
+
color: ${e.palette.error[700]};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`, info: `
|
|
33
|
+
background: ${e.palette.info[50]};
|
|
34
|
+
border: 1px solid ${e.palette.info[500]};
|
|
35
|
+
color: ${e.palette.info[700]};
|
|
36
|
+
|
|
37
|
+
button {
|
|
38
|
+
color: ${e.palette.info[700]};
|
|
39
|
+
|
|
40
|
+
&:hover:not([disabled]) {
|
|
41
|
+
background-color: ${e.palette.info[200]};
|
|
42
|
+
color: ${e.palette.info[700]};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`, success: `
|
|
46
|
+
background: ${e.palette.success[50]};
|
|
47
|
+
border: 1px solid ${e.palette.success[500]};
|
|
48
|
+
color: ${e.palette.success[700]};
|
|
49
|
+
|
|
50
|
+
button {
|
|
51
|
+
color: ${e.palette.success[700]};
|
|
52
|
+
|
|
53
|
+
&:hover:not([disabled]) {
|
|
54
|
+
background-color: ${e.palette.success[200]};
|
|
55
|
+
color: ${e.palette.success[700]};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`, warning: `
|
|
59
|
+
background: ${e.palette.warning[50]};
|
|
60
|
+
border: 1px solid ${e.palette.warning[500]};
|
|
61
|
+
color: ${e.palette.warning[700]};
|
|
62
|
+
|
|
63
|
+
button {
|
|
64
|
+
color: ${e.palette.warning[700]};
|
|
65
|
+
|
|
66
|
+
&:hover:not([disabled]) {
|
|
67
|
+
background-color: ${e.palette.warning[200]};
|
|
68
|
+
color: ${e.palette.warning[700]};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
` })), S = p.div`
|
|
72
|
+
${({ theme: e, $variant: t }) => `
|
|
73
|
+
background: transparent;
|
|
74
|
+
align-items: center;
|
|
75
|
+
border-radius: ${e.spacing[0.25]};
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
font-family: ${e.typography.type.primary};
|
|
78
|
+
font-size: ${e.typography.text.sm};
|
|
79
|
+
font-weight: ${e.typography.weight.bold};
|
|
80
|
+
line-height: ${e.spacing[1.25]};
|
|
81
|
+
min-width: 250px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
padding: ${e.spacing[0.75]};
|
|
84
|
+
position: relative;
|
|
85
|
+
gap: ${e.spacing[0.75]};
|
|
86
|
+
|
|
87
|
+
button {
|
|
88
|
+
background-color: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
${C(e, t ?? "error")}
|
|
92
|
+
`}
|
|
93
|
+
`, j = p.div`
|
|
4
94
|
padding-right: 4px;
|
|
5
95
|
width: 100%;
|
|
6
|
-
`,
|
|
96
|
+
`, V = m(function({ autoHide: e = !1, children: t, closable: d = !1, onTimeOut: n, show: r = !0, time: c = 8, variant: l = "error", id: u, ...$ }, g) {
|
|
97
|
+
const [f, a] = k(r), i = w(() => {
|
|
98
|
+
a(!1);
|
|
99
|
+
}, []);
|
|
100
|
+
return s(() => {
|
|
101
|
+
const b = setTimeout(() => {
|
|
102
|
+
n == null || n(!0), e && i();
|
|
103
|
+
}, 1e3 * c);
|
|
104
|
+
return () => {
|
|
105
|
+
clearTimeout(b);
|
|
106
|
+
};
|
|
107
|
+
}, [e, i, c, n]), s(() => {
|
|
108
|
+
a(r);
|
|
109
|
+
}, [r, a]), o(y, { display: f ? "block" : "none", ref: g, role: "alert", ...$, children: h(S, { $variant: l, id: u, children: [o(v, { clickable: !1, icon: z(l), iconSize: "xs", iconType: "fa-light" }), o(j, { children: t }), d ? o(T, { height: "fit-content", icon: "close", iconSize: "xs", iconType: "fa-light", onClick: i, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }) });
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
V as Alert
|
|
113
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useCallback as $ } from "react";
|
|
3
|
+
import { S as j } from "../../styles-EIbGRPlk.mjs";
|
|
4
|
+
import { Icon as p } from "../icon/index.js";
|
|
5
|
+
import { T as A } from "../../index-D-lcuEHY.mjs";
|
|
6
|
+
import { isObject as B } from "lodash";
|
|
7
|
+
const q = C(function({ children: m, disabled: r = !1, external: n = !1, href: o, id: a, icon: t, name: f, onClick: u, showArrow: b = !1, type: h = "button", tooltip: l, tooltipPlace: v = "bottom", underline: w = !1, value: k, variant: i = "primary", ...x }, y) {
|
|
8
|
+
const s = l !== void 0, d = `${a}-tooltip`, S = $(() => {
|
|
9
|
+
o && ((T, g = !0) => {
|
|
10
|
+
const c = window.open(T, g ? void 0 : "_self", "noopener,noreferrer,");
|
|
11
|
+
B(c) && (c.opener = null);
|
|
12
|
+
})(o, n);
|
|
13
|
+
}, [n, o]);
|
|
14
|
+
return e(A, { disabled: !s, id: d, place: v, tip: l, children: z(j, { $variant: i, "aria-disabled": r, className: w ? "underline" : void 0, disabled: r, id: a, name: f, onClick: i === "link" ? S : u, ref: y, type: h, value: k, ...s ? { "data-tooltip-id": d } : {}, ...x, children: [t !== void 0 && e(p, { icon: t, iconSize: "xs", iconType: "fa-light" }), m, (b || i === "link") && e(p, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })] }) });
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
q as Button
|
|
18
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as h } from "styled-components";
|
|
3
|
+
import { Container as m } from "../../container/index.js";
|
|
4
|
+
import { T as x } from "../../../index-D-lcuEHY.mjs";
|
|
5
|
+
import "../../typography/heading/index.js";
|
|
6
|
+
import "../../typography/span/index.js";
|
|
7
|
+
import { Text as o } from "../../typography/text/index.js";
|
|
8
|
+
const B = ({ authorEmail: a, date: n, description: i, descriptionColor: p, id: c, title: l, titleColor: g, textAlign: r, textSpacing: f = 0, tooltip: s }) => {
|
|
9
|
+
const e = h();
|
|
10
|
+
return d(m, { width: "100%", children: [typeof l == "string" ? t(o, { color: g ?? e.palette.gray[800], fontWeight: "bold", mb: f, size: "sm", textAlign: r, wordBreak: "break-word", children: l }) : l, d(m, { alignItems: "start", display: "flex", flexDirection: "column", gap: 0.25, children: [i && t(o, { color: p ?? e.palette.gray[800], fontWeight: i === void 0 ? "bold" : "regular", size: "sm", textAlign: r, wordBreak: "break-word", children: i }), n && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `Date: ${n.split(" ")[0]}` }), a && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `$Author: ${a}` }), s && t(x, { icon: "circle-info", id: c, tip: s })] })] });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
B as CardHeader
|
|
14
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import v, { useState as w, useCallback as s } from "react";
|
|
3
|
+
import { useTheme as k } from "styled-components";
|
|
4
|
+
import { CardHeader as j } from "../card-header/index.js";
|
|
5
|
+
import { Container as e } from "../../container/index.js";
|
|
6
|
+
import { FilePreview as z } from "../../file-preview/index.js";
|
|
7
|
+
import { IconButton as E } from "../../icon-button/index.js";
|
|
8
|
+
const L = ({ alt: r, authorEmail: l, date: d, description: c, src: p, children: o, isEditing: m, onClick: h, title: u, hideDescription: x = !1, headerType: f = "image", showMaximize: g = !0 }) => {
|
|
9
|
+
const t = k(), [C, a] = w(!1), y = s(() => {
|
|
10
|
+
a(!0);
|
|
11
|
+
}, []), b = s(() => {
|
|
12
|
+
a(!1);
|
|
13
|
+
}, []);
|
|
14
|
+
return n(e, { bgColor: "transparent", border: "1px solid transparent", borderColorHover: "black", borderRadius: t.spacing[0.25], display: "flex", flexDirection: "column", gap: 1, onHover: y, onLeave: b, padding: [0.5, 0.5, 0.5, 0.5], width: "100%", children: [i(e, { cursor: m ? "unset" : "pointer", display: "inline-flex", justify: "center", onClick: h, position: "relative", width: "100%", children: o === void 0 ? n(v.Fragment, { children: [i(z, { alt: r, fileType: f, height: "147px", opacity: C ? 0.3 : 0, src: p, width: "100%" }), g ? i(e, { bottom: "10px", position: "absolute", right: "10px", children: i(E, { color: "white", icon: "arrows-maximize", iconSize: "xxs", iconType: "fa-light", variant: "secondary" }) }) : void 0] }) : o }), x ? null : i(j, { authorEmail: l, date: d, description: c, descriptionColor: t.palette.gray[600], id: `${r}-card-header`, title: u })] });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
L as CardWithImage
|
|
18
|
+
};
|
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as r, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as x } from "react";
|
|
3
|
+
import { styled as f } from "styled-components";
|
|
4
|
+
import { CardHeader as y } from "../card-header/index.js";
|
|
5
|
+
import "../../inputs/fields/combobox/index.js";
|
|
6
|
+
import { InputDate as H } 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-D-lcuEHY.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 I } 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-lSVV9kjn.mjs";
|
|
25
|
+
import "../../tag/index.js";
|
|
26
|
+
import "../../icon-button/index.js";
|
|
27
|
+
const j = f.div`
|
|
28
|
+
${({ theme: t, $align: i = "center", $minWidth: n = "auto", $minHeight: o = "auto" }) => `
|
|
29
|
+
display: flex;
|
|
30
|
+
background-color: ${t.palette.white};
|
|
31
|
+
border-radius: ${t.spacing[0.25]};
|
|
32
|
+
border: 1px solid ${t.palette.gray[200]};
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
gap: ${t.spacing[0.5]};
|
|
36
|
+
min-width: ${n};
|
|
37
|
+
min-height: ${o};
|
|
38
|
+
padding: ${t.spacing[1]};
|
|
39
|
+
|
|
40
|
+
input {
|
|
41
|
+
color: ${t.palette.gray[800]};
|
|
42
|
+
line-height: ${t.spacing[1.5]};
|
|
43
|
+
text-align: ${i};
|
|
44
|
+
}
|
|
45
|
+
`}
|
|
46
|
+
`, Y = ({ description: t, disabled: i, id: n, align: o, inputType: p = "text", inputNumberProps: a, minHeight: d, minWidth: l, name: e, placeholder: m, tooltip: s, title: c }) => {
|
|
47
|
+
const u = x(() => {
|
|
48
|
+
if (p === "text") return r(I, { disabled: i, name: e, placeholder: m });
|
|
49
|
+
if (p === "date") return r(H, { disabled: i, name: e });
|
|
50
|
+
const { decimalPlaces: g, max: $, min: h } = a ?? {};
|
|
51
|
+
return r(W, { decimalPlaces: g, disabled: i, max: $, min: h, name: e, placeholder: m });
|
|
52
|
+
}, [i, a, p, e, m]);
|
|
53
|
+
return b(j, { $align: o, $minHeight: d, $minWidth: l, children: [r(y, { description: t, id: n, title: c, tooltip: s }), u] });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
Y as CardWithInput
|
|
57
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { M as c } from "../../../index-BwFnfaRh.mjs";
|
|
4
|
+
import { Container as t } from "../../container/index.js";
|
|
5
|
+
import { Icon as f } from "../../icon/index.js";
|
|
6
|
+
import { RadioButton as h } from "../../radio-button/index.js";
|
|
7
|
+
import { Heading as g } from "../../typography/heading/index.js";
|
|
8
|
+
import "../../typography/span/index.js";
|
|
9
|
+
import "../../typography/text/index.js";
|
|
10
|
+
const j = ({ alt: d, imageId: o, icon: r, selectorProps: a, onClick: l, title: s, width: p = "fit-content" }) => {
|
|
11
|
+
const e = m();
|
|
12
|
+
return n(t, { alignItems: "center", border: `1px solid ${e.palette.gray[200]}`, borderColorHover: e.palette.gray[600], borderRadius: e.spacing[0.25], display: "inline-flex", padding: [1, 1, 1, 1], shadowHover: "md", width: p, children: [i(t, { alignSelf: "start", display: "flex", width: "fit-content", children: i(h, { name: a.name, onClick: l, value: a.value }) }), n(t, { alignItems: "center", display: "flex", gap: 0.5, justify: "space-between", ml: 1, mr: 1, width: "100%", children: [o === void 0 ? void 0 : i(c, { alt: d ?? "card image", height: "32px", publicId: o, width: "32px" }), r === void 0 ? void 0 : i(f, { icon: r, iconSize: "sm", iconType: "fa-light" }), i(g, { fontWeight: "bold", lineSpacing: 1.75, size: "xs", children: s })] })] });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
j as CardWithSelector
|
|
16
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { CardHeader as g } from "../card-header/index.js";
|
|
4
|
+
import { Container as r } from "../../container/index.js";
|
|
5
|
+
import { Toggle as p } from "../../toggle/index.js";
|
|
6
|
+
const y = ({ id: o, title: a, toggles: n, minWidth: s = "auto", height: d = "auto" }) => {
|
|
7
|
+
const i = m();
|
|
8
|
+
return l(r, { alignItems: "center", bgColor: i.palette.white, border: `1px solid ${i.palette.gray[200]}`, borderRadius: i.spacing[0.25], display: "flex", flexDirection: "column", gap: 0.5, height: d, justify: "center", minHeight: "100px", minWidth: s, padding: [1.25, 1.25, 1.25, 1.25], children: [t(g, { id: o, title: a }), t(r, { display: "flex", flexDirection: "column", gap: 0.5, minHeight: "40px", width: "100%", children: n.map((e) => t(p, { ...e }, `$card-toggle-${e.name}`)) })] });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
y as CardWithSwitch
|
|
12
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { CardHeader as o } from "./card-header/index.js";
|
|
2
|
+
import { CardWithImage as a } from "./card-with-image/index.js";
|
|
3
|
+
import { CardWithInput as m } from "./card-with-input/index.js";
|
|
4
|
+
import { CardWithSelector as f } from "./card-with-selector/index.js";
|
|
5
|
+
import { CardWithSwitch as i } from "./card-with-switch/index.js";
|
|
6
|
+
export {
|
|
7
|
+
o as CardHeader,
|
|
8
|
+
a as CardWithImage,
|
|
9
|
+
m as CardWithInput,
|
|
10
|
+
f as CardWithSelector,
|
|
11
|
+
i as CardWithSwitch
|
|
12
|
+
};
|
|
@@ -1,24 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as m } from "react";
|
|
3
|
+
import { styled as r } from "styled-components";
|
|
4
|
+
import { u } from "../../use-carousel-CvRxi2FI.mjs";
|
|
5
|
+
import "lodash";
|
|
6
|
+
const h = r.div`
|
|
2
7
|
position: relative;
|
|
3
8
|
margin: auto;
|
|
4
9
|
overflow: hidden;
|
|
5
|
-
`,
|
|
10
|
+
`, $ = r.div`
|
|
6
11
|
display: flex;
|
|
7
12
|
transition: transform 0.5s ease-in-out;
|
|
8
13
|
transform: translateX(
|
|
9
|
-
${({$currentIndex:e})=>100
|
|
14
|
+
${({ $currentIndex: e }) => 100 * -e}%
|
|
10
15
|
);
|
|
11
|
-
`,
|
|
16
|
+
`, g = r.div`
|
|
12
17
|
align-items: center;
|
|
13
18
|
display: flex;
|
|
14
19
|
justify-content: center;
|
|
15
20
|
min-width: 100%;
|
|
16
|
-
`,
|
|
17
|
-
${({theme:e
|
|
18
|
-
|
|
21
|
+
`, f = r.button`
|
|
22
|
+
${({ theme: e, $isActive: s }) => `
|
|
23
|
+
background-color: ${s ? e.palette.primary[400] : e.palette.white};
|
|
24
|
+
border: none;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
height: ${e.spacing[0.75]};
|
|
28
|
+
width: ${e.spacing[0.75]};
|
|
29
|
+
`}
|
|
30
|
+
`, v = r.div`
|
|
19
31
|
align-items: center;
|
|
20
32
|
display: flex;
|
|
21
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
33
|
+
gap: ${({ theme: e }) => e.spacing[0.5]};
|
|
22
34
|
justify-content: center;
|
|
23
|
-
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
24
|
-
|
|
35
|
+
margin-top: ${({ theme: e }) => e.spacing[2]};
|
|
36
|
+
`, C = ({ slides: e, interval: s = 300 }) => {
|
|
37
|
+
const { cycle: o, setCycle: l, setProgress: c } = u(s, e.length), d = m((n) => () => {
|
|
38
|
+
l(n), c(0);
|
|
39
|
+
}, [l, c]);
|
|
40
|
+
return p(h, { "aria-roledescription": "carousel", children: [a($, { $currentIndex: o, children: e.map((n, t) => {
|
|
41
|
+
const i = `slide-${t}`;
|
|
42
|
+
return a(g, { "aria-label": i, "aria-roledescription": "slide", children: n.content }, i);
|
|
43
|
+
}) }), a(v, { children: e.map((n, t) => {
|
|
44
|
+
const i = `nav-button-${t}`;
|
|
45
|
+
return a(f, { $isActive: t === o, "aria-label": `Go to slide ${t + 1}`, "data-testid": t === o ? "active" : "inactive", onClick: d(t) }, i);
|
|
46
|
+
}) })] });
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
C as Carousel
|
|
50
|
+
};
|
|
@@ -1,3 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { styled as u } from "styled-components";
|
|
4
|
+
import { Icon as b } from "../icon/index.js";
|
|
5
|
+
const y = u.label`
|
|
6
|
+
${({ theme: e }) => `
|
|
7
|
+
align-items: start;
|
|
8
|
+
color: ${e.palette.gray[600]};
|
|
9
|
+
display: flex;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
font-family: ${e.typography.type.primary};
|
|
12
|
+
font-size: ${e.typography.text.sm};
|
|
13
|
+
font-weight: ${e.typography.weight.regular};
|
|
14
|
+
line-height: ${e.spacing[1]};
|
|
15
|
+
letter-spacing: 0;
|
|
16
|
+
position: relative;
|
|
17
|
+
text-align: left;
|
|
18
|
+
|
|
19
|
+
&[aria-disabled="true"] {
|
|
20
|
+
color: ${e.palette.gray[300]};
|
|
21
|
+
cursor: not-allowed;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input {
|
|
25
|
+
position: absolute;
|
|
26
|
+
opacity: 0;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
height: 0;
|
|
29
|
+
width: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
svg {
|
|
33
|
+
background-color: ${e.palette.white};
|
|
34
|
+
border-radius: ${e.spacing[0.25]};
|
|
35
|
+
border: 1px solid ${e.palette.gray[600]};
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
height: ${e.spacing[0.5]};
|
|
39
|
+
margin-right: ${e.spacing[0.5]};
|
|
40
|
+
width: ${e.spacing[0.5]};
|
|
41
|
+
padding: ${e.spacing[0.25]};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
svg > path {
|
|
45
|
+
fill: ${e.palette.white};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
input:checked ~ span > svg {
|
|
49
|
+
background-color: ${e.palette.primary[500]};
|
|
50
|
+
border: 1px solid ${e.palette.primary[500]};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input:disabled ~ span > svg {
|
|
54
|
+
border: 1px solid ${e.palette.gray[300]};
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input:not(:disabled):hover ~ span > svg {
|
|
59
|
+
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
input:checked:disabled ~ span > svg {
|
|
63
|
+
background-color: ${e.palette.gray[300]};
|
|
64
|
+
border: 1px solid ${e.palette.gray[300]};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input:not(:disabled):hover:checked ~ span > svg {
|
|
68
|
+
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
input:checked ~ span > svg > path {
|
|
72
|
+
fill: ${e.palette.white};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
input:checked:disabled ~ span > svg > path {
|
|
76
|
+
fill: ${e.palette.white};
|
|
77
|
+
}
|
|
78
|
+
`}
|
|
79
|
+
`, x = h(function({ defaultChecked: e = !1, disabled: n = !1, label: o, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, value: t, ...d }, c) {
|
|
80
|
+
return g(y, { "aria-disabled": n, htmlFor: a, children: [i("input", { "aria-checked": e, "aria-disabled": n, "aria-label": a, defaultChecked: e, disabled: n, id: a, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, ref: c, type: "checkbox", value: t, ...d }), i(b, { disabled: n, icon: "check", iconSize: "sm" }), o ?? t] });
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
x as Checkbox
|
|
84
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { M as a } from "../../index-BwFnfaRh.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../use-cloudinary-image-fG7ODNgr.mjs";
|
|
5
|
+
import "lodash";
|
|
6
|
+
export {
|
|
7
|
+
a as CloudImage
|
|
8
|
+
};
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import s from "lodash";
|
|
3
|
+
import { useState as f, useCallback as p, useMemo as C } from "react";
|
|
4
|
+
import { useTheme as x } from "styled-components";
|
|
5
|
+
import { C as y, B as v } from "../../styles-Cx93EcVo.mjs";
|
|
6
|
+
import { Button as w } from "../button/index.js";
|
|
7
|
+
import { Container as S } from "../container/index.js";
|
|
8
|
+
import { Icon as b } from "../icon/index.js";
|
|
9
|
+
import { IconButton as j } from "../icon-button/index.js";
|
|
10
|
+
const L = ({ noCodeMessage: l = "Code snippet not available", snippet: o }) => {
|
|
11
|
+
const e = x(), [t, c] = f(!1), [g, m] = f(!0), u = p(() => {
|
|
12
|
+
c((i) => !i);
|
|
13
|
+
}, [c]), h = p(() => {
|
|
14
|
+
if (s.isNil(o) || s.isEmpty(o) || !s.isString(o)) return m(!1), l;
|
|
15
|
+
const i = o.split(`
|
|
16
|
+
`);
|
|
17
|
+
return i.length > 8 && !t ? `${[...i].splice(0, 7).join(`
|
|
18
|
+
`)}
|
|
19
|
+
${i[8]}...` : (i.length < 8 && m(!1), o);
|
|
20
|
+
}, [t, o, l]), r = C(h, [h]), d = p(async () => {
|
|
21
|
+
await navigator.clipboard.writeText(r);
|
|
22
|
+
}, [r]);
|
|
23
|
+
return a(S, { bgColor: e.palette.gray[100], borderRadius: "4px", display: "inline-flex", minWidth: "565px", position: "relative", children: [n(y, { "data-private": !0, children: n("pre", { children: n("code", { className: "language-none", children: r }) }) }), a(v, { children: [n(j, { height: e.spacing[2.5], icon: "copy", iconColor: e.palette.gray[700], iconSize: "xs", iconType: "fa-light", onClick: d, variant: "ghost", width: e.spacing[2.5] }), !!g && a(w, { onClick: u, variant: "ghost", children: [t ? "Show Less" : "Show more", n(b, { icon: t ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[700], iconSize: "xxs", iconType: "fa-light", ml: 0.25, onClick: d })] })] })] });
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
L as CodeSnippet
|
|
27
|
+
};
|