@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,28 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as $ } from "react";
|
|
3
|
-
import { styled as
|
|
4
|
-
import { B as
|
|
5
|
-
const
|
|
3
|
+
import { styled as s } from "styled-components";
|
|
4
|
+
import { B as l } from "../../styles-CplEd2kw.mjs";
|
|
5
|
+
const f = s(l)`
|
|
6
6
|
display: grid;
|
|
7
7
|
gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
|
|
8
8
|
grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
|
|
9
9
|
|
|
10
|
-
${({ theme: r, $xl:
|
|
10
|
+
${({ theme: r, $xl: t, $lg: e, $md: i }) => `
|
|
11
11
|
@media (width >= ${r.breakpoints.sm}) {
|
|
12
|
-
grid-template-columns: repeat(${
|
|
12
|
+
grid-template-columns: repeat(${i}, 1fr);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@media (width >= ${r.breakpoints.md}) {
|
|
16
|
-
grid-template-columns: repeat(${
|
|
16
|
+
grid-template-columns: repeat(${e}, 1fr);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@media (width >= ${r.breakpoints.lg}) {
|
|
20
|
-
grid-template-columns: repeat(${
|
|
20
|
+
grid-template-columns: repeat(${t}, 1fr);
|
|
21
21
|
}
|
|
22
22
|
`}
|
|
23
|
-
`,
|
|
24
|
-
|
|
23
|
+
`, C = $(function({
|
|
24
|
+
children: t,
|
|
25
|
+
md: e,
|
|
26
|
+
sm: i,
|
|
27
|
+
lg: o,
|
|
28
|
+
xl: a,
|
|
29
|
+
gap: m,
|
|
30
|
+
...n
|
|
31
|
+
}, p) {
|
|
32
|
+
return /* @__PURE__ */ d(
|
|
33
|
+
f,
|
|
34
|
+
{
|
|
35
|
+
$gap: m,
|
|
36
|
+
$lg: o,
|
|
37
|
+
$md: e,
|
|
38
|
+
$sm: i,
|
|
39
|
+
$xl: a,
|
|
40
|
+
ref: p,
|
|
41
|
+
...n,
|
|
42
|
+
children: t
|
|
43
|
+
}
|
|
44
|
+
);
|
|
25
45
|
});
|
|
26
46
|
export {
|
|
27
|
-
|
|
47
|
+
C as GridContainer
|
|
28
48
|
};
|
|
@@ -1,25 +1,134 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { useState as p, useCallback as d, useEffect as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { S as L, O as
|
|
2
|
+
import { useState as p, useCallback as d, useEffect as z } from "react";
|
|
3
|
+
import { createPortal as T } from "react-dom";
|
|
4
|
+
import { useTheme as v } from "styled-components";
|
|
5
|
+
import { S as L, O as j, a as k } from "../../index-CWlrSlUk.mjs";
|
|
6
6
|
import { Container as t } from "../container/index.js";
|
|
7
|
-
import { Divider as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { IconButton as
|
|
10
|
-
import { Search as
|
|
7
|
+
import { Divider as O } from "../divider/index.js";
|
|
8
|
+
import { Icon as B } from "../icon/index.js";
|
|
9
|
+
import { IconButton as F } from "../icon-button/index.js";
|
|
10
|
+
import { Search as G } from "../search/index.js";
|
|
11
11
|
import "../typography/heading/index.js";
|
|
12
12
|
import "../typography/span/index.js";
|
|
13
13
|
import { Text as h } from "../typography/text/index.js";
|
|
14
|
-
const Q = ({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
const Q = ({
|
|
15
|
+
isOpen: f = !0,
|
|
16
|
+
items: n,
|
|
17
|
+
handleNewOrganization: u,
|
|
18
|
+
onSelect: g,
|
|
19
|
+
onClose: x,
|
|
20
|
+
selectedItem: y,
|
|
21
|
+
title: C,
|
|
22
|
+
variant: S
|
|
23
|
+
}) => {
|
|
24
|
+
const o = v(), [c, l] = p(n), [s, m] = p(""), a = d(
|
|
25
|
+
(r) => {
|
|
26
|
+
l(
|
|
27
|
+
(I) => I.filter(
|
|
28
|
+
(b) => String(b.name).toLowerCase().includes(r.toLocaleLowerCase())
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
[l]
|
|
33
|
+
), w = d(
|
|
34
|
+
(r) => {
|
|
35
|
+
r.currentTarget && (m(r.currentTarget.value), a(r.currentTarget.value));
|
|
36
|
+
},
|
|
37
|
+
[m, a]
|
|
38
|
+
);
|
|
39
|
+
return z(() => {
|
|
40
|
+
l(n), a(s);
|
|
41
|
+
}, [n, a, s]), f ? T(/* @__PURE__ */ e(
|
|
42
|
+
t,
|
|
43
|
+
{
|
|
44
|
+
"aria-modal": "true",
|
|
45
|
+
className: "comp-modal fixed inset-0 overflow-auto",
|
|
46
|
+
zIndex: 99999,
|
|
47
|
+
children: /* @__PURE__ */ e(
|
|
48
|
+
t,
|
|
49
|
+
{
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
bgColor: "rgb(52 64 84 / 70%)",
|
|
52
|
+
display: "flex",
|
|
53
|
+
height: "100vh",
|
|
54
|
+
justify: "center",
|
|
55
|
+
left: "0",
|
|
56
|
+
top: "0",
|
|
57
|
+
width: "100%",
|
|
58
|
+
children: /* @__PURE__ */ i(L, { $itemsLength: c.length, children: [
|
|
59
|
+
/* @__PURE__ */ i(
|
|
60
|
+
t,
|
|
61
|
+
{
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
display: "flex",
|
|
64
|
+
justify: "space-between",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
h,
|
|
68
|
+
{
|
|
69
|
+
color: o.palette.gray[800],
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
size: "lg",
|
|
72
|
+
children: C
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
F,
|
|
77
|
+
{
|
|
78
|
+
icon: "xmark",
|
|
79
|
+
iconColor: o.palette.gray[400],
|
|
80
|
+
iconSize: "xs",
|
|
81
|
+
iconType: "fa-light",
|
|
82
|
+
onClick: x,
|
|
83
|
+
variant: "ghost"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ e(t, { mt: 1, children: /* @__PURE__ */ e(G, { onInput: w, placeholder: "Search" }) }),
|
|
90
|
+
/* @__PURE__ */ e(O, { mb: 1, mt: 1 }),
|
|
91
|
+
/* @__PURE__ */ i(
|
|
92
|
+
t,
|
|
93
|
+
{
|
|
94
|
+
display: "inline-flex",
|
|
95
|
+
gap: 1,
|
|
96
|
+
maxHeight: "332px",
|
|
97
|
+
scroll: "y",
|
|
98
|
+
wrap: "wrap",
|
|
99
|
+
children: [
|
|
100
|
+
S === "organization-selector" ? /* @__PURE__ */ e(j, { onClick: u, children: /* @__PURE__ */ i(t, { alignItems: "center", display: "flex", children: [
|
|
101
|
+
/* @__PURE__ */ e(
|
|
102
|
+
B,
|
|
103
|
+
{
|
|
104
|
+
icon: "square-plus",
|
|
105
|
+
iconColor: o.palette.gray[400],
|
|
106
|
+
iconSize: "xs",
|
|
107
|
+
iconType: "fa-light",
|
|
108
|
+
mr: 0.5
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ e(h, { color: o.palette.gray[400], size: "sm", children: "New organization" })
|
|
112
|
+
] }) }) : void 0,
|
|
113
|
+
c.map(
|
|
114
|
+
(r) => /* @__PURE__ */ e(
|
|
115
|
+
k,
|
|
116
|
+
{
|
|
117
|
+
isSelected: y.toLowerCase() === r.name,
|
|
118
|
+
label: r.name.charAt(0).toUpperCase() + r.name.slice(1),
|
|
119
|
+
onSelect: g
|
|
120
|
+
},
|
|
121
|
+
r.name
|
|
122
|
+
)
|
|
123
|
+
)
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] })
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
), document.body) : /* @__PURE__ */ e("div", {});
|
|
23
132
|
};
|
|
24
133
|
export {
|
|
25
134
|
Q as GroupSelector
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "styled-components";
|
|
4
|
-
import { O, a as s } from "../../../index-
|
|
4
|
+
import { O, a as s } from "../../../index-CWlrSlUk.mjs";
|
|
5
5
|
import "../../icon/index.js";
|
|
6
6
|
import "../../typography/heading/index.js";
|
|
7
7
|
import "../../typography/span/index.js";
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
|
-
import { styled as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { styled as c } from "styled-components";
|
|
4
|
+
import { c as b } from "../../styles-CplEd2kw.mjs";
|
|
5
|
+
const y = {
|
|
6
|
+
xl: "96px",
|
|
7
|
+
lg: "64px",
|
|
8
|
+
md: "32px",
|
|
9
|
+
sm: "24px",
|
|
10
|
+
xs: "16px",
|
|
11
|
+
xxs: "12px",
|
|
12
|
+
xxss: "10px"
|
|
13
|
+
}, z = c(b)`
|
|
14
|
+
${({
|
|
15
|
+
$clickable: i,
|
|
16
|
+
$color: o = "inherit",
|
|
17
|
+
$disabled: a = !1,
|
|
18
|
+
$hoverColor: e,
|
|
19
|
+
$rotation: r,
|
|
20
|
+
$size: n,
|
|
21
|
+
$secondaryColor: s
|
|
22
|
+
}) => {
|
|
23
|
+
const t = e ? "" : "brightness(50%)", l = e ?? "";
|
|
24
|
+
return `
|
|
25
|
+
color: ${o};
|
|
26
|
+
cursor: ${i ? "pointer" : "inherit"};
|
|
27
|
+
font-size: ${y[n]};
|
|
10
28
|
line-height: 0;
|
|
11
29
|
vertical-align: middle;
|
|
12
30
|
pointer-events: inherit;
|
|
13
|
-
opacity: ${
|
|
31
|
+
opacity: ${a ? "0.5" : "1"};
|
|
14
32
|
|
|
15
33
|
> svg {
|
|
16
|
-
--fa-secondary-color: ${
|
|
34
|
+
--fa-secondary-color: ${s};
|
|
17
35
|
transform: ${r === void 0 ? "" : `rotate(${r}deg)`};
|
|
18
36
|
}
|
|
19
37
|
|
|
@@ -26,13 +44,14 @@ const u = { xl: "96px", lg: "64px", md: "32px", sm: "24px", xs: "16px", xxs: "12
|
|
|
26
44
|
fill: url(#gradient-02);
|
|
27
45
|
}
|
|
28
46
|
|
|
29
|
-
${
|
|
30
|
-
filter: ${
|
|
31
|
-
color: ${
|
|
47
|
+
${i ? `&:hover {
|
|
48
|
+
filter: ${t};
|
|
49
|
+
color: ${l};
|
|
32
50
|
}` : ""}
|
|
33
|
-
|
|
51
|
+
`;
|
|
52
|
+
}}
|
|
34
53
|
`;
|
|
35
|
-
|
|
54
|
+
c.div`
|
|
36
55
|
cursor: pointer;
|
|
37
56
|
transition: all 0.2s ease-in-out;
|
|
38
57
|
|
|
@@ -40,9 +59,50 @@ d.div`
|
|
|
40
59
|
transform: scale(1.2);
|
|
41
60
|
}
|
|
42
61
|
`;
|
|
43
|
-
const
|
|
44
|
-
|
|
62
|
+
const w = v(function({
|
|
63
|
+
clickable: o,
|
|
64
|
+
disabled: a,
|
|
65
|
+
hoverColor: e,
|
|
66
|
+
icon: r,
|
|
67
|
+
iconClass: n = "",
|
|
68
|
+
iconColor: s,
|
|
69
|
+
iconMask: t,
|
|
70
|
+
iconSize: l,
|
|
71
|
+
iconTransform: d,
|
|
72
|
+
iconType: f = "fa-solid",
|
|
73
|
+
onClick: p,
|
|
74
|
+
rotation: m,
|
|
75
|
+
spanClass: g,
|
|
76
|
+
secondaryColor: x,
|
|
77
|
+
...h
|
|
78
|
+
}, u) {
|
|
79
|
+
return /* @__PURE__ */ $(
|
|
80
|
+
z,
|
|
81
|
+
{
|
|
82
|
+
$clickable: o,
|
|
83
|
+
$color: s,
|
|
84
|
+
$disabled: a,
|
|
85
|
+
$hoverColor: e,
|
|
86
|
+
$rotation: m,
|
|
87
|
+
$secondaryColor: x,
|
|
88
|
+
$size: l,
|
|
89
|
+
className: g,
|
|
90
|
+
"data-testid": `${r}-icon`,
|
|
91
|
+
onClick: p,
|
|
92
|
+
ref: u,
|
|
93
|
+
...h,
|
|
94
|
+
children: /* @__PURE__ */ $(
|
|
95
|
+
"i",
|
|
96
|
+
{
|
|
97
|
+
className: `${f} fa-${r} ${n}`,
|
|
98
|
+
...t !== void 0 ? { "data-fa-mask": t } : {},
|
|
99
|
+
...d !== void 0 ? { "data-fa-transform": d } : {}
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
},
|
|
103
|
+
`${f}-${r}`
|
|
104
|
+
);
|
|
45
105
|
});
|
|
46
106
|
export {
|
|
47
|
-
|
|
107
|
+
w as Icon
|
|
48
108
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { styled as
|
|
4
|
-
import { S as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S } from "react";
|
|
3
|
+
import { styled as T } from "styled-components";
|
|
4
|
+
import { S as j } from "../../styles-B2N0JLw1.mjs";
|
|
5
5
|
import { Icon as k } from "../icon/index.js";
|
|
6
|
-
import { T as
|
|
7
|
-
const
|
|
8
|
-
${({ theme:
|
|
9
|
-
--btn-spacing: ${
|
|
10
|
-
--btn-padding-x: ${
|
|
11
|
-
--btn-padding-y: ${
|
|
6
|
+
import { T as w } from "../../index-DwznImvK.mjs";
|
|
7
|
+
const R = T(j)`
|
|
8
|
+
${({ theme: r, $borderRadius: t = "4px", $px: n = 0.5, $py: o = 0.5 }) => `
|
|
9
|
+
--btn-spacing: ${t};
|
|
10
|
+
--btn-padding-x: ${r.spacing[n]};
|
|
11
|
+
--btn-padding-y: ${r.spacing[o]};
|
|
12
12
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
line-height: 0;
|
|
@@ -18,10 +18,59 @@ const j = C(R)`
|
|
|
18
18
|
margin: 0 !important;
|
|
19
19
|
}
|
|
20
20
|
`}
|
|
21
|
-
`,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
`, E = S(function({
|
|
22
|
+
borderRadius: t,
|
|
23
|
+
disabled: n,
|
|
24
|
+
icon: o,
|
|
25
|
+
iconColor: m,
|
|
26
|
+
iconSize: s = "xxs",
|
|
27
|
+
iconTransform: f,
|
|
28
|
+
iconType: d,
|
|
29
|
+
id: a,
|
|
30
|
+
justify: g = "center",
|
|
31
|
+
onClick: u,
|
|
32
|
+
px: $,
|
|
33
|
+
py: x,
|
|
34
|
+
type: e = "button",
|
|
35
|
+
tooltip: c,
|
|
36
|
+
tooltipPlace: b,
|
|
37
|
+
value: y,
|
|
38
|
+
variant: p = "primary",
|
|
39
|
+
...B
|
|
40
|
+
}, I) {
|
|
41
|
+
const l = /* @__PURE__ */ i(
|
|
42
|
+
R,
|
|
43
|
+
{
|
|
44
|
+
$borderRadius: t,
|
|
45
|
+
$px: $,
|
|
46
|
+
$py: x,
|
|
47
|
+
$variant: p,
|
|
48
|
+
"aria-disabled": n,
|
|
49
|
+
"aria-label": a,
|
|
50
|
+
borderRadius: t,
|
|
51
|
+
disabled: n,
|
|
52
|
+
id: a,
|
|
53
|
+
justify: g,
|
|
54
|
+
onClick: u,
|
|
55
|
+
ref: I,
|
|
56
|
+
type: e,
|
|
57
|
+
value: y,
|
|
58
|
+
...B,
|
|
59
|
+
children: /* @__PURE__ */ i(
|
|
60
|
+
k,
|
|
61
|
+
{
|
|
62
|
+
clickable: !1,
|
|
63
|
+
icon: o,
|
|
64
|
+
iconColor: m,
|
|
65
|
+
iconSize: s,
|
|
66
|
+
iconTransform: f,
|
|
67
|
+
iconType: d
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
), h = (e + (p ?? "") + (a ?? o)).replace(/ /u, "_");
|
|
72
|
+
return c === void 0 ? l : /* @__PURE__ */ i(w, { id: `${h}-tooltip`, place: b, tip: c, children: l });
|
|
24
73
|
});
|
|
25
74
|
export {
|
|
26
|
-
|
|
75
|
+
E as IconButton
|
|
27
76
|
};
|
|
@@ -1,15 +1,74 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isUndefined as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { Container as
|
|
5
|
-
import { T as
|
|
6
|
-
import { Heading as
|
|
1
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { isUndefined as r } from "lodash";
|
|
3
|
+
import { useTheme as h } from "styled-components";
|
|
4
|
+
import { Container as p } from "../container/index.js";
|
|
5
|
+
import { T as b } from "../../index-DwznImvK.mjs";
|
|
6
|
+
import { Heading as C } from "../typography/heading/index.js";
|
|
7
7
|
import "../typography/span/index.js";
|
|
8
|
-
import { Text as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { Text as T } from "../typography/text/index.js";
|
|
9
|
+
const W = ({
|
|
10
|
+
description: s,
|
|
11
|
+
height: m = "auto",
|
|
12
|
+
leftIconName: o,
|
|
13
|
+
children: c,
|
|
14
|
+
rightIconName: d,
|
|
15
|
+
title: a,
|
|
16
|
+
tooltipId: f,
|
|
17
|
+
tooltipTip: g,
|
|
18
|
+
tooltipPlace: x = "bottom",
|
|
19
|
+
variant: u = "centered",
|
|
20
|
+
width: y = "318px"
|
|
21
|
+
}) => {
|
|
22
|
+
const t = h(), e = u === "centered", i = /* @__PURE__ */ l(
|
|
23
|
+
b,
|
|
24
|
+
{
|
|
25
|
+
icon: d ?? o,
|
|
26
|
+
iconColor: t.palette.gray[800],
|
|
27
|
+
id: f,
|
|
28
|
+
place: x,
|
|
29
|
+
tip: g
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
return /* @__PURE__ */ n(
|
|
33
|
+
p,
|
|
34
|
+
{
|
|
35
|
+
alignItems: e ? "center" : "flex-start",
|
|
36
|
+
bgColor: t.palette.gray[50],
|
|
37
|
+
border: `1px solid ${t.palette.gray[200]}`,
|
|
38
|
+
borderRadius: "4px",
|
|
39
|
+
display: "inline-flex",
|
|
40
|
+
flexDirection: e ? "column" : "column-reverse",
|
|
41
|
+
gap: 0.5,
|
|
42
|
+
height: m,
|
|
43
|
+
justify: "center",
|
|
44
|
+
padding: [1.25, 1.25, 1.25, 1.25],
|
|
45
|
+
width: y,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ n(p, { alignItems: "center", display: "flex", gap: 0.5, children: [
|
|
48
|
+
e || r(o) ? void 0 : i,
|
|
49
|
+
/* @__PURE__ */ l(
|
|
50
|
+
T,
|
|
51
|
+
{
|
|
52
|
+
color: e ? t.palette.gray[800] : t.palette.gray[400],
|
|
53
|
+
size: "md",
|
|
54
|
+
textAlign: e ? "center" : "start",
|
|
55
|
+
children: s
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
e || r(d) ? void 0 : i
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ n(p, { alignItems: "center", display: "flex", gap: 0.5, my: 0.5, children: [
|
|
61
|
+
e && !r(o) ? i : void 0,
|
|
62
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", gap: "12px" }, children: [
|
|
63
|
+
r(a) ? void 0 : /* @__PURE__ */ l(C, { fontWeight: "bold", size: "md", children: a }),
|
|
64
|
+
c
|
|
65
|
+
] }),
|
|
66
|
+
e && !r(d) ? i : void 0
|
|
67
|
+
] })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
12
71
|
};
|
|
13
72
|
export {
|
|
14
|
-
|
|
73
|
+
W as IndicatorCard
|
|
15
74
|
};
|
|
@@ -1,16 +1,116 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTheme as
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as x } from "styled-components";
|
|
3
3
|
import { Button as h } from "../button/index.js";
|
|
4
4
|
import { Container as t } from "../container/index.js";
|
|
5
5
|
import { IconButton as y } from "../icon-button/index.js";
|
|
6
6
|
import { Tabs as g } from "../tabs/index.js";
|
|
7
7
|
import "../typography/heading/index.js";
|
|
8
8
|
import "../typography/span/index.js";
|
|
9
|
-
import { Text as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import { Text as u } from "../typography/text/index.js";
|
|
10
|
+
const D = ({
|
|
11
|
+
actions: a,
|
|
12
|
+
children: m,
|
|
13
|
+
header: f,
|
|
14
|
+
title: c,
|
|
15
|
+
tabs: d,
|
|
16
|
+
footer: n
|
|
17
|
+
}) => {
|
|
18
|
+
const i = x();
|
|
19
|
+
return /* @__PURE__ */ p(
|
|
20
|
+
t,
|
|
21
|
+
{
|
|
22
|
+
alignItems: "flex-start",
|
|
23
|
+
bgColor: i.palette.white,
|
|
24
|
+
borderLeft: `1px solid ${i.palette.gray[300]}`,
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
maxHeight: "750px",
|
|
28
|
+
width: "480px",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ p(
|
|
31
|
+
t,
|
|
32
|
+
{
|
|
33
|
+
alignItems: "flex-start",
|
|
34
|
+
alignSelf: "stretch",
|
|
35
|
+
borderBottom: `1px solid ${i.palette.gray[300]}`,
|
|
36
|
+
display: "flex",
|
|
37
|
+
gap: 0.25,
|
|
38
|
+
justify: "space-between",
|
|
39
|
+
px: 1.25,
|
|
40
|
+
py: 1,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ p(t, { display: "flex", flexDirection: "column", gap: 0.25, children: [
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
color: i.palette.gray[800],
|
|
47
|
+
fontWeight: "bold",
|
|
48
|
+
lineSpacing: 1.75,
|
|
49
|
+
size: "xl",
|
|
50
|
+
children: c
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
f
|
|
54
|
+
] }),
|
|
55
|
+
a && /* @__PURE__ */ e(t, { display: "flex", gap: 0.25, children: a.map(
|
|
56
|
+
({ icon: r, onClick: l }, o) => /* @__PURE__ */ e(
|
|
57
|
+
y,
|
|
58
|
+
{
|
|
59
|
+
icon: r ?? "paper-plane",
|
|
60
|
+
iconColor: i.palette.gray[400],
|
|
61
|
+
iconSize: "xxs",
|
|
62
|
+
iconType: "fa-light",
|
|
63
|
+
onClick: l,
|
|
64
|
+
variant: "ghost"
|
|
65
|
+
},
|
|
66
|
+
`${o}-${r}`
|
|
67
|
+
)
|
|
68
|
+
) })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(t, { display: "flex", pt: 0.25, width: "100%", children: /* @__PURE__ */ e(g, { items: d }) }),
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
t,
|
|
75
|
+
{
|
|
76
|
+
alignSelf: "stretch",
|
|
77
|
+
display: "flex",
|
|
78
|
+
flexDirection: "column",
|
|
79
|
+
px: 1.25,
|
|
80
|
+
py: 1,
|
|
81
|
+
scroll: "y",
|
|
82
|
+
children: m
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
n && /* @__PURE__ */ e(
|
|
86
|
+
t,
|
|
87
|
+
{
|
|
88
|
+
alignSelf: "stretch",
|
|
89
|
+
borderTop: `1px solid ${i.palette.gray[300]}`,
|
|
90
|
+
display: "flex",
|
|
91
|
+
gap: 0.5,
|
|
92
|
+
justify: "end",
|
|
93
|
+
px: 1.25,
|
|
94
|
+
py: 1,
|
|
95
|
+
children: n.map(
|
|
96
|
+
({ icon: r, text: l, onClick: o }, s) => /* @__PURE__ */ e(
|
|
97
|
+
h,
|
|
98
|
+
{
|
|
99
|
+
icon: r,
|
|
100
|
+
onClick: o,
|
|
101
|
+
variant: s === 0 ? "primary" : "tertiary",
|
|
102
|
+
width: "100%",
|
|
103
|
+
children: l
|
|
104
|
+
},
|
|
105
|
+
`${s}-${l}`
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
);
|
|
13
113
|
};
|
|
14
114
|
export {
|
|
15
|
-
|
|
115
|
+
D as InfoSidebar
|
|
16
116
|
};
|