@fluidattacks/design 3.1.11 → 3.1.12
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 +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +1 -1
- 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-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
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { S as x } from "../../../styles-fH2c4cfc.mjs";
|
|
4
|
+
const b = h(function({ bgGradient: i, children: e, className: r, color: a, display: t, fontFamily: n, fontWeight: l, letterSpacing: o, lineSpacing: s, lineSpacingSm: c, size: m, sizeMd: $, sizeSm: d, textFill: p, wordBreak: f, ...g }, S) {
|
|
5
|
+
return z(x, { $bgGradient: i, $color: a, $display: t, $fontFamily: n, $fontWeight: l, $letterSpacing: o, $lineSpacing: s, $lineSpacingSm: c, $size: m, $sizeMd: $, $sizeSm: d, $textFill: p, $wordBreak: f, className: r, ref: S, ...g, children: e });
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
b as Heading
|
|
9
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { Heading as e } from "./heading/index.js";
|
|
2
|
+
import { Span as t } from "./span/index.js";
|
|
3
|
+
import { Text as f } from "./text/index.js";
|
|
4
|
+
export {
|
|
5
|
+
e as Heading,
|
|
6
|
+
t as Span,
|
|
7
|
+
f as Text
|
|
8
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { a as d } from "../../../styles-fH2c4cfc.mjs";
|
|
4
|
+
const u = g(function({ children: i, color: n, content: e, display: t, fontFamily: o, fontWeight: r, letterSpacing: a, lineSpacing: c, lineSpacingSm: l, size: s, sizeMd: p, sizeSm: m, ...f }, S) {
|
|
5
|
+
return $(d, { $color: n, $content: e, $display: t, $fontFamily: o, $fontWeight: r, $letterSpacing: a, $lineSpacing: c, $lineSpacingSm: l, $size: s, $sizeMd: p, $sizeSm: m, ref: S, ...f, children: i });
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
u as Span
|
|
9
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x } from "react";
|
|
3
|
+
import { b as h } from "../../../styles-fH2c4cfc.mjs";
|
|
4
|
+
const w = x(function({ bgGradient: i, children: e, className: r, color: t, display: a, fontFamily: n, fontWeight: l, letterSpacing: o, lineSpacing: s, lineSpacingSm: c, size: m, sizeMd: $, sizeSm: p, textFill: d, wordBreak: f, ...g }, S) {
|
|
5
|
+
return z(h, { $bgGradient: i, $color: t, $display: a, $fontFamily: n, $fontWeight: l, $letterSpacing: o, $lineSpacing: s, $lineSpacingSm: c, $size: m, $sizeMd: $, $sizeSm: p, $textFill: d, $wordBreak: f, className: r, ref: S, ...g, children: e });
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
w as Text
|
|
9
|
+
};
|
|
@@ -1,11 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } from "styled-components";
|
|
3
|
+
import { Button as o } from "../button/index.js";
|
|
4
|
+
const l = e.form`
|
|
5
|
+
${({ theme: n }) => `
|
|
6
|
+
align-items: center;
|
|
7
|
+
background: ${n.palette.gray[50]};
|
|
8
|
+
backdrop-filter: blur(11px);
|
|
9
|
+
border-radius: ${n.spacing[1]};
|
|
10
|
+
box-shadow: ${n.shadows.md};
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
padding: ${n.spacing[3]} ${n.spacing[2]};
|
|
15
|
+
width: 628px;
|
|
16
|
+
|
|
17
|
+
&::before {
|
|
18
|
+
background: ${n.palette.gradients["02"]} border-box;
|
|
19
|
+
border-radius: ${n.spacing[1]};
|
|
20
|
+
content: "";
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
border: 2px solid transparent;
|
|
24
|
+
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
25
|
+
mask-composite: exclude;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
29
|
+
width: 320px;
|
|
30
|
+
}
|
|
31
|
+
`}
|
|
32
|
+
`, m = e.div`
|
|
4
33
|
align-items: flex-start;
|
|
5
34
|
align-self: stretch;
|
|
6
35
|
display: flex;
|
|
7
36
|
flex-direction: column;
|
|
8
|
-
gap: ${({theme:n})=>n.spacing[1.5]};
|
|
37
|
+
gap: ${({ theme: n }) => n.spacing[1.5]};
|
|
9
38
|
|
|
10
39
|
button[type="submit"] {
|
|
11
40
|
width: 100%;
|
|
@@ -14,6 +43,29 @@
|
|
|
14
43
|
text-align: center;
|
|
15
44
|
}
|
|
16
45
|
}
|
|
17
|
-
`,
|
|
18
|
-
${({theme:
|
|
19
|
-
|
|
46
|
+
`, f = e.div`
|
|
47
|
+
${({ theme: n }) => `
|
|
48
|
+
align-items: flex-start;
|
|
49
|
+
align-self: stretch;
|
|
50
|
+
container-type: inline-size;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
gap: ${n.spacing[1]};
|
|
54
|
+
position: relative;
|
|
55
|
+
|
|
56
|
+
&:has(> :nth-child(2)) {
|
|
57
|
+
> div {
|
|
58
|
+
display: flex;
|
|
59
|
+
width: 50%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
`}
|
|
67
|
+
`, x = ({ children: n, name: i, onSubmit: a, submitDisabled: s, submitLabel: r = "Submit" }) => t(l, { "aria-label": i, name: i, onSubmit: a, children: d(m, { children: [n, t(o, { disabled: s, type: "submit", children: r })] }) });
|
|
68
|
+
export {
|
|
69
|
+
f as FormItem,
|
|
70
|
+
x as WebForm
|
|
71
|
+
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { u as a } from "../use-carousel-CvRxi2FI.mjs";
|
|
2
|
+
import { u as s } from "../use-click-outside-BtZLIoU1.mjs";
|
|
3
|
+
import { u as l } from "../use-cloudinary-image-fG7ODNgr.mjs";
|
|
4
|
+
import { u as t, a as f } from "../use-search-DpLNvt7Q.mjs";
|
|
5
|
+
import { u as x } from "../use-modal-CkrZ-_-M.mjs";
|
|
6
|
+
export {
|
|
7
|
+
a as useCarousel,
|
|
8
|
+
s as useClickOutside,
|
|
9
|
+
l as useCloudinaryImage,
|
|
10
|
+
t as useDebouncedCallback,
|
|
11
|
+
x as useModal,
|
|
12
|
+
f as useSearch
|
|
13
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } from "styled-components";
|
|
3
|
+
import "./components/typography/heading/index.js";
|
|
4
|
+
import "./components/typography/span/index.js";
|
|
5
|
+
import { Text as i } from "./components/typography/text/index.js";
|
|
6
|
+
const l = e.button`
|
|
7
|
+
${({ theme: n }) => `
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-left: 3px solid transparent;
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: ${n.spacing[0.625]};
|
|
12
|
+
height: 42px;
|
|
13
|
+
min-width: 50px;
|
|
14
|
+
padding: ${n.spacing[0.625]} ${n.spacing[1]};
|
|
15
|
+
|
|
16
|
+
&.dark {
|
|
17
|
+
background-color: ${n.palette.gray[800]};
|
|
18
|
+
color: ${n.palette.gray[25]};
|
|
19
|
+
|
|
20
|
+
&.disabled {
|
|
21
|
+
border-color: ${n.palette.gray[500]};
|
|
22
|
+
color: ${n.palette.gray[500]};
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover:not(.disabled) {
|
|
27
|
+
background-color: ${n.palette.gray[700]};
|
|
28
|
+
border-color: ${n.palette.primary[400]};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.light {
|
|
33
|
+
background-color: ${n.palette.gray[50]};
|
|
34
|
+
color: ${n.palette.gray[800]};
|
|
35
|
+
|
|
36
|
+
&.disabled {
|
|
37
|
+
background-color: ${n.palette.white};
|
|
38
|
+
border-color: ${n.palette.gray[300]};
|
|
39
|
+
color: ${n.palette.gray[300]};
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:hover:not(.disabled) {
|
|
44
|
+
background-color: ${n.palette.gray[100]};
|
|
45
|
+
border-color: ${n.palette.primary[400]};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`}
|
|
49
|
+
`, $ = e.div`
|
|
50
|
+
${({ theme: n }) => `
|
|
51
|
+
align-items: center;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
border-bottom: 2px solid transparent;
|
|
54
|
+
display: flex;
|
|
55
|
+
font-family: ${n.typography.type.primary};
|
|
56
|
+
font-size: ${n.typography.text.sm};
|
|
57
|
+
font-weight: ${n.typography.weight.regular};
|
|
58
|
+
gap: ${n.spacing[0.5]};
|
|
59
|
+
height: 30px;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
padding: ${n.spacing[0.25]};
|
|
62
|
+
margin-bottom: ${n.spacing[0.25]};
|
|
63
|
+
min-width: 50px;
|
|
64
|
+
width: max-content;
|
|
65
|
+
z-index: 11;
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
border-color: ${n.palette.primary[400]};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.dark {
|
|
72
|
+
color: ${n.palette.gray[25]};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.light {
|
|
76
|
+
color: ${n.palette.gray[800]};
|
|
77
|
+
}
|
|
78
|
+
`}
|
|
79
|
+
`, m = e.div`
|
|
80
|
+
${({ theme: n }) => `
|
|
81
|
+
background-color: ${n.palette.white};
|
|
82
|
+
border-radius: 0 0 ${n.spacing[0.25]} ${n.spacing[0.25]};
|
|
83
|
+
box-shadow: ${n.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 ${n.spacing[0.25]} ${n.spacing[0.25]};
|
|
92
|
+
}
|
|
93
|
+
`}
|
|
94
|
+
`, h = e.div`
|
|
95
|
+
${({ theme: n }) => `
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
gap: ${n.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: ${n.palette.primary[400]};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
> div:last-child {
|
|
112
|
+
display: flex;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`}
|
|
116
|
+
`, y = ({ disabled: n = !1, mode: o, onClick: r, text: a }) => t(l, { className: `${n && "disabled"} ${o}`, disabled: n, onClick: r, children: t(i, { color: "inherit", size: "sm", sizeSm: "xs", children: a }) });
|
|
117
|
+
export {
|
|
118
|
+
y as I,
|
|
119
|
+
h as S,
|
|
120
|
+
$ as a,
|
|
121
|
+
m as b
|
|
122
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as s } from "react";
|
|
3
|
+
import { styled as a, useTheme as l } from "styled-components";
|
|
4
|
+
import { Icon as p } from "./components/icon/index.js";
|
|
5
|
+
import "./components/typography/heading/index.js";
|
|
6
|
+
import "./components/typography/span/index.js";
|
|
7
|
+
import { Text as c } from "./components/typography/text/index.js";
|
|
8
|
+
const f = a.div`
|
|
9
|
+
${({ theme: e, $itemsLength: n }) => `
|
|
10
|
+
display: flex;
|
|
11
|
+
background-color: ${e.palette.white};
|
|
12
|
+
border: 1px solid ${e.palette.gray[200]};
|
|
13
|
+
border-radius: ${e.spacing[0.25]};
|
|
14
|
+
box-shadow: ${e.shadows.lg};
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
min-width: 507px;
|
|
17
|
+
max-width: ${n <= 4 ? "507px" : "980px"};
|
|
18
|
+
padding: ${e.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
|
+
`, m = a.div`
|
|
28
|
+
${({ theme: e, $isSelected: n }) => `
|
|
29
|
+
align-items: center;
|
|
30
|
+
background-color: ${n ? e.palette.gray[100] : e.palette.white};
|
|
31
|
+
border: 1px solid ${e.palette.gray[200]};
|
|
32
|
+
border-radius: ${e.spacing[0.25]};
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: ${n ? "row-reverse" : "row"};
|
|
36
|
+
min-height: 50px;
|
|
37
|
+
padding: ${e.spacing[1]} ${e.spacing[0.625]};
|
|
38
|
+
width: 215px;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: ${e.palette.gray[100]};
|
|
42
|
+
}
|
|
43
|
+
`}
|
|
44
|
+
`, y = ({ isSelected: e = !1, label: n, onSelect: i }) => {
|
|
45
|
+
const t = l(), o = s(() => {
|
|
46
|
+
i && i(n);
|
|
47
|
+
}, [i, n]);
|
|
48
|
+
return d(m, { $isSelected: e, onClick: o, children: [e ? r(p, { icon: "check", iconColor: t.palette.gray[800], iconSize: "md" }) : null, r(c, { color: t.palette.gray[800], fontWeight: "bold", size: "sm", children: n })] });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
m as O,
|
|
52
|
+
f as S,
|
|
53
|
+
y as a
|
|
54
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } 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 = e.a`
|
|
9
|
+
${({ theme: n }) => `
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: flex;
|
|
12
|
+
background: ${n.palette.white};
|
|
13
|
+
border-radius: ${n.spacing[0.5]};
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
gap: ${n.spacing[1]};
|
|
16
|
+
padding:
|
|
17
|
+
${n.spacing[0.5]}
|
|
18
|
+
${n.spacing[1]}
|
|
19
|
+
${n.spacing[0.5]}
|
|
20
|
+
${n.spacing[0.5]};
|
|
21
|
+
width: 1143px;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
background: ${n.palette.gray[100]};
|
|
25
|
+
|
|
26
|
+
> div.icon-wrap {
|
|
27
|
+
background: ${n.palette.gradients["01"]};
|
|
28
|
+
|
|
29
|
+
path {
|
|
30
|
+
fill: ${n.palette.white};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media screen
|
|
36
|
+
and (min-width: ${n.breakpoints.sm})
|
|
37
|
+
and (max-width: ${n.breakpoints.md})
|
|
38
|
+
{
|
|
39
|
+
width: 905px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media screen
|
|
43
|
+
and (min-width: 40em)
|
|
44
|
+
and (max-width: ${n.breakpoints.sm})
|
|
45
|
+
{
|
|
46
|
+
width: 475px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (max-width: 40em) {
|
|
50
|
+
width: 270px;
|
|
51
|
+
}
|
|
52
|
+
`}
|
|
53
|
+
`, m = e.div.attrs({ className: "icon-wrap" })`
|
|
54
|
+
${({ theme: n }) => `
|
|
55
|
+
align-items: center;
|
|
56
|
+
background: ${n.palette.primary[25]};
|
|
57
|
+
border-radius: ${n.spacing[0.25]};
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
min-width: ${n.spacing[2.5]};
|
|
61
|
+
height: ${n.spacing[2.5]};
|
|
62
|
+
padding: ${n.spacing[0.5]};
|
|
63
|
+
|
|
64
|
+
span {
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
}
|
|
67
|
+
`}
|
|
68
|
+
`, f = e.div`
|
|
69
|
+
${({ theme: n }) => `
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: ${n.spacing[1.5]};
|
|
74
|
+
width: 1193px;
|
|
75
|
+
|
|
76
|
+
> :is(form, .dropdown) {
|
|
77
|
+
border-radius: ${n.spacing[0.5]};
|
|
78
|
+
border: 1px solid ${n.palette.gray[200]};
|
|
79
|
+
background-color: ${n.palette.white};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media screen
|
|
83
|
+
and (min-width: ${n.breakpoints.sm})
|
|
84
|
+
and (max-width: ${n.breakpoints.md})
|
|
85
|
+
{
|
|
86
|
+
width: 954px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media screen
|
|
90
|
+
and (min-width: 40em)
|
|
91
|
+
and (max-width: ${n.breakpoints.sm})
|
|
92
|
+
{
|
|
93
|
+
width: 526px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media screen and (max-width: 40em) {
|
|
97
|
+
width: 320px;
|
|
98
|
+
}
|
|
99
|
+
`}
|
|
100
|
+
`, k = e.form`
|
|
101
|
+
${({ theme: n }) => `
|
|
102
|
+
align-items: center;
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: ${n.spacing[0.5]};
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
padding: ${n.spacing[1]} ${n.spacing[1.5]};
|
|
107
|
+
width: 100%;
|
|
108
|
+
`}
|
|
109
|
+
`, v = e.input`
|
|
110
|
+
${({ theme: n }) => `
|
|
111
|
+
flex: 1 0 0;
|
|
112
|
+
border: none;
|
|
113
|
+
color: ${n.palette.gray[600]};
|
|
114
|
+
font-family: ${n.typography.type.primary};
|
|
115
|
+
font-size: ${n.typography.text.md};
|
|
116
|
+
font-weight: ${n.typography.weight.regular};
|
|
117
|
+
line-height: ${n.spacing[1.5]};
|
|
118
|
+
outline: none;
|
|
119
|
+
|
|
120
|
+
&::placeholder {
|
|
121
|
+
color: ${n.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: ${n.breakpoints.mobile}) {
|
|
132
|
+
font-size: ${n.typography.text.sm};
|
|
133
|
+
}
|
|
134
|
+
`}
|
|
135
|
+
`, S = e.button`
|
|
136
|
+
${({ theme: n }) => `
|
|
137
|
+
align-items: center;
|
|
138
|
+
border-radius: ${n.spacing[0.5]};
|
|
139
|
+
display: flex;
|
|
140
|
+
width: ${n.spacing[2.5]};
|
|
141
|
+
height: ${n.spacing[2.5]};
|
|
142
|
+
padding: ${n.spacing[0.625]} ${n.spacing[1]};
|
|
143
|
+
justify-content: center;
|
|
144
|
+
gap: ${n.spacing[0.5]};
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
|
|
147
|
+
span {
|
|
148
|
+
color: ${n.palette.gray[400]};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
background-color: ${n.palette.gray[100]};
|
|
153
|
+
}
|
|
154
|
+
`}
|
|
155
|
+
`, z = e.div.attrs({ className: "dropdown" })`
|
|
156
|
+
${({ theme: n, $empty: a = !1, $showHits: i = !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: ${n.spacing[0.5]};
|
|
164
|
+
max-height: ${i ? "270px" : "500px"};
|
|
165
|
+
overflow: hidden auto;
|
|
166
|
+
padding: ${n.spacing[1.5]};
|
|
167
|
+
scrollbar-color: ${n.palette.gray[600]} ${n.palette.gray[100]};
|
|
168
|
+
scroll-padding: ${n.spacing[0.5]};
|
|
169
|
+
scrollbar-width: thin;
|
|
170
|
+
|
|
171
|
+
@media screen and (max-width: ${n.breakpoints.sm}) and (${!a}) {
|
|
172
|
+
max-height: 410px;
|
|
173
|
+
}
|
|
174
|
+
${a && `
|
|
175
|
+
@media screen and (min-width: ${n.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: ${n.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: ${n.spacing[0.5]};
|
|
187
|
+
width: ${n.spacing[0.5]};
|
|
188
|
+
}
|
|
189
|
+
&::-webkit-scrollbar-track {
|
|
190
|
+
background: ${n.palette.gray[100]};
|
|
191
|
+
}
|
|
192
|
+
&::-webkit-scrollbar-thumb {
|
|
193
|
+
background-color: ${n.palette.gray[600]};
|
|
194
|
+
border-radius: ${n.spacing[5]};
|
|
195
|
+
height: ${n.spacing[0.5]};
|
|
196
|
+
}
|
|
197
|
+
`}
|
|
198
|
+
`, j = ({ hit: n, icon: a = "infinity", showIcon: i = !1 }) => {
|
|
199
|
+
const { slug: t, title: s } = n, o = String(t).startsWith("/pages/") ? String(t).replace("/pages/", "/") : String(t);
|
|
200
|
+
return p(g, { href: o, rel: "nofollow noopener noreferrer", children: [i && r(m, { children: r(c, { icon: a, iconClass: "fill-gradient-01", iconSize: "sm", iconType: "fa-light" }) }), r(l, { color: d.palette.gray[800], lineSpacing: 1.5, size: "md", sizeSm: "sm", whiteSpace: "wrap", children: String(s) })] });
|
|
201
|
+
};
|
|
202
|
+
export {
|
|
203
|
+
j as I,
|
|
204
|
+
f as S,
|
|
205
|
+
k as a,
|
|
206
|
+
v as b,
|
|
207
|
+
S as c,
|
|
208
|
+
z as d
|
|
209
|
+
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as a, useTheme as p } from "styled-components";
|
|
3
3
|
import "./components/typography/heading/index.js";
|
|
4
4
|
import "./components/typography/span/index.js";
|
|
5
|
-
import { Text as
|
|
6
|
-
const
|
|
7
|
-
${({ theme:
|
|
5
|
+
import { Text as t } from "./components/typography/text/index.js";
|
|
6
|
+
const c = a.div`
|
|
7
|
+
${({ theme: n }) => `
|
|
8
8
|
align-items: center;
|
|
9
|
-
background-color: ${
|
|
10
|
-
border: 1px solid ${
|
|
11
|
-
border-radius: ${
|
|
9
|
+
background-color: ${n.palette.white};
|
|
10
|
+
border: 1px solid ${n.palette.gray[200]};
|
|
11
|
+
border-radius: ${n.spacing[0.25]};
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
|
-
gap: ${
|
|
14
|
+
gap: ${n.spacing[0.5]};
|
|
15
15
|
min-height: 180px;
|
|
16
|
-
padding: ${
|
|
16
|
+
padding: ${n.spacing[1.5]};
|
|
17
17
|
width: 510px;
|
|
18
18
|
|
|
19
19
|
p {
|
|
20
20
|
font-style: normal;
|
|
21
|
-
line-height: ${
|
|
21
|
+
line-height: ${n.spacing[1.25]};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&:hover {
|
|
25
|
-
border: 1px solid ${
|
|
25
|
+
border: 1px solid ${n.palette.gray[600]};
|
|
26
26
|
}
|
|
27
27
|
`}
|
|
28
|
-
`,
|
|
29
|
-
${({ theme:
|
|
28
|
+
`, b = a.div`
|
|
29
|
+
${({ theme: n }) => `
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
|
-
gap: ${
|
|
32
|
+
gap: ${n.spacing[1.5]};
|
|
33
33
|
position: relative;
|
|
34
34
|
max-width: 1268px;
|
|
35
35
|
|
|
36
36
|
&::before {
|
|
37
|
-
background-color: ${
|
|
37
|
+
background-color: ${n.palette.gray[200]};
|
|
38
38
|
border-radius: 5px;
|
|
39
39
|
height: 100%;
|
|
40
40
|
width: 4px;
|
|
@@ -52,7 +52,7 @@ const o = t.div`
|
|
|
52
52
|
|
|
53
53
|
&::before {
|
|
54
54
|
position: absolute;
|
|
55
|
-
background-color: ${
|
|
55
|
+
background-color: ${n.palette.primary[500]};
|
|
56
56
|
border-radius: 50%;
|
|
57
57
|
height: 14px;
|
|
58
58
|
width: 14px;
|
|
@@ -96,11 +96,11 @@ const o = t.div`
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
`}
|
|
99
|
-
`,
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
`, $ = ({ date: n, description: o, title: l }) => {
|
|
100
|
+
const i = p();
|
|
101
|
+
return s(c, { className: "timeline-card", children: [e(t, { color: i.palette.gray[800], fontWeight: "bold", lineSpacing: 1.75, size: "xl", children: n }), e(t, { color: i.palette.gray[800], fontWeight: "bold", lineSpacing: 1.5, mb: 0.5, size: "md", textAlign: "center", children: l }), e("div", { children: o.map((r, d) => e(t, { size: "sm", textAlign: "center", wordBreak: "break-word", children: r }, `${r}#${d}`)) })] });
|
|
102
102
|
};
|
|
103
103
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
b as T,
|
|
105
|
+
$ as a
|
|
106
106
|
};
|