@fluidattacks/design 3.1.11 → 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/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/components/@core/index.js +18 -1
- package/dist/components/accordion/accordion-content/index.js +22 -1
- package/dist/components/accordion/index.js +78 -1
- package/dist/components/alert/index.js +162 -4
- package/dist/components/button/index.js +69 -1
- package/dist/components/card/card-header/index.js +83 -1
- package/dist/components/card/card-with-image/index.js +93 -1
- package/dist/components/card/card-with-input/index.js +106 -3
- package/dist/components/card/card-with-selector/index.js +71 -1
- package/dist/components/card/card-with-switch/index.js +50 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +62 -10
- package/dist/components/checkbox/index.js +118 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +72 -1
- package/dist/components/code-snippet/location-code/index.js +171 -1
- package/dist/components/colors/index.js +224 -1
- package/dist/components/confirm-dialog/index.js +46 -1
- package/dist/components/container/index.js +51 -3
- package/dist/components/content-card/category-tag/index.js +42 -1
- package/dist/components/content-card/event-date/index.js +61 -1
- package/dist/components/content-card/index.js +168 -3
- package/dist/components/content-card-carousel/index.js +95 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +25 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +58 -8
- package/dist/components/file-preview/index.js +31 -3
- package/dist/components/form/index.js +63 -3
- package/dist/components/grid-container/index.js +46 -5
- package/dist/components/group-selector/index.js +135 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +102 -4
- package/dist/components/icon-button/index.js +76 -3
- package/dist/components/indicator-card/index.js +74 -1
- package/dist/components/info-sidebar/index.js +116 -1
- package/dist/components/inputs/fields/combobox/index.js +146 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
- package/dist/components/inputs/fields/date/calendar/index.js +30 -1
- package/dist/components/inputs/fields/date/index.js +68 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
- package/dist/components/inputs/fields/date-range/index.js +108 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
- package/dist/components/inputs/fields/date-time/index.js +69 -1
- package/dist/components/inputs/fields/editable/index.js +28 -1
- package/dist/components/inputs/fields/input/index.js +77 -1
- package/dist/components/inputs/fields/input-file/index.js +117 -4
- package/dist/components/inputs/fields/input-tags/index.js +63 -2
- package/dist/components/inputs/fields/number/index.js +57 -1
- package/dist/components/inputs/fields/number-range/index.js +49 -1
- package/dist/components/inputs/fields/phone/index.js +574 -11
- package/dist/components/inputs/fields/text-area/index.js +81 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +38 -1
- package/dist/components/inputs/outline-container/index.js +104 -1
- package/dist/components/inputs/utils/action-button/index.js +31 -1
- package/dist/components/inputs/utils/calendar-button/index.js +37 -1
- package/dist/components/inputs/utils/date-selector/index.js +62 -1
- package/dist/components/inputs/utils/date-time-field/index.js +133 -1
- package/dist/components/inputs/utils/dialog/index.js +14 -1
- package/dist/components/inputs/utils/number-field/index.js +86 -1
- package/dist/components/inputs/utils/popover/index.js +44 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +118 -1
- package/dist/components/language-selector/index.js +37 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +106 -7
- package/dist/components/list-item/index.js +67 -1
- package/dist/components/little-flag/index.js +32 -3
- package/dist/components/loading/index.js +55 -14
- package/dist/components/logo/index.js +13 -1
- package/dist/components/logo-carousel/index.js +45 -4
- package/dist/components/lottie/index.js +20 -3
- package/dist/components/menu/index.js +67 -1
- package/dist/components/message-banner/index.js +87 -4
- package/dist/components/modal/index.js +65 -1
- package/dist/components/modal/modal-confirm/index.js +51 -1
- package/dist/components/modal/modal-footer/index.js +25 -1
- package/dist/components/modal/modal-header/index.js +51 -1
- package/dist/components/notification/index.js +113 -5
- package/dist/components/notification-sign/index.js +43 -6
- package/dist/components/number-input/index.js +62 -7
- package/dist/components/oauth-selector/index.js +100 -1
- package/dist/components/oauth-selector/option-container/index.js +76 -1
- package/dist/components/plan-card/index.js +155 -5
- package/dist/components/plan-card/recommended-tag/index.js +31 -1
- package/dist/components/pop-up/description/index.js +51 -1
- package/dist/components/pop-up/index.js +152 -1
- package/dist/components/premium-feature/index.js +85 -3
- package/dist/components/priority-score/index.js +29 -1
- package/dist/components/progress/index.js +36 -3
- package/dist/components/progress-bar/index.js +153 -5
- package/dist/components/radio-button/index.js +125 -3
- package/dist/components/scroll-button/index.js +38 -2
- package/dist/components/search/index.js +105 -7
- package/dist/components/search-bar/index.js +219 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +74 -1
- package/dist/components/severity-overview/badge/index.js +69 -1
- package/dist/components/severity-overview/index.js +17 -1
- package/dist/components/show-on-hover/index.js +31 -3
- package/dist/components/slide-out-menu/index.js +3456 -3
- package/dist/components/slide-out-menu/menu-item/index.js +67 -1
- package/dist/components/slider/index.js +124 -7
- package/dist/components/slider/thumb/index.js +17 -1
- package/dist/components/step-lapse/index.js +153 -9
- package/dist/components/table-button/index.js +97 -3
- package/dist/components/tabs/fixed-tabs/index.js +29 -1
- package/dist/components/tabs/index.js +57 -1
- package/dist/components/tabs/tab/index.js +39 -1
- package/dist/components/tag/index.js +184 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +17 -1
- package/dist/components/toggle/index.js +85 -14
- package/dist/components/toggle-buttons/index.js +103 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +4549 -4
- package/dist/components/typography/heading/index.js +47 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +41 -1
- package/dist/components/typography/text/index.js +47 -1
- package/dist/components/web-form/index.js +68 -7
- package/dist/hooks/index.js +13 -1
- 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 +206 -1
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/styles-BlHspTrz.mjs +144 -0
- package/dist/styles-CROOwXEH.mjs +76 -0
- 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/_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-C0_LPuYU.mjs +0 -106
- 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
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { styled as o, useTheme as c } from "styled-components";
|
|
3
|
+
import "./components/typography/heading/index.js";
|
|
4
|
+
import "./components/typography/span/index.js";
|
|
5
|
+
import { Text as r } from "./components/typography/text/index.js";
|
|
6
|
+
const g = o.div`
|
|
7
|
+
${({ theme: e }) => `
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: ${e.palette.white};
|
|
10
|
+
border: 1px solid ${e.palette.gray[200]};
|
|
11
|
+
border-radius: ${e.spacing[0.25]};
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: ${e.spacing[0.5]};
|
|
15
|
+
min-height: 180px;
|
|
16
|
+
padding: ${e.spacing[1.5]};
|
|
17
|
+
width: 510px;
|
|
18
|
+
|
|
19
|
+
p {
|
|
20
|
+
font-style: normal;
|
|
21
|
+
line-height: ${e.spacing[1.25]};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
border: 1px solid ${e.palette.gray[600]};
|
|
26
|
+
}
|
|
27
|
+
`}
|
|
28
|
+
`, u = o.div`
|
|
29
|
+
${({ theme: e }) => `
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: ${e.spacing[1.5]};
|
|
33
|
+
position: relative;
|
|
34
|
+
max-width: 1268px;
|
|
35
|
+
|
|
36
|
+
&::before {
|
|
37
|
+
background-color: ${e.palette.gray[200]};
|
|
38
|
+
border-radius: 5px;
|
|
39
|
+
height: 100%;
|
|
40
|
+
width: 4px;
|
|
41
|
+
transform: translate(-50%, 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> * {
|
|
45
|
+
&:nth-child(even) {
|
|
46
|
+
align-self: end;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:nth-child(odd) {
|
|
50
|
+
align-self: start;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::before {
|
|
54
|
+
position: absolute;
|
|
55
|
+
background-color: ${e.palette.primary[500]};
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
height: 14px;
|
|
58
|
+
width: 14px;
|
|
59
|
+
z-index: 1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::before,
|
|
64
|
+
> *::before {
|
|
65
|
+
content: "";
|
|
66
|
+
left: 50%;
|
|
67
|
+
position: absolute;
|
|
68
|
+
transform: translateX(-50%);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (width <= 1270px) {
|
|
72
|
+
max-width: 540px;
|
|
73
|
+
|
|
74
|
+
p {
|
|
75
|
+
text-align: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::before,
|
|
79
|
+
> *::before {
|
|
80
|
+
left: 8px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
> * {
|
|
84
|
+
&:nth-child(odd) {
|
|
85
|
+
align-self: end;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (width <= 630px) {
|
|
90
|
+
display: block;
|
|
91
|
+
|
|
92
|
+
.timeline-card {
|
|
93
|
+
width: auto;
|
|
94
|
+
margin-left: 30px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`}
|
|
99
|
+
`, $ = ({
|
|
100
|
+
date: e,
|
|
101
|
+
description: a,
|
|
102
|
+
title: l
|
|
103
|
+
}) => {
|
|
104
|
+
const t = c();
|
|
105
|
+
return /* @__PURE__ */ s(g, { className: "timeline-card", children: [
|
|
106
|
+
/* @__PURE__ */ i(
|
|
107
|
+
r,
|
|
108
|
+
{
|
|
109
|
+
color: t.palette.gray[800],
|
|
110
|
+
fontWeight: "bold",
|
|
111
|
+
lineSpacing: 1.75,
|
|
112
|
+
size: "xl",
|
|
113
|
+
children: e
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ i(
|
|
117
|
+
r,
|
|
118
|
+
{
|
|
119
|
+
color: t.palette.gray[800],
|
|
120
|
+
fontWeight: "bold",
|
|
121
|
+
lineSpacing: 1.5,
|
|
122
|
+
mb: 0.5,
|
|
123
|
+
size: "md",
|
|
124
|
+
textAlign: "center",
|
|
125
|
+
children: l
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ i("div", { children: a.map((n, d) => {
|
|
129
|
+
const p = `${n}#${d}`;
|
|
130
|
+
return /* @__PURE__ */ i(
|
|
131
|
+
r,
|
|
132
|
+
{
|
|
133
|
+
size: "sm",
|
|
134
|
+
textAlign: "center",
|
|
135
|
+
wordBreak: "break-word",
|
|
136
|
+
children: n
|
|
137
|
+
},
|
|
138
|
+
p
|
|
139
|
+
);
|
|
140
|
+
}) })
|
|
141
|
+
] });
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
u as T,
|
|
145
|
+
$ as a
|
|
146
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as c } from "react";
|
|
3
|
+
import { styled as d, useTheme as m } from "styled-components";
|
|
4
|
+
import { Container as x } from "./components/container/index.js";
|
|
5
|
+
import { Icon as p } from "./components/icon/index.js";
|
|
6
|
+
const g = d.button`
|
|
7
|
+
display: flex;
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 32px;
|
|
10
|
+
width: 32px;
|
|
11
|
+
|
|
12
|
+
svg {
|
|
13
|
+
position: absolute;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.hovered {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
.hovered {
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.uncover {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`, w = d.div`
|
|
30
|
+
${({ theme: o }) => `
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: ${o.spacing[2.5]};
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
min-height: 589px;
|
|
36
|
+
max-width: 1316px;
|
|
37
|
+
|
|
38
|
+
span {
|
|
39
|
+
background: ${o.palette.gradients["01"]};
|
|
40
|
+
background-clip: text;
|
|
41
|
+
-webkit-background-clip: text;
|
|
42
|
+
-webkit-text-fill-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#mobile {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#carousel {
|
|
50
|
+
scrollbar-width: none;
|
|
51
|
+
|
|
52
|
+
&::-webkit-scrollbar {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media screen and (max-width: ${o.breakpoints.mobile}) {
|
|
58
|
+
align-items: center;
|
|
59
|
+
height: auto;
|
|
60
|
+
max-width: 340px;
|
|
61
|
+
|
|
62
|
+
#desktop {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
#mobile {
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`}
|
|
70
|
+
`, v = ({
|
|
71
|
+
containerRef: o,
|
|
72
|
+
id: i
|
|
73
|
+
}) => {
|
|
74
|
+
const l = m(), t = i === "desktop" ? 380 : 342, n = c(
|
|
75
|
+
(e) => () => {
|
|
76
|
+
if (o != null && o.current) {
|
|
77
|
+
const { current: h } = o;
|
|
78
|
+
h.scrollBy({
|
|
79
|
+
left: e === "right" ? t : -t,
|
|
80
|
+
behavior: "smooth"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[o, t]
|
|
85
|
+
), r = c(
|
|
86
|
+
(e) => /* @__PURE__ */ s(g, { onClick: n(e), children: [
|
|
87
|
+
/* @__PURE__ */ a(
|
|
88
|
+
p,
|
|
89
|
+
{
|
|
90
|
+
clickable: !0,
|
|
91
|
+
icon: `circle-arrow-${e}`,
|
|
92
|
+
iconClass: "hovered",
|
|
93
|
+
iconColor: l.palette.gray[800],
|
|
94
|
+
iconSize: "md",
|
|
95
|
+
iconType: "fa-solid"
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ a(
|
|
99
|
+
p,
|
|
100
|
+
{
|
|
101
|
+
clickable: !0,
|
|
102
|
+
icon: `circle-arrow-${e}`,
|
|
103
|
+
iconClass: "uncover",
|
|
104
|
+
iconColor: l.palette.gray[800],
|
|
105
|
+
iconSize: "md",
|
|
106
|
+
iconType: "fa-light"
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] }),
|
|
110
|
+
[n, l]
|
|
111
|
+
);
|
|
112
|
+
return /* @__PURE__ */ s(
|
|
113
|
+
x,
|
|
114
|
+
{
|
|
115
|
+
alignItems: "center",
|
|
116
|
+
display: "flex",
|
|
117
|
+
gap: 1,
|
|
118
|
+
id: i,
|
|
119
|
+
width: "max-content",
|
|
120
|
+
children: [
|
|
121
|
+
r("left"),
|
|
122
|
+
r("right")
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
w as O,
|
|
129
|
+
v as S
|
|
130
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as d } from "react";
|
|
3
|
+
import { useOption as g } from "react-aria";
|
|
4
|
+
import { styled as r } from "styled-components";
|
|
5
|
+
import { Icon as y } from "./components/icon/index.js";
|
|
6
|
+
const k = r.ul`
|
|
7
|
+
${({ theme: o }) => `
|
|
8
|
+
align-self: center;
|
|
9
|
+
background: ${o.palette.white};
|
|
10
|
+
border: 1px solid ${o.palette.gray[200]};
|
|
11
|
+
border-radius: ${o.spacing[0.25]};
|
|
12
|
+
box-shadow: ${o.shadows.md};
|
|
13
|
+
list-style: none;
|
|
14
|
+
max-height: 200px;
|
|
15
|
+
min-width: 240px;
|
|
16
|
+
overflow: hidden auto;
|
|
17
|
+
scrollbar-color: ${o.palette.gray[600]} ${o.palette.gray[100]};
|
|
18
|
+
scroll-padding: ${o.spacing[0.5]};
|
|
19
|
+
width: 95%;
|
|
20
|
+
`}
|
|
21
|
+
`, $ = r.li`
|
|
22
|
+
${({ theme: o }) => `
|
|
23
|
+
align-items: center;
|
|
24
|
+
color: ${o.palette.gray[800]};
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
display: flex;
|
|
27
|
+
font-family: ${o.typography.type.primary};
|
|
28
|
+
font-size: ${o.typography.text.sm};
|
|
29
|
+
gap: ${o.spacing[0.5]};
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
line-height: ${o.spacing[1.25]};
|
|
32
|
+
padding: ${o.spacing[0.25]} ${o.spacing[1]};
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
|
|
37
|
+
span {
|
|
38
|
+
color: ${o.palette.gray[700]};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
background: ${o.palette.gray[100]};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.selected {
|
|
46
|
+
background: ${o.palette.gray[200]};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.disabled {
|
|
50
|
+
color: ${o.palette.gray[400]};
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
}
|
|
53
|
+
`}
|
|
54
|
+
`, v = ({
|
|
55
|
+
item: o,
|
|
56
|
+
state: i
|
|
57
|
+
}) => {
|
|
58
|
+
const s = d(null), { optionProps: e, isSelected: a, isFocused: l, isDisabled: n } = g(
|
|
59
|
+
{ key: o.value },
|
|
60
|
+
i,
|
|
61
|
+
s
|
|
62
|
+
), t = [
|
|
63
|
+
a ? "selected" : "",
|
|
64
|
+
l ? "focused" : "",
|
|
65
|
+
n ? "disabled" : ""
|
|
66
|
+
].join(" ");
|
|
67
|
+
return /* @__PURE__ */ p($, { ...e, className: t, ref: s, children: [
|
|
68
|
+
o.name,
|
|
69
|
+
a ? /* @__PURE__ */ c(y, { icon: "check", iconSize: "xxs", iconType: "fa-light" }) : void 0
|
|
70
|
+
] });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
v as O,
|
|
74
|
+
k as S
|
|
75
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as e } from "react";
|
|
3
|
+
import { styled as t, useTheme as s } from "styled-components";
|
|
4
|
+
import { Icon as c } from "./components/icon/index.js";
|
|
5
|
+
import "./components/typography/heading/index.js";
|
|
6
|
+
import "./components/typography/span/index.js";
|
|
7
|
+
import { Text as l } from "./components/typography/text/index.js";
|
|
8
|
+
const y = t.div`
|
|
9
|
+
${({ theme: i, $itemsLength: o }) => `
|
|
10
|
+
display: flex;
|
|
11
|
+
background-color: ${i.palette.white};
|
|
12
|
+
border: 1px solid ${i.palette.gray[200]};
|
|
13
|
+
border-radius: ${i.spacing[0.25]};
|
|
14
|
+
box-shadow: ${i.shadows.lg};
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
min-width: 507px;
|
|
17
|
+
max-width: ${o <= 4 ? "507px" : "980px"};
|
|
18
|
+
padding: ${i.spacing[1.5]};
|
|
19
|
+
|
|
20
|
+
@media screen and (max-width: 980px) and (min-width: 742px) {
|
|
21
|
+
width: 742px;
|
|
22
|
+
}
|
|
23
|
+
@media screen and (max-width: 742px) {
|
|
24
|
+
width: 507px;
|
|
25
|
+
}
|
|
26
|
+
`}
|
|
27
|
+
`, x = t.div`
|
|
28
|
+
${({ theme: i, $isSelected: o }) => `
|
|
29
|
+
align-items: center;
|
|
30
|
+
background-color: ${o ? i.palette.gray[100] : i.palette.white};
|
|
31
|
+
border: 1px solid ${i.palette.gray[200]};
|
|
32
|
+
border-radius: ${i.spacing[0.25]};
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: ${o ? "row-reverse" : "row"};
|
|
36
|
+
min-height: 50px;
|
|
37
|
+
padding: ${i.spacing[1]} ${i.spacing[0.625]};
|
|
38
|
+
width: 215px;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: ${i.palette.gray[100]};
|
|
42
|
+
}
|
|
43
|
+
`}
|
|
44
|
+
`, b = ({
|
|
45
|
+
isSelected: i = !1,
|
|
46
|
+
label: o,
|
|
47
|
+
onSelect: r
|
|
48
|
+
}) => {
|
|
49
|
+
const a = s(), d = e(() => {
|
|
50
|
+
r && r(o);
|
|
51
|
+
}, [r, o]);
|
|
52
|
+
return /* @__PURE__ */ p(x, { $isSelected: i, onClick: d, children: [
|
|
53
|
+
i ? /* @__PURE__ */ n(
|
|
54
|
+
c,
|
|
55
|
+
{
|
|
56
|
+
icon: "check",
|
|
57
|
+
iconColor: a.palette.gray[800],
|
|
58
|
+
iconSize: "md"
|
|
59
|
+
}
|
|
60
|
+
) : null,
|
|
61
|
+
/* @__PURE__ */ n(l, { color: a.palette.gray[800], fontWeight: "bold", size: "sm", children: o })
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
x as O,
|
|
66
|
+
y as S,
|
|
67
|
+
b as a
|
|
68
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { styled as a } from "styled-components";
|
|
3
|
+
import { theme as o } from "./components/colors/index.js";
|
|
4
|
+
import { Icon as r } from "./components/icon/index.js";
|
|
5
|
+
const c = a.div`
|
|
6
|
+
${({ theme: i }) => `
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
backdrop-filter: blur(3.15px);
|
|
9
|
+
background: radial-gradient(
|
|
10
|
+
68.83% 167.8% at 171.9% 90.34%,
|
|
11
|
+
${i.palette.complementary[300]} 0%,
|
|
12
|
+
${i.palette.primary[400]} 100%
|
|
13
|
+
),
|
|
14
|
+
linear-gradient(
|
|
15
|
+
241deg,
|
|
16
|
+
${i.palette.primary[400]} 3.45%,
|
|
17
|
+
${i.palette.primary[500]} 82.59%
|
|
18
|
+
);
|
|
19
|
+
border-radius: ${i.spacing[1]};
|
|
20
|
+
box-shadow: ${i.shadows.md};
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: ${i.spacing[0.625]};
|
|
24
|
+
height: 300px;
|
|
25
|
+
padding: ${i.spacing[1]};
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 300px;
|
|
28
|
+
|
|
29
|
+
button > * {
|
|
30
|
+
font-size: ${i.typography.text.sm};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#hovered {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background: ${i.palette.gray[900]};
|
|
39
|
+
|
|
40
|
+
#hovered {
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
#uncover {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media screen and (max-width: ${i.breakpoints.mobile}) {
|
|
49
|
+
height: 320px;
|
|
50
|
+
width: 320px;
|
|
51
|
+
|
|
52
|
+
#hovered {
|
|
53
|
+
margin-bottom: ${i.spacing[1.75]};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`}
|
|
57
|
+
`, n = a.div`
|
|
58
|
+
align-items: center;
|
|
59
|
+
position: absolute;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
opacity: 0.15;
|
|
62
|
+
top: 14%;
|
|
63
|
+
left: 25%;
|
|
64
|
+
z-index: -1;
|
|
65
|
+
|
|
66
|
+
span {
|
|
67
|
+
font-size: 265px;
|
|
68
|
+
height: 260px;
|
|
69
|
+
width: 260px;
|
|
70
|
+
}
|
|
71
|
+
`, l = ({
|
|
72
|
+
icon: i
|
|
73
|
+
}) => /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
74
|
+
r,
|
|
75
|
+
{
|
|
76
|
+
icon: i,
|
|
77
|
+
iconColor: o.palette.white,
|
|
78
|
+
iconSize: "xs",
|
|
79
|
+
iconTransform: "shrink-2",
|
|
80
|
+
iconType: "fa-light"
|
|
81
|
+
}
|
|
82
|
+
) });
|
|
83
|
+
export {
|
|
84
|
+
c as I,
|
|
85
|
+
l as a
|
|
86
|
+
};
|