@fluidattacks/design 3.1.13 → 3.2.0
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 +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -20
- package/dist/components/accordion/index.js +5 -76
- package/dist/components/alert/index.js +4 -162
- package/dist/components/button/index.js +4 -67
- package/dist/components/card/card-header/index.js +4 -81
- package/dist/components/card/card-with-image/index.js +5 -91
- package/dist/components/card/card-with-input/index.js +5 -103
- package/dist/components/card/card-with-selector/index.js +4 -69
- package/dist/components/card/card-with-switch/index.js +4 -48
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -73
- package/dist/components/checkbox/index.js +4 -116
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -70
- package/dist/components/code-snippet/location-code/index.js +7 -169
- package/dist/components/colors/index.js +7 -222
- package/dist/components/confirm-dialog/index.js +4 -43
- package/dist/components/container/index.js +4 -49
- package/dist/components/content-card/category-tag/index.js +4 -40
- package/dist/components/content-card/event-date/index.js +5 -59
- package/dist/components/content-card/index.js +4 -166
- package/dist/components/content-card-carousel/index.js +4 -93
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -23
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -83
- package/dist/components/file-preview/index.js +3 -42
- package/dist/components/form/index.js +4 -61
- package/dist/components/grid-container/index.js +4 -46
- package/dist/components/group-selector/index.js +6 -133
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -106
- package/dist/components/icon-button/index.js +4 -74
- package/dist/components/indicator-card/index.js +5 -72
- package/dist/components/info-sidebar/index.js +4 -114
- package/dist/components/inputs/fields/combobox/index.js +7 -144
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
- package/dist/components/inputs/fields/date/calendar/index.js +6 -28
- package/dist/components/inputs/fields/date/index.js +8 -66
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-range/index.js +6 -106
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
- package/dist/components/inputs/fields/date-time/index.js +6 -67
- package/dist/components/inputs/fields/editable/index.js +4 -26
- package/dist/components/inputs/fields/input/index.js +5 -75
- package/dist/components/inputs/fields/input-file/index.js +6 -123
- package/dist/components/inputs/fields/input-tags/index.js +4 -66
- package/dist/components/inputs/fields/number/index.js +4 -55
- package/dist/components/inputs/fields/number-range/index.js +4 -47
- package/dist/components/inputs/fields/phone/index.js +7 -577
- package/dist/components/inputs/fields/text-area/index.js +5 -79
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -36
- package/dist/components/inputs/outline-container/index.js +4 -102
- package/dist/components/inputs/utils/action-button/index.js +4 -29
- package/dist/components/inputs/utils/calendar-button/index.js +5 -35
- package/dist/components/inputs/utils/date-selector/index.js +3 -60
- package/dist/components/inputs/utils/date-time-field/index.js +10 -131
- package/dist/components/inputs/utils/dialog/index.js +5 -12
- package/dist/components/inputs/utils/number-field/index.js +5 -84
- package/dist/components/inputs/utils/popover/index.js +5 -42
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -116
- package/dist/components/language-selector/index.js +4 -35
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -104
- package/dist/components/list-item/index.js +6 -65
- package/dist/components/little-flag/index.js +3 -30
- package/dist/components/loading/index.js +4 -92
- package/dist/components/logo/index.js +2 -10
- package/dist/components/logo-carousel/index.js +4 -85
- package/dist/components/lottie/index.js +3 -18
- package/dist/components/menu/index.js +5 -64
- package/dist/components/message-banner/index.js +5 -99
- package/dist/components/modal/index.js +6 -63
- package/dist/components/modal/modal-confirm/index.js +3 -49
- package/dist/components/modal/modal-footer/index.js +5 -23
- package/dist/components/modal/modal-header/index.js +6 -49
- package/dist/components/notification/index.js +5 -111
- package/dist/components/notification-sign/index.js +4 -45
- package/dist/components/number-input/index.js +5 -87
- package/dist/components/oauth-selector/index.js +6 -98
- package/dist/components/oauth-selector/option-container/index.js +4 -74
- package/dist/components/plan-card/index.js +3 -153
- package/dist/components/plan-card/recommended-tag/index.js +3 -29
- package/dist/components/pop-up/description/index.js +5 -49
- package/dist/components/pop-up/index.js +7 -150
- package/dist/components/premium-feature/index.js +4 -83
- package/dist/components/priority-score/index.js +4 -27
- package/dist/components/progress/index.js +5 -45
- package/dist/components/progress-bar/index.js +3 -151
- package/dist/components/radio-button/index.js +4 -123
- package/dist/components/scroll-button/index.js +4 -40
- package/dist/components/search/index.js +7 -103
- package/dist/components/search-bar/index.js +4 -217
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -72
- package/dist/components/severity-overview/badge/index.js +4 -67
- package/dist/components/severity-overview/index.js +3 -15
- package/dist/components/show-on-hover/index.js +3 -29
- package/dist/components/slide-out-menu/index.js +6 -3453
- package/dist/components/slide-out-menu/menu-item/index.js +4 -65
- package/dist/components/slider/index.js +7 -122
- package/dist/components/slider/thumb/index.js +5 -15
- package/dist/components/step-lapse/index.js +4 -157
- package/dist/components/table-button/index.js +4 -95
- package/dist/components/tabs/fixed-tabs/index.js +3 -27
- package/dist/components/tabs/index.js +6 -55
- package/dist/components/tabs/tab/index.js +3 -37
- package/dist/components/tag/index.js +4 -182
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -15
- package/dist/components/toggle/index.js +4 -101
- package/dist/components/toggle-buttons/index.js +4 -101
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -4582
- package/dist/components/typography/heading/index.js +4 -45
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -39
- package/dist/components/typography/text/index.js +4 -45
- package/dist/components/web-form/index.js +4 -78
- package/dist/components-C7JPRIEW.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +112 -204
- package/dist/vendor-_XDhaIzo.mjs +14504 -0
- package/package.json +3 -7
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/index-BMHVi812.mjs +0 -234
- package/dist/index-BzAniA2J.mjs +0 -135
- package/dist/index-C6LbClYh.mjs +0 -146
- package/dist/index-CAIe8hBv.mjs +0 -130
- package/dist/index-CUQBAqt_.mjs +0 -75
- package/dist/index-CWlrSlUk.mjs +0 -68
- package/dist/index-Ckmu1TfV.mjs +0 -86
- package/dist/index-DwznImvK.mjs +0 -1678
- package/dist/index-maWH3JYC.mjs +0 -3561
- package/dist/styles-B2N0JLw1.mjs +0 -114
- package/dist/styles-B64DVBIF.mjs +0 -115
- package/dist/styles-BXFVwnWT.mjs +0 -133
- package/dist/styles-BZQOqe8p.mjs +0 -141
- package/dist/styles-Bdque9TT.mjs +0 -65
- package/dist/styles-BlHspTrz.mjs +0 -144
- package/dist/styles-CROOwXEH.mjs +0 -76
- package/dist/styles-CplEd2kw.mjs +0 -228
- package/dist/styles-D1eTIklB.mjs +0 -110
- package/dist/styles-ePGii_9g.mjs +0 -74
- package/dist/use-carousel-CgAF78h3.mjs +0 -23
- package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
- package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
- package/dist/use-modal-CtgexKnf.mjs +0 -14
- package/dist/use-search-Dj47QDw9.mjs +0 -15
- package/dist/utils-V0EumEPM.mjs +0 -6
- /package/dist/assets/{index2.css → vendor.css} +0 -0
|
@@ -1,67 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as d } from "../../icon/index.js";
|
|
5
|
-
import { PremiumFeature as g } from "../../premium-feature/index.js";
|
|
6
|
-
import "../../typography/heading/index.js";
|
|
7
|
-
import "../../typography/span/index.js";
|
|
8
|
-
import { Text as o } from "../../typography/text/index.js";
|
|
9
|
-
const j = ({
|
|
10
|
-
customBadge: l = void 0,
|
|
11
|
-
description: n,
|
|
12
|
-
icon: p,
|
|
13
|
-
onClick: a,
|
|
14
|
-
requiresUpgrade: m = !1,
|
|
15
|
-
title: s
|
|
16
|
-
}) => {
|
|
17
|
-
const e = c();
|
|
18
|
-
return /* @__PURE__ */ i(
|
|
19
|
-
t,
|
|
20
|
-
{
|
|
21
|
-
bgColor: e.palette.white,
|
|
22
|
-
bgColorHover: e.palette.gray[100],
|
|
23
|
-
cursor: "pointer",
|
|
24
|
-
display: "flex",
|
|
25
|
-
gap: 0.5,
|
|
26
|
-
onClick: a,
|
|
27
|
-
px: 1.25,
|
|
28
|
-
py: 1,
|
|
29
|
-
width: "100%",
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
t,
|
|
33
|
-
{
|
|
34
|
-
alignItems: "center",
|
|
35
|
-
bgColor: e.palette.gray[300],
|
|
36
|
-
borderRadius: e.spacing[0.25],
|
|
37
|
-
display: "flex",
|
|
38
|
-
height: "24px",
|
|
39
|
-
justify: "center",
|
|
40
|
-
width: "24px",
|
|
41
|
-
children: /* @__PURE__ */ r(
|
|
42
|
-
d,
|
|
43
|
-
{
|
|
44
|
-
icon: p,
|
|
45
|
-
iconColor: e.palette.gray[800],
|
|
46
|
-
iconSize: "xxs",
|
|
47
|
-
ml: 0.5,
|
|
48
|
-
mr: 0.5
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
/* @__PURE__ */ i(t, { children: [
|
|
54
|
-
/* @__PURE__ */ i(t, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [
|
|
55
|
-
/* @__PURE__ */ r(o, { color: e.palette.gray[800], size: "sm", children: s }),
|
|
56
|
-
m ? /* @__PURE__ */ r(g, { text: "Upgrade" }) : void 0,
|
|
57
|
-
l
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ r(o, { color: e.palette.gray[400], size: "xs", children: n })
|
|
60
|
-
] })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { bt as e } from "../../../components-C7JPRIEW.mjs";
|
|
65
4
|
export {
|
|
66
|
-
|
|
5
|
+
e as MenuItem
|
|
67
6
|
};
|
|
@@ -1,124 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { Container as x } from "../container/index.js";
|
|
8
|
-
import "../typography/heading/index.js";
|
|
9
|
-
import "../typography/span/index.js";
|
|
10
|
-
import { Text as h } from "../typography/text/index.js";
|
|
11
|
-
const w = (r, t) => t >= 50 ? `
|
|
12
|
-
${r.palette.gray[200]} 50%,
|
|
13
|
-
${r.palette.primary[500]} 50.05%,
|
|
14
|
-
${r.palette.primary[500]} ${t}%,
|
|
15
|
-
${r.palette.gray[200]} ${t}%
|
|
16
|
-
` : `
|
|
17
|
-
${r.palette.gray[200]} ${t}%,
|
|
18
|
-
${r.palette.primary[500]} ${t}%,
|
|
19
|
-
${r.palette.primary[500]} 50%,
|
|
20
|
-
${r.palette.gray[200]} 50.05%,
|
|
21
|
-
${r.palette.gray[200]} 100%
|
|
22
|
-
`, k = o.div`
|
|
23
|
-
${({ theme: r, $min: t, $value: i }) => `
|
|
24
|
-
align-items: center;
|
|
25
|
-
align-self: stretch;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
justify-content: end;
|
|
29
|
-
gap: ${r.spacing[0.75]};
|
|
30
|
-
width: 304px;
|
|
31
|
-
|
|
32
|
-
.track {
|
|
33
|
-
background: linear-gradient(
|
|
34
|
-
to right,
|
|
35
|
-
${t >= 0 ? `
|
|
36
|
-
${r.palette.primary[500]} ${i}%,
|
|
37
|
-
${r.palette.gray[200]} ${i}%
|
|
38
|
-
` : w(r, i)}
|
|
39
|
-
);
|
|
40
|
-
border-radius: ${r.spacing[0.125]};
|
|
41
|
-
height: ${r.spacing[0.25]};
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.track.disabled {
|
|
46
|
-
opacity: 0.4;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.thumb {
|
|
50
|
-
background: ${r.palette.white};
|
|
51
|
-
border-radius: ${r.spacing[1.25]};
|
|
52
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
|
|
53
|
-
top: 50%;
|
|
54
|
-
height: 20px;
|
|
55
|
-
width: 20px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.thumb.dragging {
|
|
59
|
-
border: 1px solid ${r.palette.primary[500]};
|
|
60
|
-
}
|
|
61
|
-
`}
|
|
62
|
-
`, S = o.div`
|
|
63
|
-
${({ theme: r }) => `
|
|
64
|
-
align-items: center;
|
|
65
|
-
display: flex;
|
|
66
|
-
justify-content: space-between;
|
|
67
|
-
height: ${r.spacing[0.625]};
|
|
68
|
-
width: 100%;
|
|
69
|
-
|
|
70
|
-
p {
|
|
71
|
-
color: ${r.palette.gray[400]};
|
|
72
|
-
font-family: ${r.typography.type.primary};
|
|
73
|
-
font-size: ${r.spacing[0.5]};
|
|
74
|
-
}
|
|
75
|
-
`}
|
|
76
|
-
`, V = o.output`
|
|
77
|
-
${({ theme: r }) => `
|
|
78
|
-
align-items: flex-end;
|
|
79
|
-
border-radius: ${r.spacing[0.5]};
|
|
80
|
-
border: 1px solid ${r.palette.gray[300]};
|
|
81
|
-
background: ${r.palette.white};
|
|
82
|
-
display: flex;
|
|
83
|
-
gap: ${r.spacing[0.625]};
|
|
84
|
-
padding: ${r.spacing[0.625]} ${r.spacing[0.75]};
|
|
85
|
-
width: 59px;
|
|
86
|
-
`}
|
|
87
|
-
`, T = (r, t, i) => Math.round((i - r) / (t - r) * 100), D = (r) => {
|
|
88
|
-
const t = f(), i = $(null), { minValue: p = 0, maxValue: s = 100 } = r, l = u(), e = m({ ...r, numberFormatter: l }), d = T(p, s, e.getThumbValue(0)), { groupProps: c, trackProps: g } = y(
|
|
89
|
-
{ ...r, "aria-label": "slider" },
|
|
90
|
-
e,
|
|
91
|
-
i
|
|
92
|
-
);
|
|
93
|
-
return /* @__PURE__ */ n(x, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [
|
|
94
|
-
/* @__PURE__ */ n(
|
|
95
|
-
k,
|
|
96
|
-
{
|
|
97
|
-
...c,
|
|
98
|
-
$min: p ?? 0,
|
|
99
|
-
$value: d,
|
|
100
|
-
className: "slider",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ a(
|
|
103
|
-
"div",
|
|
104
|
-
{
|
|
105
|
-
...g,
|
|
106
|
-
className: `track ${e.isDisabled ? "disabled" : ""}`,
|
|
107
|
-
ref: i,
|
|
108
|
-
children: /* @__PURE__ */ a(b, { index: 0, state: e, trackRef: i })
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
/* @__PURE__ */ n(S, { children: [
|
|
112
|
-
/* @__PURE__ */ a("p", { children: `${l.format(p)} (Low)` }),
|
|
113
|
-
p < 0 && /* @__PURE__ */ a("p", { children: "0" }),
|
|
114
|
-
/* @__PURE__ */ a("p", { children: `${l.format(s)} (High)` })
|
|
115
|
-
] })
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ a(V, { children: /* @__PURE__ */ a(h, { color: t.palette.gray[800], size: "sm", textAlign: "right", children: e.getThumbValueLabel(0) }) })
|
|
120
|
-
] });
|
|
121
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import "styled-components";
|
|
6
|
+
import { aw as e } from "../../components-C7JPRIEW.mjs";
|
|
122
7
|
export {
|
|
123
|
-
|
|
8
|
+
e as Slider
|
|
124
9
|
};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
state: n,
|
|
6
|
-
trackRef: t,
|
|
7
|
-
index: e
|
|
8
|
-
}) => {
|
|
9
|
-
const i = m(null), { thumbProps: o, inputProps: s, isDragging: u } = p(
|
|
10
|
-
{ index: e, trackRef: t, inputRef: i },
|
|
11
|
-
n
|
|
12
|
-
);
|
|
13
|
-
return /* @__PURE__ */ r("div", { ...o, className: `thumb ${u ? "dragging" : ""}`, children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r("input", { ref: i, ...s }) }) });
|
|
14
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import { bu as i } from "../../../components-C7JPRIEW.mjs";
|
|
15
5
|
export {
|
|
16
|
-
|
|
6
|
+
i as Thumb
|
|
17
7
|
};
|
|
@@ -1,159 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { v as w } from "../../utils-V0EumEPM.mjs";
|
|
5
|
-
import "../../styles-CplEd2kw.mjs";
|
|
6
|
-
import { Button as d } from "../button/index.js";
|
|
7
|
-
import { Container as g } from "../container/index.js";
|
|
8
|
-
import { Icon as C } from "../icon/index.js";
|
|
9
|
-
import { Heading as z } from "../typography/heading/index.js";
|
|
10
|
-
import "../typography/span/index.js";
|
|
11
|
-
import "../typography/text/index.js";
|
|
12
|
-
const { getVariant: B } = w(
|
|
13
|
-
(t) => ({
|
|
14
|
-
completed: `
|
|
15
|
-
background-color: ${t.palette.primary[500]};
|
|
16
|
-
color: ${t.palette.white};
|
|
17
|
-
|
|
18
|
-
&::after {
|
|
19
|
-
background-color: ${t.palette.primary[500]};
|
|
20
|
-
}
|
|
21
|
-
`,
|
|
22
|
-
current: `
|
|
23
|
-
background-color: ${t.palette.primary[500]};
|
|
24
|
-
color: ${t.palette.white};
|
|
25
|
-
|
|
26
|
-
&::after {
|
|
27
|
-
background-color: ${t.palette.gray[200]};
|
|
28
|
-
}
|
|
29
|
-
`,
|
|
30
|
-
disabled: `
|
|
31
|
-
background-color: ${t.palette.gray[200]};
|
|
32
|
-
outline: 1px solid ${t.palette.gray[400]};
|
|
33
|
-
outline-offset: -1px;
|
|
34
|
-
color: ${t.palette.gray[400]};
|
|
35
|
-
|
|
36
|
-
&::after {
|
|
37
|
-
background-color: ${t.palette.gray[200]};
|
|
38
|
-
}
|
|
39
|
-
`
|
|
40
|
-
})
|
|
41
|
-
), N = e.div`
|
|
42
|
-
${({ theme: t }) => `
|
|
43
|
-
align-items: stretch;
|
|
44
|
-
background-color: ${t.palette.white};
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
height: 100%;
|
|
48
|
-
padding: ${`${t.spacing[1]} ${t.spacing[1]}`};
|
|
49
|
-
scroll-behavior: unset;
|
|
50
|
-
`}
|
|
51
|
-
`, j = e.div`
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: row;
|
|
54
|
-
margin-bottom: ${({ theme: t }) => t.spacing[2]};
|
|
55
|
-
|
|
56
|
-
&:last-child > div:first-child > span::after {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
`, A = e.div`
|
|
60
|
-
${({ theme: t }) => `
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
font-family: ${t.typography.type.primary};
|
|
63
|
-
font-size: ${t.typography.text.sm};
|
|
64
|
-
line-height: ${t.spacing[1.25]};
|
|
65
|
-
margin-top: ${t.spacing[1]};
|
|
66
|
-
|
|
67
|
-
& > button:first-child {
|
|
68
|
-
margin-right: ${t.spacing[0.5]};
|
|
69
|
-
}
|
|
70
|
-
`}
|
|
71
|
-
`, D = e.span`
|
|
72
|
-
${({ theme: t, $variant: l }) => `
|
|
73
|
-
border-radius: 6px;
|
|
74
|
-
display: inline-block;
|
|
75
|
-
text-align: center;
|
|
76
|
-
font-size: ${t.typography.text.sm};
|
|
77
|
-
font-weight: ${t.typography.weight.bold};
|
|
78
|
-
font-family: ${t.typography.type.primary};
|
|
79
|
-
line-height: ${t.spacing[1]};
|
|
80
|
-
padding: ${`${t.spacing[0.5]} ${t.spacing[0.5]}`};
|
|
81
|
-
height: ${t.spacing[2]};
|
|
82
|
-
width: ${t.spacing[2]};
|
|
83
|
-
|
|
84
|
-
&::after {
|
|
85
|
-
content: "";
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: calc(32px + ${t.spacing[0.5]});
|
|
88
|
-
left: 50%;
|
|
89
|
-
bottom: 0;
|
|
90
|
-
width: 2px;
|
|
91
|
-
height: calc(100% - ${t.spacing[1]});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
${B(t, l)}
|
|
95
|
-
`}
|
|
96
|
-
`, J = ({
|
|
97
|
-
button: { disabled: t = !1, text: l, type: f = "button", onClick: u },
|
|
98
|
-
steps: y
|
|
99
|
-
}) => {
|
|
100
|
-
const [n, b] = k(1), $ = S(
|
|
101
|
-
(r, o) => () => {
|
|
102
|
-
b((p) => p + r), o == null || o();
|
|
103
|
-
},
|
|
104
|
-
[]
|
|
105
|
-
);
|
|
106
|
-
return /* @__PURE__ */ i(N, { children: y.map((r, o) => {
|
|
107
|
-
const { content: p, title: x, nextAction: h, previousAction: m } = r, c = o + 1, v = c === n ? "current" : "disabled", s = c < n ? "completed" : v;
|
|
108
|
-
return /* @__PURE__ */ a(j, { children: [
|
|
109
|
-
/* @__PURE__ */ i(g, { maxWidth: "40px", position: "relative", children: /* @__PURE__ */ i(D, { $variant: s, children: s === "completed" ? /* @__PURE__ */ i(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }),
|
|
110
|
-
/* @__PURE__ */ a(g, { ml: 1.5, width: "100%", children: [
|
|
111
|
-
/* @__PURE__ */ i(
|
|
112
|
-
z,
|
|
113
|
-
{
|
|
114
|
-
fontWeight: "bold",
|
|
115
|
-
lineSpacing: 1.25,
|
|
116
|
-
mb: 1.5,
|
|
117
|
-
size: "xs",
|
|
118
|
-
children: x
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
s === "current" && /* @__PURE__ */ a(g, { children: [
|
|
122
|
-
p,
|
|
123
|
-
/* @__PURE__ */ a(A, { children: [
|
|
124
|
-
n > 1 && /* @__PURE__ */ i(
|
|
125
|
-
d,
|
|
126
|
-
{
|
|
127
|
-
disabled: r.isDisabledPrevious ?? !1,
|
|
128
|
-
onClick: $(-1, m),
|
|
129
|
-
variant: "tertiary",
|
|
130
|
-
children: "Previous"
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
n < y.length ? /* @__PURE__ */ i(
|
|
134
|
-
d,
|
|
135
|
-
{
|
|
136
|
-
disabled: r.isDisabledNext ?? !1,
|
|
137
|
-
onClick: $(1, h),
|
|
138
|
-
variant: "primary",
|
|
139
|
-
children: "Next step"
|
|
140
|
-
}
|
|
141
|
-
) : /* @__PURE__ */ i(
|
|
142
|
-
d,
|
|
143
|
-
{
|
|
144
|
-
disabled: t,
|
|
145
|
-
onClick: u,
|
|
146
|
-
type: f,
|
|
147
|
-
variant: "primary",
|
|
148
|
-
children: l
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
] })
|
|
152
|
-
] })
|
|
153
|
-
] })
|
|
154
|
-
] }, r.title);
|
|
155
|
-
}) });
|
|
156
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ax as a } from "../../components-C7JPRIEW.mjs";
|
|
157
4
|
export {
|
|
158
|
-
|
|
5
|
+
a as StepLapse
|
|
159
6
|
};
|
|
@@ -1,97 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as y } from "../icon/index.js";
|
|
5
|
-
import "../typography/heading/index.js";
|
|
6
|
-
import "../typography/span/index.js";
|
|
7
|
-
import { Text as f } from "../typography/text/index.js";
|
|
8
|
-
const x = u.button`
|
|
9
|
-
${({ theme: o }) => `
|
|
10
|
-
align-items: center;
|
|
11
|
-
background-color: ${o.palette.white};
|
|
12
|
-
border: 1px solid ${o.palette.gray[100]};
|
|
13
|
-
border-radius: ${o.spacing[0.25]};
|
|
14
|
-
color: ${o.palette.gray[800]};
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
display: flex;
|
|
17
|
-
font-size: ${o.typography.text.sm};
|
|
18
|
-
gap: ${o.spacing[0.25]};
|
|
19
|
-
height: 21px;
|
|
20
|
-
width: 21px;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
padding: 6px;
|
|
23
|
-
transition: all 0.25s ease;
|
|
24
|
-
|
|
25
|
-
&[aria-label] {
|
|
26
|
-
height: auto;
|
|
27
|
-
width: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.success {
|
|
31
|
-
border-color: ${o.palette.success[500]};
|
|
32
|
-
color: ${o.palette.success[500]};
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
background-color: ${o.palette.success[200]};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:disabled {
|
|
40
|
-
cursor: not-allowed;
|
|
41
|
-
background: ${o.palette.gray[200]};
|
|
42
|
-
border-color: ${o.palette.gray[200]};
|
|
43
|
-
color: ${o.palette.gray[300]};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:hover:not(.success) {
|
|
47
|
-
background-color: ${o.palette.gray[100]};
|
|
48
|
-
}
|
|
49
|
-
`}
|
|
50
|
-
`, $ = {
|
|
51
|
-
add: { icon: "plus" },
|
|
52
|
-
approve: { icon: "check" },
|
|
53
|
-
disabled: { icon: "ban" },
|
|
54
|
-
reject: { icon: "xmark" },
|
|
55
|
-
submit: { icon: "arrow-right" },
|
|
56
|
-
success: { icon: "check" }
|
|
57
|
-
}, v = ({
|
|
58
|
-
disabled: o = !1,
|
|
59
|
-
icon: a,
|
|
60
|
-
id: i,
|
|
61
|
-
label: e,
|
|
62
|
-
name: r,
|
|
63
|
-
onClick: n,
|
|
64
|
-
type: l = "button",
|
|
65
|
-
variant: t
|
|
66
|
-
}) => {
|
|
67
|
-
const p = g(), d = /* @__PURE__ */ c(
|
|
68
|
-
x,
|
|
69
|
-
{
|
|
70
|
-
"aria-label": r ?? void 0,
|
|
71
|
-
className: t,
|
|
72
|
-
disabled: o,
|
|
73
|
-
id: i,
|
|
74
|
-
onClick: n,
|
|
75
|
-
type: l,
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ s(
|
|
78
|
-
y,
|
|
79
|
-
{
|
|
80
|
-
clickable: !1,
|
|
81
|
-
icon: a ?? $[t].icon,
|
|
82
|
-
iconSize: r === void 0 ? "xxs" : "xs",
|
|
83
|
-
iconType: "fa-light"
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
r ?? void 0
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
return /* @__PURE__ */ c(b, { alignItems: "center", display: "flex", children: [
|
|
91
|
-
d,
|
|
92
|
-
e && /* @__PURE__ */ s(f, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: e })
|
|
93
|
-
] });
|
|
94
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { ay as m } from "../../components-C7JPRIEW.mjs";
|
|
95
4
|
export {
|
|
96
|
-
|
|
5
|
+
m as TableButton
|
|
97
6
|
};
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Heading as d } from "../../typography/heading/index.js";
|
|
4
|
-
import "../../typography/span/index.js";
|
|
5
|
-
import "../../typography/text/index.js";
|
|
6
|
-
const h = ({ items: t }) => /* @__PURE__ */ i(s, { children: t.map(
|
|
7
|
-
({ isActive: r, label: e, onClick: o }, m) => /* @__PURE__ */ i(
|
|
8
|
-
a,
|
|
9
|
-
{
|
|
10
|
-
className: r ? "active" : "",
|
|
11
|
-
onClick: o,
|
|
12
|
-
type: "button",
|
|
13
|
-
children: /* @__PURE__ */ i(
|
|
14
|
-
d,
|
|
15
|
-
{
|
|
16
|
-
color: "inherit",
|
|
17
|
-
fontWeight: "semibold",
|
|
18
|
-
size: "sm",
|
|
19
|
-
sizeSm: "xs",
|
|
20
|
-
children: e
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
},
|
|
24
|
-
`${e}-${m}`
|
|
25
|
-
)
|
|
26
|
-
) });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { az as e } from "../../../components-C7JPRIEW.mjs";
|
|
27
3
|
export {
|
|
28
|
-
|
|
4
|
+
e as FixedTabs
|
|
29
5
|
};
|
|
@@ -1,57 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Tab as u } from "./tab/index.js";
|
|
5
|
-
import { Container as g } from "../container/index.js";
|
|
6
|
-
const b = ({
|
|
7
|
-
items: i,
|
|
8
|
-
borders: r = !0,
|
|
9
|
-
box: e = !1
|
|
10
|
-
}) => {
|
|
11
|
-
const n = s();
|
|
12
|
-
return /* @__PURE__ */ d(
|
|
13
|
-
g,
|
|
14
|
-
{
|
|
15
|
-
bgColor: n.palette.white,
|
|
16
|
-
border: e ? "1px solid" : void 0,
|
|
17
|
-
borderBottom: r ? `1px solid ${n.palette.gray[300]}` : void 0,
|
|
18
|
-
borderColor: e ? n.palette.gray[200] : void 0,
|
|
19
|
-
borderRadius: e ? n.spacing[0.25] : void 0,
|
|
20
|
-
display: "inline-flex",
|
|
21
|
-
gap: 0.25,
|
|
22
|
-
padding: e ? [0, 0, 0, 0] : void 0,
|
|
23
|
-
pl: r ? 1.25 : void 0,
|
|
24
|
-
pr: r ? 1.25 : void 0,
|
|
25
|
-
role: "tablist",
|
|
26
|
-
width: e ? "max-content" : "100%",
|
|
27
|
-
children: i.map(
|
|
28
|
-
({
|
|
29
|
-
id: t,
|
|
30
|
-
isActive: o,
|
|
31
|
-
link: a,
|
|
32
|
-
label: p,
|
|
33
|
-
notificationSign: l,
|
|
34
|
-
onClick: f,
|
|
35
|
-
tooltip: m
|
|
36
|
-
}) => /* @__PURE__ */ d(
|
|
37
|
-
u,
|
|
38
|
-
{
|
|
39
|
-
id: t,
|
|
40
|
-
isActive: o,
|
|
41
|
-
label: p,
|
|
42
|
-
link: a,
|
|
43
|
-
notificationSign: l,
|
|
44
|
-
onClick: f,
|
|
45
|
-
tooltip: m
|
|
46
|
-
},
|
|
47
|
-
t
|
|
48
|
-
)
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { az as b, aB as i, aA as m } from "../../components-C7JPRIEW.mjs";
|
|
53
4
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
5
|
+
b as FixedTabs,
|
|
6
|
+
i as Tab,
|
|
7
|
+
m as Tabs
|
|
57
8
|
};
|
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { NotificationSign as x } from "../../notification-sign/index.js";
|
|
4
|
-
import { T as u } from "../../../index-DwznImvK.mjs";
|
|
5
|
-
const N = ({
|
|
6
|
-
label: m,
|
|
7
|
-
id: e,
|
|
8
|
-
isActive: l = !1,
|
|
9
|
-
link: p,
|
|
10
|
-
notificationSign: r,
|
|
11
|
-
onClick: d,
|
|
12
|
-
tooltip: b = ""
|
|
13
|
-
}) => /* @__PURE__ */ s(u, { display: "flex", id: `${e}-tooltip`, tip: b, children: /* @__PURE__ */ T(
|
|
14
|
-
h,
|
|
15
|
-
{
|
|
16
|
-
"aria-selected": l,
|
|
17
|
-
className: l ? "active" : "",
|
|
18
|
-
id: e,
|
|
19
|
-
onClick: d,
|
|
20
|
-
role: "tab",
|
|
21
|
-
to: p,
|
|
22
|
-
children: [
|
|
23
|
-
m,
|
|
24
|
-
/* @__PURE__ */ s(
|
|
25
|
-
x,
|
|
26
|
-
{
|
|
27
|
-
left: r == null ? void 0 : r.left,
|
|
28
|
-
numberIndicator: r == null ? void 0 : r.numberIndicator,
|
|
29
|
-
show: r == null ? void 0 : r.show,
|
|
30
|
-
top: r == null ? void 0 : r.top,
|
|
31
|
-
variant: r == null ? void 0 : r.variant
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
) });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { aB as m } from "../../../components-C7JPRIEW.mjs";
|
|
37
3
|
export {
|
|
38
|
-
|
|
4
|
+
m as Tab
|
|
39
5
|
};
|