@fluidattacks/design 3.1.12 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +2 -2
- package/dist/components/accordion/accordion-content/index.js +18 -5
- package/dist/components/accordion/index.js +71 -14
- package/dist/components/alert/index.js +108 -57
- package/dist/components/button/index.js +64 -13
- package/dist/components/card/card-header/index.js +78 -9
- package/dist/components/card/card-with-image/index.js +88 -13
- package/dist/components/card/card-with-input/index.js +72 -23
- package/dist/components/card/card-with-selector/index.js +63 -8
- package/dist/components/card/card-with-switch/index.js +46 -8
- package/dist/components/carousel/index.js +54 -28
- package/dist/components/checkbox/index.js +66 -32
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +64 -19
- package/dist/components/code-snippet/location-code/index.js +146 -100
- package/dist/components/colors/index.js +220 -5
- package/dist/components/confirm-dialog/index.js +41 -18
- package/dist/components/container/index.js +39 -15
- package/dist/components/content-card/category-tag/index.js +37 -8
- package/dist/components/content-card/event-date/index.js +53 -10
- package/dist/components/content-card/index.js +118 -13
- package/dist/components/content-card-carousel/index.js +87 -7
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +22 -7
- package/dist/components/empty-state/empty-button/index.js +4 -4
- package/dist/components/empty-state/index.js +52 -15
- package/dist/components/file-preview/index.js +28 -12
- package/dist/components/form/index.js +46 -9
- package/dist/components/grid-container/index.js +31 -11
- package/dist/components/group-selector/index.js +126 -17
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +78 -18
- package/dist/components/icon-button/index.js +63 -14
- package/dist/components/indicator-card/index.js +70 -11
- package/dist/components/info-sidebar/index.js +107 -7
- package/dist/components/inputs/fields/combobox/index.js +141 -21
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
- package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
- package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
- package/dist/components/inputs/fields/date/calendar/index.js +26 -11
- package/dist/components/inputs/fields/date/index.js +65 -15
- package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
- package/dist/components/inputs/fields/date-range/index.js +98 -18
- package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
- package/dist/components/inputs/fields/date-time/index.js +65 -14
- package/dist/components/inputs/fields/editable/index.js +22 -10
- package/dist/components/inputs/fields/input/index.js +74 -10
- package/dist/components/inputs/fields/input-file/index.js +114 -21
- package/dist/components/inputs/fields/input-tags/index.js +60 -11
- package/dist/components/inputs/fields/number/index.js +54 -7
- package/dist/components/inputs/fields/number-range/index.js +46 -8
- package/dist/components/inputs/fields/phone/index.js +446 -286
- package/dist/components/inputs/fields/text-area/index.js +78 -10
- package/dist/components/inputs/label/index.js +34 -8
- package/dist/components/inputs/outline-container/index.js +98 -12
- package/dist/components/inputs/utils/action-button/index.js +28 -7
- package/dist/components/inputs/utils/calendar-button/index.js +34 -10
- package/dist/components/inputs/utils/date-selector/index.js +60 -6
- package/dist/components/inputs/utils/date-time-field/index.js +129 -28
- package/dist/components/inputs/utils/dialog/index.js +10 -7
- package/dist/components/inputs/utils/number-field/index.js +81 -8
- package/dist/components/inputs/utils/popover/index.js +41 -10
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +110 -7
- package/dist/components/language-selector/index.js +34 -10
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/link/index.js +71 -17
- package/dist/components/list-item/index.js +64 -13
- package/dist/components/little-flag/index.js +26 -9
- package/dist/components/loading/index.js +48 -21
- package/dist/components/logo/index.js +10 -4
- package/dist/components/logo-carousel/index.js +40 -5
- package/dist/components/lottie/index.js +12 -7
- package/dist/components/menu/index.js +53 -9
- package/dist/components/message-banner/index.js +79 -13
- package/dist/components/modal/index.js +59 -13
- package/dist/components/modal/modal-confirm/index.js +48 -7
- package/dist/components/modal/modal-footer/index.js +22 -13
- package/dist/components/modal/modal-header/index.js +45 -19
- package/dist/components/notification/index.js +65 -20
- package/dist/components/notification-sign/index.js +27 -10
- package/dist/components/number-input/index.js +58 -21
- package/dist/components/oauth-selector/index.js +97 -23
- package/dist/components/oauth-selector/option-container/index.js +68 -7
- package/dist/components/plan-card/index.js +99 -28
- package/dist/components/plan-card/recommended-tag/index.js +23 -2
- package/dist/components/pop-up/description/index.js +47 -9
- package/dist/components/pop-up/index.js +146 -17
- package/dist/components/premium-feature/index.js +56 -16
- package/dist/components/priority-score/index.js +24 -9
- package/dist/components/progress/index.js +30 -17
- package/dist/components/progress-bar/index.js +99 -41
- package/dist/components/radio-button/index.js +64 -27
- package/dist/components/scroll-button/index.js +33 -15
- package/dist/components/search/index.js +77 -35
- package/dist/components/search-bar/index.js +211 -24
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +66 -6
- package/dist/components/severity-overview/badge/index.js +62 -11
- package/dist/components/severity-overview/index.js +15 -5
- package/dist/components/show-on-hover/index.js +16 -10
- package/dist/components/slide-out-menu/index.js +2611 -1164
- package/dist/components/slide-out-menu/menu-item/index.js +58 -6
- package/dist/components/slider/index.js +79 -48
- package/dist/components/slider/thumb/index.js +13 -6
- package/dist/components/step-lapse/index.js +81 -23
- package/dist/components/table-button/index.js +65 -24
- package/dist/components/tabs/fixed-tabs/index.js +24 -4
- package/dist/components/tabs/index.js +54 -11
- package/dist/components/tabs/tab/index.js +37 -6
- package/dist/components/tag/index.js +95 -27
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +15 -5
- package/dist/components/toggle/index.js +65 -25
- package/dist/components/toggle-buttons/index.js +51 -22
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +3897 -1829
- package/dist/components/typography/heading/index.js +43 -5
- package/dist/components/typography/span/index.js +38 -6
- package/dist/components/typography/text/index.js +44 -6
- package/dist/components/web-form/index.js +28 -19
- package/dist/hooks/index.js +5 -5
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +11 -11
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
- package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/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-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/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,12 +1,85 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as h } from "react";
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { S as g } from "../../../../styles-
|
|
5
|
-
import { ActionButton as
|
|
6
|
-
import { Icon as
|
|
7
|
-
const N = ({
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { useTheme as b } from "styled-components";
|
|
4
|
+
import { S as g } from "../../../../styles-BXFVwnWT.mjs";
|
|
5
|
+
import { ActionButton as m } from "../action-button/index.js";
|
|
6
|
+
import { Icon as y } from "../../../icon/index.js";
|
|
7
|
+
const N = ({
|
|
8
|
+
error: i,
|
|
9
|
+
decimalPlaces: o = 0,
|
|
10
|
+
disabled: r = !1,
|
|
11
|
+
max: a = 1 / 0,
|
|
12
|
+
min: p = 0,
|
|
13
|
+
name: s = "input-number",
|
|
14
|
+
placeholder: u,
|
|
15
|
+
ref: c,
|
|
16
|
+
required: f,
|
|
17
|
+
value: n,
|
|
18
|
+
...l
|
|
19
|
+
}) => {
|
|
20
|
+
const t = b(), d = h(
|
|
21
|
+
() => o < 0 ? 0 : o,
|
|
22
|
+
[o]
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ x(
|
|
25
|
+
g,
|
|
26
|
+
{
|
|
27
|
+
className: `${r ? "disabled" : ""} ${i ? "error" : ""}`,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
"input",
|
|
31
|
+
{
|
|
32
|
+
"aria-hidden": !1,
|
|
33
|
+
"aria-invalid": i ? "true" : "false",
|
|
34
|
+
"aria-label": s,
|
|
35
|
+
"aria-required": f,
|
|
36
|
+
autoComplete: "off",
|
|
37
|
+
disabled: r,
|
|
38
|
+
max: a,
|
|
39
|
+
min: p,
|
|
40
|
+
placeholder: u,
|
|
41
|
+
ref: c,
|
|
42
|
+
required: void 0,
|
|
43
|
+
step: 10 ** -d,
|
|
44
|
+
type: "number",
|
|
45
|
+
value: /^-?\d+/u.test(String(n)) ? n : "",
|
|
46
|
+
...l
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
i && /* @__PURE__ */ e(
|
|
50
|
+
y,
|
|
51
|
+
{
|
|
52
|
+
icon: "exclamation-circle",
|
|
53
|
+
iconClass: "error-icon",
|
|
54
|
+
iconColor: t.palette.error[500],
|
|
55
|
+
iconSize: "xs"
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
m,
|
|
60
|
+
{
|
|
61
|
+
borderLeft: "inherit",
|
|
62
|
+
borderRight: "inherit",
|
|
63
|
+
disabled: r,
|
|
64
|
+
icon: "minus",
|
|
65
|
+
margin: "0 -0.625rem 0 0",
|
|
66
|
+
px: 0.75,
|
|
67
|
+
py: 0.75
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
m,
|
|
72
|
+
{
|
|
73
|
+
borderRadius: `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0`,
|
|
74
|
+
disabled: r,
|
|
75
|
+
icon: "plus",
|
|
76
|
+
px: 0.75,
|
|
77
|
+
py: 0.75
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
10
83
|
};
|
|
11
84
|
export {
|
|
12
85
|
N as NumberField
|
|
@@ -1,13 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { usePopover as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m, useCallback as y } from "react";
|
|
3
|
+
import { usePopover as P, Overlay as a } from "react-aria";
|
|
4
|
+
const C = ({
|
|
5
|
+
className: e,
|
|
6
|
+
children: d,
|
|
7
|
+
isFilter: u = !1,
|
|
8
|
+
popoverRef: t,
|
|
9
|
+
state: i,
|
|
10
|
+
triggerRef: o,
|
|
11
|
+
...c
|
|
12
|
+
}) => {
|
|
13
|
+
var p;
|
|
14
|
+
const s = m(null), n = (p = o == null ? void 0 : o.current) == null ? void 0 : p.getBoundingClientRect(), { popoverProps: l } = P(
|
|
15
|
+
{ ...c, popoverRef: t ?? s, triggerRef: o },
|
|
16
|
+
i
|
|
17
|
+
), v = y(
|
|
18
|
+
(f) => {
|
|
19
|
+
f.preventDefault();
|
|
20
|
+
},
|
|
21
|
+
[]
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
...l,
|
|
27
|
+
className: e,
|
|
28
|
+
onPointerDown: u ? v : void 0,
|
|
29
|
+
ref: t ?? s,
|
|
30
|
+
style: {
|
|
31
|
+
...l.style,
|
|
32
|
+
...e === "dropdown" ? {
|
|
33
|
+
display: "flex",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
width: n == null ? void 0 : n.width
|
|
36
|
+
} : {}
|
|
37
|
+
},
|
|
38
|
+
children: d
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
10
41
|
};
|
|
11
42
|
export {
|
|
12
|
-
|
|
43
|
+
C as Popover
|
|
13
44
|
};
|
|
@@ -1,15 +1,118 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { I as h, a as f } from "../../index-
|
|
2
|
+
import { useTheme as p } from "styled-components";
|
|
3
|
+
import { I as h, a as f } from "../../index-Ckmu1TfV.mjs";
|
|
4
4
|
import { Button as g } from "../button/index.js";
|
|
5
5
|
import { Container as o } from "../container/index.js";
|
|
6
|
-
import { Heading as
|
|
6
|
+
import { Heading as r } from "../typography/heading/index.js";
|
|
7
7
|
import "../typography/span/index.js";
|
|
8
8
|
import { Text as l } from "../typography/text/index.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const y = ({
|
|
10
|
+
category: a,
|
|
11
|
+
description: c,
|
|
12
|
+
href: m,
|
|
13
|
+
icon: s,
|
|
14
|
+
location: d,
|
|
15
|
+
title: n
|
|
16
|
+
}) => {
|
|
17
|
+
const i = p();
|
|
18
|
+
return /* @__PURE__ */ t(h, { children: [
|
|
19
|
+
/* @__PURE__ */ t(
|
|
20
|
+
o,
|
|
21
|
+
{
|
|
22
|
+
alignItems: "flex-start",
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
gap: 1.5,
|
|
26
|
+
height: "100%",
|
|
27
|
+
id: "uncover",
|
|
28
|
+
justify: "space-between",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5", children: [
|
|
31
|
+
/* @__PURE__ */ e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: a }),
|
|
32
|
+
/* @__PURE__ */ e(
|
|
33
|
+
r,
|
|
34
|
+
{
|
|
35
|
+
color: i.palette.white,
|
|
36
|
+
fontWeight: "bold",
|
|
37
|
+
lineSpacing: 2.25,
|
|
38
|
+
lineSpacingSm: 1.75,
|
|
39
|
+
size: "lg",
|
|
40
|
+
sizeSm: "md",
|
|
41
|
+
children: n
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5", children: [
|
|
46
|
+
/* @__PURE__ */ e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: "Location" }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
l,
|
|
49
|
+
{
|
|
50
|
+
color: i.palette.white,
|
|
51
|
+
fontWeight: "bold",
|
|
52
|
+
lineSpacing: 1.5,
|
|
53
|
+
lineSpacingSm: 1.25,
|
|
54
|
+
size: "md",
|
|
55
|
+
sizeSm: "sm",
|
|
56
|
+
children: d
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ t(
|
|
64
|
+
o,
|
|
65
|
+
{
|
|
66
|
+
alignItems: "self-start",
|
|
67
|
+
display: "flex",
|
|
68
|
+
flexDirection: "column",
|
|
69
|
+
gap: 2,
|
|
70
|
+
height: "100%",
|
|
71
|
+
id: "hovered",
|
|
72
|
+
justify: "space-between",
|
|
73
|
+
pt: 1,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
r,
|
|
77
|
+
{
|
|
78
|
+
color: i.palette.white,
|
|
79
|
+
fontWeight: "bold",
|
|
80
|
+
lineSpacing: 1.75,
|
|
81
|
+
lineSpacingSm: 1.5,
|
|
82
|
+
size: "md",
|
|
83
|
+
sizeSm: "sm",
|
|
84
|
+
children: n
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-8", children: [
|
|
88
|
+
/* @__PURE__ */ e(
|
|
89
|
+
l,
|
|
90
|
+
{
|
|
91
|
+
color: i.palette.gray[100],
|
|
92
|
+
lineSpacing: 1.5,
|
|
93
|
+
lineSpacingSm: 1.25,
|
|
94
|
+
size: "md",
|
|
95
|
+
sizeSm: "sm",
|
|
96
|
+
children: c
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ e(
|
|
100
|
+
g,
|
|
101
|
+
{
|
|
102
|
+
external: !0,
|
|
103
|
+
href: m,
|
|
104
|
+
variant: "link",
|
|
105
|
+
width: "max-content",
|
|
106
|
+
children: "Download now"
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ e(f, { icon: s })
|
|
114
|
+
] });
|
|
12
115
|
};
|
|
13
116
|
export {
|
|
14
|
-
|
|
117
|
+
y as InteractiveCard
|
|
15
118
|
};
|
|
@@ -1,13 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as x, useCallback as
|
|
3
|
-
import { S
|
|
4
|
-
import { Icon as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useCallback as p } from "react";
|
|
3
|
+
import { S, a as m, b as f, I as g } from "../../index-BzAniA2J.mjs";
|
|
4
|
+
import { Icon as b } from "../icon/index.js";
|
|
5
|
+
const u = [{ text: "EN" }, { text: "ES" }], j = ({
|
|
6
|
+
items: n,
|
|
7
|
+
handleClick: o,
|
|
8
|
+
mode: s = "light"
|
|
9
|
+
}) => {
|
|
10
|
+
const c = n ?? u, [a, r] = x(c[0].text), i = p(
|
|
11
|
+
(t) => () => {
|
|
12
|
+
o(t.text), r(t.text);
|
|
13
|
+
},
|
|
14
|
+
[o]
|
|
15
|
+
);
|
|
16
|
+
return /* @__PURE__ */ l(S, { children: [
|
|
17
|
+
/* @__PURE__ */ l(m, { className: s, children: [
|
|
18
|
+
/* @__PURE__ */ e(b, { icon: "globe", iconSize: "xs", iconType: "fa-light" }),
|
|
19
|
+
a
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e(f, { children: c.map(
|
|
22
|
+
(t, d) => /* @__PURE__ */ e(
|
|
23
|
+
g,
|
|
24
|
+
{
|
|
25
|
+
disabled: t.disabled,
|
|
26
|
+
mode: s,
|
|
27
|
+
onClick: i(t),
|
|
28
|
+
text: t.text
|
|
29
|
+
},
|
|
30
|
+
`${t.text}_${d}`
|
|
31
|
+
)
|
|
32
|
+
) })
|
|
33
|
+
] });
|
|
10
34
|
};
|
|
11
35
|
export {
|
|
12
|
-
|
|
36
|
+
j as LanguageSelector
|
|
13
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { I as e } from "../../../index-
|
|
2
|
+
import { I as e } from "../../../index-BzAniA2J.mjs";
|
|
3
3
|
import "../../typography/heading/index.js";
|
|
4
4
|
import "../../typography/span/index.js";
|
|
5
5
|
import "../../typography/text/index.js";
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Link as
|
|
3
|
-
import { css as
|
|
4
|
-
import { v as $ } from "../../utils-
|
|
1
|
+
import { jsxs as p, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { Link as y } from "react-router-dom";
|
|
3
|
+
import { css as u, styled as s } from "styled-components";
|
|
4
|
+
import { v as $ } from "../../utils-V0EumEPM.mjs";
|
|
5
5
|
import { Icon as w } from "../icon/index.js";
|
|
6
|
-
const { getVariant:
|
|
6
|
+
const { getVariant: m } = $(
|
|
7
|
+
(r) => ({
|
|
8
|
+
highRelevance: `
|
|
7
9
|
color: ${r.palette.primary[500]};
|
|
8
10
|
|
|
9
11
|
&:hover:not([disabled]) {
|
|
10
12
|
color: ${r.palette.primary[400]};
|
|
11
13
|
}
|
|
12
|
-
`,
|
|
14
|
+
`,
|
|
15
|
+
lowRelevance: `
|
|
13
16
|
color: ${r.palette.gray[800]};
|
|
14
17
|
|
|
15
18
|
&:hover:not([disabled]) {
|
|
16
19
|
color: ${r.palette.gray[500]};
|
|
17
20
|
}
|
|
18
|
-
`
|
|
19
|
-
|
|
21
|
+
`
|
|
22
|
+
})
|
|
23
|
+
), c = u`
|
|
24
|
+
${({ theme: r, $color: a, $variant: e }) => `
|
|
20
25
|
align-items: center;
|
|
21
26
|
cursor: pointer;
|
|
22
27
|
font-family: ${r.typography.type.primary};
|
|
@@ -37,16 +42,65 @@ const { getVariant: v } = $((r) => ({ highRelevance: `
|
|
|
37
42
|
text-decoration: none;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
${a ??
|
|
45
|
+
${a ?? m(r, e)}
|
|
41
46
|
`}
|
|
42
|
-
`,
|
|
43
|
-
${
|
|
44
|
-
`,
|
|
45
|
-
${
|
|
46
|
-
`,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
`, x = s.a`
|
|
48
|
+
${c}
|
|
49
|
+
`, b = s(y)`
|
|
50
|
+
${c}
|
|
51
|
+
`, R = ({
|
|
52
|
+
children: r,
|
|
53
|
+
color: a,
|
|
54
|
+
download: e,
|
|
55
|
+
href: i,
|
|
56
|
+
iconPosition: o = "right",
|
|
57
|
+
onClick: l,
|
|
58
|
+
target: n,
|
|
59
|
+
variant: d = "lowRelevance"
|
|
60
|
+
}) => {
|
|
61
|
+
const f = i.startsWith("https://"), t = /* @__PURE__ */ g(
|
|
62
|
+
w,
|
|
63
|
+
{
|
|
64
|
+
icon: e === void 0 ? "arrow-up-right-from-square" : "arrow-down-to-bracket",
|
|
65
|
+
iconSize: "xxs",
|
|
66
|
+
iconType: "fa-regular",
|
|
67
|
+
ml: 0.25,
|
|
68
|
+
mr: 0.25
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
return f ? /* @__PURE__ */ p(
|
|
72
|
+
x,
|
|
73
|
+
{
|
|
74
|
+
$color: a,
|
|
75
|
+
$variant: d,
|
|
76
|
+
download: e,
|
|
77
|
+
href: i,
|
|
78
|
+
onClick: l,
|
|
79
|
+
rel: "nofollow noopener noreferrer",
|
|
80
|
+
target: n ?? "_blank",
|
|
81
|
+
children: [
|
|
82
|
+
o === "left" ? t : void 0,
|
|
83
|
+
r,
|
|
84
|
+
o === "right" ? t : void 0
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
) : /* @__PURE__ */ p(
|
|
88
|
+
b,
|
|
89
|
+
{
|
|
90
|
+
$variant: d,
|
|
91
|
+
download: e,
|
|
92
|
+
onClick: l,
|
|
93
|
+
rel: "nofollow noopener noreferrer",
|
|
94
|
+
target: n,
|
|
95
|
+
to: i,
|
|
96
|
+
children: [
|
|
97
|
+
n !== void 0 && o === "left" ? t : void 0,
|
|
98
|
+
r,
|
|
99
|
+
n !== void 0 && o === "right" ? t : void 0
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
49
103
|
};
|
|
50
104
|
export {
|
|
51
|
-
|
|
105
|
+
R as Link
|
|
52
106
|
};
|
|
@@ -1,16 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Children as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { L as
|
|
5
|
-
import { a as
|
|
6
|
-
import { Container as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { Link as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Children as C, isValidElement as L, cloneElement as g } from "react";
|
|
3
|
+
import { useTheme as I } from "styled-components";
|
|
4
|
+
import { L as d } from "../../styles-Bdque9TT.mjs";
|
|
5
|
+
import { a as D } from "../../styles-Bdque9TT.mjs";
|
|
6
|
+
import { Container as j } from "../container/index.js";
|
|
7
|
+
import { Icon as c } from "../icon/index.js";
|
|
8
|
+
import { Link as k } from "../link/index.js";
|
|
9
|
+
const w = ({
|
|
10
|
+
children: i,
|
|
11
|
+
disabled: r = !1,
|
|
12
|
+
icon: o,
|
|
13
|
+
iconType: m = "fa-light",
|
|
14
|
+
href: s,
|
|
15
|
+
onClick: x,
|
|
16
|
+
onKeyDown: u,
|
|
17
|
+
selected: a = !1,
|
|
18
|
+
value: e,
|
|
19
|
+
...h
|
|
20
|
+
}) => {
|
|
21
|
+
const p = I().palette.gray[r ? 300 : 800], l = r ? C.map(i, (t) => L(t) ? g(t, {
|
|
22
|
+
disabled: r,
|
|
23
|
+
...t.props
|
|
24
|
+
}) : t) : i;
|
|
25
|
+
return /* @__PURE__ */ f(
|
|
26
|
+
d,
|
|
27
|
+
{
|
|
28
|
+
"aria-disabled": r,
|
|
29
|
+
"aria-label": e,
|
|
30
|
+
"aria-selected": a,
|
|
31
|
+
"data-testid": e,
|
|
32
|
+
onClick: x,
|
|
33
|
+
onKeyDown: u,
|
|
34
|
+
value: e,
|
|
35
|
+
...h,
|
|
36
|
+
children: [
|
|
37
|
+
o !== void 0 || e !== void 0 ? /* @__PURE__ */ f(j, { alignItems: "center", display: "flex", gap: 0.625, children: [
|
|
38
|
+
o ? /* @__PURE__ */ n(
|
|
39
|
+
c,
|
|
40
|
+
{
|
|
41
|
+
disabled: r,
|
|
42
|
+
icon: o,
|
|
43
|
+
iconColor: p,
|
|
44
|
+
iconSize: "xs",
|
|
45
|
+
iconType: m
|
|
46
|
+
}
|
|
47
|
+
) : null,
|
|
48
|
+
s === void 0 ? l : /* @__PURE__ */ n(k, { href: s, children: l })
|
|
49
|
+
] }) : null,
|
|
50
|
+
a ? /* @__PURE__ */ n(
|
|
51
|
+
c,
|
|
52
|
+
{
|
|
53
|
+
disabled: r,
|
|
54
|
+
icon: "check",
|
|
55
|
+
iconColor: p,
|
|
56
|
+
iconSize: "xs",
|
|
57
|
+
iconType: m
|
|
58
|
+
}
|
|
59
|
+
) : null
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
12
63
|
};
|
|
13
64
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
65
|
+
w as ListItem,
|
|
66
|
+
D as ListItemsWrapper
|
|
16
67
|
};
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
const
|
|
4
|
-
${({
|
|
5
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as i } from "styled-components";
|
|
3
|
+
const s = i.span`
|
|
4
|
+
${({
|
|
5
|
+
theme: o,
|
|
6
|
+
$bgColor: a = o.palette.secondary[500],
|
|
7
|
+
$txtDecoration: t = "none"
|
|
8
|
+
}) => `
|
|
9
|
+
background-color: ${a};
|
|
6
10
|
border-radius: 5px;
|
|
7
|
-
color: ${
|
|
11
|
+
color: ${o.palette.white};
|
|
8
12
|
font-size: 10px;
|
|
9
|
-
padding: ${
|
|
10
|
-
text-decoration: ${
|
|
13
|
+
padding: ${o.spacing[0.125]} ${o.spacing[0.25]} ${o.spacing[0.125]} ${o.spacing[0.25]};
|
|
14
|
+
text-decoration: ${t}
|
|
11
15
|
`}
|
|
12
|
-
`, l = ({
|
|
16
|
+
`, l = ({
|
|
17
|
+
bgColor: o,
|
|
18
|
+
children: a,
|
|
19
|
+
txtDecoration: t,
|
|
20
|
+
ml: n = 1
|
|
21
|
+
}) => /* @__PURE__ */ r(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
$bgColor: o,
|
|
25
|
+
$txtDecoration: t,
|
|
26
|
+
className: `ml-${n}`,
|
|
27
|
+
children: a
|
|
28
|
+
}
|
|
29
|
+
);
|
|
13
30
|
export {
|
|
14
31
|
l as LittleFlag
|
|
15
32
|
};
|