@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 { jsxs as i, jsx as e, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as b } from "styled-components";
|
|
3
|
+
import { Label as u } from "../label/index.js";
|
|
4
|
+
import { a as v } from "../../../styles-lSVV9kjn.mjs";
|
|
5
|
+
import { Container as m } from "../../container/index.js";
|
|
6
|
+
import { Icon as w } from "../../icon/index.js";
|
|
7
|
+
import { Link as T } from "../../link/index.js";
|
|
8
|
+
import { Tag as k } from "../../tag/index.js";
|
|
9
|
+
import "../../typography/heading/index.js";
|
|
10
|
+
import "../../typography/span/index.js";
|
|
11
|
+
import { Text as p } from "../../typography/text/index.js";
|
|
12
|
+
const B = ({ children: d, error: r, helpLink: o, helpLinkText: c = "Link here", helpText: t, htmlFor: h, label: n, maxLength: l, required: f, tooltip: g, value: s, weight: x }) => {
|
|
13
|
+
const a = b(), y = s ? s.length : 0;
|
|
14
|
+
return i(v, { children: [n === void 0 ? void 0 : e(u, { htmlFor: h, label: n, required: f, tooltip: g, weight: x }), d, r || l ? i(m, { display: "flex", justify: r === void 0 ? "end" : "space-between", width: "100%", children: [r && e(p, { className: "error-msg", color: a.palette.error[500], display: "block", lineSpacing: 1, size: "sm", children: r }), l && e(k, { priority: "low", tagLabel: `${y}/${l}`, variant: "error" })] }) : void 0, t || o ? i(m, { alignItems: "center", display: "flex", gap: 0.25, width: "100%", children: [t && i(L, { children: [e(w, { icon: "circle-info", iconColor: a.palette.gray[400], iconSize: "xxs", iconType: "fa-light" }), e(p, { color: a.palette.gray[400], display: "inline-block", size: "sm", children: t })] }), o && e(T, { href: o, children: c })] }) : void 0] });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
B as OutlineContainer
|
|
18
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { S as e } from "../../../../styles-7_q7nHce.mjs";
|
|
4
|
+
import { Icon as m } from "../../../icon/index.js";
|
|
5
|
+
const b = s(function({ disabled: n, icon: o, margin: a, onClick: r, ...t }, c) {
|
|
6
|
+
return i(e, { $margin: a, "aria-label": o, className: "action-btn", disabled: n, onClick: r, ref: c, type: "button", ...t, children: i(m, { icon: o, iconClass: "action", iconSize: "xs", iconType: "fa-light" }) });
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
b as ActionButton
|
|
10
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as s } from "react";
|
|
3
|
+
import { useButton as n } from "react-aria";
|
|
4
|
+
import { C as l } from "../../../../styles-7_q7nHce.mjs";
|
|
5
|
+
import { theme as p } from "../../../colors/index.js";
|
|
6
|
+
import { Icon as d } from "../../../icon/index.js";
|
|
7
|
+
const x = ({ disabled: o = !1, icon: r, props: i }) => {
|
|
8
|
+
const e = s(null), { buttonProps: t } = n(i, e);
|
|
9
|
+
return a(l, { ...t, $disabled: o, $focus: !!t["aria-expanded"], $header: r === "calendar" || r === "calendar-clock", disabled: o, ref: e, type: "button", children: a(d, { icon: r, iconColor: p.palette.gray[o ? 400 : 700], iconSize: "xs", iconType: "fa-light" }) });
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
x as Button
|
|
13
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { S as m } from "../../../../styles-lSVV9kjn.mjs";
|
|
3
|
+
import { Button as c } from "../calendar-button/index.js";
|
|
4
|
+
import { DateField as f } from "../date-time-field/index.js";
|
|
5
|
+
const P = ({ error: a, buttonProps: t, datePickerRef: i, disabled: r = !1, granularity: o = "day", fieldProps: d, groupProps: l, inputRef: p, name: s, ...n }) => u(m, { ...l, className: `${r ? "disabled" : ""} ${a ? "error" : ""}`, ref: i, children: [e(f, { disabled: r, error: a != null, props: { ...d, autoFocus: !1, granularity: o, shouldForceLeadingZeros: !0 } }), e(c, { disabled: r, icon: o === "minute" ? "calendar-clock" : "calendar", props: t }), e("input", { ...n, "aria-label": s, className: "date-input", disabled: r, name: s, ref: p, type: "text", value: "" })] });
|
|
6
|
+
export {
|
|
7
|
+
P as DateSelector
|
|
8
|
+
};
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as b } from "@internationalized/date";
|
|
3
|
+
import { isNil as d } from "lodash";
|
|
4
|
+
import { useRef as y, useCallback as f, useState as x } from "react";
|
|
5
|
+
import { useDateField as S, useTimeField as C, useDateSegment as A } from "react-aria";
|
|
6
|
+
import { useDateFieldState as F, useTimeFieldState as T } from "react-stately";
|
|
7
|
+
import { useTheme as M } from "styled-components";
|
|
8
|
+
import { I as k, T as D, a as g, b as h } from "../../../../styles-7_q7nHce.mjs";
|
|
9
|
+
import { Icon as N } from "../../../icon/index.js";
|
|
10
|
+
const P = ({ segment: i, state: m }) => {
|
|
11
|
+
const e = M(), a = y(null), t = { ...i, placeholder: { day: "dd", dayPeriod: "(AM/PM)", era: "", hour: "hh", literal: "", minute: "mm", month: "mm", second: "", timeZoneName: "", year: "yyyy" }[i.type] }, { segmentProps: r } = A(t, m, a), c = e.palette.gray[t.isEditable ? 800 : 500];
|
|
12
|
+
return o("div", { ...t.type !== "literal" && { ...r, className: "segment-cell" }, ref: a, style: t.type === "literal" ? void 0 : { color: t.isPlaceholder ? e.palette.gray[400] : c }, children: t.isPlaceholder ? t.placeholder : t.text });
|
|
13
|
+
}, B = ({ disabled: i, error: m = !1, props: e }) => {
|
|
14
|
+
const a = M(), t = y(null), r = F({ ...e, createCalendar: b, locale: "en-US" }), { fieldProps: c } = S(e, r, t), p = f((l) => {
|
|
15
|
+
const n = document.getElementsByClassName("segment-cell"), s = l.currentTarget;
|
|
16
|
+
Object.values(n).some((v) => v.contains(s)) || (l.preventDefault(), l.stopPropagation());
|
|
17
|
+
}, []);
|
|
18
|
+
return u(k, { ...c, onClick: p, children: [o("div", { className: "flex flex-row", style: { color: a.palette.gray[d(r.value) ? 400 : 800] }, tabIndex: -1, children: r.segments.map((l, n) => {
|
|
19
|
+
const s = `key_${n}`;
|
|
20
|
+
return o(P, { segment: { ...l, isEditable: !i }, state: r }, s);
|
|
21
|
+
}) }), m ? o(N, { icon: "exclamation-circle", iconColor: a.palette.error[500], iconSize: "xs" }) : void 0] });
|
|
22
|
+
}, L = (i) => {
|
|
23
|
+
const m = y(null), e = T({ ...i, locale: "en-US", shouldForceLeadingZeros: !0 }), { timeValue: a } = e, t = !d(a) && a.hour < 12 ? "AM" : "PM", [r, c] = x(d(a) ? "AM" : t), { fieldProps: p } = C(i, e, m), l = f((n) => {
|
|
24
|
+
const s = n.currentTarget.name;
|
|
25
|
+
s !== r && (d(a) || (s === "AM" ? e.setSegment("dayPeriod", 0) : s === "PM" && e.setSegment("dayPeriod", 12))), c(s);
|
|
26
|
+
}, [r, e, a]);
|
|
27
|
+
return u(D, { children: [o(g, { ...p, ref: m, children: e.segments.slice(0, -2).map((n, s) => o(P, { segment: n, state: e }, `key_${s}`)) }), u(g, { children: [o(h, { id: r === "AM" ? "active" : "", name: "AM", onClick: l, type: "button", children: "AM" }), o(h, { id: r === "PM" ? "active" : "", name: "PM", onClick: l, type: "button", children: "PM" })] })] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
B as DateField,
|
|
31
|
+
L as TimeField
|
|
32
|
+
};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i } from "react";
|
|
3
|
+
import { useDialog as m } from "react-aria";
|
|
4
|
+
import { D as t } from "../../../../styles-7_q7nHce.mjs";
|
|
5
|
+
const c = ({ children: r, ...s }) => {
|
|
6
|
+
const o = i(null), { dialogProps: a } = m(s, o);
|
|
7
|
+
return e(t, { ...a, ref: o, children: r });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
c as Dialog
|
|
11
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { useTheme as x } from "styled-components";
|
|
4
|
+
import { S as g } from "../../../../styles-lSVV9kjn.mjs";
|
|
5
|
+
import { ActionButton as n } from "../action-button/index.js";
|
|
6
|
+
import { Icon as v } from "../../../icon/index.js";
|
|
7
|
+
const N = ({ error: i, decimalPlaces: a = 0, disabled: e = !1, max: t = 1 / 0, min: l = 0, name: m = "input-number", placeholder: d, ref: c, required: p, value: s, ...u }) => {
|
|
8
|
+
const o = x(), b = h(() => a < 0 ? 0 : a, [a]);
|
|
9
|
+
return f(g, { className: `${e ? "disabled" : ""} ${i ? "error" : ""}`, children: [r("input", { "aria-hidden": !1, "aria-invalid": i ? "true" : "false", "aria-label": m, "aria-required": p, autoComplete: "off", disabled: e, max: t, min: l, placeholder: d, ref: c, required: void 0, step: 10 ** -b, type: "number", value: /^-?\d+/u.test(String(s)) ? s : "", ...u }), i && r(v, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: o.palette.error[500], iconSize: "xs" }), r(n, { borderLeft: "inherit", borderRight: "inherit", disabled: e, icon: "minus", margin: "0 -0.625rem 0 0", px: 0.75, py: 0.75 }), r(n, { borderRadius: `0 ${o.spacing[0.5]} ${o.spacing[0.5]} 0`, disabled: e, icon: "plus", px: 0.75, py: 0.75 })] });
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
N as NumberField
|
|
13
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useCallback as g } from "react";
|
|
3
|
+
import { usePopover as m, Overlay as R } from "react-aria";
|
|
4
|
+
const P = ({ className: o, children: p, isFilter: f = !1, popoverRef: t, state: a, triggerRef: e, ...c }) => {
|
|
5
|
+
var n;
|
|
6
|
+
const s = v(null), r = (n = e == null ? void 0 : e.current) == null ? void 0 : n.getBoundingClientRect(), { popoverProps: i } = m({ ...c, popoverRef: t ?? s, triggerRef: e }, a), d = g((u) => {
|
|
7
|
+
u.preventDefault();
|
|
8
|
+
}, []);
|
|
9
|
+
return l(R, { children: l("div", { ...i, className: o, onPointerDown: f ? d : void 0, ref: t ?? s, style: { ...i.style, ...o === "dropdown" ? { display: "flex", justifyContent: "center", width: r == null ? void 0 : r.width } : {} }, children: p }) });
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
P as Popover
|
|
13
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { a as p } from "../../../index-Co_k0WFk.mjs";
|
|
3
|
+
import "../../colors/index.js";
|
|
4
|
+
import "../../icon/index.js";
|
|
5
|
+
export {
|
|
6
|
+
p as InteractiveIcon
|
|
7
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as d } from "styled-components";
|
|
3
|
+
import { I as h, a as f } from "../../index-Co_k0WFk.mjs";
|
|
4
|
+
import { Button as g } from "../button/index.js";
|
|
5
|
+
import { Container as o } from "../container/index.js";
|
|
6
|
+
import { Heading as a } from "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as l } from "../typography/text/index.js";
|
|
9
|
+
const j = ({ category: r, description: s, href: c, icon: m, location: p, title: n }) => {
|
|
10
|
+
const i = d();
|
|
11
|
+
return t(h, { children: [t(o, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 1.5, height: "100%", id: "uncover", justify: "space-between", children: [t("div", { className: "flex flex-col gap-0.5", children: [e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: r }), e(a, { color: i.palette.white, fontWeight: "bold", lineSpacing: 2.25, lineSpacingSm: 1.75, size: "lg", sizeSm: "md", children: n })] }), t("div", { className: "flex flex-col gap-0.5", children: [e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: "Location" }), e(l, { color: i.palette.white, fontWeight: "bold", lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: p })] })] }), t(o, { alignItems: "self-start", display: "flex", flexDirection: "column", gap: 2, height: "100%", id: "hovered", justify: "space-between", pt: 1, children: [e(a, { color: i.palette.white, fontWeight: "bold", lineSpacing: 1.75, lineSpacingSm: 1.5, size: "md", sizeSm: "sm", children: n }), t("div", { className: "flex flex-col gap-8", children: [e(l, { color: i.palette.gray[100], lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: s }), e(g, { external: !0, href: c, variant: "link", width: "max-content", children: "Download now" })] })] }), e(f, { icon: m })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
j as InteractiveCard
|
|
15
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useCallback as d } from "react";
|
|
3
|
+
import { S as p, a as h, b, I as f } from "../../index-38JqtnAI.mjs";
|
|
4
|
+
import { Icon as g } from "../icon/index.js";
|
|
5
|
+
const S = [{ text: "EN" }, { text: "ES" }], E = ({ items: r, handleClick: a, mode: s = "light" }) => {
|
|
6
|
+
const o = r ?? S, [c, l] = x(o[0].text), m = d((e) => () => {
|
|
7
|
+
a(e.text), l(e.text);
|
|
8
|
+
}, [a]);
|
|
9
|
+
return i(p, { children: [i(h, { className: s, children: [t(g, { icon: "globe", iconSize: "xs", iconType: "fa-light" }), c] }), t(b, { children: o.map((e, n) => t(f, { disabled: e.disabled, mode: s, onClick: m(e), text: e.text }, `${e.text}_${n}`)) })] });
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
E as LanguageSelector
|
|
13
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { I as e } from "../../../index-38JqtnAI.mjs";
|
|
3
|
+
import "../../typography/heading/index.js";
|
|
4
|
+
import "../../typography/span/index.js";
|
|
5
|
+
import "../../typography/text/index.js";
|
|
6
|
+
export {
|
|
7
|
+
e as ItemList
|
|
8
|
+
};
|
|
@@ -1,7 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as d, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { Link as m } from "react-router-dom";
|
|
3
|
+
import { css as f, styled as p } from "styled-components";
|
|
4
|
+
import { v as $ } from "../../utils-CQvBF-wY.mjs";
|
|
5
|
+
import { Icon as w } from "../icon/index.js";
|
|
6
|
+
const { getVariant: v } = $((r) => ({ highRelevance: `
|
|
7
|
+
color: ${r.palette.primary[500]};
|
|
8
|
+
|
|
9
|
+
&:hover:not([disabled]) {
|
|
10
|
+
color: ${r.palette.primary[400]};
|
|
11
|
+
}
|
|
12
|
+
`, lowRelevance: `
|
|
13
|
+
color: ${r.palette.gray[800]};
|
|
14
|
+
|
|
15
|
+
&:hover:not([disabled]) {
|
|
16
|
+
color: ${r.palette.gray[500]};
|
|
17
|
+
}
|
|
18
|
+
` })), s = f`
|
|
19
|
+
${({ theme: r, $color: a, $variant: n }) => `
|
|
20
|
+
align-items: center;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
font-family: ${r.typography.type.primary};
|
|
23
|
+
font-size: ${r.typography.text.sm};
|
|
24
|
+
font-weight: ${r.typography.weight.regular};
|
|
25
|
+
gap: ${r.spacing[0.25]};
|
|
26
|
+
line-height: ${r.spacing[1.25]};
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
word-break: break-word;
|
|
29
|
+
word-wrap: break-word;
|
|
30
|
+
|
|
31
|
+
&:disabled {
|
|
32
|
+
color: ${r.palette.gray[300]};
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:has(button) {
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
${a ?? v(r, n)}
|
|
41
|
+
`}
|
|
42
|
+
`, y = p.a`
|
|
43
|
+
${s}
|
|
44
|
+
`, k = p(m)`
|
|
45
|
+
${s}
|
|
46
|
+
`, j = ({ children: r, color: a, download: n, href: i, iconPosition: o = "right", onClick: l, target: e, variant: c = "lowRelevance" }) => {
|
|
47
|
+
const h = i.startsWith("https://"), t = g(w, { icon: n === void 0 ? "arrow-up-right-from-square" : "arrow-down-to-bracket", iconSize: "xxs", iconType: "fa-regular", ml: 0.25, mr: 0.25 });
|
|
48
|
+
return h ? d(y, { $color: a, $variant: c, download: n, href: i, onClick: l, rel: "nofollow noopener noreferrer", target: e ?? "_blank", children: [o === "left" ? t : void 0, r, o === "right" ? t : void 0] }) : d(k, { $variant: c, download: n, onClick: l, rel: "nofollow noopener noreferrer", target: e, to: i, children: [e !== void 0 && o === "left" ? t : void 0, r, e !== void 0 && o === "right" ? t : void 0] });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
j as Link
|
|
52
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Children as u, isValidElement as v, cloneElement as y } from "react";
|
|
3
|
+
import { useTheme as C } from "styled-components";
|
|
4
|
+
import { L as g } from "../../styles-Q1VXuWI7.mjs";
|
|
5
|
+
import { a as V } from "../../styles-Q1VXuWI7.mjs";
|
|
6
|
+
import { Container as k } from "../container/index.js";
|
|
7
|
+
import { Icon as p } from "../icon/index.js";
|
|
8
|
+
import { Link as I } from "../link/index.js";
|
|
9
|
+
const E = ({ children: n, disabled: e = !1, icon: a, iconType: l = "fa-light", href: s, onClick: f, onKeyDown: h, selected: t = !1, value: i, ...x }) => {
|
|
10
|
+
const c = C().palette.gray[e ? 300 : 800], d = e ? u.map(n, (o) => v(o) ? y(o, { disabled: e, ...o.props }) : o) : n;
|
|
11
|
+
return m(g, { "aria-disabled": e, "aria-label": i, "aria-selected": t, "data-testid": i, onClick: f, onKeyDown: h, value: i, ...x, children: [a !== void 0 || i !== void 0 ? m(k, { alignItems: "center", display: "flex", gap: 0.625, children: [a ? r(p, { disabled: e, icon: a, iconColor: c, iconSize: "xs", iconType: l }) : null, s === void 0 ? d : r(I, { href: s, children: d })] }) : null, t ? r(p, { disabled: e, icon: "check", iconColor: c, iconSize: "xs", iconType: l }) : null] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
E as ListItem,
|
|
15
|
+
V as ListItemsWrapper
|
|
16
|
+
};
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "styled-components";
|
|
3
|
+
const i = r.span`
|
|
4
|
+
${({ theme: t, $bgColor: n = t.palette.secondary[500], $txtDecoration: o = "none" }) => `
|
|
5
|
+
background-color: ${n};
|
|
6
|
+
border-radius: 5px;
|
|
7
|
+
color: ${t.palette.white};
|
|
8
|
+
font-size: 10px;
|
|
9
|
+
padding: ${t.spacing[0.125]} ${t.spacing[0.25]} ${t.spacing[0.125]} ${t.spacing[0.25]};
|
|
10
|
+
text-decoration: ${o}
|
|
11
|
+
`}
|
|
12
|
+
`, l = ({ bgColor: t, children: n, txtDecoration: o, ml: e = 1 }) => a(i, { $bgColor: t, $txtDecoration: o, className: `ml-${e}`, children: n });
|
|
13
|
+
export {
|
|
14
|
+
l as LittleFlag
|
|
15
|
+
};
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { keyframes as i, styled as o, css as n, useTheme as m } from "styled-components";
|
|
3
|
+
import { v as d } from "../../utils-CQvBF-wY.mjs";
|
|
4
|
+
import "../../styles-C3cZmKVJ.mjs";
|
|
5
|
+
import { Container as c } from "../container/index.js";
|
|
6
|
+
import "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as f } from "../typography/text/index.js";
|
|
9
|
+
const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red: `stroke: ${e.palette.primary[500]};`, white: `stroke: ${e.palette.white};` })), k = i`
|
|
2
10
|
0% {
|
|
3
11
|
transform: rotateZ(0deg);
|
|
4
12
|
}
|
|
5
13
|
100% {
|
|
6
14
|
transform: rotateZ(360deg)
|
|
7
15
|
}
|
|
8
|
-
`,
|
|
16
|
+
`, $ = i`
|
|
9
17
|
0%,
|
|
10
18
|
25% {
|
|
11
19
|
stroke-dashoffset: 280;
|
|
@@ -22,16 +30,16 @@
|
|
|
22
30
|
stroke-dashoffset: 280;
|
|
23
31
|
transform: rotate(360deg);
|
|
24
32
|
}
|
|
25
|
-
`,
|
|
26
|
-
${({$size:e="md"})=>
|
|
27
|
-
animation: ${
|
|
33
|
+
`, g = o.svg`
|
|
34
|
+
${({ $size: e = "md" }) => n`
|
|
35
|
+
animation: ${k} 2s linear infinite;
|
|
28
36
|
animation-timing-function: linear;
|
|
29
37
|
display: inline-block;
|
|
30
|
-
width: ${
|
|
38
|
+
width: ${p[e]}px;
|
|
31
39
|
`}
|
|
32
|
-
`,
|
|
33
|
-
${({theme:e
|
|
34
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
40
|
+
`, y = o.circle`
|
|
41
|
+
${({ theme: e, $color: t = "red" }) => n`
|
|
42
|
+
animation: 1.4s ease-in-out infinite both ${$};
|
|
35
43
|
display: block;
|
|
36
44
|
fill: transparent;
|
|
37
45
|
stroke-linecap: round;
|
|
@@ -40,14 +48,20 @@
|
|
|
40
48
|
stroke-width: 10px;
|
|
41
49
|
transform-origin: 50% 50%;
|
|
42
50
|
|
|
43
|
-
${
|
|
51
|
+
${h(e, t)}
|
|
44
52
|
`}
|
|
45
|
-
`,
|
|
53
|
+
`, x = o.circle`
|
|
46
54
|
display: block;
|
|
47
55
|
fill: transparent;
|
|
48
|
-
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
56
|
+
stroke: ${({ theme: e }) => e.palette.gray[200]};
|
|
49
57
|
stroke-linecap: round;
|
|
50
58
|
stroke-width: 10px;
|
|
51
59
|
transform-origin: 50% 50%;
|
|
52
|
-
opacity: ${({$color:e})=>"white"
|
|
53
|
-
|
|
60
|
+
opacity: ${({ $color: e }) => e === "white" ? "20%" : "unset"};
|
|
61
|
+
`, B = ({ color: e = "red", label: t, size: l }) => {
|
|
62
|
+
const s = m();
|
|
63
|
+
return a(c, { alignItems: "center", display: "flex", children: [a(g, { $size: l, viewBox: "0 0 100 100", children: [r(x, { $color: e, cx: "50", cy: "50", r: "45" }), r(y, { $color: e, cx: "50", cy: "50", r: "45" })] }), t && r(f, { color: e === "red" ? s.palette.gray[700] : s.palette.white, ml: 0.5, size: "sm", children: t })] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
B as Loading
|
|
67
|
+
};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { M as p } from "../../index-BwFnfaRh.mjs";
|
|
3
|
+
import { Container as h } from "../container/index.js";
|
|
4
|
+
const e = { company: { height: "83px", width: "460px" }, footer: { height: "57px", width: "315px" }, header: { height: "35px", width: "160px" }, icon: { height: "40px", width: "40px" }, inline: { width: "150px" } }, d = ({ publicId: t, variant: o }) => i(h, { ...e[o], children: i(p, { alt: "logo", publicId: t }) });
|
|
5
|
+
export {
|
|
6
|
+
d as Logo
|
|
7
|
+
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { M as n, p as t } from "../../index-BwFnfaRh.mjs";
|
|
3
|
+
import { styled as o } from "styled-components";
|
|
4
|
+
const u = o.div`
|
|
2
5
|
display: flex;
|
|
3
6
|
height: 80px;
|
|
4
7
|
max-width: 1440px;
|
|
5
8
|
overflow: hidden;
|
|
6
9
|
position: relative;
|
|
7
|
-
`,o
|
|
10
|
+
`, e = o.div`
|
|
8
11
|
height: 79px;
|
|
9
12
|
width: 64px;
|
|
10
13
|
flex-shrink: 0;
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
);
|
|
29
32
|
right: 0;
|
|
30
33
|
}
|
|
31
|
-
`,
|
|
34
|
+
`, f = o.div`
|
|
32
35
|
display: flex;
|
|
33
36
|
gap: 40px;
|
|
34
37
|
animation: clients-animation 50s linear infinite;
|
|
@@ -43,4 +46,7 @@
|
|
|
43
46
|
transform: translateX(calc(-180px * 15));
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
|
-
`,
|
|
49
|
+
`, p = ["airs/clients-carousel/color/bancolombia", "airs/clients-carousel/color/itau_colombia", "airs/clients-carousel/color/lulo_bank", "airs/clients-carousel/color/oxxo_international", "airs/clients-carousel/color/interbank", "airs/clients-carousel/color/global_bank", "airs/clients-carousel/color/gesa", "airs/clients-carousel/color/copa_airlines", "airs/clients-carousel/color/consubanco", "airs/clients-carousel/color/bantrab", "airs/clients-carousel/color/banistmo", "airs/clients-carousel/color/banco_internacional", "airs/clients-carousel/color/banco_general", "airs/clients-carousel/color/banbif", "airs/clients-carousel/color/avianca"], m = ({ fusion: l = !1, logos: r = p }) => c(u, { children: [l && a(e, { className: "left" }), a(f, { children: [...r, ...r].map((i, s) => a(n, { alt: `${i}-${s}`, height: "80px", plugins: [t()], publicId: i, width: "140px" }, `${i}-${s}`)) }), l && a(e, { className: "right" })] });
|
|
50
|
+
export {
|
|
51
|
+
m as LogoCarousel
|
|
52
|
+
};
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "lottie-light-react";
|
|
3
|
+
import { styled as i } from "styled-components";
|
|
4
|
+
const r = i(e).attrs(({ autoplay: t = !0 }) => ({ autoplay: t, className: "comp-lottie" }))`
|
|
5
|
+
${({ $size: t = 16 }) => `
|
|
6
|
+
height: ${t}px;
|
|
7
|
+
width: ${t}px;
|
|
8
|
+
`}
|
|
9
|
+
`, n = (t) => {
|
|
10
|
+
const { size: o } = t;
|
|
11
|
+
return s(r, { $size: o, ...t });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
n as Lottie
|
|
15
|
+
};
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { isUndefined as g } from "lodash";
|
|
3
|
+
import { useTheme as x } from "styled-components";
|
|
4
|
+
import { Container as t } from "../container/index.js";
|
|
5
|
+
import { Divider as m } from "../divider/index.js";
|
|
6
|
+
import { Link as y } from "../link/index.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { a as b } from "../../styles-Q1VXuWI7.mjs";
|
|
9
|
+
import "../icon/index.js";
|
|
10
|
+
import { Tag as v } from "../tag/index.js";
|
|
11
|
+
import "../typography/heading/index.js";
|
|
12
|
+
import "../typography/span/index.js";
|
|
13
|
+
import { Text as r } from "../typography/text/index.js";
|
|
14
|
+
import { u as z } from "../../use-click-outside-BtZLIoU1.mjs";
|
|
15
|
+
const R = ({ children: s, commitSha: l, commitShortSha: n, parentElement: c, userInfo: p, setVisibility: d }) => {
|
|
16
|
+
const e = x(), { userName: h, email: f, phone: a, userRole: u } = p;
|
|
17
|
+
return z(c, () => {
|
|
18
|
+
d(!1);
|
|
19
|
+
}), o(b, { children: [i("li", { className: "user-info", children: o(t, { display: "inline-flex", gap: 0.25, width: "100%", children: [o(t, { display: "flex", flexDirection: "column", gap: 0.25, width: "100%", children: [i(r, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", children: h }), i(r, { color: e.palette.gray[400], size: "sm", children: f }), g(a) ? void 0 : i(r, { color: e.palette.gray[400], size: "sm", children: a })] }), i(t, { children: i(v, { tagLabel: u, variant: "role" }) })] }) }), i(m, {}), s, i(m, {}), i("li", { className: "commit-info", children: i(y, { href: `https://gitlab.com/fluidattacks/universe/-/tree/${l}`, iconPosition: "hidden", children: i(r, { color: e.palette.gray[400], size: "xs", children: `commit : ${n}` }) }) })] });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
R as Menu
|
|
23
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useCallback as C } from "react";
|
|
3
|
+
import { styled as w, useTheme as j } from "styled-components";
|
|
4
|
+
import { theme as c } from "../colors/index.js";
|
|
5
|
+
import { Container as n } from "../container/index.js";
|
|
6
|
+
import { Icon as m } from "../icon/index.js";
|
|
7
|
+
import "../typography/heading/index.js";
|
|
8
|
+
import "../typography/span/index.js";
|
|
9
|
+
import { Text as p } from "../typography/text/index.js";
|
|
10
|
+
const k = w.button`
|
|
2
11
|
align-items: center;
|
|
3
12
|
background-color: transparent;
|
|
4
13
|
border: unset;
|
|
@@ -9,10 +18,18 @@
|
|
|
9
18
|
padding: 0;
|
|
10
19
|
|
|
11
20
|
&:hover p {
|
|
12
|
-
color: ${
|
|
21
|
+
color: ${c.palette.primary[200]};
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
&:hover span {
|
|
16
|
-
color: ${
|
|
25
|
+
color: ${c.palette.primary[200]};
|
|
17
26
|
}
|
|
18
|
-
|
|
27
|
+
`, F = ({ message: i, onClickButton: l, buttonText: d, buttonFontWeight: s = "regular", icon: f, onClose: o, variant: g = "web" }) => {
|
|
28
|
+
const e = j(), [u, h] = x(!0), y = C(() => {
|
|
29
|
+
h(!1), o == null || o();
|
|
30
|
+
}, [o]), r = /* @__PURE__ */ ((b) => b === "platform" ? { normal: "sm", small: void 0 } : { normal: "md", small: "sm" })(g);
|
|
31
|
+
return a(n, { alignItems: "center", bgGradient: e.palette.gradients["01"], display: u ? "flex" : "none", id: "message-banner", justify: "space-between", padding: [0.75, 0.75, 0.75, 0.75], children: [a(n, { display: "flex", gap: 0.5, justify: "center", width: "100%", children: [t(n, { children: typeof i == "string" ? t(p, { color: e.palette.white, display: "inline", size: r.normal, sizeSm: r.small, children: i }) : i }), l ? a(k, { onClick: l, children: [t(p, { color: e.palette.white, fontWeight: s, size: r.normal, sizeSm: r.small, textDecoration: "underline", children: d }), t(m, { icon: f ?? "arrow-right", iconColor: e.palette.white, iconSize: "xs", iconType: s === "bold" ? "fa-regular" : "fa-light" })] }) : void 0] }), t(m, { clickable: !0, hoverColor: e.palette.primary[200], icon: "close", iconColor: e.palette.white, iconSize: "xs", iconType: "fa-light", onClick: y })] });
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
F as MessageBanner
|
|
35
|
+
};
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import r from "lodash";
|
|
3
|
+
import { createPortal as x } from "react-dom";
|
|
4
|
+
import { ModalConfirm as j } from "./modal-confirm/index.js";
|
|
5
|
+
import { ModalFooter as M } from "./modal-footer/index.js";
|
|
6
|
+
import { ModalHeader as b } from "./modal-header/index.js";
|
|
7
|
+
import { M as B, a as S, I as g } from "../../styles-D85YYIjM.mjs";
|
|
8
|
+
import { M as y } from "../../index-BwFnfaRh.mjs";
|
|
9
|
+
import "../typography/heading/index.js";
|
|
10
|
+
import "../typography/span/index.js";
|
|
11
|
+
import { Text as z } from "../typography/text/index.js";
|
|
12
|
+
const H = ({ _portal: n = !0, cancelButton: s, children: l, confirmButton: d, content: o, description: c = "", modalRef: e, otherActions: p, onClose: f, title: i = "", size: u, id: a = "modal-container" }) => {
|
|
13
|
+
const m = () => t(B, { "aria-label": e.name, "aria-modal": "true", id: "modal-wrapper", children: h(S, { $size: u, "data-testid": a, id: a, children: [!r.isEmpty(i) && t(b, { description: c, modalRef: e, onClose: f, otherActions: p, title: i }), l, r.isObject(o) && r.isString(o.imageSrc) && t(g, { $framed: o.imageFramed, children: t(y, { alt: "modal-img", publicId: o.imageSrc }) }), r.isObject(o) && r.isString(o.imageText) && t(z, { mb: 1.5, size: "sm", children: o.imageText }), t(M, { cancelButton: s, confirmButton: d, modalRef: e })] }) });
|
|
14
|
+
return n && e.isOpen ? x(m(), document.getElementById("portals") ?? document.body) : e.isOpen ? m() : null;
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
H as Modal,
|
|
18
|
+
j as ModalConfirm
|
|
19
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Button as a } from "../../button/index.js";
|
|
3
|
+
import { Container as l } from "../../container/index.js";
|
|
4
|
+
const C = ({ disabled: e, id: t = "modal-confirm", onCancel: i, onConfirm: n = "submit", txtCancel: m, txtConfirm: s }) => {
|
|
5
|
+
const r = n === "submit";
|
|
6
|
+
return d(l, { display: "flex", gap: 0.75, maxWidth: i ? "392px" : "190px", mt: 1.5, children: [i ? o(a, { id: `${t}-cancel`, justify: "center", onClick: i, variant: "tertiary", width: "100%", children: m ?? "Cancel" }) : void 0, o(a, { disabled: e, id: t, justify: "center", onClick: r ? void 0 : n, type: r ? "submit" : "button", variant: "primary", width: "100%", children: s ?? "Confirm" })] });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
C as ModalConfirm
|
|
10
|
+
};
|