@fluidattacks/design 3.1.10 → 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/assets/{design.css → index.css} +1 -1
- package/dist/assets/index2.css +1 -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 +3 -2
- 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,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
|
+
};
|
|
@@ -1 +1,125 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import v from "lodash";
|
|
3
|
+
import { highlightAll as z } from "prismjs";
|
|
4
|
+
import { useEffect as W } from "react";
|
|
5
|
+
import { C as F } from "../../../styles-Cx93EcVo.mjs";
|
|
6
|
+
(function() {
|
|
7
|
+
if (typeof Prism < "u" && typeof document < "u" && document.querySelector) {
|
|
8
|
+
var p, s = "line-numbers", u = "linkable-line-numbers", k = /\n(?!$)/g, I = function() {
|
|
9
|
+
if (p === void 0) {
|
|
10
|
+
var t = document.createElement("div");
|
|
11
|
+
t.style.fontSize = "13px", t.style.lineHeight = "1.5", t.style.padding = "0", t.style.border = "0", t.innerHTML = " <br /> ", document.body.appendChild(t), p = t.offsetHeight === 38, document.body.removeChild(t);
|
|
12
|
+
}
|
|
13
|
+
return p;
|
|
14
|
+
}, y = !0;
|
|
15
|
+
Prism.plugins.lineHighlight = { highlightLines: function(t, e, n) {
|
|
16
|
+
var r = (e = typeof e == "string" ? e : t.getAttribute("data-line") || "").replace(/\s+/g, "").split(",").filter(Boolean), c = +t.getAttribute("data-line-offset") || 0, q = (I() ? parseInt : parseFloat)(getComputedStyle(t).lineHeight), E = Prism.util.isActive(t, s), m = t.querySelector("code"), L = E ? t : m || t, a = [], T = m.textContent.match(k), B = T ? T.length + 1 : 1, H = m && L != m ? function(d, h) {
|
|
17
|
+
var o = getComputedStyle(d), l = getComputedStyle(h);
|
|
18
|
+
function i(f) {
|
|
19
|
+
return +f.substr(0, f.length - 2);
|
|
20
|
+
}
|
|
21
|
+
return h.offsetTop + i(l.borderTopWidth) + i(l.paddingTop) - i(o.paddingTop);
|
|
22
|
+
}(t, m) : 0;
|
|
23
|
+
r.forEach(function(d) {
|
|
24
|
+
var h = d.split("-"), o = +h[0], l = +h[1] || o;
|
|
25
|
+
if (!((l = Math.min(B + c, l)) < o)) {
|
|
26
|
+
var i = t.querySelector('.line-highlight[data-range="' + d + '"]') || document.createElement("div");
|
|
27
|
+
if (a.push(function() {
|
|
28
|
+
i.setAttribute("aria-hidden", "true"), i.setAttribute("data-range", d), i.className = (n || "") + " line-highlight";
|
|
29
|
+
}), E && Prism.plugins.lineNumbers) {
|
|
30
|
+
var f = Prism.plugins.lineNumbers.getLine(t, o), C = Prism.plugins.lineNumbers.getLine(t, l);
|
|
31
|
+
if (f) {
|
|
32
|
+
var $ = f.offsetTop + H + "px";
|
|
33
|
+
a.push(function() {
|
|
34
|
+
i.style.top = $;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
if (C) {
|
|
38
|
+
var j = C.offsetTop - f.offsetTop + C.offsetHeight + "px";
|
|
39
|
+
a.push(function() {
|
|
40
|
+
i.style.height = j;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
} else a.push(function() {
|
|
44
|
+
i.setAttribute("data-start", String(o)), l > o && i.setAttribute("data-end", String(l)), i.style.top = (o - c - 1) * q + H + "px", i.textContent = new Array(l - o + 2).join(`
|
|
45
|
+
`);
|
|
46
|
+
});
|
|
47
|
+
a.push(function() {
|
|
48
|
+
i.style.width = t.scrollWidth + "px";
|
|
49
|
+
}), a.push(function() {
|
|
50
|
+
L.appendChild(i);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var w = t.id;
|
|
55
|
+
if (E && Prism.util.isActive(t, u) && w) {
|
|
56
|
+
P(t, u) || a.push(function() {
|
|
57
|
+
t.classList.add(u);
|
|
58
|
+
});
|
|
59
|
+
var M = parseInt(t.getAttribute("data-start") || "1");
|
|
60
|
+
b(".line-numbers-rows > span", t).forEach(function(d, h) {
|
|
61
|
+
var o = h + M;
|
|
62
|
+
d.onclick = function() {
|
|
63
|
+
var l = w + "." + o;
|
|
64
|
+
y = !1, location.hash = l, setTimeout(function() {
|
|
65
|
+
y = !0;
|
|
66
|
+
}, 1);
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return function() {
|
|
71
|
+
a.forEach(S);
|
|
72
|
+
};
|
|
73
|
+
} };
|
|
74
|
+
var N = 0;
|
|
75
|
+
Prism.hooks.add("before-sanity-check", function(t) {
|
|
76
|
+
var e = t.element.parentElement;
|
|
77
|
+
if (A(e)) {
|
|
78
|
+
var n = 0;
|
|
79
|
+
b(".line-highlight", e).forEach(function(r) {
|
|
80
|
+
n += r.textContent.length, r.parentNode.removeChild(r);
|
|
81
|
+
}), n && /^(?: \n)+$/.test(t.code.slice(-n)) && (t.code = t.code.slice(0, -n));
|
|
82
|
+
}
|
|
83
|
+
}), Prism.hooks.add("complete", function t(e) {
|
|
84
|
+
var n = e.element.parentElement;
|
|
85
|
+
if (A(n)) {
|
|
86
|
+
clearTimeout(N);
|
|
87
|
+
var r = Prism.plugins.lineNumbers, c = e.plugins && e.plugins.lineNumbers;
|
|
88
|
+
P(n, s) && r && !c ? Prism.hooks.add("line-numbers", t) : (Prism.plugins.lineHighlight.highlightLines(n)(), N = setTimeout(x, 1));
|
|
89
|
+
}
|
|
90
|
+
}), window.addEventListener("hashchange", x), window.addEventListener("resize", function() {
|
|
91
|
+
b("pre").filter(A).map(function(t) {
|
|
92
|
+
return Prism.plugins.lineHighlight.highlightLines(t);
|
|
93
|
+
}).forEach(S);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function b(t, e) {
|
|
97
|
+
return Array.prototype.slice.call((e || document).querySelectorAll(t));
|
|
98
|
+
}
|
|
99
|
+
function P(t, e) {
|
|
100
|
+
return t.classList.contains(e);
|
|
101
|
+
}
|
|
102
|
+
function S(t) {
|
|
103
|
+
t();
|
|
104
|
+
}
|
|
105
|
+
function A(t) {
|
|
106
|
+
return !(!t || !/pre/i.test(t.nodeName)) && (!!t.hasAttribute("data-line") || !(!t.id || !Prism.util.isActive(t, u)));
|
|
107
|
+
}
|
|
108
|
+
function x() {
|
|
109
|
+
var t = location.hash.slice(1);
|
|
110
|
+
b(".temporary.line-highlight").forEach(function(c) {
|
|
111
|
+
c.parentNode.removeChild(c);
|
|
112
|
+
});
|
|
113
|
+
var e = (t.match(/\.([\d,-]+)$/) || [, ""])[1];
|
|
114
|
+
if (e && !document.getElementById(t)) {
|
|
115
|
+
var n = t.slice(0, t.lastIndexOf(".")), r = document.getElementById(n);
|
|
116
|
+
r && (r.hasAttribute("data-line") || r.setAttribute("data-line", ""), Prism.plugins.lineHighlight.highlightLines(r, e, "temporary ")(), y && document.querySelector(".temporary.line-highlight").scrollIntoView());
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
import '../../../assets/index2.css';const K = ({ noCodeMessage: p = "Code snippet not available", snippet: s, specific: u }) => (W(() => {
|
|
121
|
+
z();
|
|
122
|
+
}, []), g(F, { "data-private": !0, children: g("pre", { className: "line-highlight", "data-line-offset": v.isNil(s) || v.isString(s) ? 0 : s.offset + 0.7, ...u !== void 0 ? { "data-line": String(Number(u)) } : {}, children: v.isNil(s) || v.isString(s) || v.isEmpty(s.content) ? g("div", { className: "no-data", children: g("p", { children: p }) }) : g("code", { className: "language-none", children: s.content }) }) }));
|
|
123
|
+
export {
|
|
124
|
+
K as Code
|
|
125
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeProvider as a } from "styled-components";
|
|
3
|
+
const l = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "briefcase", "bug", "buildings", "bullseye-pointer", "calendar-clock", "calendar-xmark", "chart-network", "clipboard-check", "comment", "envelope", "eye", "file", "flag", "globe", "hand-holding-dollar", "hands-clapping", "headset", "hexagon-exclamation", "light-emergency-on", "magnifying-glass", "pen-line", "plane-departure", "screwdriver-wrench", "sensor-triangle-exclamation", "shield-check", "sidebar", "skull", "sliders", "star-christmas", "telescope", "trash", "unlock", "user-group", "user-hoodie", "xmark"], p = [["fal", "arrow-down"], ["fal", "arrow-left"], ["fal", "arrow-right"], ["fal", "arrow-up"], ["fal", "plus"], ["fal", "minus"], ["fas", "check"], ["fas", "circle-question"]], f = { typography: { type: { primary: "Roboto, sans-serif", poppins: "'Poppins', sans-serif", mono: "'Space Mono', monospace" }, heading: { xxl: "64px", xl: "48px", lg: "32px", md: "24px", sm: "20px", xs: "16px" }, text: { xl: "20px", lg: "18px", md: "16px", sm: "14px", xs: "12px" }, weight: { bold: "700", semibold: "600", regular: "400" } }, shadows: { none: "none", sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)", md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)", lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)" }, breakpoints: { mobile: "480px", tablet: "960px", sm: "1024px", md: "1440px", lg: "1920px" }, spacing: { 0: "0rem", 0.125: "0.125rem", 0.188: "0.188rem", 0.25: "0.25rem", 0.5: "0.5rem", 0.625: "0.625rem", 0.75: "0.75rem", 1: "1rem", 1.25: "1.25rem", 1.5: "1.5rem", 1.75: "1.75rem", 2: "2rem", 2.25: "2.25rem", 2.5: "2.5rem", 3: "3rem", 3.5: "3.5rem", 4: "4rem", 4.5: "4.5rem", 5: "5rem", 6: "6rem" }, palette: { primary: { 25: "#fef2f3", 50: "#fddfe2", 100: "#fbbac0", 200: "#f9959e", 300: "#f65e6a", 400: "#f32637", 500: "#bf0b1a", 600: "#ac0a17", 700: "#9a0915", 800: "#870812", 900: "#750710" }, complementary: { 25: "", 50: "", 100: "#ffe6ff", 200: "", 300: "#b8075d", 400: "", 500: "#7f0540", 600: "", 700: "#59042d", 800: "", 900: "#460323" }, error: { 25: "", 50: "#fef3f2", 100: "", 200: "#fecdca", 300: "", 400: "", 500: "#f04438", 600: "", 700: "#b42318", 800: "", 900: "" }, info: { 25: "", 50: "#eff8ff", 100: "", 200: "#b2ddff", 300: "", 400: "", 500: "#2e90fa", 600: "", 700: "#175cd3", 800: "", 900: "" }, warning: { 25: "", 50: "#fffaeb", 100: "", 200: "#fef0c7", 300: "", 400: "#ffd562", 500: "#fdb022", 600: "#dc6803", 700: "#b54708", 800: "", 900: "" }, success: { 25: "", 50: "#f6fef9", 100: "", 200: "#a6f4c5", 300: "", 400: "", 500: "#12b76a", 600: "", 700: "#027a48", 800: "", 900: "" }, black: "#0c111d", white: "#ffffff", gray: { 25: "#fcfcfd", 50: "#f9fafb", 100: "#f2f4f7", 200: "#eaecf0", 300: "#d0d5dd", 400: "#98a2b3", 500: "#667085", 600: "#475467", 700: "#2f394b", 800: "#212a36", 900: "#161b25" }, gradients: { "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)", "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)" } } }, n = ({ children: e }) => r(a, { theme: f, children: e });
|
|
4
|
+
export {
|
|
5
|
+
n as CustomThemeProvider,
|
|
6
|
+
l as icons,
|
|
7
|
+
f as theme,
|
|
8
|
+
p as uniqueIcons
|
|
9
|
+
};
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as c, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useRef as C, useCallback as n, useEffect as p } from "react";
|
|
3
|
+
import { Modal as x } from "../modal/index.js";
|
|
4
|
+
import "lodash";
|
|
5
|
+
import { u as j } from "../../use-modal-CkrZ-_-M.mjs";
|
|
6
|
+
import { ModalConfirm as h } from "../modal/modal-confirm/index.js";
|
|
7
|
+
const w = () => {
|
|
8
|
+
const [t, i] = f(!1), [o, e] = f(), s = C(null), a = j("confirm-dialog-modal"), d = n(async (r) => (e(r), i(!0), new Promise((m) => {
|
|
9
|
+
s.current = m;
|
|
10
|
+
})), []), u = n(() => {
|
|
11
|
+
var r;
|
|
12
|
+
i(!1), e(void 0), (r = s.current) == null || r.call(s, !0);
|
|
13
|
+
}, []), l = n(() => {
|
|
14
|
+
var r;
|
|
15
|
+
i(!1), e(void 0), (r = s.current) == null || r.call(s, !1);
|
|
16
|
+
}, []);
|
|
17
|
+
return p(() => {
|
|
18
|
+
a.setIsOpen(t);
|
|
19
|
+
}, [t, a]), { ConfirmDialog: ({ id: r = "confirm-dialog-modal", children: m }) => c(x, { id: r, modalRef: { ...a, close: l }, size: "sm", title: o == null ? void 0 : o.title, children: [m, o == null ? void 0 : o.message, g(h, { id: o == null ? void 0 : o.id, onCancel: l, onConfirm: u })] }), confirm: d };
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
w as useConfirmDialog
|
|
23
|
+
};
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { styled as c } from "styled-components";
|
|
4
|
+
import { B as p } from "../../styles-C3cZmKVJ.mjs";
|
|
5
|
+
const y = c(p)`
|
|
6
|
+
${({ theme: n, $center: e = !1, $styleMd: r, $styleSm: t }) => `
|
|
7
|
+
${e ? "margin: auto;" : ""}
|
|
8
|
+
scrollbar-color: ${n.palette.gray[600]} ${n.palette.gray[100]};
|
|
9
|
+
scroll-padding: ${n.spacing[0.5]};
|
|
10
|
+
|
|
11
|
+
@media screen
|
|
12
|
+
and (min-width: ${n.breakpoints.mobile})
|
|
13
|
+
and (max-width: ${n.breakpoints.tablet})
|
|
14
|
+
{
|
|
15
|
+
${r};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
19
|
+
${t};
|
|
20
|
+
}
|
|
21
|
+
`}
|
|
22
|
+
`, u = $(function({ as: n = "div", center: e, children: r, id: t, onHover: a, onLeave: o, styleMd: s, styleSm: i, ...d }, m) {
|
|
23
|
+
return l(y, { $center: e, $styleMd: s, $styleSm: i, as: n, id: t, onMouseLeave: o, onMouseOver: a, ref: m, ...d, children: r });
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
u as Container
|
|
27
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as r } from "styled-components";
|
|
3
|
+
import { Container as a } from "../../container/index.js";
|
|
4
|
+
import "../../typography/heading/index.js";
|
|
5
|
+
import "../../typography/span/index.js";
|
|
6
|
+
import { Text as n } from "../../typography/text/index.js";
|
|
7
|
+
const d = ({ tag: t, tagPosition: e }) => {
|
|
8
|
+
const i = r();
|
|
9
|
+
return t ? o(a, { alignItems: "center", bgColor: i.palette.white, borderRadius: "8px", display: "flex", justify: "center", margin: e === "top" ? [0.75, 0.75, 0.75, 0.75] : void 0, padding: [0.25, 0.5, 0.25, 0.5], position: e === "top" ? "absolute" : "relative", top: "0", width: "max-content", children: o(n, { color: i.palette.gray[900], lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: t }) }) : null;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
d as CategoryTag
|
|
13
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as m } from "lodash";
|
|
3
|
+
import { useTheme as a } from "styled-components";
|
|
4
|
+
import { Container as l } from "../../container/index.js";
|
|
5
|
+
import { Heading as p } from "../../typography/heading/index.js";
|
|
6
|
+
import "../../typography/span/index.js";
|
|
7
|
+
import { Text as c } from "../../typography/text/index.js";
|
|
8
|
+
const b = ({ eventDate: e }) => {
|
|
9
|
+
const t = a(), i = m(e) ? null : e == null ? void 0 : e.split("-");
|
|
10
|
+
if (i) {
|
|
11
|
+
const [o, r] = i;
|
|
12
|
+
return s(l, { alignItems: "center", bgColor: t.palette.white, borderRadius: "8px", display: "flex", flexDirection: "column", margin: [0.75, 0.75, 0.75, 0.75], padding: [0.75, 1.5, 0.75, 1.5], position: "absolute", right: "0", shadow: "md", top: "0", children: [n(p, { fontWeight: "semibold", lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: o }), n(c, { color: t.palette.gray[800], fontWeight: "semibold", lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: r.toUpperCase() })] });
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
b as EventDate
|
|
18
|
+
};
|
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import z, { useTheme as v } from "styled-components";
|
|
3
|
+
import { CategoryTag as k } from "./category-tag/index.js";
|
|
4
|
+
import { EventDate as w } from "./event-date/index.js";
|
|
5
|
+
import { Button as $ } from "../button/index.js";
|
|
6
|
+
import { M as D } from "../../index-BwFnfaRh.mjs";
|
|
7
|
+
import { Container as s } from "../container/index.js";
|
|
8
|
+
import { Icon as S } from "../icon/index.js";
|
|
9
|
+
import { Heading as T } from "../typography/heading/index.js";
|
|
10
|
+
import "../typography/span/index.js";
|
|
11
|
+
import { Text as g } from "../typography/text/index.js";
|
|
12
|
+
const C = z.div`
|
|
13
|
+
${({ theme: t }) => `
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: ${t.spacing[1.5]};
|
|
18
|
+
width: 384px;
|
|
19
|
+
|
|
20
|
+
img {
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#card-image {
|
|
26
|
+
border-radius: ${t.spacing[1]};
|
|
27
|
+
height: 240px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
img {
|
|
33
|
+
transform: scale(1.2);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> #card-content {
|
|
37
|
+
> .title-dark {
|
|
38
|
+
color: ${t.palette.gray[400]};
|
|
39
|
+
}
|
|
40
|
+
> .title-light {
|
|
41
|
+
background: ${t.palette.gradients["01"]};
|
|
42
|
+
background-clip: text;
|
|
43
|
+
-webkit-background-clip: text;
|
|
44
|
+
-webkit-text-fill-color: transparent;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (max-width: ${t.breakpoints.mobile}) {
|
|
50
|
+
width: 320px;
|
|
51
|
+
|
|
52
|
+
#card-image {
|
|
53
|
+
height: 200px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`}
|
|
57
|
+
`, q = ({ author: t, buttonText: h, description: f, eventDate: x, href: l, imageId: d, mode: b = "light", publishDate: m, readingTime: c, tag: p, tagPosition: n = "top", title: y }) => {
|
|
58
|
+
const i = v(), r = m == null ? void 0 : m.split("-"), a = b === "dark", u = o(C, { "data-testid": `content-card-${y}`, children: [d || x || p && n === "top" ? o(s, { id: "card-image", position: "relative", children: [d && e(D, { publicId: d }), n === "top" && e(k, { tag: p, tagPosition: n }), e(w, { eventDate: x })] }) : void 0, o(s, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0.5, id: "card-content", children: [n === "bottom" && e(k, { tag: p, tagPosition: n }), t || r || c ? o(s, { display: "flex", justify: "space-between", width: "100%", children: [t && r && e(g, { color: i.palette.gray[a ? 300 : 400], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: t + ` • ${r[0]} ${r[1]}, ${r[2]}` }), c && o(s, { alignItems: "center", display: "flex", gap: 0.25, justify: "center", minWidth: "60px", children: [e(S, { icon: "eye", iconColor: i.palette.gray[a ? 300 : 400], iconSize: "xs", iconType: "fa-light" }), e(g, { color: i.palette.gray[a ? 300 : 400], size: "sm", sizeSm: "xs", textAlign: "right", children: c })] })] }) : void 0, e(T, { className: `title-${b}`, color: a ? i.palette.white : i.palette.gray[800], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: y }), f && e(g, { color: i.palette.gray[a ? 100 : 600], size: "md", sizeSm: "sm", children: f }), h && l && e($, { href: l, variant: "link", children: h })] })] });
|
|
59
|
+
return l ? e("a", { className: "flex w-fit", href: l, rel: "noopener noreferrer", target: "_self", children: u }) : u;
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
q as ContentCard
|
|
63
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as c } from "react";
|
|
3
|
+
import { O as p, S as a } from "../../index-Cu7uUMlx.mjs";
|
|
4
|
+
import { Container as t } from "../container/index.js";
|
|
5
|
+
import { ContentCard as f } from "../content-card/index.js";
|
|
6
|
+
import { Heading as x } from "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as g } from "../typography/text/index.js";
|
|
9
|
+
const I = ({ description: s, items: r, title: o, titleHighlighted: m }) => {
|
|
10
|
+
const n = c(null);
|
|
11
|
+
return i(p, { "data-testid": "content-card-carousel", children: [i(t, { alignItems: "flex-start", display: "flex", justify: "space-between", children: [i(t, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0.625, maxWidth: "800px", children: [i(x, { display: "inline", fontWeight: "semibold", lineSpacing: 2.25, lineSpacingSm: 1.75, size: "lg", sizeSm: "md", children: [o + " ", " ", e("span", { className: "inline", children: m })] }), e(g, { lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: s })] }), e(a, { containerRef: n, id: "desktop" })] }), e(t, { alignSelf: "stretch", display: "flex", id: "carousel", pb: 1, pr: 2.25, ref: n, scroll: "x", children: e(t, { alignItems: "flex-start", display: "flex", gap: 1.5, width: "max-content", children: r.map((l, d) => e(f, { ...l }, `${d}-${l.title}`)) }) }), e(a, { containerRef: n, id: "mobile" })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
I as ContentCardCarousel
|
|
15
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { S as s } from "../../../index-Cu7uUMlx.mjs";
|
|
5
|
+
import "../../container/index.js";
|
|
6
|
+
import "../../icon/index.js";
|
|
7
|
+
export {
|
|
8
|
+
s as ScrollButtons
|
|
9
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { theme as s } from "../colors/index.js";
|
|
4
|
+
import { Container as f } from "../container/index.js";
|
|
5
|
+
const c = i(function({ color: r = s.palette.gray[100], mt: o = 0.5, mb: t = 0.5, ...m }, e) {
|
|
6
|
+
return a(f, { as: "hr", border: `1px solid ${r}`, mb: t, mt: o, ref: e, ...m });
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
c as Divider
|
|
10
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Button as r } from "../../button/index.js";
|
|
3
|
+
const s = ({ buttonProps: t, variant: o }) => n(r, { onClick: t.onClick, variant: o, children: t.text });
|
|
4
|
+
export {
|
|
5
|
+
s as EmptyButton
|
|
6
|
+
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { EmptyButton as m } from "./empty-button/index.js";
|
|
3
|
+
import { styled as r } from "styled-components";
|
|
4
|
+
import { M as g } from "../../index-BwFnfaRh.mjs";
|
|
5
|
+
import { Heading as h } from "../typography/heading/index.js";
|
|
6
|
+
import "../typography/span/index.js";
|
|
7
|
+
import { Text as x } from "../typography/text/index.js";
|
|
8
|
+
const f = r.div`
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: column;
|
|
4
11
|
align-items: center;
|
|
5
|
-
padding: ${({theme:
|
|
12
|
+
padding: ${({ theme: t, $padding: e }) => t.spacing[e]};
|
|
6
13
|
max-width: 900px;
|
|
7
14
|
white-space: pre-line;
|
|
8
15
|
margin: 0 auto;
|
|
9
|
-
`,
|
|
16
|
+
`, u = r.div`
|
|
10
17
|
display: flex;
|
|
11
18
|
flex-direction: row;
|
|
12
19
|
justify-content: center;
|
|
@@ -14,22 +21,28 @@
|
|
|
14
21
|
background-color: transparent;
|
|
15
22
|
width: 96px;
|
|
16
23
|
height: 96px;
|
|
17
|
-
margin-bottom: ${({theme:
|
|
24
|
+
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
18
25
|
|
|
19
26
|
> img {
|
|
20
27
|
width: 100%;
|
|
21
28
|
}
|
|
22
|
-
`,
|
|
29
|
+
`, y = r.div`
|
|
23
30
|
display: flex;
|
|
24
31
|
flex-direction: row;
|
|
25
32
|
margin: 0;
|
|
26
|
-
margin-bottom: ${({theme:
|
|
33
|
+
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
27
34
|
|
|
28
35
|
> * {
|
|
29
|
-
margin-right: ${({theme:
|
|
36
|
+
margin-right: ${({ theme: t }) => t.spacing[0.75]};
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
> *:last-child {
|
|
33
40
|
margin-right: 0;
|
|
34
41
|
}
|
|
35
|
-
`,
|
|
42
|
+
`, d = { md: { description: "md", title: "lg" }, sm: { description: "sm", title: "xs" } }, S = ({ cancelButton: t, confirmButton: e, description: p, imageSrc: s = "integrates/empty/addRoot", padding: c = 1.25, title: l, size: n = "md" }) => {
|
|
43
|
+
const o = (e ?? t) !== void 0;
|
|
44
|
+
return a(f, { $padding: c, children: [i(u, { children: i(g, { alt: "empty-icon", publicId: s }) }), i(h, { fontWeight: "bold", lineSpacing: 1.75, mb: 0.25, size: d[n].title, textAlign: "center", children: l }), i(x, { mb: o ? 2 : void 0, size: d[n].description, textAlign: "center", children: p }), o ? a(y, { children: [t && i(m, { buttonProps: t, variant: "tertiary" }), e && i(m, { buttonProps: e, variant: "primary" })] }) : void 0] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
S as EmptyState
|
|
48
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { styled as h } from "styled-components";
|
|
3
|
+
import { Container as p } from "../container/index.js";
|
|
4
|
+
import n from "lodash";
|
|
5
|
+
import { Link as d } from "../link/index.js";
|
|
6
|
+
const a = h(p).attrs(({ ...i }) => ({ display: "inline-block", position: "relative", ...i }))`
|
|
2
7
|
& img {
|
|
3
8
|
display: block;
|
|
4
9
|
}
|
|
@@ -11,6 +16,13 @@
|
|
|
11
16
|
width: 100%;
|
|
12
17
|
height: 100%;
|
|
13
18
|
pointer-events: none;
|
|
14
|
-
${({$opacity:
|
|
19
|
+
${({ $opacity: i = 0 }) => `background-color: rgba(0, 0, 0, ${i});`}
|
|
15
20
|
}
|
|
16
|
-
|
|
21
|
+
`, m = (i, s) => !n.isUndefined(s) && n.includes(i, ((t) => {
|
|
22
|
+
if (n.isNil(t)) return "";
|
|
23
|
+
const e = t.split(".");
|
|
24
|
+
return (e.length > 1 ? n.last(e) : "").toLowerCase();
|
|
25
|
+
})(s)), b = ({ alt: i, fileType: s, width: t = "100%", opacity: e = 0, src: o, height: l = "auto" }) => s === "video" || m(["webm"], o) ? r(a, { $opacity: e, children: c("video", { controls: !0, height: l, muted: !0, width: t, children: [r("source", { src: o, type: "video/webm" }), r(d, { href: o, iconPosition: "hidden", children: o })] }) }) : r(a, { $opacity: e, children: r("img", { alt: i, height: l, src: o, width: t }) });
|
|
26
|
+
export {
|
|
27
|
+
b as FilePreview
|
|
28
|
+
};
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { styled as b } from "styled-components";
|
|
4
|
+
import { Button as a } from "../button/index.js";
|
|
5
|
+
import { Container as r } from "../container/index.js";
|
|
6
|
+
const x = b.form`
|
|
7
|
+
${({ theme: i }) => `
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: ${i.spacing[0.5]};
|
|
13
|
+
|
|
14
|
+
&:has(button[type="reset"]) {
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-top: ${i.spacing[1]};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`}
|
|
20
|
+
`, v = u(function({ cancelLabel: i, children: c, id: o = "modal-confirm", onCancel: e, onConfirm: t = "submit", submitLabel: m, submitDisabled: d = !1, ...f }, p) {
|
|
21
|
+
const l = t === "submit", h = [e, t].some(Boolean);
|
|
22
|
+
return n(x, { ref: p, ...f, children: s(r, { children: [n(r, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, children: c }), h && s(r, { display: "flex", gap: 0.75, maxWidth: "392px", children: [e ? n(a, { id: `${o}-cancel`, justify: "center", onClick: e, type: "reset", variant: "tertiary", width: "100%", children: i ?? "Cancel" }) : void 0, n(a, { disabled: d, id: o, justify: "center", onClick: l ? void 0 : t, type: l ? "submit" : "button", width: "100%", children: m ?? "Confirm" })] })] }) });
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
v as Form
|
|
26
|
+
};
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { styled as o } from "styled-components";
|
|
4
|
+
import { B as s } from "../../styles-C3cZmKVJ.mjs";
|
|
5
|
+
const l = o(s)`
|
|
2
6
|
display: grid;
|
|
3
|
-
gap: ${({$gap:
|
|
4
|
-
grid-template-columns: ${({$sm:
|
|
7
|
+
gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
|
|
8
|
+
grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
|
|
5
9
|
|
|
6
|
-
${({theme:
|
|
7
|
-
|
|
10
|
+
${({ theme: r, $xl: e, $lg: m, $md: t }) => `
|
|
11
|
+
@media (width >= ${r.breakpoints.sm}) {
|
|
12
|
+
grid-template-columns: repeat(${t}, 1fr);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (width >= ${r.breakpoints.md}) {
|
|
16
|
+
grid-template-columns: repeat(${m}, 1fr);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (width >= ${r.breakpoints.lg}) {
|
|
20
|
+
grid-template-columns: repeat(${e}, 1fr);
|
|
21
|
+
}
|
|
22
|
+
`}
|
|
23
|
+
`, u = $(function({ children: r, md: e, sm: m, lg: t, xl: n, gap: a, ...i }, d) {
|
|
24
|
+
return p(l, { $gap: a, $lg: t, $md: e, $sm: m, $xl: n, ref: d, ...i, children: r });
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
u as GridContainer
|
|
28
|
+
};
|