@fluidattacks/design 3.1.11 → 3.1.12
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 +9 -1
- package/dist/components/accordion/index.js +21 -1
- package/dist/components/alert/index.js +111 -4
- package/dist/components/button/index.js +18 -1
- package/dist/components/card/card-header/index.js +14 -1
- package/dist/components/card/card-with-image/index.js +18 -1
- package/dist/components/card/card-with-input/index.js +57 -3
- package/dist/components/card/card-with-selector/index.js +16 -1
- package/dist/components/card/card-with-switch/index.js +12 -1
- package/dist/components/card/index.js +12 -1
- package/dist/components/carousel/index.js +36 -10
- package/dist/components/checkbox/index.js +84 -3
- package/dist/components/cloud-image/index.js +8 -1
- package/dist/components/code-snippet/index.js +27 -1
- package/dist/components/code-snippet/location-code/index.js +125 -1
- package/dist/components/colors/index.js +9 -1
- package/dist/components/confirm-dialog/index.js +23 -1
- package/dist/components/container/index.js +27 -3
- package/dist/components/content-card/category-tag/index.js +13 -1
- package/dist/components/content-card/event-date/index.js +18 -1
- package/dist/components/content-card/index.js +63 -3
- package/dist/components/content-card-carousel/index.js +15 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
- package/dist/components/divider/index.js +10 -1
- package/dist/components/empty-state/empty-button/index.js +6 -1
- package/dist/components/empty-state/index.js +21 -8
- package/dist/components/file-preview/index.js +15 -3
- package/dist/components/form/index.js +26 -3
- package/dist/components/grid-container/index.js +26 -5
- package/dist/components/group-selector/index.js +26 -1
- package/dist/components/group-selector/option-container/index.js +12 -1
- package/dist/components/icon/index.js +42 -4
- package/dist/components/icon-button/index.js +27 -3
- package/dist/components/indicator-card/index.js +15 -1
- package/dist/components/info-sidebar/index.js +16 -1
- package/dist/components/inputs/fields/combobox/index.js +26 -1
- package/dist/components/inputs/fields/combobox/option/index.js +8 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
- package/dist/components/inputs/fields/date/calendar/index.js +15 -1
- package/dist/components/inputs/fields/date/index.js +18 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
- package/dist/components/inputs/fields/date-range/index.js +28 -3
- package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
- package/dist/components/inputs/fields/date-time/index.js +18 -1
- package/dist/components/inputs/fields/editable/index.js +16 -1
- package/dist/components/inputs/fields/input/index.js +13 -1
- package/dist/components/inputs/fields/input-file/index.js +24 -4
- package/dist/components/inputs/fields/input-tags/index.js +14 -2
- package/dist/components/inputs/fields/number/index.js +10 -1
- package/dist/components/inputs/fields/number-range/index.js +11 -1
- package/dist/components/inputs/fields/phone/index.js +414 -11
- package/dist/components/inputs/fields/text-area/index.js +13 -1
- package/dist/components/inputs/index.js +28 -1
- package/dist/components/inputs/label/index.js +12 -1
- package/dist/components/inputs/outline-container/index.js +18 -1
- package/dist/components/inputs/utils/action-button/index.js +10 -1
- package/dist/components/inputs/utils/calendar-button/index.js +13 -1
- package/dist/components/inputs/utils/date-selector/index.js +8 -1
- package/dist/components/inputs/utils/date-time-field/index.js +32 -1
- package/dist/components/inputs/utils/dialog/index.js +11 -1
- package/dist/components/inputs/utils/number-field/index.js +13 -1
- package/dist/components/inputs/utils/popover/index.js +13 -1
- package/dist/components/interactive-card/icon/index.js +7 -1
- package/dist/components/interactive-card/index.js +15 -1
- package/dist/components/language-selector/index.js +13 -1
- package/dist/components/language-selector/item-list/index.js +8 -1
- package/dist/components/link/index.js +52 -7
- package/dist/components/list-item/index.js +16 -1
- package/dist/components/little-flag/index.js +15 -3
- package/dist/components/loading/index.js +28 -14
- package/dist/components/logo/index.js +7 -1
- package/dist/components/logo-carousel/index.js +10 -4
- package/dist/components/lottie/index.js +15 -3
- package/dist/components/menu/index.js +23 -1
- package/dist/components/message-banner/index.js +21 -4
- package/dist/components/modal/index.js +19 -1
- package/dist/components/modal/modal-confirm/index.js +10 -1
- package/dist/components/modal/modal-footer/index.js +16 -1
- package/dist/components/modal/modal-header/index.js +25 -1
- package/dist/components/notification/index.js +68 -5
- package/dist/components/notification-sign/index.js +26 -6
- package/dist/components/number-input/index.js +25 -7
- package/dist/components/oauth-selector/index.js +26 -1
- package/dist/components/oauth-selector/option-container/index.js +15 -1
- package/dist/components/plan-card/index.js +84 -5
- package/dist/components/plan-card/recommended-tag/index.js +10 -1
- package/dist/components/pop-up/description/index.js +13 -1
- package/dist/components/pop-up/index.js +23 -1
- package/dist/components/premium-feature/index.js +45 -3
- package/dist/components/priority-score/index.js +14 -1
- package/dist/components/progress/index.js +23 -3
- package/dist/components/progress-bar/index.js +95 -5
- package/dist/components/radio-button/index.js +88 -3
- package/dist/components/scroll-button/index.js +20 -2
- package/dist/components/search/index.js +63 -7
- package/dist/components/search-bar/index.js +32 -1
- package/dist/components/search-bar/item-searching/index.js +10 -1
- package/dist/components/severity-badge/index.js +14 -1
- package/dist/components/severity-overview/badge/index.js +18 -1
- package/dist/components/severity-overview/index.js +7 -1
- package/dist/components/show-on-hover/index.js +25 -3
- package/dist/components/slide-out-menu/index.js +2009 -3
- package/dist/components/slide-out-menu/menu-item/index.js +15 -1
- package/dist/components/slider/index.js +93 -7
- package/dist/components/slider/thumb/index.js +10 -1
- package/dist/components/step-lapse/index.js +95 -9
- package/dist/components/table-button/index.js +56 -3
- package/dist/components/tabs/fixed-tabs/index.js +9 -1
- package/dist/components/tabs/index.js +14 -1
- package/dist/components/tabs/tab/index.js +8 -1
- package/dist/components/tag/index.js +116 -3
- package/dist/components/timeline/card/index.js +9 -1
- package/dist/components/timeline/index.js +7 -1
- package/dist/components/toggle/index.js +45 -14
- package/dist/components/toggle-buttons/index.js +74 -5
- package/dist/components/tooltip/index.js +13 -1
- package/dist/components/tour/index.js +2481 -4
- package/dist/components/typography/heading/index.js +9 -1
- package/dist/components/typography/index.js +8 -1
- package/dist/components/typography/span/index.js +9 -1
- package/dist/components/typography/text/index.js +9 -1
- package/dist/components/web-form/index.js +59 -7
- package/dist/hooks/index.js +13 -1
- package/dist/index-38JqtnAI.mjs +122 -0
- package/dist/index-B5yoGFs6.mjs +54 -0
- package/dist/index-BLbKylyw.mjs +209 -0
- package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
- package/dist/index-BwFnfaRh.mjs +2310 -0
- package/dist/index-Co_k0WFk.mjs +75 -0
- package/dist/index-Cu7uUMlx.mjs +82 -0
- package/dist/index-D-lcuEHY.mjs +1018 -0
- package/dist/index-DrfjITyT.mjs +61 -0
- package/dist/index.js +206 -1
- package/dist/styles-7_q7nHce.mjs +110 -0
- package/dist/styles-BA0WIQL-.mjs +74 -0
- package/dist/styles-C3cZmKVJ.mjs +131 -0
- package/dist/styles-CI-I6joH.mjs +144 -0
- package/dist/styles-Cx93EcVo.mjs +76 -0
- package/dist/styles-D85YYIjM.mjs +131 -0
- package/dist/styles-EIbGRPlk.mjs +106 -0
- package/dist/styles-Q1VXuWI7.mjs +65 -0
- package/dist/styles-fH2c4cfc.mjs +77 -0
- package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
- package/dist/use-carousel-CvRxi2FI.mjs +17 -0
- package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
- package/dist/use-modal-CkrZ-_-M.mjs +14 -0
- package/dist/use-search-DpLNvt7Q.mjs +12 -0
- package/dist/utils-CQvBF-wY.mjs +4 -0
- package/package.json +1 -1
- 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-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,10 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v } from "react";
|
|
3
|
+
import { styled as d } from "styled-components";
|
|
4
|
+
import { c as C } from "../../styles-C3cZmKVJ.mjs";
|
|
5
|
+
const u = { xl: "96px", lg: "64px", md: "32px", sm: "24px", xs: "16px", xxs: "12px", xxss: "10px" }, b = d(C)`
|
|
6
|
+
${({ $clickable: n, $color: a = "inherit", $disabled: l = !1, $hoverColor: o, $rotation: r, $size: e, $secondaryColor: i }) => `
|
|
7
|
+
color: ${a};
|
|
8
|
+
cursor: ${n ? "pointer" : "inherit"};
|
|
9
|
+
font-size: ${u[e]};
|
|
10
|
+
line-height: 0;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
pointer-events: inherit;
|
|
13
|
+
opacity: ${l ? "0.5" : "1"};
|
|
14
|
+
|
|
15
|
+
> svg {
|
|
16
|
+
--fa-secondary-color: ${i};
|
|
17
|
+
transform: ${r === void 0 ? "" : `rotate(${r}deg)`};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fill-gradient-01 path {
|
|
21
|
+
fill: url(/gradients.svg#gradient-01);
|
|
22
|
+
fill: url(#gradient-01);
|
|
23
|
+
}
|
|
24
|
+
.fill-gradient-02 path {
|
|
25
|
+
fill: url(/gradients.svg#gradient-02);
|
|
26
|
+
fill: url(#gradient-02);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${n ? `&:hover {
|
|
30
|
+
filter: ${o ? "" : "brightness(50%)"};
|
|
31
|
+
color: ${o ?? ""};
|
|
32
|
+
}` : ""}
|
|
33
|
+
`}
|
|
34
|
+
`;
|
|
35
|
+
d.div`
|
|
4
36
|
cursor: pointer;
|
|
5
37
|
transition: all 0.2s ease-in-out;
|
|
6
38
|
|
|
7
39
|
&:hover:not([disabled]) {
|
|
8
40
|
transform: scale(1.2);
|
|
9
41
|
}
|
|
10
|
-
`;
|
|
42
|
+
`;
|
|
43
|
+
const T = v(function({ clickable: n, disabled: a, hoverColor: l, icon: o, iconClass: r = "", iconColor: e, iconMask: i, iconSize: $, iconTransform: s, iconType: t = "fa-solid", onClick: f, rotation: p, spanClass: m, secondaryColor: g, ...x }, h) {
|
|
44
|
+
return c(b, { $clickable: n, $color: e, $disabled: a, $hoverColor: l, $rotation: p, $secondaryColor: g, $size: $, className: m, "data-testid": `${o}-icon`, onClick: f, ref: h, ...x, children: c("i", { className: `${t} fa-${o} ${r}`, ...i !== void 0 ? { "data-fa-mask": i } : {}, ...s !== void 0 ? { "data-fa-transform": s } : {} }) }, `${t}-${o}`);
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
T as Icon
|
|
48
|
+
};
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v } from "react";
|
|
3
|
+
import { styled as C } from "styled-components";
|
|
4
|
+
import { S as R } from "../../styles-EIbGRPlk.mjs";
|
|
5
|
+
import { Icon as k } from "../icon/index.js";
|
|
6
|
+
import { T as S } from "../../index-D-lcuEHY.mjs";
|
|
7
|
+
const j = C(R)`
|
|
8
|
+
${({ theme: i, $borderRadius: n = "4px", $px: o = 0.5, $py: r = 0.5 }) => `
|
|
9
|
+
--btn-spacing: ${n};
|
|
10
|
+
--btn-padding-x: ${i.spacing[o]};
|
|
11
|
+
--btn-padding-y: ${i.spacing[r]};
|
|
12
|
+
|
|
13
|
+
align-items: center;
|
|
14
|
+
line-height: 0;
|
|
15
|
+
text-align: center;
|
|
16
|
+
|
|
17
|
+
> span {
|
|
18
|
+
margin: 0 !important;
|
|
19
|
+
}
|
|
20
|
+
`}
|
|
21
|
+
`, q = v(function({ borderRadius: i, disabled: n, icon: o, iconColor: r, iconSize: d = "xxs", iconTransform: l, iconType: m, id: a, justify: b = "center", onClick: f, px: u, py: y, type: e = "button", tooltip: p, tooltipPlace: $, value: g, variant: c = "primary", ...x }, T) {
|
|
22
|
+
const s = t(j, { $borderRadius: i, $px: u, $py: y, $variant: c, "aria-disabled": n, "aria-label": a, borderRadius: i, disabled: n, id: a, justify: b, onClick: f, ref: T, type: e, value: g, ...x, children: t(k, { clickable: !1, icon: o, iconColor: r, iconSize: d, iconTransform: l, iconType: m }) }), h = (e + (c ?? "") + (a ?? o)).replace(/ /u, "_");
|
|
23
|
+
return p === void 0 ? s : t(S, { id: `${h}-tooltip`, place: $, tip: p, children: s });
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
q as IconButton
|
|
27
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as n, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { isUndefined as i } from "lodash";
|
|
3
|
+
import { useTheme as u } from "styled-components";
|
|
4
|
+
import { Container as d } from "../container/index.js";
|
|
5
|
+
import { T as v } from "../../index-D-lcuEHY.mjs";
|
|
6
|
+
import { Heading as I } from "../typography/heading/index.js";
|
|
7
|
+
import "../typography/span/index.js";
|
|
8
|
+
import { Text as b } from "../typography/text/index.js";
|
|
9
|
+
const H = ({ description: s, height: c = "auto", leftIconName: a, children: m, rightIconName: l, title: p, tooltipId: g, tooltipTip: f, tooltipPlace: h = "bottom", variant: x = "centered", width: y = "318px" }) => {
|
|
10
|
+
const t = u(), e = x === "centered", r = n(v, { icon: l ?? a, iconColor: t.palette.gray[800], id: g, place: h, tip: f });
|
|
11
|
+
return o(d, { alignItems: e ? "center" : "flex-start", bgColor: t.palette.gray[50], border: `1px solid ${t.palette.gray[200]}`, borderRadius: "4px", display: "inline-flex", flexDirection: e ? "column" : "column-reverse", gap: 0.5, height: c, justify: "center", padding: [1.25, 1.25, 1.25, 1.25], width: y, children: [o(d, { alignItems: "center", display: "flex", gap: 0.5, children: [e || i(a) ? void 0 : r, n(b, { color: e ? t.palette.gray[800] : t.palette.gray[400], size: "md", textAlign: e ? "center" : "start", children: s }), e || i(l) ? void 0 : r] }), o(d, { alignItems: "center", display: "flex", gap: 0.5, my: 0.5, children: [e && !i(a) ? r : void 0, o("div", { style: { display: "flex", gap: "12px" }, children: [i(p) ? void 0 : n(I, { fontWeight: "bold", size: "md", children: p }), m] }), e && !i(l) ? r : void 0] })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
H as IndicatorCard
|
|
15
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as m } from "styled-components";
|
|
3
|
+
import { Button as h } from "../button/index.js";
|
|
4
|
+
import { Container as t } from "../container/index.js";
|
|
5
|
+
import { IconButton as y } from "../icon-button/index.js";
|
|
6
|
+
import { Tabs as g } from "../tabs/index.js";
|
|
7
|
+
import "../typography/heading/index.js";
|
|
8
|
+
import "../typography/span/index.js";
|
|
9
|
+
import { Text as b } from "../typography/text/index.js";
|
|
10
|
+
const B = ({ actions: n, children: c, header: d, title: f, tabs: x, footer: p }) => {
|
|
11
|
+
const i = m();
|
|
12
|
+
return a(t, { alignItems: "flex-start", bgColor: i.palette.white, borderLeft: `1px solid ${i.palette.gray[300]}`, display: "flex", flexDirection: "column", maxHeight: "750px", width: "480px", children: [a(t, { alignItems: "flex-start", alignSelf: "stretch", borderBottom: `1px solid ${i.palette.gray[300]}`, display: "flex", gap: 0.25, justify: "space-between", px: 1.25, py: 1, children: [a(t, { display: "flex", flexDirection: "column", gap: 0.25, children: [e(b, { color: i.palette.gray[800], fontWeight: "bold", lineSpacing: 1.75, size: "xl", children: f }), d] }), n && e(t, { display: "flex", gap: 0.25, children: n.map(({ icon: l, onClick: o }, r) => e(y, { icon: l ?? "paper-plane", iconColor: i.palette.gray[400], iconSize: "xxs", iconType: "fa-light", onClick: o, variant: "ghost" }, `${r}-${l}`)) })] }), e(t, { display: "flex", pt: 0.25, width: "100%", children: e(g, { items: x }) }), e(t, { alignSelf: "stretch", display: "flex", flexDirection: "column", px: 1.25, py: 1, scroll: "y", children: c }), p && e(t, { alignSelf: "stretch", borderTop: `1px solid ${i.palette.gray[300]}`, display: "flex", gap: 0.5, justify: "end", px: 1.25, py: 1, children: p.map(({ icon: l, text: o, onClick: r }, s) => e(h, { icon: l, onClick: r, variant: s === 0 ? "primary" : "tertiary", width: "100%", children: o }, `${s}-${o}`)) })] });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
B as InfoSidebar
|
|
16
|
+
};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as J, useState as d, useRef as m, useMemo as Q, useCallback as L } from "react";
|
|
3
|
+
import { useFilter as U, useComboBox as W, useListBox as X, useButton as Y } from "react-aria";
|
|
4
|
+
import { Item as Z, useComboBoxState as _ } from "react-stately";
|
|
5
|
+
import { useTheme as T } from "styled-components";
|
|
6
|
+
import { S as k, O as ee } from "../../../../index-DrfjITyT.mjs";
|
|
7
|
+
import { OutlineContainer as oe } from "../../outline-container/index.js";
|
|
8
|
+
import { S as te } from "../../../../styles-lSVV9kjn.mjs";
|
|
9
|
+
import { Popover as re } from "../../utils/popover/index.js";
|
|
10
|
+
import { Icon as ie } from "../../../icon/index.js";
|
|
11
|
+
import { IconButton as ne } from "../../../icon-button/index.js";
|
|
12
|
+
const be = J(function({ disabled: x = !1, error: s, helpLink: O, helpLinkText: P, helpText: z, label: b, name: u, items: o, onChange: t, required: F, tooltip: N, value: v, weight: V, ...$ }, g) {
|
|
13
|
+
const C = T(), [a, B] = d(v ?? ""), [j, R] = d(v), [c, S] = d(o), { contains: l } = U({ sensitivity: "base" }), f = m(null), h = m(null), y = m(null), w = m(null), E = Q(() => o.map((e) => l(e.name, a) ? i(Z, { children: e.name }, e.value) : null), [l, a, o]), K = L((e) => {
|
|
14
|
+
B(e), R((n) => {
|
|
15
|
+
const p = e === "" ? "" : n;
|
|
16
|
+
return t == null || t(p), p;
|
|
17
|
+
}), S(o.filter((n) => l(n.name, e)));
|
|
18
|
+
}, [l, o, t]), M = L((e) => {
|
|
19
|
+
var n;
|
|
20
|
+
e && (B(((n = o.find((p) => p.value === e)) == null ? void 0 : n.name) ?? ""), R(String(e)), t == null || t(e), S(o));
|
|
21
|
+
}, [t, o]), r = _({ allowsEmptyCollection: !0, inputValue: a, items: c, shouldCloseOnBlur: !0, selectedKey: j, onInputChange: K, onSelectionChange: M, children: E }), { buttonProps: q, inputProps: A, listBoxProps: D } = W({ inputValue: a, items: c, buttonRef: f, id: u, inputRef: g, label: b, listBoxRef: h, name: u, popoverRef: w }, r), { listBoxProps: G } = X(D, r, h), { buttonProps: H } = Y(q, f);
|
|
22
|
+
return I(oe, { error: s, helpLink: O, helpLinkText: P, helpText: z, htmlFor: u, label: b, required: F, tooltip: N, weight: V, children: [I(te, { className: `${x ? "disabled" : ""} ${s ? "error" : ""}`, ref: y, children: [i("input", { ...A, ...$, "aria-invalid": s ? "true" : "false", ref: g }), s ? i(ie, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: C.palette.error[500], iconSize: "xs" }) : void 0, i(ne, { ...H, className: "action", icon: r.isOpen ? "chevron-up" : "chevron-down", iconColor: C.palette.gray[400], iconSize: "xxs", iconType: "fa-light", px: 0.125, py: 0.125, ref: f, variant: "ghost" })] }), r.isOpen && r.collection.size > 0 && !x ? i(re, { className: "dropdown", offset: 4, placement: "bottom start", popoverRef: w, state: r, triggerRef: y, children: i(k, { ...G, ref: h, children: c.map((e) => i(ee, { item: e, state: r }, e.value)) }) }) : null] });
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
be as ComboBox
|
|
26
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import { O } from "../../../../../index-DrfjITyT.mjs";
|
|
5
|
+
import "../../../../icon/index.js";
|
|
6
|
+
export {
|
|
7
|
+
O as Option
|
|
8
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as l, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { isToday as u, getLocalTimeZone as R, isSameDay as c } from "@internationalized/date";
|
|
3
|
+
import { isNull as m } from "lodash";
|
|
4
|
+
import { useRef as b } from "react";
|
|
5
|
+
import { useCalendarCell as x } from "react-aria";
|
|
6
|
+
import { a as $, b as C } from "../../../../../../styles-CI-I6joH.mjs";
|
|
7
|
+
import { Icon as j } from "../../../../../icon/index.js";
|
|
8
|
+
const k = ({ state: e, date: i }) => {
|
|
9
|
+
const t = b(null), a = u(i, R()), { cellProps: g, buttonProps: h, isSelected: s, isDisabled: o, formattedDate: f } = x({ date: i }, e, t), r = "highlightedRange" in e && !m(e.highlightedRange) ? c(i, e.highlightedRange.start) : s, d = "highlightedRange" in e && !m(e.highlightedRange) ? c(i, e.highlightedRange.end) : s, n = !s || o || r || d ? "" : "range";
|
|
10
|
+
return l($, { id: n, ...g, children: p("div", { ...h, className: `cell ${r || d ? "selected" : ""}
|
|
11
|
+
${o ? "disabled" : ""} ${a ? "today" : ""}
|
|
12
|
+
${e.isFocused || a ? "" : "focused"} ${n}`, ref: t, children: [f, a ? l(C, { children: l(j, { clickable: !1, icon: "circle", iconSize: "xxs" }) }) : void 0] }) });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
k as CalendarCell
|
|
16
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { getWeeksInMonth as p } from "@internationalized/date";
|
|
3
|
+
import { useLocale as h, useCalendarGrid as k } from "react-aria";
|
|
4
|
+
import { CalendarCell as y } from "../cell/index.js";
|
|
5
|
+
import { W as n, D as f } from "../../../../../../styles-CI-I6joH.mjs";
|
|
6
|
+
const D = ({ state: a, ...o }) => {
|
|
7
|
+
const { locale: d } = h(), { weekDays: i } = k(o, a), l = p(a.visibleRange.start, d);
|
|
8
|
+
return m("table", { children: [e("thead", { children: e(n, { children: i.map((r, t) => e(f, { children: r }, `key_${t}`)) }) }), e("tbody", { children: [...new Array(l).keys()].map((r) => e(n, { children: a.getDatesInWeek(r).map((t, c) => {
|
|
9
|
+
const s = `key_${c}`;
|
|
10
|
+
return t ? e(y, { date: t, state: a }, s) : e("td", {}, s);
|
|
11
|
+
}) }, r)) })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
D as CalendarGrid
|
|
15
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as r } from "react";
|
|
3
|
+
import { T as h, Y as f, C as t } from "../../../../../../styles-CI-I6joH.mjs";
|
|
4
|
+
import { Icon as c } from "../../../../../icon/index.js";
|
|
5
|
+
import { Button as i } from "../../../../utils/calendar-button/index.js";
|
|
6
|
+
const k = ({ state: o, prevButtonProps: n, nextButtonProps: l, title: p }) => {
|
|
7
|
+
const a = o.focusedDate, d = r(() => {
|
|
8
|
+
o.setFocusedDate(a.add({ years: 1 }));
|
|
9
|
+
}, [a, o]), m = r(() => {
|
|
10
|
+
o.setFocusedDate(a.subtract({ years: 1 }));
|
|
11
|
+
}, [a, o]);
|
|
12
|
+
return e("div", { className: "header flex items-start", children: [s(i, { icon: "chevron-left", props: n }), e(h, { children: [p, e(f, { children: [s(t, { "aria-label": "top", onClick: d, children: s(c, { icon: "caret-up", iconClass: "fa-sharp", iconSize: "xxss" }) }), s(t, { "aria-label": "bottom", onClick: m, children: s(c, { icon: "caret-down", iconClass: "fa-sharp", iconSize: "xxss" }) })] })] }), s(i, { icon: "chevron-right", props: l })] });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
k as Header
|
|
16
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as m } from "@internationalized/date";
|
|
3
|
+
import { useLocale as p, useCalendar as d } from "react-aria";
|
|
4
|
+
import { useCalendarState as c } from "react-stately";
|
|
5
|
+
import { CalendarGrid as u } from "./grid/index.js";
|
|
6
|
+
import { Header as f } from "./header/index.js";
|
|
7
|
+
import { F as C } from "../../../../../styles-CI-I6joH.mjs";
|
|
8
|
+
import { Button as x } from "../../../../button/index.js";
|
|
9
|
+
const G = ({ onClose: e, props: t }) => {
|
|
10
|
+
const { locale: o } = p(), a = c({ ...t, createCalendar: m, locale: o }), { prevButtonProps: s, nextButtonProps: n, title: l } = d(t, a);
|
|
11
|
+
return i("div", { className: "calendar", children: [r(f, { nextButtonProps: n, prevButtonProps: s, state: a, title: l }), r(u, { state: a }), r(C, { children: r(x, { onClick: e, variant: "ghost", children: "Cancel" }) })] });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
G as Calendar
|
|
15
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as R, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { parseDate as h } from "@internationalized/date";
|
|
3
|
+
import n from "lodash";
|
|
4
|
+
import { forwardRef as k, useRef as v } from "react";
|
|
5
|
+
import { useDatePicker as C } from "react-aria";
|
|
6
|
+
import { useDatePickerState as q } from "react-stately";
|
|
7
|
+
import { Calendar as y } from "./calendar/index.js";
|
|
8
|
+
import { OutlineContainer as E } from "../../outline-container/index.js";
|
|
9
|
+
import { DateSelector as O } from "../../utils/date-selector/index.js";
|
|
10
|
+
import { Dialog as S } from "../../utils/dialog/index.js";
|
|
11
|
+
import { Popover as j } from "../../utils/popover/index.js";
|
|
12
|
+
const K = k(function({ disabled: s = !1, error: i, required: f, label: p, name: t, tooltip: u, value: r, ...l }, d) {
|
|
13
|
+
const a = v(null), o = q(l), { close: c } = o, { groupProps: P, fieldProps: m, buttonProps: g, dialogProps: b, calendarProps: D } = C({ ...l, "aria-label": p ?? t }, o, a);
|
|
14
|
+
return R(E, { error: i, htmlFor: t, label: p, required: f, tooltip: u, children: [e(O, { buttonProps: g, datePickerRef: a, disabled: s, error: i, fieldProps: n.isNil(r) || n.isEmpty(r) || r === "-" ? m : { ...m, value: h(r.replace(/\//gu, "-")) }, groupProps: P, inputRef: d, name: t }), o.isOpen && !s ? e(j, { offset: 8, placement: "bottom start", state: o, triggerRef: a, children: e(S, { ...b, children: e(y, { onClose: c, props: { ...D } }) }) }) : null] });
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
K as InputDate
|
|
18
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as p } from "@internationalized/date";
|
|
3
|
+
import { useRef as c } from "react";
|
|
4
|
+
import { useLocale as d, useRangeCalendar as f } from "react-aria";
|
|
5
|
+
import { useRangeCalendarState as u } from "react-stately";
|
|
6
|
+
import { CalendarGrid as C } from "../../date/calendar/grid/index.js";
|
|
7
|
+
import { Header as x } from "../../date/calendar/header/index.js";
|
|
8
|
+
import { F as h } from "../../../../../styles-CI-I6joH.mjs";
|
|
9
|
+
import { Button as v } from "../../../../button/index.js";
|
|
10
|
+
const L = ({ onClose: o, props: e }) => {
|
|
11
|
+
const { locale: s } = d(), t = c(null), a = u({ ...e, createCalendar: p, locale: s }), { prevButtonProps: n, nextButtonProps: l, title: m } = f(e, a, t);
|
|
12
|
+
return i("div", { className: "calendar-range", ref: t, children: [r(x, { nextButtonProps: l, prevButtonProps: n, state: a, title: m }), r(C, { state: a }), r(h, { children: r(v, { onClick: o, variant: "ghost", children: "Cancel" }) })] });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
L as Calendar
|
|
16
|
+
};
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as b, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useRef as x } from "react";
|
|
3
|
+
import { useDateRangePicker as q } from "react-aria";
|
|
4
|
+
import { useDateRangePickerState as y } from "react-stately";
|
|
5
|
+
import { Calendar as D } from "./calendar/index.js";
|
|
6
|
+
import { styled as C } from "styled-components";
|
|
7
|
+
import { OutlineContainer as F } from "../../outline-container/index.js";
|
|
8
|
+
import { DateSelector as c } from "../../utils/date-selector/index.js";
|
|
9
|
+
import { Dialog as j } from "../../utils/dialog/index.js";
|
|
10
|
+
import { Popover as S } from "../../utils/popover/index.js";
|
|
11
|
+
const O = C.div`
|
|
12
|
+
${({ theme: e, $disabled: r, $show: n }) => `
|
|
13
|
+
border-color: ${n ? e.palette.error[500] : e.palette.gray[300]};
|
|
14
|
+
display: flex;
|
|
15
|
+
gap: ${e.spacing[0.25]};
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
~ div {
|
|
19
|
+
background: ${r ? e.palette.gray[200] : e.palette.white};
|
|
20
|
+
}
|
|
21
|
+
`}
|
|
22
|
+
`, M = w(function({ disabled: e = !1, error: r, label: n, name: a, required: P, tooltip: g, ...p }, m) {
|
|
23
|
+
const o = x(null), l = y(p), { close: h } = l, $ = `min${a}`, v = `max${a}`, { groupProps: u, startFieldProps: s, endFieldProps: i, buttonProps: f, dialogProps: R, calendarProps: k } = q(p, l, o);
|
|
24
|
+
return b(F, { error: r, htmlFor: a, label: n, required: P, tooltip: g, children: [b(O, { $disabled: e, $show: r !== void 0, ref: o, children: [t(c, { buttonProps: f, datePickerRef: o, disabled: e, error: r, fieldProps: { ...s, "aria-label": `${s["aria-label"]} ${a}`, validate: (d) => i.value && d > i.value ? "Start date must be less than or equal to end date" : null }, groupProps: u, inputRef: m, name: $ }), t(c, { buttonProps: f, datePickerRef: o, disabled: e, error: r, fieldProps: { ...i, "aria-label": `${i["aria-label"]} ${a}`, validate: (d) => s.value && d < s.value ? "End date must be greater than or equal to start date" : null }, groupProps: u, inputRef: m, name: v })] }), l.isOpen && !e ? t(S, { offset: 8, placement: "bottom start", state: l, triggerRef: o, children: t(j, { ...R, children: t(D, { onClose: h, props: { ...k } }) }) }) : null] });
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
M as InputDateRange
|
|
28
|
+
};
|
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createCalendar as f } from "@internationalized/date";
|
|
3
|
+
import { useLocale as g, useCalendar as h } from "react-aria";
|
|
4
|
+
import { useCalendarState as u } from "react-stately";
|
|
5
|
+
import { styled as n, useTheme as C } from "styled-components";
|
|
6
|
+
import { TimeField as x } from "../../../utils/date-time-field/index.js";
|
|
7
|
+
import { CalendarGrid as v } from "../../date/calendar/grid/index.js";
|
|
8
|
+
import { Header as y } from "../../date/calendar/header/index.js";
|
|
9
|
+
import { F as $ } from "../../../../../styles-CI-I6joH.mjs";
|
|
10
|
+
import { Button as B } from "../../../../button/index.js";
|
|
11
|
+
import "../../../../typography/heading/index.js";
|
|
12
|
+
import "../../../../typography/span/index.js";
|
|
13
|
+
import { Text as j } from "../../../../typography/text/index.js";
|
|
14
|
+
const T = n.div`
|
|
15
|
+
${({ theme: e }) => `
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-top: 1px solid ${e.palette.gray[200]};
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: ${e.spacing[1.5]};
|
|
20
|
+
justify-content: center;
|
|
21
|
+
padding: ${e.spacing[0.5]} ${e.spacing[1.25]};
|
|
22
|
+
`}
|
|
23
|
+
`, b = n.div`
|
|
4
24
|
align-items: center;
|
|
5
25
|
display: flex;
|
|
6
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
26
|
+
gap: ${({ theme: e }) => e.spacing[0.5]};
|
|
7
27
|
justify-content: flex-end;
|
|
8
28
|
flex: 1 0 0;
|
|
9
|
-
|
|
29
|
+
`, A = ({ handleTimeChange: e, onClose: i, props: r, timeState: s }) => {
|
|
30
|
+
const l = C(), { locale: m } = g(), a = u({ ...r, createCalendar: f, locale: m }), { prevButtonProps: p, nextButtonProps: d, title: c } = h(r, a);
|
|
31
|
+
return o("div", { className: "calendar", children: [t(y, { nextButtonProps: d, prevButtonProps: p, state: a, title: c }), t(v, { state: a }), o(T, { children: [t(j, { color: l.palette.gray[800], fontWeight: "bold", size: "sm", children: "Time" }), t(b, { children: t(x, { hourCycle: 12, label: "time-field", onChange: e, value: s.timeValue }) })] }), t($, { children: t(B, { onClick: i, variant: "ghost", children: "Cancel" }) })] });
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
A as Calendar
|
|
35
|
+
};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useRef as D, useCallback as S } from "react";
|
|
3
|
+
import { useDatePicker as k } from "react-aria";
|
|
4
|
+
import { useDatePickerState as x } from "react-stately";
|
|
5
|
+
import { Calendar as y } from "./calendar/index.js";
|
|
6
|
+
import { OutlineContainer as O } from "../../outline-container/index.js";
|
|
7
|
+
import { DateSelector as T } from "../../utils/date-selector/index.js";
|
|
8
|
+
import { Dialog as j } from "../../utils/dialog/index.js";
|
|
9
|
+
import { Popover as q } from "../../utils/popover/index.js";
|
|
10
|
+
const G = R(function(o, n) {
|
|
11
|
+
const t = D(null), e = x({ ...o, granularity: "minute", hourCycle: 12, shouldCloseOnSelect: !1 }), { close: m } = e, { disabled: a = !1, error: s, required: p, label: u, name: i, tooltip: f } = o, { groupProps: d, fieldProps: c, buttonProps: P, dialogProps: g, calendarProps: b } = k(o, e, t), h = S((l) => {
|
|
12
|
+
l && e.setTimeValue(l);
|
|
13
|
+
}, [e]);
|
|
14
|
+
return C(O, { error: s, htmlFor: i, label: u, required: p, tooltip: f, children: [r(T, { buttonProps: P, datePickerRef: t, disabled: a, error: s, fieldProps: c, granularity: "minute", groupProps: d, inputRef: n, name: i }), e.isOpen && !a ? r(q, { offset: 8, placement: "bottom start", state: e, triggerRef: t, children: r(j, { ...g, children: r(y, { handleTimeChange: h, onClose: m, props: { ...b }, timeState: e }) }) }) : null] });
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
G as InputDateTime
|
|
18
|
+
};
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { isNil as d } from "lodash";
|
|
3
|
+
import { Label as h } from "../../label/index.js";
|
|
4
|
+
import { Container as f } from "../../../container/index.js";
|
|
5
|
+
import { Link as c } from "../../../link/index.js";
|
|
6
|
+
import "../../../typography/heading/index.js";
|
|
7
|
+
import "../../../typography/span/index.js";
|
|
8
|
+
import { Text as x } from "../../../typography/text/index.js";
|
|
9
|
+
const w = ({ children: e, currentValue: i, externalLink: l, isEditing: n, label: s, name: a, tooltip: m }) => {
|
|
10
|
+
if (n) return r("div", { children: e });
|
|
11
|
+
const t = d(i) ? "" : i, o = String(l ?? t);
|
|
12
|
+
return p(f, { children: [r(h, { htmlFor: a, label: s, tooltip: m, weight: "bold" }), o.startsWith("https://") ? r(c, { href: o, children: t }) : r(x, { size: "md", children: t })] });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
w as Editable
|
|
16
|
+
};
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T } from "react";
|
|
3
|
+
import { useTheme as C } from "styled-components";
|
|
4
|
+
import { OutlineContainer as L } from "../../outline-container/index.js";
|
|
5
|
+
import { S as g } from "../../../../styles-lSVV9kjn.mjs";
|
|
6
|
+
import { Icon as t } from "../../../icon/index.js";
|
|
7
|
+
const S = T(function({ disabled: o = !1, hasIcon: l = !1, helpLink: n, helpLinkText: s, helpText: m, error: i, label: c, name: e, maskValue: d = !1, required: a, tooltip: p, type: u = "text", weight: f, ...h }, x) {
|
|
8
|
+
const b = C();
|
|
9
|
+
return r(L, { error: i, helpLink: n, helpLinkText: s, helpText: m, htmlFor: e, label: c, required: a, tooltip: p, weight: f, children: k(g, { className: `${o ? "disabled" : ""} ${i ? "error" : ""}`, children: [l ? r(t, { icon: "user", iconSize: "sm", iconType: "fa-light" }) : void 0, r("input", { "aria-hidden": !1, "aria-invalid": i ? "true" : "false", "aria-label": e, "aria-required": a, autoComplete: "off", className: d ? "sr-block" : "", "data-testid": `${e}-input`, disabled: o, id: e, name: e, ref: x, type: u, ...h }), i ? r(t, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: b.palette.error[500], iconSize: "xs" }) : void 0] }) });
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
S as Input
|
|
13
|
+
};
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { isEmpty as q } from "lodash";
|
|
3
|
+
import { forwardRef as z } from "react";
|
|
4
|
+
import { styled as m, useTheme as C } from "styled-components";
|
|
5
|
+
import { b as S } from "../../../../styles-fH2c4cfc.mjs";
|
|
6
|
+
import { OutlineContainer as j } from "../../outline-container/index.js";
|
|
7
|
+
import { S as k } from "../../../../styles-lSVV9kjn.mjs";
|
|
8
|
+
import { Button as I } from "../../../button/index.js";
|
|
9
|
+
import { Container as A } from "../../../container/index.js";
|
|
10
|
+
import { Icon as s } from "../../../icon/index.js";
|
|
11
|
+
import { IconButton as B } from "../../../icon-button/index.js";
|
|
12
|
+
const F = m(S)`
|
|
2
13
|
white-space: nowrap;
|
|
3
|
-
margin-right: ${({theme:
|
|
14
|
+
margin-right: ${({ theme: t }) => t.spacing[0.25]};
|
|
4
15
|
text-overflow: ellipsis;
|
|
5
16
|
overflow: hidden;
|
|
6
17
|
max-width: 80%;
|
|
7
|
-
`,
|
|
18
|
+
`, L = m.input`
|
|
8
19
|
opacity: 0;
|
|
9
20
|
position: absolute;
|
|
10
21
|
visibility: hidden;
|
|
11
22
|
width: 0;
|
|
12
|
-
`,
|
|
23
|
+
`, Q = z(function({ accept: t, disabled: e = !1, error: a, label: d, helpLink: c, helpText: h, id: f, multiple: x, name: r, required: u, tooltip: g, weight: b, value: w, ...y }, v) {
|
|
24
|
+
const l = C(), p = ((T) => {
|
|
25
|
+
const n = T;
|
|
26
|
+
return n ? Array.from(n).map(($) => $.name).join(", ") : "";
|
|
27
|
+
})(w);
|
|
28
|
+
return o(j, { error: a, helpLink: c, helpText: h, htmlFor: r, label: d, required: u, tooltip: g, weight: b, children: [o(k, { className: `${e ? "disabled" : ""} ${a ? "error" : ""}`, children: [i(F, { $size: "xs", children: p }), o(A, { display: "flex", gap: 0.5, children: [q(p) ? void 0 : i(B, { color: l.palette.gray[400], height: "20px", icon: "xmark", iconSize: "lg", iconType: "fa-light", variant: "ghost", width: "20px" }), a && i(s, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: l.palette.error[500], iconSize: "xs" })] }), o(I, { border: e ? `1px solid ${l.palette.gray[300]} !important` : "", borderRadius: "0px 8px 8px 0px !important", disabled: e, height: "40px", variant: "primary", width: "96px", children: [i(s, { icon: "search", iconSize: "sm", mr: 0.5 }), "Add file"] })] }), i(L, { accept: t, "aria-label": r, "data-testid": r, disabled: e, id: f, multiple: x, name: r, ref: v, required: void 0, type: "file", value: void 0, ...y })] });
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
Q as InputFile
|
|
32
|
+
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useMemo as g } from "react";
|
|
3
|
+
import { styled as x } from "styled-components";
|
|
4
|
+
import { OutlineContainer as v } from "../../outline-container/index.js";
|
|
5
|
+
import { S as w } from "../../../../styles-lSVV9kjn.mjs";
|
|
6
|
+
import { Tag as C } from "../../../tag/index.js";
|
|
7
|
+
const j = x.input`
|
|
2
8
|
border: none;
|
|
3
9
|
background: transparent;
|
|
4
10
|
min-width: 15rem;
|
|
5
11
|
padding: 0;
|
|
6
12
|
flex: 1;
|
|
7
|
-
`,
|
|
13
|
+
`, F = c(function({ disabled: r = !1, error: a, label: d, name: o = "input-tag", onChange: s, placeholder: m, required: t, tooltip: p, weight: f, value: e, ...u }, h) {
|
|
14
|
+
const l = g(() => e && typeof e == "string" ? e.split(",").filter(Boolean) : [], [e]);
|
|
15
|
+
return i(v, { error: a, htmlFor: o, label: d, required: t, tooltip: p, weight: f, children: b(w, { className: `${r ? "disabled" : ""} ${a ? "error" : ""}`, children: [l.map((n) => i(C, { disabled: r, tagLabel: n }, n)), i(j, { "aria-hidden": !1, "aria-invalid": a ? "true" : "false", "aria-label": o, "aria-required": t, autoComplete: "off", disabled: r, name: o, onChange: s, placeholder: l.length === 0 ? m : void 0, ref: h, type: "text", value: e, ...u })] }) });
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
F as InputTags
|
|
19
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L } from "react";
|
|
3
|
+
import { OutlineContainer as w } from "../../outline-container/index.js";
|
|
4
|
+
import { NumberField as C } from "../../utils/number-field/index.js";
|
|
5
|
+
const P = L(function({ decimalPlaces: o, disabled: a = !1, error: e, helpLink: l, helpText: m, id: n, label: t, maxLength: d, max: h, min: p, name: r, onChange: s, placeholder: c, required: f, tooltip: u, weight: x, ...b }, g) {
|
|
6
|
+
return i(w, { error: e, helpLink: l, helpText: m, htmlFor: r, label: t, maxLength: d, required: f, tooltip: u, weight: x, children: i(C, { decimalPlaces: o, disabled: a, error: e, id: n, max: h, min: p, name: r, onChange: s, placeholder: c, ref: g, ...b }) });
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
P as InputNumber
|
|
10
|
+
};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { OutlineContainer as u } from "../../outline-container/index.js";
|
|
4
|
+
import { NumberField as a } from "../../utils/number-field/index.js";
|
|
5
|
+
import { Container as b } from "../../../container/index.js";
|
|
6
|
+
const q = f(function({ disabled: o = !1, error: r, name: t, label: s, propsMax: n, propsMin: l, required: p, tooltip: d }, i) {
|
|
7
|
+
return e(u, { error: r, htmlFor: t, label: s, required: p, tooltip: d, children: m(b, { display: "flex", gap: 0.25, width: "100%", children: [e(a, { ...l, disabled: o, error: r, ref: i }), e(a, { ...n, disabled: o, error: r, ref: i })] }) });
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
q as InputNumberRange
|
|
11
|
+
};
|