@fluidattacks/design 3.1.12 → 3.1.14
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/assets/design.css +1 -0
- package/dist/components/@core/index.js +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -7
- package/dist/components/accordion/index.js +5 -19
- package/dist/components/alert/index.js +4 -111
- package/dist/components/button/index.js +4 -16
- package/dist/components/card/card-header/index.js +4 -12
- package/dist/components/card/card-with-image/index.js +5 -16
- package/dist/components/card/card-with-input/index.js +5 -54
- package/dist/components/card/card-with-selector/index.js +4 -14
- package/dist/components/card/card-with-switch/index.js +4 -10
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -47
- package/dist/components/checkbox/index.js +4 -82
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -25
- package/dist/components/code-snippet/location-code/index.js +7 -123
- package/dist/components/colors/index.js +7 -7
- package/dist/components/confirm-dialog/index.js +4 -20
- package/dist/components/container/index.js +4 -25
- package/dist/components/content-card/category-tag/index.js +4 -11
- package/dist/components/content-card/event-date/index.js +5 -16
- package/dist/components/content-card/index.js +4 -61
- package/dist/components/content-card-carousel/index.js +4 -13
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -8
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -46
- package/dist/components/file-preview/index.js +3 -26
- package/dist/components/form/index.js +4 -24
- package/dist/components/grid-container/index.js +4 -26
- package/dist/components/group-selector/index.js +6 -24
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -46
- package/dist/components/icon-button/index.js +4 -25
- package/dist/components/indicator-card/index.js +5 -13
- package/dist/components/info-sidebar/index.js +4 -14
- package/dist/components/inputs/fields/combobox/index.js +7 -24
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
- package/dist/components/inputs/fields/date/calendar/index.js +6 -13
- package/dist/components/inputs/fields/date/index.js +8 -16
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
- package/dist/components/inputs/fields/date-range/index.js +6 -26
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-time/index.js +6 -16
- package/dist/components/inputs/fields/editable/index.js +4 -14
- package/dist/components/inputs/fields/input/index.js +5 -11
- package/dist/components/inputs/fields/input-file/index.js +6 -30
- package/dist/components/inputs/fields/input-tags/index.js +4 -17
- package/dist/components/inputs/fields/number/index.js +4 -8
- package/dist/components/inputs/fields/number-range/index.js +4 -9
- package/dist/components/inputs/fields/phone/index.js +7 -417
- package/dist/components/inputs/fields/text-area/index.js +5 -11
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -10
- package/dist/components/inputs/outline-container/index.js +4 -16
- package/dist/components/inputs/utils/action-button/index.js +4 -8
- package/dist/components/inputs/utils/calendar-button/index.js +5 -11
- package/dist/components/inputs/utils/date-selector/index.js +3 -6
- package/dist/components/inputs/utils/date-time-field/index.js +10 -30
- package/dist/components/inputs/utils/dialog/index.js +5 -9
- package/dist/components/inputs/utils/number-field/index.js +5 -11
- package/dist/components/inputs/utils/popover/index.js +5 -11
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -13
- package/dist/components/language-selector/index.js +4 -11
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -50
- package/dist/components/list-item/index.js +6 -14
- package/dist/components/little-flag/index.js +3 -13
- package/dist/components/loading/index.js +4 -65
- package/dist/components/logo/index.js +3 -5
- package/dist/components/logo-carousel/index.js +4 -50
- package/dist/components/lottie/index.js +3 -13
- package/dist/components/menu/index.js +5 -20
- package/dist/components/message-banner/index.js +5 -33
- package/dist/components/modal/index.js +6 -17
- package/dist/components/modal/modal-confirm/index.js +3 -8
- package/dist/components/modal/modal-footer/index.js +5 -14
- package/dist/components/modal/modal-header/index.js +6 -23
- package/dist/components/notification/index.js +5 -66
- package/dist/components/notification-sign/index.js +4 -28
- package/dist/components/number-input/index.js +5 -50
- package/dist/components/oauth-selector/index.js +6 -24
- package/dist/components/oauth-selector/option-container/index.js +4 -13
- package/dist/components/plan-card/index.js +3 -82
- package/dist/components/plan-card/recommended-tag/index.js +3 -8
- package/dist/components/pop-up/description/index.js +5 -11
- package/dist/components/pop-up/index.js +7 -21
- package/dist/components/premium-feature/index.js +4 -43
- package/dist/components/priority-score/index.js +4 -12
- package/dist/components/progress/index.js +5 -32
- package/dist/components/progress-bar/index.js +3 -93
- package/dist/components/radio-button/index.js +4 -86
- package/dist/components/scroll-button/index.js +4 -22
- package/dist/components/search/index.js +7 -61
- package/dist/components/search-bar/index.js +4 -30
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -12
- package/dist/components/severity-overview/badge/index.js +4 -16
- package/dist/components/severity-overview/index.js +3 -5
- package/dist/components/show-on-hover/index.js +3 -23
- package/dist/components/slide-out-menu/index.js +6 -2006
- package/dist/components/slide-out-menu/menu-item/index.js +4 -13
- package/dist/components/slider/index.js +7 -91
- package/dist/components/slider/thumb/index.js +5 -8
- package/dist/components/step-lapse/index.js +4 -99
- package/dist/components/table-button/index.js +4 -54
- package/dist/components/tabs/fixed-tabs/index.js +3 -7
- package/dist/components/tabs/index.js +6 -12
- package/dist/components/tabs/tab/index.js +3 -6
- package/dist/components/tag/index.js +4 -114
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -5
- package/dist/components/toggle/index.js +4 -61
- package/dist/components/toggle-buttons/index.js +4 -72
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -2514
- package/dist/components/typography/heading/index.js +4 -7
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -7
- package/dist/components/typography/text/index.js +4 -7
- package/dist/components/web-form/index.js +4 -69
- package/dist/components-C2JBXbtI.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +113 -205
- package/dist/vendor-CVMqCpkZ.mjs +14504 -0
- package/package.json +2 -3
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/index-38JqtnAI.mjs +0 -122
- package/dist/index-B5yoGFs6.mjs +0 -54
- package/dist/index-BLbKylyw.mjs +0 -209
- package/dist/index-Bu448Tz2.mjs +0 -106
- package/dist/index-BwFnfaRh.mjs +0 -2310
- package/dist/index-Co_k0WFk.mjs +0 -75
- package/dist/index-Cu7uUMlx.mjs +0 -82
- package/dist/index-D-lcuEHY.mjs +0 -1018
- package/dist/index-DrfjITyT.mjs +0 -61
- package/dist/styles-7_q7nHce.mjs +0 -110
- package/dist/styles-BA0WIQL-.mjs +0 -74
- package/dist/styles-C3cZmKVJ.mjs +0 -131
- package/dist/styles-CI-I6joH.mjs +0 -144
- package/dist/styles-Cx93EcVo.mjs +0 -76
- package/dist/styles-D85YYIjM.mjs +0 -131
- package/dist/styles-EIbGRPlk.mjs +0 -106
- package/dist/styles-Q1VXuWI7.mjs +0 -65
- package/dist/styles-fH2c4cfc.mjs +0 -77
- package/dist/styles-lSVV9kjn.mjs +0 -133
- package/dist/use-carousel-CvRxi2FI.mjs +0 -17
- package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
- package/dist/use-modal-CkrZ-_-M.mjs +0 -14
- package/dist/use-search-DpLNvt7Q.mjs +0 -12
- package/dist/utils-CQvBF-wY.mjs +0 -4
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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`
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
transition: all 0.2s ease-in-out;
|
|
38
|
-
|
|
39
|
-
&:hover:not([disabled]) {
|
|
40
|
-
transform: scale(1.2);
|
|
41
|
-
}
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { L as t } from "../../components-C2JBXbtI.mjs";
|
|
46
4
|
export {
|
|
47
|
-
|
|
5
|
+
t as Icon
|
|
48
6
|
};
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { N as p } from "../../components-C2JBXbtI.mjs";
|
|
25
4
|
export {
|
|
26
|
-
|
|
5
|
+
p as IconButton
|
|
27
6
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { O as p } from "../../components-C2JBXbtI.mjs";
|
|
13
5
|
export {
|
|
14
|
-
|
|
6
|
+
p as IndicatorCard
|
|
15
7
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { P as p } from "../../components-C2JBXbtI.mjs";
|
|
14
4
|
export {
|
|
15
|
-
|
|
5
|
+
p as InfoSidebar
|
|
16
6
|
};
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { S as
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import "styled-components";
|
|
6
|
+
import { S as a } from "../../../../components-C2JBXbtI.mjs";
|
|
24
7
|
export {
|
|
25
|
-
|
|
8
|
+
a as ComboBox
|
|
26
9
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-aria";
|
|
4
|
-
import {
|
|
5
|
-
import "../../../../icon/index.js";
|
|
4
|
+
import { aW as m } from "../../../../../components-C2JBXbtI.mjs";
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
m as Option
|
|
8
7
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "lodash";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-aria";
|
|
6
|
+
import { aZ as e } from "../../../../../../components-C2JBXbtI.mjs";
|
|
14
7
|
export {
|
|
15
|
-
|
|
8
|
+
e as CalendarCell
|
|
16
9
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import { a_ as p } from "../../../../../../components-C2JBXbtI.mjs";
|
|
13
5
|
export {
|
|
14
|
-
|
|
6
|
+
p as CalendarGrid
|
|
15
7
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { b0 as p } from "../../../../../../components-C2JBXbtI.mjs";
|
|
14
4
|
export {
|
|
15
|
-
|
|
5
|
+
p as Header
|
|
16
6
|
};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import { b1 as a } from "../../../../../components-C2JBXbtI.mjs";
|
|
13
6
|
export {
|
|
14
|
-
|
|
7
|
+
a as Calendar
|
|
15
8
|
};
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
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
|
-
});
|
|
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 { U as f } from "../../../../components-C2JBXbtI.mjs";
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
f as InputDate
|
|
18
10
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-aria";
|
|
5
|
+
import "react-stately";
|
|
6
|
+
import { b6 as e } from "../../../../../components-C2JBXbtI.mjs";
|
|
14
7
|
export {
|
|
15
|
-
|
|
8
|
+
e as Calendar
|
|
16
9
|
};
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import { V as a } from "../../../../components-C2JBXbtI.mjs";
|
|
26
6
|
export {
|
|
27
|
-
|
|
7
|
+
a as InputDateRange
|
|
28
8
|
};
|
|
@@ -1,35 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
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`
|
|
24
|
-
align-items: center;
|
|
25
|
-
display: flex;
|
|
26
|
-
gap: ${({ theme: e }) => e.spacing[0.5]};
|
|
27
|
-
justify-content: flex-end;
|
|
28
|
-
flex: 1 0 0;
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@internationalized/date";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import "styled-components";
|
|
6
|
+
import { b7 as e } from "../../../../../components-C2JBXbtI.mjs";
|
|
33
7
|
export {
|
|
34
|
-
|
|
8
|
+
e as Calendar
|
|
35
9
|
};
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-aria";
|
|
4
|
+
import "react-stately";
|
|
5
|
+
import { W as e } from "../../../../components-C2JBXbtI.mjs";
|
|
16
6
|
export {
|
|
17
|
-
|
|
7
|
+
e as InputDateTime
|
|
18
8
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import { a0 as i } from "../../../../components-C2JBXbtI.mjs";
|
|
14
4
|
export {
|
|
15
|
-
|
|
5
|
+
i as Editable
|
|
16
6
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { T as i } from "../../../../components-C2JBXbtI.mjs";
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
i as Input
|
|
13
7
|
};
|
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
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)`
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
margin-right: ${({ theme: t }) => t.spacing[0.25]};
|
|
15
|
-
text-overflow: ellipsis;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
max-width: 80%;
|
|
18
|
-
`, L = m.input`
|
|
19
|
-
opacity: 0;
|
|
20
|
-
position: absolute;
|
|
21
|
-
visibility: hidden;
|
|
22
|
-
width: 0;
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import "styled-components";
|
|
5
|
+
import { X as e } from "../../../../components-C2JBXbtI.mjs";
|
|
30
6
|
export {
|
|
31
|
-
|
|
7
|
+
e as InputFile
|
|
32
8
|
};
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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`
|
|
8
|
-
border: none;
|
|
9
|
-
background: transparent;
|
|
10
|
-
min-width: 15rem;
|
|
11
|
-
padding: 0;
|
|
12
|
-
flex: 1;
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Z as m } from "../../../../components-C2JBXbtI.mjs";
|
|
17
4
|
export {
|
|
18
|
-
|
|
5
|
+
m as InputTags
|
|
19
6
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Y as t } from "../../../../components-C2JBXbtI.mjs";
|
|
8
4
|
export {
|
|
9
|
-
|
|
5
|
+
t as InputNumber
|
|
10
6
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { _ as t } from "../../../../components-C2JBXbtI.mjs";
|
|
9
4
|
export {
|
|
10
|
-
|
|
5
|
+
t as InputNumberRange
|
|
11
6
|
};
|