@strapi/design-system 2.2.3 → 2.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/components/RawTable/RawTable.d.ts.map +1 -1
- package/dist/components/RawTable/RawTable.test.d.ts +2 -0
- package/dist/components/RawTable/RawTable.test.d.ts.map +1 -0
- package/dist/hooks/__tests__/useColorScheme.test.d.ts +2 -0
- package/dist/hooks/__tests__/useColorScheme.test.d.ts.map +1 -0
- package/dist/hooks/useColorScheme.d.ts +7 -0
- package/dist/hooks/useColorScheme.d.ts.map +1 -0
- package/dist/index.js +192 -192
- package/dist/index.mjs +832 -830
- package/dist/next/components/ui/button.d.ts +12 -0
- package/dist/next/components/ui/button.d.ts.map +1 -0
- package/dist/next/components/ui/index.d.ts +2 -0
- package/dist/next/components/ui/index.d.ts.map +1 -0
- package/dist/next/index.d.ts +4 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +1 -0
- package/dist/next/index.mjs +55 -0
- package/dist/next/lib/utils.d.ts +3 -0
- package/dist/next/lib/utils.d.ts.map +1 -0
- package/dist/next/styles.css +1 -0
- package/dist/useColorScheme-CkO08j1W.js +11 -0
- package/dist/useColorScheme-_G9Tqp-s.cjs +1 -0
- package/dist/utilities/DesignSystemProvider.d.ts.map +1 -1
- package/dist/utilities/DesignSystemProvider.test.d.ts +2 -0
- package/dist/utilities/DesignSystemProvider.test.d.ts.map +1 -0
- package/package.json +51 -8
- package/src/next/source.css +14 -0
- package/src/next/theme.css +108 -0
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { styled as u, css as T, keyframes as Q, useTheme as
|
|
1
|
+
import { styled as u, css as T, keyframes as Q, useTheme as Hn, createGlobalStyle as Vn, ThemeProvider as jn } from "styled-components";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useCallbackRef as
|
|
5
|
-
import { DateFormatter as
|
|
6
|
-
import {
|
|
3
|
+
import { useId as _n, useRef as Gt, useState as gt, useEffect as Un, startTransition as qt, useMemo as mr, Children as Gn, useCallback as qn } from "react";
|
|
4
|
+
import { useCallbackRef as br } from "@radix-ui/react-use-callback-ref";
|
|
5
|
+
import { DateFormatter as Kn, getLocalTimeZone as pt, today as Tt, parseAbsolute as Yn, toCalendarDate as Qn, minDate as mt, maxDate as bt, startOfMonth as Xn, startOfWeek as $r, getDayOfWeek as Zn, isSameDay as xr, endOfMonth as Jn, parseAbsoluteToLocal as eo, toCalendarDateTime as to } from "@internationalized/date";
|
|
6
|
+
import { u as ro, a as fe } from "./useColorScheme-CkO08j1W.js";
|
|
7
|
+
import { i as Su } from "./useColorScheme-CkO08j1W.js";
|
|
8
|
+
import { jsx as r, jsxs as x, Fragment as It } from "react/jsx-runtime";
|
|
7
9
|
import * as me from "@radix-ui/react-tooltip";
|
|
8
10
|
import { Provider as no } from "@radix-ui/react-tooltip";
|
|
9
11
|
import * as oo from "@radix-ui/react-dismissable-layer";
|
|
10
|
-
import { useCallbackRef as
|
|
11
|
-
import { composeEventHandlers as
|
|
12
|
+
import { useCallbackRef as wr, Combobox as ie, Select as le, composeEventHandlers as Se, usePrev as ao } from "@strapi/ui-primitives";
|
|
13
|
+
import { composeEventHandlers as Tu, useCallbackRef as Iu, useCollator as Du, useFilter as Eu } from "@strapi/ui-primitives";
|
|
12
14
|
import * as Ge from "@radix-ui/react-accordion";
|
|
13
|
-
import { CaretDown as ge, Cross as Te, CheckCircle as io, WarningCircle as so, Information as lo, Loader as
|
|
15
|
+
import { CaretDown as ge, Cross as Te, CheckCircle as io, WarningCircle as so, Information as lo, Loader as yr, ExternalLink as co, ChevronRight as Dt, Minus as uo, ChevronLeft as Cr, Calendar as ho, Clock as fo, Search as vr } from "@strapi/icons";
|
|
14
16
|
import * as Et from "@radix-ui/react-avatar";
|
|
15
17
|
import * as se from "@radix-ui/react-dropdown-menu";
|
|
16
|
-
import * as
|
|
18
|
+
import * as kr from "@radix-ui/react-checkbox";
|
|
17
19
|
import { useVirtualizer as go } from "@tanstack/react-virtual";
|
|
18
20
|
import * as tt from "@radix-ui/react-scroll-area";
|
|
19
21
|
import * as pe from "@radix-ui/react-alert-dialog";
|
|
@@ -24,14 +26,14 @@ import { RemoveScroll as Co } from "react-remove-scroll";
|
|
|
24
26
|
import { createPortal as vo } from "react-dom";
|
|
25
27
|
import { json as ko, jsonParseLinter as So } from "@codemirror/lang-json";
|
|
26
28
|
import { useCodeMirror as Ro } from "@uiw/react-codemirror";
|
|
27
|
-
import { StateField as To, StateEffect as
|
|
28
|
-
import { EditorView as Io, Decoration as
|
|
29
|
+
import { StateField as To, StateEffect as Sr } from "@codemirror/state";
|
|
30
|
+
import { EditorView as Io, Decoration as Rr } from "@codemirror/view";
|
|
29
31
|
import * as Ie from "@radix-ui/react-dialog";
|
|
30
32
|
import { NumberParser as Do, NumberFormatter as Eo } from "@internationalized/number";
|
|
31
33
|
import * as Me from "@radix-ui/react-popover";
|
|
32
|
-
import * as
|
|
34
|
+
import * as Tr from "@radix-ui/react-progress";
|
|
33
35
|
import * as At from "@radix-ui/react-radio-group";
|
|
34
|
-
import * as
|
|
36
|
+
import * as Ir from "@radix-ui/react-switch";
|
|
35
37
|
import * as rt from "@radix-ui/react-tabs";
|
|
36
38
|
import { cloneDeep as Kt, assignWith as Ao, merge as zo } from "lodash";
|
|
37
39
|
const Be = (e, t) => {
|
|
@@ -194,17 +196,17 @@ const Oe = (e, t) => {
|
|
|
194
196
|
display: f,
|
|
195
197
|
flex: g,
|
|
196
198
|
fontSize: p,
|
|
197
|
-
fontWeight:
|
|
199
|
+
fontWeight: v,
|
|
198
200
|
grow: m,
|
|
199
|
-
hasRadius:
|
|
201
|
+
hasRadius: $,
|
|
200
202
|
height: R,
|
|
201
|
-
left:
|
|
202
|
-
lineHeight:
|
|
203
|
-
margin:
|
|
203
|
+
left: I,
|
|
204
|
+
lineHeight: w,
|
|
205
|
+
margin: y,
|
|
204
206
|
marginBottom: k,
|
|
205
207
|
marginLeft: E,
|
|
206
208
|
marginRight: b,
|
|
207
|
-
marginTop:
|
|
209
|
+
marginTop: D,
|
|
208
210
|
maxHeight: L,
|
|
209
211
|
maxWidth: z,
|
|
210
212
|
minHeight: O,
|
|
@@ -244,17 +246,17 @@ const Oe = (e, t) => {
|
|
|
244
246
|
$display: f,
|
|
245
247
|
$flex: g,
|
|
246
248
|
$fontSize: p,
|
|
247
|
-
$fontWeight:
|
|
249
|
+
$fontWeight: v,
|
|
248
250
|
$grow: m,
|
|
249
|
-
$hasRadius:
|
|
251
|
+
$hasRadius: $,
|
|
250
252
|
$height: R,
|
|
251
|
-
$left:
|
|
252
|
-
$lineHeight:
|
|
253
|
-
$margin:
|
|
253
|
+
$left: I,
|
|
254
|
+
$lineHeight: w,
|
|
255
|
+
$margin: y,
|
|
254
256
|
$marginBottom: k,
|
|
255
257
|
$marginLeft: E,
|
|
256
258
|
$marginRight: b,
|
|
257
|
-
$marginTop:
|
|
259
|
+
$marginTop: D,
|
|
258
260
|
$maxHeight: L,
|
|
259
261
|
$maxWidth: z,
|
|
260
262
|
$minHeight: O,
|
|
@@ -331,7 +333,7 @@ const Oe = (e, t) => {
|
|
|
331
333
|
},
|
|
332
334
|
e
|
|
333
335
|
)};
|
|
334
|
-
`, ee = s.forwardRef,
|
|
336
|
+
`, ee = s.forwardRef, C = ee((e, t) => {
|
|
335
337
|
const { className: n, alignItems: o, direction: a, inline: i, gap: l, justifyContent: c, wrap: d, ...h } = e;
|
|
336
338
|
return /* @__PURE__ */ r(Bo, { className: n, ref: t, ...{
|
|
337
339
|
$alignItems: o,
|
|
@@ -353,7 +355,7 @@ const Oe = (e, t) => {
|
|
|
353
355
|
},
|
|
354
356
|
e
|
|
355
357
|
)};
|
|
356
|
-
`, No = "alpha", Wo = "beta", Fo = "delta", Ho = "epsilon", Xt = "omega", Vo = "pi", jo = "sigma",
|
|
358
|
+
`, No = "alpha", Wo = "beta", Fo = "delta", Ho = "epsilon", Xt = "omega", Vo = "pi", jo = "sigma", Dr = T`
|
|
357
359
|
display: block;
|
|
358
360
|
white-space: nowrap;
|
|
359
361
|
overflow: hidden;
|
|
@@ -583,7 +585,7 @@ const Oe = (e, t) => {
|
|
|
583
585
|
}
|
|
584
586
|
), Uo = u(S)`
|
|
585
587
|
${({ $variant: e, $fontSize: t, $lineHeight: n, theme: o }) => _o({ $variant: e, theme: o, $fontSize: t, $lineHeight: n })}
|
|
586
|
-
${({ $ellipsis: e }) => e ?
|
|
588
|
+
${({ $ellipsis: e }) => e ? Dr : ""}
|
|
587
589
|
|
|
588
590
|
${({ theme: e, ...t }) => Oe(
|
|
589
591
|
{
|
|
@@ -652,11 +654,11 @@ const Oe = (e, t) => {
|
|
|
652
654
|
`, Xo = s.forwardRef(
|
|
653
655
|
({ caretPosition: e = "left", description: t, icon: n, iconProps: o, children: a, ...i }, l) => {
|
|
654
656
|
const { size: c } = zt("Trigger");
|
|
655
|
-
return /* @__PURE__ */
|
|
657
|
+
return /* @__PURE__ */ x(Ar, { $caretPosition: e, $size: c, ref: l, ...i, children: [
|
|
656
658
|
e === "left" ? /* @__PURE__ */ r(et, { $size: c, children: /* @__PURE__ */ r(ge, { width: c === "S" ? "1.2rem" : "1.6rem", height: c === "S" ? "1.2rem" : "1.6rem" }) }) : null,
|
|
657
|
-
/* @__PURE__ */
|
|
658
|
-
n && c === "S" ? /* @__PURE__ */ r(
|
|
659
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ x(C, { tag: "span", gap: 2, overflow: "hidden", children: [
|
|
660
|
+
n && c === "S" ? /* @__PURE__ */ r(Er, { children: /* @__PURE__ */ r(n, { ...o }) }) : null,
|
|
661
|
+
/* @__PURE__ */ x(C, { alignItems: "flex-start", direction: "column", tag: "span", ref: l, overflow: "hidden", children: [
|
|
660
662
|
/* @__PURE__ */ r(
|
|
661
663
|
A,
|
|
662
664
|
{
|
|
@@ -674,14 +676,14 @@ const Oe = (e, t) => {
|
|
|
674
676
|
e === "right" ? /* @__PURE__ */ r(et, { $size: c, children: /* @__PURE__ */ r(ge, { width: c === "S" ? "1.2rem" : "1.6rem", height: c === "S" ? "1.2rem" : "1.6rem" }) }) : null
|
|
675
677
|
] });
|
|
676
678
|
}
|
|
677
|
-
),
|
|
679
|
+
), Er = u(S)`
|
|
678
680
|
color: ${(e) => e.theme.colors.neutral500};
|
|
679
681
|
display: flex;
|
|
680
682
|
|
|
681
683
|
@media (prefers-reduced-motion: no-preference) {
|
|
682
684
|
transition: ${(e) => e.theme.transitions.color};
|
|
683
685
|
}
|
|
684
|
-
`, et = u(
|
|
686
|
+
`, et = u(C).attrs((e) => ({
|
|
685
687
|
...e,
|
|
686
688
|
tag: "span"
|
|
687
689
|
}))`
|
|
@@ -697,7 +699,7 @@ const Oe = (e, t) => {
|
|
|
697
699
|
transform ${(e) => e.theme.motion.timings[200]} ${(e) => e.theme.motion.easings.authenticMotion},
|
|
698
700
|
${(e) => e.theme.transitions.backgroundColor};
|
|
699
701
|
}
|
|
700
|
-
`,
|
|
702
|
+
`, Ar = u(Ge.Trigger)`
|
|
701
703
|
display: flex;
|
|
702
704
|
align-items: center;
|
|
703
705
|
justify-content: ${(e) => e.$caretPosition === "left" ? "flex-start" : "space-between"};
|
|
@@ -728,8 +730,8 @@ const Oe = (e, t) => {
|
|
|
728
730
|
}
|
|
729
731
|
`, Zo = s.forwardRef((e, t) => {
|
|
730
732
|
const { size: n } = zt("Trigger");
|
|
731
|
-
return /* @__PURE__ */ r(
|
|
732
|
-
}),
|
|
733
|
+
return /* @__PURE__ */ r(zr, { $size: n, ...e, ref: t });
|
|
734
|
+
}), zr = u(C).attrs((e) => ({
|
|
733
735
|
...e,
|
|
734
736
|
tag: "span"
|
|
735
737
|
}))`
|
|
@@ -760,10 +762,10 @@ const Oe = (e, t) => {
|
|
|
760
762
|
&[data-state='open'] {
|
|
761
763
|
background-color: ${(e) => e.theme.colors.primary100};
|
|
762
764
|
|
|
763
|
-
& > ${
|
|
765
|
+
& > ${Ar} {
|
|
764
766
|
color: ${(e) => e.theme.colors.primary600};
|
|
765
767
|
|
|
766
|
-
& ${
|
|
768
|
+
& ${Er} {
|
|
767
769
|
color: ${(e) => e.theme.colors.primary600};
|
|
768
770
|
}
|
|
769
771
|
|
|
@@ -772,7 +774,7 @@ const Oe = (e, t) => {
|
|
|
772
774
|
}
|
|
773
775
|
}
|
|
774
776
|
|
|
775
|
-
& > ${
|
|
777
|
+
& > ${zr} > button {
|
|
776
778
|
color: ${(e) => e.theme.colors.primary600};
|
|
777
779
|
}
|
|
778
780
|
}
|
|
@@ -859,7 +861,7 @@ const Oe = (e, t) => {
|
|
|
859
861
|
width: 1px;
|
|
860
862
|
`, Le = ({ children: e, label: t }) => {
|
|
861
863
|
const n = s.Children.only(e);
|
|
862
|
-
return /* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ x(It, { children: [
|
|
863
865
|
s.cloneElement(n, {
|
|
864
866
|
// accessibility
|
|
865
867
|
"aria-hidden": "true",
|
|
@@ -870,7 +872,7 @@ const Oe = (e, t) => {
|
|
|
870
872
|
] });
|
|
871
873
|
};
|
|
872
874
|
Le.displayName = "AccessibleIcon";
|
|
873
|
-
const
|
|
875
|
+
const Or = (e) => {
|
|
874
876
|
switch (e) {
|
|
875
877
|
case "danger":
|
|
876
878
|
return "danger100";
|
|
@@ -881,9 +883,9 @@ const Lr = (e) => {
|
|
|
881
883
|
default:
|
|
882
884
|
return "primary100";
|
|
883
885
|
}
|
|
884
|
-
}, ia = (e) =>
|
|
886
|
+
}, ia = (e) => Or(e).replace("100", "200"), $t = ({ theme: e, $variant: t }) => t === "danger" ? e.colors.danger700 : t === "success" ? e.colors.success700 : t === "warning" ? e.colors.warning700 : e.colors.primary700, sa = u(S)`
|
|
885
887
|
${nt};
|
|
886
|
-
`, la = u(
|
|
888
|
+
`, la = u(C)`
|
|
887
889
|
svg {
|
|
888
890
|
height: 100%;
|
|
889
891
|
width: 100%;
|
|
@@ -909,11 +911,11 @@ const Lr = (e) => {
|
|
|
909
911
|
titleAs: i = "p",
|
|
910
912
|
action: l,
|
|
911
913
|
...c
|
|
912
|
-
}) => /* @__PURE__ */
|
|
913
|
-
|
|
914
|
+
}) => /* @__PURE__ */ x(
|
|
915
|
+
C,
|
|
914
916
|
{
|
|
915
917
|
alignItems: "flex-start",
|
|
916
|
-
background:
|
|
918
|
+
background: Or(n),
|
|
917
919
|
borderColor: ia(n),
|
|
918
920
|
shadow: "filterShadow",
|
|
919
921
|
gap: 3,
|
|
@@ -923,8 +925,8 @@ const Lr = (e) => {
|
|
|
923
925
|
...c,
|
|
924
926
|
children: [
|
|
925
927
|
/* @__PURE__ */ r(la, { height: "2rem", shrink: 0, $variant: n, width: "2rem", children: /* @__PURE__ */ r(ca, { "aria-hidden": !0, variant: n }) }),
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
|
|
928
|
+
/* @__PURE__ */ x(
|
|
929
|
+
C,
|
|
928
930
|
{
|
|
929
931
|
alignItems: "start",
|
|
930
932
|
gap: l ? 2 : 1,
|
|
@@ -957,7 +959,7 @@ const Lr = (e) => {
|
|
|
957
959
|
);
|
|
958
960
|
function de({ prop: e, defaultProp: t, onChange: n = () => {
|
|
959
961
|
} }) {
|
|
960
|
-
const [o, a] =
|
|
962
|
+
const [o, a] = Lr({ defaultProp: t, onChange: n }), i = e !== void 0, l = i ? e : o, c = br(n), d = s.useCallback(
|
|
961
963
|
(h) => {
|
|
962
964
|
if (i) {
|
|
963
965
|
const g = typeof h == "function" ? h(e) : h;
|
|
@@ -969,8 +971,8 @@ function de({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
969
971
|
);
|
|
970
972
|
return [l, d];
|
|
971
973
|
}
|
|
972
|
-
function
|
|
973
|
-
const n = s.useState(e), [o] = n, a = s.useRef(o), i =
|
|
974
|
+
function Lr({ defaultProp: e, onChange: t }) {
|
|
975
|
+
const n = s.useState(e), [o] = n, a = s.useRef(o), i = br(t);
|
|
974
976
|
return s.useEffect(() => {
|
|
975
977
|
a.current !== o && (i(o), a.current = o);
|
|
976
978
|
}, [o, a, i]), n;
|
|
@@ -1118,12 +1120,12 @@ const xt = {
|
|
|
1118
1120
|
({ onLoadingStatusChange: e, delayMs: t = 600, src: n, alt: o, crossOrigin: a, fallback: i, preview: l = !1, ...c }, d) => {
|
|
1119
1121
|
const [h, f] = de({
|
|
1120
1122
|
onChange: e
|
|
1121
|
-
}), [g, p] = s.useState(!1),
|
|
1122
|
-
|
|
1123
|
+
}), [g, p] = s.useState(!1), v = l && h === "loaded", m = ($) => {
|
|
1124
|
+
v && p($);
|
|
1123
1125
|
};
|
|
1124
|
-
return /* @__PURE__ */
|
|
1125
|
-
/* @__PURE__ */ r(me.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
1126
|
-
|
|
1126
|
+
return /* @__PURE__ */ x(me.Root, { onOpenChange: m, children: [
|
|
1127
|
+
/* @__PURE__ */ r(me.Trigger, { asChild: !0, children: /* @__PURE__ */ x(yt, { ref: d, ...c, children: [
|
|
1128
|
+
v ? /* @__PURE__ */ r(
|
|
1127
1129
|
fa,
|
|
1128
1130
|
{
|
|
1129
1131
|
width: "100%",
|
|
@@ -1137,10 +1139,10 @@ const xt = {
|
|
|
1137
1139
|
/* @__PURE__ */ r(ga, { src: n, alt: o, crossOrigin: a, onLoadingStatusChange: f }),
|
|
1138
1140
|
/* @__PURE__ */ r(Et.Fallback, { delayMs: t, children: /* @__PURE__ */ r(A, { fontWeight: "bold", textTransform: "uppercase", children: i }) })
|
|
1139
1141
|
] }) }),
|
|
1140
|
-
|
|
1142
|
+
v ? /* @__PURE__ */ r(me.Portal, { children: /* @__PURE__ */ r(pa, { side: "top", sideOffset: 4, children: /* @__PURE__ */ r(ma, { src: n, alt: o, crossOrigin: a }) }) }) : null
|
|
1141
1143
|
] });
|
|
1142
1144
|
}
|
|
1143
|
-
),
|
|
1145
|
+
), Pr = T`
|
|
1144
1146
|
display: inline-flex;
|
|
1145
1147
|
align-items: center;
|
|
1146
1148
|
justify-content: center;
|
|
@@ -1149,7 +1151,7 @@ const xt = {
|
|
|
1149
1151
|
user-select: none;
|
|
1150
1152
|
overflow: hidden;
|
|
1151
1153
|
border-radius: 50%;
|
|
1152
|
-
`,
|
|
1154
|
+
`, Mr = T`
|
|
1153
1155
|
width: 100%;
|
|
1154
1156
|
height: 100%;
|
|
1155
1157
|
object-fit: cover;
|
|
@@ -1157,7 +1159,7 @@ const xt = {
|
|
|
1157
1159
|
`, yt = u(Et.Root)`
|
|
1158
1160
|
position: relative;
|
|
1159
1161
|
z-index: 0;
|
|
1160
|
-
${
|
|
1162
|
+
${Pr}
|
|
1161
1163
|
width: ${Ue / 10}rem;
|
|
1162
1164
|
height: ${Ue / 10}rem;
|
|
1163
1165
|
/* TODO: we should get the user email & hash it to turn it into a hex-value so different emails can consistently get a different background */
|
|
@@ -1169,9 +1171,9 @@ const xt = {
|
|
|
1169
1171
|
${(e) => e.theme.motion.easings.authenticMotion};
|
|
1170
1172
|
}
|
|
1171
1173
|
`, ga = u(Et.Image)`
|
|
1172
|
-
${Br}
|
|
1173
|
-
`, pa = u(me.Content)`
|
|
1174
1174
|
${Mr}
|
|
1175
|
+
`, pa = u(me.Content)`
|
|
1176
|
+
${Pr}
|
|
1175
1177
|
width: ${Ue * Zt / 10}rem;
|
|
1176
1178
|
height: ${Ue * Zt / 10}rem;
|
|
1177
1179
|
|
|
@@ -1180,8 +1182,8 @@ const xt = {
|
|
|
1180
1182
|
${(e) => e.theme.motion.easings.authenticMotion};
|
|
1181
1183
|
}
|
|
1182
1184
|
`, ma = u.img`
|
|
1183
|
-
${
|
|
1184
|
-
`, ba = s.forwardRef((e, t) => /* @__PURE__ */ r($a, { ...e, ref: t, tag: "div" })), $a = u(
|
|
1185
|
+
${Mr}
|
|
1186
|
+
`, ba = s.forwardRef((e, t) => /* @__PURE__ */ r($a, { ...e, ref: t, tag: "div" })), $a = u(C)`
|
|
1185
1187
|
& > ${yt} + ${yt} {
|
|
1186
1188
|
margin-left: -${Ue / 10 / 2}rem;
|
|
1187
1189
|
}
|
|
@@ -1189,7 +1191,7 @@ const xt = {
|
|
|
1189
1191
|
__proto__: null,
|
|
1190
1192
|
Group: ba,
|
|
1191
1193
|
Item: ha
|
|
1192
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1194
|
+
}, Symbol.toStringTag, { value: "Module" })), Br = ({
|
|
1193
1195
|
active: e = !1,
|
|
1194
1196
|
size: t = "M",
|
|
1195
1197
|
textColor: n = "neutral600",
|
|
@@ -1221,7 +1223,7 @@ const xt = {
|
|
|
1221
1223
|
children: /* @__PURE__ */ r(A, { variant: "sigma", textColor: e ? "primary600" : h.textColor, lineHeight: "1rem", children: i })
|
|
1222
1224
|
}
|
|
1223
1225
|
);
|
|
1224
|
-
}, xa = u(
|
|
1226
|
+
}, xa = u(C)`
|
|
1225
1227
|
border-radius: ${({ theme: e, $size: t }) => t === "S" ? "2px" : e.borderRadius};
|
|
1226
1228
|
${({ $size: e, theme: t }) => e === "S" ? T`
|
|
1227
1229
|
padding-block: 0.3rem;
|
|
@@ -1252,9 +1254,9 @@ const xt = {
|
|
|
1252
1254
|
...o
|
|
1253
1255
|
}
|
|
1254
1256
|
)
|
|
1255
|
-
),
|
|
1256
|
-
|
|
1257
|
-
const ya = u(
|
|
1257
|
+
), Nr = () => /* @__PURE__ */ r(S, { "aria-hidden": !0, paddingLeft: 1, paddingRight: 1, children: /* @__PURE__ */ r(A, { variant: "pi", textColor: "neutral500", children: "/" }) });
|
|
1258
|
+
Nr.displayName = "Divider";
|
|
1259
|
+
const ya = u(C)`
|
|
1258
1260
|
// CrumbLinks do have padding-x, because they need to have a
|
|
1259
1261
|
// interaction effect, which mis-aligns the breadcrumbs on the left.
|
|
1260
1262
|
// This normalizes the behavior by moving the first item to left by
|
|
@@ -1267,9 +1269,9 @@ const ya = u(v)`
|
|
|
1267
1269
|
const a = s.Children.toArray(t);
|
|
1268
1270
|
return /* @__PURE__ */ r(S, { "aria-label": e, tag: "nav", ...n, ref: o, children: /* @__PURE__ */ r(ya, { tag: "ol", children: s.Children.map(a, (i, l) => {
|
|
1269
1271
|
const c = a.length > 1 && l + 1 < a.length;
|
|
1270
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ x(C, { inline: !0, tag: "li", children: [
|
|
1271
1273
|
i,
|
|
1272
|
-
c && /* @__PURE__ */ r(
|
|
1274
|
+
c && /* @__PURE__ */ r(Nr, {})
|
|
1273
1275
|
] });
|
|
1274
1276
|
}) }) });
|
|
1275
1277
|
}
|
|
@@ -1308,18 +1310,18 @@ const Pe = (e) => e.replaceAll(":", "");
|
|
|
1308
1310
|
function Ra(e, t) {
|
|
1309
1311
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
1310
1312
|
}
|
|
1311
|
-
function
|
|
1313
|
+
function Wr(...e) {
|
|
1312
1314
|
return (t) => e.forEach((n) => Ra(n, t));
|
|
1313
1315
|
}
|
|
1314
1316
|
function te(...e) {
|
|
1315
|
-
return s.useCallback(
|
|
1317
|
+
return s.useCallback(Wr(...e), e);
|
|
1316
1318
|
}
|
|
1317
1319
|
function re(e) {
|
|
1318
|
-
const t =
|
|
1320
|
+
const t = _n();
|
|
1319
1321
|
return (e == null ? void 0 : e.toString()) ?? t;
|
|
1320
1322
|
}
|
|
1321
1323
|
const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
1322
|
-
const a =
|
|
1324
|
+
const a = wr(t);
|
|
1323
1325
|
s.useEffect(() => {
|
|
1324
1326
|
if (o || !e.current) return;
|
|
1325
1327
|
const i = {
|
|
@@ -1334,12 +1336,12 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1334
1336
|
c.disconnect();
|
|
1335
1337
|
};
|
|
1336
1338
|
}, [o, a, n, e]);
|
|
1337
|
-
}, Ot = "success-light", Lt = "danger-light", ot = "default", Ye = "tertiary", Qe = "secondary",
|
|
1339
|
+
}, Ot = "success-light", Lt = "danger-light", ot = "default", Ye = "tertiary", Qe = "secondary", Fr = "danger", Hr = "success", at = "ghost", Pt = [Ot, Lt], Ta = [ot, Ye, Qe, Fr, Hr, at, ...Pt], Ia = ["XS", "S", "M", "L"], ae = (e) => e === Ot || e === Lt ? `${e.substring(0, e.lastIndexOf("-"))}` : e === Ye ? "neutral" : e === ot || e === Qe || Ta.every((t) => t !== e) ? "primary" : `${e}`, Vr = ({ theme: e }) => T`
|
|
1338
1340
|
border: 1px solid ${e.colors.neutral200};
|
|
1339
1341
|
background: ${e.colors.neutral150};
|
|
1340
1342
|
color: ${e.colors.neutral600};
|
|
1341
1343
|
cursor: default;
|
|
1342
|
-
`,
|
|
1344
|
+
`, jr = ({ theme: e, $variant: t }) => [...Pt, Qe].includes(t) ? T`
|
|
1343
1345
|
background-color: ${e.colors.neutral0};
|
|
1344
1346
|
` : t === Ye ? T`
|
|
1345
1347
|
background-color: ${e.colors.neutral100};
|
|
@@ -1351,7 +1353,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1351
1353
|
` : T`
|
|
1352
1354
|
border: 1px solid ${e.colors[`${ae(t)}500`]};
|
|
1353
1355
|
background: ${e.colors[`${ae(t)}500`]};
|
|
1354
|
-
`,
|
|
1356
|
+
`, _r = ({ theme: e, $variant: t }) => [...Pt, Qe].includes(t) ? T`
|
|
1355
1357
|
background-color: ${e.colors.neutral0};
|
|
1356
1358
|
border: 1px solid ${e.colors[`${ae(t)}600`]};
|
|
1357
1359
|
color: ${e.colors[`${ae(t)}600`]};
|
|
@@ -1360,7 +1362,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1360
1362
|
` : T`
|
|
1361
1363
|
border: 1px solid ${e.colors[`${ae(t)}600`]};
|
|
1362
1364
|
background: ${e.colors[`${ae(t)}600`]};
|
|
1363
|
-
`,
|
|
1365
|
+
`, Ur = ({ theme: e, $variant: t }) => {
|
|
1364
1366
|
switch (t) {
|
|
1365
1367
|
case Lt:
|
|
1366
1368
|
case Ot:
|
|
@@ -1386,8 +1388,8 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1386
1388
|
fill: ${e.colors.neutral500};
|
|
1387
1389
|
}
|
|
1388
1390
|
`;
|
|
1389
|
-
case Vr:
|
|
1390
1391
|
case Hr:
|
|
1392
|
+
case Fr:
|
|
1391
1393
|
return T`
|
|
1392
1394
|
border: 1px solid ${e.colors[`${ae(t)}600`]};
|
|
1393
1395
|
background: ${e.colors[`${ae(t)}600`]};
|
|
@@ -1414,10 +1416,10 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1414
1416
|
type: h = "button",
|
|
1415
1417
|
...f
|
|
1416
1418
|
}, g) => {
|
|
1417
|
-
const p = o || c,
|
|
1419
|
+
const p = o || c, v = (R) => {
|
|
1418
1420
|
!p && i && i(R);
|
|
1419
1421
|
}, m = f.tag ?? "button";
|
|
1420
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ x(
|
|
1421
1423
|
Aa,
|
|
1422
1424
|
{
|
|
1423
1425
|
ref: g,
|
|
@@ -1426,7 +1428,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1426
1428
|
$size: l,
|
|
1427
1429
|
$variant: e,
|
|
1428
1430
|
tag: "button",
|
|
1429
|
-
onClick:
|
|
1431
|
+
onClick: v,
|
|
1430
1432
|
hasRadius: !0,
|
|
1431
1433
|
gap: 2,
|
|
1432
1434
|
inline: !0,
|
|
@@ -1439,9 +1441,9 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1439
1441
|
type: m === "button" || m === "input" ? h : void 0,
|
|
1440
1442
|
...f,
|
|
1441
1443
|
children: [
|
|
1442
|
-
(t || c) && /* @__PURE__ */ r(
|
|
1444
|
+
(t || c) && /* @__PURE__ */ r(C, { tag: "span", "aria-hidden": !0, children: c ? /* @__PURE__ */ r(Ea, {}) : t }),
|
|
1443
1445
|
/* @__PURE__ */ r(A, { variant: l === "S" ? "pi" : void 0, fontWeight: "bold", children: a }),
|
|
1444
|
-
n && /* @__PURE__ */ r(
|
|
1446
|
+
n && /* @__PURE__ */ r(C, { tag: "span", "aria-hidden": !0, children: n })
|
|
1445
1447
|
]
|
|
1446
1448
|
}
|
|
1447
1449
|
);
|
|
@@ -1453,10 +1455,10 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1453
1455
|
to {
|
|
1454
1456
|
transform: rotate(359deg);
|
|
1455
1457
|
}
|
|
1456
|
-
`, Ea = u(
|
|
1458
|
+
`, Ea = u(yr)`
|
|
1457
1459
|
animation: ${Da} 2s infinite linear;
|
|
1458
1460
|
will-change: transform;
|
|
1459
|
-
`, Aa = u(
|
|
1461
|
+
`, Aa = u(C)`
|
|
1460
1462
|
${({ theme: e, $size: t }) => {
|
|
1461
1463
|
const n = e.sizes.button[t];
|
|
1462
1464
|
if (typeof n == "string")
|
|
@@ -1475,18 +1477,18 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1475
1477
|
`);
|
|
1476
1478
|
}}
|
|
1477
1479
|
text-decoration: none;
|
|
1478
|
-
${
|
|
1480
|
+
${Ur}
|
|
1479
1481
|
|
|
1480
1482
|
&:hover {
|
|
1481
|
-
${
|
|
1483
|
+
${jr}
|
|
1482
1484
|
}
|
|
1483
1485
|
|
|
1484
1486
|
&:active {
|
|
1485
|
-
${
|
|
1487
|
+
${_r}
|
|
1486
1488
|
}
|
|
1487
1489
|
|
|
1488
1490
|
&[aria-disabled='true'] {
|
|
1489
|
-
${
|
|
1491
|
+
${Vr}
|
|
1490
1492
|
}
|
|
1491
1493
|
|
|
1492
1494
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -1506,7 +1508,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1506
1508
|
delayDuration: l = 500,
|
|
1507
1509
|
disableHoverableContent: c,
|
|
1508
1510
|
...d
|
|
1509
|
-
}, h) => !n && !t ? e : /* @__PURE__ */
|
|
1511
|
+
}, h) => !n && !t ? e : /* @__PURE__ */ x(
|
|
1510
1512
|
me.Root,
|
|
1511
1513
|
{
|
|
1512
1514
|
defaultOpen: o,
|
|
@@ -1560,8 +1562,8 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1560
1562
|
...h,
|
|
1561
1563
|
ref: f,
|
|
1562
1564
|
$size: i,
|
|
1563
|
-
onClick: (
|
|
1564
|
-
!o && a && a(
|
|
1565
|
+
onClick: (v) => {
|
|
1566
|
+
!o && a && a(v);
|
|
1565
1567
|
},
|
|
1566
1568
|
$variant: l,
|
|
1567
1569
|
type: d,
|
|
@@ -1570,7 +1572,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1570
1572
|
);
|
|
1571
1573
|
return c ? /* @__PURE__ */ r(Mt, { label: e, children: p }) : p;
|
|
1572
1574
|
}
|
|
1573
|
-
), je = u(
|
|
1575
|
+
), je = u(C)`
|
|
1574
1576
|
text-decoration: none;
|
|
1575
1577
|
|
|
1576
1578
|
${(e) => {
|
|
@@ -1617,24 +1619,24 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1617
1619
|
`;
|
|
1618
1620
|
}
|
|
1619
1621
|
}}
|
|
1620
|
-
${
|
|
1622
|
+
${Ur}
|
|
1621
1623
|
${(e) => e.$variant === "tertiary" ? T`
|
|
1622
1624
|
color: ${e.theme.colors.neutral500};
|
|
1623
1625
|
` : ""}
|
|
1624
1626
|
|
|
1625
1627
|
&:hover {
|
|
1626
|
-
${
|
|
1628
|
+
${jr}
|
|
1627
1629
|
${(e) => e.$variant === "tertiary" ? T`
|
|
1628
1630
|
color: ${e.theme.colors.neutral600};
|
|
1629
1631
|
` : ""}
|
|
1630
1632
|
}
|
|
1631
1633
|
|
|
1632
1634
|
&:active {
|
|
1633
|
-
${
|
|
1635
|
+
${_r}
|
|
1634
1636
|
}
|
|
1635
1637
|
|
|
1636
1638
|
&[aria-disabled='true'] {
|
|
1637
|
-
${
|
|
1639
|
+
${Vr}
|
|
1638
1640
|
}
|
|
1639
1641
|
|
|
1640
1642
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -1643,7 +1645,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1643
1645
|
${(e) => e.theme.transitions.color},
|
|
1644
1646
|
border-color ${(e) => e.theme.motion.timings[200]} ${(e) => e.theme.motion.easings.easeOutQuad};
|
|
1645
1647
|
}
|
|
1646
|
-
`, fd = u(
|
|
1648
|
+
`, fd = u(C)`
|
|
1647
1649
|
& ${je}:first-child {
|
|
1648
1650
|
border-radius: ${({ theme: e }) => `${e.borderRadius} 0 0 ${e.borderRadius}`};
|
|
1649
1651
|
}
|
|
@@ -1670,7 +1672,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1670
1672
|
color: l = "primary600",
|
|
1671
1673
|
activeColor: c = "primary700",
|
|
1672
1674
|
...d
|
|
1673
|
-
}, h) => /* @__PURE__ */
|
|
1675
|
+
}, h) => /* @__PURE__ */ x(
|
|
1674
1676
|
La,
|
|
1675
1677
|
{
|
|
1676
1678
|
ref: h,
|
|
@@ -1751,8 +1753,8 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1751
1753
|
), Na = s.forwardRef(
|
|
1752
1754
|
({ children: e, intersectionId: t, onCloseAutoFocus: n, popoverPlacement: o = "bottom-start", ...a }, i) => {
|
|
1753
1755
|
const [l, c] = o.split("-");
|
|
1754
|
-
return /* @__PURE__ */ r(se.Portal, { children: /* @__PURE__ */ r(Wa, { align: c, side: l, loop: !0, onCloseAutoFocus: n, asChild: !0, children: /* @__PURE__ */
|
|
1755
|
-
|
|
1756
|
+
return /* @__PURE__ */ r(se.Portal, { children: /* @__PURE__ */ r(Wa, { align: c, side: l, loop: !0, onCloseAutoFocus: n, asChild: !0, children: /* @__PURE__ */ x(
|
|
1757
|
+
Gr,
|
|
1756
1758
|
{
|
|
1757
1759
|
ref: i,
|
|
1758
1760
|
direction: "column",
|
|
@@ -1775,7 +1777,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1775
1777
|
}
|
|
1776
1778
|
) }) });
|
|
1777
1779
|
}
|
|
1778
|
-
),
|
|
1780
|
+
), Gr = u(C)`
|
|
1779
1781
|
scrollbar-width: none;
|
|
1780
1782
|
-ms-overflow-style: none;
|
|
1781
1783
|
-webkit-overflow-scrolling: touch;
|
|
@@ -1820,8 +1822,8 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1820
1822
|
$variant: l,
|
|
1821
1823
|
children: c.children
|
|
1822
1824
|
}
|
|
1823
|
-
) : /* @__PURE__ */
|
|
1824
|
-
|
|
1825
|
+
) : /* @__PURE__ */ x(
|
|
1826
|
+
Kr,
|
|
1825
1827
|
{
|
|
1826
1828
|
cursor: "pointer",
|
|
1827
1829
|
color: vt(l, t),
|
|
@@ -1831,12 +1833,12 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1831
1833
|
$variant: l,
|
|
1832
1834
|
...c,
|
|
1833
1835
|
children: [
|
|
1834
|
-
o && /* @__PURE__ */ r(
|
|
1836
|
+
o && /* @__PURE__ */ r(C, { tag: "span", color: _e(l, t), "aria-hidden": !0, children: o }),
|
|
1835
1837
|
/* @__PURE__ */ r(A, { grow: 1, children: c.children }),
|
|
1836
|
-
a && /* @__PURE__ */ r(
|
|
1838
|
+
a && /* @__PURE__ */ r(C, { tag: "span", color: _e(l, t), "aria-hidden": !0, children: a })
|
|
1837
1839
|
]
|
|
1838
1840
|
}
|
|
1839
|
-
) }),
|
|
1841
|
+
) }), qr = ({ theme: e, $variant: t }) => T`
|
|
1840
1842
|
text-align: left;
|
|
1841
1843
|
width: 100%;
|
|
1842
1844
|
border-radius: ${e.borderRadius};
|
|
@@ -1859,8 +1861,8 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1859
1861
|
}
|
|
1860
1862
|
|
|
1861
1863
|
color: ${e.colors[vt(t, !1)]};
|
|
1862
|
-
`,
|
|
1863
|
-
${({ theme: e, $variant: t }) =>
|
|
1864
|
+
`, Kr = u(C)`
|
|
1865
|
+
${({ theme: e, $variant: t }) => qr({ theme: e, $variant: t })}
|
|
1864
1866
|
`, Ha = u(Oa)`
|
|
1865
1867
|
/* We include this here again because typically when people use OptionLink they provide an as prop which cancels the Box props */
|
|
1866
1868
|
color: ${({ theme: e, color: t }) => Je(e.colors, t, void 0)};
|
|
@@ -1890,7 +1892,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1890
1892
|
}
|
|
1891
1893
|
}
|
|
1892
1894
|
|
|
1893
|
-
${({ theme: e, $variant: t }) =>
|
|
1895
|
+
${({ theme: e, $variant: t }) => qr({ theme: e, $variant: t })}
|
|
1894
1896
|
`, Va = u(S)`
|
|
1895
1897
|
/* Negative horizontal margin to compensate Menu.Content's padding */
|
|
1896
1898
|
margin: ${({ theme: e }) => e.spaces[1]} -${({ theme: e }) => e.spaces[1]};
|
|
@@ -1901,7 +1903,7 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1901
1903
|
}
|
|
1902
1904
|
`, ja = s.forwardRef((e, t) => /* @__PURE__ */ r(se.Separator, { ...e, asChild: !0, children: /* @__PURE__ */ r(Va, { height: "1px", shrink: 0, background: "neutral150", ref: t }) })), _a = s.forwardRef((e, t) => /* @__PURE__ */ r(se.Label, { asChild: !0, children: /* @__PURE__ */ r(Ua, { ref: t, variant: "sigma", textColor: "neutral600", ...e }) })), Ua = u(A)`
|
|
1903
1905
|
padding: ${({ theme: e }) => e.spaces[2]} ${({ theme: e }) => e.spaces[4]};
|
|
1904
|
-
`, Ga = se.Sub, qa = s.forwardRef(({ disabled: e = !1, ...t }, n) => /* @__PURE__ */ r(se.SubTrigger, { asChild: !0, disabled: e, children: /* @__PURE__ */
|
|
1906
|
+
`, Ga = se.Sub, qa = s.forwardRef(({ disabled: e = !1, ...t }, n) => /* @__PURE__ */ r(se.SubTrigger, { asChild: !0, disabled: e, children: /* @__PURE__ */ x(
|
|
1905
1907
|
Ka,
|
|
1906
1908
|
{
|
|
1907
1909
|
ref: n,
|
|
@@ -1917,12 +1919,12 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1917
1919
|
/* @__PURE__ */ r(Dt, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
|
|
1918
1920
|
]
|
|
1919
1921
|
}
|
|
1920
|
-
) })), Ka = u(
|
|
1922
|
+
) })), Ka = u(Kr)`
|
|
1921
1923
|
&[data-state='open'] {
|
|
1922
1924
|
background-color: ${({ theme: e }) => e.colors.primary100};
|
|
1923
1925
|
}
|
|
1924
1926
|
`, Ya = s.forwardRef((e, t) => /* @__PURE__ */ r(se.Portal, { children: /* @__PURE__ */ r(se.SubContent, { sideOffset: 8, asChild: !0, children: /* @__PURE__ */ r(
|
|
1925
|
-
|
|
1927
|
+
Gr,
|
|
1926
1928
|
{
|
|
1927
1929
|
ref: t,
|
|
1928
1930
|
direction: "column",
|
|
@@ -1938,37 +1940,37 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1938
1940
|
overflow: "auto",
|
|
1939
1941
|
...e
|
|
1940
1942
|
}
|
|
1941
|
-
) }) })),
|
|
1943
|
+
) }) })), Yr = Ma, Qr = Ba, Xr = Na, Zr = Fa, Qa = ja, Xa = _a, Za = Ga, Ja = qa, ei = Ya, gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1942
1944
|
__proto__: null,
|
|
1943
|
-
Content:
|
|
1944
|
-
Item:
|
|
1945
|
+
Content: Xr,
|
|
1946
|
+
Item: Zr,
|
|
1945
1947
|
Label: Xa,
|
|
1946
|
-
Root:
|
|
1948
|
+
Root: Yr,
|
|
1947
1949
|
Separator: Qa,
|
|
1948
1950
|
SubContent: ei,
|
|
1949
1951
|
SubRoot: Za,
|
|
1950
1952
|
SubTrigger: Ja,
|
|
1951
|
-
Trigger:
|
|
1953
|
+
Trigger: Qr
|
|
1952
1954
|
}, Symbol.toStringTag, { value: "Module" })), ti = s.forwardRef(
|
|
1953
1955
|
({ children: e, onOpen: t, onClose: n, popoverPlacement: o, onReachEnd: a, ...i }, l) => {
|
|
1954
1956
|
const c = s.useRef(null), d = te(l, c), h = s.useRef(null), [f, g] = s.useState(!1), p = (R) => {
|
|
1955
1957
|
a && a(R);
|
|
1956
|
-
},
|
|
1958
|
+
}, v = (R) => {
|
|
1957
1959
|
R && typeof t == "function" ? t() : !R && typeof n == "function" && n(), g(R);
|
|
1958
|
-
}, m = re(),
|
|
1960
|
+
}, m = re(), $ = `intersection-${Pe(m)}`;
|
|
1959
1961
|
return Ke(h, p, {
|
|
1960
|
-
selectorToWatch: `#${
|
|
1962
|
+
selectorToWatch: `#${$}`,
|
|
1961
1963
|
/**
|
|
1962
1964
|
* We need to know when the select is open because only then will viewportRef
|
|
1963
1965
|
* not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
|
|
1964
1966
|
*/
|
|
1965
1967
|
skipWhen: !f
|
|
1966
|
-
}), /* @__PURE__ */
|
|
1967
|
-
/* @__PURE__ */ r(
|
|
1968
|
-
/* @__PURE__ */ r(
|
|
1968
|
+
}), /* @__PURE__ */ x(Yr, { onOpenChange: v, children: [
|
|
1969
|
+
/* @__PURE__ */ r(Qr, { ref: d, ...i, children: i.label }),
|
|
1970
|
+
/* @__PURE__ */ r(Xr, { ref: h, intersectionId: $, popoverPlacement: o, children: e })
|
|
1969
1971
|
] });
|
|
1970
1972
|
}
|
|
1971
|
-
), pd =
|
|
1973
|
+
), pd = Zr, ri = u(ti)`
|
|
1972
1974
|
padding: ${({ theme: e }) => `${e.spaces[1]} ${e.spaces[2]}`};
|
|
1973
1975
|
height: unset;
|
|
1974
1976
|
|
|
@@ -1980,9 +1982,9 @@ const Ke = (e, t, { selectorToWatch: n, skipWhen: o = !1 }) => {
|
|
|
1980
1982
|
({ children: e, ...t }, n) => /* @__PURE__ */ r(ri, { ref: n, endIcon: null, size: "S", ...t, children: e })
|
|
1981
1983
|
);
|
|
1982
1984
|
ni.displayName = "CrumbSimpleMenu";
|
|
1983
|
-
const
|
|
1985
|
+
const Jr = s.createContext({ id: "" }), en = () => s.useContext(Jr), md = s.forwardRef(({ id: e, ...t }, n) => {
|
|
1984
1986
|
const o = re(e), a = s.useMemo(() => ({ id: o }), [o]);
|
|
1985
|
-
return /* @__PURE__ */ r(
|
|
1987
|
+
return /* @__PURE__ */ r(Jr.Provider, { value: a, children: /* @__PURE__ */ r(
|
|
1986
1988
|
S,
|
|
1987
1989
|
{
|
|
1988
1990
|
ref: n,
|
|
@@ -1999,7 +2001,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
1999
2001
|
...t
|
|
2000
2002
|
}
|
|
2001
2003
|
) });
|
|
2002
|
-
}), oi = s.forwardRef(({ position: e, ...t }, n) => /* @__PURE__ */ r(ai, { ref: n, $position: e, ...t, direction: "row", gap: 2 })), ai = u(
|
|
2004
|
+
}), oi = s.forwardRef(({ position: e, ...t }, n) => /* @__PURE__ */ r(ai, { ref: n, $position: e, ...t, direction: "row", gap: 2 })), ai = u(C)`
|
|
2003
2005
|
position: absolute;
|
|
2004
2006
|
top: ${({ theme: e }) => e.spaces[3]};
|
|
2005
2007
|
right: ${({ $position: e, theme: t }) => {
|
|
@@ -2031,10 +2033,10 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2031
2033
|
`, li = u.div`
|
|
2032
2034
|
margin-left: auto;
|
|
2033
2035
|
flex-shrink: 0;
|
|
2034
|
-
`, ci = u(
|
|
2036
|
+
`, ci = u(Br)`
|
|
2035
2037
|
margin-left: ${({ theme: e }) => e.spaces[1]};
|
|
2036
|
-
`, $d = (e) => /* @__PURE__ */ r(li, { children: /* @__PURE__ */ r(ci, { ...e }) }), xd = (e) => /* @__PURE__ */ r(S, { paddingLeft: 3, paddingRight: 3, paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ r(
|
|
2037
|
-
const { colors: n } =
|
|
2038
|
+
`, $d = (e) => /* @__PURE__ */ r(li, { children: /* @__PURE__ */ r(ci, { ...e }) }), xd = (e) => /* @__PURE__ */ r(S, { paddingLeft: 3, paddingRight: 3, paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ r(C, { ...e, alignItems: "flex-start" }) }), di = ({ fill: e, ...t }) => {
|
|
2039
|
+
const { colors: n } = Hn();
|
|
2038
2040
|
return /* @__PURE__ */ r(
|
|
2039
2041
|
S,
|
|
2040
2042
|
{
|
|
@@ -2053,12 +2055,12 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2053
2055
|
prop: t,
|
|
2054
2056
|
onChange: n
|
|
2055
2057
|
}), d = te(i, a);
|
|
2056
|
-
return /* @__PURE__ */ r(ui, { ref: d, checked: l, onCheckedChange: c, ...o, children: /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ r(ui, { ref: d, checked: l, onCheckedChange: c, ...o, children: /* @__PURE__ */ x(hi, { forceMount: !0, children: [
|
|
2057
2059
|
l === !0 ? /* @__PURE__ */ r(di, { width: "1.6rem", fill: "neutral0" }) : null,
|
|
2058
2060
|
l === "indeterminate" ? /* @__PURE__ */ r(uo, { fill: "neutral0" }) : null
|
|
2059
2061
|
] }) });
|
|
2060
2062
|
}
|
|
2061
|
-
), ui = u(
|
|
2063
|
+
), ui = u(kr.Root)`
|
|
2062
2064
|
background: ${(e) => e.theme.colors.neutral0};
|
|
2063
2065
|
width: 2rem;
|
|
2064
2066
|
height: 2rem;
|
|
@@ -2095,7 +2097,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2095
2097
|
min-width: 44px;
|
|
2096
2098
|
min-height: 44px;
|
|
2097
2099
|
}
|
|
2098
|
-
`, hi = u(
|
|
2100
|
+
`, hi = u(kr.Indicator)`
|
|
2099
2101
|
display: inline-flex;
|
|
2100
2102
|
pointer-events: auto !important;
|
|
2101
2103
|
width: 100%;
|
|
@@ -2109,16 +2111,16 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2109
2111
|
}
|
|
2110
2112
|
`, Bt = s.forwardRef(({ children: e, ...t }, n) => {
|
|
2111
2113
|
const o = re(t.id);
|
|
2112
|
-
return e ? /* @__PURE__ */
|
|
2114
|
+
return e ? /* @__PURE__ */ x(C, { gap: 2, children: [
|
|
2113
2115
|
/* @__PURE__ */ r(Jt, { id: o, ...t }),
|
|
2114
2116
|
/* @__PURE__ */ r(A, { tag: "label", textColor: "neutral800", htmlFor: o, children: e })
|
|
2115
2117
|
] }) : /* @__PURE__ */ r(Jt, { ref: n, ...t });
|
|
2116
2118
|
}), wd = s.forwardRef((e, t) => {
|
|
2117
|
-
const { id: n } =
|
|
2119
|
+
const { id: n } = en();
|
|
2118
2120
|
return /* @__PURE__ */ r(oi, { position: "start", children: /* @__PURE__ */ r(Bt, { "aria-labelledby": `${n}-title`, ...e, ref: t }) });
|
|
2119
2121
|
}), fi = u(S)`
|
|
2120
2122
|
word-break: break-all;
|
|
2121
|
-
`, yd = ({ children: e, ...t }) => /* @__PURE__ */ r(fi, { ...t, children: e }), gi = u(
|
|
2123
|
+
`, yd = ({ children: e, ...t }) => /* @__PURE__ */ r(fi, { ...t, children: e }), gi = u(C)`
|
|
2122
2124
|
border-bottom: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
2123
2125
|
`, Cd = (e) => /* @__PURE__ */ r(gi, { position: "relative", justifyContent: "center", ...e }), vd = ({ children: e, ...t }) => /* @__PURE__ */ r(
|
|
2124
2126
|
S,
|
|
@@ -2135,7 +2137,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2135
2137
|
children: /* @__PURE__ */ r(A, { variant: "pi", textColor: "neutral0", children: e })
|
|
2136
2138
|
}
|
|
2137
2139
|
), kd = (e) => {
|
|
2138
|
-
const { id: t } =
|
|
2140
|
+
const { id: t } = en();
|
|
2139
2141
|
return /* @__PURE__ */ r(A, { variant: "pi", id: `${t}-title`, textColor: "neutral800", fontWeight: "bold", tag: "div", ...e });
|
|
2140
2142
|
}, Sd = (e) => /* @__PURE__ */ r(A, { variant: "pi", ...e, textColor: "neutral600", tag: "div" }), F = {
|
|
2141
2143
|
DOWN: "ArrowDown",
|
|
@@ -2156,7 +2158,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2156
2158
|
}, pi = u(S)`
|
|
2157
2159
|
grid-template-columns: auto 1fr auto;
|
|
2158
2160
|
grid-template-areas: 'startAction slides endAction';
|
|
2159
|
-
`, mi = u(
|
|
2161
|
+
`, mi = u(C)`
|
|
2160
2162
|
grid-area: slides;
|
|
2161
2163
|
`, er = u(S)`
|
|
2162
2164
|
grid-area: ${({ $area: e }) => e};
|
|
@@ -2167,23 +2169,23 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2167
2169
|
}
|
|
2168
2170
|
`, bi = s.forwardRef(
|
|
2169
2171
|
({ actions: e, children: t, label: n, nextLabel: o, onNext: a, onPrevious: i, previousLabel: l, secondaryLabel: c, selectedSlide: d, ...h }, f) => {
|
|
2170
|
-
const g = s.useRef(null), p = s.useRef(null),
|
|
2172
|
+
const g = s.useRef(null), p = s.useRef(null), v = s.Children.map(
|
|
2171
2173
|
t,
|
|
2172
|
-
(
|
|
2174
|
+
($, R) => s.cloneElement($, { selected: R === d })
|
|
2173
2175
|
);
|
|
2174
|
-
return /* @__PURE__ */ r(S, { ref: f, ...h, onKeyDown: (
|
|
2175
|
-
switch (
|
|
2176
|
+
return /* @__PURE__ */ r(S, { ref: f, ...h, onKeyDown: ($) => {
|
|
2177
|
+
switch ($.key) {
|
|
2176
2178
|
case F.RIGHT: {
|
|
2177
|
-
|
|
2179
|
+
$.preventDefault(), p != null && p.current && p.current.focus(), a && a();
|
|
2178
2180
|
break;
|
|
2179
2181
|
}
|
|
2180
2182
|
case F.LEFT: {
|
|
2181
|
-
|
|
2183
|
+
$.preventDefault(), g != null && g.current && g.current.focus(), i && i();
|
|
2182
2184
|
break;
|
|
2183
2185
|
}
|
|
2184
2186
|
}
|
|
2185
|
-
}, children: /* @__PURE__ */
|
|
2186
|
-
/* @__PURE__ */
|
|
2187
|
+
}, children: /* @__PURE__ */ x(S, { padding: 2, borderColor: "neutral200", hasRadius: !0, background: "neutral100", children: [
|
|
2188
|
+
/* @__PURE__ */ x(
|
|
2187
2189
|
pi,
|
|
2188
2190
|
{
|
|
2189
2191
|
tag: "section",
|
|
@@ -2192,16 +2194,16 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2192
2194
|
display: "grid",
|
|
2193
2195
|
position: "relative",
|
|
2194
2196
|
children: [
|
|
2195
|
-
|
|
2196
|
-
/* @__PURE__ */ r(er, { tag: "button", onClick: i, $area: "startAction", ref: g, type: "button", children: /* @__PURE__ */ r(Le, { label: l, children: /* @__PURE__ */ r(
|
|
2197
|
+
v && v.length > 1 && /* @__PURE__ */ x(It, { children: [
|
|
2198
|
+
/* @__PURE__ */ r(er, { tag: "button", onClick: i, $area: "startAction", ref: g, type: "button", children: /* @__PURE__ */ r(Le, { label: l, children: /* @__PURE__ */ r(Cr, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
|
|
2197
2199
|
/* @__PURE__ */ r(er, { tag: "button", onClick: a, $area: "endAction", ref: p, type: "button", children: /* @__PURE__ */ r(Le, { label: o, children: /* @__PURE__ */ r(Dt, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
|
|
2198
2200
|
] }),
|
|
2199
|
-
/* @__PURE__ */ r(mi, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children:
|
|
2201
|
+
/* @__PURE__ */ r(mi, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: v }),
|
|
2200
2202
|
e
|
|
2201
2203
|
]
|
|
2202
2204
|
}
|
|
2203
2205
|
),
|
|
2204
|
-
c && /* @__PURE__ */ r(S, { paddingTop: 2, paddingLeft: 4, paddingRight: 4, children: /* @__PURE__ */ r(Mt, { label: c, children: /* @__PURE__ */ r(
|
|
2206
|
+
c && /* @__PURE__ */ r(S, { paddingTop: 2, paddingLeft: 4, paddingRight: 4, children: /* @__PURE__ */ r(Mt, { label: c, children: /* @__PURE__ */ r(C, { justifyContent: "center", children: /* @__PURE__ */ r(A, { variant: "pi", textColor: "neutral600", ellipsis: !0, children: c }) }) }) })
|
|
2205
2207
|
] }) });
|
|
2206
2208
|
}
|
|
2207
2209
|
), $i = {
|
|
@@ -2223,7 +2225,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2223
2225
|
medium: "4rem"
|
|
2224
2226
|
}
|
|
2225
2227
|
}
|
|
2226
|
-
},
|
|
2228
|
+
}, tn = {
|
|
2227
2229
|
sizes: $i,
|
|
2228
2230
|
zIndices: {
|
|
2229
2231
|
navigation: 100,
|
|
@@ -2310,11 +2312,11 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2310
2312
|
popupShadow: "0px 2px 15px rgba(33, 33, 52, 0.1)",
|
|
2311
2313
|
tableShadow: "0px 1px 4px rgba(33, 33, 52, 0.1)"
|
|
2312
2314
|
}
|
|
2313
|
-
},
|
|
2315
|
+
}, rn = {
|
|
2314
2316
|
colorScheme: "light",
|
|
2315
2317
|
colors: xi.color,
|
|
2316
2318
|
shadows: wi.shadow,
|
|
2317
|
-
...
|
|
2319
|
+
...tn
|
|
2318
2320
|
}, yi = {
|
|
2319
2321
|
color: {
|
|
2320
2322
|
alternative100: "#181826",
|
|
@@ -2375,7 +2377,7 @@ const en = s.createContext({ id: "" }), tn = () => s.useContext(en), md = s.forw
|
|
|
2375
2377
|
colorScheme: "dark",
|
|
2376
2378
|
colors: yi.color,
|
|
2377
2379
|
shadows: Ci.shadow,
|
|
2378
|
-
...
|
|
2380
|
+
...tn
|
|
2379
2381
|
}, tr = (e) => `
|
|
2380
2382
|
${e}
|
|
2381
2383
|
|
|
@@ -2385,7 +2387,7 @@ The following is an example:
|
|
|
2385
2387
|
import { lightTheme, extendTheme } from '@strapi/design-system';
|
|
2386
2388
|
|
|
2387
2389
|
const myCustomTheme = extendTheme(lightTheme, {
|
|
2388
|
-
${Object.keys(
|
|
2390
|
+
${Object.keys(rn).map((t) => `${t}: /* put the overrides for the ${t} key */,`).join(`
|
|
2389
2391
|
`)}
|
|
2390
2392
|
})
|
|
2391
2393
|
`, Td = (e, t) => {
|
|
@@ -2432,14 +2434,14 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2432
2434
|
required: i,
|
|
2433
2435
|
labelNode: h,
|
|
2434
2436
|
setLabelNode: f,
|
|
2435
|
-
children: /* @__PURE__ */ r(
|
|
2437
|
+
children: /* @__PURE__ */ r(C, { direction: "column", alignItems: "stretch", gap: 1, ref: c, ...l, children: e })
|
|
2436
2438
|
}
|
|
2437
2439
|
);
|
|
2438
2440
|
}
|
|
2439
2441
|
), Nt = s.forwardRef(({ children: e, action: t, ...n }, o) => {
|
|
2440
2442
|
const { id: a, required: i, setLabelNode: l } = ne("Label"), c = te(o, l);
|
|
2441
|
-
return e ? /* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
+
return e ? /* @__PURE__ */ x(C, { alignItems: "center", children: [
|
|
2444
|
+
/* @__PURE__ */ x(
|
|
2443
2445
|
ki,
|
|
2444
2446
|
{
|
|
2445
2447
|
ref: c,
|
|
@@ -2461,7 +2463,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2461
2463
|
] }) : null;
|
|
2462
2464
|
}), ki = u(A)`
|
|
2463
2465
|
display: block;
|
|
2464
|
-
`, Si = u(
|
|
2466
|
+
`, Si = u(C)`
|
|
2465
2467
|
line-height: 0;
|
|
2466
2468
|
color: ${({ theme: e }) => e.colors.neutral500};
|
|
2467
2469
|
`, it = s.forwardRef(
|
|
@@ -2476,21 +2478,21 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2476
2478
|
size: c = "M",
|
|
2477
2479
|
...d
|
|
2478
2480
|
}, h) => {
|
|
2479
|
-
const { id: f, error: g, hint: p, name:
|
|
2480
|
-
let
|
|
2481
|
-
g ?
|
|
2482
|
-
const R = !!g,
|
|
2481
|
+
const { id: f, error: g, hint: p, name: v, required: m } = ne("Input");
|
|
2482
|
+
let $;
|
|
2483
|
+
g ? $ = `${f}-error` : p && ($ = `${f}-hint`);
|
|
2484
|
+
const R = !!g, I = s.useRef(null), w = s.useRef(null), y = te(w, h), k = (E) => {
|
|
2483
2485
|
!n && o && o(E);
|
|
2484
2486
|
};
|
|
2485
2487
|
return s.useLayoutEffect(() => {
|
|
2486
|
-
if (
|
|
2487
|
-
const E =
|
|
2488
|
+
if (I.current && w.current) {
|
|
2489
|
+
const E = I.current.offsetWidth, b = w.current;
|
|
2488
2490
|
if (b) {
|
|
2489
|
-
const
|
|
2490
|
-
b.style.paddingRight = `${
|
|
2491
|
+
const D = E + 8 + 16;
|
|
2492
|
+
b.style.paddingRight = `${D}px`;
|
|
2491
2493
|
}
|
|
2492
2494
|
}
|
|
2493
|
-
}, [e]), /* @__PURE__ */
|
|
2495
|
+
}, [e]), /* @__PURE__ */ x(
|
|
2494
2496
|
Ii,
|
|
2495
2497
|
{
|
|
2496
2498
|
gap: 2,
|
|
@@ -2507,10 +2509,10 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2507
2509
|
Ri,
|
|
2508
2510
|
{
|
|
2509
2511
|
id: f,
|
|
2510
|
-
name:
|
|
2511
|
-
ref:
|
|
2512
|
+
name: v,
|
|
2513
|
+
ref: y,
|
|
2512
2514
|
$size: c,
|
|
2513
|
-
"aria-describedby":
|
|
2515
|
+
"aria-describedby": $,
|
|
2514
2516
|
"aria-invalid": R || a,
|
|
2515
2517
|
"aria-disabled": n,
|
|
2516
2518
|
disabled: n,
|
|
@@ -2522,7 +2524,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2522
2524
|
...d
|
|
2523
2525
|
}
|
|
2524
2526
|
),
|
|
2525
|
-
e && /* @__PURE__ */ r(Ti, { ref:
|
|
2527
|
+
e && /* @__PURE__ */ r(Ti, { ref: I, children: e })
|
|
2526
2528
|
]
|
|
2527
2529
|
}
|
|
2528
2530
|
);
|
|
@@ -2584,12 +2586,12 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2584
2586
|
`;
|
|
2585
2587
|
}
|
|
2586
2588
|
}}
|
|
2587
|
-
`, Ti = u(
|
|
2589
|
+
`, Ti = u(C)`
|
|
2588
2590
|
position: absolute;
|
|
2589
2591
|
right: ${({ theme: e }) => e.spaces[4]};
|
|
2590
2592
|
top: 50%;
|
|
2591
2593
|
transform: translateY(-50%);
|
|
2592
|
-
`, Ii = u(
|
|
2594
|
+
`, Ii = u(C)`
|
|
2593
2595
|
border: 1px solid ${({ theme: e, $hasError: t }) => t ? e.colors.danger600 : e.colors.neutral200};
|
|
2594
2596
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
2595
2597
|
background: ${({ theme: e }) => e.colors.neutral0};
|
|
@@ -2601,10 +2603,10 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2601
2603
|
color: ${e.colors.neutral600};
|
|
2602
2604
|
background: ${e.colors.neutral150};
|
|
2603
2605
|
` : void 0};
|
|
2604
|
-
`,
|
|
2606
|
+
`, nn = () => {
|
|
2605
2607
|
const { id: e, hint: t, error: n } = ne("Hint");
|
|
2606
2608
|
return !t || n ? null : /* @__PURE__ */ r(A, { variant: "pi", tag: "p", id: `${e}-hint`, textColor: "neutral600", children: t });
|
|
2607
|
-
},
|
|
2609
|
+
}, on = () => {
|
|
2608
2610
|
const { id: e, error: t } = ne("Error");
|
|
2609
2611
|
return !t || typeof t != "string" ? null : /* @__PURE__ */ r(A, { variant: "pi", tag: "p", id: `${e}-error`, textColor: "danger600", "data-strapi-field-error": !0, children: t });
|
|
2610
2612
|
}, Di = s.forwardRef(({ label: e, children: t, ...n }, o) => /* @__PURE__ */ r(
|
|
@@ -2619,14 +2621,14 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2619
2621
|
ref: o,
|
|
2620
2622
|
children: /* @__PURE__ */ r(Le, { label: e, children: t })
|
|
2621
2623
|
}
|
|
2622
|
-
)), Ei = u(
|
|
2624
|
+
)), Ei = u(C)`
|
|
2623
2625
|
font-size: 1.6rem;
|
|
2624
2626
|
padding: 0;
|
|
2625
2627
|
`, Dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2626
2628
|
__proto__: null,
|
|
2627
2629
|
Action: Di,
|
|
2628
|
-
Error:
|
|
2629
|
-
Hint:
|
|
2630
|
+
Error: on,
|
|
2631
|
+
Hint: nn,
|
|
2630
2632
|
Input: it,
|
|
2631
2633
|
Label: Nt,
|
|
2632
2634
|
Root: Re,
|
|
@@ -2646,16 +2648,16 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2646
2648
|
required: f,
|
|
2647
2649
|
secondaryLabel: g,
|
|
2648
2650
|
selectedSlide: p,
|
|
2649
|
-
id:
|
|
2651
|
+
id: v,
|
|
2650
2652
|
...m
|
|
2651
|
-
},
|
|
2652
|
-
const R = re(
|
|
2653
|
-
return /* @__PURE__ */ r(Re, { hint: o, error: n, id: R, required: f, children: /* @__PURE__ */
|
|
2653
|
+
}, $) => {
|
|
2654
|
+
const R = re(v);
|
|
2655
|
+
return /* @__PURE__ */ r(Re, { hint: o, error: n, id: R, required: f, children: /* @__PURE__ */ x(C, { direction: "column", alignItems: "stretch", gap: 1, children: [
|
|
2654
2656
|
a && /* @__PURE__ */ r(Nt, { action: i, children: a }),
|
|
2655
2657
|
/* @__PURE__ */ r(
|
|
2656
2658
|
bi,
|
|
2657
2659
|
{
|
|
2658
|
-
ref:
|
|
2660
|
+
ref: $,
|
|
2659
2661
|
actions: e,
|
|
2660
2662
|
label: a,
|
|
2661
2663
|
nextLabel: l,
|
|
@@ -2669,12 +2671,12 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2669
2671
|
children: t
|
|
2670
2672
|
}
|
|
2671
2673
|
),
|
|
2672
|
-
/* @__PURE__ */ r(
|
|
2673
|
-
/* @__PURE__ */ r(
|
|
2674
|
+
/* @__PURE__ */ r(nn, {}),
|
|
2675
|
+
/* @__PURE__ */ r(on, {})
|
|
2674
2676
|
] }) });
|
|
2675
2677
|
}
|
|
2676
2678
|
), Ad = ({ horizontal: e = !0, ...t }) => /* @__PURE__ */ r(
|
|
2677
|
-
|
|
2679
|
+
C,
|
|
2678
2680
|
{
|
|
2679
2681
|
justifyContent: "center",
|
|
2680
2682
|
direction: e ? "row" : "column",
|
|
@@ -2686,13 +2688,13 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2686
2688
|
...t
|
|
2687
2689
|
}
|
|
2688
2690
|
), rr = u(S)`
|
|
2689
|
-
${
|
|
2691
|
+
${Dr}
|
|
2690
2692
|
`, zd = (e) => {
|
|
2691
2693
|
const [t, n] = s.useState(!1), o = () => {
|
|
2692
2694
|
n(!0);
|
|
2693
2695
|
};
|
|
2694
2696
|
return t ? /* @__PURE__ */ r(Mt, { label: e.alt ?? "", children: /* @__PURE__ */ r(rr, { tag: "img", height: "100%", maxWidth: "100%", ...e }) }) : /* @__PURE__ */ r(rr, { tag: "img", height: "100%", maxWidth: "100%", ...e, onError: o });
|
|
2695
|
-
}, Ai = u(
|
|
2697
|
+
}, Ai = u(C)`
|
|
2696
2698
|
display: ${({ $selected: e }) => e ? "flex" : "none"};
|
|
2697
2699
|
`, Od = ({ label: e, children: t, selected: n = !1, ...o }) => /* @__PURE__ */ r(
|
|
2698
2700
|
Ai,
|
|
@@ -2708,7 +2710,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2708
2710
|
...o,
|
|
2709
2711
|
children: t
|
|
2710
2712
|
}
|
|
2711
|
-
),
|
|
2713
|
+
), an = T`
|
|
2712
2714
|
font-size: 1.6rem;
|
|
2713
2715
|
line-height: 2.4rem;
|
|
2714
2716
|
|
|
@@ -2745,7 +2747,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2745
2747
|
`;
|
|
2746
2748
|
}
|
|
2747
2749
|
}, st = s.forwardRef(
|
|
2748
|
-
({ children: e, viewportRef: t, ...n }, o) => /* @__PURE__ */
|
|
2750
|
+
({ children: e, viewportRef: t, ...n }, o) => /* @__PURE__ */ x(zi, { ref: o, ...n, children: [
|
|
2749
2751
|
/* @__PURE__ */ r(Oi, { ref: t, children: e }),
|
|
2750
2752
|
/* @__PURE__ */ r(nr, { orientation: "vertical", children: /* @__PURE__ */ r(or, {}) }),
|
|
2751
2753
|
/* @__PURE__ */ r(nr, { orientation: "horizontal", children: /* @__PURE__ */ r(or, {}) })
|
|
@@ -2794,7 +2796,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2794
2796
|
min-height: 44px;
|
|
2795
2797
|
}
|
|
2796
2798
|
}
|
|
2797
|
-
`, Li = "data:image/svg+xml,%3csvg%20width='63'%20height='63'%20viewBox='0%200%2063%2063'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.5563%2011.9816C39.484%2010.3071%2035.8575%209.29097%2032.3354%209.13521C28.6443%208.92888%2024.8295%209.72318%2021.3336%2011.4129C20.9123%2011.5901%2020.5376%2011.8101%2020.1722%2012.0249L20.0108%2012.1179C19.8774%2012.1951%2019.7441%2012.2724%2019.608%2012.3536C19.3253%2012.5146%2019.0492%2012.6744%2018.7544%2012.8792C18.5463%2013.0329%2018.3395%2013.1759%2018.1301%2013.323C17.5658%2013.7208%2016.9868%2014.1317%2016.4983%2014.5979C14.8476%2015.9524%2013.5571%2017.6075%2012.6071%2018.9214C10.4365%2022.1566%209.08622%2025.9567%208.80702%2029.6143L8.7764%2030.1588C8.73328%2030.9196%208.68476%2031.7057%208.75353%2032.4555C8.76648%2032.6084%208.7661%2032.7638%208.77506%2032.914C8.78895%2033.229%208.80152%2033.5373%208.846%2033.8672L9.07396%2035.4221C9.09756%2035.5764%209.1198%2035.7413%209.1633%2035.9263L9.65919%2037.9272L10.138%2039.2823C10.2729%2039.6673%2010.4158%2040.0751%2010.6%2040.43C12.0292%2043.637%2014.1425%2046.4578%2016.7063%2048.585C19.0508%2050.5296%2021.824%2052.0023%2024.7491%2052.8452L26.2371%2053.2376C26.3781%2053.2693%2026.4926%2053.2889%2026.6031%2053.3058L26.7775%2053.3311C27.0052%2053.3636%2027.2195%2053.3986%2027.4445%2053.435C27.8598%2053.5076%2028.2672%2053.5748%2028.7079%2053.6183L30.5641%2053.7229C30.9516%2053.7249%2031.3352%2053.7068%2031.7081%2053.6874C31.9039%2053.681%2032.0984%2053.6681%2032.3288%2053.662C34.5253%2053.4772%2036.5106%2053.0634%2038.0516%2052.4652C38.1769%2052.4171%2038.3008%2052.3796%2038.4234%2052.3355C38.6727%2052.2499%2038.9259%2052.167%2039.1432%2052.0599L40.8591%2051.2626L42.5702%2050.266C42.9009%2050.0682%2043.0205%2049.6414%2042.8282%2049.2984C42.632%2048.9526%2042.2034%2048.8308%2041.8634%2049.0166L40.1792%2049.9218L38.4995%2050.6224C38.3169%2050.6953%2038.121%2050.7534%2037.9224%2050.8155C37.7838%2050.8489%2037.6518%2050.8983%2037.5012%2050.9408C36.0711%2051.435%2034.2445%2051.7425%2032.244%2051.8346C32.0442%2051.8383%2031.8471%2051.8379%2031.654%2051.8403C31.3051%2051.8414%2030.9602%2051.8451%2030.6392%2051.8305L28.9177%2051.6725C28.5476%2051.619%2028.1695%2051.5427%2027.7848%2051.4678C27.5639%2051.4167%2027.3376%2051.3737%2027.1299%2051.3374L26.9529%2051.2987C26.8704%2051.2834%2026.7772%2051.2667%2026.7333%2051.2543L25.3466%2050.8322C22.7651%2049.9789%2020.33%2048.5729%2018.2942%2046.7557C16.1056%2044.7951%2014.3339%2042.2335%2013.1742%2039.3582C12.0276%2036.6013%2011.5988%2033.2792%2011.9716%2030.0076C12.3145%2027.0213%2013.3948%2024.1635%2015.1858%2021.5083C15.3034%2021.3339%2015.421%2021.1596%2015.5212%2021.0196C16.4309%2019.8688%2017.5408%2018.5589%2018.9483%2017.496C19.3367%2017.1525%2019.7862%2016.856%2020.2611%2016.5478C20.4878%2016.4009%2020.7079%2016.2553%2020.8907%2016.1306C21.0974%2016.0048%2021.3188%2015.8831%2021.5348%2015.7694C21.6761%2015.6975%2021.8162%2015.619%2021.9388%2015.5576L22.1002%2015.4646C22.4002%2015.3037%2022.6749%2015.1546%2022.9908%2015.039L24.1186%2014.5715C24.3399%2014.4844%2024.5718%2014.4159%2024.7997%2014.3447C24.953%2014.2982%2025.0982%2014.2635%2025.2635%2014.2078C25.786%2014.0182%2026.3283%2013.9112%2026.9105%2013.7965C27.117%2013.7571%2027.3302%2013.7163%2027.5608%2013.6585C27.7553%2013.611%2027.9737%2013.5969%2028.2082%2013.5762C28.364%2013.5603%2028.5172%2013.5483%2028.6318%2013.5333C28.7876%2013.5173%2028.9342%2013.5066%2029.0927%2013.4867C29.3285%2013.4555%2029.5456%2013.4347%2029.7494%2013.4337C30.0237%2013.44%2030.2994%2013.4357%2030.5777%2013.4274C31.0811%2013.421%2031.5579%2013.4197%2032.0318%2013.4914C34.9664%2013.7352%2037.7144%2014.6085%2040.2052%2016.0868C42.3489%2017.3655%2044.2716%2019.1525%2045.7607%2021.264C47.0255%2023.0628%2047.9756%2025.0528%2048.4928%2027.0393C48.572%2027.3176%2048.6299%2027.5931%2048.6839%2027.8659C48.7154%2028.0428%2048.7563%2028.2145%2048.7892%2028.3636C48.8037%2028.4541%2048.8208%2028.5406%2048.8445%2028.6258C48.8749%2028.7443%2048.8986%2028.864%2048.9116%2028.9651L48.9793%2029.6047C48.9922%2029.7748%2049.0132%2029.9331%2049.0301%2030.0887C49.0668%2030.3268%2049.0889%2030.5608%2049.0964%2030.7561L49.1083%2031.9001C49.1312%2032.3307%2049.089%2032.7116%2049.0522%2033.0673C49.0384%2033.2598%2049.0126%2033.4443%2049.0123%2033.5824C48.9961%2033.6926%2048.9918%2033.7935%2048.9836%2033.8917C48.9753%2034.0072%2048.9724%2034.1148%2048.9414%2034.2554L48.5449%2036.3059C48.3134%2037.8623%2049.3793%2039.3365%2050.9488%2039.5822C52.0417%2039.7601%2053.1536%2039.2819%2053.7711%2038.3664C54.0063%2038.0176%2054.1604%2037.6257%2054.2227%2037.2064L54.5217%2035.2574C54.5514%2035.0756%2054.572%2034.83%2054.5846%2034.5791L54.6028%2034.2338C54.6098%2034.0598%2054.6223%2033.8779%2054.6347%2033.6788C54.6734%2033.1052%2054.7163%2032.4479%2054.6619%2031.8058L54.5867%2030.4289C54.5622%2030.0952%2054.5097%2029.76%2054.4559%2029.4181C54.431%2029.2572%2054.4048%2029.0896%2054.3826%2028.9074L54.2687%2028.104C54.2332%2027.9244%2054.1804%2027.7273%2054.1329%2027.5396L54.0643%2027.2454C54.0195%2027.071%2053.9773%2026.8927%2053.9338%2026.7076C53.8455%2026.3309%2053.7479%2025.9422%2053.613%2025.5571C52.84%2023.0292%2051.5383%2020.5194%2049.8338%2018.2799C47.8544%2015.682%2045.3333%2013.5087%2042.5563%2011.9816Z'%20fill='%234945FF'/%3e%3c/svg%3e", kt = s.forwardRef(({ children: e, small: t = !1, ...n }, o) => /* @__PURE__ */
|
|
2799
|
+
`, Li = "data:image/svg+xml,%3csvg%20width='63'%20height='63'%20viewBox='0%200%2063%2063'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.5563%2011.9816C39.484%2010.3071%2035.8575%209.29097%2032.3354%209.13521C28.6443%208.92888%2024.8295%209.72318%2021.3336%2011.4129C20.9123%2011.5901%2020.5376%2011.8101%2020.1722%2012.0249L20.0108%2012.1179C19.8774%2012.1951%2019.7441%2012.2724%2019.608%2012.3536C19.3253%2012.5146%2019.0492%2012.6744%2018.7544%2012.8792C18.5463%2013.0329%2018.3395%2013.1759%2018.1301%2013.323C17.5658%2013.7208%2016.9868%2014.1317%2016.4983%2014.5979C14.8476%2015.9524%2013.5571%2017.6075%2012.6071%2018.9214C10.4365%2022.1566%209.08622%2025.9567%208.80702%2029.6143L8.7764%2030.1588C8.73328%2030.9196%208.68476%2031.7057%208.75353%2032.4555C8.76648%2032.6084%208.7661%2032.7638%208.77506%2032.914C8.78895%2033.229%208.80152%2033.5373%208.846%2033.8672L9.07396%2035.4221C9.09756%2035.5764%209.1198%2035.7413%209.1633%2035.9263L9.65919%2037.9272L10.138%2039.2823C10.2729%2039.6673%2010.4158%2040.0751%2010.6%2040.43C12.0292%2043.637%2014.1425%2046.4578%2016.7063%2048.585C19.0508%2050.5296%2021.824%2052.0023%2024.7491%2052.8452L26.2371%2053.2376C26.3781%2053.2693%2026.4926%2053.2889%2026.6031%2053.3058L26.7775%2053.3311C27.0052%2053.3636%2027.2195%2053.3986%2027.4445%2053.435C27.8598%2053.5076%2028.2672%2053.5748%2028.7079%2053.6183L30.5641%2053.7229C30.9516%2053.7249%2031.3352%2053.7068%2031.7081%2053.6874C31.9039%2053.681%2032.0984%2053.6681%2032.3288%2053.662C34.5253%2053.4772%2036.5106%2053.0634%2038.0516%2052.4652C38.1769%2052.4171%2038.3008%2052.3796%2038.4234%2052.3355C38.6727%2052.2499%2038.9259%2052.167%2039.1432%2052.0599L40.8591%2051.2626L42.5702%2050.266C42.9009%2050.0682%2043.0205%2049.6414%2042.8282%2049.2984C42.632%2048.9526%2042.2034%2048.8308%2041.8634%2049.0166L40.1792%2049.9218L38.4995%2050.6224C38.3169%2050.6953%2038.121%2050.7534%2037.9224%2050.8155C37.7838%2050.8489%2037.6518%2050.8983%2037.5012%2050.9408C36.0711%2051.435%2034.2445%2051.7425%2032.244%2051.8346C32.0442%2051.8383%2031.8471%2051.8379%2031.654%2051.8403C31.3051%2051.8414%2030.9602%2051.8451%2030.6392%2051.8305L28.9177%2051.6725C28.5476%2051.619%2028.1695%2051.5427%2027.7848%2051.4678C27.5639%2051.4167%2027.3376%2051.3737%2027.1299%2051.3374L26.9529%2051.2987C26.8704%2051.2834%2026.7772%2051.2667%2026.7333%2051.2543L25.3466%2050.8322C22.7651%2049.9789%2020.33%2048.5729%2018.2942%2046.7557C16.1056%2044.7951%2014.3339%2042.2335%2013.1742%2039.3582C12.0276%2036.6013%2011.5988%2033.2792%2011.9716%2030.0076C12.3145%2027.0213%2013.3948%2024.1635%2015.1858%2021.5083C15.3034%2021.3339%2015.421%2021.1596%2015.5212%2021.0196C16.4309%2019.8688%2017.5408%2018.5589%2018.9483%2017.496C19.3367%2017.1525%2019.7862%2016.856%2020.2611%2016.5478C20.4878%2016.4009%2020.7079%2016.2553%2020.8907%2016.1306C21.0974%2016.0048%2021.3188%2015.8831%2021.5348%2015.7694C21.6761%2015.6975%2021.8162%2015.619%2021.9388%2015.5576L22.1002%2015.4646C22.4002%2015.3037%2022.6749%2015.1546%2022.9908%2015.039L24.1186%2014.5715C24.3399%2014.4844%2024.5718%2014.4159%2024.7997%2014.3447C24.953%2014.2982%2025.0982%2014.2635%2025.2635%2014.2078C25.786%2014.0182%2026.3283%2013.9112%2026.9105%2013.7965C27.117%2013.7571%2027.3302%2013.7163%2027.5608%2013.6585C27.7553%2013.611%2027.9737%2013.5969%2028.2082%2013.5762C28.364%2013.5603%2028.5172%2013.5483%2028.6318%2013.5333C28.7876%2013.5173%2028.9342%2013.5066%2029.0927%2013.4867C29.3285%2013.4555%2029.5456%2013.4347%2029.7494%2013.4337C30.0237%2013.44%2030.2994%2013.4357%2030.5777%2013.4274C31.0811%2013.421%2031.5579%2013.4197%2032.0318%2013.4914C34.9664%2013.7352%2037.7144%2014.6085%2040.2052%2016.0868C42.3489%2017.3655%2044.2716%2019.1525%2045.7607%2021.264C47.0255%2023.0628%2047.9756%2025.0528%2048.4928%2027.0393C48.572%2027.3176%2048.6299%2027.5931%2048.6839%2027.8659C48.7154%2028.0428%2048.7563%2028.2145%2048.7892%2028.3636C48.8037%2028.4541%2048.8208%2028.5406%2048.8445%2028.6258C48.8749%2028.7443%2048.8986%2028.864%2048.9116%2028.9651L48.9793%2029.6047C48.9922%2029.7748%2049.0132%2029.9331%2049.0301%2030.0887C49.0668%2030.3268%2049.0889%2030.5608%2049.0964%2030.7561L49.1083%2031.9001C49.1312%2032.3307%2049.089%2032.7116%2049.0522%2033.0673C49.0384%2033.2598%2049.0126%2033.4443%2049.0123%2033.5824C48.9961%2033.6926%2048.9918%2033.7935%2048.9836%2033.8917C48.9753%2034.0072%2048.9724%2034.1148%2048.9414%2034.2554L48.5449%2036.3059C48.3134%2037.8623%2049.3793%2039.3365%2050.9488%2039.5822C52.0417%2039.7601%2053.1536%2039.2819%2053.7711%2038.3664C54.0063%2038.0176%2054.1604%2037.6257%2054.2227%2037.2064L54.5217%2035.2574C54.5514%2035.0756%2054.572%2034.83%2054.5846%2034.5791L54.6028%2034.2338C54.6098%2034.0598%2054.6223%2033.8779%2054.6347%2033.6788C54.6734%2033.1052%2054.7163%2032.4479%2054.6619%2031.8058L54.5867%2030.4289C54.5622%2030.0952%2054.5097%2029.76%2054.4559%2029.4181C54.431%2029.2572%2054.4048%2029.0896%2054.3826%2028.9074L54.2687%2028.104C54.2332%2027.9244%2054.1804%2027.7273%2054.1329%2027.5396L54.0643%2027.2454C54.0195%2027.071%2053.9773%2026.8927%2053.9338%2026.7076C53.8455%2026.3309%2053.7479%2025.9422%2053.613%2025.5571C52.84%2023.0292%2051.5383%2020.5194%2049.8338%2018.2799C47.8544%2015.682%2045.3333%2013.5087%2042.5563%2011.9816Z'%20fill='%234945FF'/%3e%3c/svg%3e", kt = s.forwardRef(({ children: e, small: t = !1, ...n }, o) => /* @__PURE__ */ x("div", { role: "alert", "aria-live": "assertive", ref: o, ...n, children: [
|
|
2798
2800
|
/* @__PURE__ */ r($e, { children: e }),
|
|
2799
2801
|
/* @__PURE__ */ r(Mi, { src: Li, "aria-hidden": !0, $small: t })
|
|
2800
2802
|
] })), Pi = Q`
|
|
@@ -2817,7 +2819,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2817
2819
|
${({ theme: e, $gap: t }) => Oe({ gap: t }, e)}
|
|
2818
2820
|
`, Wi = ee(
|
|
2819
2821
|
({ col: e, s: t, xs: n, m: o, ...a }, i) => /* @__PURE__ */ r(Fi, { ref: i, $col: e, $s: t, $xs: n, $m: o, ...a })
|
|
2820
|
-
), Fi = u(
|
|
2822
|
+
), Fi = u(C)`
|
|
2821
2823
|
grid-column: span ${({ $xs: e, $col: t }) => e ?? t ?? 12};
|
|
2822
2824
|
max-width: 100%;
|
|
2823
2825
|
|
|
@@ -2844,12 +2846,12 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2844
2846
|
renderItem: a
|
|
2845
2847
|
}) => {
|
|
2846
2848
|
const i = Gt(null), [l, c] = gt(!1), d = Gt(!0);
|
|
2847
|
-
|
|
2849
|
+
Un(() => (d.current = !0, typeof qt == "function" && qt(() => {
|
|
2848
2850
|
d.current && c(!0);
|
|
2849
2851
|
}), () => {
|
|
2850
2852
|
d.current = !1;
|
|
2851
2853
|
}), []);
|
|
2852
|
-
const h =
|
|
2854
|
+
const h = mr(() => a && o !== void 0 ? [] : Gn.toArray(e), [e, a, o]), f = o ?? h.length, g = go({
|
|
2853
2855
|
count: f,
|
|
2854
2856
|
// parentRef is the inner container; the scroll element is its closest scrollable ancestor
|
|
2855
2857
|
getScrollElement: () => i.current ?? null,
|
|
@@ -2873,22 +2875,22 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2873
2875
|
style: {
|
|
2874
2876
|
willChange: "transform"
|
|
2875
2877
|
},
|
|
2876
|
-
children: p.map((
|
|
2877
|
-
const m = a ? a(
|
|
2878
|
+
children: p.map((v) => {
|
|
2879
|
+
const m = a ? a(v.index) : h[v.index];
|
|
2878
2880
|
return /* @__PURE__ */ r(
|
|
2879
2881
|
S,
|
|
2880
2882
|
{
|
|
2881
|
-
"data-index":
|
|
2883
|
+
"data-index": v.index,
|
|
2882
2884
|
style: {
|
|
2883
2885
|
position: "absolute",
|
|
2884
2886
|
top: 0,
|
|
2885
2887
|
left: 0,
|
|
2886
2888
|
width: "100%",
|
|
2887
|
-
transform: `translate3d(0, ${
|
|
2889
|
+
transform: `translate3d(0, ${v.start}px, 0)`
|
|
2888
2890
|
},
|
|
2889
2891
|
children: m
|
|
2890
2892
|
},
|
|
2891
|
-
|
|
2893
|
+
v.key
|
|
2892
2894
|
);
|
|
2893
2895
|
})
|
|
2894
2896
|
}
|
|
@@ -2908,17 +2910,17 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2908
2910
|
defaultTextValue: f,
|
|
2909
2911
|
defaultOpen: g = !1,
|
|
2910
2912
|
open: p,
|
|
2911
|
-
onOpenChange:
|
|
2913
|
+
onOpenChange: v,
|
|
2912
2914
|
disabled: m = !1,
|
|
2913
|
-
hasError:
|
|
2915
|
+
hasError: $,
|
|
2914
2916
|
id: R,
|
|
2915
|
-
filterValue:
|
|
2916
|
-
hasMoreItems:
|
|
2917
|
-
isPrintableCharacter:
|
|
2917
|
+
filterValue: I,
|
|
2918
|
+
hasMoreItems: w = !1,
|
|
2919
|
+
isPrintableCharacter: y,
|
|
2918
2920
|
loading: k = !1,
|
|
2919
2921
|
loadingMessage: E = "Loading content...",
|
|
2920
2922
|
name: b,
|
|
2921
|
-
noOptionsMessage:
|
|
2923
|
+
noOptionsMessage: D = () => "No results found",
|
|
2922
2924
|
onChange: L,
|
|
2923
2925
|
onClear: z,
|
|
2924
2926
|
onCreateOption: O,
|
|
@@ -2937,13 +2939,13 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2937
2939
|
const [Z, V] = de({
|
|
2938
2940
|
prop: p,
|
|
2939
2941
|
defaultProp: g,
|
|
2940
|
-
onChange:
|
|
2942
|
+
onChange: v
|
|
2941
2943
|
}), [Y, ce] = de({
|
|
2942
2944
|
prop: X,
|
|
2943
2945
|
defaultProp: e && !f ? G : f,
|
|
2944
2946
|
onChange: W
|
|
2945
2947
|
}), [we, ye] = de({
|
|
2946
|
-
prop:
|
|
2948
|
+
prop: I,
|
|
2947
2949
|
defaultProp: h,
|
|
2948
2950
|
onChange: U
|
|
2949
2951
|
}), ue = s.useRef(null), De = s.useRef(null), Ce = te(ue, K), We = s.useRef(null), Fe = (oe) => {
|
|
@@ -2956,14 +2958,14 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2956
2958
|
ye(oe);
|
|
2957
2959
|
}, He = (oe) => {
|
|
2958
2960
|
N && N(oe);
|
|
2959
|
-
},
|
|
2961
|
+
}, Ln = (oe) => {
|
|
2960
2962
|
L && L(oe);
|
|
2961
|
-
},
|
|
2962
|
-
H &&
|
|
2963
|
+
}, Pn = (oe) => {
|
|
2964
|
+
H && w && !k && H(oe);
|
|
2963
2965
|
}, jt = () => {
|
|
2964
2966
|
O && Y && i !== "visible" ? O(Y) : O && i === "visible" && (O(), V(!1));
|
|
2965
|
-
},
|
|
2966
|
-
Ke(De,
|
|
2967
|
+
}, Mn = re(), _t = `intersection-${Pe(Mn)}`;
|
|
2968
|
+
Ke(De, Pn, {
|
|
2967
2969
|
selectorToWatch: `#${_t}`,
|
|
2968
2970
|
/**
|
|
2969
2971
|
* We need to know when the select is open because only then will viewportRef
|
|
@@ -2971,9 +2973,9 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2971
2973
|
*/
|
|
2972
2974
|
skipWhen: !Z
|
|
2973
2975
|
});
|
|
2974
|
-
const { error: ct, ...Xe } = ne("Combobox"),
|
|
2976
|
+
const { error: ct, ...Xe } = ne("Combobox"), Bn = !!ct || $, dt = Xe.id ?? R, Nn = Xe.name ?? b, Wn = Xe.required || q, Ut = s.Children.toArray(n).filter(Boolean).length, Fn = !!!(Y && Y !== "" || we && we !== "") && Ut > 100;
|
|
2975
2977
|
let ut;
|
|
2976
|
-
return ct ? ut = `${dt}-error` : Xe.hint && (ut = `${dt}-hint`), /* @__PURE__ */
|
|
2978
|
+
return ct ? ut = `${dt}-error` : Xe.hint && (ut = `${dt}-hint`), /* @__PURE__ */ x(
|
|
2977
2979
|
ie.Root,
|
|
2978
2980
|
{
|
|
2979
2981
|
autocomplete: t || (i === !0 ? "list" : "both"),
|
|
@@ -2983,25 +2985,25 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
2983
2985
|
textValue: Y,
|
|
2984
2986
|
allowCustomValue: !!i || e,
|
|
2985
2987
|
disabled: m,
|
|
2986
|
-
required:
|
|
2988
|
+
required: Wn,
|
|
2987
2989
|
value: G,
|
|
2988
|
-
onValueChange:
|
|
2990
|
+
onValueChange: Ln,
|
|
2989
2991
|
filterValue: we,
|
|
2990
2992
|
onFilterValueChange: Ae,
|
|
2991
|
-
isPrintableCharacter:
|
|
2993
|
+
isPrintableCharacter: y,
|
|
2992
2994
|
visible: i === "visible",
|
|
2993
2995
|
children: [
|
|
2994
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ x(
|
|
2995
2997
|
ji,
|
|
2996
2998
|
{
|
|
2997
|
-
$hasError:
|
|
2999
|
+
$hasError: Bn,
|
|
2998
3000
|
$size: P,
|
|
2999
3001
|
$hasTextValue: !!Y,
|
|
3000
3002
|
$hasClear: !!(Y && z),
|
|
3001
3003
|
className: o,
|
|
3002
3004
|
children: [
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
B ? /* @__PURE__ */ r(
|
|
3005
|
+
/* @__PURE__ */ x(C, { flex: "1", tag: "span", gap: 3, children: [
|
|
3006
|
+
B ? /* @__PURE__ */ r(C, { flex: "0 0 1.6rem", tag: "span", "aria-hidden": !0, children: B }) : null,
|
|
3005
3007
|
/* @__PURE__ */ r(
|
|
3006
3008
|
_i,
|
|
3007
3009
|
{
|
|
@@ -3010,13 +3012,13 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3010
3012
|
"aria-invalid": !!ct,
|
|
3011
3013
|
onChange: He,
|
|
3012
3014
|
ref: Ce,
|
|
3013
|
-
name:
|
|
3015
|
+
name: Nn,
|
|
3014
3016
|
"aria-describedby": ut,
|
|
3015
3017
|
...J
|
|
3016
3018
|
}
|
|
3017
3019
|
)
|
|
3018
3020
|
] }),
|
|
3019
|
-
/* @__PURE__ */
|
|
3021
|
+
/* @__PURE__ */ x(C, { tag: "span", gap: 3, children: [
|
|
3020
3022
|
Y && z ? /* @__PURE__ */ r(
|
|
3021
3023
|
be,
|
|
3022
3024
|
{
|
|
@@ -3035,11 +3037,11 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3035
3037
|
]
|
|
3036
3038
|
}
|
|
3037
3039
|
),
|
|
3038
|
-
/* @__PURE__ */ r(ie.Portal, { children: /* @__PURE__ */
|
|
3039
|
-
/* @__PURE__ */ r(st, { viewportRef: De, children: /* @__PURE__ */ r(ie.Viewport, { children: /* @__PURE__ */
|
|
3040
|
-
|
|
3041
|
-
i !== !0 && !k ? /* @__PURE__ */ r(ie.NoValueFound, { asChild: !0, children: /* @__PURE__ */ r(St, { $hasHover: !1, children: /* @__PURE__ */ r(A, { children:
|
|
3042
|
-
k ? /* @__PURE__ */ r(
|
|
3040
|
+
/* @__PURE__ */ r(ie.Portal, { children: /* @__PURE__ */ x(Gi, { sideOffset: 4, children: [
|
|
3041
|
+
/* @__PURE__ */ r(st, { viewportRef: De, children: /* @__PURE__ */ r(ie.Viewport, { children: /* @__PURE__ */ x(S, { padding: 1, children: [
|
|
3042
|
+
Fn ? /* @__PURE__ */ r(Hi, { itemCount: Ut, children: n }) : n,
|
|
3043
|
+
i !== !0 && !k ? /* @__PURE__ */ r(ie.NoValueFound, { asChild: !0, children: /* @__PURE__ */ r(St, { $hasHover: !1, children: /* @__PURE__ */ r(A, { children: D(Y ?? "") }) }) }) : null,
|
|
3044
|
+
k ? /* @__PURE__ */ r(C, { justifyContent: "center", alignItems: "center", paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ r(kt, { small: !0, children: E }) }) : null,
|
|
3043
3045
|
/* @__PURE__ */ r(S, { id: _t, width: "100%", height: "1px" })
|
|
3044
3046
|
] }) }) }),
|
|
3045
3047
|
i ? /* @__PURE__ */ r(
|
|
@@ -3049,7 +3051,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3049
3051
|
onClick: jt,
|
|
3050
3052
|
disabled: l,
|
|
3051
3053
|
asChild: !0,
|
|
3052
|
-
children: /* @__PURE__ */ r(St, { children: /* @__PURE__ */
|
|
3054
|
+
children: /* @__PURE__ */ r(St, { children: /* @__PURE__ */ x(C, { gap: 2, children: [
|
|
3053
3055
|
c && /* @__PURE__ */ r(S, { tag: "span", "aria-hidden": !0, display: "inline-flex", children: c }),
|
|
3054
3056
|
/* @__PURE__ */ r(A, { children: d(Y ?? "") })
|
|
3055
3057
|
] }) })
|
|
@@ -3093,7 +3095,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3093
3095
|
${({ theme: e, $hasError: t }) => xe()({ theme: e, $hasError: t })};
|
|
3094
3096
|
`, _i = u(ie.TextInput)`
|
|
3095
3097
|
width: 100%;
|
|
3096
|
-
${
|
|
3098
|
+
${an}
|
|
3097
3099
|
color: ${({ theme: e }) => e.colors.neutral800};
|
|
3098
3100
|
padding: 0;
|
|
3099
3101
|
border: none;
|
|
@@ -3215,8 +3217,8 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3215
3217
|
color: ${({ theme: e }) => e.colors.primary600};
|
|
3216
3218
|
font-weight: bold;
|
|
3217
3219
|
}
|
|
3218
|
-
`,
|
|
3219
|
-
background: ${(e) =>
|
|
3220
|
+
`, sn = (e, t) => `${e}${Math.floor(t * 255).toString(16).padStart(2, "0")}`, Yi = pe.Root, Qi = s.forwardRef((e, t) => /* @__PURE__ */ r(pe.Trigger, { ...e, asChild: !0, ref: t })), Xi = s.forwardRef((e, t) => /* @__PURE__ */ r(pe.Portal, { children: /* @__PURE__ */ r(Zi, { children: /* @__PURE__ */ r(Ji, { ref: t, ...e }) }) })), Zi = u(pe.Overlay)`
|
|
3221
|
+
background: ${(e) => sn(e.theme.colors.neutral800, 0.2)};
|
|
3220
3222
|
position: fixed;
|
|
3221
3223
|
inset: 0;
|
|
3222
3224
|
z-index: ${(e) => e.theme.zIndices.overlay};
|
|
@@ -3263,7 +3265,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3263
3265
|
justify-content: center;
|
|
3264
3266
|
border-bottom: solid 1px ${(e) => e.theme.colors.neutral150};
|
|
3265
3267
|
`, rs = s.forwardRef(({ children: e, icon: t, ...n }, o) => /* @__PURE__ */ r(
|
|
3266
|
-
|
|
3268
|
+
C,
|
|
3267
3269
|
{
|
|
3268
3270
|
ref: o,
|
|
3269
3271
|
gap: 2,
|
|
@@ -3273,15 +3275,15 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3273
3275
|
paddingLeft: 6,
|
|
3274
3276
|
paddingRight: 6,
|
|
3275
3277
|
...n,
|
|
3276
|
-
children: typeof e == "string" ? /* @__PURE__ */
|
|
3278
|
+
children: typeof e == "string" ? /* @__PURE__ */ x(It, { children: [
|
|
3277
3279
|
t ? s.cloneElement(t, {
|
|
3278
3280
|
width: 24,
|
|
3279
3281
|
height: 24
|
|
3280
3282
|
}) : null,
|
|
3281
|
-
/* @__PURE__ */ r(
|
|
3283
|
+
/* @__PURE__ */ r(ln, { children: e })
|
|
3282
3284
|
] }) : e
|
|
3283
3285
|
}
|
|
3284
|
-
)),
|
|
3286
|
+
)), ln = s.forwardRef((e, t) => /* @__PURE__ */ r(pe.Description, { asChild: !0, children: /* @__PURE__ */ r(A, { ref: t, variant: "omega", ...e, tag: "p" }) })), ns = s.forwardRef((e, t) => /* @__PURE__ */ r(os, { ref: t, gap: 2, padding: 4, justifyContent: "space-between", ...e, tag: "footer" })), os = u(C)`
|
|
3285
3287
|
border-top: solid 1px ${(e) => e.theme.colors.neutral150};
|
|
3286
3288
|
flex: 1;
|
|
3287
3289
|
`, as = s.forwardRef((e, t) => /* @__PURE__ */ r(pe.Cancel, { ...e, asChild: !0, ref: t })), is = s.forwardRef((e, t) => /* @__PURE__ */ r(pe.Action, { ...e, asChild: !0, ref: t })), Pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3290,7 +3292,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3290
3292
|
Body: rs,
|
|
3291
3293
|
Cancel: as,
|
|
3292
3294
|
Content: Xi,
|
|
3293
|
-
Description:
|
|
3295
|
+
Description: ln,
|
|
3294
3296
|
Footer: ns,
|
|
3295
3297
|
Header: es,
|
|
3296
3298
|
Root: Yi,
|
|
@@ -3298,7 +3300,7 @@ const myCustomTheme = extendTheme(lightTheme, {
|
|
|
3298
3300
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3299
3301
|
function he(e, t) {
|
|
3300
3302
|
const n = s.useRef(null);
|
|
3301
|
-
return t && n.current && ss(t, n.current) && (t = n.current), n.current = t ?? null, s.useMemo(() => new
|
|
3303
|
+
return t && n.current && ss(t, n.current) && (t = n.current), n.current = t ?? null, s.useMemo(() => new Kn(e, t), [e, t]);
|
|
3302
3304
|
}
|
|
3303
3305
|
function ss(e, t) {
|
|
3304
3306
|
if (e === t)
|
|
@@ -3311,7 +3313,7 @@ function ss(e, t) {
|
|
|
3311
3313
|
return !1;
|
|
3312
3314
|
return !0;
|
|
3313
3315
|
}
|
|
3314
|
-
const
|
|
3316
|
+
const ze = {
|
|
3315
3317
|
Log: "live-region-log",
|
|
3316
3318
|
Status: "live-region-status",
|
|
3317
3319
|
Alert: "live-region-alert"
|
|
@@ -3326,11 +3328,11 @@ const ls = () => typeof window > "u" || !window.navigator || /ServerSideRenderin
|
|
|
3326
3328
|
t && (t.innerText = e);
|
|
3327
3329
|
}, Md = () => (s.useEffect(() => () => {
|
|
3328
3330
|
ar(""), sr(""), ir("");
|
|
3329
|
-
}, []), { notifyLog: ar, notifyAlert: sr, notifyStatus: ir }),
|
|
3331
|
+
}, []), { notifyLog: ar, notifyAlert: sr, notifyStatus: ir }), ls = () => /* @__PURE__ */ x($e, { children: [
|
|
3330
3332
|
/* @__PURE__ */ r("p", { role: "log", "aria-live": "polite", id: ze.Log, "aria-relevant": "all" }),
|
|
3331
3333
|
/* @__PURE__ */ r("p", { role: "status", "aria-live": "polite", id: ze.Status, "aria-relevant": "all" }),
|
|
3332
3334
|
/* @__PURE__ */ r("p", { role: "alert", "aria-live": "assertive", id: ze.Alert, "aria-relevant": "all" })
|
|
3333
|
-
] }),
|
|
3335
|
+
] }), cs = Vn`
|
|
3334
3336
|
${T`
|
|
3335
3337
|
*,
|
|
3336
3338
|
*::before,
|
|
@@ -3429,14 +3431,14 @@ ${T`
|
|
|
3429
3431
|
overflow-y: hidden;
|
|
3430
3432
|
}
|
|
3431
3433
|
`}
|
|
3432
|
-
`, lr = "en-EN",
|
|
3433
|
-
locale:
|
|
3434
|
+
`, lr = "en-EN", cn = () => typeof navigator > "u" ? lr : navigator.language ? navigator.language : lr, [ds, lt] = Be("StrapiDesignSystem", {
|
|
3435
|
+
locale: cn()
|
|
3434
3436
|
}), Bd = ({
|
|
3435
3437
|
children: e,
|
|
3436
|
-
locale: t =
|
|
3437
|
-
theme: n =
|
|
3438
|
+
locale: t = cn(),
|
|
3439
|
+
theme: n = rn,
|
|
3438
3440
|
tooltipConfig: o
|
|
3439
|
-
}) => (fe(() => {
|
|
3441
|
+
}) => (ro(n.colorScheme), fe(() => {
|
|
3440
3442
|
const a = document.createElement("style");
|
|
3441
3443
|
a.type = "text/css", a.appendChild(
|
|
3442
3444
|
document.createTextNode(`
|
|
@@ -3450,15 +3452,15 @@ ${T`
|
|
|
3450
3452
|
}
|
|
3451
3453
|
`)
|
|
3452
3454
|
), document.head.appendChild(a), window.getComputedStyle(a).opacity, document.head.removeChild(a);
|
|
3453
|
-
}, [n]), /* @__PURE__ */ r(
|
|
3455
|
+
}, [n]), /* @__PURE__ */ r(ds, { locale: t, children: /* @__PURE__ */ x(jn, { theme: n, children: [
|
|
3454
3456
|
/* @__PURE__ */ r(no, { ...o, children: e }),
|
|
3455
|
-
/* @__PURE__ */ r(
|
|
3456
|
-
/* @__PURE__ */ r(
|
|
3457
|
-
] }) })),
|
|
3457
|
+
/* @__PURE__ */ r(ls, {}),
|
|
3458
|
+
/* @__PURE__ */ r(cs, {})
|
|
3459
|
+
] }) })), us = oo.Root, dn = s.forwardRef(
|
|
3458
3460
|
({ container: e = ((o) => (o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body)(), ...t }, n) => e ? vo(/* @__PURE__ */ r(S, { ref: n, ...t }), e) : null
|
|
3459
3461
|
);
|
|
3460
|
-
|
|
3461
|
-
const
|
|
3462
|
+
dn.displayName = "Portal";
|
|
3463
|
+
const hs = s.forwardRef(
|
|
3462
3464
|
({
|
|
3463
3465
|
onClear: e,
|
|
3464
3466
|
clearLabel: t = "Clear",
|
|
@@ -3472,15 +3474,15 @@ const fs = s.forwardRef(
|
|
|
3472
3474
|
withTags: h,
|
|
3473
3475
|
...f
|
|
3474
3476
|
}, g) => {
|
|
3475
|
-
const p = s.useRef(null),
|
|
3477
|
+
const p = s.useRef(null), v = (R) => {
|
|
3476
3478
|
e && !o && (e(R), p.current.focus());
|
|
3477
|
-
}, { labelNode: m } = ne("SelectTrigger"),
|
|
3478
|
-
return /* @__PURE__ */ r(le.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
3479
|
-
|
|
3479
|
+
}, { labelNode: m } = ne("SelectTrigger"), $ = te(p, g);
|
|
3480
|
+
return /* @__PURE__ */ r(le.Trigger, { asChild: !0, children: /* @__PURE__ */ x(
|
|
3481
|
+
fs,
|
|
3480
3482
|
{
|
|
3481
3483
|
"aria-disabled": o,
|
|
3482
3484
|
$hasError: a,
|
|
3483
|
-
ref:
|
|
3485
|
+
ref: $,
|
|
3484
3486
|
alignItems: "center",
|
|
3485
3487
|
justifyContent: "space-between",
|
|
3486
3488
|
position: "relative",
|
|
@@ -3495,30 +3497,30 @@ const fs = s.forwardRef(
|
|
|
3495
3497
|
$hasClear: !!e,
|
|
3496
3498
|
...f,
|
|
3497
3499
|
children: [
|
|
3498
|
-
/* @__PURE__ */
|
|
3499
|
-
n && /* @__PURE__ */ r(
|
|
3500
|
+
/* @__PURE__ */ x(C, { flex: "1", tag: "span", gap: 3, overflow: "hidden", children: [
|
|
3501
|
+
n && /* @__PURE__ */ r(C, { tag: "span", "aria-hidden": !0, children: n }),
|
|
3500
3502
|
l
|
|
3501
3503
|
] }),
|
|
3502
|
-
/* @__PURE__ */
|
|
3504
|
+
/* @__PURE__ */ x(C, { tag: "span", gap: 3, children: [
|
|
3503
3505
|
e ? /* @__PURE__ */ r(
|
|
3504
3506
|
be,
|
|
3505
3507
|
{
|
|
3506
3508
|
size: "XS",
|
|
3507
3509
|
variant: "ghost",
|
|
3508
|
-
onClick:
|
|
3510
|
+
onClick: v,
|
|
3509
3511
|
"aria-disabled": o,
|
|
3510
3512
|
"aria-label": t,
|
|
3511
3513
|
label: t,
|
|
3512
3514
|
children: /* @__PURE__ */ r(Te, {})
|
|
3513
3515
|
}
|
|
3514
3516
|
) : null,
|
|
3515
|
-
i ? /* @__PURE__ */ r(kt, { small: !0, children: "Loading" }) : /* @__PURE__ */ r(
|
|
3517
|
+
i ? /* @__PURE__ */ r(kt, { small: !0, children: "Loading" }) : /* @__PURE__ */ r(gs, { children: /* @__PURE__ */ r(ge, {}) })
|
|
3516
3518
|
] })
|
|
3517
3519
|
]
|
|
3518
3520
|
}
|
|
3519
3521
|
) });
|
|
3520
3522
|
}
|
|
3521
|
-
),
|
|
3523
|
+
), fs = u(C)`
|
|
3522
3524
|
border: 1px solid ${({ theme: e, $hasError: t }) => t ? e.colors.danger600 : e.colors.neutral200};
|
|
3523
3525
|
padding-inline-start: ${({ theme: e }) => e.spaces[4]};
|
|
3524
3526
|
padding-inline-end: ${({ theme: e }) => e.spaces[3]};
|
|
@@ -3549,27 +3551,27 @@ const fs = s.forwardRef(
|
|
|
3549
3551
|
}
|
|
3550
3552
|
|
|
3551
3553
|
${({ theme: e, $hasError: t }) => xe()({ theme: e, $hasError: t })};
|
|
3552
|
-
`,
|
|
3554
|
+
`, gs = u(le.Icon)`
|
|
3553
3555
|
display: flex;
|
|
3554
3556
|
& > svg {
|
|
3555
3557
|
fill: ${({ theme: e }) => e.colors.neutral500};
|
|
3556
3558
|
}
|
|
3557
|
-
`,
|
|
3558
|
-
({ children: e, placeholder: t, withTags: n, ...o }, a) => /* @__PURE__ */ r(
|
|
3559
|
-
),
|
|
3559
|
+
`, ps = s.forwardRef(
|
|
3560
|
+
({ children: e, placeholder: t, withTags: n, ...o }, a) => /* @__PURE__ */ r(ms, { ref: a, ellipsis: !0, ...o, children: /* @__PURE__ */ r(bs, { placeholder: t, $withTags: n, children: e }) })
|
|
3561
|
+
), ms = u(A)`
|
|
3560
3562
|
flex: 1;
|
|
3561
3563
|
min-height: 2.4rem;
|
|
3562
3564
|
|
|
3563
3565
|
${({ theme: e }) => e.breakpoints.medium} {
|
|
3564
3566
|
min-height: 2.2rem;
|
|
3565
3567
|
}
|
|
3566
|
-
`,
|
|
3568
|
+
`, bs = u(le.Value)`
|
|
3567
3569
|
${({ $withTags: e }) => e ? T`
|
|
3568
3570
|
display: flex;
|
|
3569
3571
|
flex-wrap: wrap;
|
|
3570
3572
|
gap: ${({ theme: t }) => t.spaces[1]};
|
|
3571
3573
|
` : null};
|
|
3572
|
-
`,
|
|
3574
|
+
`, $s = s.forwardRef((e, t) => /* @__PURE__ */ r(xs, { ref: t, ...e, children: /* @__PURE__ */ r(st, { children: e.children }) })), xs = u(le.Content)`
|
|
3573
3575
|
background: ${({ theme: e }) => e.colors.neutral0};
|
|
3574
3576
|
box-shadow: ${({ theme: e }) => e.shadows.filterShadow};
|
|
3575
3577
|
border: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
@@ -3594,9 +3596,9 @@ const fs = s.forwardRef(
|
|
|
3594
3596
|
}
|
|
3595
3597
|
}
|
|
3596
3598
|
}
|
|
3597
|
-
`,
|
|
3599
|
+
`, ws = u(le.Viewport)`
|
|
3598
3600
|
padding: ${({ theme: e }) => e.spaces[1]};
|
|
3599
|
-
`,
|
|
3601
|
+
`, ys = s.forwardRef((e, t) => /* @__PURE__ */ r(vs, { ref: t, ...e })), Cs = T`
|
|
3600
3602
|
width: 100%;
|
|
3601
3603
|
border: none;
|
|
3602
3604
|
text-align: left;
|
|
@@ -3617,14 +3619,14 @@ const fs = s.forwardRef(
|
|
|
3617
3619
|
background-color: ${({ theme: e }) => e.colors.primary100};
|
|
3618
3620
|
cursor: pointer;
|
|
3619
3621
|
}
|
|
3620
|
-
`,
|
|
3621
|
-
${
|
|
3622
|
+
`, vs = u(le.Item)`
|
|
3623
|
+
${Cs}
|
|
3622
3624
|
|
|
3623
3625
|
&:hover {
|
|
3624
3626
|
background-color: ${({ theme: e }) => e.colors.primary100};
|
|
3625
3627
|
cursor: pointer;
|
|
3626
3628
|
}
|
|
3627
|
-
`,
|
|
3629
|
+
`, un = le.Root, hn = hs, fn = ps, gn = le.Portal, pn = $s, mn = ws, Ft = ys, bn = le.ItemIndicator, $n = le.ItemText, ks = le.Group, cr = s.forwardRef(
|
|
3628
3630
|
({
|
|
3629
3631
|
children: e,
|
|
3630
3632
|
clearLabel: t = "Clear",
|
|
@@ -3639,13 +3641,13 @@ const fs = s.forwardRef(
|
|
|
3639
3641
|
onCloseAutoFocus: f,
|
|
3640
3642
|
onReachEnd: g,
|
|
3641
3643
|
placeholder: p,
|
|
3642
|
-
required:
|
|
3644
|
+
required: v,
|
|
3643
3645
|
size: m,
|
|
3644
|
-
startIcon:
|
|
3646
|
+
startIcon: $,
|
|
3645
3647
|
value: R,
|
|
3646
|
-
...
|
|
3647
|
-
},
|
|
3648
|
-
const [
|
|
3648
|
+
...I
|
|
3649
|
+
}, w) => {
|
|
3650
|
+
const [y, k] = s.useState(), [E, b] = s.useState(!1), D = (K) => {
|
|
3649
3651
|
b(K);
|
|
3650
3652
|
}, L = (K) => {
|
|
3651
3653
|
h && h(K), d || k("");
|
|
@@ -3665,36 +3667,36 @@ const fs = s.forwardRef(
|
|
|
3665
3667
|
const { error: H, required: M, ...q } = ne("SingleSelect"), P = !!H || a, B = q.id ?? i, X = q.name ?? c;
|
|
3666
3668
|
let G;
|
|
3667
3669
|
H ? G = `${B}-error` : q.hint && (G = `${B}-hint`);
|
|
3668
|
-
const J = (typeof R < "u" && R !== null ? R.toString() :
|
|
3669
|
-
return /* @__PURE__ */
|
|
3670
|
-
|
|
3670
|
+
const J = (typeof R < "u" && R !== null ? R.toString() : y) ?? "";
|
|
3671
|
+
return /* @__PURE__ */ x(
|
|
3672
|
+
un,
|
|
3671
3673
|
{
|
|
3672
|
-
onOpenChange:
|
|
3674
|
+
onOpenChange: D,
|
|
3673
3675
|
disabled: o,
|
|
3674
|
-
required: M ??
|
|
3676
|
+
required: M ?? v,
|
|
3675
3677
|
onValueChange: z,
|
|
3676
3678
|
value: J,
|
|
3677
|
-
...
|
|
3679
|
+
...I,
|
|
3678
3680
|
children: [
|
|
3679
3681
|
/* @__PURE__ */ r(
|
|
3680
|
-
|
|
3682
|
+
hn,
|
|
3681
3683
|
{
|
|
3682
|
-
ref:
|
|
3684
|
+
ref: w,
|
|
3683
3685
|
id: B,
|
|
3684
3686
|
name: X,
|
|
3685
|
-
startIcon:
|
|
3687
|
+
startIcon: $,
|
|
3686
3688
|
hasError: P,
|
|
3687
3689
|
disabled: o,
|
|
3688
3690
|
clearLabel: t,
|
|
3689
3691
|
loading: l,
|
|
3690
3692
|
onClear: J && h ? L : void 0,
|
|
3691
|
-
"aria-label":
|
|
3692
|
-
"aria-describedby": G ??
|
|
3693
|
+
"aria-label": I["aria-label"],
|
|
3694
|
+
"aria-describedby": G ?? I["aria-describedby"],
|
|
3693
3695
|
size: m,
|
|
3694
|
-
children: /* @__PURE__ */ r(
|
|
3696
|
+
children: /* @__PURE__ */ r(fn, { placeholder: p, textColor: J ? "neutral800" : "neutral600", children: J && n ? n(J) : void 0 })
|
|
3695
3697
|
}
|
|
3696
3698
|
),
|
|
3697
|
-
/* @__PURE__ */ r(
|
|
3699
|
+
/* @__PURE__ */ r(gn, { children: /* @__PURE__ */ r(pn, { position: "popper", sideOffset: 4, onCloseAutoFocus: f, children: /* @__PURE__ */ x(mn, { ref: O, children: [
|
|
3698
3700
|
e,
|
|
3699
3701
|
/* @__PURE__ */ r(S, { id: N, width: "100%", height: "1px" })
|
|
3700
3702
|
] }) }) })
|
|
@@ -3703,11 +3705,11 @@ const fs = s.forwardRef(
|
|
|
3703
3705
|
);
|
|
3704
3706
|
}
|
|
3705
3707
|
), dr = s.forwardRef(
|
|
3706
|
-
({ value: e, startIcon: t, children: n, ...o }, a) => /* @__PURE__ */
|
|
3707
|
-
t && /* @__PURE__ */ r(
|
|
3708
|
-
/* @__PURE__ */ r(A, { lineHeight: "20px", width: "100%", children: /* @__PURE__ */ r(
|
|
3708
|
+
({ value: e, startIcon: t, children: n, ...o }, a) => /* @__PURE__ */ x(Ft, { ref: a, value: e.toString(), ...o, children: [
|
|
3709
|
+
t && /* @__PURE__ */ r(C, { tag: "span", "aria-hidden": !0, children: t }),
|
|
3710
|
+
/* @__PURE__ */ r(A, { lineHeight: "20px", width: "100%", children: /* @__PURE__ */ r($n, { children: n }) })
|
|
3709
3711
|
] })
|
|
3710
|
-
),
|
|
3712
|
+
), Ss = 200, ur = 15, [Rs, Ne] = Be("DatePicker"), Ts = s.forwardRef(
|
|
3711
3713
|
({
|
|
3712
3714
|
/**
|
|
3713
3715
|
* DatePickerCalendar props
|
|
@@ -3728,14 +3730,14 @@ const fs = s.forwardRef(
|
|
|
3728
3730
|
hasError: f,
|
|
3729
3731
|
id: g,
|
|
3730
3732
|
name: p,
|
|
3731
|
-
disabled:
|
|
3733
|
+
disabled: v = !1,
|
|
3732
3734
|
required: m = !1,
|
|
3733
|
-
onClear:
|
|
3735
|
+
onClear: $,
|
|
3734
3736
|
clearLabel: R = "Clear",
|
|
3735
|
-
size:
|
|
3736
|
-
|
|
3737
|
-
},
|
|
3738
|
-
const k = pt(), E = lt("DatePicker"), b = o ?? E.locale,
|
|
3737
|
+
size: I = "M",
|
|
3738
|
+
...w
|
|
3739
|
+
}, y) => {
|
|
3740
|
+
const k = pt(), E = lt("DatePicker"), b = o ?? E.locale, D = he(b, {
|
|
3739
3741
|
day: "2-digit",
|
|
3740
3742
|
month: "2-digit",
|
|
3741
3743
|
year: "numeric"
|
|
@@ -3746,17 +3748,17 @@ const fs = s.forwardRef(
|
|
|
3746
3748
|
c && c(j == null ? void 0 : j.toDate(k));
|
|
3747
3749
|
}
|
|
3748
3750
|
}), [G, J] = s.useMemo(() => {
|
|
3749
|
-
const j = n ? ve(n) : Tt("UTC"), Ae = i ? ve(i) : j.set({ day: 1, month: 1, year: j.year -
|
|
3751
|
+
const j = n ? ve(n) : Tt("UTC"), Ae = i ? ve(i) : j.set({ day: 1, month: 1, year: j.year - Ss });
|
|
3750
3752
|
let He = a ? ve(a) : j.set({ day: 31, month: 12, year: j.year + ur });
|
|
3751
3753
|
return He.compare(Ae) < 0 && (He = Ae.set({ day: 31, month: 12, year: Ae.year + ur })), [Ae, He];
|
|
3752
3754
|
}, [i, a, n]), [K, Z] = s.useState(
|
|
3753
|
-
|
|
3755
|
+
Is({
|
|
3754
3756
|
currentValue: B,
|
|
3755
3757
|
minDate: G,
|
|
3756
3758
|
maxDate: J
|
|
3757
3759
|
})
|
|
3758
3760
|
), V = re(), Y = s.useRef(null), ce = (j) => {
|
|
3759
|
-
|
|
3761
|
+
$ && !v && (P(""), X(void 0), $(j), N == null || N.focus());
|
|
3760
3762
|
}, we = s.useCallback(
|
|
3761
3763
|
(j) => {
|
|
3762
3764
|
j && B && Z(B), z(j);
|
|
@@ -3766,24 +3768,24 @@ const fs = s.forwardRef(
|
|
|
3766
3768
|
fe(() => {
|
|
3767
3769
|
if (d) {
|
|
3768
3770
|
const j = ve(d);
|
|
3769
|
-
P(
|
|
3771
|
+
P(D.format(j.toDate(k))), Z(j);
|
|
3770
3772
|
} else
|
|
3771
3773
|
P("");
|
|
3772
|
-
}, [d,
|
|
3774
|
+
}, [d, D, k]), fe(() => {
|
|
3773
3775
|
if (n && q === void 0) {
|
|
3774
3776
|
const j = ve(n);
|
|
3775
|
-
P(
|
|
3777
|
+
P(D.format(j.toDate(k)));
|
|
3776
3778
|
}
|
|
3777
|
-
}, [n, q,
|
|
3779
|
+
}, [n, q, D, k]);
|
|
3778
3780
|
const { error: ye, ...ue } = ne("Combobox"), De = !!ye || f, Ce = ue.id ?? g, We = ue.name ?? p, Fe = ue.required || m;
|
|
3779
3781
|
let Ee;
|
|
3780
|
-
return ye ? Ee = `${Ce}-error` : ue.hint && (Ee = `${Ce}-hint`), /* @__PURE__ */
|
|
3781
|
-
|
|
3782
|
+
return ye ? Ee = `${Ce}-error` : ue.hint && (Ee = `${Ce}-hint`), /* @__PURE__ */ x(
|
|
3783
|
+
Rs,
|
|
3782
3784
|
{
|
|
3783
3785
|
calendarDate: K,
|
|
3784
3786
|
content: H,
|
|
3785
3787
|
contentId: V,
|
|
3786
|
-
disabled:
|
|
3788
|
+
disabled: v,
|
|
3787
3789
|
locale: b,
|
|
3788
3790
|
minDate: G,
|
|
3789
3791
|
maxDate: J,
|
|
@@ -3795,7 +3797,7 @@ const fs = s.forwardRef(
|
|
|
3795
3797
|
onTextValueChange: P,
|
|
3796
3798
|
onTriggerChange: U,
|
|
3797
3799
|
onValueChange: X,
|
|
3798
|
-
onClear:
|
|
3800
|
+
onClear: $,
|
|
3799
3801
|
required: Fe,
|
|
3800
3802
|
textInput: N,
|
|
3801
3803
|
textValue: q,
|
|
@@ -3803,16 +3805,16 @@ const fs = s.forwardRef(
|
|
|
3803
3805
|
trigger: O,
|
|
3804
3806
|
value: B,
|
|
3805
3807
|
children: [
|
|
3806
|
-
/* @__PURE__ */
|
|
3808
|
+
/* @__PURE__ */ x(Es, { className: t, hasError: De, size: I, children: [
|
|
3807
3809
|
/* @__PURE__ */ r(ho, { fill: "neutral500", "aria-hidden": !0 }),
|
|
3808
|
-
/* @__PURE__ */ r(
|
|
3809
|
-
q &&
|
|
3810
|
+
/* @__PURE__ */ r(Os, { ref: y, "aria-describedby": Ee, id: Ce, name: We, ...w }),
|
|
3811
|
+
q && $ ? /* @__PURE__ */ r(
|
|
3810
3812
|
be,
|
|
3811
3813
|
{
|
|
3812
3814
|
size: "XS",
|
|
3813
3815
|
variant: "ghost",
|
|
3814
3816
|
onClick: ce,
|
|
3815
|
-
"aria-disabled":
|
|
3817
|
+
"aria-disabled": v,
|
|
3816
3818
|
"aria-label": R,
|
|
3817
3819
|
label: R,
|
|
3818
3820
|
ref: Y,
|
|
@@ -3820,17 +3822,17 @@ const fs = s.forwardRef(
|
|
|
3820
3822
|
}
|
|
3821
3823
|
) : null
|
|
3822
3824
|
] }),
|
|
3823
|
-
/* @__PURE__ */ r(
|
|
3825
|
+
/* @__PURE__ */ r(dn, { children: /* @__PURE__ */ r(Bs, { label: e, children: /* @__PURE__ */ r(_s, { monthSelectLabel: l, yearSelectLabel: h }) }) })
|
|
3824
3826
|
]
|
|
3825
3827
|
}
|
|
3826
3828
|
);
|
|
3827
3829
|
}
|
|
3828
|
-
), hr = (e) => !!e.match(/^[^a-zA-Z]*$/),
|
|
3830
|
+
), hr = (e) => !!e.match(/^[^a-zA-Z]*$/), Is = ({ currentValue: e, minDate: t, maxDate: n }) => {
|
|
3829
3831
|
const o = Tt("UTC");
|
|
3830
3832
|
return e || (mt(t, o) === t && bt(n, o) === n ? o : mt(t, o) === o ? t : bt(n, o) === o ? n : o);
|
|
3831
|
-
},
|
|
3833
|
+
}, Ds = "DatePickerTrigger", Es = s.forwardRef(
|
|
3832
3834
|
({ hasError: e, size: t, ...n }, o) => {
|
|
3833
|
-
const a = Ne(
|
|
3835
|
+
const a = Ne(Ds), i = te(o, (c) => a.onTriggerChange(c)), l = () => {
|
|
3834
3836
|
a.disabled || a.onOpenChange(!0);
|
|
3835
3837
|
};
|
|
3836
3838
|
return /* @__PURE__ */ r(
|
|
@@ -3846,7 +3848,7 @@ const fs = s.forwardRef(
|
|
|
3846
3848
|
(d = document.getSelection()) == null || d.empty(), c.preventDefault();
|
|
3847
3849
|
},
|
|
3848
3850
|
children: /* @__PURE__ */ r(
|
|
3849
|
-
|
|
3851
|
+
As,
|
|
3850
3852
|
{
|
|
3851
3853
|
ref: i,
|
|
3852
3854
|
$hasError: e,
|
|
@@ -3872,7 +3874,7 @@ const fs = s.forwardRef(
|
|
|
3872
3874
|
}
|
|
3873
3875
|
);
|
|
3874
3876
|
}
|
|
3875
|
-
),
|
|
3877
|
+
), As = u(C)`
|
|
3876
3878
|
min-width: ${({ $hasOnClear: e }) => e ? "160px" : "130px"};
|
|
3877
3879
|
border: 1px solid ${({ theme: e, $hasError: t }) => t ? e.colors.danger600 : e.colors.neutral200};
|
|
3878
3880
|
padding-inline: ${({ theme: e }) => e.spaces[3]};
|
|
@@ -3899,19 +3901,19 @@ const fs = s.forwardRef(
|
|
|
3899
3901
|
}
|
|
3900
3902
|
|
|
3901
3903
|
${({ theme: e, $hasError: t }) => xe()({ theme: e, $hasError: t })};
|
|
3902
|
-
`,
|
|
3904
|
+
`, zs = "DatePickerTextInput", Os = s.forwardRef(
|
|
3903
3905
|
({ placeholder: e, ...t }, n) => {
|
|
3904
|
-
const o = Ne(
|
|
3906
|
+
const o = Ne(zs), { onTextValueChange: a, textValue: i, onTextInputChange: l, onOpenChange: c, disabled: d, locale: h } = o, f = te(n, (I) => l(I)), g = () => {
|
|
3905
3907
|
d || c(!0);
|
|
3906
3908
|
}, p = he(h, {
|
|
3907
3909
|
year: "numeric",
|
|
3908
3910
|
month: "2-digit",
|
|
3909
3911
|
day: "2-digit"
|
|
3910
|
-
}), [
|
|
3912
|
+
}), [v, m, $] = s.useMemo(() => {
|
|
3911
3913
|
var E;
|
|
3912
|
-
const
|
|
3914
|
+
const I = p.formatToParts(/* @__PURE__ */ new Date()), w = I.filter(
|
|
3913
3915
|
(b) => b.type === "year" || b.type === "month" || b.type === "day"
|
|
3914
|
-
),
|
|
3916
|
+
), y = w.map((b) => {
|
|
3915
3917
|
switch (b.type) {
|
|
3916
3918
|
case "day":
|
|
3917
3919
|
return "DD";
|
|
@@ -3922,11 +3924,11 @@ const fs = s.forwardRef(
|
|
|
3922
3924
|
default:
|
|
3923
3925
|
return "";
|
|
3924
3926
|
}
|
|
3925
|
-
}), k = ((E =
|
|
3926
|
-
return [
|
|
3927
|
-
}, [p]), R =
|
|
3927
|
+
}), k = ((E = I.find((b) => b.type === "literal")) == null ? void 0 : E.value) ?? "";
|
|
3928
|
+
return [y, k, w];
|
|
3929
|
+
}, [p]), R = v.map((I) => `\\d{${I.length}}`).join(`\\${m}`);
|
|
3928
3930
|
return /* @__PURE__ */ r(
|
|
3929
|
-
|
|
3931
|
+
Ps,
|
|
3930
3932
|
{
|
|
3931
3933
|
role: "combobox",
|
|
3932
3934
|
type: "text",
|
|
@@ -3942,7 +3944,7 @@ const fs = s.forwardRef(
|
|
|
3942
3944
|
disabled: d,
|
|
3943
3945
|
"data-disabled": d ? "" : void 0,
|
|
3944
3946
|
pattern: R,
|
|
3945
|
-
placeholder: e ??
|
|
3947
|
+
placeholder: e ?? v.join(m),
|
|
3946
3948
|
...t,
|
|
3947
3949
|
value: i ?? "",
|
|
3948
3950
|
onBlur: Se(t.onBlur, () => {
|
|
@@ -3952,78 +3954,78 @@ const fs = s.forwardRef(
|
|
|
3952
3954
|
}
|
|
3953
3955
|
o.onTextValueChange(p.format(o.calendarDate.toDate(o.timeZone))), o.onValueChange(o.calendarDate);
|
|
3954
3956
|
}),
|
|
3955
|
-
onChange: Se(t.onChange, (
|
|
3956
|
-
if (hr(
|
|
3957
|
-
const
|
|
3958
|
-
const M =
|
|
3957
|
+
onChange: Se(t.onChange, (I) => {
|
|
3958
|
+
if (hr(I.target.value)) {
|
|
3959
|
+
const w = I.target.value.split(m), [y, k, E] = $.map((W, H) => {
|
|
3960
|
+
const M = w[H];
|
|
3959
3961
|
return {
|
|
3960
3962
|
...W,
|
|
3961
3963
|
value: M
|
|
3962
3964
|
};
|
|
3963
3965
|
}).sort((W, H) => W.type === "year" ? 1 : H.type === "year" ? -1 : W.type === "month" ? 1 : H.type === "month" ? -1 : 0).map((W) => W.value), b = o.calendarDate.year;
|
|
3964
|
-
let
|
|
3966
|
+
let D = o.calendarDate.year;
|
|
3965
3967
|
if (E) {
|
|
3966
3968
|
const W = E.length === 1 ? `0${E}` : E;
|
|
3967
|
-
|
|
3969
|
+
D = E.length < 3 ? Number(`${b}`.slice(0, 4 - W.length) + W) : Number(W);
|
|
3968
3970
|
}
|
|
3969
|
-
E && E.length < 3 &&
|
|
3970
|
-
const L = o.calendarDate.set({ year:
|
|
3971
|
+
E && E.length < 3 && D > o.maxDate.year && (D -= 100);
|
|
3972
|
+
const L = o.calendarDate.set({ year: D }), z = L.calendar.getMonthsInYear(L), O = L.set({
|
|
3971
3973
|
month: k && Number(k) <= z ? Number(k) : void 0
|
|
3972
3974
|
}), U = O.calendar.getDaysInMonth(O), N = O.set({
|
|
3973
|
-
day:
|
|
3975
|
+
day: y && Number(y) <= U ? Number(y) : void 0
|
|
3974
3976
|
});
|
|
3975
|
-
o.onCalendarDateChange(
|
|
3977
|
+
o.onCalendarDateChange(Ls(N, o.minDate, o.maxDate)), o.onTextValueChange(I.target.value);
|
|
3976
3978
|
}
|
|
3977
3979
|
}),
|
|
3978
|
-
onKeyDown: Se(t.onKeyDown, (
|
|
3979
|
-
if (!o.open && (hr(
|
|
3980
|
+
onKeyDown: Se(t.onKeyDown, (I) => {
|
|
3981
|
+
if (!o.open && (hr(I.key) || ["ArrowDown", "Backspace"].includes(I.key)))
|
|
3980
3982
|
g();
|
|
3981
|
-
else if (["Tab"].includes(
|
|
3982
|
-
|
|
3983
|
-
else if (["Escape"].includes(
|
|
3984
|
-
o.open ? o.onOpenChange(!1) : (o.onValueChange(void 0), o.onTextValueChange("")),
|
|
3985
|
-
else if (o.open && ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(
|
|
3986
|
-
switch (
|
|
3983
|
+
else if (["Tab"].includes(I.key) && o.open)
|
|
3984
|
+
I.preventDefault();
|
|
3985
|
+
else if (["Escape"].includes(I.key))
|
|
3986
|
+
o.open ? o.onOpenChange(!1) : (o.onValueChange(void 0), o.onTextValueChange("")), I.preventDefault();
|
|
3987
|
+
else if (o.open && ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(I.key))
|
|
3988
|
+
switch (I.preventDefault(), I.key) {
|
|
3987
3989
|
case "ArrowDown": {
|
|
3988
|
-
const
|
|
3989
|
-
if (o.maxDate &&
|
|
3990
|
+
const w = o.calendarDate.add({ weeks: 1 });
|
|
3991
|
+
if (o.maxDate && w.compare(o.maxDate) > 0)
|
|
3990
3992
|
return;
|
|
3991
|
-
o.onCalendarDateChange(
|
|
3993
|
+
o.onCalendarDateChange(w);
|
|
3992
3994
|
return;
|
|
3993
3995
|
}
|
|
3994
3996
|
case "ArrowRight": {
|
|
3995
|
-
const
|
|
3996
|
-
if (o.maxDate &&
|
|
3997
|
+
const w = o.calendarDate.add({ days: 1 });
|
|
3998
|
+
if (o.maxDate && w.compare(o.maxDate) > 0)
|
|
3997
3999
|
return;
|
|
3998
|
-
o.onCalendarDateChange(
|
|
4000
|
+
o.onCalendarDateChange(w);
|
|
3999
4001
|
return;
|
|
4000
4002
|
}
|
|
4001
4003
|
case "ArrowUp": {
|
|
4002
|
-
const
|
|
4003
|
-
if (o.minDate &&
|
|
4004
|
+
const w = o.calendarDate.subtract({ weeks: 1 });
|
|
4005
|
+
if (o.minDate && w.compare(o.minDate) < 0)
|
|
4004
4006
|
return;
|
|
4005
|
-
o.onCalendarDateChange(
|
|
4007
|
+
o.onCalendarDateChange(w);
|
|
4006
4008
|
return;
|
|
4007
4009
|
}
|
|
4008
4010
|
case "ArrowLeft": {
|
|
4009
|
-
const
|
|
4010
|
-
if (o.minDate &&
|
|
4011
|
+
const w = o.calendarDate.subtract({ days: 1 });
|
|
4012
|
+
if (o.minDate && w.compare(o.minDate) < 0)
|
|
4011
4013
|
return;
|
|
4012
|
-
o.onCalendarDateChange(
|
|
4014
|
+
o.onCalendarDateChange(w);
|
|
4013
4015
|
}
|
|
4014
4016
|
}
|
|
4015
|
-
else o.open && ["Enter"].includes(
|
|
4017
|
+
else o.open && ["Enter"].includes(I.key) && (I.preventDefault(), a(p.format(o.calendarDate.toDate(o.timeZone))), o.onValueChange(o.calendarDate), o.onOpenChange(!1));
|
|
4016
4018
|
})
|
|
4017
4019
|
}
|
|
4018
4020
|
);
|
|
4019
4021
|
}
|
|
4020
4022
|
);
|
|
4021
|
-
function
|
|
4023
|
+
function Ls(e, t, n) {
|
|
4022
4024
|
return t && (e = bt(e, t)), n && (e = mt(e, n)), e;
|
|
4023
4025
|
}
|
|
4024
|
-
const
|
|
4026
|
+
const Ps = u.input`
|
|
4025
4027
|
width: 100%;
|
|
4026
|
-
${
|
|
4028
|
+
${an}
|
|
4027
4029
|
color: ${({ theme: e }) => e.colors.neutral800};
|
|
4028
4030
|
border: none;
|
|
4029
4031
|
background-color: transparent;
|
|
@@ -4040,14 +4042,14 @@ const Ms = u.input`
|
|
|
4040
4042
|
&[aria-disabled='true'] {
|
|
4041
4043
|
cursor: inherit;
|
|
4042
4044
|
}
|
|
4043
|
-
`,
|
|
4044
|
-
const n = Ne(
|
|
4045
|
+
`, Ms = "DatePickerContent", Bs = s.forwardRef((e, t) => {
|
|
4046
|
+
const n = Ne(Ms), [o, a] = s.useState(!1);
|
|
4045
4047
|
return s.useEffect(() => {
|
|
4046
4048
|
n.open && !o && a(!0);
|
|
4047
|
-
}, [n.open, o]), !n.open && !o || !n.open ? null : /* @__PURE__ */ r(
|
|
4048
|
-
}),
|
|
4049
|
+
}, [n.open, o]), !n.open && !o || !n.open ? null : /* @__PURE__ */ r(Ws, { ...e, ref: t });
|
|
4050
|
+
}), Ns = "DatePickerContent", Ws = s.forwardRef(
|
|
4049
4051
|
(e, t) => {
|
|
4050
|
-
const { label: n = "Choose date", ...o } = e, { onOpenChange: a, ...i } = Ne(
|
|
4052
|
+
const { label: n = "Choose date", ...o } = e, { onOpenChange: a, ...i } = Ne(Ns), { x: l, y: c, refs: d, strategy: h, placement: f } = po({
|
|
4051
4053
|
strategy: "fixed",
|
|
4052
4054
|
placement: "bottom-start",
|
|
4053
4055
|
middleware: [
|
|
@@ -4076,7 +4078,7 @@ const Ms = u.input`
|
|
|
4076
4078
|
d.setFloating
|
|
4077
4079
|
);
|
|
4078
4080
|
return wo(), /* @__PURE__ */ r(Co, { allowPinchZoom: !0, children: /* @__PURE__ */ r(
|
|
4079
|
-
|
|
4081
|
+
us,
|
|
4080
4082
|
{
|
|
4081
4083
|
asChild: !0,
|
|
4082
4084
|
onFocusOutside: (p) => {
|
|
@@ -4086,7 +4088,7 @@ const Ms = u.input`
|
|
|
4086
4088
|
a(!1);
|
|
4087
4089
|
},
|
|
4088
4090
|
children: /* @__PURE__ */ r(
|
|
4089
|
-
|
|
4091
|
+
Fs,
|
|
4090
4092
|
{
|
|
4091
4093
|
ref: g,
|
|
4092
4094
|
"data-state": i.open ? "open" : "closed",
|
|
@@ -4110,7 +4112,7 @@ const Ms = u.input`
|
|
|
4110
4112
|
}
|
|
4111
4113
|
) });
|
|
4112
4114
|
}
|
|
4113
|
-
),
|
|
4115
|
+
), Fs = u(S)`
|
|
4114
4116
|
box-shadow: ${({ theme: e }) => e.shadows.filterShadow};
|
|
4115
4117
|
z-index: ${({ theme: e }) => e.zIndices.popover};
|
|
4116
4118
|
border: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
@@ -4130,20 +4132,20 @@ const Ms = u.input`
|
|
|
4130
4132
|
}
|
|
4131
4133
|
}
|
|
4132
4134
|
}
|
|
4133
|
-
`,
|
|
4135
|
+
`, Hs = "DatePickerCalendar", [Vs, js] = Be("DateFormatters"), _s = s.forwardRef(
|
|
4134
4136
|
({ monthSelectLabel: e, yearSelectLabel: t, ...n }, o) => {
|
|
4135
|
-
const { locale: a, timeZone: i, minDate: l, maxDate: c, calendarDate: d, onCalendarDateChange: h } = Ne(
|
|
4136
|
-
const b = l.year,
|
|
4137
|
-
return [...Array(
|
|
4138
|
-
}, [l, c]), p = he(a, { month: "long" }),
|
|
4137
|
+
const { locale: a, timeZone: i, minDate: l, maxDate: c, calendarDate: d, onCalendarDateChange: h } = Ne(Hs), f = Xn(d), g = s.useMemo(() => {
|
|
4138
|
+
const b = l.year, D = c.year;
|
|
4139
|
+
return [...Array(D - b + 1).keys()].map((L) => (b + L).toString());
|
|
4140
|
+
}, [l, c]), p = he(a, { month: "long" }), v = s.useMemo(
|
|
4139
4141
|
() => [...Array(d.calendar.getMonthsInYear(d)).keys()].map(
|
|
4140
4142
|
(b) => p.format(d.set({ month: b + 1 }).toDate(i))
|
|
4141
4143
|
),
|
|
4142
4144
|
[d, p, i]
|
|
4143
|
-
), m = he(a, { weekday: "short" }),
|
|
4144
|
-
const b =
|
|
4145
|
-
return [...new Array(7).keys()].map((
|
|
4146
|
-
const z = b.add({ days:
|
|
4145
|
+
), m = he(a, { weekday: "short" }), $ = s.useMemo(() => {
|
|
4146
|
+
const b = $r(Tt(i), a);
|
|
4147
|
+
return [...new Array(7).keys()].map((D) => {
|
|
4148
|
+
const z = b.add({ days: D }).toDate(i);
|
|
4147
4149
|
return m.format(z);
|
|
4148
4150
|
});
|
|
4149
4151
|
}, [i, a, m]), R = he(a, {
|
|
@@ -4151,39 +4153,39 @@ const Ms = u.input`
|
|
|
4151
4153
|
day: "numeric",
|
|
4152
4154
|
month: "long",
|
|
4153
4155
|
year: "numeric"
|
|
4154
|
-
}),
|
|
4156
|
+
}), I = he(a, {
|
|
4155
4157
|
day: "numeric",
|
|
4156
4158
|
calendar: d.calendar.identifier
|
|
4157
|
-
}),
|
|
4159
|
+
}), w = he(a, {
|
|
4158
4160
|
day: "2-digit",
|
|
4159
4161
|
month: "2-digit",
|
|
4160
4162
|
year: "numeric"
|
|
4161
|
-
}),
|
|
4163
|
+
}), y = (b) => {
|
|
4162
4164
|
if (typeof b == "number")
|
|
4163
4165
|
return;
|
|
4164
|
-
const
|
|
4165
|
-
h(
|
|
4166
|
+
const D = d.set({ month: v.indexOf(b) + 1 });
|
|
4167
|
+
h(D);
|
|
4166
4168
|
}, k = (b) => {
|
|
4167
4169
|
if (typeof b == "number")
|
|
4168
4170
|
return;
|
|
4169
|
-
const
|
|
4170
|
-
h(
|
|
4171
|
-
}, E =
|
|
4171
|
+
const D = d.set({ year: parseInt(b, 10) });
|
|
4172
|
+
h(D);
|
|
4173
|
+
}, E = Us(f, a);
|
|
4172
4174
|
return /* @__PURE__ */ r(
|
|
4173
|
-
|
|
4175
|
+
Vs,
|
|
4174
4176
|
{
|
|
4175
4177
|
dateFormatter: R,
|
|
4176
|
-
cellDateFormatter:
|
|
4177
|
-
textValueFormatter:
|
|
4178
|
-
children: /* @__PURE__ */
|
|
4179
|
-
/* @__PURE__ */
|
|
4178
|
+
cellDateFormatter: I,
|
|
4179
|
+
textValueFormatter: w,
|
|
4180
|
+
children: /* @__PURE__ */ x(C, { ref: o, direction: "column", alignItems: "stretch", padding: 4, ...n, children: [
|
|
4181
|
+
/* @__PURE__ */ x(Gs, { justifyContent: "flex-start", paddingBottom: 4, paddingLeft: 2, paddingRight: 2, gap: 2, children: [
|
|
4180
4182
|
/* @__PURE__ */ r(Re, { children: /* @__PURE__ */ r(
|
|
4181
4183
|
cr,
|
|
4182
4184
|
{
|
|
4183
4185
|
"aria-label": e,
|
|
4184
|
-
value:
|
|
4185
|
-
onChange:
|
|
4186
|
-
children:
|
|
4186
|
+
value: v[d.month - 1],
|
|
4187
|
+
onChange: y,
|
|
4188
|
+
children: v.map((b) => /* @__PURE__ */ r(dr, { value: b, children: b }, b))
|
|
4187
4189
|
}
|
|
4188
4190
|
) }),
|
|
4189
4191
|
/* @__PURE__ */ r(Re, { children: /* @__PURE__ */ r(
|
|
@@ -4196,43 +4198,43 @@ const Ms = u.input`
|
|
|
4196
4198
|
}
|
|
4197
4199
|
) })
|
|
4198
4200
|
] }),
|
|
4199
|
-
/* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */ r("thead", { "aria-hidden": !0, children: /* @__PURE__ */ r("tr", { "aria-rowindex": 0, children:
|
|
4201
|
+
/* @__PURE__ */ x("table", { role: "grid", children: [
|
|
4202
|
+
/* @__PURE__ */ r("thead", { "aria-hidden": !0, children: /* @__PURE__ */ r("tr", { "aria-rowindex": 0, children: $.map((b, D) => /* @__PURE__ */ r(qs, { "aria-colindex": D, children: b }, b)) }) }),
|
|
4201
4203
|
/* @__PURE__ */ r("tbody", { children: [...new Array(6).keys()].map((b) => /* @__PURE__ */ r("tr", { "aria-rowindex": b + 2, children: E(b).map(
|
|
4202
|
-
(
|
|
4203
|
-
|
|
4204
|
+
(D, L) => D ? /* @__PURE__ */ r(
|
|
4205
|
+
Qs,
|
|
4204
4206
|
{
|
|
4205
4207
|
"aria-colindex": L + 1,
|
|
4206
|
-
date:
|
|
4208
|
+
date: D,
|
|
4207
4209
|
startDate: f,
|
|
4208
|
-
disabled: l.compare(
|
|
4210
|
+
disabled: l.compare(D) > 0 || D.compare(c) > 0
|
|
4209
4211
|
},
|
|
4210
|
-
|
|
4211
|
-
) : /* @__PURE__ */ r(
|
|
4212
|
+
D.toString()
|
|
4213
|
+
) : /* @__PURE__ */ r(xn, { "aria-colindex": L + 1 }, L + 1)
|
|
4212
4214
|
) }, b)) })
|
|
4213
4215
|
] })
|
|
4214
4216
|
] })
|
|
4215
4217
|
}
|
|
4216
4218
|
);
|
|
4217
4219
|
}
|
|
4218
|
-
),
|
|
4220
|
+
), Us = (e, t) => (n) => {
|
|
4219
4221
|
let o = e.add({ weeks: n });
|
|
4220
4222
|
const a = [];
|
|
4221
|
-
o =
|
|
4222
|
-
const i =
|
|
4223
|
+
o = $r(o, t);
|
|
4224
|
+
const i = Zn(o, t);
|
|
4223
4225
|
for (let l = 0; l < i; l++)
|
|
4224
4226
|
a.push(null);
|
|
4225
4227
|
for (; a.length < 7; ) {
|
|
4226
4228
|
a.push(o);
|
|
4227
4229
|
const l = o.add({ days: 1 });
|
|
4228
|
-
if (
|
|
4230
|
+
if (xr(o, l))
|
|
4229
4231
|
break;
|
|
4230
4232
|
o = l;
|
|
4231
4233
|
}
|
|
4232
4234
|
for (; a.length < 7; )
|
|
4233
4235
|
a.push(null);
|
|
4234
4236
|
return a;
|
|
4235
|
-
},
|
|
4237
|
+
}, Gs = u(C)`
|
|
4236
4238
|
div[role='combobox'] {
|
|
4237
4239
|
border: 1px solid transparent;
|
|
4238
4240
|
background: transparent;
|
|
@@ -4246,20 +4248,20 @@ const Ms = u.input`
|
|
|
4246
4248
|
background-color: ${({ theme: e }) => e.colors.neutral100};
|
|
4247
4249
|
}
|
|
4248
4250
|
}
|
|
4249
|
-
`,
|
|
4250
|
-
({ children: e, ...t }, n) => /* @__PURE__ */ r(
|
|
4251
|
-
),
|
|
4251
|
+
`, qs = s.forwardRef(
|
|
4252
|
+
({ children: e, ...t }, n) => /* @__PURE__ */ r(Ks, { tag: "th", role: "gridcell", ref: n, ...t, height: "2.4rem", width: "3.2rem", children: /* @__PURE__ */ r(A, { variant: "pi", fontWeight: "bold", color: "neutral800", children: e.slice(0, 2) }) })
|
|
4253
|
+
), Ks = u(S)`
|
|
4252
4254
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
4253
4255
|
text-transform: capitalize;
|
|
4254
|
-
`,
|
|
4256
|
+
`, Ys = "DatePickerCalendarCell", Qs = s.forwardRef(
|
|
4255
4257
|
({ date: e, startDate: t, disabled: n, ...o }, a) => {
|
|
4256
|
-
const { timeZone: i, calendarDate: l, onValueChange: c, onOpenChange: d, onTextValueChange: h, onCalendarDateChange: f } = Ne(
|
|
4258
|
+
const { timeZone: i, calendarDate: l, onValueChange: c, onOpenChange: d, onTextValueChange: h, onCalendarDateChange: f } = Ne(Ys), { dateFormatter: g, cellDateFormatter: p, textValueFormatter: v } = js("DatePickerCalendarCell"), m = xr(l, e), $ = s.useMemo(() => g.format(e.toDate(i)), [g, e, i]), R = s.useMemo(
|
|
4257
4259
|
() => p.formatToParts(e.toDate(i)).find((k) => k.type === "day").value,
|
|
4258
4260
|
[p, e, i]
|
|
4259
|
-
),
|
|
4260
|
-
let
|
|
4261
|
-
return m ?
|
|
4262
|
-
|
|
4261
|
+
), I = Jn(t), w = e.compare(t) < 0 || e.compare(I) > 0;
|
|
4262
|
+
let y = "neutral900";
|
|
4263
|
+
return m ? y = "primary600" : w && (y = "neutral600"), /* @__PURE__ */ r(
|
|
4264
|
+
xn,
|
|
4263
4265
|
{
|
|
4264
4266
|
tag: "td",
|
|
4265
4267
|
role: "gridcell",
|
|
@@ -4267,19 +4269,19 @@ const Ms = u.input`
|
|
|
4267
4269
|
"aria-selected": m,
|
|
4268
4270
|
...o,
|
|
4269
4271
|
hasRadius: !0,
|
|
4270
|
-
"aria-label":
|
|
4272
|
+
"aria-label": $,
|
|
4271
4273
|
tabIndex: m ? 0 : -1,
|
|
4272
4274
|
background: m ? "primary100" : "neutral0",
|
|
4273
4275
|
cursor: "pointer",
|
|
4274
4276
|
onPointerDown: Se(o.onPointerDown, (k) => {
|
|
4275
|
-
k.preventDefault(), f(e), c(e), h(
|
|
4277
|
+
k.preventDefault(), f(e), c(e), h(v.format(e.toDate(i))), d(!1);
|
|
4276
4278
|
}),
|
|
4277
4279
|
"aria-disabled": n,
|
|
4278
|
-
children: /* @__PURE__ */ r(A, { variant: "pi", textColor:
|
|
4280
|
+
children: /* @__PURE__ */ r(A, { variant: "pi", textColor: y, children: R })
|
|
4279
4281
|
}
|
|
4280
4282
|
);
|
|
4281
4283
|
}
|
|
4282
|
-
),
|
|
4284
|
+
), xn = u(S)`
|
|
4283
4285
|
text-align: center;
|
|
4284
4286
|
padding: 0.7rem;
|
|
4285
4287
|
// Trick to prevent the outline from overflowing because of the general outline-offset
|
|
@@ -4296,15 +4298,15 @@ const Ms = u.input`
|
|
|
4296
4298
|
}
|
|
4297
4299
|
}
|
|
4298
4300
|
`, ve = (e) => {
|
|
4299
|
-
const t = e.toISOString(), n =
|
|
4300
|
-
return
|
|
4301
|
-
},
|
|
4302
|
-
function
|
|
4301
|
+
const t = e.toISOString(), n = Yn(t, "UTC");
|
|
4302
|
+
return Qn(n);
|
|
4303
|
+
}, Xs = s.memo(Ts), ht = (e) => !!e.match(/^[^a-zA-Z]*$/);
|
|
4304
|
+
function Zs(e = "") {
|
|
4303
4305
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4304
4306
|
}
|
|
4305
|
-
const
|
|
4307
|
+
const Js = u(Vi)`
|
|
4306
4308
|
min-width: ${({ onClear: e }) => e ? "160px" : "130px"};
|
|
4307
|
-
`,
|
|
4309
|
+
`, el = s.forwardRef(
|
|
4308
4310
|
({ step: e = 15, value: t, defaultValue: n, onChange: o, ...a }, i) => {
|
|
4309
4311
|
const l = lt("TimePicker"), [c, d] = s.useState(""), [h, f] = de({
|
|
4310
4312
|
prop: t,
|
|
@@ -4317,25 +4319,25 @@ const el = u(Vi)`
|
|
|
4317
4319
|
}), p = s.useMemo(() => {
|
|
4318
4320
|
const k = g.formatToParts(/* @__PURE__ */ new Date()), { value: E } = k.find((b) => b.type === "literal");
|
|
4319
4321
|
return E;
|
|
4320
|
-
}, [g]),
|
|
4322
|
+
}, [g]), v = s.useMemo(() => {
|
|
4321
4323
|
const k = 60 / e;
|
|
4322
4324
|
return [...Array(24).keys()].flatMap(
|
|
4323
4325
|
(E) => [...Array(k).keys()].map((b) => g.format(new Date(0, 0, 0, E, b * e)))
|
|
4324
4326
|
);
|
|
4325
4327
|
}, [e, g]), m = (k) => {
|
|
4326
4328
|
(!k || ht(k)) && d(k);
|
|
4327
|
-
},
|
|
4329
|
+
}, $ = (k) => {
|
|
4328
4330
|
const [E, b] = k.split(p);
|
|
4329
4331
|
if (!E && !b) return;
|
|
4330
|
-
const
|
|
4331
|
-
if (!(
|
|
4332
|
-
return g.format(new Date(0, 0, 0,
|
|
4332
|
+
const D = Number(E ?? "0"), L = Number(b ?? "0");
|
|
4333
|
+
if (!(D > 23 || L > 59))
|
|
4334
|
+
return g.format(new Date(0, 0, 0, D, L));
|
|
4333
4335
|
}, R = (k) => {
|
|
4334
|
-
const E =
|
|
4336
|
+
const E = $(k.target.value);
|
|
4335
4337
|
E ? (d(E), f(E)) : d(h);
|
|
4336
|
-
},
|
|
4338
|
+
}, I = (k) => {
|
|
4337
4339
|
if (typeof k < "u") {
|
|
4338
|
-
const E =
|
|
4340
|
+
const E = $(k);
|
|
4339
4341
|
f(E);
|
|
4340
4342
|
} else
|
|
4341
4343
|
f(k);
|
|
@@ -4344,25 +4346,25 @@ const el = u(Vi)`
|
|
|
4344
4346
|
const k = typeof t > "u" ? "" : t;
|
|
4345
4347
|
ht(k) && d(k);
|
|
4346
4348
|
}, [t, d]);
|
|
4347
|
-
const
|
|
4349
|
+
const y = `\\d{2}${Zs(p)}\\d{2}`;
|
|
4348
4350
|
return /* @__PURE__ */ r(
|
|
4349
|
-
|
|
4351
|
+
Js,
|
|
4350
4352
|
{
|
|
4351
4353
|
...a,
|
|
4352
4354
|
ref: i,
|
|
4353
4355
|
value: h,
|
|
4354
|
-
onChange:
|
|
4356
|
+
onChange: I,
|
|
4355
4357
|
isPrintableCharacter: ht,
|
|
4356
4358
|
allowCustomValue: !0,
|
|
4357
4359
|
placeholder: `--${p}--`,
|
|
4358
4360
|
autocomplete: "none",
|
|
4359
4361
|
startIcon: /* @__PURE__ */ r(fo, { fill: "neutral500" }),
|
|
4360
4362
|
inputMode: "numeric",
|
|
4361
|
-
pattern:
|
|
4363
|
+
pattern: y,
|
|
4362
4364
|
textValue: c,
|
|
4363
4365
|
onTextValueChange: m,
|
|
4364
4366
|
onBlur: R,
|
|
4365
|
-
children:
|
|
4367
|
+
children: v.map((k) => /* @__PURE__ */ r(Ki, { value: k, children: k }, k))
|
|
4366
4368
|
}
|
|
4367
4369
|
);
|
|
4368
4370
|
}
|
|
@@ -4381,10 +4383,10 @@ const el = u(Vi)`
|
|
|
4381
4383
|
initialDate: f,
|
|
4382
4384
|
size: g,
|
|
4383
4385
|
...p
|
|
4384
|
-
},
|
|
4385
|
-
const m = s.useRef(null), [
|
|
4386
|
+
}, v) => {
|
|
4387
|
+
const m = s.useRef(null), [$, R] = s.useState(!1), I = h ? Ve(h, !1) : void 0, [w, y] = de({
|
|
4386
4388
|
defaultProp: f ? Ve(f, !1) : void 0,
|
|
4387
|
-
prop:
|
|
4389
|
+
prop: $ ? void 0 : I,
|
|
4388
4390
|
onChange(P) {
|
|
4389
4391
|
i && i(P == null ? void 0 : P.toDate(pt()));
|
|
4390
4392
|
}
|
|
@@ -4392,44 +4394,44 @@ const el = u(Vi)`
|
|
|
4392
4394
|
hour: "2-digit",
|
|
4393
4395
|
minute: "2-digit",
|
|
4394
4396
|
hour12: !1
|
|
4395
|
-
}), b =
|
|
4397
|
+
}), b = w ? E.format(w.toDate(pt())) : "", D = s.useRef(h);
|
|
4396
4398
|
fe(() => {
|
|
4397
|
-
|
|
4398
|
-
}, [
|
|
4399
|
-
const P =
|
|
4400
|
-
h == null && P != null &&
|
|
4401
|
-
}, [h, $,
|
|
4402
|
-
|
|
4403
|
-
}, [
|
|
4399
|
+
$ && w && y(void 0);
|
|
4400
|
+
}, [$, w, y]), fe(() => {
|
|
4401
|
+
const P = D.current;
|
|
4402
|
+
h == null && P != null && w && y(void 0), $ && h !== P && R(!1), D.current = h;
|
|
4403
|
+
}, [h, w, $, y, R]), fe(() => {
|
|
4404
|
+
$ && w === void 0 && h == null && R(!1);
|
|
4405
|
+
}, [$, w, h, R]);
|
|
4404
4406
|
const L = (P) => {
|
|
4405
4407
|
let B = P ? Ve(P) : void 0;
|
|
4406
4408
|
if (b && B) {
|
|
4407
4409
|
const [X, G] = b.split(":");
|
|
4408
4410
|
B = B.set({ hour: parseInt(X, 10), minute: parseInt(G, 10) });
|
|
4409
4411
|
}
|
|
4410
|
-
|
|
4412
|
+
y(B);
|
|
4411
4413
|
}, z = (P) => {
|
|
4412
4414
|
if (!P)
|
|
4413
4415
|
return;
|
|
4414
|
-
const [B, X] = P.split(":"), G =
|
|
4416
|
+
const [B, X] = P.split(":"), G = w ? w.set({ hour: parseInt(B, 10), minute: parseInt(X, 10) }) : Ve(/* @__PURE__ */ new Date()).set({
|
|
4415
4417
|
hour: parseInt(B, 10),
|
|
4416
4418
|
minute: parseInt(X, 10)
|
|
4417
4419
|
});
|
|
4418
|
-
|
|
4420
|
+
y(G);
|
|
4419
4421
|
}, O = (P) => {
|
|
4420
4422
|
P.preventDefault(), R(!0), l && l(P);
|
|
4421
4423
|
}, U = () => {
|
|
4422
|
-
const P =
|
|
4423
|
-
|
|
4424
|
-
}, N = te(m,
|
|
4425
|
-
return /* @__PURE__ */
|
|
4424
|
+
const P = w ? w.set({ hour: 0, minute: 0 }) : Ve(/* @__PURE__ */ new Date());
|
|
4425
|
+
y(P);
|
|
4426
|
+
}, N = te(m, v), { error: W, id: H, labelNode: M } = ne("DateTimePicker"), q = !!W || a;
|
|
4427
|
+
return /* @__PURE__ */ x(C, { "aria-labelledby": M ? `${H}-label` : void 0, role: "group", flex: "1", gap: 1, wrap: "wrap", children: [
|
|
4426
4428
|
/* @__PURE__ */ r(Re, { flex: "1", children: /* @__PURE__ */ r(
|
|
4427
|
-
|
|
4429
|
+
Xs,
|
|
4428
4430
|
{
|
|
4429
4431
|
...p,
|
|
4430
4432
|
hasError: q,
|
|
4431
4433
|
size: g,
|
|
4432
|
-
value:
|
|
4434
|
+
value: w == null ? void 0 : w.toDate("UTC"),
|
|
4433
4435
|
onChange: L,
|
|
4434
4436
|
required: c,
|
|
4435
4437
|
onClear: l ? O : void 0,
|
|
@@ -4440,7 +4442,7 @@ const el = u(Vi)`
|
|
|
4440
4442
|
}
|
|
4441
4443
|
) }),
|
|
4442
4444
|
/* @__PURE__ */ r(Re, { flex: "1", children: /* @__PURE__ */ r(
|
|
4443
|
-
|
|
4445
|
+
el,
|
|
4444
4446
|
{
|
|
4445
4447
|
size: g,
|
|
4446
4448
|
hasError: q,
|
|
@@ -4458,10 +4460,10 @@ const el = u(Vi)`
|
|
|
4458
4460
|
}
|
|
4459
4461
|
), Ve = (e, t = !0) => {
|
|
4460
4462
|
const n = e.toISOString();
|
|
4461
|
-
let o =
|
|
4462
|
-
return t && (o = o.set({ hour: 0, minute: 0 })),
|
|
4463
|
-
},
|
|
4464
|
-
|
|
4463
|
+
let o = eo(n);
|
|
4464
|
+
return t && (o = o.set({ hour: 0, minute: 0 })), to(o);
|
|
4465
|
+
}, wn = s.forwardRef((e, t) => /* @__PURE__ */ r(
|
|
4466
|
+
tl,
|
|
4465
4467
|
{
|
|
4466
4468
|
ref: t,
|
|
4467
4469
|
background: "neutral150",
|
|
@@ -4470,18 +4472,18 @@ const el = u(Vi)`
|
|
|
4470
4472
|
role: "separator",
|
|
4471
4473
|
tag: "div"
|
|
4472
4474
|
}
|
|
4473
|
-
)),
|
|
4475
|
+
)), tl = u(S)`
|
|
4474
4476
|
height: 1px;
|
|
4475
4477
|
border: none;
|
|
4476
4478
|
/* If contained in a Flex parent we want to prevent the Divider to shink */
|
|
4477
4479
|
flex-shrink: 0;
|
|
4478
|
-
`,
|
|
4480
|
+
`, rl = u(S)`
|
|
4479
4481
|
svg {
|
|
4480
4482
|
height: 8.8rem;
|
|
4481
4483
|
}
|
|
4482
4484
|
`, Wd = s.forwardRef(
|
|
4483
|
-
({ icon: e, content: t, action: n, hasRadius: o = !0, shadow: a = "tableShadow" }, i) => /* @__PURE__ */
|
|
4484
|
-
|
|
4485
|
+
({ icon: e, content: t, action: n, hasRadius: o = !0, shadow: a = "tableShadow" }, i) => /* @__PURE__ */ x(
|
|
4486
|
+
C,
|
|
4485
4487
|
{
|
|
4486
4488
|
ref: i,
|
|
4487
4489
|
alignItems: "center",
|
|
@@ -4491,26 +4493,26 @@ const el = u(Vi)`
|
|
|
4491
4493
|
hasRadius: o,
|
|
4492
4494
|
shadow: a,
|
|
4493
4495
|
children: [
|
|
4494
|
-
e ? /* @__PURE__ */ r(
|
|
4496
|
+
e ? /* @__PURE__ */ r(rl, { paddingBottom: 6, "aria-hidden": !0, children: e }) : null,
|
|
4495
4497
|
/* @__PURE__ */ r(S, { paddingBottom: 4, children: /* @__PURE__ */ r(A, { variant: "delta", tag: "p", textAlign: "center", textColor: "neutral600", children: t }) }),
|
|
4496
4498
|
n
|
|
4497
4499
|
]
|
|
4498
4500
|
}
|
|
4499
4501
|
)
|
|
4500
|
-
),
|
|
4502
|
+
), yn = Sr.define(), Cn = Sr.define(), nl = Rr.mark({
|
|
4501
4503
|
attributes: { style: "background-color: yellow; color: black" }
|
|
4502
|
-
}),
|
|
4504
|
+
}), ol = To.define({
|
|
4503
4505
|
// Start with an empty set of decorations
|
|
4504
4506
|
create() {
|
|
4505
|
-
return
|
|
4507
|
+
return Rr.none;
|
|
4506
4508
|
},
|
|
4507
4509
|
// This is called whenever the editor updates it computes the new set
|
|
4508
4510
|
update(e, t) {
|
|
4509
4511
|
return e = e.map(t.changes), t.effects.forEach((n) => {
|
|
4510
|
-
n.is(
|
|
4512
|
+
n.is(yn) ? e = e.update({
|
|
4511
4513
|
add: n.value,
|
|
4512
4514
|
sort: !0
|
|
4513
|
-
}) : n.is(
|
|
4515
|
+
}) : n.is(Cn) && (e = e.update({ filter: n.value }));
|
|
4514
4516
|
}), e;
|
|
4515
4517
|
},
|
|
4516
4518
|
// Indicate that this field provides a set of decorations
|
|
@@ -4525,41 +4527,41 @@ const el = u(Vi)`
|
|
|
4525
4527
|
onChange: i = () => null,
|
|
4526
4528
|
...l
|
|
4527
4529
|
}, c) => {
|
|
4528
|
-
const d = s.useRef(), h = s.useRef(), f = s.useRef(), { error: g, ...p } = ne("JsonInput"),
|
|
4530
|
+
const d = s.useRef(), h = s.useRef(), f = s.useRef(), { error: g, ...p } = ne("JsonInput"), v = !!g || e, m = p.id ?? n, $ = p.required || t;
|
|
4529
4531
|
let R;
|
|
4530
4532
|
g ? R = `${m}-error` : p.hint && (R = `${m}-hint`);
|
|
4531
|
-
const
|
|
4533
|
+
const I = (z) => {
|
|
4532
4534
|
var U, N;
|
|
4533
4535
|
const O = (U = h.current) == null ? void 0 : U.doc;
|
|
4534
4536
|
if (O) {
|
|
4535
4537
|
const { text: W, to: H } = O.line(z), M = H - W.trimStart().length;
|
|
4536
4538
|
H > M && ((N = f.current) == null || N.dispatch({
|
|
4537
|
-
effects:
|
|
4539
|
+
effects: yn.of([nl.range(M, H)])
|
|
4538
4540
|
}));
|
|
4539
4541
|
}
|
|
4540
|
-
},
|
|
4542
|
+
}, w = () => {
|
|
4541
4543
|
var O, U;
|
|
4542
4544
|
const z = (O = h.current) == null ? void 0 : O.doc;
|
|
4543
4545
|
if (z) {
|
|
4544
4546
|
const N = z.length || 0;
|
|
4545
4547
|
(U = f.current) == null || U.dispatch({
|
|
4546
|
-
effects:
|
|
4548
|
+
effects: Cn.of((W, H) => H <= 0 || W >= N)
|
|
4547
4549
|
});
|
|
4548
4550
|
}
|
|
4549
|
-
},
|
|
4550
|
-
f.current = O, h.current = z,
|
|
4551
|
+
}, y = ({ state: z, view: O }) => {
|
|
4552
|
+
f.current = O, h.current = z, w();
|
|
4551
4553
|
const N = So()(O);
|
|
4552
|
-
N.length &&
|
|
4554
|
+
N.length && I(z.doc.lineAt(N[0].from).number);
|
|
4553
4555
|
}, k = (z, O) => {
|
|
4554
|
-
|
|
4556
|
+
y(O), i(z);
|
|
4555
4557
|
}, E = (z, O) => {
|
|
4556
|
-
f.current = z, h.current = O,
|
|
4557
|
-
}, { setContainer: b, view:
|
|
4558
|
+
f.current = z, h.current = O, y({ view: z, state: O });
|
|
4559
|
+
}, { setContainer: b, view: D } = Ro({
|
|
4558
4560
|
value: o,
|
|
4559
4561
|
onCreateEditor: E,
|
|
4560
4562
|
container: d.current,
|
|
4561
4563
|
editable: !a,
|
|
4562
|
-
extensions: [ko(),
|
|
4564
|
+
extensions: [ko(), ol],
|
|
4563
4565
|
onChange: k,
|
|
4564
4566
|
theme: "dark",
|
|
4565
4567
|
basicSetup: {
|
|
@@ -4575,31 +4577,31 @@ const el = u(Vi)`
|
|
|
4575
4577
|
return s.useImperativeHandle(
|
|
4576
4578
|
c,
|
|
4577
4579
|
() => ({
|
|
4578
|
-
...
|
|
4580
|
+
...D == null ? void 0 : D.dom,
|
|
4579
4581
|
focus() {
|
|
4580
|
-
|
|
4582
|
+
D && D.focus();
|
|
4581
4583
|
},
|
|
4582
4584
|
scrollIntoView(z) {
|
|
4583
|
-
|
|
4585
|
+
D && D.dom.scrollIntoView(z);
|
|
4584
4586
|
}
|
|
4585
4587
|
}),
|
|
4586
|
-
[
|
|
4588
|
+
[D]
|
|
4587
4589
|
), /* @__PURE__ */ r(
|
|
4588
|
-
|
|
4590
|
+
al,
|
|
4589
4591
|
{
|
|
4590
4592
|
ref: L,
|
|
4591
4593
|
$disabled: a,
|
|
4592
|
-
$hasError:
|
|
4594
|
+
$hasError: v,
|
|
4593
4595
|
alignItems: "stretch",
|
|
4594
4596
|
hasRadius: !0,
|
|
4595
|
-
"aria-required":
|
|
4597
|
+
"aria-required": $,
|
|
4596
4598
|
id: m,
|
|
4597
4599
|
"aria-describedby": R,
|
|
4598
4600
|
...l
|
|
4599
4601
|
}
|
|
4600
4602
|
);
|
|
4601
4603
|
}
|
|
4602
|
-
),
|
|
4604
|
+
), al = u(C)`
|
|
4603
4605
|
font-size: ${({ theme: e }) => e.fontSizes[3]};
|
|
4604
4606
|
line-height: ${({ theme: e }) => e.lineHeights[6]};
|
|
4605
4607
|
|
|
@@ -4648,12 +4650,12 @@ const el = u(Vi)`
|
|
|
4648
4650
|
...t
|
|
4649
4651
|
}
|
|
4650
4652
|
)
|
|
4651
|
-
),
|
|
4653
|
+
), il = u(S)`
|
|
4652
4654
|
// To prevent global outline on focus visible to force an outline when Main is focused
|
|
4653
4655
|
&:focus-visible {
|
|
4654
4656
|
outline: none;
|
|
4655
4657
|
}
|
|
4656
|
-
`, Vd = ({ labelledBy: e = "main-content-title", ...t }) => /* @__PURE__ */ r(
|
|
4658
|
+
`, Vd = ({ labelledBy: e = "main-content-title", ...t }) => /* @__PURE__ */ r(il, { "aria-labelledby": e, tag: "main", id: "main-content", tabIndex: -1, ...t }), sl = u(S)`
|
|
4657
4659
|
text-decoration: none;
|
|
4658
4660
|
|
|
4659
4661
|
&:focus {
|
|
@@ -4661,7 +4663,7 @@ const el = u(Vi)`
|
|
|
4661
4663
|
top: ${({ theme: e }) => e.spaces[3]};
|
|
4662
4664
|
}
|
|
4663
4665
|
`, jd = ({ children: e }) => /* @__PURE__ */ r(
|
|
4664
|
-
|
|
4666
|
+
sl,
|
|
4665
4667
|
{
|
|
4666
4668
|
tag: "a",
|
|
4667
4669
|
href: "#main-content",
|
|
@@ -4675,8 +4677,8 @@ const el = u(Vi)`
|
|
|
4675
4677
|
zIndex: 9999,
|
|
4676
4678
|
children: e
|
|
4677
4679
|
}
|
|
4678
|
-
),
|
|
4679
|
-
background: ${(e) =>
|
|
4680
|
+
), ll = Ie.Root, cl = s.forwardRef((e, t) => /* @__PURE__ */ r(Ie.Trigger, { ...e, asChild: !0, ref: t })), dl = s.forwardRef((e, t) => /* @__PURE__ */ r(Ie.Portal, { children: /* @__PURE__ */ r(ul, { children: /* @__PURE__ */ r(hl, { ref: t, ...e }) }) })), ul = u(Ie.Overlay)`
|
|
4681
|
+
background: ${(e) => sn(e.theme.colors.neutral800, 0.2)};
|
|
4680
4682
|
position: fixed;
|
|
4681
4683
|
inset: 0;
|
|
4682
4684
|
z-index: ${(e) => e.theme.zIndices.overlay};
|
|
@@ -4686,7 +4688,7 @@ const el = u(Vi)`
|
|
|
4686
4688
|
animation: ${_.overlayFadeIn} ${(e) => e.theme.motion.timings[200]}
|
|
4687
4689
|
${(e) => e.theme.motion.easings.authenticMotion};
|
|
4688
4690
|
}
|
|
4689
|
-
`,
|
|
4691
|
+
`, hl = u(Ie.Content)`
|
|
4690
4692
|
max-width: 83rem;
|
|
4691
4693
|
max-height: 90vh;
|
|
4692
4694
|
height: auto;
|
|
@@ -4727,9 +4729,9 @@ const el = u(Vi)`
|
|
|
4727
4729
|
animation-name: ${_.modalPopOut};
|
|
4728
4730
|
}
|
|
4729
4731
|
}
|
|
4730
|
-
`,
|
|
4731
|
-
({ children: e, closeLabel: t = "Close modal", ...n }, o) => /* @__PURE__ */
|
|
4732
|
-
|
|
4732
|
+
`, vn = s.forwardRef((e, t) => /* @__PURE__ */ r(Ie.Close, { ...e, asChild: !0, ref: t })), fl = s.forwardRef(
|
|
4733
|
+
({ children: e, closeLabel: t = "Close modal", ...n }, o) => /* @__PURE__ */ x(
|
|
4734
|
+
gl,
|
|
4733
4735
|
{
|
|
4734
4736
|
ref: o,
|
|
4735
4737
|
padding: 4,
|
|
@@ -4741,13 +4743,13 @@ const el = u(Vi)`
|
|
|
4741
4743
|
tag: "header",
|
|
4742
4744
|
children: [
|
|
4743
4745
|
e,
|
|
4744
|
-
/* @__PURE__ */ r(
|
|
4746
|
+
/* @__PURE__ */ r(vn, { children: /* @__PURE__ */ r(be, { withTooltip: !1, label: t, children: /* @__PURE__ */ r(Te, {}) }) })
|
|
4745
4747
|
]
|
|
4746
4748
|
}
|
|
4747
4749
|
)
|
|
4748
|
-
),
|
|
4750
|
+
), gl = u(C)`
|
|
4749
4751
|
border-bottom: solid 1px ${(e) => e.theme.colors.neutral150};
|
|
4750
|
-
`,
|
|
4752
|
+
`, pl = s.forwardRef((e, t) => /* @__PURE__ */ r(Ie.Title, { asChild: !0, children: /* @__PURE__ */ r(A, { tag: "h2", variant: "omega", fontWeight: "bold", ref: t, ...e }) })), ml = s.forwardRef(({ children: e, ...t }, n) => /* @__PURE__ */ r(bl, { ref: n, ...t, children: e })), bl = u(st)`
|
|
4751
4753
|
padding-inline: ${(e) => e.theme.spaces[7]};
|
|
4752
4754
|
|
|
4753
4755
|
& > div {
|
|
@@ -4762,8 +4764,8 @@ const el = u(Vi)`
|
|
|
4762
4764
|
display: block !important;
|
|
4763
4765
|
}
|
|
4764
4766
|
}
|
|
4765
|
-
`,
|
|
4766
|
-
|
|
4767
|
+
`, $l = s.forwardRef((e, t) => /* @__PURE__ */ r(
|
|
4768
|
+
xl,
|
|
4767
4769
|
{
|
|
4768
4770
|
ref: t,
|
|
4769
4771
|
padding: 4,
|
|
@@ -4774,52 +4776,52 @@ const el = u(Vi)`
|
|
|
4774
4776
|
...e,
|
|
4775
4777
|
tag: "footer"
|
|
4776
4778
|
}
|
|
4777
|
-
)),
|
|
4779
|
+
)), xl = u(C)`
|
|
4778
4780
|
border-top: solid 1px ${(e) => e.theme.colors.neutral150};
|
|
4779
4781
|
flex: 1;
|
|
4780
4782
|
`, _d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4781
4783
|
__proto__: null,
|
|
4782
|
-
Body:
|
|
4783
|
-
Close:
|
|
4784
|
-
Content:
|
|
4785
|
-
Footer:
|
|
4786
|
-
Header:
|
|
4787
|
-
Root:
|
|
4788
|
-
Title:
|
|
4789
|
-
Trigger:
|
|
4790
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4784
|
+
Body: ml,
|
|
4785
|
+
Close: vn,
|
|
4786
|
+
Content: dl,
|
|
4787
|
+
Footer: $l,
|
|
4788
|
+
Header: fl,
|
|
4789
|
+
Root: ll,
|
|
4790
|
+
Title: pl,
|
|
4791
|
+
Trigger: cl
|
|
4792
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = "", Ud = s.forwardRef(
|
|
4791
4793
|
({ startAction: e, locale: t, onValueChange: n, value: o, step: a = 1, disabled: i = !1, ...l }, c) => {
|
|
4792
|
-
const d = lt("NumberInput"), h = t || d.locale, f = s.useRef(new Do(h, { style: "decimal" })), g = s.useRef(new Eo(h, { maximumFractionDigits: 20 })), [p,
|
|
4794
|
+
const d = lt("NumberInput"), h = t || d.locale, f = s.useRef(new Do(h, { style: "decimal" })), g = s.useRef(new Eo(h, { maximumFractionDigits: 20 })), [p, v] = yl({
|
|
4793
4795
|
prop(b) {
|
|
4794
|
-
const
|
|
4795
|
-
return isNaN(Number(
|
|
4796
|
+
const D = String(o);
|
|
4797
|
+
return isNaN(Number(D)) || D !== b && b !== "" ? b : g.current.format(Number(o));
|
|
4796
4798
|
},
|
|
4797
|
-
defaultProp:
|
|
4799
|
+
defaultProp: wl,
|
|
4798
4800
|
onChange(b) {
|
|
4799
4801
|
if (!n) return;
|
|
4800
|
-
const
|
|
4801
|
-
n(isNaN(
|
|
4802
|
+
const D = f.current.parse(b ?? "");
|
|
4803
|
+
n(isNaN(D) ? void 0 : D);
|
|
4802
4804
|
}
|
|
4803
4805
|
}), m = (b) => {
|
|
4804
|
-
|
|
4805
|
-
},
|
|
4806
|
+
v(String(b));
|
|
4807
|
+
}, $ = ({ target: { value: b } }) => {
|
|
4806
4808
|
f.current.isValidPartialNumber(b) && m(b);
|
|
4807
|
-
},
|
|
4808
|
-
const
|
|
4809
|
-
return
|
|
4810
|
-
})(a),
|
|
4809
|
+
}, I = ((b) => {
|
|
4810
|
+
const D = b.toString();
|
|
4811
|
+
return D.includes(".") ? D.split(".")[1].length : 0;
|
|
4812
|
+
})(a), w = () => {
|
|
4811
4813
|
if (!p) {
|
|
4812
4814
|
m(a);
|
|
4813
4815
|
return;
|
|
4814
4816
|
}
|
|
4815
|
-
const b = f.current.parse(p),
|
|
4817
|
+
const b = f.current.parse(p), D = isNaN(b) ? a : b + a, L = parseFloat(D.toFixed(I));
|
|
4816
4818
|
m(g.current.format(L));
|
|
4817
|
-
},
|
|
4819
|
+
}, y = () => {
|
|
4818
4820
|
if (!p) {
|
|
4819
4821
|
m(-a);
|
|
4820
4822
|
return;
|
|
4821
4823
|
}
|
|
4822
|
-
const b = f.current.parse(p),
|
|
4824
|
+
const b = f.current.parse(p), D = isNaN(b) ? -a : b - a, L = parseFloat(D.toFixed(I));
|
|
4823
4825
|
m(g.current.format(L));
|
|
4824
4826
|
};
|
|
4825
4827
|
return /* @__PURE__ */ r(
|
|
@@ -4830,35 +4832,35 @@ const el = u(Vi)`
|
|
|
4830
4832
|
disabled: i,
|
|
4831
4833
|
type: "text",
|
|
4832
4834
|
inputMode: "decimal",
|
|
4833
|
-
onChange:
|
|
4835
|
+
onChange: $,
|
|
4834
4836
|
onKeyDown: (b) => {
|
|
4835
4837
|
if (!i)
|
|
4836
4838
|
switch (b.key) {
|
|
4837
4839
|
case F.DOWN: {
|
|
4838
|
-
b.preventDefault(),
|
|
4840
|
+
b.preventDefault(), y();
|
|
4839
4841
|
break;
|
|
4840
4842
|
}
|
|
4841
4843
|
case F.UP: {
|
|
4842
|
-
b.preventDefault(),
|
|
4844
|
+
b.preventDefault(), w();
|
|
4843
4845
|
break;
|
|
4844
4846
|
}
|
|
4845
4847
|
}
|
|
4846
4848
|
},
|
|
4847
4849
|
onBlur: () => {
|
|
4848
4850
|
if (p) {
|
|
4849
|
-
const b = f.current.parse(p),
|
|
4850
|
-
m(
|
|
4851
|
+
const b = f.current.parse(p), D = isNaN(b) ? "" : g.current.format(b);
|
|
4852
|
+
m(D);
|
|
4851
4853
|
}
|
|
4852
4854
|
},
|
|
4853
4855
|
value: p,
|
|
4854
|
-
endAction: /* @__PURE__ */
|
|
4856
|
+
endAction: /* @__PURE__ */ x(C, { direction: "column", children: [
|
|
4855
4857
|
/* @__PURE__ */ r(
|
|
4856
4858
|
fr,
|
|
4857
4859
|
{
|
|
4858
4860
|
disabled: i,
|
|
4859
4861
|
"aria-hidden": !0,
|
|
4860
4862
|
$reverse: !0,
|
|
4861
|
-
onClick:
|
|
4863
|
+
onClick: w,
|
|
4862
4864
|
tabIndex: -1,
|
|
4863
4865
|
type: "button",
|
|
4864
4866
|
"data-testid": "ArrowUp",
|
|
@@ -4870,7 +4872,7 @@ const el = u(Vi)`
|
|
|
4870
4872
|
{
|
|
4871
4873
|
disabled: i,
|
|
4872
4874
|
"aria-hidden": !0,
|
|
4873
|
-
onClick:
|
|
4875
|
+
onClick: y,
|
|
4874
4876
|
tabIndex: -1,
|
|
4875
4877
|
type: "button",
|
|
4876
4878
|
"data-testid": "ArrowDown",
|
|
@@ -4895,16 +4897,16 @@ const el = u(Vi)`
|
|
|
4895
4897
|
transform: ${({ $reverse: e }) => e ? "rotateX(180deg)" : void 0};
|
|
4896
4898
|
}
|
|
4897
4899
|
`;
|
|
4898
|
-
function
|
|
4900
|
+
function yl({
|
|
4899
4901
|
prop: e,
|
|
4900
4902
|
defaultProp: t,
|
|
4901
4903
|
onChange: n = () => {
|
|
4902
4904
|
}
|
|
4903
4905
|
}) {
|
|
4904
|
-
const [o, a] =
|
|
4906
|
+
const [o, a] = Lr({
|
|
4905
4907
|
defaultProp: t,
|
|
4906
4908
|
onChange: n
|
|
4907
|
-
}), i = e !== void 0, l = e instanceof Function ? e(o) : e, c = i ? l : o, d =
|
|
4909
|
+
}), i = e !== void 0, l = e instanceof Function ? e(o) : e, c = i ? l : o, d = wr(n), h = s.useCallback(
|
|
4908
4910
|
(f) => {
|
|
4909
4911
|
if (i) {
|
|
4910
4912
|
const p = typeof f == "function" ? f(l) : f;
|
|
@@ -4916,26 +4918,26 @@ function Cl({
|
|
|
4916
4918
|
);
|
|
4917
4919
|
return [c, h];
|
|
4918
4920
|
}
|
|
4919
|
-
const
|
|
4921
|
+
const kn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useContext(kn), Gd = ({ children: e, label: t = "Pagination", activePage: n, pageCount: o }) => {
|
|
4920
4922
|
const a = s.useMemo(() => ({ activePage: n, pageCount: o }), [n, o]);
|
|
4921
|
-
return /* @__PURE__ */ r(
|
|
4923
|
+
return /* @__PURE__ */ r(kn.Provider, { value: a, children: /* @__PURE__ */ r(S, { "aria-label": t, tag: "nav", children: /* @__PURE__ */ r(C, { tag: "ol", gap: 1, children: s.Children.map(e, (i, l) => /* @__PURE__ */ r("li", { children: i }, l)) }) }) });
|
|
4922
4924
|
}, qd = ee(
|
|
4923
4925
|
({ children: e, ...t }, n) => {
|
|
4924
4926
|
const { activePage: o } = Ht(), a = o === 1;
|
|
4925
|
-
return /* @__PURE__ */
|
|
4927
|
+
return /* @__PURE__ */ x(Rn, { ref: n, "aria-disabled": a, tabIndex: a ? -1 : void 0, ...t, children: [
|
|
4926
4928
|
/* @__PURE__ */ r($e, { children: e }),
|
|
4927
|
-
/* @__PURE__ */ r(
|
|
4929
|
+
/* @__PURE__ */ r(Cr, { "aria-hidden": !0 })
|
|
4928
4930
|
] });
|
|
4929
4931
|
}
|
|
4930
4932
|
), Kd = ee(
|
|
4931
4933
|
({ children: e, ...t }, n) => {
|
|
4932
4934
|
const { activePage: o, pageCount: a } = Ht(), i = o === a;
|
|
4933
|
-
return /* @__PURE__ */
|
|
4935
|
+
return /* @__PURE__ */ x(Rn, { ref: n, "aria-disabled": i, tabIndex: i ? -1 : void 0, ...t, children: [
|
|
4934
4936
|
/* @__PURE__ */ r($e, { children: e }),
|
|
4935
4937
|
/* @__PURE__ */ r(Dt, { "aria-hidden": !0 })
|
|
4936
4938
|
] });
|
|
4937
4939
|
}
|
|
4938
|
-
),
|
|
4940
|
+
), Sn = u(qe)`
|
|
4939
4941
|
padding: ${({ theme: e }) => e.spaces[3]};
|
|
4940
4942
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
4941
4943
|
box-shadow: ${({ $active: e, theme: t }) => e ? t.shadows.filterShadow : void 0};
|
|
@@ -4943,7 +4945,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
4943
4945
|
display: flex;
|
|
4944
4946
|
|
|
4945
4947
|
${nt}
|
|
4946
|
-
`,
|
|
4948
|
+
`, Rn = u(Sn)`
|
|
4947
4949
|
font-size: 1.1rem;
|
|
4948
4950
|
|
|
4949
4951
|
svg path {
|
|
@@ -4963,22 +4965,22 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
4963
4965
|
`, Yd = ee(
|
|
4964
4966
|
({ number: e, children: t, ...n }, o) => {
|
|
4965
4967
|
const { activePage: a } = Ht(), i = a === e;
|
|
4966
|
-
return /* @__PURE__ */
|
|
4968
|
+
return /* @__PURE__ */ x(Cl, { ref: o, ...n, "aria-current": i, $active: i, children: [
|
|
4967
4969
|
/* @__PURE__ */ r($e, { children: t }),
|
|
4968
4970
|
/* @__PURE__ */ r(A, { "aria-hidden": !0, fontWeight: i ? "bold" : void 0, lineHeight: "revert", variant: "pi", children: e })
|
|
4969
4971
|
] });
|
|
4970
4972
|
}
|
|
4971
|
-
),
|
|
4973
|
+
), Cl = u(Sn)`
|
|
4972
4974
|
color: ${({ theme: e, $active: t }) => t ? e.colors.primary700 : e.colors.neutral800};
|
|
4973
4975
|
background: ${({ theme: e, $active: t }) => t ? e.colors.neutral0 : void 0};
|
|
4974
4976
|
|
|
4975
4977
|
&:hover {
|
|
4976
4978
|
box-shadow: ${({ theme: e }) => e.shadows.filterShadow};
|
|
4977
4979
|
}
|
|
4978
|
-
`, Qd = ({ children: e, ...t }) => /* @__PURE__ */
|
|
4980
|
+
`, Qd = ({ children: e, ...t }) => /* @__PURE__ */ x(S, { ...t, children: [
|
|
4979
4981
|
/* @__PURE__ */ r($e, { children: e }),
|
|
4980
4982
|
/* @__PURE__ */ r(A, { "aria-hidden": !0, lineHeight: "revert", textColor: "neutral800", variant: "pi", children: "…" })
|
|
4981
|
-
] }),
|
|
4983
|
+
] }), vl = Me.Root, kl = Me.Anchor, Sl = Me.Arrow, Rl = s.forwardRef((e, t) => /* @__PURE__ */ r(Me.Trigger, { ...e, asChild: !0, ref: t })), Tl = s.forwardRef((e, t) => /* @__PURE__ */ r(Me.Portal, { children: /* @__PURE__ */ r(Il, { sideOffset: 4, side: "bottom", align: "start", ...e, ref: t }) })), Il = u(Me.Content)`
|
|
4982
4984
|
box-shadow: ${({ theme: e }) => e.shadows.filterShadow};
|
|
4983
4985
|
z-index: ${({ theme: e }) => e.zIndices.popover};
|
|
4984
4986
|
background-color: ${(e) => e.theme.colors.neutral0};
|
|
@@ -5012,31 +5014,31 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5012
5014
|
}
|
|
5013
5015
|
}
|
|
5014
5016
|
}
|
|
5015
|
-
`,
|
|
5017
|
+
`, Dl = s.forwardRef(
|
|
5016
5018
|
({ children: e, intersectionId: t, onReachEnd: n, ...o }, a) => {
|
|
5017
5019
|
const i = s.useRef(null), l = te(i, a), c = re();
|
|
5018
5020
|
return Ke(i, n ?? (() => {
|
|
5019
5021
|
}), {
|
|
5020
5022
|
selectorToWatch: `#${Pe(c)}`,
|
|
5021
5023
|
skipWhen: !t || !n
|
|
5022
|
-
}), /* @__PURE__ */
|
|
5024
|
+
}), /* @__PURE__ */ x(El, { ref: l, ...o, children: [
|
|
5023
5025
|
e,
|
|
5024
5026
|
t && n && /* @__PURE__ */ r(S, { id: Pe(c), width: "100%", height: "1px" })
|
|
5025
5027
|
] });
|
|
5026
5028
|
}
|
|
5027
|
-
),
|
|
5029
|
+
), El = u(st)`
|
|
5028
5030
|
height: 20rem;
|
|
5029
5031
|
`, Xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5030
5032
|
__proto__: null,
|
|
5031
|
-
Anchor:
|
|
5032
|
-
Arrow:
|
|
5033
|
-
Content:
|
|
5034
|
-
Root:
|
|
5035
|
-
ScrollArea:
|
|
5036
|
-
Trigger:
|
|
5033
|
+
Anchor: kl,
|
|
5034
|
+
Arrow: Sl,
|
|
5035
|
+
Content: Tl,
|
|
5036
|
+
Root: vl,
|
|
5037
|
+
ScrollArea: Dl,
|
|
5038
|
+
Trigger: Rl
|
|
5037
5039
|
}, Symbol.toStringTag, { value: "Module" })), Zd = s.forwardRef(
|
|
5038
|
-
({ size: e = "M", value: t, ...n }, o) => /* @__PURE__ */ r(
|
|
5039
|
-
),
|
|
5040
|
+
({ size: e = "M", value: t, ...n }, o) => /* @__PURE__ */ r(Al, { ref: o, $size: e, ...n, children: /* @__PURE__ */ r(zl, { style: { transform: `translate3D(-${100 - (t ?? 0)}%, 0, 0)` } }) })
|
|
5041
|
+
), Al = u(Tr.Root)`
|
|
5040
5042
|
position: relative;
|
|
5041
5043
|
overflow: hidden;
|
|
5042
5044
|
width: ${(e) => e.$size === "S" ? "7.8rem" : "10.2rem"};
|
|
@@ -5047,7 +5049,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5047
5049
|
/* Fix overflow clipping in Safari */
|
|
5048
5050
|
/* https://gist.github.com/domske/b66047671c780a238b51c51ffde8d3a0 */
|
|
5049
5051
|
transform: translateZ(0);
|
|
5050
|
-
`,
|
|
5052
|
+
`, zl = u(Tr.Indicator)`
|
|
5051
5053
|
background-color: ${({ theme: e }) => e.colors.neutral0};
|
|
5052
5054
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
5053
5055
|
width: 100%;
|
|
@@ -5057,17 +5059,17 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5057
5059
|
transition: transform ${(e) => e.theme.motion.timings[320]}
|
|
5058
5060
|
${(e) => e.theme.motion.easings.authenticMotion};
|
|
5059
5061
|
}
|
|
5060
|
-
`,
|
|
5062
|
+
`, Ol = s.forwardRef((e, t) => /* @__PURE__ */ r(Ll, { ref: t, ...e })), Ll = u(At.Root)`
|
|
5061
5063
|
display: flex;
|
|
5062
5064
|
flex-direction: column;
|
|
5063
5065
|
gap: ${(e) => e.theme.spaces[3]};
|
|
5064
|
-
`,
|
|
5066
|
+
`, Pl = s.forwardRef(({ children: e, id: t, ...n }, o) => {
|
|
5065
5067
|
const a = re(t);
|
|
5066
|
-
return /* @__PURE__ */
|
|
5067
|
-
/* @__PURE__ */ r(
|
|
5068
|
+
return /* @__PURE__ */ x(C, { gap: 2, children: [
|
|
5069
|
+
/* @__PURE__ */ r(Ml, { id: a, ref: o, ...n, children: /* @__PURE__ */ r(Bl, {}) }),
|
|
5068
5070
|
/* @__PURE__ */ r(A, { tag: "label", htmlFor: a, children: e })
|
|
5069
5071
|
] });
|
|
5070
|
-
}),
|
|
5072
|
+
}), Ml = u(At.Item)`
|
|
5071
5073
|
background: ${(e) => e.theme.colors.neutral0};
|
|
5072
5074
|
width: 2rem;
|
|
5073
5075
|
height: 2rem;
|
|
@@ -5104,7 +5106,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5104
5106
|
min-width: 44px;
|
|
5105
5107
|
min-height: 44px;
|
|
5106
5108
|
}
|
|
5107
|
-
`,
|
|
5109
|
+
`, Bl = u(At.Indicator)`
|
|
5108
5110
|
display: flex;
|
|
5109
5111
|
align-items: center;
|
|
5110
5112
|
justify-content: center;
|
|
@@ -5128,69 +5130,69 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5128
5130
|
}
|
|
5129
5131
|
`, Jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5130
5132
|
__proto__: null,
|
|
5131
|
-
Group:
|
|
5132
|
-
Item:
|
|
5133
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5133
|
+
Group: Ol,
|
|
5134
|
+
Item: Pl
|
|
5135
|
+
}, Symbol.toStringTag, { value: "Module" })), Nl = (e) => {
|
|
5134
5136
|
const t = e.querySelector('[tabindex="0"]');
|
|
5135
5137
|
t && t.focus();
|
|
5136
|
-
},
|
|
5138
|
+
}, Tn = s.createContext({
|
|
5137
5139
|
rowIndex: 0,
|
|
5138
5140
|
colIndex: 0,
|
|
5139
5141
|
setTableValues() {
|
|
5140
5142
|
throw new Error("setTableValues must be initialized via the RawTableContext.Provider");
|
|
5141
5143
|
}
|
|
5142
|
-
}),
|
|
5144
|
+
}), Wl = () => s.useContext(Tn), Fl = s.forwardRef(
|
|
5143
5145
|
({ colCount: e, rowCount: t, jumpStep: n = 3, initialCol: o = 0, initialRow: a = 0, ...i }, l) => {
|
|
5144
|
-
const c = s.useRef(null), d = s.useRef(!1), h = te(c, l), [
|
|
5145
|
-
|
|
5146
|
+
const c = s.useRef(null), d = s.useRef(!1), h = s.useRef(!1), f = te(c, l), [g, p] = s.useState(a), [v, m] = s.useState(o), $ = s.useCallback(({ colIndex: w, rowIndex: y }) => {
|
|
5147
|
+
h.current = !0, m(w), p(y);
|
|
5146
5148
|
}, []);
|
|
5147
5149
|
s.useEffect(() => {
|
|
5148
|
-
d.current &&
|
|
5149
|
-
}, [
|
|
5150
|
-
const
|
|
5151
|
-
switch (
|
|
5150
|
+
d.current && !h.current && Nl(c.current), h.current = !1, d.current || (d.current = !0);
|
|
5151
|
+
}, [v, g]);
|
|
5152
|
+
const R = (w) => {
|
|
5153
|
+
switch (h.current = !1, w.key) {
|
|
5152
5154
|
case F.RIGHT: {
|
|
5153
|
-
|
|
5155
|
+
w.preventDefault(), m((y) => y < e - 1 ? y + 1 : y);
|
|
5154
5156
|
break;
|
|
5155
5157
|
}
|
|
5156
5158
|
case F.LEFT: {
|
|
5157
|
-
|
|
5159
|
+
w.preventDefault(), m((y) => y > 0 ? y - 1 : y);
|
|
5158
5160
|
break;
|
|
5159
5161
|
}
|
|
5160
5162
|
case F.UP: {
|
|
5161
|
-
|
|
5163
|
+
w.preventDefault(), p((y) => y > 0 ? y - 1 : y);
|
|
5162
5164
|
break;
|
|
5163
5165
|
}
|
|
5164
5166
|
case F.DOWN: {
|
|
5165
|
-
|
|
5167
|
+
w.preventDefault(), p((y) => y < t - 1 ? y + 1 : y);
|
|
5166
5168
|
break;
|
|
5167
5169
|
}
|
|
5168
5170
|
case F.HOME: {
|
|
5169
|
-
|
|
5171
|
+
w.preventDefault(), w.ctrlKey && p(0), m(0);
|
|
5170
5172
|
break;
|
|
5171
5173
|
}
|
|
5172
5174
|
case F.END: {
|
|
5173
|
-
|
|
5175
|
+
w.preventDefault(), w.ctrlKey && p(t - 1), m(e - 1);
|
|
5174
5176
|
break;
|
|
5175
5177
|
}
|
|
5176
5178
|
case F.PAGE_DOWN: {
|
|
5177
|
-
|
|
5179
|
+
w.preventDefault(), p((y) => y + n < t ? y + n : t - 1);
|
|
5178
5180
|
break;
|
|
5179
5181
|
}
|
|
5180
5182
|
case F.PAGE_UP: {
|
|
5181
|
-
|
|
5183
|
+
w.preventDefault(), p((y) => y - n > 0 ? y - n : 0);
|
|
5182
5184
|
break;
|
|
5183
5185
|
}
|
|
5184
5186
|
}
|
|
5185
|
-
},
|
|
5186
|
-
return /* @__PURE__ */ r(
|
|
5187
|
+
}, I = s.useMemo(() => ({ rowIndex: g, colIndex: v, setTableValues: $ }), [v, g, $]);
|
|
5188
|
+
return /* @__PURE__ */ r(Tn.Provider, { value: I, children: /* @__PURE__ */ r(
|
|
5187
5189
|
"table",
|
|
5188
5190
|
{
|
|
5189
5191
|
role: "grid",
|
|
5190
|
-
ref:
|
|
5192
|
+
ref: f,
|
|
5191
5193
|
"aria-rowcount": t,
|
|
5192
5194
|
"aria-colcount": e,
|
|
5193
|
-
onKeyDown:
|
|
5195
|
+
onKeyDown: R,
|
|
5194
5196
|
...i
|
|
5195
5197
|
}
|
|
5196
5198
|
) });
|
|
@@ -5199,22 +5201,22 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5199
5201
|
...e.querySelectorAll(
|
|
5200
5202
|
'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])'
|
|
5201
5203
|
)
|
|
5202
|
-
].filter((a) => a.hasAttribute("disabled") ? !1 : t ? !0 : a.getAttribute("tabindex") !== "-1"), ft = (e) => e.filter((t) => t.tagName === "INPUT" ? t.type !== "checkbox" && t.type !== "radio" : !1),
|
|
5204
|
+
].filter((a) => a.hasAttribute("disabled") ? !1 : t ? !0 : a.getAttribute("tabindex") !== "-1"), ft = (e) => e.filter((t) => t.tagName === "INPUT" ? t.type !== "checkbox" && t.type !== "radio" : !1), In = s.forwardRef(
|
|
5203
5205
|
({ coords: e = { col: 0, row: 0 }, tag: t = "td", ...n }, o) => {
|
|
5204
|
-
const a = s.useRef(null), i = te(o, a), { rowIndex: l, colIndex: c, setTableValues: d } =
|
|
5205
|
-
var
|
|
5206
|
-
const
|
|
5207
|
-
if (
|
|
5206
|
+
const a = s.useRef(null), i = te(o, a), { rowIndex: l, colIndex: c, setTableValues: d } = Wl(), [h, f] = s.useState(!1), g = (m) => {
|
|
5207
|
+
var I;
|
|
5208
|
+
const $ = ke(a.current, !0);
|
|
5209
|
+
if ($.length === 0 || $.length === 1 && ft($).length === 0)
|
|
5208
5210
|
return;
|
|
5209
|
-
if (
|
|
5211
|
+
if ($.length > 1 && !$.find((w) => w.tagName !== "BUTTON")) {
|
|
5210
5212
|
m.preventDefault();
|
|
5211
|
-
const
|
|
5213
|
+
const w = $.findIndex((y) => y === document.activeElement);
|
|
5212
5214
|
if (m.key === F.RIGHT) {
|
|
5213
|
-
const
|
|
5214
|
-
|
|
5215
|
+
const y = $[w + 1];
|
|
5216
|
+
y && (m.stopPropagation(), y.focus());
|
|
5215
5217
|
} else if (m.key === F.LEFT) {
|
|
5216
|
-
const
|
|
5217
|
-
|
|
5218
|
+
const y = $[w - 1];
|
|
5219
|
+
y && (m.stopPropagation(), y.focus());
|
|
5218
5220
|
}
|
|
5219
5221
|
return;
|
|
5220
5222
|
}
|
|
@@ -5222,66 +5224,66 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5222
5224
|
if (R && !h)
|
|
5223
5225
|
f(!0);
|
|
5224
5226
|
else if ((m.key === F.ESCAPE || R) && h) {
|
|
5225
|
-
if (R && ((
|
|
5227
|
+
if (R && ((I = document.activeElement) == null ? void 0 : I.tagName) === "A")
|
|
5226
5228
|
return;
|
|
5227
5229
|
f(!1), a.current.focus();
|
|
5228
5230
|
} else h && m.stopPropagation();
|
|
5229
5231
|
}, p = l === e.row - 1 && c === e.col - 1;
|
|
5230
5232
|
fe(() => {
|
|
5231
5233
|
const m = ke(a.current, !0);
|
|
5232
|
-
m.length === 0 || m.length === 1 && ft(m).length !== 0 || m.length > 1 && m.find((
|
|
5233
|
-
|
|
5234
|
-
})) : m.forEach((
|
|
5235
|
-
|
|
5234
|
+
m.length === 0 || m.length === 1 && ft(m).length !== 0 || m.length > 1 && m.find(($) => $.tagName !== "BUTTON") ? (a.current.setAttribute("tabIndex", !h && p ? "0" : "-1"), m.forEach(($, R) => {
|
|
5235
|
+
$.setAttribute("tabIndex", h ? "0" : "-1"), h && R === 0 && $.focus();
|
|
5236
|
+
})) : m.forEach(($) => {
|
|
5237
|
+
$.setAttribute("tabIndex", p ? "0" : "-1");
|
|
5236
5238
|
});
|
|
5237
5239
|
}, [h, p]);
|
|
5238
|
-
const
|
|
5240
|
+
const v = s.useCallback(() => {
|
|
5239
5241
|
const m = ke(a.current, !0);
|
|
5240
|
-
m.length >= 1 && (ft(m).length !== 0 || !m.find((
|
|
5242
|
+
m.length >= 1 && (ft(m).length !== 0 || !m.find(($) => $.tagName !== "BUTTON")) && f(!0), d({ rowIndex: e.row - 1, colIndex: e.col - 1 });
|
|
5241
5243
|
}, [e, d]);
|
|
5242
5244
|
return fe(() => {
|
|
5243
5245
|
const m = a.current;
|
|
5244
5246
|
return ke(m, !0).forEach((R) => {
|
|
5245
|
-
R.addEventListener("focus",
|
|
5247
|
+
R.addEventListener("focus", v);
|
|
5246
5248
|
}), () => {
|
|
5247
|
-
ke(m, !0).forEach((
|
|
5248
|
-
|
|
5249
|
+
ke(m, !0).forEach((I) => {
|
|
5250
|
+
I.removeEventListener("focus", v);
|
|
5249
5251
|
});
|
|
5250
5252
|
};
|
|
5251
|
-
}, [
|
|
5253
|
+
}, [v]), /* @__PURE__ */ r(S, { role: "gridcell", tag: t, ref: i, onKeyDown: g, ...n });
|
|
5252
5254
|
}
|
|
5253
|
-
),
|
|
5255
|
+
), Hl = (e) => /* @__PURE__ */ r(In, { ...e, tag: "th" }), Vl = ({ children: e, ...t }) => {
|
|
5254
5256
|
const n = s.Children.toArray(e).map((o) => s.isValidElement(o) ? s.cloneElement(o, { "aria-rowindex": 1 }) : o);
|
|
5255
5257
|
return /* @__PURE__ */ r("thead", { ...t, children: n });
|
|
5256
|
-
},
|
|
5258
|
+
}, jl = ({ children: e, ...t }) => {
|
|
5257
5259
|
const n = s.Children.toArray(e).map((o, a) => s.isValidElement(o) ? s.cloneElement(o, { "aria-rowindex": a + 2 }) : o);
|
|
5258
5260
|
return /* @__PURE__ */ r("tbody", { ...t, children: n });
|
|
5259
|
-
},
|
|
5261
|
+
}, _l = ({ children: e, ...t }) => {
|
|
5260
5262
|
const n = s.Children.toArray(e).map((o, a) => s.isValidElement(o) ? s.cloneElement(o, {
|
|
5261
5263
|
"aria-colindex": a + 1,
|
|
5262
5264
|
coords: { col: a + 1, row: t["aria-rowindex"] }
|
|
5263
5265
|
}) : o);
|
|
5264
5266
|
return /* @__PURE__ */ r(S, { tag: "tr", ...t, children: n });
|
|
5265
|
-
},
|
|
5267
|
+
}, Ul = u(Te)`
|
|
5266
5268
|
font-size: 0.5rem;
|
|
5267
5269
|
path {
|
|
5268
5270
|
fill: ${({ theme: e }) => e.colors.neutral500};
|
|
5269
5271
|
}
|
|
5270
|
-
`,
|
|
5272
|
+
`, Dn = u(vr)`
|
|
5271
5273
|
font-size: 1rem;
|
|
5272
5274
|
path {
|
|
5273
5275
|
fill: ${({ theme: e }) => e.colors.neutral500};
|
|
5274
5276
|
}
|
|
5275
|
-
`,
|
|
5277
|
+
`, Gl = u.div`
|
|
5276
5278
|
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
5277
5279
|
border: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
5278
5280
|
|
|
5279
5281
|
&:focus-within {
|
|
5280
|
-
${
|
|
5282
|
+
${Dn} {
|
|
5281
5283
|
fill: ${({ theme: e }) => e.colors.primary600};
|
|
5282
5284
|
}
|
|
5283
5285
|
}
|
|
5284
|
-
`,
|
|
5286
|
+
`, ql = u(it)`
|
|
5285
5287
|
border: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
5286
5288
|
padding: 0 0 0 8px;
|
|
5287
5289
|
color: ${({ theme: e }) => e.colors.neutral800};
|
|
@@ -5312,21 +5314,21 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5312
5314
|
> input::-webkit-search-results-decoration {
|
|
5313
5315
|
display: none;
|
|
5314
5316
|
}
|
|
5315
|
-
`,
|
|
5317
|
+
`, Kl = s.forwardRef(
|
|
5316
5318
|
({ name: e, children: t, value: n = "", onClear: o, clearLabel: a = "Clear", ...i }, l) => {
|
|
5317
5319
|
const c = s.useRef(null), d = n.length > 0, h = (g) => {
|
|
5318
5320
|
o(g), c.current.focus();
|
|
5319
|
-
}, f =
|
|
5320
|
-
return /* @__PURE__ */ r(
|
|
5321
|
+
}, f = Wr(l, c);
|
|
5322
|
+
return /* @__PURE__ */ r(Gl, { children: /* @__PURE__ */ x(Re, { name: e, children: [
|
|
5321
5323
|
/* @__PURE__ */ r($e, { children: /* @__PURE__ */ r(Nt, { children: t }) }),
|
|
5322
5324
|
/* @__PURE__ */ r(
|
|
5323
|
-
|
|
5325
|
+
ql,
|
|
5324
5326
|
{
|
|
5325
5327
|
size: "S",
|
|
5326
5328
|
type: "search",
|
|
5327
5329
|
ref: f,
|
|
5328
5330
|
value: n,
|
|
5329
|
-
startAction: /* @__PURE__ */ r(
|
|
5331
|
+
startAction: /* @__PURE__ */ r(Dn, { "aria-hidden": !0 }),
|
|
5330
5332
|
onKeyDown: (g) => {
|
|
5331
5333
|
g.stopPropagation(), g.key === "Escape" && d && h(g);
|
|
5332
5334
|
},
|
|
@@ -5341,7 +5343,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5341
5343
|
size: "XS",
|
|
5342
5344
|
variant: "ghost",
|
|
5343
5345
|
type: "button",
|
|
5344
|
-
children: /* @__PURE__ */ r(
|
|
5346
|
+
children: /* @__PURE__ */ r(Ul, {})
|
|
5345
5347
|
}
|
|
5346
5348
|
) : void 0,
|
|
5347
5349
|
...i
|
|
@@ -5349,7 +5351,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5349
5351
|
)
|
|
5350
5352
|
] }) });
|
|
5351
5353
|
}
|
|
5352
|
-
),
|
|
5354
|
+
), Yl = (e) => /* @__PURE__ */ r("form", { ...e, role: "search" }), Ql = u(S)`
|
|
5353
5355
|
display: inline-flex;
|
|
5354
5356
|
border: none;
|
|
5355
5357
|
|
|
@@ -5365,8 +5367,8 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5365
5367
|
&:hover {
|
|
5366
5368
|
cursor: ${({ $iconAction: e }) => e ? "pointer" : "initial"};
|
|
5367
5369
|
}
|
|
5368
|
-
`,
|
|
5369
|
-
|
|
5370
|
+
`, Xl = ({ children: e, icon: t, label: n, disabled: o = !1, onClick: a, ...i }) => /* @__PURE__ */ x(
|
|
5371
|
+
C,
|
|
5370
5372
|
{
|
|
5371
5373
|
inline: !0,
|
|
5372
5374
|
background: o ? "neutral200" : "primary100",
|
|
@@ -5378,9 +5380,9 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5378
5380
|
height: "3.2rem",
|
|
5379
5381
|
...i,
|
|
5380
5382
|
children: [
|
|
5381
|
-
/* @__PURE__ */ r(
|
|
5383
|
+
/* @__PURE__ */ r(Zl, { $disabled: o, variant: "pi", fontWeight: "bold", children: e }),
|
|
5382
5384
|
/* @__PURE__ */ r(
|
|
5383
|
-
|
|
5385
|
+
Ql,
|
|
5384
5386
|
{
|
|
5385
5387
|
tag: "button",
|
|
5386
5388
|
disabled: o,
|
|
@@ -5396,11 +5398,11 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5396
5398
|
)
|
|
5397
5399
|
]
|
|
5398
5400
|
}
|
|
5399
|
-
),
|
|
5401
|
+
), Zl = u(A)`
|
|
5400
5402
|
color: inherit;
|
|
5401
5403
|
border-right: 1px solid ${({ theme: e, $disabled: t }) => t ? e.colors.neutral300 : e.colors.primary200};
|
|
5402
5404
|
padding-right: ${({ theme: e }) => e.spaces[2]};
|
|
5403
|
-
`,
|
|
5405
|
+
`, Jl = s.forwardRef(
|
|
5404
5406
|
({
|
|
5405
5407
|
children: e,
|
|
5406
5408
|
clearLabel: t = "Clear",
|
|
@@ -5415,14 +5417,14 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5415
5417
|
onCloseAutoFocus: f,
|
|
5416
5418
|
onReachEnd: g,
|
|
5417
5419
|
placeholder: p,
|
|
5418
|
-
required:
|
|
5420
|
+
required: v,
|
|
5419
5421
|
size: m,
|
|
5420
|
-
startIcon:
|
|
5422
|
+
startIcon: $,
|
|
5421
5423
|
value: R,
|
|
5422
|
-
withTags:
|
|
5423
|
-
|
|
5424
|
-
},
|
|
5425
|
-
const k = s.useRef(null), [E, b] = s.useState(), [
|
|
5424
|
+
withTags: I,
|
|
5425
|
+
...w
|
|
5426
|
+
}, y) => {
|
|
5427
|
+
const k = s.useRef(null), [E, b] = s.useState(), [D, L] = s.useState(!1), z = (V) => {
|
|
5426
5428
|
d ? d(V) : b(V);
|
|
5427
5429
|
}, O = (V) => () => {
|
|
5428
5430
|
const Y = Array.isArray(R) ? R.filter((ce) => ce !== V) : (E ?? []).filter((ce) => ce !== V);
|
|
@@ -5438,10 +5440,10 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5438
5440
|
* We need to know when the select is open because only then will viewportRef
|
|
5439
5441
|
* not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
|
|
5440
5442
|
*/
|
|
5441
|
-
skipWhen: !
|
|
5443
|
+
skipWhen: !D
|
|
5442
5444
|
});
|
|
5443
5445
|
const M = typeof R < "u" && R !== null ? R : E, q = (V) => V && typeof V == "object" && V.value ? /* @__PURE__ */ r(
|
|
5444
|
-
|
|
5446
|
+
Xl,
|
|
5445
5447
|
{
|
|
5446
5448
|
tabIndex: -1,
|
|
5447
5449
|
disabled: o,
|
|
@@ -5450,47 +5452,47 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5450
5452
|
children: V.textValue
|
|
5451
5453
|
},
|
|
5452
5454
|
V.value
|
|
5453
|
-
) : null, { error: P, ...B } = ne("MultiSelect"), X = !!P || a, G = B.id ?? i, J = B.name ?? c, K = B.required ??
|
|
5455
|
+
) : null, { error: P, ...B } = ne("MultiSelect"), X = !!P || a, G = B.id ?? i, J = B.name ?? c, K = B.required ?? v;
|
|
5454
5456
|
let Z;
|
|
5455
|
-
return P ? Z = `${G}-error` : B.hint && (Z = `${G}-hint`), /* @__PURE__ */
|
|
5456
|
-
|
|
5457
|
+
return P ? Z = `${G}-error` : B.hint && (Z = `${G}-hint`), /* @__PURE__ */ x(
|
|
5458
|
+
un,
|
|
5457
5459
|
{
|
|
5458
5460
|
onOpenChange: U,
|
|
5459
5461
|
disabled: o,
|
|
5460
5462
|
required: K,
|
|
5461
5463
|
onValueChange: z,
|
|
5462
5464
|
value: M,
|
|
5463
|
-
|
|
5465
|
+
...w,
|
|
5464
5466
|
multi: !0,
|
|
5465
5467
|
children: [
|
|
5466
5468
|
/* @__PURE__ */ r(
|
|
5467
|
-
|
|
5469
|
+
hn,
|
|
5468
5470
|
{
|
|
5469
|
-
ref:
|
|
5471
|
+
ref: y,
|
|
5470
5472
|
id: G,
|
|
5471
5473
|
name: J,
|
|
5472
|
-
"aria-label":
|
|
5473
|
-
"aria-describedby": Z ??
|
|
5474
|
-
startIcon:
|
|
5474
|
+
"aria-label": w["aria-label"],
|
|
5475
|
+
"aria-describedby": Z ?? w["aria-describedby"],
|
|
5476
|
+
startIcon: $,
|
|
5475
5477
|
hasError: X,
|
|
5476
5478
|
disabled: o,
|
|
5477
5479
|
clearLabel: t,
|
|
5478
5480
|
loading: l,
|
|
5479
5481
|
onClear: M != null && M.length ? h : void 0,
|
|
5480
|
-
withTags: !!(
|
|
5482
|
+
withTags: !!(I && ((M == null ? void 0 : M.length) ?? !1)),
|
|
5481
5483
|
size: m,
|
|
5482
5484
|
children: /* @__PURE__ */ r(
|
|
5483
|
-
|
|
5485
|
+
fn,
|
|
5484
5486
|
{
|
|
5485
5487
|
placeholder: p,
|
|
5486
5488
|
textColor: M != null && M.length ? "neutral800" : "neutral600",
|
|
5487
|
-
withTags:
|
|
5488
|
-
children: M != null && M.length ?
|
|
5489
|
+
withTags: I,
|
|
5490
|
+
children: M != null && M.length ? I ? q : n ? n(M) : void 0 : void 0
|
|
5489
5491
|
}
|
|
5490
5492
|
)
|
|
5491
5493
|
}
|
|
5492
5494
|
),
|
|
5493
|
-
/* @__PURE__ */ r(
|
|
5495
|
+
/* @__PURE__ */ r(gn, { children: /* @__PURE__ */ r(pn, { position: "popper", sideOffset: 4, onCloseAutoFocus: f, children: /* @__PURE__ */ x(mn, { ref: k, children: [
|
|
5494
5496
|
e,
|
|
5495
5497
|
/* @__PURE__ */ r(S, { id: W, width: "100%", height: "1px" })
|
|
5496
5498
|
] }) }) })
|
|
@@ -5498,33 +5500,33 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5498
5500
|
}
|
|
5499
5501
|
);
|
|
5500
5502
|
}
|
|
5501
|
-
),
|
|
5502
|
-
({ value: e, children: t, startIcon: n, ...o }, a) => /* @__PURE__ */
|
|
5503
|
+
), En = s.forwardRef(
|
|
5504
|
+
({ value: e, children: t, startIcon: n, ...o }, a) => /* @__PURE__ */ x(Ft, { ref: a, value: e.toString(), ...o, children: [
|
|
5503
5505
|
n && /* @__PURE__ */ r(S, { tag: "span", "aria-hidden": !0, children: n }),
|
|
5504
|
-
/* @__PURE__ */ r(
|
|
5505
|
-
/* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(
|
|
5506
|
+
/* @__PURE__ */ r(bn, { children: ({ isSelected: i, isIntermediate: l }) => /* @__PURE__ */ r(Bt, { checked: l ? "indeterminate" : i }) }),
|
|
5507
|
+
/* @__PURE__ */ r(A, { children: /* @__PURE__ */ r($n, { children: t }) })
|
|
5506
5508
|
] })
|
|
5507
|
-
),
|
|
5508
|
-
({ children: e, label: t, startIcon: n, values: o = [], ...a }, i) => /* @__PURE__ */
|
|
5509
|
-
/* @__PURE__ */
|
|
5509
|
+
), ec = s.forwardRef(
|
|
5510
|
+
({ children: e, label: t, startIcon: n, values: o = [], ...a }, i) => /* @__PURE__ */ x(ks, { ref: i, children: [
|
|
5511
|
+
/* @__PURE__ */ x(Ft, { value: o, ...a, children: [
|
|
5510
5512
|
n && /* @__PURE__ */ r(S, { tag: "span", "aria-hidden": !0, children: n }),
|
|
5511
|
-
/* @__PURE__ */ r(
|
|
5513
|
+
/* @__PURE__ */ r(bn, { children: ({ isSelected: l, isIntermediate: c }) => /* @__PURE__ */ r(Bt, { checked: c ? "indeterminate" : l }) }),
|
|
5512
5514
|
/* @__PURE__ */ r(A, { children: t })
|
|
5513
5515
|
] }),
|
|
5514
5516
|
e
|
|
5515
5517
|
] })
|
|
5516
|
-
), eu = ({ options: e, ...t }) => /* @__PURE__ */ r(
|
|
5517
|
-
|
|
5518
|
+
), eu = ({ options: e, ...t }) => /* @__PURE__ */ r(Jl, { ...t, children: e.map((n) => "children" in n ? /* @__PURE__ */ r(
|
|
5519
|
+
ec,
|
|
5518
5520
|
{
|
|
5519
5521
|
label: n.label,
|
|
5520
5522
|
values: n.children.map((o) => o.value.toString()),
|
|
5521
|
-
children: n.children.map((o) => /* @__PURE__ */ r(
|
|
5523
|
+
children: n.children.map((o) => /* @__PURE__ */ r(tc, { value: o.value, children: o.label }, o.value))
|
|
5522
5524
|
},
|
|
5523
5525
|
n.label
|
|
5524
|
-
) : /* @__PURE__ */ r(
|
|
5526
|
+
) : /* @__PURE__ */ r(En, { value: n.value, children: n.label }, n.value)) }), tc = u(En)`
|
|
5525
5527
|
padding-left: ${({ theme: e }) => e.spaces[7]};
|
|
5526
|
-
`,
|
|
5527
|
-
const a = `${e}100`, i = `${e}200`, l = `${e}600`, { paddingX: c, paddingY: d } =
|
|
5528
|
+
`, rc = (e) => e === "XS" ? { paddingX: "0.6rem", paddingY: "0.2rem" } : e === "S" ? { paddingX: 2, paddingY: 1 } : { paddingX: 5, paddingY: 4 }, tu = ({ variant: e = "primary", size: t = "M", children: n, ...o }) => {
|
|
5529
|
+
const a = `${e}100`, i = `${e}200`, l = `${e}600`, { paddingX: c, paddingY: d } = rc(t);
|
|
5528
5530
|
return /* @__PURE__ */ r(
|
|
5529
5531
|
S,
|
|
5530
5532
|
{
|
|
@@ -5540,8 +5542,8 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5540
5542
|
children: n
|
|
5541
5543
|
}
|
|
5542
5544
|
);
|
|
5543
|
-
},
|
|
5544
|
-
width: ${
|
|
5545
|
+
}, nc = "23.2rem", ru = s.forwardRef(({ ...e }, t) => /* @__PURE__ */ r(oc, { ref: t, ...e, tag: "nav" })), oc = u(S)`
|
|
5546
|
+
width: ${nc};
|
|
5545
5547
|
background: ${({ theme: e }) => e.colors.neutral100};
|
|
5546
5548
|
position: sticky;
|
|
5547
5549
|
top: 0;
|
|
@@ -5549,7 +5551,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5549
5551
|
overflow-y: auto;
|
|
5550
5552
|
border-right: 1px solid ${({ theme: e }) => e.colors.neutral200};
|
|
5551
5553
|
z-index: 1;
|
|
5552
|
-
`, gr = u(
|
|
5554
|
+
`, gr = u(wn)`
|
|
5553
5555
|
width: 2.4rem;
|
|
5554
5556
|
background-color: ${({ theme: e }) => e.colors.neutral200};
|
|
5555
5557
|
`, nu = ({
|
|
@@ -5567,48 +5569,48 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5567
5569
|
id: d,
|
|
5568
5570
|
placeholder: h
|
|
5569
5571
|
}) => {
|
|
5570
|
-
const [f, g] = s.useState(!1), p = ao(f),
|
|
5572
|
+
const [f, g] = s.useState(!1), p = ao(f), v = re(d), m = s.useRef(void 0), $ = s.useRef(void 0);
|
|
5571
5573
|
s.useEffect(() => {
|
|
5572
|
-
f && m.current && m.current.focus(), p && !f &&
|
|
5574
|
+
f && m.current && m.current.focus(), p && !f && $.current && $.current.focus();
|
|
5573
5575
|
}, [f, p]);
|
|
5574
5576
|
const R = () => {
|
|
5575
5577
|
g((k) => !k);
|
|
5576
|
-
},
|
|
5578
|
+
}, I = (k) => {
|
|
5577
5579
|
l(k), m.current.focus();
|
|
5578
|
-
},
|
|
5580
|
+
}, w = (k) => {
|
|
5579
5581
|
var E;
|
|
5580
|
-
((E = k.relatedTarget) == null ? void 0 : E.id) !==
|
|
5581
|
-
},
|
|
5582
|
+
((E = k.relatedTarget) == null ? void 0 : E.id) !== v && g(!1);
|
|
5583
|
+
}, y = (k) => {
|
|
5582
5584
|
k.key === F.ESCAPE && g(!1);
|
|
5583
5585
|
};
|
|
5584
|
-
return f ? /* @__PURE__ */
|
|
5585
|
-
/* @__PURE__ */ r(
|
|
5586
|
-
|
|
5586
|
+
return f ? /* @__PURE__ */ x(S, { paddingLeft: 4, paddingTop: 5, paddingBottom: 2, paddingRight: 4, children: [
|
|
5587
|
+
/* @__PURE__ */ r(Yl, { children: /* @__PURE__ */ r(
|
|
5588
|
+
Kl,
|
|
5587
5589
|
{
|
|
5588
5590
|
name: "searchbar",
|
|
5589
5591
|
value: i,
|
|
5590
5592
|
onChange: a,
|
|
5591
5593
|
placeholder: h,
|
|
5592
|
-
onKeyDown:
|
|
5594
|
+
onKeyDown: y,
|
|
5593
5595
|
ref: m,
|
|
5594
|
-
onBlur:
|
|
5595
|
-
onClear:
|
|
5596
|
+
onBlur: w,
|
|
5597
|
+
onClear: I,
|
|
5596
5598
|
onSubmit: c,
|
|
5597
5599
|
clearLabel: "Clear",
|
|
5598
5600
|
children: n
|
|
5599
5601
|
}
|
|
5600
5602
|
) }),
|
|
5601
5603
|
/* @__PURE__ */ r(S, { paddingLeft: 2, paddingTop: 4, children: /* @__PURE__ */ r(gr, {}) })
|
|
5602
|
-
] }) : /* @__PURE__ */
|
|
5603
|
-
/* @__PURE__ */
|
|
5604
|
+
] }) : /* @__PURE__ */ x(C, { direction: "column", alignItems: "flex-start", paddingLeft: 6, paddingTop: 6, paddingBottom: 2, paddingRight: 4, children: [
|
|
5605
|
+
/* @__PURE__ */ x(C, { justifyContent: "space-between", alignItems: "flex-start", width: "100%", gap: 2, children: [
|
|
5604
5606
|
/* @__PURE__ */ r(A, { variant: "beta", tag: e, children: t }),
|
|
5605
|
-
o && /* @__PURE__ */ r(be, { ref:
|
|
5607
|
+
o && /* @__PURE__ */ r(be, { ref: $, onClick: R, label: n, children: /* @__PURE__ */ r(vr, {}) })
|
|
5606
5608
|
] }),
|
|
5607
5609
|
/* @__PURE__ */ r(S, { paddingTop: 4, children: /* @__PURE__ */ r(gr, {}) })
|
|
5608
5610
|
] });
|
|
5609
5611
|
}, ou = ee(
|
|
5610
|
-
({ active: e, children: t, icon: n = null, withBullet: o = !1, isSubSectionChild: a = !1, ...i }, l) => /* @__PURE__ */
|
|
5611
|
-
|
|
5612
|
+
({ active: e, children: t, icon: n = null, withBullet: o = !1, isSubSectionChild: a = !1, ...i }, l) => /* @__PURE__ */ x(
|
|
5613
|
+
ac,
|
|
5612
5614
|
{
|
|
5613
5615
|
background: "neutral100",
|
|
5614
5616
|
paddingLeft: a ? 9 : 7,
|
|
@@ -5617,11 +5619,11 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5617
5619
|
ref: l,
|
|
5618
5620
|
...i,
|
|
5619
5621
|
children: [
|
|
5620
|
-
/* @__PURE__ */
|
|
5621
|
-
n ? /* @__PURE__ */ r(
|
|
5622
|
+
/* @__PURE__ */ x(C, { children: [
|
|
5623
|
+
n ? /* @__PURE__ */ r(ic, { children: n }) : /* @__PURE__ */ r(Rt, { $active: e }),
|
|
5622
5624
|
/* @__PURE__ */ r(A, { paddingLeft: 2, children: t })
|
|
5623
5625
|
] }),
|
|
5624
|
-
o && /* @__PURE__ */ r(
|
|
5626
|
+
o && /* @__PURE__ */ r(C, { paddingRight: 4, children: /* @__PURE__ */ r(Rt, { $active: !0 }) })
|
|
5625
5627
|
]
|
|
5626
5628
|
}
|
|
5627
5629
|
)
|
|
@@ -5630,7 +5632,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5630
5632
|
height: 0.4rem;
|
|
5631
5633
|
background-color: ${({ theme: e, $active: t }) => t ? e.colors.primary600 : e.colors.neutral600};
|
|
5632
5634
|
border-radius: 50%;
|
|
5633
|
-
`,
|
|
5635
|
+
`, ac = u(qe)`
|
|
5634
5636
|
display: flex;
|
|
5635
5637
|
align-items: center;
|
|
5636
5638
|
justify-content: space-between;
|
|
@@ -5656,12 +5658,12 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5656
5658
|
&:focus-visible {
|
|
5657
5659
|
outline-offset: -2px;
|
|
5658
5660
|
}
|
|
5659
|
-
`,
|
|
5661
|
+
`, ic = u.div`
|
|
5660
5662
|
svg {
|
|
5661
5663
|
height: 1.6rem;
|
|
5662
5664
|
width: 1.6rem;
|
|
5663
5665
|
}
|
|
5664
|
-
`,
|
|
5666
|
+
`, sc = u.button`
|
|
5665
5667
|
border: none;
|
|
5666
5668
|
padding: 0;
|
|
5667
5669
|
background: transparent;
|
|
@@ -5669,8 +5671,8 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5669
5671
|
align-items: center;
|
|
5670
5672
|
`, au = ({ label: e, children: t, id: n }) => {
|
|
5671
5673
|
const [o, a] = s.useState(!0), i = re(n);
|
|
5672
|
-
return /* @__PURE__ */
|
|
5673
|
-
/* @__PURE__ */ r(S, { paddingLeft: 7, paddingTop: 2, paddingBottom: 2, paddingRight: 4, children: /* @__PURE__ */ r(
|
|
5674
|
+
return /* @__PURE__ */ x(S, { children: [
|
|
5675
|
+
/* @__PURE__ */ r(S, { paddingLeft: 7, paddingTop: 2, paddingBottom: 2, paddingRight: 4, children: /* @__PURE__ */ r(C, { justifyContent: "space-between", children: /* @__PURE__ */ x(sc, { onClick: () => {
|
|
5674
5676
|
a((c) => !c);
|
|
5675
5677
|
}, "aria-expanded": o, "aria-controls": i, children: [
|
|
5676
5678
|
/* @__PURE__ */ r(
|
|
@@ -5687,15 +5689,15 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5687
5689
|
] }) }) }),
|
|
5688
5690
|
o && /* @__PURE__ */ r("ul", { id: i, children: s.Children.map(t, (c, d) => /* @__PURE__ */ r("li", { children: c }, d)) })
|
|
5689
5691
|
] });
|
|
5690
|
-
},
|
|
5692
|
+
}, lc = ({
|
|
5691
5693
|
collapsable: e = !1,
|
|
5692
5694
|
label: t,
|
|
5693
5695
|
onClick: n = () => {
|
|
5694
5696
|
},
|
|
5695
5697
|
ariaExpanded: o,
|
|
5696
5698
|
ariaControls: a
|
|
5697
|
-
}) => e ? /* @__PURE__ */
|
|
5698
|
-
|
|
5699
|
+
}) => e ? /* @__PURE__ */ x(
|
|
5700
|
+
C,
|
|
5699
5701
|
{
|
|
5700
5702
|
tag: "button",
|
|
5701
5703
|
onClick: n,
|
|
@@ -5716,17 +5718,17 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5716
5718
|
)
|
|
5717
5719
|
]
|
|
5718
5720
|
}
|
|
5719
|
-
) : /* @__PURE__ */ r(
|
|
5721
|
+
) : /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(S, { paddingRight: 1, children: /* @__PURE__ */ r(A, { variant: "sigma", textColor: "neutral600", children: t }) }) }), cc = u(S)`
|
|
5720
5722
|
& > svg {
|
|
5721
5723
|
height: 0.4rem;
|
|
5722
5724
|
fill: ${({ theme: e }) => e.colors.neutral500};
|
|
5723
5725
|
}
|
|
5724
5726
|
`, iu = ({ collapsable: e = !1, label: t, badgeLabel: n, children: o, id: a }) => {
|
|
5725
5727
|
const [i, l] = s.useState(!0), c = re(a);
|
|
5726
|
-
return /* @__PURE__ */
|
|
5727
|
-
/* @__PURE__ */ r(
|
|
5728
|
+
return /* @__PURE__ */ x(C, { direction: "column", alignItems: "stretch", gap: 1, children: [
|
|
5729
|
+
/* @__PURE__ */ r(cc, { paddingLeft: 6, paddingTop: 2, paddingBottom: 2, paddingRight: 4, children: /* @__PURE__ */ x(S, { position: "relative", paddingRight: n ? 6 : 0, children: [
|
|
5728
5730
|
/* @__PURE__ */ r(
|
|
5729
|
-
|
|
5731
|
+
lc,
|
|
5730
5732
|
{
|
|
5731
5733
|
onClick: () => {
|
|
5732
5734
|
l((h) => !h);
|
|
@@ -5738,7 +5740,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5738
5740
|
}
|
|
5739
5741
|
),
|
|
5740
5742
|
n && /* @__PURE__ */ r(
|
|
5741
|
-
|
|
5743
|
+
Br,
|
|
5742
5744
|
{
|
|
5743
5745
|
backgroundColor: "neutral150",
|
|
5744
5746
|
textColor: "neutral600",
|
|
@@ -5753,7 +5755,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5753
5755
|
(!e || i) && /* @__PURE__ */ r("ol", { id: c, children: s.Children.map(o, (h, f) => /* @__PURE__ */ r("li", { children: h }, f)) })
|
|
5754
5756
|
] });
|
|
5755
5757
|
}, su = ({ children: e, spacing: t = 2, horizontal: n = !1, ...o }) => /* @__PURE__ */ r(S, { paddingTop: 2, paddingBottom: 4, children: /* @__PURE__ */ r(
|
|
5756
|
-
|
|
5758
|
+
C,
|
|
5757
5759
|
{
|
|
5758
5760
|
tag: "ol",
|
|
5759
5761
|
gap: t,
|
|
@@ -5777,9 +5779,9 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5777
5779
|
prop: a,
|
|
5778
5780
|
defaultProp: i
|
|
5779
5781
|
});
|
|
5780
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ x(C, { gap: 3, children: [
|
|
5781
5783
|
/* @__PURE__ */ r(
|
|
5782
|
-
|
|
5784
|
+
dc,
|
|
5783
5785
|
{
|
|
5784
5786
|
ref: d,
|
|
5785
5787
|
onCheckedChange: Se(o, (p) => {
|
|
@@ -5788,13 +5790,13 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5788
5790
|
checked: h,
|
|
5789
5791
|
disabled: l,
|
|
5790
5792
|
...c,
|
|
5791
|
-
children: /* @__PURE__ */ r(
|
|
5793
|
+
children: /* @__PURE__ */ r(uc, {})
|
|
5792
5794
|
}
|
|
5793
5795
|
),
|
|
5794
|
-
e ? /* @__PURE__ */ r(
|
|
5796
|
+
e ? /* @__PURE__ */ r(hc, { "aria-hidden": !0, "data-disabled": l, "data-state": h ? "checked" : "unchecked", children: h ? t : n }) : null
|
|
5795
5797
|
] });
|
|
5796
5798
|
}
|
|
5797
|
-
),
|
|
5799
|
+
), dc = u(Ir.Root)`
|
|
5798
5800
|
width: 4rem;
|
|
5799
5801
|
height: 2.4rem;
|
|
5800
5802
|
border-radius: 1.2rem;
|
|
@@ -5811,7 +5813,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5811
5813
|
@media (prefers-reduced-motion: no-preference) {
|
|
5812
5814
|
transition: ${(e) => e.theme.transitions.backgroundColor};
|
|
5813
5815
|
}
|
|
5814
|
-
`,
|
|
5816
|
+
`, uc = u(Ir.Thumb)`
|
|
5815
5817
|
display: block;
|
|
5816
5818
|
height: 1.6rem;
|
|
5817
5819
|
width: 1.6rem;
|
|
@@ -5827,7 +5829,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5827
5829
|
transition: transform ${(e) => e.theme.motion.timings[120]}
|
|
5828
5830
|
${(e) => e.theme.motion.easings.authenticMotion};
|
|
5829
5831
|
}
|
|
5830
|
-
`,
|
|
5832
|
+
`, hc = u(A)`
|
|
5831
5833
|
color: ${(e) => e.theme.colors.danger600};
|
|
5832
5834
|
|
|
5833
5835
|
&[data-state='checked'] {
|
|
@@ -5837,28 +5839,28 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5837
5839
|
&[data-disabled='true'] {
|
|
5838
5840
|
color: ${({ theme: e }) => e.colors.neutral500};
|
|
5839
5841
|
}
|
|
5840
|
-
`, [
|
|
5841
|
-
({ disabled: e = !1, variant: t = "regular", hasError: n, ...o }, a) => /* @__PURE__ */ r(
|
|
5842
|
-
),
|
|
5842
|
+
`, [fc, Vt] = Be("Tabs"), gc = s.forwardRef(
|
|
5843
|
+
({ disabled: e = !1, variant: t = "regular", hasError: n, ...o }, a) => /* @__PURE__ */ r(fc, { disabled: e, hasError: n, variant: t, children: /* @__PURE__ */ r(pc, { ref: a, ...o }) })
|
|
5844
|
+
), pc = u(rt.Root)`
|
|
5843
5845
|
width: 100%;
|
|
5844
5846
|
position: relative;
|
|
5845
|
-
`,
|
|
5847
|
+
`, mc = s.forwardRef((e, t) => {
|
|
5846
5848
|
const { variant: n } = Vt("List");
|
|
5847
|
-
return /* @__PURE__ */ r(
|
|
5848
|
-
}),
|
|
5849
|
+
return /* @__PURE__ */ r(bc, { ref: t, ...e, $variant: n });
|
|
5850
|
+
}), bc = u(rt.List)`
|
|
5849
5851
|
display: flex;
|
|
5850
5852
|
align-items: ${(e) => e.$variant === "regular" ? "flex-end" : "unset"};
|
|
5851
5853
|
position: relative;
|
|
5852
5854
|
z-index: 0;
|
|
5853
|
-
`,
|
|
5855
|
+
`, $c = s.forwardRef(
|
|
5854
5856
|
({ children: e, disabled: t, ...n }, o) => {
|
|
5855
5857
|
const { disabled: a, variant: i, hasError: l } = Vt("Trigger"), c = a === !0 || a === n.value || t, d = l === n.value;
|
|
5856
|
-
return /* @__PURE__ */
|
|
5857
|
-
/* @__PURE__ */ r(
|
|
5858
|
-
i === "simple" ? /* @__PURE__ */ r(
|
|
5858
|
+
return /* @__PURE__ */ x(xc, { ref: o, ...n, $hasError: d, $variant: i, disabled: c, children: [
|
|
5859
|
+
/* @__PURE__ */ r(zn, { fontWeight: "bold", variant: i === "simple" ? "sigma" : void 0, children: e }),
|
|
5860
|
+
i === "simple" ? /* @__PURE__ */ r(An, {}) : null
|
|
5859
5861
|
] });
|
|
5860
5862
|
}
|
|
5861
|
-
),
|
|
5863
|
+
), An = u.span`
|
|
5862
5864
|
display: block;
|
|
5863
5865
|
width: 100%;
|
|
5864
5866
|
background-color: currentColor;
|
|
@@ -5867,7 +5869,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5867
5869
|
left: 0;
|
|
5868
5870
|
opacity: 0;
|
|
5869
5871
|
height: 0.2rem;
|
|
5870
|
-
`,
|
|
5872
|
+
`, zn = u(A)``, xc = u(rt.Trigger)`
|
|
5871
5873
|
position: relative;
|
|
5872
5874
|
color: ${(e) => e.$hasError ? e.theme.colors.danger600 : e.theme.colors.neutral600};
|
|
5873
5875
|
cursor: pointer;
|
|
@@ -5877,14 +5879,14 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5877
5879
|
padding-block: ${(t) => t.theme.spaces[4]};
|
|
5878
5880
|
padding-inline: ${(t) => t.theme.spaces[4]};
|
|
5879
5881
|
|
|
5880
|
-
& > ${
|
|
5882
|
+
& > ${zn} {
|
|
5881
5883
|
line-height: 1.2rem;
|
|
5882
5884
|
}
|
|
5883
5885
|
|
|
5884
5886
|
&[data-state='active'] {
|
|
5885
5887
|
color: ${e.$hasError ? e.theme.colors.danger600 : e.theme.colors.primary700};
|
|
5886
5888
|
|
|
5887
|
-
& > ${
|
|
5889
|
+
& > ${An} {
|
|
5888
5890
|
opacity: 1;
|
|
5889
5891
|
}
|
|
5890
5892
|
}
|
|
@@ -5916,10 +5918,10 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5916
5918
|
cursor: not-allowed;
|
|
5917
5919
|
color: ${(e) => e.theme.colors.neutral400};
|
|
5918
5920
|
}
|
|
5919
|
-
`,
|
|
5921
|
+
`, wc = s.forwardRef((e, t) => {
|
|
5920
5922
|
const { variant: n } = Vt("Content");
|
|
5921
|
-
return /* @__PURE__ */ r(
|
|
5922
|
-
}),
|
|
5923
|
+
return /* @__PURE__ */ r(yc, { $variant: n, ref: t, ...e });
|
|
5924
|
+
}), yc = u(rt.Content)`
|
|
5923
5925
|
${(e) => e.$variant === "simple" ? T`
|
|
5924
5926
|
|
|
5925
5927
|
` : T`
|
|
@@ -5929,17 +5931,17 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5929
5931
|
`}
|
|
5930
5932
|
`, cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5931
5933
|
__proto__: null,
|
|
5932
|
-
Content:
|
|
5933
|
-
List:
|
|
5934
|
-
Root:
|
|
5935
|
-
Trigger:
|
|
5936
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5934
|
+
Content: wc,
|
|
5935
|
+
List: mc,
|
|
5936
|
+
Root: gc,
|
|
5937
|
+
Trigger: $c
|
|
5938
|
+
}, Symbol.toStringTag, { value: "Module" })), Cc = u(S)`
|
|
5937
5939
|
overflow: hidden;
|
|
5938
5940
|
border: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
5939
|
-
`,
|
|
5941
|
+
`, vc = u(Fl)`
|
|
5940
5942
|
width: 100%;
|
|
5941
5943
|
white-space: nowrap;
|
|
5942
|
-
`,
|
|
5944
|
+
`, kc = u(S)`
|
|
5943
5945
|
&:before {
|
|
5944
5946
|
// TODO: make sure to add a token for this weird stuff
|
|
5945
5947
|
background: linear-gradient(90deg, #c0c0cf 0%, rgba(0, 0, 0, 0) 100%);
|
|
@@ -5964,7 +5966,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5964
5966
|
right: 0;
|
|
5965
5967
|
top: 0;
|
|
5966
5968
|
}
|
|
5967
|
-
`,
|
|
5969
|
+
`, Sc = u(S)`
|
|
5968
5970
|
overflow-x: auto;
|
|
5969
5971
|
`, du = s.forwardRef(({ footer: e, ...t }, n) => {
|
|
5970
5972
|
const o = s.useRef(null), [a, i] = s.useState(), l = (c) => {
|
|
@@ -5981,17 +5983,17 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
5981
5983
|
};
|
|
5982
5984
|
return s.useEffect(() => {
|
|
5983
5985
|
o.current.scrollWidth > o.current.clientWidth && i("right");
|
|
5984
|
-
}, []), /* @__PURE__ */
|
|
5985
|
-
/* @__PURE__ */ r(
|
|
5986
|
+
}, []), /* @__PURE__ */ x(Cc, { shadow: "tableShadow", hasRadius: !0, background: "neutral0", children: [
|
|
5987
|
+
/* @__PURE__ */ r(kc, { $overflowing: a, position: "relative", children: /* @__PURE__ */ r(Sc, { ref: o, onScroll: l, paddingLeft: 6, paddingRight: 6, children: /* @__PURE__ */ r(vc, { ref: n, ...t }) }) }),
|
|
5986
5988
|
e
|
|
5987
5989
|
] });
|
|
5988
|
-
}),
|
|
5990
|
+
}), Rc = u(jl)`
|
|
5989
5991
|
& tr:last-of-type {
|
|
5990
5992
|
border-bottom: none;
|
|
5991
5993
|
}
|
|
5992
|
-
`, uu = ({ children: e, ...t }) => /* @__PURE__ */ r(
|
|
5994
|
+
`, uu = ({ children: e, ...t }) => /* @__PURE__ */ r(Rc, { ...t, children: e }), Tc = u(Vl)`
|
|
5993
5995
|
border-bottom: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
5994
|
-
`, hu = ({ children: e, ...t }) => /* @__PURE__ */ r(
|
|
5996
|
+
`, hu = ({ children: e, ...t }) => /* @__PURE__ */ r(Tc, { ...t, children: e }), Ic = u(_l)`
|
|
5995
5997
|
border-bottom: 1px solid ${({ theme: e }) => e.colors.neutral150};
|
|
5996
5998
|
|
|
5997
5999
|
& td,
|
|
@@ -6010,7 +6012,7 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
6010
6012
|
padding-bottom: 0;
|
|
6011
6013
|
height: 5.6rem;
|
|
6012
6014
|
}
|
|
6013
|
-
`, fu = (e) => /* @__PURE__ */ r(
|
|
6015
|
+
`, fu = (e) => /* @__PURE__ */ r(Ic, { ...e }), On = u(In)`
|
|
6014
6016
|
vertical-align: middle;
|
|
6015
6017
|
text-align: left;
|
|
6016
6018
|
outline-offset: -4px;
|
|
@@ -6021,10 +6023,10 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
6021
6023
|
input {
|
|
6022
6024
|
vertical-align: sub;
|
|
6023
6025
|
}
|
|
6024
|
-
`, gu = s.forwardRef(({ children: e, action: t, ...n }, o) => /* @__PURE__ */ r(
|
|
6026
|
+
`, gu = s.forwardRef(({ children: e, action: t, ...n }, o) => /* @__PURE__ */ r(On, { color: "neutral600", as: Hl, ref: o, ...n, children: /* @__PURE__ */ x(C, { children: [
|
|
6025
6027
|
e,
|
|
6026
6028
|
t
|
|
6027
|
-
] }) })), pu = s.forwardRef(({ children: e, ...t }, n) => /* @__PURE__ */ r(
|
|
6029
|
+
] }) })), pu = s.forwardRef(({ children: e, ...t }, n) => /* @__PURE__ */ r(On, { color: "neutral800", ref: n, ...t, children: e })), Dc = u(S)`
|
|
6028
6030
|
height: 2.4rem;
|
|
6029
6031
|
width: 2.4rem;
|
|
6030
6032
|
border-radius: 50%;
|
|
@@ -6040,22 +6042,22 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
6040
6042
|
svg path {
|
|
6041
6043
|
fill: ${({ theme: e }) => e.colors.primary600};
|
|
6042
6044
|
}
|
|
6043
|
-
`,
|
|
6045
|
+
`, Ec = u(S)`
|
|
6044
6046
|
border-radius: 0 0 ${({ theme: e }) => e.borderRadius} ${({ theme: e }) => e.borderRadius};
|
|
6045
6047
|
display: block;
|
|
6046
6048
|
width: 100%;
|
|
6047
6049
|
border: none;
|
|
6048
|
-
`, mu = ({ children: e, icon: t, ...n }) => /* @__PURE__ */
|
|
6049
|
-
/* @__PURE__ */ r(
|
|
6050
|
-
/* @__PURE__ */ r(
|
|
6051
|
-
/* @__PURE__ */ r(
|
|
6050
|
+
`, mu = ({ children: e, icon: t, ...n }) => /* @__PURE__ */ x("div", { children: [
|
|
6051
|
+
/* @__PURE__ */ r(wn, {}),
|
|
6052
|
+
/* @__PURE__ */ r(Ec, { tag: "button", background: "primary100", padding: 5, ...n, children: /* @__PURE__ */ x(C, { children: [
|
|
6053
|
+
/* @__PURE__ */ r(Dc, { "aria-hidden": !0, background: "primary200", children: t }),
|
|
6052
6054
|
/* @__PURE__ */ r(S, { paddingLeft: 3, children: /* @__PURE__ */ r(A, { variant: "pi", fontWeight: "bold", textColor: "primary600", children: e }) })
|
|
6053
6055
|
] }) })
|
|
6054
6056
|
] }), bu = ee(
|
|
6055
6057
|
({ children: e, startIcon: t, endIcon: n, disabled: o = !1, loading: a = !1, type: i = "button", ...l }, c) => {
|
|
6056
6058
|
const d = o || a;
|
|
6057
|
-
return /* @__PURE__ */
|
|
6058
|
-
|
|
6059
|
+
return /* @__PURE__ */ x(
|
|
6060
|
+
Oc,
|
|
6059
6061
|
{
|
|
6060
6062
|
ref: c,
|
|
6061
6063
|
disabled: d,
|
|
@@ -6065,25 +6067,25 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
6065
6067
|
gap: 2,
|
|
6066
6068
|
...l,
|
|
6067
6069
|
children: [
|
|
6068
|
-
a ? /* @__PURE__ */ r(
|
|
6070
|
+
a ? /* @__PURE__ */ r(zc, { "aria-hidden": !0, children: /* @__PURE__ */ r(yr, {}) }) : t,
|
|
6069
6071
|
/* @__PURE__ */ r(A, { variant: "pi", children: e }),
|
|
6070
6072
|
n
|
|
6071
6073
|
]
|
|
6072
6074
|
}
|
|
6073
6075
|
);
|
|
6074
6076
|
}
|
|
6075
|
-
),
|
|
6077
|
+
), Ac = Q`
|
|
6076
6078
|
from {
|
|
6077
6079
|
transform: rotate(0deg);
|
|
6078
6080
|
}
|
|
6079
6081
|
to {
|
|
6080
6082
|
transform: rotate(359deg);
|
|
6081
6083
|
}
|
|
6082
|
-
`,
|
|
6084
|
+
`, zc = u.span`
|
|
6083
6085
|
display: flex;
|
|
6084
|
-
animation: ${
|
|
6086
|
+
animation: ${Ac} 2s infinite linear;
|
|
6085
6087
|
will-change: transform;
|
|
6086
|
-
`,
|
|
6088
|
+
`, Oc = u(C)`
|
|
6087
6089
|
border: none;
|
|
6088
6090
|
background-color: transparent;
|
|
6089
6091
|
color: ${(e) => e.theme.colors.primary600};
|
|
@@ -6095,8 +6097,8 @@ const Sn = s.createContext({ activePage: 1, pageCount: 1 }), Ht = () => s.useCon
|
|
|
6095
6097
|
}
|
|
6096
6098
|
|
|
6097
6099
|
${nt}
|
|
6098
|
-
`,
|
|
6099
|
-
|
|
6100
|
+
`, Lc = s.forwardRef((e, t) => /* @__PURE__ */ r(it, { ref: t, ...e }));
|
|
6101
|
+
Lc.displayName = "TextInput";
|
|
6100
6102
|
const $u = s.forwardRef(
|
|
6101
6103
|
({
|
|
6102
6104
|
disabled: e,
|
|
@@ -6107,13 +6109,13 @@ const $u = s.forwardRef(
|
|
|
6107
6109
|
resizable: i = !0,
|
|
6108
6110
|
...l
|
|
6109
6111
|
}, c) => {
|
|
6110
|
-
const { error: d, ...h } = ne("Textarea"), f = !!d || t, g = h.id ?? n, p = h.name ?? o,
|
|
6112
|
+
const { error: d, ...h } = ne("Textarea"), f = !!d || t, g = h.id ?? n, p = h.name ?? o, v = h.required || a;
|
|
6111
6113
|
let m;
|
|
6112
|
-
return d ? m = `${g}-error` : h.hint && (m = `${g}-hint`), /* @__PURE__ */ r(
|
|
6113
|
-
|
|
6114
|
+
return d ? m = `${g}-error` : h.hint && (m = `${g}-hint`), /* @__PURE__ */ r(Pc, { borderColor: f ? "danger600" : "neutral200", $hasError: f, hasRadius: !0, children: /* @__PURE__ */ r(
|
|
6115
|
+
Mc,
|
|
6114
6116
|
{
|
|
6115
6117
|
"aria-invalid": f,
|
|
6116
|
-
"aria-required":
|
|
6118
|
+
"aria-required": v,
|
|
6117
6119
|
tag: "textarea",
|
|
6118
6120
|
background: e ? "neutral150" : "neutral0",
|
|
6119
6121
|
color: e ? "neutral600" : "neutral800",
|
|
@@ -6132,9 +6134,9 @@ const $u = s.forwardRef(
|
|
|
6132
6134
|
}
|
|
6133
6135
|
) });
|
|
6134
6136
|
}
|
|
6135
|
-
),
|
|
6137
|
+
), Pc = u(S)`
|
|
6136
6138
|
${xe()}
|
|
6137
|
-
`,
|
|
6139
|
+
`, Mc = u(S)`
|
|
6138
6140
|
display: block;
|
|
6139
6141
|
border: none;
|
|
6140
6142
|
resize: ${({ $resizable: e }) => e ? "vertical" : "none"};
|
|
@@ -6177,10 +6179,10 @@ const $u = s.forwardRef(
|
|
|
6177
6179
|
}, f) => {
|
|
6178
6180
|
const [g = !1, p] = de({
|
|
6179
6181
|
prop: c
|
|
6180
|
-
}),
|
|
6182
|
+
}), v = g !== null && !g, { error: m, ...$ } = ne("Toggle"), R = !!m || o, I = $.id ?? i, w = $.name ?? l, y = $.required || a;
|
|
6181
6183
|
let k;
|
|
6182
|
-
return m ? k = `${
|
|
6183
|
-
|
|
6184
|
+
return m ? k = `${I}-error` : $.hint && (k = `${I}-hint`), /* @__PURE__ */ x(
|
|
6185
|
+
Bc,
|
|
6184
6186
|
{
|
|
6185
6187
|
position: "relative",
|
|
6186
6188
|
hasRadius: !0,
|
|
@@ -6203,15 +6205,15 @@ const $u = s.forwardRef(
|
|
|
6203
6205
|
paddingLeft: 3,
|
|
6204
6206
|
paddingRight: 3,
|
|
6205
6207
|
justifyContent: "center",
|
|
6206
|
-
background: n &&
|
|
6207
|
-
borderColor: n &&
|
|
6208
|
+
background: n && v ? "neutral200" : v ? "neutral0" : "transparent",
|
|
6209
|
+
borderColor: n && v ? "neutral300" : v ? "neutral200" : n ? "neutral150" : "neutral100",
|
|
6208
6210
|
children: /* @__PURE__ */ r(
|
|
6209
6211
|
A,
|
|
6210
6212
|
{
|
|
6211
6213
|
variant: "pi",
|
|
6212
6214
|
fontWeight: "bold",
|
|
6213
6215
|
textTransform: "uppercase",
|
|
6214
|
-
textColor: n ? "neutral700" :
|
|
6216
|
+
textColor: n ? "neutral700" : v ? "danger700" : "neutral600",
|
|
6215
6217
|
children: e
|
|
6216
6218
|
}
|
|
6217
6219
|
)
|
|
@@ -6240,17 +6242,17 @@ const $u = s.forwardRef(
|
|
|
6240
6242
|
}
|
|
6241
6243
|
),
|
|
6242
6244
|
/* @__PURE__ */ r(
|
|
6243
|
-
|
|
6245
|
+
Nc,
|
|
6244
6246
|
{
|
|
6245
6247
|
...h,
|
|
6246
|
-
id:
|
|
6247
|
-
name:
|
|
6248
|
+
id: I,
|
|
6249
|
+
name: w,
|
|
6248
6250
|
ref: f,
|
|
6249
6251
|
onChange: (E) => {
|
|
6250
6252
|
p(E.currentTarget.checked), d == null || d(E);
|
|
6251
6253
|
},
|
|
6252
6254
|
type: "checkbox",
|
|
6253
|
-
"aria-required":
|
|
6255
|
+
"aria-required": y,
|
|
6254
6256
|
disabled: n,
|
|
6255
6257
|
"aria-disabled": n,
|
|
6256
6258
|
checked: !!g,
|
|
@@ -6261,11 +6263,11 @@ const $u = s.forwardRef(
|
|
|
6261
6263
|
}
|
|
6262
6264
|
);
|
|
6263
6265
|
}
|
|
6264
|
-
),
|
|
6266
|
+
), Bc = u(C)`
|
|
6265
6267
|
${xe()}
|
|
6266
|
-
`, pr = u(
|
|
6268
|
+
`, pr = u(C)`
|
|
6267
6269
|
padding-block: 0.6rem;
|
|
6268
|
-
`,
|
|
6270
|
+
`, Nc = u.input`
|
|
6269
6271
|
height: 100%;
|
|
6270
6272
|
left: 0;
|
|
6271
6273
|
opacity: 0;
|
|
@@ -6273,7 +6275,7 @@ const $u = s.forwardRef(
|
|
|
6273
6275
|
top: 0;
|
|
6274
6276
|
z-index: 0;
|
|
6275
6277
|
width: 100%;
|
|
6276
|
-
`,
|
|
6278
|
+
`, Wc = {
|
|
6277
6279
|
x: 0,
|
|
6278
6280
|
y: 0,
|
|
6279
6281
|
width: 0,
|
|
@@ -6284,11 +6286,11 @@ const $u = s.forwardRef(
|
|
|
6284
6286
|
right: 0
|
|
6285
6287
|
};
|
|
6286
6288
|
function wu() {
|
|
6287
|
-
const [e, t] = gt(null), [n, o] = gt(
|
|
6289
|
+
const [e, t] = gt(null), [n, o] = gt(Wc), a = mr(
|
|
6288
6290
|
() => new ResizeObserver((i) => {
|
|
6289
6291
|
if (i[0]) {
|
|
6290
|
-
const { x: l, y: c, width: d, height: h, top: f, left: g, bottom: p, right:
|
|
6291
|
-
o({ x: l, y: c, width: d, height: h, top: f, left: g, bottom: p, right:
|
|
6292
|
+
const { x: l, y: c, width: d, height: h, top: f, left: g, bottom: p, right: v } = i[0].contentRect;
|
|
6293
|
+
o({ x: l, y: c, width: d, height: h, top: f, left: g, bottom: p, right: v });
|
|
6292
6294
|
}
|
|
6293
6295
|
}),
|
|
6294
6296
|
[]
|
|
@@ -6370,7 +6372,7 @@ export {
|
|
|
6370
6372
|
dd as Accordion,
|
|
6371
6373
|
ud as Alert,
|
|
6372
6374
|
hd as Avatar,
|
|
6373
|
-
|
|
6375
|
+
Br as Badge,
|
|
6374
6376
|
qe as BaseLink,
|
|
6375
6377
|
S as Box,
|
|
6376
6378
|
Ca as Breadcrumbs,
|
|
@@ -6397,16 +6399,16 @@ export {
|
|
|
6397
6399
|
va as Crumb,
|
|
6398
6400
|
Sa as CrumbLink,
|
|
6399
6401
|
ni as CrumbSimpleMenu,
|
|
6400
|
-
|
|
6402
|
+
Xs as DatePicker,
|
|
6401
6403
|
Nd as DateTimePicker,
|
|
6402
6404
|
Bd as DesignSystemProvider,
|
|
6403
6405
|
Pd as Dialog,
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
+
us as DismissibleLayer,
|
|
6407
|
+
wn as Divider,
|
|
6406
6408
|
Qd as Dots,
|
|
6407
6409
|
Wd as EmptyStateLayout,
|
|
6408
6410
|
Dd as Field,
|
|
6409
|
-
|
|
6411
|
+
C as Flex,
|
|
6410
6412
|
yu as FocusTrap,
|
|
6411
6413
|
Ld as Grid,
|
|
6412
6414
|
be as IconButton,
|
|
@@ -6416,34 +6418,34 @@ export {
|
|
|
6416
6418
|
Cu as KeyboardNavigable,
|
|
6417
6419
|
Oa as Link,
|
|
6418
6420
|
Hd as LinkButton,
|
|
6419
|
-
|
|
6421
|
+
ls as LiveRegions,
|
|
6420
6422
|
kt as Loader,
|
|
6421
6423
|
Vd as Main,
|
|
6422
6424
|
gd as Menu,
|
|
6423
6425
|
pd as MenuItem,
|
|
6424
6426
|
_d as Modal,
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
+
Jl as MultiSelect,
|
|
6428
|
+
ec as MultiSelectGroup,
|
|
6427
6429
|
eu as MultiSelectNested,
|
|
6428
|
-
|
|
6430
|
+
En as MultiSelectOption,
|
|
6429
6431
|
Kd as NextLink,
|
|
6430
6432
|
Ud as NumberInput,
|
|
6431
6433
|
Yd as PageLink,
|
|
6432
6434
|
Gd as Pagination,
|
|
6433
6435
|
Xd as Popover,
|
|
6434
|
-
|
|
6436
|
+
dn as Portal,
|
|
6435
6437
|
qd as PreviousLink,
|
|
6436
6438
|
Zd as ProgressBar,
|
|
6437
6439
|
Jd as Radio,
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6440
|
+
Fl as RawTable,
|
|
6441
|
+
jl as RawTbody,
|
|
6442
|
+
In as RawTd,
|
|
6443
|
+
Hl as RawTh,
|
|
6444
|
+
Vl as RawThead,
|
|
6445
|
+
_l as RawTr,
|
|
6444
6446
|
st as ScrollArea,
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
+
Yl as SearchForm,
|
|
6448
|
+
Kl as Searchbar,
|
|
6447
6449
|
ti as SimpleMenu,
|
|
6448
6450
|
cr as SingleSelect,
|
|
6449
6451
|
dr as SingleSelectOption,
|
|
@@ -6459,23 +6461,23 @@ export {
|
|
|
6459
6461
|
mu as TFooter,
|
|
6460
6462
|
du as Table,
|
|
6461
6463
|
cu as Tabs,
|
|
6462
|
-
|
|
6464
|
+
Xl as Tag,
|
|
6463
6465
|
uu as Tbody,
|
|
6464
6466
|
pu as Td,
|
|
6465
6467
|
bu as TextButton,
|
|
6466
|
-
|
|
6468
|
+
Lc as TextInput,
|
|
6467
6469
|
$u as Textarea,
|
|
6468
6470
|
gu as Th,
|
|
6469
6471
|
hu as Thead,
|
|
6470
|
-
|
|
6472
|
+
el as TimePicker,
|
|
6471
6473
|
xu as Toggle,
|
|
6472
6474
|
Mt as Tooltip,
|
|
6473
6475
|
fu as Tr,
|
|
6474
6476
|
A as Typography,
|
|
6475
6477
|
$e as VisuallyHidden,
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6478
|
+
Lr as _internaluseUncontrolledState,
|
|
6479
|
+
Tu as composeEventHandlers,
|
|
6480
|
+
Wr as composeRefs,
|
|
6479
6481
|
Ve as convertUTCDateToCalendarDateTime,
|
|
6480
6482
|
Rd as darkTheme,
|
|
6481
6483
|
Td as extendTheme,
|
|
@@ -6483,17 +6485,17 @@ export {
|
|
|
6483
6485
|
Id as getThemeSize,
|
|
6484
6486
|
Oe as handleResponsiveValues,
|
|
6485
6487
|
xe as inputFocusStyle,
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6488
|
+
Su as isSSR,
|
|
6489
|
+
rn as lightTheme,
|
|
6490
|
+
sn as setOpacity,
|
|
6491
|
+
Iu as useCallbackRef,
|
|
6492
|
+
Du as useCollator,
|
|
6491
6493
|
te as useComposedRefs,
|
|
6492
6494
|
de as useControllableState,
|
|
6493
6495
|
he as useDateFormatter,
|
|
6494
6496
|
lt as useDesignSystem,
|
|
6495
6497
|
ne as useField,
|
|
6496
|
-
|
|
6498
|
+
Eu as useFilter,
|
|
6497
6499
|
re as useId,
|
|
6498
6500
|
fe as useIsomorphicLayoutEffect,
|
|
6499
6501
|
wu as useMeasure,
|