@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,110 @@
|
|
|
1
|
+
import { styled as i, css as e } from "styled-components";
|
|
2
|
+
import { a as s } from "./styles-CplEd2kw.mjs";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
const d = i(s)`
|
|
5
|
+
align-items: center;
|
|
6
|
+
background-color: inherit;
|
|
7
|
+
border-color: inherit;
|
|
8
|
+
display: flex;
|
|
9
|
+
height: 38px;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
width: 40px;
|
|
12
|
+
margin: ${({ $margin: t = "0" }) => e`
|
|
13
|
+
${t}
|
|
14
|
+
`};
|
|
15
|
+
|
|
16
|
+
&:hover:not(:disabled) {
|
|
17
|
+
background-color: ${({ theme: t }) => t.palette.gray[100]};
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
`, g = i.div`
|
|
21
|
+
${({ theme: t }) => `
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
background: ${t.palette.white};
|
|
24
|
+
border: 1px solid ${t.palette.gray[200]};
|
|
25
|
+
border-radius: ${t.spacing[0.5]};
|
|
26
|
+
box-shadow: ${t.shadows.md};
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: ${t.spacing[0.25]};
|
|
30
|
+
height: auto;
|
|
31
|
+
padding: ${t.spacing[0.25]};
|
|
32
|
+
width: 292px;
|
|
33
|
+
`}
|
|
34
|
+
`, u = i.button`
|
|
35
|
+
${({ theme: t, $disabled: o, $focus: a, $header: n }) => {
|
|
36
|
+
const r = a ? "34px" : "40px";
|
|
37
|
+
return `
|
|
38
|
+
align-items: center;
|
|
39
|
+
border-radius: ${n ? `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0` : "4px"};
|
|
40
|
+
border-left: inherit;
|
|
41
|
+
display: flex;
|
|
42
|
+
height: ${n ? "38px" : r};
|
|
43
|
+
justify-content: center;
|
|
44
|
+
outline: none;
|
|
45
|
+
width: ${n ? "38px" : "40px"};
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
background-color: ${t.palette.gray[o ? 500 : 100]};
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
}}
|
|
52
|
+
`, $ = i.div`
|
|
53
|
+
${({ theme: t }) => `
|
|
54
|
+
align-items: center;
|
|
55
|
+
background: transparent;
|
|
56
|
+
border-radius: ${t.spacing[0.5]} 0 0 ${t.spacing[0.5]};
|
|
57
|
+
border-color: inherit;
|
|
58
|
+
display: flex;
|
|
59
|
+
height: 100%;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
width: calc(100% - 40px);
|
|
62
|
+
`}
|
|
63
|
+
`, x = i.div`
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: flex-end;
|
|
67
|
+
gap: ${({ theme: t }) => t.spacing[0.5]};
|
|
68
|
+
flex: 1 0 0;
|
|
69
|
+
`, y = i.div`
|
|
70
|
+
${({ theme: t }) => `
|
|
71
|
+
align-items: center;
|
|
72
|
+
align-self: stretch;
|
|
73
|
+
background-color: ${t.palette.gray[200]};
|
|
74
|
+
border-radius: ${t.spacing[0.25]};
|
|
75
|
+
display: flex;
|
|
76
|
+
font-family: ${t.typography.type.primary};
|
|
77
|
+
gap: ${t.spacing[0.25]};
|
|
78
|
+
line-height: ${t.spacing[1.5]};
|
|
79
|
+
padding: 2px ${t.spacing[0.25]};
|
|
80
|
+
`}
|
|
81
|
+
`, b = i.button`
|
|
82
|
+
${({ theme: t }) => `
|
|
83
|
+
align-items: center;
|
|
84
|
+
background-color: inherit;
|
|
85
|
+
border: 0.5px solid ${t.palette.gray[200]};
|
|
86
|
+
border-radius: 7px;
|
|
87
|
+
color: ${t.palette.gray[800]};
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
display: flex;
|
|
90
|
+
font-weight: ${t.typography.weight.regular};
|
|
91
|
+
justify-content: center;
|
|
92
|
+
gap: 10px;
|
|
93
|
+
padding: 2px 10px;
|
|
94
|
+
|
|
95
|
+
&#active {
|
|
96
|
+
background-color: ${t.palette.white};
|
|
97
|
+
box-shadow: ${t.shadows.md};
|
|
98
|
+
font-weight: ${t.typography.weight.bold};
|
|
99
|
+
}
|
|
100
|
+
`}
|
|
101
|
+
`;
|
|
102
|
+
export {
|
|
103
|
+
u as C,
|
|
104
|
+
g as D,
|
|
105
|
+
$ as I,
|
|
106
|
+
d as S,
|
|
107
|
+
x as T,
|
|
108
|
+
y as a,
|
|
109
|
+
b
|
|
110
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { NavLink as o } from "react-router-dom";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
const p = t.button`
|
|
4
|
+
${({ theme: a }) => `
|
|
5
|
+
align-items: center;
|
|
6
|
+
color: ${a.palette.gray[500]};
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: ${a.spacing[0.625]};
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: ${a.spacing[0.75]};
|
|
11
|
+
text-align: center;
|
|
12
|
+
width: 151px;
|
|
13
|
+
|
|
14
|
+
&.active {
|
|
15
|
+
color: ${a.palette.gray[800]};
|
|
16
|
+
border-bottom: 3px solid ${a.palette.primary[400]};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
color: ${a.palette.gray[800]};
|
|
21
|
+
}
|
|
22
|
+
`}
|
|
23
|
+
`, n = t.div`
|
|
24
|
+
${({ theme: a }) => `
|
|
25
|
+
align-items: center;
|
|
26
|
+
border-bottom: 2px solid ${a.palette.gray[200]};
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: ${a.spacing[3]};
|
|
29
|
+
height: ${a.spacing[3]};
|
|
30
|
+
width: max-content;
|
|
31
|
+
`}
|
|
32
|
+
`, l = t(o)`
|
|
33
|
+
${({ theme: a }) => `
|
|
34
|
+
align-items: center;
|
|
35
|
+
background: transparent;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
color: ${a.palette.gray[800]};
|
|
38
|
+
font-family: ${a.typography.type.primary};
|
|
39
|
+
font-size: ${a.typography.text.sm};
|
|
40
|
+
display: flex;
|
|
41
|
+
font-weight: ${a.typography.weight.regular};
|
|
42
|
+
padding: ${a.spacing[0.625]} ${a.spacing[0.5]};
|
|
43
|
+
position: relative;
|
|
44
|
+
text-align: center;
|
|
45
|
+
text-decoration: unset;
|
|
46
|
+
|
|
47
|
+
&:disabled {
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
background-color: ${a.palette.gray[300]};
|
|
50
|
+
color: ${a.palette.gray[300]};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover:not([disabled]) {
|
|
54
|
+
background-color: ${a.palette.gray[100]};
|
|
55
|
+
color: ${a.palette.gray[800]};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.active {
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
border-bottom: solid 4px ${a.palette.primary[500]};
|
|
61
|
+
padding-bottom: calc(${a.spacing[0.625]} - 4px);
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: transparent;
|
|
65
|
+
border-bottom: solid 4px ${a.palette.primary[500]};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`}
|
|
69
|
+
`;
|
|
70
|
+
export {
|
|
71
|
+
n as S,
|
|
72
|
+
l as T,
|
|
73
|
+
p as a
|
|
74
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useState as n, useEffect as a } from "react";
|
|
2
|
+
const m = (t, r) => {
|
|
3
|
+
const [g, o] = n(0), [e, c] = n(0);
|
|
4
|
+
return a(() => {
|
|
5
|
+
e === 100 && (() => {
|
|
6
|
+
o(
|
|
7
|
+
(s) => s === r - 1 ? 0 : s + 1
|
|
8
|
+
);
|
|
9
|
+
})();
|
|
10
|
+
}, [e, r]), a(() => {
|
|
11
|
+
const i = setInterval(() => {
|
|
12
|
+
c(
|
|
13
|
+
(s) => s === 100 ? 0 : s + 1
|
|
14
|
+
);
|
|
15
|
+
}, t);
|
|
16
|
+
return () => {
|
|
17
|
+
clearInterval(i);
|
|
18
|
+
};
|
|
19
|
+
}, [t]), { cycle: g, progress: e, setCycle: o, setProgress: c };
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
m as u
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useEffect as i } from "react";
|
|
2
|
+
const s = (r, c, n = !1) => {
|
|
3
|
+
i(() => {
|
|
4
|
+
var o;
|
|
5
|
+
const e = (t) => {
|
|
6
|
+
r && !r.contains(t.target) && c();
|
|
7
|
+
};
|
|
8
|
+
return n ? (document.addEventListener("click", e, !0), () => {
|
|
9
|
+
document.removeEventListener("click", e, !0);
|
|
10
|
+
}) : ((o = document.getElementById("root")) == null || o.addEventListener("click", e, !0), () => {
|
|
11
|
+
var t;
|
|
12
|
+
(t = document.getElementById("root")) == null || t.removeEventListener("click", e, !0);
|
|
13
|
+
});
|
|
14
|
+
}, [n, r, c]);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
s as u
|
|
18
|
+
};
|