@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useState as r, useCallback as s } from "react";
|
|
2
|
+
const p = (t) => {
|
|
3
|
+
const [o, e] = r(!1), n = s(() => {
|
|
4
|
+
e(!0);
|
|
5
|
+
}, []), a = s(() => {
|
|
6
|
+
e(!1);
|
|
7
|
+
}, []), c = s(() => {
|
|
8
|
+
e((l) => !l);
|
|
9
|
+
}, []);
|
|
10
|
+
return { close: a, isOpen: o, name: t, open: n, setIsOpen: e, toggle: c };
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
p as u
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useMemo as u, useState as d } from "react";
|
|
2
|
+
import r from "lodash";
|
|
3
|
+
const s = (e, o) => u(
|
|
4
|
+
() => r.debounce(e, o),
|
|
5
|
+
[e, o]
|
|
6
|
+
), a = (e) => {
|
|
7
|
+
const [o, c] = d(), t = s((n) => {
|
|
8
|
+
c(n);
|
|
9
|
+
}, (e == null ? void 0 : e.debounceWait) ?? 300);
|
|
10
|
+
return [o, t];
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a,
|
|
14
|
+
s as u
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
},
|
|
26
26
|
"description": "Fluidattacks core components library",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@rollup/plugin-terser": "0.4.4",
|
|
29
28
|
"@storybook/addon-a11y": "8.4.7",
|
|
30
29
|
"@storybook/addon-essentials": "8.4.7",
|
|
31
30
|
"@storybook/addon-interactions": "8.4.7",
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
"postcss": "8.4.49",
|
|
57
56
|
"postcss-styled-syntax": "0.7.0",
|
|
58
57
|
"remark-gfm": "4.0.0",
|
|
59
|
-
"rollup-plugin-visualizer": "5.12.0",
|
|
60
58
|
"storybook": "8.4.7",
|
|
61
59
|
"stylelint": "16.12.0",
|
|
62
60
|
"stylelint-config-standard": "36.0.1",
|
|
@@ -119,5 +117,5 @@
|
|
|
119
117
|
"test-storybook": "test-storybook"
|
|
120
118
|
},
|
|
121
119
|
"typings": "./dist/index.d.ts",
|
|
122
|
-
"version": "3.1.
|
|
120
|
+
"version": "3.1.13"
|
|
123
121
|
}
|
package/dist/index-38JqtnAI.mjs
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-B5yoGFs6.mjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-BLbKylyw.mjs
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-Bu448Tz2.mjs
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { styled as a, useTheme as p } from "styled-components";
|
|
3
|
-
import "./components/typography/heading/index.js";
|
|
4
|
-
import "./components/typography/span/index.js";
|
|
5
|
-
import { Text as t } from "./components/typography/text/index.js";
|
|
6
|
-
const c = a.div`
|
|
7
|
-
${({ theme: n }) => `
|
|
8
|
-
align-items: center;
|
|
9
|
-
background-color: ${n.palette.white};
|
|
10
|
-
border: 1px solid ${n.palette.gray[200]};
|
|
11
|
-
border-radius: ${n.spacing[0.25]};
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: ${n.spacing[0.5]};
|
|
15
|
-
min-height: 180px;
|
|
16
|
-
padding: ${n.spacing[1.5]};
|
|
17
|
-
width: 510px;
|
|
18
|
-
|
|
19
|
-
p {
|
|
20
|
-
font-style: normal;
|
|
21
|
-
line-height: ${n.spacing[1.25]};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
border: 1px solid ${n.palette.gray[600]};
|
|
26
|
-
}
|
|
27
|
-
`}
|
|
28
|
-
`, b = a.div`
|
|
29
|
-
${({ theme: n }) => `
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: ${n.spacing[1.5]};
|
|
33
|
-
position: relative;
|
|
34
|
-
max-width: 1268px;
|
|
35
|
-
|
|
36
|
-
&::before {
|
|
37
|
-
background-color: ${n.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: ${n.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
|
-
`, $ = ({ 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
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
b as T,
|
|
105
|
-
$ as a
|
|
106
|
-
};
|