@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,95 +1,153 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as $, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { styled as p } from "styled-components";
|
|
3
|
-
import { v as
|
|
4
|
-
import "../../styles-
|
|
3
|
+
import { v as h } from "../../utils-V0EumEPM.mjs";
|
|
4
|
+
import "../../styles-CplEd2kw.mjs";
|
|
5
5
|
import { Container as d } from "../container/index.js";
|
|
6
6
|
import "../typography/heading/index.js";
|
|
7
7
|
import "../typography/span/index.js";
|
|
8
|
-
import { Text as
|
|
9
|
-
const { getVariant:
|
|
8
|
+
import { Text as f } from "../typography/text/index.js";
|
|
9
|
+
const { getVariant: u } = h(
|
|
10
|
+
(r) => ({
|
|
11
|
+
compliance: `
|
|
10
12
|
display: inline-flex;
|
|
11
13
|
|
|
12
14
|
&.horizontal {
|
|
13
|
-
height: ${
|
|
15
|
+
height: ${r.spacing[0.75]};
|
|
14
16
|
}
|
|
15
17
|
&.vertical {
|
|
16
|
-
width: ${
|
|
18
|
+
width: ${r.spacing[0.75]};
|
|
17
19
|
}
|
|
18
|
-
`,
|
|
20
|
+
`,
|
|
21
|
+
default: `
|
|
19
22
|
display: inline-flex;
|
|
20
23
|
|
|
21
24
|
&.horizontal {
|
|
22
|
-
height: ${
|
|
25
|
+
height: ${r.spacing[0.5]};
|
|
23
26
|
}
|
|
24
27
|
&.vertical {
|
|
25
|
-
width: ${
|
|
28
|
+
width: ${r.spacing[0.5]};
|
|
26
29
|
}
|
|
27
30
|
.progress-bar {
|
|
28
|
-
background-color: ${
|
|
31
|
+
background-color: ${r.palette.primary[500]};
|
|
29
32
|
}
|
|
30
|
-
`,
|
|
33
|
+
`,
|
|
34
|
+
progressIndicator: `
|
|
31
35
|
display: flex;
|
|
32
36
|
|
|
33
37
|
&.horizontal {
|
|
34
|
-
height: ${
|
|
38
|
+
height: ${r.spacing[0.125]};
|
|
35
39
|
}
|
|
36
40
|
&.vertical {
|
|
37
|
-
width: ${
|
|
41
|
+
width: ${r.spacing[0.125]};
|
|
38
42
|
}
|
|
39
43
|
.progress-bar {
|
|
40
|
-
background-color: ${
|
|
44
|
+
background-color: ${r.palette.primary[500]};
|
|
41
45
|
}
|
|
42
|
-
`,
|
|
46
|
+
`,
|
|
47
|
+
progressIndicatorError: `
|
|
43
48
|
display: flex;
|
|
44
49
|
|
|
45
50
|
&.horizontal {
|
|
46
|
-
height: ${
|
|
51
|
+
height: ${r.spacing[0.125]};
|
|
47
52
|
}
|
|
48
53
|
&.vertical {
|
|
49
|
-
width: ${
|
|
54
|
+
width: ${r.spacing[0.125]};
|
|
50
55
|
}
|
|
51
56
|
.progress-bar {
|
|
52
|
-
background-color: ${
|
|
57
|
+
background-color: ${r.palette.error[200]};
|
|
53
58
|
}
|
|
54
|
-
`,
|
|
55
|
-
|
|
59
|
+
`,
|
|
60
|
+
small: `
|
|
61
|
+
color: ${r.palette.primary[500]};
|
|
56
62
|
display: inline-flex;
|
|
57
63
|
|
|
58
64
|
&.horizontal {
|
|
59
|
-
height: ${
|
|
65
|
+
height: ${r.spacing[0.25]};
|
|
60
66
|
}
|
|
61
67
|
&.vertical {
|
|
62
|
-
width: ${
|
|
68
|
+
width: ${r.spacing[0.25]};
|
|
63
69
|
}
|
|
64
70
|
.progress-bar {
|
|
65
|
-
background-color: ${
|
|
71
|
+
background-color: ${r.palette.primary[500]};
|
|
66
72
|
}
|
|
67
|
-
`
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
`
|
|
74
|
+
})
|
|
75
|
+
), x = (r, i) => i < 50 ? r.palette.error[500] : i < 80 ? r.palette.warning[500] : r.palette.success[500], b = p.div`
|
|
76
|
+
${({ theme: r, $minWidth: i, $orientation: a, $rounded: t, $variant: o }) => `
|
|
77
|
+
background-color: ${r.palette.gray[100]};
|
|
70
78
|
border-radius: ${t ? "100px" : "unset"};
|
|
71
|
-
${
|
|
72
|
-
${
|
|
79
|
+
${a === "horizontal" ? "min-width" : "min-height"}: ${i}px;
|
|
80
|
+
${a === "horizontal" ? "" : "height: 100%;"}
|
|
73
81
|
|
|
74
|
-
${
|
|
82
|
+
${u(r, o)}
|
|
75
83
|
|
|
76
84
|
`}
|
|
77
|
-
`,
|
|
78
|
-
${({ theme:
|
|
85
|
+
`, m = p.div`
|
|
86
|
+
${({ theme: r, $percentage: i, $rounded: a, $variant: t }) => `
|
|
79
87
|
display: inline-flex;
|
|
80
|
-
width: ${
|
|
88
|
+
width: ${i}%;
|
|
81
89
|
max-width: 100%;
|
|
82
90
|
min-width: 0%;
|
|
83
91
|
height: 100%;
|
|
84
|
-
border-radius: ${
|
|
85
|
-
border-end-end-radius: ${
|
|
86
|
-
border-start-end-radius: ${
|
|
87
|
-
background-color: ${t === "compliance" ? (
|
|
92
|
+
border-radius: ${a ? "100px" : "unset"};
|
|
93
|
+
border-end-end-radius: ${a && i < 100 ? "0" : "inherit"};
|
|
94
|
+
border-start-end-radius: ${a && i < 100 ? "0" : "inherit"};
|
|
95
|
+
background-color: ${t === "compliance" ? x(r, i) : "inherit"};
|
|
88
96
|
`}
|
|
89
|
-
`,
|
|
90
|
-
|
|
91
|
-
|
|
97
|
+
`, C = ({
|
|
98
|
+
minWidth: r = 100,
|
|
99
|
+
percentage: i,
|
|
100
|
+
percentageLocation: a = "right",
|
|
101
|
+
showPercentage: t = !1,
|
|
102
|
+
orientation: o = "horizontal",
|
|
103
|
+
rounded: s = !0,
|
|
104
|
+
variant: e = "default"
|
|
105
|
+
}) => {
|
|
106
|
+
const l = t && a === "left", c = t ? /* @__PURE__ */ n(
|
|
107
|
+
d,
|
|
108
|
+
{
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
display: "flex",
|
|
111
|
+
justify: l ? "flex-end" : "flex-start",
|
|
112
|
+
width: "40px",
|
|
113
|
+
children: /* @__PURE__ */ n(f, { ml: 0.5, mr: l ? 0.5 : 0, size: "sm", children: `${i}%` })
|
|
114
|
+
}
|
|
115
|
+
) : null, g = /* @__PURE__ */ n(
|
|
116
|
+
b,
|
|
117
|
+
{
|
|
118
|
+
$minWidth: r,
|
|
119
|
+
$orientation: o,
|
|
120
|
+
$rounded: s,
|
|
121
|
+
$variant: e,
|
|
122
|
+
className: o,
|
|
123
|
+
children: /* @__PURE__ */ n(
|
|
124
|
+
m,
|
|
125
|
+
{
|
|
126
|
+
$percentage: i,
|
|
127
|
+
$rounded: s,
|
|
128
|
+
$variant: e,
|
|
129
|
+
className: "progress-bar"
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
return /* @__PURE__ */ $(
|
|
135
|
+
d,
|
|
136
|
+
{
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
display: "inline-flex",
|
|
139
|
+
flexDirection: l ? "row-reverse" : "row",
|
|
140
|
+
height: o === "horizontal" ? "auto" : "100%",
|
|
141
|
+
maxWidth: l ? `${r + 43}px` : void 0,
|
|
142
|
+
minWidth: l ? `${r + 43}px` : void 0,
|
|
143
|
+
textAlign: "end",
|
|
144
|
+
children: [
|
|
145
|
+
g,
|
|
146
|
+
c
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
);
|
|
92
150
|
};
|
|
93
151
|
export {
|
|
94
|
-
|
|
152
|
+
C as ProgressBar
|
|
95
153
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { styled as
|
|
4
|
-
const
|
|
5
|
-
${({ theme:
|
|
1
|
+
import { jsxs as k, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { styled as i } from "styled-components";
|
|
4
|
+
const g = i.label`
|
|
5
|
+
${({ theme: r }) => `
|
|
6
6
|
align-items: center;
|
|
7
7
|
display: flex;
|
|
8
|
-
color: ${
|
|
8
|
+
color: ${r.palette.gray[600]};
|
|
9
9
|
cursor: pointer;
|
|
10
|
-
font-family: ${
|
|
11
|
-
font-size: ${
|
|
12
|
-
font-weight: ${
|
|
13
|
-
gap: ${
|
|
14
|
-
line-height: ${
|
|
10
|
+
font-family: ${r.typography.type.primary};
|
|
11
|
+
font-size: ${r.typography.text.sm};
|
|
12
|
+
font-weight: ${r.typography.weight.regular};
|
|
13
|
+
gap: ${r.spacing[0.5]};
|
|
14
|
+
line-height: ${r.typography.text.lg};
|
|
15
15
|
text-align: left;
|
|
16
16
|
position: relative;
|
|
17
17
|
|
|
18
18
|
&[aria-disabled="true"] {
|
|
19
|
-
color: ${
|
|
19
|
+
color: ${r.palette.gray[300]};
|
|
20
20
|
cursor: not-allowed;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -33,30 +33,30 @@ const k = r.label`
|
|
|
33
33
|
left: 0;
|
|
34
34
|
height: 16px;
|
|
35
35
|
width: 16px;
|
|
36
|
-
background-color: ${
|
|
36
|
+
background-color: ${r.palette.white};
|
|
37
37
|
border-radius: 50%;
|
|
38
|
-
border: 1px solid ${
|
|
38
|
+
border: 1px solid ${r.palette.gray[600]};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
input:disabled ~ .checkmark {
|
|
42
|
-
border: 1px solid ${
|
|
43
|
-
background-color: ${
|
|
42
|
+
border: 1px solid ${r.palette.gray[300]};
|
|
43
|
+
background-color: ${r.palette.white};
|
|
44
44
|
cursor: not-allowed;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
input:not(:disabled):checked ~ .checkmark {
|
|
48
|
-
background-color: ${
|
|
49
|
-
border: 1px solid ${
|
|
48
|
+
background-color: ${r.palette.white};
|
|
49
|
+
border: 1px solid ${r.palette.primary[500]};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
input:not(:disabled):hover ~ .checkmark {
|
|
53
|
-
background-color: ${
|
|
54
|
-
box-shadow: 0 0 0 4px ${
|
|
53
|
+
background-color: ${r.palette.white};
|
|
54
|
+
box-shadow: 0 0 0 4px ${r.palette.gray[100]};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
input:not(:disabled):hover:checked ~ .checkmark {
|
|
58
|
-
background-color: ${
|
|
59
|
-
box-shadow: 0 0 0 4px ${
|
|
58
|
+
background-color: ${r.palette.white};
|
|
59
|
+
box-shadow: 0 0 0 4px ${r.palette.primary[50]};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.checkmark::after {
|
|
@@ -68,7 +68,7 @@ const k = r.label`
|
|
|
68
68
|
width: 8px;
|
|
69
69
|
height: 8px;
|
|
70
70
|
border-radius: 50%;
|
|
71
|
-
background: ${
|
|
71
|
+
background: ${r.palette.primary[500]};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
input:checked ~ .checkmark::after {
|
|
@@ -76,13 +76,50 @@ const k = r.label`
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
input:disabled:checked ~ .checkmark::after {
|
|
79
|
-
background-color: ${
|
|
79
|
+
background-color: ${r.palette.gray[300]};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
`}
|
|
83
|
-
`,
|
|
84
|
-
|
|
83
|
+
`, b = i.span.attrs({ className: "checkmark" })``, $ = u(function({
|
|
84
|
+
defaultChecked: t = !1,
|
|
85
|
+
disabled: a = !1,
|
|
86
|
+
label: l,
|
|
87
|
+
name: o,
|
|
88
|
+
onChange: p,
|
|
89
|
+
onClick: c,
|
|
90
|
+
value: d,
|
|
91
|
+
...n
|
|
92
|
+
}, s) {
|
|
93
|
+
return /* @__PURE__ */ k(
|
|
94
|
+
g,
|
|
95
|
+
{
|
|
96
|
+
"aria-disabled": a,
|
|
97
|
+
"aria-label": o,
|
|
98
|
+
role: "radiogroup",
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
"input",
|
|
102
|
+
{
|
|
103
|
+
"aria-checked": t,
|
|
104
|
+
"aria-disabled": a,
|
|
105
|
+
"aria-label": o,
|
|
106
|
+
defaultChecked: t,
|
|
107
|
+
disabled: a,
|
|
108
|
+
name: o,
|
|
109
|
+
onChange: p,
|
|
110
|
+
onClick: c,
|
|
111
|
+
ref: s,
|
|
112
|
+
type: "radio",
|
|
113
|
+
value: d,
|
|
114
|
+
...n
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ e(b, {}),
|
|
118
|
+
l ?? null
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
);
|
|
85
122
|
});
|
|
86
123
|
export {
|
|
87
|
-
|
|
124
|
+
$ as RadioButton
|
|
88
125
|
};
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { styled as
|
|
4
|
-
import { IconButton as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useEffect as p, useCallback as m } from "react";
|
|
3
|
+
import { styled as a } from "styled-components";
|
|
4
|
+
import { IconButton as u } from "../icon-button/index.js";
|
|
5
|
+
const d = a.div.attrs({
|
|
6
|
+
className: "comp-scroll-up"
|
|
7
|
+
})`
|
|
6
8
|
bottom: 15px;
|
|
7
9
|
position: fixed;
|
|
8
10
|
right: 140px;
|
|
9
11
|
z-index: 100;
|
|
10
|
-
`,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
`, g = ({
|
|
13
|
+
scrollerId: t = "dashboard",
|
|
14
|
+
visibleAt: e = 500
|
|
15
|
+
}) => {
|
|
16
|
+
const [n, l] = i(!1), [o, r] = i(null);
|
|
17
|
+
p(() => {
|
|
18
|
+
r(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
|
|
19
|
+
l(o.scrollTop > e);
|
|
20
|
+
});
|
|
21
|
+
}, [o, t, e]);
|
|
22
|
+
const c = m(() => {
|
|
23
|
+
o == null || o.scrollTo({
|
|
24
|
+
behavior: "smooth",
|
|
25
|
+
top: 0
|
|
15
26
|
});
|
|
16
|
-
}, [o, t, s]);
|
|
17
|
-
const n = m(() => {
|
|
18
|
-
o == null || o.scrollTo({ behavior: "smooth", top: 0 });
|
|
19
27
|
}, [o]);
|
|
20
|
-
return
|
|
28
|
+
return n ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(
|
|
29
|
+
u,
|
|
30
|
+
{
|
|
31
|
+
height: "40px",
|
|
32
|
+
icon: "arrow-up",
|
|
33
|
+
iconSize: "sm",
|
|
34
|
+
id: "scroll-up",
|
|
35
|
+
onClick: c,
|
|
36
|
+
width: "40px"
|
|
37
|
+
}
|
|
38
|
+
) }) : null;
|
|
21
39
|
};
|
|
22
40
|
export {
|
|
23
|
-
|
|
41
|
+
g as ScrollUpButton
|
|
24
42
|
};
|
|
@@ -1,62 +1,104 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import { u } from "../../index-
|
|
3
|
-
import { isEmpty as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { styled as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
10
|
-
${({ theme:
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { u as h } from "../../index-DwznImvK.mjs";
|
|
3
|
+
import { isEmpty as $ } from "lodash";
|
|
4
|
+
import { forwardRef as b, useState as w, useCallback as S, Fragment as k } from "react";
|
|
5
|
+
import { styled as i, useTheme as C } from "styled-components";
|
|
6
|
+
import { Icon as z } from "../icon/index.js";
|
|
7
|
+
import { IconButton as c } from "../icon-button/index.js";
|
|
8
|
+
import { u as O } from "../../use-click-outside-BUll8Ag-.mjs";
|
|
9
|
+
const v = i.input`
|
|
10
|
+
${({ theme: o }) => `
|
|
11
11
|
background: none;
|
|
12
12
|
border: none !important;
|
|
13
13
|
box-shadow: none;
|
|
14
14
|
box-sizing: border-box;
|
|
15
|
-
color: ${
|
|
16
|
-
font-family: ${
|
|
17
|
-
font-size: ${
|
|
15
|
+
color: ${o.palette.gray[800]};
|
|
16
|
+
font-family: ${o.typography.type.primary};
|
|
17
|
+
font-size: ${o.typography.text.sm};
|
|
18
18
|
outline: none;
|
|
19
19
|
width: 100%;
|
|
20
20
|
|
|
21
21
|
&::placeholder {
|
|
22
|
-
color: ${
|
|
22
|
+
color: ${o.palette.gray[400]};
|
|
23
23
|
}
|
|
24
24
|
`}
|
|
25
|
-
`,
|
|
26
|
-
${({ theme:
|
|
25
|
+
`, I = i.div`
|
|
26
|
+
${({ theme: o }) => `
|
|
27
27
|
align-items: center;
|
|
28
|
-
background-color: ${
|
|
29
|
-
border: 1px solid ${
|
|
30
|
-
border-radius: ${
|
|
28
|
+
background-color: ${o.palette.white};
|
|
29
|
+
border: 1px solid ${o.palette.gray[300]};
|
|
30
|
+
border-radius: ${o.spacing[0.5]};
|
|
31
31
|
display: flex;
|
|
32
32
|
height: 40px;
|
|
33
|
-
gap: ${
|
|
34
|
-
padding: ${
|
|
33
|
+
gap: ${o.spacing[0.5]};
|
|
34
|
+
padding: ${o.spacing[0.5]};
|
|
35
35
|
width: 100%;
|
|
36
36
|
|
|
37
37
|
&:hover {
|
|
38
|
-
border-color: ${
|
|
38
|
+
border-color: ${o.palette.gray[600]};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&:focus-within {
|
|
42
|
-
border: 2px solid ${
|
|
42
|
+
border: 2px solid ${o.palette.black};
|
|
43
43
|
}
|
|
44
44
|
`}
|
|
45
|
-
`,
|
|
46
|
-
${({ theme:
|
|
47
|
-
background-color: ${
|
|
48
|
-
border-radius: ${
|
|
45
|
+
`, T = i.div`
|
|
46
|
+
${({ theme: o }) => `
|
|
47
|
+
background-color: ${o.palette.white};
|
|
48
|
+
border-radius: ${o.spacing[0.5]};
|
|
49
49
|
width: 250px;
|
|
50
50
|
`}
|
|
51
|
-
`, G =
|
|
52
|
-
const
|
|
53
|
-
|
|
51
|
+
`, G = b(function({ name: n, smallSearch: d = !1, value: a, ...g }, f) {
|
|
52
|
+
const t = C(), [y, s] = w(!1), { refs: e, floatingStyles: u } = h(), m = S(() => {
|
|
53
|
+
s((x) => !x);
|
|
54
54
|
}, []);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
O(
|
|
56
|
+
e.floating.current,
|
|
57
|
+
() => {
|
|
58
|
+
s(!1);
|
|
59
|
+
},
|
|
60
|
+
!0
|
|
61
|
+
);
|
|
62
|
+
const p = /* @__PURE__ */ l(I, { children: [
|
|
63
|
+
/* @__PURE__ */ r(
|
|
64
|
+
z,
|
|
65
|
+
{
|
|
66
|
+
icon: "magnifying-glass",
|
|
67
|
+
iconColor: t.palette.gray[700],
|
|
68
|
+
iconSize: "xs",
|
|
69
|
+
iconType: "fa-light"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ r(v, { ...g, id: n, name: n, ref: f, value: a }),
|
|
73
|
+
!$(a) && /* @__PURE__ */ r(
|
|
74
|
+
c,
|
|
75
|
+
{
|
|
76
|
+
icon: "xmark",
|
|
77
|
+
iconColor: t.palette.gray[300],
|
|
78
|
+
iconSize: "xs",
|
|
79
|
+
iconType: "fa-light",
|
|
80
|
+
px: 0.25,
|
|
81
|
+
py: 0.25,
|
|
82
|
+
type: "reset",
|
|
83
|
+
variant: "ghost"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] });
|
|
87
|
+
return d ? /* @__PURE__ */ l(k, { children: [
|
|
88
|
+
/* @__PURE__ */ r(
|
|
89
|
+
c,
|
|
90
|
+
{
|
|
91
|
+
border: `1px solid ${t.palette.gray[300]} !important`,
|
|
92
|
+
icon: "magnifying-glass",
|
|
93
|
+
iconSize: "xs",
|
|
94
|
+
iconType: "fa-light",
|
|
95
|
+
onClick: m,
|
|
96
|
+
ref: e.setReference,
|
|
97
|
+
variant: "ghost"
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
y ? /* @__PURE__ */ r(T, { ref: e.setFloating, style: u, children: p }) : void 0
|
|
101
|
+
] }) : p;
|
|
60
102
|
});
|
|
61
103
|
export {
|
|
62
104
|
G as Search
|