@fluidattacks/design 3.1.12 → 3.1.14
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/assets/design.css +1 -0
- package/dist/components/@core/index.js +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -7
- package/dist/components/accordion/index.js +5 -19
- package/dist/components/alert/index.js +4 -111
- package/dist/components/button/index.js +4 -16
- package/dist/components/card/card-header/index.js +4 -12
- package/dist/components/card/card-with-image/index.js +5 -16
- package/dist/components/card/card-with-input/index.js +5 -54
- package/dist/components/card/card-with-selector/index.js +4 -14
- package/dist/components/card/card-with-switch/index.js +4 -10
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -47
- package/dist/components/checkbox/index.js +4 -82
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -25
- package/dist/components/code-snippet/location-code/index.js +7 -123
- package/dist/components/colors/index.js +7 -7
- package/dist/components/confirm-dialog/index.js +4 -20
- package/dist/components/container/index.js +4 -25
- package/dist/components/content-card/category-tag/index.js +4 -11
- package/dist/components/content-card/event-date/index.js +5 -16
- package/dist/components/content-card/index.js +4 -61
- package/dist/components/content-card-carousel/index.js +4 -13
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -8
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -46
- package/dist/components/file-preview/index.js +3 -26
- package/dist/components/form/index.js +4 -24
- package/dist/components/grid-container/index.js +4 -26
- package/dist/components/group-selector/index.js +6 -24
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -46
- package/dist/components/icon-button/index.js +4 -25
- package/dist/components/indicator-card/index.js +5 -13
- package/dist/components/info-sidebar/index.js +4 -14
- package/dist/components/inputs/fields/combobox/index.js +7 -24
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
- package/dist/components/inputs/fields/date/calendar/index.js +6 -13
- package/dist/components/inputs/fields/date/index.js +8 -16
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
- package/dist/components/inputs/fields/date-range/index.js +6 -26
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-time/index.js +6 -16
- package/dist/components/inputs/fields/editable/index.js +4 -14
- package/dist/components/inputs/fields/input/index.js +5 -11
- package/dist/components/inputs/fields/input-file/index.js +6 -30
- package/dist/components/inputs/fields/input-tags/index.js +4 -17
- package/dist/components/inputs/fields/number/index.js +4 -8
- package/dist/components/inputs/fields/number-range/index.js +4 -9
- package/dist/components/inputs/fields/phone/index.js +7 -417
- package/dist/components/inputs/fields/text-area/index.js +5 -11
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -10
- package/dist/components/inputs/outline-container/index.js +4 -16
- package/dist/components/inputs/utils/action-button/index.js +4 -8
- package/dist/components/inputs/utils/calendar-button/index.js +5 -11
- package/dist/components/inputs/utils/date-selector/index.js +3 -6
- package/dist/components/inputs/utils/date-time-field/index.js +10 -30
- package/dist/components/inputs/utils/dialog/index.js +5 -9
- package/dist/components/inputs/utils/number-field/index.js +5 -11
- package/dist/components/inputs/utils/popover/index.js +5 -11
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -13
- package/dist/components/language-selector/index.js +4 -11
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -50
- package/dist/components/list-item/index.js +6 -14
- package/dist/components/little-flag/index.js +3 -13
- package/dist/components/loading/index.js +4 -65
- package/dist/components/logo/index.js +3 -5
- package/dist/components/logo-carousel/index.js +4 -50
- package/dist/components/lottie/index.js +3 -13
- package/dist/components/menu/index.js +5 -20
- package/dist/components/message-banner/index.js +5 -33
- package/dist/components/modal/index.js +6 -17
- package/dist/components/modal/modal-confirm/index.js +3 -8
- package/dist/components/modal/modal-footer/index.js +5 -14
- package/dist/components/modal/modal-header/index.js +6 -23
- package/dist/components/notification/index.js +5 -66
- package/dist/components/notification-sign/index.js +4 -28
- package/dist/components/number-input/index.js +5 -50
- package/dist/components/oauth-selector/index.js +6 -24
- package/dist/components/oauth-selector/option-container/index.js +4 -13
- package/dist/components/plan-card/index.js +3 -82
- package/dist/components/plan-card/recommended-tag/index.js +3 -8
- package/dist/components/pop-up/description/index.js +5 -11
- package/dist/components/pop-up/index.js +7 -21
- package/dist/components/premium-feature/index.js +4 -43
- package/dist/components/priority-score/index.js +4 -12
- package/dist/components/progress/index.js +5 -32
- package/dist/components/progress-bar/index.js +3 -93
- package/dist/components/radio-button/index.js +4 -86
- package/dist/components/scroll-button/index.js +4 -22
- package/dist/components/search/index.js +7 -61
- package/dist/components/search-bar/index.js +4 -30
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -12
- package/dist/components/severity-overview/badge/index.js +4 -16
- package/dist/components/severity-overview/index.js +3 -5
- package/dist/components/show-on-hover/index.js +3 -23
- package/dist/components/slide-out-menu/index.js +6 -2006
- package/dist/components/slide-out-menu/menu-item/index.js +4 -13
- package/dist/components/slider/index.js +7 -91
- package/dist/components/slider/thumb/index.js +5 -8
- package/dist/components/step-lapse/index.js +4 -99
- package/dist/components/table-button/index.js +4 -54
- package/dist/components/tabs/fixed-tabs/index.js +3 -7
- package/dist/components/tabs/index.js +6 -12
- package/dist/components/tabs/tab/index.js +3 -6
- package/dist/components/tag/index.js +4 -114
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -5
- package/dist/components/toggle/index.js +4 -61
- package/dist/components/toggle-buttons/index.js +4 -72
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -2514
- package/dist/components/typography/heading/index.js +4 -7
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -7
- package/dist/components/typography/text/index.js +4 -7
- package/dist/components/web-form/index.js +4 -69
- package/dist/components-C2JBXbtI.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +113 -205
- package/dist/vendor-CVMqCpkZ.mjs +14504 -0
- package/package.json +2 -3
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/index-38JqtnAI.mjs +0 -122
- package/dist/index-B5yoGFs6.mjs +0 -54
- package/dist/index-BLbKylyw.mjs +0 -209
- package/dist/index-Bu448Tz2.mjs +0 -106
- package/dist/index-BwFnfaRh.mjs +0 -2310
- package/dist/index-Co_k0WFk.mjs +0 -75
- package/dist/index-Cu7uUMlx.mjs +0 -82
- package/dist/index-D-lcuEHY.mjs +0 -1018
- package/dist/index-DrfjITyT.mjs +0 -61
- package/dist/styles-7_q7nHce.mjs +0 -110
- package/dist/styles-BA0WIQL-.mjs +0 -74
- package/dist/styles-C3cZmKVJ.mjs +0 -131
- package/dist/styles-CI-I6joH.mjs +0 -144
- package/dist/styles-Cx93EcVo.mjs +0 -76
- package/dist/styles-D85YYIjM.mjs +0 -131
- package/dist/styles-EIbGRPlk.mjs +0 -106
- package/dist/styles-Q1VXuWI7.mjs +0 -65
- package/dist/styles-fH2c4cfc.mjs +0 -77
- package/dist/styles-lSVV9kjn.mjs +0 -133
- package/dist/use-carousel-CvRxi2FI.mjs +0 -17
- package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
- package/dist/use-modal-CkrZ-_-M.mjs +0 -14
- package/dist/use-search-DpLNvt7Q.mjs +0 -12
- package/dist/utils-CQvBF-wY.mjs +0 -4
|
@@ -1,125 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
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 }) }) }));
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "prismjs";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../vendor-CVMqCpkZ.mjs";
|
|
6
|
+
import { ba as e } from "../../../components-C2JBXbtI.mjs";
|
|
123
7
|
export {
|
|
124
|
-
|
|
8
|
+
e as Code
|
|
125
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { w as r, y as i, x as t, z as a } from "../../components-C2JBXbtI.mjs";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
r as CustomThemeProvider,
|
|
6
|
+
i as icons,
|
|
7
|
+
t as theme,
|
|
8
|
+
a as uniqueIcons
|
|
9
9
|
};
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { D as t } from "../../components-C2JBXbtI.mjs";
|
|
4
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
5
|
export {
|
|
22
|
-
|
|
6
|
+
t as useConfirmDialog
|
|
23
7
|
};
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { E as m } from "../../components-C2JBXbtI.mjs";
|
|
25
4
|
export {
|
|
26
|
-
|
|
5
|
+
m as Container
|
|
27
6
|
};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { be as e } from "../../../components-C2JBXbtI.mjs";
|
|
11
4
|
export {
|
|
12
|
-
|
|
5
|
+
e as CategoryTag
|
|
13
6
|
};
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { bf as e } from "../../../components-C2JBXbtI.mjs";
|
|
16
5
|
export {
|
|
17
|
-
|
|
6
|
+
e as EventDate
|
|
18
7
|
};
|
|
@@ -1,63 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { bg as p } from "../../components-C2JBXbtI.mjs";
|
|
61
4
|
export {
|
|
62
|
-
|
|
5
|
+
p as ContentCard
|
|
63
6
|
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { bh as e } from "../../components-C2JBXbtI.mjs";
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
e as ContentCardCarousel
|
|
15
6
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import "../../container/index.js";
|
|
6
|
-
import "../../icon/index.js";
|
|
4
|
+
import { bd as i } from "../../../components-C2JBXbtI.mjs";
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
i as ScrollButtons
|
|
9
7
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { F as p } from "../../components-C2JBXbtI.mjs";
|
|
8
4
|
export {
|
|
9
|
-
|
|
5
|
+
p as Divider
|
|
10
6
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const s = ({ buttonProps: t, variant: o }) => n(r, { onClick: t.onClick, variant: o, children: t.text });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { bi as p } from "../../../components-C2JBXbtI.mjs";
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
p as EmptyButton
|
|
6
5
|
};
|
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: center;
|
|
12
|
-
padding: ${({ theme: t, $padding: e }) => t.spacing[e]};
|
|
13
|
-
max-width: 900px;
|
|
14
|
-
white-space: pre-line;
|
|
15
|
-
margin: 0 auto;
|
|
16
|
-
`, u = r.div`
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
align-items: center;
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
width: 96px;
|
|
23
|
-
height: 96px;
|
|
24
|
-
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
25
|
-
|
|
26
|
-
> img {
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
`, y = r.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
margin: 0;
|
|
33
|
-
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
34
|
-
|
|
35
|
-
> * {
|
|
36
|
-
margin-right: ${({ theme: t }) => t.spacing[0.75]};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
> *:last-child {
|
|
40
|
-
margin-right: 0;
|
|
41
|
-
}
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { G as p } from "../../components-C2JBXbtI.mjs";
|
|
46
3
|
export {
|
|
47
|
-
|
|
4
|
+
p as EmptyState
|
|
48
5
|
};
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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 }))`
|
|
7
|
-
& img {
|
|
8
|
-
display: block;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&::after {
|
|
12
|
-
content: "";
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
${({ $opacity: i = 0 }) => `background-color: rgba(0, 0, 0, ${i});`}
|
|
20
|
-
}
|
|
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 }) });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { H as o } from "../../components-C2JBXbtI.mjs";
|
|
26
3
|
export {
|
|
27
|
-
|
|
4
|
+
o as FilePreview
|
|
28
5
|
};
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { I as t } from "../../components-C2JBXbtI.mjs";
|
|
24
4
|
export {
|
|
25
|
-
|
|
5
|
+
t as Form
|
|
26
6
|
};
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { B as s } from "../../styles-C3cZmKVJ.mjs";
|
|
5
|
-
const l = o(s)`
|
|
6
|
-
display: grid;
|
|
7
|
-
gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
|
|
8
|
-
grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
|
|
9
|
-
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { J as m } from "../../components-C2JBXbtI.mjs";
|
|
26
4
|
export {
|
|
27
|
-
|
|
5
|
+
m as GridContainer
|
|
28
6
|
};
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { Container as t } from "../container/index.js";
|
|
7
|
-
import { Divider as N } from "../divider/index.js";
|
|
8
|
-
import { Icon as O } from "../icon/index.js";
|
|
9
|
-
import { IconButton as q } from "../icon-button/index.js";
|
|
10
|
-
import { Search as A } from "../search/index.js";
|
|
11
|
-
import "../typography/heading/index.js";
|
|
12
|
-
import "../typography/span/index.js";
|
|
13
|
-
import { Text as h } from "../typography/text/index.js";
|
|
14
|
-
const Q = ({ isOpen: f = !0, items: n, handleNewOrganization: g, onSelect: u, onClose: x, selectedItem: y, title: C, variant: S }) => {
|
|
15
|
-
const o = T(), [s, l] = p(n), [c, m] = p(""), a = d((r) => {
|
|
16
|
-
l((v) => v.filter((z) => String(z.name).toLowerCase().includes(r.toLocaleLowerCase())));
|
|
17
|
-
}, [l]), w = d((r) => {
|
|
18
|
-
r.currentTarget && (m(r.currentTarget.value), a(r.currentTarget.value));
|
|
19
|
-
}, [m, a]);
|
|
20
|
-
return I(() => {
|
|
21
|
-
l(n), a(c);
|
|
22
|
-
}, [n, a, c]), f ? b(e(t, { "aria-modal": "true", className: "comp-modal fixed inset-0 overflow-auto", zIndex: 99999, children: e(t, { alignItems: "center", bgColor: "rgb(52 64 84 / 70%)", display: "flex", height: "100vh", justify: "center", left: "0", top: "0", width: "100%", children: i(L, { $itemsLength: s.length, children: [i(t, { alignItems: "center", display: "flex", justify: "space-between", children: [e(h, { color: o.palette.gray[800], fontWeight: "bold", size: "lg", children: C }), e(q, { icon: "xmark", iconColor: o.palette.gray[400], iconSize: "xs", iconType: "fa-light", onClick: x, variant: "ghost" })] }), e(t, { mt: 1, children: e(A, { onInput: w, placeholder: "Search" }) }), e(N, { mb: 1, mt: 1 }), i(t, { display: "inline-flex", gap: 1, maxHeight: "332px", scroll: "y", wrap: "wrap", children: [S === "organization-selector" ? e(k, { onClick: g, children: i(t, { alignItems: "center", display: "flex", children: [e(O, { icon: "square-plus", iconColor: o.palette.gray[400], iconSize: "xs", iconType: "fa-light", mr: 0.5 }), e(h, { color: o.palette.gray[400], size: "sm", children: "New organization" })] }) }) : void 0, s.map((r) => e(j, { isSelected: y.toLowerCase() === r.name, label: r.name.charAt(0).toUpperCase() + r.name.slice(1), onSelect: u }, r.name))] })] }) }) }), document.body) : e("div", {});
|
|
23
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
import "styled-components";
|
|
5
|
+
import { K as e } from "../../components-C2JBXbtI.mjs";
|
|
24
6
|
export {
|
|
25
|
-
|
|
7
|
+
e as GroupSelector
|
|
26
8
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import "../../icon/index.js";
|
|
6
|
-
import "../../typography/heading/index.js";
|
|
7
|
-
import "../../typography/span/index.js";
|
|
8
|
-
import "../../typography/text/index.js";
|
|
4
|
+
import { bk as p, bj as a } from "../../../components-C2JBXbtI.mjs";
|
|
9
5
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
p as OptionBoxContainer,
|
|
7
|
+
a as OptionContainer
|
|
12
8
|
};
|