@fluidattacks/design 3.1.13 → 3.2.0
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 +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -20
- package/dist/components/accordion/index.js +5 -76
- package/dist/components/alert/index.js +4 -162
- package/dist/components/button/index.js +4 -67
- package/dist/components/card/card-header/index.js +4 -81
- package/dist/components/card/card-with-image/index.js +5 -91
- package/dist/components/card/card-with-input/index.js +5 -103
- package/dist/components/card/card-with-selector/index.js +4 -69
- package/dist/components/card/card-with-switch/index.js +4 -48
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -73
- package/dist/components/checkbox/index.js +4 -116
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -70
- package/dist/components/code-snippet/location-code/index.js +7 -169
- package/dist/components/colors/index.js +7 -222
- package/dist/components/confirm-dialog/index.js +4 -43
- package/dist/components/container/index.js +4 -49
- package/dist/components/content-card/category-tag/index.js +4 -40
- package/dist/components/content-card/event-date/index.js +5 -59
- package/dist/components/content-card/index.js +4 -166
- package/dist/components/content-card-carousel/index.js +4 -93
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -23
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -83
- package/dist/components/file-preview/index.js +3 -42
- package/dist/components/form/index.js +4 -61
- package/dist/components/grid-container/index.js +4 -46
- package/dist/components/group-selector/index.js +6 -133
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -106
- package/dist/components/icon-button/index.js +4 -74
- package/dist/components/indicator-card/index.js +5 -72
- package/dist/components/info-sidebar/index.js +4 -114
- package/dist/components/inputs/fields/combobox/index.js +7 -144
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
- package/dist/components/inputs/fields/date/calendar/index.js +6 -28
- package/dist/components/inputs/fields/date/index.js +8 -66
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-range/index.js +6 -106
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
- package/dist/components/inputs/fields/date-time/index.js +6 -67
- package/dist/components/inputs/fields/editable/index.js +4 -26
- package/dist/components/inputs/fields/input/index.js +5 -75
- package/dist/components/inputs/fields/input-file/index.js +6 -123
- package/dist/components/inputs/fields/input-tags/index.js +4 -66
- package/dist/components/inputs/fields/number/index.js +4 -55
- package/dist/components/inputs/fields/number-range/index.js +4 -47
- package/dist/components/inputs/fields/phone/index.js +7 -577
- package/dist/components/inputs/fields/text-area/index.js +5 -79
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -36
- package/dist/components/inputs/outline-container/index.js +4 -102
- package/dist/components/inputs/utils/action-button/index.js +4 -29
- package/dist/components/inputs/utils/calendar-button/index.js +5 -35
- package/dist/components/inputs/utils/date-selector/index.js +3 -60
- package/dist/components/inputs/utils/date-time-field/index.js +10 -131
- package/dist/components/inputs/utils/dialog/index.js +5 -12
- package/dist/components/inputs/utils/number-field/index.js +5 -84
- package/dist/components/inputs/utils/popover/index.js +5 -42
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -116
- package/dist/components/language-selector/index.js +4 -35
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -104
- package/dist/components/list-item/index.js +6 -65
- package/dist/components/little-flag/index.js +3 -30
- package/dist/components/loading/index.js +4 -92
- package/dist/components/logo/index.js +2 -10
- package/dist/components/logo-carousel/index.js +4 -85
- package/dist/components/lottie/index.js +3 -18
- package/dist/components/menu/index.js +5 -64
- package/dist/components/message-banner/index.js +5 -99
- package/dist/components/modal/index.js +6 -63
- package/dist/components/modal/modal-confirm/index.js +3 -49
- package/dist/components/modal/modal-footer/index.js +5 -23
- package/dist/components/modal/modal-header/index.js +6 -49
- package/dist/components/notification/index.js +5 -111
- package/dist/components/notification-sign/index.js +4 -45
- package/dist/components/number-input/index.js +5 -87
- package/dist/components/oauth-selector/index.js +6 -98
- package/dist/components/oauth-selector/option-container/index.js +4 -74
- package/dist/components/plan-card/index.js +3 -153
- package/dist/components/plan-card/recommended-tag/index.js +3 -29
- package/dist/components/pop-up/description/index.js +5 -49
- package/dist/components/pop-up/index.js +7 -150
- package/dist/components/premium-feature/index.js +4 -83
- package/dist/components/priority-score/index.js +4 -27
- package/dist/components/progress/index.js +5 -45
- package/dist/components/progress-bar/index.js +3 -151
- package/dist/components/radio-button/index.js +4 -123
- package/dist/components/scroll-button/index.js +4 -40
- package/dist/components/search/index.js +7 -103
- package/dist/components/search-bar/index.js +4 -217
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -72
- package/dist/components/severity-overview/badge/index.js +4 -67
- package/dist/components/severity-overview/index.js +3 -15
- package/dist/components/show-on-hover/index.js +3 -29
- package/dist/components/slide-out-menu/index.js +6 -3453
- package/dist/components/slide-out-menu/menu-item/index.js +4 -65
- package/dist/components/slider/index.js +7 -122
- package/dist/components/slider/thumb/index.js +5 -15
- package/dist/components/step-lapse/index.js +4 -157
- package/dist/components/table-button/index.js +4 -95
- package/dist/components/tabs/fixed-tabs/index.js +3 -27
- package/dist/components/tabs/index.js +6 -55
- package/dist/components/tabs/tab/index.js +3 -37
- package/dist/components/tag/index.js +4 -182
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -15
- package/dist/components/toggle/index.js +4 -101
- package/dist/components/toggle-buttons/index.js +4 -101
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -4582
- package/dist/components/typography/heading/index.js +4 -45
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -39
- package/dist/components/typography/text/index.js +4 -45
- package/dist/components/web-form/index.js +4 -78
- package/dist/components-C7JPRIEW.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +112 -204
- package/dist/vendor-_XDhaIzo.mjs +14504 -0
- package/package.json +3 -7
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/index-BMHVi812.mjs +0 -234
- package/dist/index-BzAniA2J.mjs +0 -135
- package/dist/index-C6LbClYh.mjs +0 -146
- package/dist/index-CAIe8hBv.mjs +0 -130
- package/dist/index-CUQBAqt_.mjs +0 -75
- package/dist/index-CWlrSlUk.mjs +0 -68
- package/dist/index-Ckmu1TfV.mjs +0 -86
- package/dist/index-DwznImvK.mjs +0 -1678
- package/dist/index-maWH3JYC.mjs +0 -3561
- package/dist/styles-B2N0JLw1.mjs +0 -114
- package/dist/styles-B64DVBIF.mjs +0 -115
- package/dist/styles-BXFVwnWT.mjs +0 -133
- package/dist/styles-BZQOqe8p.mjs +0 -141
- package/dist/styles-Bdque9TT.mjs +0 -65
- package/dist/styles-BlHspTrz.mjs +0 -144
- package/dist/styles-CROOwXEH.mjs +0 -76
- package/dist/styles-CplEd2kw.mjs +0 -228
- package/dist/styles-D1eTIklB.mjs +0 -110
- package/dist/styles-ePGii_9g.mjs +0 -74
- package/dist/use-carousel-CgAF78h3.mjs +0 -23
- package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
- package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
- package/dist/use-modal-CtgexKnf.mjs +0 -14
- package/dist/use-search-Dj47QDw9.mjs +0 -15
- package/dist/utils-V0EumEPM.mjs +0 -6
- /package/dist/assets/{index2.css → vendor.css} +0 -0
|
@@ -1,81 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { S as A } from "../../../../styles-BXFVwnWT.mjs";
|
|
6
|
-
import { Icon as I } from "../../../icon/index.js";
|
|
7
|
-
const R = $(function({
|
|
8
|
-
disabled: o = !1,
|
|
9
|
-
error: r,
|
|
10
|
-
helpLink: s,
|
|
11
|
-
helpText: l,
|
|
12
|
-
label: c,
|
|
13
|
-
name: e = "input-text",
|
|
14
|
-
id: f,
|
|
15
|
-
maskValue: d = !1,
|
|
16
|
-
maxLength: a,
|
|
17
|
-
placeholder: m,
|
|
18
|
-
required: n,
|
|
19
|
-
rows: p,
|
|
20
|
-
tooltip: x,
|
|
21
|
-
value: t,
|
|
22
|
-
weight: u,
|
|
23
|
-
...h
|
|
24
|
-
}, C) {
|
|
25
|
-
const S = b();
|
|
26
|
-
return /* @__PURE__ */ i(
|
|
27
|
-
j,
|
|
28
|
-
{
|
|
29
|
-
error: r,
|
|
30
|
-
helpLink: s,
|
|
31
|
-
helpText: l,
|
|
32
|
-
htmlFor: e,
|
|
33
|
-
label: c,
|
|
34
|
-
maxLength: a,
|
|
35
|
-
required: n,
|
|
36
|
-
tooltip: x,
|
|
37
|
-
value: t ? String(t) : void 0,
|
|
38
|
-
weight: u,
|
|
39
|
-
children: /* @__PURE__ */ T(
|
|
40
|
-
A,
|
|
41
|
-
{
|
|
42
|
-
className: `${o ? "disabled" : ""} ${r ? "error" : ""}`,
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ i(
|
|
45
|
-
"textarea",
|
|
46
|
-
{
|
|
47
|
-
"aria-hidden": !1,
|
|
48
|
-
"aria-invalid": r ? "true" : "false",
|
|
49
|
-
"aria-label": e,
|
|
50
|
-
"aria-required": n,
|
|
51
|
-
className: d ? "sr-block" : "",
|
|
52
|
-
"data-testid": `${e}-text-area`,
|
|
53
|
-
disabled: o,
|
|
54
|
-
id: f ?? e,
|
|
55
|
-
maxLength: a,
|
|
56
|
-
name: e,
|
|
57
|
-
placeholder: m,
|
|
58
|
-
ref: C,
|
|
59
|
-
rows: p,
|
|
60
|
-
value: t,
|
|
61
|
-
...h
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
r ? /* @__PURE__ */ i(
|
|
65
|
-
I,
|
|
66
|
-
{
|
|
67
|
-
icon: "exclamation-circle",
|
|
68
|
-
iconClass: "error-icon",
|
|
69
|
-
iconColor: S.palette.error[500],
|
|
70
|
-
iconSize: "xs"
|
|
71
|
-
}
|
|
72
|
-
) : void 0
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { $ as e } from "../../../../components-C7JPRIEW.mjs";
|
|
79
5
|
export {
|
|
80
|
-
|
|
6
|
+
e as TextArea
|
|
81
7
|
};
|
|
@@ -1,28 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputDate as p } from "./fields/date/index.js";
|
|
3
|
-
import { InputDateRange as n } from "./fields/date-range/index.js";
|
|
4
|
-
import { InputDateTime as f } from "./fields/date-time/index.js";
|
|
5
|
-
import { Editable as a } from "./fields/editable/index.js";
|
|
6
|
-
import { Input as i } from "./fields/input/index.js";
|
|
7
|
-
import { InputFile as g } from "./fields/input-file/index.js";
|
|
8
|
-
import { InputTags as D } from "./fields/input-tags/index.js";
|
|
9
|
-
import { InputNumber as C } from "./fields/number/index.js";
|
|
10
|
-
import { InputNumberRange as R } from "./fields/number-range/index.js";
|
|
11
|
-
import { PhoneInput as h } from "./fields/phone/index.js";
|
|
12
|
-
import { TextArea as A } from "./fields/text-area/index.js";
|
|
13
|
-
import { OutlineContainer as E } from "./outline-container/index.js";
|
|
1
|
+
import { S as e, a0 as n, T as s, U as u, V as p, W as I, X as o, Y as r, _ as i, Z as m, Q as b, R as T, $ as g } from "../../components-C7JPRIEW.mjs";
|
|
14
2
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
3
|
+
e as ComboBox,
|
|
4
|
+
n as Editable,
|
|
5
|
+
s as Input,
|
|
6
|
+
u as InputDate,
|
|
7
|
+
p as InputDateRange,
|
|
8
|
+
I as InputDateTime,
|
|
9
|
+
o as InputFile,
|
|
10
|
+
r as InputNumber,
|
|
11
|
+
i as InputNumberRange,
|
|
12
|
+
m as InputTags,
|
|
13
|
+
b as OutlineContainer,
|
|
14
|
+
T as PhoneInput,
|
|
15
|
+
g as TextArea
|
|
28
16
|
};
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { T as x } from "../../../index-DwznImvK.mjs";
|
|
6
|
-
const j = ({
|
|
7
|
-
htmlFor: e,
|
|
8
|
-
label: r,
|
|
9
|
-
required: t,
|
|
10
|
-
tooltip: o,
|
|
11
|
-
weight: l = "normal"
|
|
12
|
-
}) => {
|
|
13
|
-
const n = a(), s = `${e}-tooltip`, p = o !== void 0 && !m(o);
|
|
14
|
-
return /* @__PURE__ */ c("label", { className: `flex font-${l} gap-1 w-full`, htmlFor: e, children: [
|
|
15
|
-
r,
|
|
16
|
-
t && /* @__PURE__ */ i(
|
|
17
|
-
f,
|
|
18
|
-
{
|
|
19
|
-
icon: "asterisk",
|
|
20
|
-
iconColor: n.palette.error[500],
|
|
21
|
-
iconSize: "xxss"
|
|
22
|
-
}
|
|
23
|
-
),
|
|
24
|
-
p ? /* @__PURE__ */ i(
|
|
25
|
-
x,
|
|
26
|
-
{
|
|
27
|
-
display: "inline-flex",
|
|
28
|
-
icon: "circle-info",
|
|
29
|
-
id: s,
|
|
30
|
-
place: "top",
|
|
31
|
-
tip: o
|
|
32
|
-
}
|
|
33
|
-
) : null
|
|
34
|
-
] });
|
|
35
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { aX as a } from "../../../components-C7JPRIEW.mjs";
|
|
36
5
|
export {
|
|
37
|
-
|
|
6
|
+
a as Label
|
|
38
7
|
};
|
|
@@ -1,104 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { a as C } from "../../../styles-BXFVwnWT.mjs";
|
|
5
|
-
import { Container as c } from "../../container/index.js";
|
|
6
|
-
import { Icon as j } from "../../icon/index.js";
|
|
7
|
-
import { Link as z } from "../../link/index.js";
|
|
8
|
-
import { Tag as S } from "../../tag/index.js";
|
|
9
|
-
import "../../typography/heading/index.js";
|
|
10
|
-
import "../../typography/span/index.js";
|
|
11
|
-
import { Text as d } from "../../typography/text/index.js";
|
|
12
|
-
const B = ({
|
|
13
|
-
children: s,
|
|
14
|
-
error: i,
|
|
15
|
-
helpLink: n,
|
|
16
|
-
helpLinkText: f = "Link here",
|
|
17
|
-
helpText: o,
|
|
18
|
-
htmlFor: p,
|
|
19
|
-
label: m,
|
|
20
|
-
maxLength: t,
|
|
21
|
-
required: g,
|
|
22
|
-
tooltip: h,
|
|
23
|
-
value: a,
|
|
24
|
-
weight: u
|
|
25
|
-
}) => {
|
|
26
|
-
const l = w(), y = a ? a.length : 0;
|
|
27
|
-
return /* @__PURE__ */ r(C, { children: [
|
|
28
|
-
m === void 0 ? void 0 : /* @__PURE__ */ e(
|
|
29
|
-
x,
|
|
30
|
-
{
|
|
31
|
-
htmlFor: p,
|
|
32
|
-
label: m,
|
|
33
|
-
required: g,
|
|
34
|
-
tooltip: h,
|
|
35
|
-
weight: u
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
s,
|
|
39
|
-
i || t ? /* @__PURE__ */ r(
|
|
40
|
-
c,
|
|
41
|
-
{
|
|
42
|
-
display: "flex",
|
|
43
|
-
justify: i === void 0 ? "end" : "space-between",
|
|
44
|
-
width: "100%",
|
|
45
|
-
children: [
|
|
46
|
-
i && /* @__PURE__ */ e(
|
|
47
|
-
d,
|
|
48
|
-
{
|
|
49
|
-
className: "error-msg",
|
|
50
|
-
color: l.palette.error[500],
|
|
51
|
-
display: "block",
|
|
52
|
-
lineSpacing: 1,
|
|
53
|
-
size: "sm",
|
|
54
|
-
children: i
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
t && /* @__PURE__ */ e(
|
|
58
|
-
S,
|
|
59
|
-
{
|
|
60
|
-
priority: "low",
|
|
61
|
-
tagLabel: `${y}/${t}`,
|
|
62
|
-
variant: "error"
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
) : void 0,
|
|
68
|
-
o || n ? /* @__PURE__ */ r(
|
|
69
|
-
c,
|
|
70
|
-
{
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
display: "flex",
|
|
73
|
-
gap: 0.25,
|
|
74
|
-
width: "100%",
|
|
75
|
-
children: [
|
|
76
|
-
o && /* @__PURE__ */ r(b, { children: [
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
j,
|
|
79
|
-
{
|
|
80
|
-
icon: "circle-info",
|
|
81
|
-
iconColor: l.palette.gray[400],
|
|
82
|
-
iconSize: "xxs",
|
|
83
|
-
iconType: "fa-light"
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ e(
|
|
87
|
-
d,
|
|
88
|
-
{
|
|
89
|
-
color: l.palette.gray[400],
|
|
90
|
-
display: "inline-block",
|
|
91
|
-
size: "sm",
|
|
92
|
-
children: o
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
] }),
|
|
96
|
-
n && /* @__PURE__ */ e(z, { href: n, children: f })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
) : void 0
|
|
100
|
-
] });
|
|
101
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { Q as e } from "../../../components-C7JPRIEW.mjs";
|
|
102
4
|
export {
|
|
103
|
-
|
|
5
|
+
e as OutlineContainer
|
|
104
6
|
};
|
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as f } from "../../../icon/index.js";
|
|
5
|
-
const d = e(function({ disabled: n, icon: t, margin: i, onClick: r, ...a }, c) {
|
|
6
|
-
return /* @__PURE__ */ o(
|
|
7
|
-
m,
|
|
8
|
-
{
|
|
9
|
-
$margin: i,
|
|
10
|
-
"aria-label": t,
|
|
11
|
-
className: "action-btn",
|
|
12
|
-
disabled: n,
|
|
13
|
-
onClick: r,
|
|
14
|
-
ref: c,
|
|
15
|
-
type: "button",
|
|
16
|
-
...a,
|
|
17
|
-
children: /* @__PURE__ */ o(
|
|
18
|
-
f,
|
|
19
|
-
{
|
|
20
|
-
icon: t,
|
|
21
|
-
iconClass: "action",
|
|
22
|
-
iconSize: "xs",
|
|
23
|
-
iconType: "fa-light"
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { b8 as m } from "../../../../components-C7JPRIEW.mjs";
|
|
29
4
|
export {
|
|
30
|
-
|
|
5
|
+
m as ActionButton
|
|
31
6
|
};
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { theme as f } from "../../../colors/index.js";
|
|
6
|
-
import { Icon as i } from "../../../icon/index.js";
|
|
7
|
-
const B = ({
|
|
8
|
-
disabled: o = !1,
|
|
9
|
-
icon: t,
|
|
10
|
-
props: a
|
|
11
|
-
}) => {
|
|
12
|
-
const r = m(null), { buttonProps: e } = c(a, r);
|
|
13
|
-
return /* @__PURE__ */ n(
|
|
14
|
-
p,
|
|
15
|
-
{
|
|
16
|
-
...e,
|
|
17
|
-
$disabled: o,
|
|
18
|
-
$focus: !!e["aria-expanded"],
|
|
19
|
-
$header: t === "calendar" || t === "calendar-clock",
|
|
20
|
-
disabled: o,
|
|
21
|
-
ref: r,
|
|
22
|
-
type: "button",
|
|
23
|
-
children: /* @__PURE__ */ n(
|
|
24
|
-
i,
|
|
25
|
-
{
|
|
26
|
-
icon: t,
|
|
27
|
-
iconColor: f.palette.gray[o ? 400 : 700],
|
|
28
|
-
iconSize: "xs",
|
|
29
|
-
iconType: "fa-light"
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import { a$ as i } from "../../../../components-C7JPRIEW.mjs";
|
|
35
5
|
export {
|
|
36
|
-
|
|
6
|
+
i as Button
|
|
37
7
|
};
|
|
@@ -1,62 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Button as f } from "../calendar-button/index.js";
|
|
4
|
-
import { DateField as d } from "../date-time-field/index.js";
|
|
5
|
-
const j = ({
|
|
6
|
-
error: t,
|
|
7
|
-
buttonProps: n,
|
|
8
|
-
datePickerRef: s,
|
|
9
|
-
disabled: e = !1,
|
|
10
|
-
granularity: o = "day",
|
|
11
|
-
fieldProps: p,
|
|
12
|
-
groupProps: c,
|
|
13
|
-
inputRef: l,
|
|
14
|
-
name: a,
|
|
15
|
-
...i
|
|
16
|
-
}) => /* @__PURE__ */ u(
|
|
17
|
-
m,
|
|
18
|
-
{
|
|
19
|
-
...c,
|
|
20
|
-
className: `${e ? "disabled" : ""} ${t ? "error" : ""}`,
|
|
21
|
-
ref: s,
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ r(
|
|
24
|
-
d,
|
|
25
|
-
{
|
|
26
|
-
disabled: e,
|
|
27
|
-
error: t != null,
|
|
28
|
-
props: {
|
|
29
|
-
...p,
|
|
30
|
-
autoFocus: !1,
|
|
31
|
-
granularity: o,
|
|
32
|
-
shouldForceLeadingZeros: !0
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ r(
|
|
37
|
-
f,
|
|
38
|
-
{
|
|
39
|
-
disabled: e,
|
|
40
|
-
icon: o === "minute" ? "calendar-clock" : "calendar",
|
|
41
|
-
props: n
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
/* @__PURE__ */ r(
|
|
45
|
-
"input",
|
|
46
|
-
{
|
|
47
|
-
...i,
|
|
48
|
-
"aria-label": a,
|
|
49
|
-
className: "date-input",
|
|
50
|
-
disabled: e,
|
|
51
|
-
name: a,
|
|
52
|
-
ref: l,
|
|
53
|
-
type: "text",
|
|
54
|
-
value: ""
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { b4 as t } from "../../../../components-C7JPRIEW.mjs";
|
|
60
3
|
export {
|
|
61
|
-
|
|
4
|
+
t as DateSelector
|
|
62
5
|
};
|
|
@@ -1,133 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { Icon as I } from "../../../icon/index.js";
|
|
10
|
-
const x = ({
|
|
11
|
-
segment: i,
|
|
12
|
-
state: a
|
|
13
|
-
}) => {
|
|
14
|
-
const t = M(), n = y(null), e = { ...i, placeholder: {
|
|
15
|
-
day: "dd",
|
|
16
|
-
dayPeriod: "(AM/PM)",
|
|
17
|
-
era: "",
|
|
18
|
-
hour: "hh",
|
|
19
|
-
literal: "",
|
|
20
|
-
minute: "mm",
|
|
21
|
-
month: "mm",
|
|
22
|
-
second: "",
|
|
23
|
-
timeZoneName: "",
|
|
24
|
-
year: "yyyy"
|
|
25
|
-
}[i.type] }, { segmentProps: c } = T(e, a, n), m = t.palette.gray[e.isEditable ? 800 : 500];
|
|
26
|
-
return /* @__PURE__ */ r(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
...e.type !== "literal" && {
|
|
30
|
-
...c,
|
|
31
|
-
className: "segment-cell"
|
|
32
|
-
},
|
|
33
|
-
ref: n,
|
|
34
|
-
style: e.type === "literal" ? void 0 : {
|
|
35
|
-
color: e.isPlaceholder ? t.palette.gray[400] : m
|
|
36
|
-
},
|
|
37
|
-
children: e.isPlaceholder ? e.placeholder : e.text
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}, $ = ({
|
|
41
|
-
disabled: i,
|
|
42
|
-
error: a = !1,
|
|
43
|
-
props: t
|
|
44
|
-
}) => {
|
|
45
|
-
const n = M(), d = y(null), e = b({
|
|
46
|
-
...t,
|
|
47
|
-
createCalendar: D,
|
|
48
|
-
locale: "en-US"
|
|
49
|
-
}), { fieldProps: c } = C(t, e, d), m = P(
|
|
50
|
-
(l) => {
|
|
51
|
-
const s = document.getElementsByClassName("segment-cell"), o = l.currentTarget;
|
|
52
|
-
Object.values(s).some(
|
|
53
|
-
(p) => p.contains(o)
|
|
54
|
-
) || (l.preventDefault(), l.stopPropagation());
|
|
55
|
-
},
|
|
56
|
-
[]
|
|
57
|
-
);
|
|
58
|
-
return /* @__PURE__ */ f(A, { ...c, onClick: m, children: [
|
|
59
|
-
/* @__PURE__ */ r(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: "flex flex-row",
|
|
63
|
-
style: { color: n.palette.gray[u(e.value) ? 400 : 800] },
|
|
64
|
-
tabIndex: -1,
|
|
65
|
-
children: e.segments.map((l, s) => {
|
|
66
|
-
const o = `key_${s}`;
|
|
67
|
-
return /* @__PURE__ */ r(
|
|
68
|
-
x,
|
|
69
|
-
{
|
|
70
|
-
segment: { ...l, isEditable: !i },
|
|
71
|
-
state: e
|
|
72
|
-
},
|
|
73
|
-
o
|
|
74
|
-
);
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
a ? /* @__PURE__ */ r(
|
|
79
|
-
I,
|
|
80
|
-
{
|
|
81
|
-
icon: "exclamation-circle",
|
|
82
|
-
iconColor: n.palette.error[500],
|
|
83
|
-
iconSize: "xs"
|
|
84
|
-
}
|
|
85
|
-
) : void 0
|
|
86
|
-
] });
|
|
87
|
-
}, w = (i) => {
|
|
88
|
-
const a = y(null), t = k({
|
|
89
|
-
...i,
|
|
90
|
-
locale: "en-US",
|
|
91
|
-
shouldForceLeadingZeros: !0
|
|
92
|
-
}), { timeValue: n } = t, d = !u(n) && n.hour < 12 ? "AM" : "PM", [e, c] = S(
|
|
93
|
-
u(n) ? "AM" : d
|
|
94
|
-
), { fieldProps: m } = F(i, t, a), l = P(
|
|
95
|
-
(s) => {
|
|
96
|
-
const o = s.currentTarget.name;
|
|
97
|
-
o !== e && (u(n) || (o === "AM" ? t.setSegment("dayPeriod", 0) : o === "PM" && t.setSegment("dayPeriod", 12))), c(o);
|
|
98
|
-
},
|
|
99
|
-
[e, t, n]
|
|
100
|
-
);
|
|
101
|
-
return /* @__PURE__ */ f(v, { children: [
|
|
102
|
-
/* @__PURE__ */ r(h, { ...m, ref: a, children: t.segments.slice(0, -2).map((s, o) => {
|
|
103
|
-
const p = `key_${o}`;
|
|
104
|
-
return /* @__PURE__ */ r(x, { segment: s, state: t }, p);
|
|
105
|
-
}) }),
|
|
106
|
-
/* @__PURE__ */ f(h, { children: [
|
|
107
|
-
/* @__PURE__ */ r(
|
|
108
|
-
g,
|
|
109
|
-
{
|
|
110
|
-
id: e === "AM" ? "active" : "",
|
|
111
|
-
name: "AM",
|
|
112
|
-
onClick: l,
|
|
113
|
-
type: "button",
|
|
114
|
-
children: "AM"
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ r(
|
|
118
|
-
g,
|
|
119
|
-
{
|
|
120
|
-
id: e === "PM" ? "active" : "",
|
|
121
|
-
name: "PM",
|
|
122
|
-
onClick: l,
|
|
123
|
-
type: "button",
|
|
124
|
-
children: "PM"
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
] })
|
|
128
|
-
] });
|
|
129
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "lodash";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-aria";
|
|
6
|
+
import "react-stately";
|
|
7
|
+
import "styled-components";
|
|
8
|
+
import { b2 as d, b3 as l } from "../../../../components-C7JPRIEW.mjs";
|
|
130
9
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
10
|
+
d as DateField,
|
|
11
|
+
l as TimeField
|
|
133
12
|
};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const g = ({
|
|
6
|
-
children: r,
|
|
7
|
-
...i
|
|
8
|
-
}) => {
|
|
9
|
-
const o = m(null), { dialogProps: t } = s(i, o);
|
|
10
|
-
return /* @__PURE__ */ e(a, { ...t, ref: o, children: r });
|
|
11
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import { b5 as t } from "../../../../components-C7JPRIEW.mjs";
|
|
12
5
|
export {
|
|
13
|
-
|
|
6
|
+
t as Dialog
|
|
14
7
|
};
|
|
@@ -1,86 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { ActionButton as m } from "../action-button/index.js";
|
|
6
|
-
import { Icon as y } from "../../../icon/index.js";
|
|
7
|
-
const N = ({
|
|
8
|
-
error: i,
|
|
9
|
-
decimalPlaces: o = 0,
|
|
10
|
-
disabled: r = !1,
|
|
11
|
-
max: a = 1 / 0,
|
|
12
|
-
min: p = 0,
|
|
13
|
-
name: s = "input-number",
|
|
14
|
-
placeholder: u,
|
|
15
|
-
ref: c,
|
|
16
|
-
required: f,
|
|
17
|
-
value: n,
|
|
18
|
-
...l
|
|
19
|
-
}) => {
|
|
20
|
-
const t = b(), d = h(
|
|
21
|
-
() => o < 0 ? 0 : o,
|
|
22
|
-
[o]
|
|
23
|
-
);
|
|
24
|
-
return /* @__PURE__ */ x(
|
|
25
|
-
g,
|
|
26
|
-
{
|
|
27
|
-
className: `${r ? "disabled" : ""} ${i ? "error" : ""}`,
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ e(
|
|
30
|
-
"input",
|
|
31
|
-
{
|
|
32
|
-
"aria-hidden": !1,
|
|
33
|
-
"aria-invalid": i ? "true" : "false",
|
|
34
|
-
"aria-label": s,
|
|
35
|
-
"aria-required": f,
|
|
36
|
-
autoComplete: "off",
|
|
37
|
-
disabled: r,
|
|
38
|
-
max: a,
|
|
39
|
-
min: p,
|
|
40
|
-
placeholder: u,
|
|
41
|
-
ref: c,
|
|
42
|
-
required: void 0,
|
|
43
|
-
step: 10 ** -d,
|
|
44
|
-
type: "number",
|
|
45
|
-
value: /^-?\d+/u.test(String(n)) ? n : "",
|
|
46
|
-
...l
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
i && /* @__PURE__ */ e(
|
|
50
|
-
y,
|
|
51
|
-
{
|
|
52
|
-
icon: "exclamation-circle",
|
|
53
|
-
iconClass: "error-icon",
|
|
54
|
-
iconColor: t.palette.error[500],
|
|
55
|
-
iconSize: "xs"
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
m,
|
|
60
|
-
{
|
|
61
|
-
borderLeft: "inherit",
|
|
62
|
-
borderRight: "inherit",
|
|
63
|
-
disabled: r,
|
|
64
|
-
icon: "minus",
|
|
65
|
-
margin: "0 -0.625rem 0 0",
|
|
66
|
-
px: 0.75,
|
|
67
|
-
py: 0.75
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
m,
|
|
72
|
-
{
|
|
73
|
-
borderRadius: `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0`,
|
|
74
|
-
disabled: r,
|
|
75
|
-
icon: "plus",
|
|
76
|
-
px: 0.75,
|
|
77
|
-
py: 0.75
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { b9 as t } from "../../../../components-C7JPRIEW.mjs";
|
|
84
5
|
export {
|
|
85
|
-
|
|
6
|
+
t as NumberField
|
|
86
7
|
};
|