@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,8 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { S as
|
|
4
|
-
const b =
|
|
5
|
-
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { S as z } from "../../../styles-B64DVBIF.mjs";
|
|
4
|
+
const b = y(function({
|
|
5
|
+
bgGradient: i,
|
|
6
|
+
children: e,
|
|
7
|
+
className: r,
|
|
8
|
+
color: t,
|
|
9
|
+
display: n,
|
|
10
|
+
fontFamily: o,
|
|
11
|
+
fontWeight: $,
|
|
12
|
+
letterSpacing: a,
|
|
13
|
+
lineSpacing: d,
|
|
14
|
+
lineSpacingSm: l,
|
|
15
|
+
size: m,
|
|
16
|
+
sizeMd: f,
|
|
17
|
+
sizeSm: g,
|
|
18
|
+
textFill: p,
|
|
19
|
+
wordBreak: s,
|
|
20
|
+
...S
|
|
21
|
+
}, c) {
|
|
22
|
+
return /* @__PURE__ */ x(
|
|
23
|
+
z,
|
|
24
|
+
{
|
|
25
|
+
$bgGradient: i,
|
|
26
|
+
$color: t,
|
|
27
|
+
$display: n,
|
|
28
|
+
$fontFamily: o,
|
|
29
|
+
$fontWeight: $,
|
|
30
|
+
$letterSpacing: a,
|
|
31
|
+
$lineSpacing: d,
|
|
32
|
+
$lineSpacingSm: l,
|
|
33
|
+
$size: m,
|
|
34
|
+
$sizeMd: f,
|
|
35
|
+
$sizeSm: g,
|
|
36
|
+
$textFill: p,
|
|
37
|
+
$wordBreak: s,
|
|
38
|
+
className: r,
|
|
39
|
+
ref: c,
|
|
40
|
+
...S,
|
|
41
|
+
children: e
|
|
42
|
+
}
|
|
43
|
+
);
|
|
6
44
|
});
|
|
7
45
|
export {
|
|
8
46
|
b as Heading
|
|
@@ -1,9 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { a as
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { a as g } from "../../../styles-B64DVBIF.mjs";
|
|
4
|
+
const h = d(function({
|
|
5
|
+
children: n,
|
|
6
|
+
color: i,
|
|
7
|
+
content: o,
|
|
8
|
+
display: t,
|
|
9
|
+
fontFamily: e,
|
|
10
|
+
fontWeight: r,
|
|
11
|
+
letterSpacing: a,
|
|
12
|
+
lineSpacing: p,
|
|
13
|
+
lineSpacingSm: $,
|
|
14
|
+
size: m,
|
|
15
|
+
sizeMd: S,
|
|
16
|
+
sizeSm: f,
|
|
17
|
+
...c
|
|
18
|
+
}, l) {
|
|
19
|
+
return /* @__PURE__ */ s(
|
|
20
|
+
g,
|
|
21
|
+
{
|
|
22
|
+
$color: i,
|
|
23
|
+
$content: o,
|
|
24
|
+
$display: t,
|
|
25
|
+
$fontFamily: e,
|
|
26
|
+
$fontWeight: r,
|
|
27
|
+
$letterSpacing: a,
|
|
28
|
+
$lineSpacing: p,
|
|
29
|
+
$lineSpacingSm: $,
|
|
30
|
+
$size: m,
|
|
31
|
+
$sizeMd: S,
|
|
32
|
+
$sizeSm: f,
|
|
33
|
+
ref: l,
|
|
34
|
+
...c,
|
|
35
|
+
children: n
|
|
36
|
+
}
|
|
37
|
+
);
|
|
6
38
|
});
|
|
7
39
|
export {
|
|
8
|
-
|
|
40
|
+
h as Span
|
|
9
41
|
};
|
|
@@ -1,9 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { b as
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { b as z } from "../../../styles-B64DVBIF.mjs";
|
|
4
|
+
const F = y(function({
|
|
5
|
+
bgGradient: t,
|
|
6
|
+
children: e,
|
|
7
|
+
className: i,
|
|
8
|
+
color: r,
|
|
9
|
+
display: o,
|
|
10
|
+
fontFamily: $,
|
|
11
|
+
fontWeight: n,
|
|
12
|
+
letterSpacing: a,
|
|
13
|
+
lineSpacing: l,
|
|
14
|
+
lineSpacingSm: m,
|
|
15
|
+
size: f,
|
|
16
|
+
sizeMd: p,
|
|
17
|
+
sizeSm: s,
|
|
18
|
+
textFill: c,
|
|
19
|
+
wordBreak: d,
|
|
20
|
+
...x
|
|
21
|
+
}, S) {
|
|
22
|
+
return /* @__PURE__ */ g(
|
|
23
|
+
z,
|
|
24
|
+
{
|
|
25
|
+
$bgGradient: t,
|
|
26
|
+
$color: r,
|
|
27
|
+
$display: o,
|
|
28
|
+
$fontFamily: $,
|
|
29
|
+
$fontWeight: n,
|
|
30
|
+
$letterSpacing: a,
|
|
31
|
+
$lineSpacing: l,
|
|
32
|
+
$lineSpacingSm: m,
|
|
33
|
+
$size: f,
|
|
34
|
+
$sizeMd: p,
|
|
35
|
+
$sizeSm: s,
|
|
36
|
+
$textFill: c,
|
|
37
|
+
$wordBreak: d,
|
|
38
|
+
className: i,
|
|
39
|
+
ref: S,
|
|
40
|
+
...x,
|
|
41
|
+
children: e
|
|
42
|
+
}
|
|
43
|
+
);
|
|
6
44
|
});
|
|
7
45
|
export {
|
|
8
|
-
|
|
46
|
+
F as Text
|
|
9
47
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { styled as e } from "styled-components";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as d } from "../button/index.js";
|
|
4
4
|
const l = e.form`
|
|
5
|
-
${({ theme:
|
|
5
|
+
${({ theme: i }) => `
|
|
6
6
|
align-items: center;
|
|
7
|
-
background: ${
|
|
7
|
+
background: ${i.palette.gray[50]};
|
|
8
8
|
backdrop-filter: blur(11px);
|
|
9
|
-
border-radius: ${
|
|
10
|
-
box-shadow: ${
|
|
9
|
+
border-radius: ${i.spacing[1]};
|
|
10
|
+
box-shadow: ${i.shadows.md};
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: center;
|
|
14
|
-
padding: ${
|
|
14
|
+
padding: ${i.spacing[3]} ${i.spacing[2]};
|
|
15
15
|
width: 628px;
|
|
16
16
|
|
|
17
17
|
&::before {
|
|
18
|
-
background: ${
|
|
19
|
-
border-radius: ${
|
|
18
|
+
background: ${i.palette.gradients["02"]} border-box;
|
|
19
|
+
border-radius: ${i.spacing[1]};
|
|
20
20
|
content: "";
|
|
21
21
|
position: absolute;
|
|
22
22
|
inset: 0;
|
|
@@ -25,16 +25,16 @@ const l = e.form`
|
|
|
25
25
|
mask-composite: exclude;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media screen and (max-width: ${
|
|
28
|
+
@media screen and (max-width: ${i.breakpoints.mobile}) {
|
|
29
29
|
width: 320px;
|
|
30
30
|
}
|
|
31
31
|
`}
|
|
32
|
-
`,
|
|
32
|
+
`, c = e.div`
|
|
33
33
|
align-items: flex-start;
|
|
34
34
|
align-self: stretch;
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
gap: ${({ theme:
|
|
37
|
+
gap: ${({ theme: i }) => i.spacing[1.5]};
|
|
38
38
|
|
|
39
39
|
button[type="submit"] {
|
|
40
40
|
width: 100%;
|
|
@@ -43,14 +43,14 @@ const l = e.form`
|
|
|
43
43
|
text-align: center;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`,
|
|
47
|
-
${({ theme:
|
|
46
|
+
`, x = e.div`
|
|
47
|
+
${({ theme: i }) => `
|
|
48
48
|
align-items: flex-start;
|
|
49
49
|
align-self: stretch;
|
|
50
50
|
container-type: inline-size;
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: row;
|
|
53
|
-
gap: ${
|
|
53
|
+
gap: ${i.spacing[1]};
|
|
54
54
|
position: relative;
|
|
55
55
|
|
|
56
56
|
&:has(> :nth-child(2)) {
|
|
@@ -60,12 +60,21 @@ const l = e.form`
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media screen and (max-width: ${
|
|
63
|
+
@media screen and (max-width: ${i.breakpoints.mobile}) {
|
|
64
64
|
flex-direction: column;
|
|
65
65
|
}
|
|
66
66
|
`}
|
|
67
|
-
`,
|
|
67
|
+
`, g = ({
|
|
68
|
+
children: i,
|
|
69
|
+
name: t,
|
|
70
|
+
onSubmit: r,
|
|
71
|
+
submitDisabled: a,
|
|
72
|
+
submitLabel: o = "Submit"
|
|
73
|
+
}) => /* @__PURE__ */ n(l, { "aria-label": t, name: t, onSubmit: r, children: /* @__PURE__ */ s(c, { children: [
|
|
74
|
+
i,
|
|
75
|
+
/* @__PURE__ */ n(d, { disabled: a, type: "submit", children: o })
|
|
76
|
+
] }) });
|
|
68
77
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
x as FormItem,
|
|
79
|
+
g as WebForm
|
|
71
80
|
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as a } from "../use-carousel-
|
|
2
|
-
import { u as s } from "../use-click-outside-
|
|
3
|
-
import { u as l } from "../use-cloudinary-image-
|
|
4
|
-
import { u as t, a as f } from "../use-search-
|
|
5
|
-
import { u as x } from "../use-modal-
|
|
1
|
+
import { u as a } from "../use-carousel-CgAF78h3.mjs";
|
|
2
|
+
import { u as s } from "../use-click-outside-BUll8Ag-.mjs";
|
|
3
|
+
import { u as l } from "../use-cloudinary-image-BCxwj15o.mjs";
|
|
4
|
+
import { u as t, a as f } from "../use-search-Dj47QDw9.mjs";
|
|
5
|
+
import { u as x } from "../use-modal-CtgexKnf.mjs";
|
|
6
6
|
export {
|
|
7
7
|
a as useCarousel,
|
|
8
8
|
s as useClickOutside,
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { styled as i } from "styled-components";
|
|
3
|
+
import { theme as d } from "./components/colors/index.js";
|
|
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 g = i.a`
|
|
9
|
+
${({ theme: a }) => `
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: flex;
|
|
12
|
+
background: ${a.palette.white};
|
|
13
|
+
border-radius: ${a.spacing[0.5]};
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
gap: ${a.spacing[1]};
|
|
16
|
+
padding:
|
|
17
|
+
${a.spacing[0.5]}
|
|
18
|
+
${a.spacing[1]}
|
|
19
|
+
${a.spacing[0.5]}
|
|
20
|
+
${a.spacing[0.5]};
|
|
21
|
+
width: 1143px;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
background: ${a.palette.gray[100]};
|
|
25
|
+
|
|
26
|
+
> div.icon-wrap {
|
|
27
|
+
background: ${a.palette.gradients["01"]};
|
|
28
|
+
|
|
29
|
+
path {
|
|
30
|
+
fill: ${a.palette.white};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media screen
|
|
36
|
+
and (min-width: ${a.breakpoints.sm})
|
|
37
|
+
and (max-width: ${a.breakpoints.md})
|
|
38
|
+
{
|
|
39
|
+
width: 905px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media screen
|
|
43
|
+
and (min-width: 40em)
|
|
44
|
+
and (max-width: ${a.breakpoints.sm})
|
|
45
|
+
{
|
|
46
|
+
width: 475px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (max-width: 40em) {
|
|
50
|
+
width: 270px;
|
|
51
|
+
}
|
|
52
|
+
`}
|
|
53
|
+
`, $ = i.div.attrs({ className: "icon-wrap" })`
|
|
54
|
+
${({ theme: a }) => `
|
|
55
|
+
align-items: center;
|
|
56
|
+
background: ${a.palette.primary[25]};
|
|
57
|
+
border-radius: ${a.spacing[0.25]};
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
min-width: ${a.spacing[2.5]};
|
|
61
|
+
height: ${a.spacing[2.5]};
|
|
62
|
+
padding: ${a.spacing[0.5]};
|
|
63
|
+
|
|
64
|
+
span {
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
}
|
|
67
|
+
`}
|
|
68
|
+
`, k = i.div`
|
|
69
|
+
${({ theme: a }) => `
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: ${a.spacing[1.5]};
|
|
74
|
+
width: 1193px;
|
|
75
|
+
|
|
76
|
+
> :is(form, .dropdown) {
|
|
77
|
+
border-radius: ${a.spacing[0.5]};
|
|
78
|
+
border: 1px solid ${a.palette.gray[200]};
|
|
79
|
+
background-color: ${a.palette.white};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media screen
|
|
83
|
+
and (min-width: ${a.breakpoints.sm})
|
|
84
|
+
and (max-width: ${a.breakpoints.md})
|
|
85
|
+
{
|
|
86
|
+
width: 954px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media screen
|
|
90
|
+
and (min-width: 40em)
|
|
91
|
+
and (max-width: ${a.breakpoints.sm})
|
|
92
|
+
{
|
|
93
|
+
width: 526px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media screen and (max-width: 40em) {
|
|
97
|
+
width: 320px;
|
|
98
|
+
}
|
|
99
|
+
`}
|
|
100
|
+
`, h = i.form`
|
|
101
|
+
${({ theme: a }) => `
|
|
102
|
+
align-items: center;
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: ${a.spacing[0.5]};
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
padding: ${a.spacing[1]} ${a.spacing[1.5]};
|
|
107
|
+
width: 100%;
|
|
108
|
+
`}
|
|
109
|
+
`, S = i.input`
|
|
110
|
+
${({ theme: a }) => `
|
|
111
|
+
flex: 1 0 0;
|
|
112
|
+
border: none;
|
|
113
|
+
color: ${a.palette.gray[600]};
|
|
114
|
+
font-family: ${a.typography.type.primary};
|
|
115
|
+
font-size: ${a.typography.text.md};
|
|
116
|
+
font-weight: ${a.typography.weight.regular};
|
|
117
|
+
line-height: ${a.spacing[1.5]};
|
|
118
|
+
outline: none;
|
|
119
|
+
|
|
120
|
+
&::placeholder {
|
|
121
|
+
color: ${a.palette.gray[400]};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&::-webkit-search-decoration,
|
|
125
|
+
&::-webkit-search-cancel-button,
|
|
126
|
+
&::-webkit-search-results-button,
|
|
127
|
+
&::-webkit-search-results-decoration {
|
|
128
|
+
-webkit-appearance:none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media screen and (max-width: ${a.breakpoints.mobile}) {
|
|
132
|
+
font-size: ${a.typography.text.sm};
|
|
133
|
+
}
|
|
134
|
+
`}
|
|
135
|
+
`, v = i.button`
|
|
136
|
+
${({ theme: a }) => `
|
|
137
|
+
align-items: center;
|
|
138
|
+
border-radius: ${a.spacing[0.5]};
|
|
139
|
+
display: flex;
|
|
140
|
+
width: ${a.spacing[2.5]};
|
|
141
|
+
height: ${a.spacing[2.5]};
|
|
142
|
+
padding: ${a.spacing[0.625]} ${a.spacing[1]};
|
|
143
|
+
justify-content: center;
|
|
144
|
+
gap: ${a.spacing[0.5]};
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
|
|
147
|
+
span {
|
|
148
|
+
color: ${a.palette.gray[400]};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
background-color: ${a.palette.gray[100]};
|
|
153
|
+
}
|
|
154
|
+
`}
|
|
155
|
+
`, z = i.div.attrs({ className: "dropdown" })`
|
|
156
|
+
${({ theme: a, $empty: r = !1, $showHits: n = !1 }) => `
|
|
157
|
+
align-items: flex-start;
|
|
158
|
+
align-self: stretch;
|
|
159
|
+
background-repeat: no-repeat;
|
|
160
|
+
background-size: 100% 100%;
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: ${a.spacing[0.5]};
|
|
164
|
+
max-height: ${n ? "270px" : "500px"};
|
|
165
|
+
overflow: hidden auto;
|
|
166
|
+
padding: ${a.spacing[1.5]};
|
|
167
|
+
scrollbar-color: ${a.palette.gray[600]} ${a.palette.gray[100]};
|
|
168
|
+
scroll-padding: ${a.spacing[0.5]};
|
|
169
|
+
scrollbar-width: thin;
|
|
170
|
+
|
|
171
|
+
@media screen and (max-width: ${a.breakpoints.sm}) and (${!r}) {
|
|
172
|
+
max-height: 410px;
|
|
173
|
+
}
|
|
174
|
+
${r && `
|
|
175
|
+
@media screen and (min-width: ${a.breakpoints.mobile}) {
|
|
176
|
+
border: none !important;
|
|
177
|
+
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
|
|
178
|
+
}
|
|
179
|
+
@media screen and (max-width: ${a.breakpoints.mobile}) {
|
|
180
|
+
border: none !important;
|
|
181
|
+
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
|
|
182
|
+
}
|
|
183
|
+
`}
|
|
184
|
+
|
|
185
|
+
&::-webkit-scrollbar {
|
|
186
|
+
height: ${a.spacing[0.5]};
|
|
187
|
+
width: ${a.spacing[0.5]};
|
|
188
|
+
}
|
|
189
|
+
&::-webkit-scrollbar-track {
|
|
190
|
+
background: ${a.palette.gray[100]};
|
|
191
|
+
}
|
|
192
|
+
&::-webkit-scrollbar-thumb {
|
|
193
|
+
background-color: ${a.palette.gray[600]};
|
|
194
|
+
border-radius: ${a.spacing[5]};
|
|
195
|
+
height: ${a.spacing[0.5]};
|
|
196
|
+
}
|
|
197
|
+
`}
|
|
198
|
+
`, I = ({
|
|
199
|
+
hit: a,
|
|
200
|
+
icon: r = "infinity",
|
|
201
|
+
showIcon: n = !1
|
|
202
|
+
}) => {
|
|
203
|
+
const { slug: t, title: e } = a, o = String(t).startsWith("/pages/") ? String(t).replace("/pages/", "/") : String(t);
|
|
204
|
+
return /* @__PURE__ */ p(g, { href: o, rel: "nofollow noopener noreferrer", children: [
|
|
205
|
+
n && /* @__PURE__ */ s($, { children: /* @__PURE__ */ s(
|
|
206
|
+
c,
|
|
207
|
+
{
|
|
208
|
+
icon: r,
|
|
209
|
+
iconClass: "fill-gradient-01",
|
|
210
|
+
iconSize: "sm",
|
|
211
|
+
iconType: "fa-light"
|
|
212
|
+
}
|
|
213
|
+
) }),
|
|
214
|
+
/* @__PURE__ */ s(
|
|
215
|
+
l,
|
|
216
|
+
{
|
|
217
|
+
color: d.palette.gray[800],
|
|
218
|
+
lineSpacing: 1.5,
|
|
219
|
+
size: "md",
|
|
220
|
+
sizeSm: "sm",
|
|
221
|
+
whiteSpace: "wrap",
|
|
222
|
+
children: String(e)
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
] });
|
|
226
|
+
};
|
|
227
|
+
export {
|
|
228
|
+
I,
|
|
229
|
+
k as S,
|
|
230
|
+
h as a,
|
|
231
|
+
S as b,
|
|
232
|
+
v as c,
|
|
233
|
+
z as d
|
|
234
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "styled-components";
|
|
3
|
+
import "./components/typography/heading/index.js";
|
|
4
|
+
import "./components/typography/span/index.js";
|
|
5
|
+
import { Text as n } from "./components/typography/text/index.js";
|
|
6
|
+
const p = r.button`
|
|
7
|
+
${({ theme: o }) => `
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-left: 3px solid transparent;
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: ${o.spacing[0.625]};
|
|
12
|
+
height: 42px;
|
|
13
|
+
min-width: 50px;
|
|
14
|
+
padding: ${o.spacing[0.625]} ${o.spacing[1]};
|
|
15
|
+
|
|
16
|
+
&.dark {
|
|
17
|
+
background-color: ${o.palette.gray[800]};
|
|
18
|
+
color: ${o.palette.gray[25]};
|
|
19
|
+
|
|
20
|
+
&.disabled {
|
|
21
|
+
border-color: ${o.palette.gray[500]};
|
|
22
|
+
color: ${o.palette.gray[500]};
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover:not(.disabled) {
|
|
27
|
+
background-color: ${o.palette.gray[700]};
|
|
28
|
+
border-color: ${o.palette.primary[400]};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.light {
|
|
33
|
+
background-color: ${o.palette.gray[50]};
|
|
34
|
+
color: ${o.palette.gray[800]};
|
|
35
|
+
|
|
36
|
+
&.disabled {
|
|
37
|
+
background-color: ${o.palette.white};
|
|
38
|
+
border-color: ${o.palette.gray[300]};
|
|
39
|
+
color: ${o.palette.gray[300]};
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:hover:not(.disabled) {
|
|
44
|
+
background-color: ${o.palette.gray[100]};
|
|
45
|
+
border-color: ${o.palette.primary[400]};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`}
|
|
49
|
+
`, $ = r.div`
|
|
50
|
+
${({ theme: o }) => `
|
|
51
|
+
align-items: center;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
border-bottom: 2px solid transparent;
|
|
54
|
+
display: flex;
|
|
55
|
+
font-family: ${o.typography.type.primary};
|
|
56
|
+
font-size: ${o.typography.text.sm};
|
|
57
|
+
font-weight: ${o.typography.weight.regular};
|
|
58
|
+
gap: ${o.spacing[0.5]};
|
|
59
|
+
height: 30px;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
padding: ${o.spacing[0.25]};
|
|
62
|
+
margin-bottom: ${o.spacing[0.25]};
|
|
63
|
+
min-width: 50px;
|
|
64
|
+
width: max-content;
|
|
65
|
+
z-index: 11;
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
border-color: ${o.palette.primary[400]};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.dark {
|
|
72
|
+
color: ${o.palette.gray[25]};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.light {
|
|
76
|
+
color: ${o.palette.gray[800]};
|
|
77
|
+
}
|
|
78
|
+
`}
|
|
79
|
+
`, y = r.div`
|
|
80
|
+
${({ theme: o }) => `
|
|
81
|
+
background-color: ${o.palette.white};
|
|
82
|
+
border-radius: 0 0 ${o.spacing[0.25]} ${o.spacing[0.25]};
|
|
83
|
+
box-shadow: ${o.shadows.lg};
|
|
84
|
+
display: none;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 100%;
|
|
88
|
+
z-index: 11;
|
|
89
|
+
|
|
90
|
+
> button:last-child {
|
|
91
|
+
border-radius: 0 0 ${o.spacing[0.25]} ${o.spacing[0.25]};
|
|
92
|
+
}
|
|
93
|
+
`}
|
|
94
|
+
`, b = r.div`
|
|
95
|
+
${({ theme: o }) => `
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
gap: ${o.spacing[0.25]};
|
|
101
|
+
height: max-content;
|
|
102
|
+
position: relative;
|
|
103
|
+
width: max-content;
|
|
104
|
+
z-index: 10;
|
|
105
|
+
|
|
106
|
+
&:hover {
|
|
107
|
+
> div:first-child {
|
|
108
|
+
border-color: ${o.palette.primary[400]};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
> div:last-child {
|
|
112
|
+
display: flex;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`}
|
|
116
|
+
`, x = ({
|
|
117
|
+
disabled: o = !1,
|
|
118
|
+
mode: t,
|
|
119
|
+
onClick: i,
|
|
120
|
+
text: l
|
|
121
|
+
}) => /* @__PURE__ */ a(
|
|
122
|
+
p,
|
|
123
|
+
{
|
|
124
|
+
className: `${o && "disabled"} ${t}`,
|
|
125
|
+
disabled: o,
|
|
126
|
+
onClick: i,
|
|
127
|
+
children: /* @__PURE__ */ a(n, { color: "inherit", size: "sm", sizeSm: "xs", children: l })
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
export {
|
|
131
|
+
x as I,
|
|
132
|
+
b as S,
|
|
133
|
+
$ as a,
|
|
134
|
+
y as b
|
|
135
|
+
};
|