@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
|
@@ -1 +1,81 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { useTheme as b } from "styled-components";
|
|
4
|
+
import { OutlineContainer as j } from "../../outline-container/index.js";
|
|
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
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
R as TextArea
|
|
81
|
+
};
|
|
@@ -1 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComboBox as t } from "./fields/combobox/index.js";
|
|
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";
|
|
14
|
+
export {
|
|
15
|
+
t as ComboBox,
|
|
16
|
+
a as Editable,
|
|
17
|
+
i as Input,
|
|
18
|
+
p as InputDate,
|
|
19
|
+
n as InputDateRange,
|
|
20
|
+
f as InputDateTime,
|
|
21
|
+
g as InputFile,
|
|
22
|
+
C as InputNumber,
|
|
23
|
+
R as InputNumberRange,
|
|
24
|
+
D as InputTags,
|
|
25
|
+
E as OutlineContainer,
|
|
26
|
+
h as PhoneInput,
|
|
27
|
+
A as TextArea
|
|
28
|
+
};
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as m } from "lodash";
|
|
3
|
+
import { useTheme as a } from "styled-components";
|
|
4
|
+
import { Icon as f } from "../../icon/index.js";
|
|
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
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
j as Label
|
|
38
|
+
};
|
|
@@ -1 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as w } from "styled-components";
|
|
3
|
+
import { Label as x } from "../label/index.js";
|
|
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
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
B as OutlineContainer
|
|
104
|
+
};
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { S as m } from "../../../../styles-D1eTIklB.mjs";
|
|
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
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
d as ActionButton
|
|
31
|
+
};
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m } from "react";
|
|
3
|
+
import { useButton as c } from "react-aria";
|
|
4
|
+
import { C as p } from "../../../../styles-D1eTIklB.mjs";
|
|
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
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
B as Button
|
|
37
|
+
};
|
|
@@ -1 +1,62 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { S as m } from "../../../../styles-BXFVwnWT.mjs";
|
|
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
|
+
);
|
|
60
|
+
export {
|
|
61
|
+
j as DateSelector
|
|
62
|
+
};
|
|
@@ -1 +1,133 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as D } from "@internationalized/date";
|
|
3
|
+
import { isNil as u } from "lodash";
|
|
4
|
+
import { useRef as y, useCallback as P, useState as S } from "react";
|
|
5
|
+
import { useDateField as C, useTimeField as F, useDateSegment as T } from "react-aria";
|
|
6
|
+
import { useDateFieldState as b, useTimeFieldState as k } from "react-stately";
|
|
7
|
+
import { useTheme as M } from "styled-components";
|
|
8
|
+
import { I as A, T as v, a as h, b as g } from "../../../../styles-D1eTIklB.mjs";
|
|
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
|
+
};
|
|
130
|
+
export {
|
|
131
|
+
$ as DateField,
|
|
132
|
+
w as TimeField
|
|
133
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m } from "react";
|
|
3
|
+
import { useDialog as s } from "react-aria";
|
|
4
|
+
import { D as a } from "../../../../styles-D1eTIklB.mjs";
|
|
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
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
g as Dialog
|
|
14
|
+
};
|
|
@@ -1 +1,86 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as x, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { useTheme as b } from "styled-components";
|
|
4
|
+
import { S as g } from "../../../../styles-BXFVwnWT.mjs";
|
|
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
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
N as NumberField
|
|
86
|
+
};
|