@recursica/mantine-adapter 0.50.4 → 0.50.5
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/CHANGELOG.md +6 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.js +531 -529
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Chip/CHIP_IMPLEMENTATION_NOTES.md +13 -0
- package/src/components/Chip/Chip.stories.tsx +11 -0
- package/src/components/Chip/Chip.tsx +6 -1
package/dist/mantine-adapter.js
CHANGED
|
@@ -482,13 +482,13 @@ const Gr = "AssistiveElement-module__root___WhQ43", Hr = "AssistiveElement-modul
|
|
|
482
482
|
overStyled: l = !1,
|
|
483
483
|
...i
|
|
484
484
|
}, c) {
|
|
485
|
-
const m = u(i, l), p = tt.root,
|
|
485
|
+
const m = u(i, l), p = tt.root, C = t ? `${p} ${t}` : p, y = e === "error" ? Kr : qr;
|
|
486
486
|
return /* @__PURE__ */ M(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
489
489
|
ref: c,
|
|
490
490
|
...m,
|
|
491
|
-
className:
|
|
491
|
+
className: C,
|
|
492
492
|
"data-variant": e,
|
|
493
493
|
role: s ?? (e === "error" ? "alert" : void 0),
|
|
494
494
|
style: m.style,
|
|
@@ -519,31 +519,31 @@ const Yr = "Label-module__root___e6HXZ", Zr = "Label-module__labelText___rieFR",
|
|
|
519
519
|
overStyled: d = !1,
|
|
520
520
|
...m
|
|
521
521
|
}, p) {
|
|
522
|
-
const
|
|
522
|
+
const C = n || "left";
|
|
523
523
|
let y;
|
|
524
524
|
o || (t === !0 ? y = "optional" : t && (y = t));
|
|
525
|
-
const
|
|
525
|
+
const N = [
|
|
526
526
|
"size"
|
|
527
527
|
// Recursica controls label sizing via `labelSize` + design tokens, not Mantine's native `size`.
|
|
528
|
-
],
|
|
528
|
+
], v = G(
|
|
529
529
|
u(m, d),
|
|
530
|
-
|
|
531
|
-
),
|
|
530
|
+
N
|
|
531
|
+
), S = v, b = E(
|
|
532
532
|
{
|
|
533
533
|
label: to.root,
|
|
534
534
|
required: to.required
|
|
535
535
|
},
|
|
536
|
-
|
|
537
|
-
),
|
|
536
|
+
S.classNames
|
|
537
|
+
), T = S.className, $ = T ? `${to.root} ${T}` : to.root;
|
|
538
538
|
return /* @__PURE__ */ M(
|
|
539
539
|
Ft.Label,
|
|
540
540
|
{
|
|
541
541
|
ref: p,
|
|
542
|
-
...
|
|
542
|
+
...v,
|
|
543
543
|
className: $,
|
|
544
|
-
classNames:
|
|
544
|
+
classNames: b,
|
|
545
545
|
"data-size": e,
|
|
546
|
-
"data-alignment":
|
|
546
|
+
"data-alignment": C,
|
|
547
547
|
required: o && !s,
|
|
548
548
|
children: [
|
|
549
549
|
/* @__PURE__ */ a("span", { className: to.labelText, children: c }),
|
|
@@ -633,26 +633,26 @@ const as = "FormControlWrapper-module__root___c-UHo", rs = "FormControlWrapper-m
|
|
|
633
633
|
description: d,
|
|
634
634
|
assistiveText: m,
|
|
635
635
|
assistiveWithIcon: p = !0,
|
|
636
|
-
controlMaxWidth:
|
|
636
|
+
controlMaxWidth: C,
|
|
637
637
|
controlMinWidth: y,
|
|
638
|
-
error:
|
|
639
|
-
required:
|
|
640
|
-
withAsterisk:
|
|
641
|
-
id:
|
|
642
|
-
children:
|
|
638
|
+
error: N,
|
|
639
|
+
required: v,
|
|
640
|
+
withAsterisk: S,
|
|
641
|
+
id: b,
|
|
642
|
+
children: T,
|
|
643
643
|
className: $,
|
|
644
|
-
overStyled:
|
|
645
|
-
labelElement:
|
|
644
|
+
overStyled: g = !1,
|
|
645
|
+
labelElement: P,
|
|
646
646
|
// Extracted safely preventing bleeding into HTML domains
|
|
647
647
|
...f
|
|
648
|
-
},
|
|
649
|
-
const
|
|
650
|
-
|
|
648
|
+
}, w) {
|
|
649
|
+
const h = Bt(), I = b || `recursica-fc-${h}`, L = m || d, B = L ? `${I}-assistive` : void 0, W = N ? `${I}-error` : void 0, Y = u(f, g), j = $ || Y.className, q = Lt.root, J = j ? `${q} ${j}` : q, H = K.isValidElement(T) ? K.cloneElement(
|
|
650
|
+
T,
|
|
651
651
|
{
|
|
652
|
-
...L && !
|
|
653
|
-
...
|
|
652
|
+
...L && !T.props["aria-describedby"] ? { "aria-describedby": B } : {},
|
|
653
|
+
...N && !T.props["aria-errormessage"] ? { "aria-errormessage": W } : {}
|
|
654
654
|
}
|
|
655
|
-
) :
|
|
655
|
+
) : T, Z = c ? /* @__PURE__ */ a(
|
|
656
656
|
ut,
|
|
657
657
|
{
|
|
658
658
|
id: I,
|
|
@@ -661,34 +661,34 @@ const as = "FormControlWrapper-module__root___c-UHo", rs = "FormControlWrapper-m
|
|
|
661
661
|
labelWithEditIcon: s,
|
|
662
662
|
labelActionArea: l,
|
|
663
663
|
onLabelEditClick: i,
|
|
664
|
-
required:
|
|
665
|
-
...
|
|
664
|
+
required: S ?? v,
|
|
665
|
+
...P === "div" ? { as: "div" } : {},
|
|
666
666
|
children: c
|
|
667
667
|
}
|
|
668
668
|
) : void 0;
|
|
669
669
|
return /* @__PURE__ */ a(
|
|
670
670
|
Ge,
|
|
671
671
|
{
|
|
672
|
-
ref:
|
|
672
|
+
ref: w,
|
|
673
673
|
className: J,
|
|
674
674
|
formLayout: e,
|
|
675
675
|
labelSize: n,
|
|
676
|
-
controlMaxWidth:
|
|
676
|
+
controlMaxWidth: C,
|
|
677
677
|
controlMinWidth: y,
|
|
678
678
|
leftSection: Z,
|
|
679
679
|
...Y,
|
|
680
680
|
children: /* @__PURE__ */ M("div", { className: Lt.inputSection, children: [
|
|
681
681
|
H,
|
|
682
|
-
|
|
682
|
+
N && /* @__PURE__ */ a(
|
|
683
683
|
Ho,
|
|
684
684
|
{
|
|
685
685
|
id: W,
|
|
686
686
|
assistiveVariant: "error",
|
|
687
687
|
assistiveWithIcon: p,
|
|
688
|
-
children:
|
|
688
|
+
children: N
|
|
689
689
|
}
|
|
690
690
|
),
|
|
691
|
-
!
|
|
691
|
+
!N && L && /* @__PURE__ */ a(
|
|
692
692
|
Ho,
|
|
693
693
|
{
|
|
694
694
|
id: B,
|
|
@@ -764,14 +764,14 @@ const pt = _(
|
|
|
764
764
|
);
|
|
765
765
|
break;
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const N = s ? `${jo.layoutOverride} ${s}` : jo.layoutOverride;
|
|
768
768
|
return /* @__PURE__ */ a(
|
|
769
769
|
go,
|
|
770
770
|
{
|
|
771
771
|
ref: c,
|
|
772
772
|
...m,
|
|
773
773
|
overStyled: t,
|
|
774
|
-
className:
|
|
774
|
+
className: N,
|
|
775
775
|
style: l,
|
|
776
776
|
children: d
|
|
777
777
|
}
|
|
@@ -868,19 +868,19 @@ const is = "AutoComplete-module__layoutOverride___-K9WL", cs = "AutoComplete-mod
|
|
|
868
868
|
onLabelEditClick: d,
|
|
869
869
|
label: m,
|
|
870
870
|
assistiveText: p,
|
|
871
|
-
assistiveWithIcon:
|
|
871
|
+
assistiveWithIcon: C,
|
|
872
872
|
error: y,
|
|
873
|
-
required:
|
|
874
|
-
withAsterisk:
|
|
875
|
-
id:
|
|
876
|
-
className:
|
|
877
|
-
style:
|
|
873
|
+
required: N,
|
|
874
|
+
withAsterisk: v,
|
|
875
|
+
id: S,
|
|
876
|
+
className: b,
|
|
877
|
+
style: T,
|
|
878
878
|
disabled: $,
|
|
879
|
-
readOnly:
|
|
880
|
-
readOnlyComponent:
|
|
879
|
+
readOnly: g,
|
|
880
|
+
readOnlyComponent: P,
|
|
881
881
|
emptyValueComponent: f,
|
|
882
|
-
value:
|
|
883
|
-
defaultValue:
|
|
882
|
+
value: w,
|
|
883
|
+
defaultValue: h,
|
|
884
884
|
data: I,
|
|
885
885
|
renderOption: L,
|
|
886
886
|
wrapItemText: B = !1,
|
|
@@ -904,12 +904,12 @@ const is = "AutoComplete-module__layoutOverride___-K9WL", cs = "AutoComplete-mod
|
|
|
904
904
|
optionText: Ce.optionText,
|
|
905
905
|
optionTextWrap: Ce.optionTextWrap,
|
|
906
906
|
optionSupportingText: Ce.optionSupportingText
|
|
907
|
-
}, H =
|
|
907
|
+
}, H = b ? `${Ce.layoutOverride} ${b}` : Ce.layoutOverride;
|
|
908
908
|
return /* @__PURE__ */ a(
|
|
909
909
|
ve,
|
|
910
910
|
{
|
|
911
911
|
className: H,
|
|
912
|
-
style:
|
|
912
|
+
style: T,
|
|
913
913
|
controlMaxWidth: "var(--autocomplete-control-max-width)",
|
|
914
914
|
controlMinWidth: "var(--autocomplete-control-min-width)",
|
|
915
915
|
overStyled: o,
|
|
@@ -921,16 +921,16 @@ const is = "AutoComplete-module__layoutOverride___-K9WL", cs = "AutoComplete-mod
|
|
|
921
921
|
onLabelEditClick: d,
|
|
922
922
|
label: m,
|
|
923
923
|
assistiveText: p,
|
|
924
|
-
assistiveWithIcon:
|
|
924
|
+
assistiveWithIcon: C,
|
|
925
925
|
error: y,
|
|
926
|
-
required:
|
|
927
|
-
withAsterisk:
|
|
928
|
-
id:
|
|
929
|
-
readOnly:
|
|
930
|
-
readOnlyComponent:
|
|
926
|
+
required: N,
|
|
927
|
+
withAsterisk: v,
|
|
928
|
+
id: S,
|
|
929
|
+
readOnly: g,
|
|
930
|
+
readOnlyComponent: P,
|
|
931
931
|
emptyValueComponent: f,
|
|
932
932
|
readOnlyType: "text",
|
|
933
|
-
readOnlyValue:
|
|
933
|
+
readOnlyValue: w !== void 0 ? w : h,
|
|
934
934
|
readOnlyNativeProps: e,
|
|
935
935
|
activeComponent: (
|
|
936
936
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -941,8 +941,8 @@ const is = "AutoComplete-module__layoutOverride___-K9WL", cs = "AutoComplete-mod
|
|
|
941
941
|
...A,
|
|
942
942
|
classNames: q,
|
|
943
943
|
disabled: $,
|
|
944
|
-
value:
|
|
945
|
-
defaultValue:
|
|
944
|
+
value: w,
|
|
945
|
+
defaultValue: h,
|
|
946
946
|
error: !!y,
|
|
947
947
|
data: j,
|
|
948
948
|
renderOption: L ?? ((Z) => en(Z, J, B))
|
|
@@ -982,33 +982,33 @@ const bs = "Avatar-module__root___fXu-J", Cs = "Avatar-module__iconWrapper___ojl
|
|
|
982
982
|
// Colors are token-driven via `data-variant`; Mantine's native palette isn't exposed.
|
|
983
983
|
"radius"
|
|
984
984
|
// Avatar corner radius is controlled by design tokens, not a raw radius prop.
|
|
985
|
-
],
|
|
985
|
+
], C = G(
|
|
986
986
|
u(i, l),
|
|
987
987
|
p
|
|
988
|
-
), y =
|
|
989
|
-
let
|
|
990
|
-
s ?
|
|
991
|
-
const
|
|
988
|
+
), y = C;
|
|
989
|
+
let N = "text";
|
|
990
|
+
s ? N = "image" : o && (N = "icon");
|
|
991
|
+
const v = E(
|
|
992
992
|
{
|
|
993
993
|
root: To.root,
|
|
994
994
|
image: To.image,
|
|
995
995
|
placeholder: To.placeholder
|
|
996
996
|
},
|
|
997
997
|
y.classNames
|
|
998
|
-
),
|
|
998
|
+
), S = y.className;
|
|
999
999
|
return /* @__PURE__ */ a(
|
|
1000
1000
|
Qa,
|
|
1001
1001
|
{
|
|
1002
1002
|
ref: c,
|
|
1003
|
-
...
|
|
1004
|
-
className:
|
|
1005
|
-
classNames:
|
|
1003
|
+
...C,
|
|
1004
|
+
className: S,
|
|
1005
|
+
classNames: v,
|
|
1006
1006
|
variant: d[n],
|
|
1007
1007
|
size: m[e],
|
|
1008
1008
|
src: s,
|
|
1009
1009
|
"data-variant": n,
|
|
1010
1010
|
"data-size": e,
|
|
1011
|
-
"data-style":
|
|
1011
|
+
"data-style": N,
|
|
1012
1012
|
children: o != null ? /* @__PURE__ */ a("span", { className: To.iconWrapper, "aria-hidden": !0, children: o }) : t != null ? /* @__PURE__ */ a("span", { className: To.textWrapper, children: t }) : void 0
|
|
1013
1013
|
}
|
|
1014
1014
|
);
|
|
@@ -1085,7 +1085,7 @@ const Os = "Loader-module__root___6iYOP", nt = {
|
|
|
1085
1085
|
}[n] || "default", c = u(t, o), d = c, m = E(
|
|
1086
1086
|
{ root: nt.root },
|
|
1087
1087
|
d.classNames
|
|
1088
|
-
), p = d.className,
|
|
1088
|
+
), p = d.className, C = p ? `${nt.root} ${p}` : nt.root;
|
|
1089
1089
|
return /* @__PURE__ */ a(
|
|
1090
1090
|
er,
|
|
1091
1091
|
{
|
|
@@ -1094,7 +1094,7 @@ const Os = "Loader-module__root___6iYOP", nt = {
|
|
|
1094
1094
|
type: e,
|
|
1095
1095
|
"data-variant": e,
|
|
1096
1096
|
"data-size": i,
|
|
1097
|
-
className:
|
|
1097
|
+
className: C,
|
|
1098
1098
|
classNames: m
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
@@ -1126,51 +1126,51 @@ const sn = _(function({
|
|
|
1126
1126
|
solid: "filled",
|
|
1127
1127
|
outline: "outline",
|
|
1128
1128
|
text: "subtle"
|
|
1129
|
-
},
|
|
1129
|
+
}, C = {
|
|
1130
1130
|
default: "md",
|
|
1131
1131
|
small: "sm"
|
|
1132
1132
|
}, y = [
|
|
1133
1133
|
"fullWidth"
|
|
1134
1134
|
// Recursica Button width comes from layout/token constraints, not Mantine's boolean fullWidth toggle.
|
|
1135
|
-
],
|
|
1135
|
+
], N = G(
|
|
1136
1136
|
u(d, s),
|
|
1137
1137
|
y
|
|
1138
|
-
),
|
|
1139
|
-
let
|
|
1140
|
-
$ ?
|
|
1138
|
+
), v = N, S = !!o || !!v.leftSection, b = !!v.rightSection, T = Ws(t), $ = (S || b) && !T;
|
|
1139
|
+
let g = "label";
|
|
1140
|
+
$ ? g = "icon-only" : (S || b) && (g = "icon-label"), typeof process < "u" && process.env.NODE_ENV !== "production" && $ && !v["aria-label"] && console.warn(
|
|
1141
1141
|
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
1142
1142
|
);
|
|
1143
|
-
const
|
|
1143
|
+
const P = E(
|
|
1144
1144
|
{
|
|
1145
1145
|
root: no.root,
|
|
1146
1146
|
section: no.section,
|
|
1147
1147
|
label: no.label,
|
|
1148
1148
|
loader: no.loader
|
|
1149
1149
|
},
|
|
1150
|
-
|
|
1151
|
-
), f =
|
|
1150
|
+
v.classNames
|
|
1151
|
+
), f = v.className, w = f ? `${no.root} ${f}` : no.root, h = v.loaderProps, I = me(
|
|
1152
1152
|
n === "small" ? "small" : "default",
|
|
1153
1153
|
i
|
|
1154
1154
|
);
|
|
1155
|
-
let L =
|
|
1155
|
+
let L = h;
|
|
1156
1156
|
return c && (L = {
|
|
1157
1157
|
children: /* @__PURE__ */ a(mt, { variant: l, size: I }),
|
|
1158
|
-
...
|
|
1158
|
+
...h
|
|
1159
1159
|
}), /* @__PURE__ */ a(
|
|
1160
1160
|
or,
|
|
1161
1161
|
{
|
|
1162
1162
|
ref: m,
|
|
1163
|
-
...
|
|
1164
|
-
className:
|
|
1165
|
-
classNames:
|
|
1163
|
+
...N,
|
|
1164
|
+
className: w,
|
|
1165
|
+
classNames: P,
|
|
1166
1166
|
variant: p[e],
|
|
1167
|
-
size:
|
|
1167
|
+
size: C[n],
|
|
1168
1168
|
loaderProps: L,
|
|
1169
1169
|
leftSection: o != null ? /* @__PURE__ */ a("span", { className: no.iconWrapper, "aria-hidden": !0, children: o }) : void 0,
|
|
1170
1170
|
"data-variant": e,
|
|
1171
1171
|
"data-size": n,
|
|
1172
|
-
"data-content":
|
|
1173
|
-
disabled: !!
|
|
1172
|
+
"data-content": g,
|
|
1173
|
+
disabled: !!v.disabled || !!v.loading,
|
|
1174
1174
|
children: /* @__PURE__ */ a("span", { className: no.labelText, children: t })
|
|
1175
1175
|
}
|
|
1176
1176
|
);
|
|
@@ -1319,19 +1319,19 @@ const Vs = _n, Gs = "Checkbox-module__groupRoot___cBS0o", Hs = "Checkbox-module_
|
|
|
1319
1319
|
// Base Mantine Extracted Attributes
|
|
1320
1320
|
label: m,
|
|
1321
1321
|
description: p,
|
|
1322
|
-
assistiveText:
|
|
1322
|
+
assistiveText: C,
|
|
1323
1323
|
assistiveWithIcon: y,
|
|
1324
|
-
error:
|
|
1325
|
-
required:
|
|
1326
|
-
withAsterisk:
|
|
1327
|
-
id:
|
|
1328
|
-
className:
|
|
1324
|
+
error: N,
|
|
1325
|
+
required: v,
|
|
1326
|
+
withAsterisk: S,
|
|
1327
|
+
id: b,
|
|
1328
|
+
className: T,
|
|
1329
1329
|
style: $,
|
|
1330
|
-
children:
|
|
1331
|
-
readOnly:
|
|
1330
|
+
children: g,
|
|
1331
|
+
readOnly: P,
|
|
1332
1332
|
readOnlyComponent: f,
|
|
1333
|
-
emptyValueComponent:
|
|
1334
|
-
value:
|
|
1333
|
+
emptyValueComponent: w,
|
|
1334
|
+
value: h,
|
|
1335
1335
|
defaultValue: I,
|
|
1336
1336
|
...L
|
|
1337
1337
|
} = e, B = [
|
|
@@ -1344,7 +1344,7 @@ const Vs = _n, Gs = "Checkbox-module__groupRoot___cBS0o", Hs = "Checkbox-module_
|
|
|
1344
1344
|
return /* @__PURE__ */ a(
|
|
1345
1345
|
ve,
|
|
1346
1346
|
{
|
|
1347
|
-
className:
|
|
1347
|
+
className: T,
|
|
1348
1348
|
style: $,
|
|
1349
1349
|
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
1350
1350
|
controlMinWidth: void 0,
|
|
@@ -1358,27 +1358,27 @@ const Vs = _n, Gs = "Checkbox-module__groupRoot___cBS0o", Hs = "Checkbox-module_
|
|
|
1358
1358
|
onLabelEditClick: d,
|
|
1359
1359
|
label: m,
|
|
1360
1360
|
description: p,
|
|
1361
|
-
assistiveText:
|
|
1361
|
+
assistiveText: C,
|
|
1362
1362
|
assistiveWithIcon: y,
|
|
1363
|
-
error:
|
|
1364
|
-
required:
|
|
1365
|
-
withAsterisk:
|
|
1366
|
-
id:
|
|
1367
|
-
readOnly:
|
|
1363
|
+
error: N,
|
|
1364
|
+
required: v,
|
|
1365
|
+
withAsterisk: S,
|
|
1366
|
+
id: b,
|
|
1367
|
+
readOnly: P && !!f,
|
|
1368
1368
|
readOnlyComponent: f,
|
|
1369
|
-
emptyValueComponent:
|
|
1369
|
+
emptyValueComponent: w,
|
|
1370
1370
|
readOnlyType: "text",
|
|
1371
|
-
readOnlyValue:
|
|
1371
|
+
readOnlyValue: h !== void 0 ? h : I,
|
|
1372
1372
|
readOnlyNativeProps: e,
|
|
1373
|
-
activeComponent:
|
|
1373
|
+
activeComponent: h !== void 0 || I !== void 0 ? /* @__PURE__ */ a(
|
|
1374
1374
|
Ut.Group,
|
|
1375
1375
|
{
|
|
1376
1376
|
ref: n,
|
|
1377
1377
|
...W,
|
|
1378
|
-
disabled:
|
|
1379
|
-
value:
|
|
1378
|
+
disabled: P || A.disabled,
|
|
1379
|
+
value: h,
|
|
1380
1380
|
defaultValue: I,
|
|
1381
|
-
children: /* @__PURE__ */ a("div", { className: ke.groupRoot, "data-layout": t, children:
|
|
1381
|
+
children: /* @__PURE__ */ a("div", { className: ke.groupRoot, "data-layout": t, children: g })
|
|
1382
1382
|
}
|
|
1383
1383
|
) : /* @__PURE__ */ a(
|
|
1384
1384
|
"div",
|
|
@@ -1388,7 +1388,7 @@ const Vs = _n, Gs = "Checkbox-module__groupRoot___cBS0o", Hs = "Checkbox-module_
|
|
|
1388
1388
|
role: "group",
|
|
1389
1389
|
className: ke.groupRoot,
|
|
1390
1390
|
"data-layout": t,
|
|
1391
|
-
children:
|
|
1391
|
+
children: g
|
|
1392
1392
|
}
|
|
1393
1393
|
)
|
|
1394
1394
|
}
|
|
@@ -1408,7 +1408,7 @@ const Lo = _(
|
|
|
1408
1408
|
controlMaxWidth: d,
|
|
1409
1409
|
controlMinWidth: m,
|
|
1410
1410
|
...p
|
|
1411
|
-
} = e,
|
|
1411
|
+
} = e, C = [
|
|
1412
1412
|
"size",
|
|
1413
1413
|
// Recursica controls sizing via Checkbox.module.css variables, not Mantine's native size scale.
|
|
1414
1414
|
"color",
|
|
@@ -1421,8 +1421,8 @@ const Lo = _(
|
|
|
1421
1421
|
// Icon color is token-driven via Checkbox.module.css, not a native Mantine override.
|
|
1422
1422
|
], y = G(
|
|
1423
1423
|
u(p, o),
|
|
1424
|
-
|
|
1425
|
-
),
|
|
1424
|
+
C
|
|
1425
|
+
), N = y, v = E(
|
|
1426
1426
|
{
|
|
1427
1427
|
root: ke.root,
|
|
1428
1428
|
body: ke.body,
|
|
@@ -1432,15 +1432,15 @@ const Lo = _(
|
|
|
1432
1432
|
labelWrapper: ke.labelWrapper,
|
|
1433
1433
|
label: ke.label
|
|
1434
1434
|
},
|
|
1435
|
-
|
|
1436
|
-
),
|
|
1435
|
+
N.classNames
|
|
1436
|
+
), S = N.className, b = S ? `${ke.root} ${S}` : ke.root;
|
|
1437
1437
|
if (t && s) {
|
|
1438
|
-
const $ = !!(
|
|
1438
|
+
const $ = !!(N.checked ?? N.defaultChecked), P = /* @__PURE__ */ a(
|
|
1439
1439
|
s,
|
|
1440
1440
|
{
|
|
1441
1441
|
...e,
|
|
1442
1442
|
checked: $,
|
|
1443
|
-
label:
|
|
1443
|
+
label: N.label
|
|
1444
1444
|
}
|
|
1445
1445
|
);
|
|
1446
1446
|
return i ? /* @__PURE__ */ a(
|
|
@@ -1450,17 +1450,17 @@ const Lo = _(
|
|
|
1450
1450
|
labelSize: c,
|
|
1451
1451
|
controlMaxWidth: d,
|
|
1452
1452
|
controlMinWidth: m,
|
|
1453
|
-
children:
|
|
1453
|
+
children: P
|
|
1454
1454
|
}
|
|
1455
|
-
) : /* @__PURE__ */ a(No, { children:
|
|
1455
|
+
) : /* @__PURE__ */ a(No, { children: P });
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const T = /* @__PURE__ */ a(
|
|
1458
1458
|
Ut,
|
|
1459
1459
|
{
|
|
1460
1460
|
ref: n,
|
|
1461
1461
|
...y,
|
|
1462
|
-
className:
|
|
1463
|
-
classNames:
|
|
1462
|
+
className: b,
|
|
1463
|
+
classNames: v,
|
|
1464
1464
|
disabled: t || l
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
@@ -1471,9 +1471,9 @@ const Lo = _(
|
|
|
1471
1471
|
labelSize: c,
|
|
1472
1472
|
controlMaxWidth: d,
|
|
1473
1473
|
controlMinWidth: m,
|
|
1474
|
-
children:
|
|
1474
|
+
children: T
|
|
1475
1475
|
}
|
|
1476
|
-
) :
|
|
1476
|
+
) : T;
|
|
1477
1477
|
}
|
|
1478
1478
|
);
|
|
1479
1479
|
Lo.displayName = "Checkbox";
|
|
@@ -1516,13 +1516,14 @@ const Ao = _(function({
|
|
|
1516
1516
|
deleteTabIndex: s,
|
|
1517
1517
|
deleteIconRef: l,
|
|
1518
1518
|
children: i,
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1519
|
+
checked: c,
|
|
1520
|
+
overStyled: d = !1,
|
|
1521
|
+
wrapperProps: m,
|
|
1522
|
+
tabIndex: p,
|
|
1523
|
+
"aria-hidden": C,
|
|
1524
|
+
...y
|
|
1525
|
+
}, N) {
|
|
1526
|
+
const v = u(y, d), S = v, b = E(
|
|
1526
1527
|
{
|
|
1527
1528
|
root: Oe.root,
|
|
1528
1529
|
label: Oe.label,
|
|
@@ -1530,30 +1531,31 @@ const Ao = _(function({
|
|
|
1530
1531
|
iconWrapper: Oe.mantineIconWrapper,
|
|
1531
1532
|
checkIcon: Oe.checkIcon
|
|
1532
1533
|
},
|
|
1533
|
-
|
|
1534
|
-
),
|
|
1535
|
-
|
|
1536
|
-
...
|
|
1534
|
+
S.classNames
|
|
1535
|
+
), T = S.className, $ = T ? `${Oe.root} ${T}` : Oe.root, g = e ? "" : void 0, P = !i && (!!n || !!o), f = o !== void 0 || S.onClick !== void 0 || S.onChange !== void 0, w = {
|
|
1536
|
+
...g !== void 0 ? { "data-error": "" } : {},
|
|
1537
|
+
...f ? { "data-interactive": "" } : {}
|
|
1537
1538
|
};
|
|
1538
1539
|
return /* @__PURE__ */ a(
|
|
1539
1540
|
tr,
|
|
1540
1541
|
{
|
|
1541
|
-
ref:
|
|
1542
|
+
ref: N,
|
|
1542
1543
|
...v,
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1544
|
+
checked: c,
|
|
1545
|
+
className: $,
|
|
1546
|
+
classNames: b,
|
|
1547
|
+
wrapperProps: me(w, m),
|
|
1548
|
+
"data-icon-only": P ? "" : void 0,
|
|
1547
1549
|
tabIndex: me(
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
+
f ? void 0 : -1,
|
|
1551
|
+
p
|
|
1550
1552
|
),
|
|
1551
1553
|
"aria-hidden": me(
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
+
f ? void 0 : !0,
|
|
1555
|
+
C
|
|
1554
1556
|
),
|
|
1555
1557
|
children: /* @__PURE__ */ M("span", { className: Oe.innerWrapper, children: [
|
|
1556
|
-
n && /* @__PURE__ */ a("span", { className: Oe.leadingIcon, "aria-hidden": !0, children: n }),
|
|
1558
|
+
n && !c && /* @__PURE__ */ a("span", { className: Oe.leadingIcon, "aria-hidden": !0, children: n }),
|
|
1557
1559
|
/* @__PURE__ */ a("span", { className: Oe.children, children: i }),
|
|
1558
1560
|
o && /* @__PURE__ */ a(
|
|
1559
1561
|
"span",
|
|
@@ -1561,13 +1563,13 @@ const Ao = _(function({
|
|
|
1561
1563
|
ref: l,
|
|
1562
1564
|
role: "button",
|
|
1563
1565
|
className: Oe.deleteIcon,
|
|
1564
|
-
onClick: (
|
|
1565
|
-
|
|
1566
|
+
onClick: (h) => {
|
|
1567
|
+
h.preventDefault(), h.stopPropagation(), o(h);
|
|
1566
1568
|
},
|
|
1567
1569
|
"aria-label": t,
|
|
1568
|
-
onKeyDown: (
|
|
1569
|
-
(
|
|
1570
|
-
|
|
1570
|
+
onKeyDown: (h) => {
|
|
1571
|
+
(h.key === "Enter" || h.key === " ") && (h.preventDefault(), h.stopPropagation(), o(
|
|
1572
|
+
h
|
|
1571
1573
|
));
|
|
1572
1574
|
},
|
|
1573
1575
|
tabIndex: s ?? 0,
|
|
@@ -1667,19 +1669,19 @@ const il = "DatePicker-module__layoutOverride___X9yaM", cl = "DatePicker-module_
|
|
|
1667
1669
|
onLabelEditClick: d,
|
|
1668
1670
|
label: m,
|
|
1669
1671
|
assistiveText: p,
|
|
1670
|
-
assistiveWithIcon:
|
|
1672
|
+
assistiveWithIcon: C,
|
|
1671
1673
|
error: y,
|
|
1672
|
-
required:
|
|
1673
|
-
withAsterisk:
|
|
1674
|
-
id:
|
|
1675
|
-
className:
|
|
1676
|
-
style:
|
|
1674
|
+
required: N,
|
|
1675
|
+
withAsterisk: v,
|
|
1676
|
+
id: S,
|
|
1677
|
+
className: b,
|
|
1678
|
+
style: T,
|
|
1677
1679
|
disabled: $,
|
|
1678
|
-
readOnly:
|
|
1679
|
-
readOnlyComponent:
|
|
1680
|
+
readOnly: g,
|
|
1681
|
+
readOnlyComponent: P,
|
|
1680
1682
|
emptyValueComponent: f,
|
|
1681
|
-
value:
|
|
1682
|
-
defaultValue:
|
|
1683
|
+
value: w,
|
|
1684
|
+
defaultValue: h,
|
|
1683
1685
|
highlightToday: I = !0,
|
|
1684
1686
|
// Default on so today is visually marked; consumers can still override.
|
|
1685
1687
|
valueFormat: L = "MM/DD/YY",
|
|
@@ -1714,12 +1716,12 @@ const il = "DatePicker-module__layoutOverride___X9yaM", cl = "DatePicker-module_
|
|
|
1714
1716
|
{ dropdown: Pe.dropdown },
|
|
1715
1717
|
Z
|
|
1716
1718
|
)
|
|
1717
|
-
}, ue =
|
|
1719
|
+
}, ue = b ? `${Pe.layoutOverride} ${b}` : Pe.layoutOverride;
|
|
1718
1720
|
return /* @__PURE__ */ a(
|
|
1719
1721
|
ve,
|
|
1720
1722
|
{
|
|
1721
1723
|
className: ue,
|
|
1722
|
-
style:
|
|
1724
|
+
style: T,
|
|
1723
1725
|
controlMaxWidth: void 0,
|
|
1724
1726
|
controlMinWidth: void 0,
|
|
1725
1727
|
overStyled: o,
|
|
@@ -1731,16 +1733,16 @@ const il = "DatePicker-module__layoutOverride___X9yaM", cl = "DatePicker-module_
|
|
|
1731
1733
|
onLabelEditClick: d,
|
|
1732
1734
|
label: m,
|
|
1733
1735
|
assistiveText: p,
|
|
1734
|
-
assistiveWithIcon:
|
|
1736
|
+
assistiveWithIcon: C,
|
|
1735
1737
|
error: y,
|
|
1736
|
-
required:
|
|
1737
|
-
withAsterisk:
|
|
1738
|
-
id:
|
|
1739
|
-
readOnly:
|
|
1740
|
-
readOnlyComponent:
|
|
1738
|
+
required: N,
|
|
1739
|
+
withAsterisk: v,
|
|
1740
|
+
id: S,
|
|
1741
|
+
readOnly: g,
|
|
1742
|
+
readOnlyComponent: P,
|
|
1741
1743
|
emptyValueComponent: f,
|
|
1742
1744
|
readOnlyType: "text",
|
|
1743
|
-
readOnlyValue:
|
|
1745
|
+
readOnlyValue: w !== void 0 ? String(w) : h ? String(h) : void 0,
|
|
1744
1746
|
readOnlyNativeProps: e,
|
|
1745
1747
|
activeComponent: (
|
|
1746
1748
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -1751,8 +1753,8 @@ const il = "DatePicker-module__layoutOverride___X9yaM", cl = "DatePicker-module_
|
|
|
1751
1753
|
...Y,
|
|
1752
1754
|
classNames: q,
|
|
1753
1755
|
disabled: $,
|
|
1754
|
-
value:
|
|
1755
|
-
defaultValue:
|
|
1756
|
+
value: w,
|
|
1757
|
+
defaultValue: h,
|
|
1756
1758
|
label: void 0,
|
|
1757
1759
|
description: void 0,
|
|
1758
1760
|
error: void 0,
|
|
@@ -1810,19 +1812,19 @@ const bl = "Dropdown-module__layoutOverride___FNcvP", Cl = "Dropdown-module__roo
|
|
|
1810
1812
|
labelWithEditIcon: d,
|
|
1811
1813
|
onLabelEditClick: m,
|
|
1812
1814
|
label: p,
|
|
1813
|
-
assistiveText:
|
|
1815
|
+
assistiveText: C,
|
|
1814
1816
|
assistiveWithIcon: y,
|
|
1815
|
-
error:
|
|
1816
|
-
required:
|
|
1817
|
-
withAsterisk:
|
|
1818
|
-
id:
|
|
1819
|
-
className:
|
|
1817
|
+
error: N,
|
|
1818
|
+
required: v,
|
|
1819
|
+
withAsterisk: S,
|
|
1820
|
+
id: b,
|
|
1821
|
+
className: T,
|
|
1820
1822
|
style: $,
|
|
1821
|
-
disabled:
|
|
1822
|
-
readOnly:
|
|
1823
|
+
disabled: g,
|
|
1824
|
+
readOnly: P,
|
|
1823
1825
|
readOnlyComponent: f,
|
|
1824
|
-
emptyValueComponent:
|
|
1825
|
-
value:
|
|
1826
|
+
emptyValueComponent: w,
|
|
1827
|
+
value: h,
|
|
1826
1828
|
defaultValue: I,
|
|
1827
1829
|
data: L,
|
|
1828
1830
|
clearButtonProps: B,
|
|
@@ -1854,7 +1856,7 @@ const bl = "Dropdown-module__layoutOverride___FNcvP", Cl = "Dropdown-module__roo
|
|
|
1854
1856
|
}, D = {
|
|
1855
1857
|
...$ || {},
|
|
1856
1858
|
width: s || "100%"
|
|
1857
|
-
}, re =
|
|
1859
|
+
}, re = T ? `${oe.layoutOverride} ${T}` : oe.layoutOverride;
|
|
1858
1860
|
return /* @__PURE__ */ a(
|
|
1859
1861
|
ve,
|
|
1860
1862
|
{
|
|
@@ -1870,17 +1872,17 @@ const bl = "Dropdown-module__layoutOverride___FNcvP", Cl = "Dropdown-module__roo
|
|
|
1870
1872
|
labelWithEditIcon: d,
|
|
1871
1873
|
onLabelEditClick: m,
|
|
1872
1874
|
label: p,
|
|
1873
|
-
assistiveText:
|
|
1875
|
+
assistiveText: C,
|
|
1874
1876
|
assistiveWithIcon: y,
|
|
1875
|
-
error:
|
|
1876
|
-
required:
|
|
1877
|
-
withAsterisk:
|
|
1878
|
-
id:
|
|
1879
|
-
readOnly:
|
|
1877
|
+
error: N,
|
|
1878
|
+
required: v,
|
|
1879
|
+
withAsterisk: S,
|
|
1880
|
+
id: b,
|
|
1881
|
+
readOnly: P,
|
|
1880
1882
|
readOnlyComponent: f,
|
|
1881
|
-
emptyValueComponent:
|
|
1883
|
+
emptyValueComponent: w,
|
|
1882
1884
|
readOnlyType: "text",
|
|
1883
|
-
readOnlyValue:
|
|
1885
|
+
readOnlyValue: h !== void 0 ? String(h) : I ? String(I) : void 0,
|
|
1884
1886
|
readOnlyNativeProps: e,
|
|
1885
1887
|
activeComponent: (
|
|
1886
1888
|
/* Naked Select execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -1890,8 +1892,8 @@ const bl = "Dropdown-module__layoutOverride___FNcvP", Cl = "Dropdown-module__roo
|
|
|
1890
1892
|
ref: n,
|
|
1891
1893
|
...j,
|
|
1892
1894
|
classNames: te,
|
|
1893
|
-
disabled:
|
|
1894
|
-
value:
|
|
1895
|
+
disabled: g,
|
|
1896
|
+
value: h,
|
|
1895
1897
|
defaultValue: I,
|
|
1896
1898
|
data: J || [],
|
|
1897
1899
|
renderOption: W ?? ((pe) => en(pe, ue, A)),
|
|
@@ -1903,8 +1905,8 @@ const bl = "Dropdown-module__layoutOverride___FNcvP", Cl = "Dropdown-module__roo
|
|
|
1903
1905
|
withAsterisk: void 0,
|
|
1904
1906
|
attributes: {
|
|
1905
1907
|
wrapper: {
|
|
1906
|
-
"data-disabled":
|
|
1907
|
-
"data-error":
|
|
1908
|
+
"data-disabled": g ? "true" : void 0,
|
|
1909
|
+
"data-error": N ? "true" : void 0
|
|
1908
1910
|
}
|
|
1909
1911
|
}
|
|
1910
1912
|
}
|
|
@@ -1977,19 +1979,19 @@ const vn = _(
|
|
|
1977
1979
|
labelActionArea: d,
|
|
1978
1980
|
onLabelEditClick: m,
|
|
1979
1981
|
label: p,
|
|
1980
|
-
assistiveText:
|
|
1982
|
+
assistiveText: C,
|
|
1981
1983
|
assistiveWithIcon: y,
|
|
1982
|
-
error:
|
|
1983
|
-
required:
|
|
1984
|
-
withAsterisk:
|
|
1985
|
-
id:
|
|
1986
|
-
className:
|
|
1984
|
+
error: N,
|
|
1985
|
+
required: v,
|
|
1986
|
+
withAsterisk: S,
|
|
1987
|
+
id: b,
|
|
1988
|
+
className: T,
|
|
1987
1989
|
style: $,
|
|
1988
|
-
disabled:
|
|
1989
|
-
readOnly:
|
|
1990
|
+
disabled: g,
|
|
1991
|
+
readOnly: P,
|
|
1990
1992
|
files: f,
|
|
1991
|
-
onFilesAdded:
|
|
1992
|
-
onFileRemove:
|
|
1993
|
+
onFilesAdded: w,
|
|
1994
|
+
onFileRemove: h,
|
|
1993
1995
|
accept: I,
|
|
1994
1996
|
multiple: L = !1,
|
|
1995
1997
|
maxSize: B,
|
|
@@ -2004,9 +2006,9 @@ const vn = _(
|
|
|
2004
2006
|
removeFileLabel: te = "Remove",
|
|
2005
2007
|
clearLabel: ue = "Clear",
|
|
2006
2008
|
...D
|
|
2007
|
-
} = e, pe = u(D, o), O = !
|
|
2009
|
+
} = e, pe = u(D, o), O = !g && !P, le = !!f && f.length > 0, Ne = Ve(null), [se, ie] = ce(!1), [be, $e] = ce(!1), Qe = (x) => {
|
|
2008
2010
|
if (!O) return;
|
|
2009
|
-
const ne = Array.from(
|
|
2011
|
+
const ne = Array.from(x);
|
|
2010
2012
|
if (ne.length === 0) return;
|
|
2011
2013
|
const ae = L ? W : 1, X = L ? (f == null ? void 0 : f.length) ?? 0 : 0, fe = [], zo = [];
|
|
2012
2014
|
let wt = !1, St = !1;
|
|
@@ -2016,41 +2018,41 @@ const vn = _(
|
|
|
2016
2018
|
const Ka = B !== void 0 && ot.size > B, Ot = ae !== void 0 && X + fe.length >= ae;
|
|
2017
2019
|
Ot && (St = !0), (xt || Ka || Ot ? zo : fe).push(ot);
|
|
2018
2020
|
}
|
|
2019
|
-
ie(wt), $e(St), fe.length > 0 && (
|
|
2020
|
-
}, we = Ve(0), [Xe, Ee] = ce(!1), Be = (
|
|
2021
|
-
|
|
2022
|
-
}, po = (
|
|
2023
|
-
|
|
2024
|
-
}, Se = (
|
|
2025
|
-
|
|
2026
|
-
}, Je = (
|
|
2027
|
-
|
|
2021
|
+
ie(wt), $e(St), fe.length > 0 && (w == null || w(fe)), zo.length > 0 && (A == null || A(zo));
|
|
2022
|
+
}, we = Ve(0), [Xe, Ee] = ce(!1), Be = (x) => {
|
|
2023
|
+
x.preventDefault(), we.current += 1, Ee(!0);
|
|
2024
|
+
}, po = (x) => {
|
|
2025
|
+
x.preventDefault(), we.current -= 1, we.current <= 0 && (we.current = 0, Ee(!1));
|
|
2026
|
+
}, Se = (x) => {
|
|
2027
|
+
x.preventDefault();
|
|
2028
|
+
}, Je = (x) => {
|
|
2029
|
+
x.preventDefault(), we.current = 0, Ee(!1), Qe(x.dataTransfer.files);
|
|
2028
2030
|
}, xe = () => {
|
|
2029
|
-
var
|
|
2030
|
-
O && ((
|
|
2031
|
-
}, eo = (
|
|
2032
|
-
|
|
2033
|
-
}, V = (
|
|
2034
|
-
|
|
2031
|
+
var x;
|
|
2032
|
+
O && ((x = Ne.current) == null || x.click());
|
|
2033
|
+
}, eo = (x) => {
|
|
2034
|
+
x.key !== "Enter" && x.key !== " " || (x.preventDefault(), xe());
|
|
2035
|
+
}, V = (x) => {
|
|
2036
|
+
x.target.files && Qe(x.target.files), x.target.value = "";
|
|
2035
2037
|
}, F = () => {
|
|
2036
|
-
!O || !f || f.length === 0 || f.forEach((
|
|
2038
|
+
!O || !f || f.length === 0 || f.forEach((x) => h == null ? void 0 : h(x.id ?? x.file.name));
|
|
2037
2039
|
}, [z, k] = ce(0), U = Ve([]), Q = Ve((f == null ? void 0 : f.length) ?? 0);
|
|
2038
2040
|
Ie(() => {
|
|
2039
2041
|
var ne;
|
|
2040
|
-
const
|
|
2041
|
-
if (
|
|
2042
|
-
const ae = Math.min(z,
|
|
2042
|
+
const x = (f == null ? void 0 : f.length) ?? 0;
|
|
2043
|
+
if (x > 0 && x < Q.current) {
|
|
2044
|
+
const ae = Math.min(z, x - 1);
|
|
2043
2045
|
k(ae), (ne = U.current[ae]) == null || ne.focus();
|
|
2044
2046
|
}
|
|
2045
|
-
Q.current =
|
|
2047
|
+
Q.current = x;
|
|
2046
2048
|
}, [f]);
|
|
2047
|
-
const _e = (
|
|
2049
|
+
const _e = (x) => {
|
|
2048
2050
|
var X;
|
|
2049
2051
|
const ne = (f == null ? void 0 : f.length) ?? 0;
|
|
2050
2052
|
if (ne === 0) return;
|
|
2051
2053
|
let ae;
|
|
2052
|
-
|
|
2053
|
-
}, oo =
|
|
2054
|
+
x.key === "ArrowRight" || x.key === "ArrowDown" ? ae = (z + 1) % ne : (x.key === "ArrowLeft" || x.key === "ArrowUp") && (ae = (z - 1 + ne) % ne), ae !== void 0 && (x.preventDefault(), x.stopPropagation(), k(ae), (X = U.current[ae]) == null || X.focus());
|
|
2055
|
+
}, oo = N ?? (se ? Y : be ? j : void 0), mo = T ? `${Fe.layoutOverride} ${T}` : Fe.layoutOverride;
|
|
2054
2056
|
return /* @__PURE__ */ a(
|
|
2055
2057
|
go,
|
|
2056
2058
|
{
|
|
@@ -2065,12 +2067,12 @@ const vn = _(
|
|
|
2065
2067
|
labelActionArea: d,
|
|
2066
2068
|
onLabelEditClick: m,
|
|
2067
2069
|
label: p,
|
|
2068
|
-
assistiveText:
|
|
2070
|
+
assistiveText: C,
|
|
2069
2071
|
assistiveWithIcon: y,
|
|
2070
2072
|
error: oo,
|
|
2071
|
-
required:
|
|
2072
|
-
withAsterisk:
|
|
2073
|
-
id:
|
|
2073
|
+
required: v,
|
|
2074
|
+
withAsterisk: S,
|
|
2075
|
+
id: b,
|
|
2074
2076
|
controlMaxWidth: "var(--file-input-control-max-width)",
|
|
2075
2077
|
controlMinWidth: "var(--file-input-control-min-width)",
|
|
2076
2078
|
children: /* @__PURE__ */ M(
|
|
@@ -2081,10 +2083,10 @@ const vn = _(
|
|
|
2081
2083
|
className: Fe.root,
|
|
2082
2084
|
role: "button",
|
|
2083
2085
|
"aria-label": Z,
|
|
2084
|
-
"aria-disabled":
|
|
2086
|
+
"aria-disabled": g ? "true" : void 0,
|
|
2085
2087
|
tabIndex: O ? 0 : -1,
|
|
2086
|
-
"data-disabled":
|
|
2087
|
-
"data-readonly":
|
|
2088
|
+
"data-disabled": g ? "true" : void 0,
|
|
2089
|
+
"data-readonly": P ? "true" : void 0,
|
|
2088
2090
|
"data-error": oo ? "true" : void 0,
|
|
2089
2091
|
"data-dragging": Xe ? "true" : void 0,
|
|
2090
2092
|
onClick: O ? xe : void 0,
|
|
@@ -2101,9 +2103,9 @@ const vn = _(
|
|
|
2101
2103
|
"div",
|
|
2102
2104
|
{
|
|
2103
2105
|
className: Fe.chipRow,
|
|
2104
|
-
onKeyDown:
|
|
2105
|
-
children: f.map((
|
|
2106
|
-
const ae =
|
|
2106
|
+
onKeyDown: P ? void 0 : _e,
|
|
2107
|
+
children: f.map((x, ne) => {
|
|
2108
|
+
const ae = x.id ?? x.file.name;
|
|
2107
2109
|
return /* @__PURE__ */ a(
|
|
2108
2110
|
"span",
|
|
2109
2111
|
{
|
|
@@ -2114,13 +2116,13 @@ const vn = _(
|
|
|
2114
2116
|
{
|
|
2115
2117
|
checked: !1,
|
|
2116
2118
|
tabIndex: -1,
|
|
2117
|
-
deleteLabel:
|
|
2118
|
-
deleteTabIndex: !
|
|
2119
|
+
deleteLabel: P ? void 0 : te,
|
|
2120
|
+
deleteTabIndex: !P && ne === z ? 0 : -1,
|
|
2119
2121
|
deleteIconRef: (X) => {
|
|
2120
2122
|
U.current[ne] = X;
|
|
2121
2123
|
},
|
|
2122
|
-
onDelete:
|
|
2123
|
-
children:
|
|
2124
|
+
onDelete: P || g ? void 0 : () => h == null ? void 0 : h(ae),
|
|
2125
|
+
children: x.file.name
|
|
2124
2126
|
}
|
|
2125
2127
|
)
|
|
2126
2128
|
},
|
|
@@ -2130,7 +2132,7 @@ const vn = _(
|
|
|
2130
2132
|
}
|
|
2131
2133
|
)
|
|
2132
2134
|
] }),
|
|
2133
|
-
le && !
|
|
2135
|
+
le && !P && /* @__PURE__ */ a(
|
|
2134
2136
|
co,
|
|
2135
2137
|
{
|
|
2136
2138
|
overStyled: !0,
|
|
@@ -2139,12 +2141,12 @@ const vn = _(
|
|
|
2139
2141
|
icon: J ?? /* @__PURE__ */ a(Ul, {}),
|
|
2140
2142
|
"aria-label": ue,
|
|
2141
2143
|
className: Fe.trailingIcon,
|
|
2142
|
-
disabled:
|
|
2143
|
-
onClick: (
|
|
2144
|
-
|
|
2144
|
+
disabled: g,
|
|
2145
|
+
onClick: (x) => {
|
|
2146
|
+
x.preventDefault(), x.stopPropagation(), F();
|
|
2145
2147
|
},
|
|
2146
|
-
onKeyDown: (
|
|
2147
|
-
|
|
2148
|
+
onKeyDown: (x) => {
|
|
2149
|
+
x.key !== "Enter" && x.key !== " " || (x.preventDefault(), x.stopPropagation(), F());
|
|
2148
2150
|
}
|
|
2149
2151
|
}
|
|
2150
2152
|
),
|
|
@@ -2209,19 +2211,19 @@ const Nn = _(
|
|
|
2209
2211
|
labelActionArea: d,
|
|
2210
2212
|
onLabelEditClick: m,
|
|
2211
2213
|
label: p,
|
|
2212
|
-
assistiveText:
|
|
2214
|
+
assistiveText: C,
|
|
2213
2215
|
assistiveWithIcon: y,
|
|
2214
|
-
error:
|
|
2215
|
-
required:
|
|
2216
|
-
withAsterisk:
|
|
2217
|
-
id:
|
|
2218
|
-
className:
|
|
2216
|
+
error: N,
|
|
2217
|
+
required: v,
|
|
2218
|
+
withAsterisk: S,
|
|
2219
|
+
id: b,
|
|
2220
|
+
className: T,
|
|
2219
2221
|
style: $,
|
|
2220
|
-
disabled:
|
|
2221
|
-
readOnly:
|
|
2222
|
+
disabled: g,
|
|
2223
|
+
readOnly: P,
|
|
2222
2224
|
files: f,
|
|
2223
|
-
onFilesAdded:
|
|
2224
|
-
onFileRemove:
|
|
2225
|
+
onFilesAdded: w,
|
|
2226
|
+
onFileRemove: h,
|
|
2225
2227
|
accept: I,
|
|
2226
2228
|
multiple: L = !0,
|
|
2227
2229
|
maxSize: B,
|
|
@@ -2235,18 +2237,18 @@ const Nn = _(
|
|
|
2235
2237
|
removeFileLabel: Z = "Remove",
|
|
2236
2238
|
...te
|
|
2237
2239
|
} = e, D = u(te, o), re = Ve(null), [pe, O] = ce(!1), [le, Ne] = ce(!1), se = (k) => {
|
|
2238
|
-
if (
|
|
2240
|
+
if (g) return;
|
|
2239
2241
|
const U = Array.from(k);
|
|
2240
2242
|
if (U.length === 0) return;
|
|
2241
2243
|
const Q = (f == null ? void 0 : f.length) ?? 0, _e = [], oo = [];
|
|
2242
|
-
let mo = !1,
|
|
2244
|
+
let mo = !1, x = !1;
|
|
2243
2245
|
for (const ne of U) {
|
|
2244
2246
|
const ae = !Zt(ne, I);
|
|
2245
2247
|
ae && (mo = !0);
|
|
2246
2248
|
const X = B !== void 0 && ne.size > B, fe = W !== void 0 && Q + _e.length >= W;
|
|
2247
|
-
fe && (
|
|
2249
|
+
fe && (x = !0), (ae || X || fe ? oo : _e).push(ne);
|
|
2248
2250
|
}
|
|
2249
|
-
O(mo), Ne(
|
|
2251
|
+
O(mo), Ne(x), _e.length > 0 && (w == null || w(_e)), oo.length > 0 && (A == null || A(oo));
|
|
2250
2252
|
}, ie = Ve(0), [be, $e] = ce(!1), Qe = (k) => {
|
|
2251
2253
|
k.preventDefault(), ie.current += 1, $e(!0);
|
|
2252
2254
|
}, we = (k) => {
|
|
@@ -2257,7 +2259,7 @@ const Nn = _(
|
|
|
2257
2259
|
k.preventDefault(), ie.current = 0, $e(!1), se(k.dataTransfer.files);
|
|
2258
2260
|
}, Be = () => {
|
|
2259
2261
|
var k;
|
|
2260
|
-
|
|
2262
|
+
g || (k = re.current) == null || k.click();
|
|
2261
2263
|
}, po = (k) => {
|
|
2262
2264
|
k.target.files && se(k.target.files), k.target.value = "";
|
|
2263
2265
|
}, [Se, Je] = ce(0), xe = Ve([]), eo = Ve((f == null ? void 0 : f.length) ?? 0);
|
|
@@ -2276,7 +2278,7 @@ const Nn = _(
|
|
|
2276
2278
|
if (U === 0) return;
|
|
2277
2279
|
let Q;
|
|
2278
2280
|
k.key === "ArrowRight" || k.key === "ArrowDown" ? Q = (Se + 1) % U : (k.key === "ArrowLeft" || k.key === "ArrowUp") && (Q = (Se - 1 + U) % U), Q !== void 0 && (k.preventDefault(), Je(Q), (_e = xe.current[Q]) == null || _e.focus());
|
|
2279
|
-
}, F =
|
|
2281
|
+
}, F = N ?? (pe ? Y : le ? j : void 0), z = T ? `${ao.layoutOverride} ${T}` : ao.layoutOverride;
|
|
2280
2282
|
return /* @__PURE__ */ a(
|
|
2281
2283
|
go,
|
|
2282
2284
|
{
|
|
@@ -2291,30 +2293,30 @@ const Nn = _(
|
|
|
2291
2293
|
labelActionArea: d,
|
|
2292
2294
|
onLabelEditClick: m,
|
|
2293
2295
|
label: p,
|
|
2294
|
-
assistiveText:
|
|
2296
|
+
assistiveText: C,
|
|
2295
2297
|
assistiveWithIcon: y,
|
|
2296
2298
|
error: F,
|
|
2297
|
-
required:
|
|
2298
|
-
withAsterisk:
|
|
2299
|
-
id:
|
|
2299
|
+
required: v,
|
|
2300
|
+
withAsterisk: S,
|
|
2301
|
+
id: b,
|
|
2300
2302
|
children: /* @__PURE__ */ M(
|
|
2301
2303
|
"div",
|
|
2302
2304
|
{
|
|
2303
2305
|
ref: n,
|
|
2304
2306
|
...D,
|
|
2305
2307
|
className: ao.root,
|
|
2306
|
-
"data-disabled":
|
|
2308
|
+
"data-disabled": g ? "true" : void 0,
|
|
2307
2309
|
"data-error": F ? "true" : void 0,
|
|
2308
2310
|
children: [
|
|
2309
|
-
!
|
|
2311
|
+
!P && /* @__PURE__ */ M(
|
|
2310
2312
|
"div",
|
|
2311
2313
|
{
|
|
2312
2314
|
className: ao.dropzone,
|
|
2313
2315
|
"data-dragging": be ? "true" : void 0,
|
|
2314
|
-
onDragEnter:
|
|
2315
|
-
onDragLeave:
|
|
2316
|
-
onDragOver:
|
|
2317
|
-
onDrop:
|
|
2316
|
+
onDragEnter: g ? void 0 : Qe,
|
|
2317
|
+
onDragLeave: g ? void 0 : we,
|
|
2318
|
+
onDragOver: g ? void 0 : Xe,
|
|
2319
|
+
onDrop: g ? void 0 : Ee,
|
|
2318
2320
|
children: [
|
|
2319
2321
|
/* @__PURE__ */ a("span", { className: ao.uploadIcon, children: q ?? /* @__PURE__ */ a(Yl, {}) }),
|
|
2320
2322
|
/* @__PURE__ */ a("span", { className: ao.dropzoneText, children: J }),
|
|
@@ -2322,7 +2324,7 @@ const Nn = _(
|
|
|
2322
2324
|
co,
|
|
2323
2325
|
{
|
|
2324
2326
|
variant: "outline",
|
|
2325
|
-
disabled:
|
|
2327
|
+
disabled: g,
|
|
2326
2328
|
onClick: Be,
|
|
2327
2329
|
children: H
|
|
2328
2330
|
}
|
|
@@ -2335,14 +2337,14 @@ const Nn = _(
|
|
|
2335
2337
|
hidden: !0,
|
|
2336
2338
|
accept: I,
|
|
2337
2339
|
multiple: L,
|
|
2338
|
-
disabled:
|
|
2340
|
+
disabled: g,
|
|
2339
2341
|
onChange: po
|
|
2340
2342
|
}
|
|
2341
2343
|
)
|
|
2342
2344
|
]
|
|
2343
2345
|
}
|
|
2344
2346
|
),
|
|
2345
|
-
f && f.length > 0 && (
|
|
2347
|
+
f && f.length > 0 && (P ? /* @__PURE__ */ a("div", { className: ao.fileList, children: f.map((k) => {
|
|
2346
2348
|
const U = k.id ?? k.file.name;
|
|
2347
2349
|
return /* @__PURE__ */ a(Ao, { checked: !1, tabIndex: -1, children: k.file.name }, U);
|
|
2348
2350
|
}) }) : /* @__PURE__ */ a(
|
|
@@ -2362,7 +2364,7 @@ const Nn = _(
|
|
|
2362
2364
|
deleteIconRef: (_e) => {
|
|
2363
2365
|
xe.current[U] = _e;
|
|
2364
2366
|
},
|
|
2365
|
-
onDelete:
|
|
2367
|
+
onDelete: g ? void 0 : () => h == null ? void 0 : h(Q),
|
|
2366
2368
|
children: k.file.name
|
|
2367
2369
|
},
|
|
2368
2370
|
Q
|
|
@@ -2754,7 +2756,7 @@ const hi = "Modal-module__root___ytPLl", vi = "Modal-module__inner___SSUJE", Ni
|
|
|
2754
2756
|
], p = G(
|
|
2755
2757
|
u(c, e),
|
|
2756
2758
|
m
|
|
2757
|
-
),
|
|
2759
|
+
), C = E(
|
|
2758
2760
|
{
|
|
2759
2761
|
root: Ue.root,
|
|
2760
2762
|
inner: Ue.inner,
|
|
@@ -2770,7 +2772,7 @@ const hi = "Modal-module__root___ytPLl", vi = "Modal-module__inner___SSUJE", Ni
|
|
|
2770
2772
|
{
|
|
2771
2773
|
ref: d,
|
|
2772
2774
|
...p,
|
|
2773
|
-
classNames:
|
|
2775
|
+
classNames: C,
|
|
2774
2776
|
children: [
|
|
2775
2777
|
l && /* @__PURE__ */ a(he.Overlay, { ...s }),
|
|
2776
2778
|
/* @__PURE__ */ M(he.Content, { children: [
|
|
@@ -2801,27 +2803,27 @@ const ft = K.forwardRef(
|
|
|
2801
2803
|
ft.displayName = "Modal.Footer";
|
|
2802
2804
|
const yt = K.forwardRef(
|
|
2803
2805
|
function({ overStyled: e = !1, className: n, onScroll: o, children: t, ...s }, l) {
|
|
2804
|
-
const i = u(s, e), c = K.useRef(null), [d, m] = K.useState(!1), [p,
|
|
2806
|
+
const i = u(s, e), c = K.useRef(null), [d, m] = K.useState(!1), [p, C] = K.useState(!1), y = K.useCallback(() => {
|
|
2805
2807
|
if (c.current) {
|
|
2806
|
-
const { scrollTop:
|
|
2807
|
-
m(
|
|
2808
|
+
const { scrollTop: b, scrollHeight: T, clientHeight: $ } = c.current;
|
|
2809
|
+
m(b > 0), C(Math.ceil(b + $) < T);
|
|
2808
2810
|
}
|
|
2809
2811
|
}, []);
|
|
2810
2812
|
K.useEffect(() => (y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y)), [y, t]);
|
|
2811
|
-
const
|
|
2812
|
-
y(), o == null || o(
|
|
2813
|
+
const N = (b) => {
|
|
2814
|
+
y(), o == null || o(b);
|
|
2813
2815
|
};
|
|
2814
|
-
let
|
|
2815
|
-
const
|
|
2816
|
-
return K.Children.forEach(t, (
|
|
2817
|
-
var
|
|
2818
|
-
K.isValidElement(
|
|
2816
|
+
let v = null;
|
|
2817
|
+
const S = [];
|
|
2818
|
+
return K.Children.forEach(t, (b) => {
|
|
2819
|
+
var T;
|
|
2820
|
+
K.isValidElement(b) && (b.type === ft || ((T = b.type) == null ? void 0 : T.displayName) === "Modal.Footer") ? v = b : S.push(b);
|
|
2819
2821
|
}), /* @__PURE__ */ M(
|
|
2820
2822
|
he.Body,
|
|
2821
2823
|
{
|
|
2822
2824
|
...i,
|
|
2823
|
-
ref: (
|
|
2824
|
-
typeof l == "function" ? l(
|
|
2825
|
+
ref: (b) => {
|
|
2826
|
+
typeof l == "function" ? l(b) : l && (l.current = b);
|
|
2825
2827
|
},
|
|
2826
2828
|
className: `${Ue.bodyWrapper} ${n || ""}`,
|
|
2827
2829
|
children: [
|
|
@@ -2829,14 +2831,14 @@ const yt = K.forwardRef(
|
|
|
2829
2831
|
"div",
|
|
2830
2832
|
{
|
|
2831
2833
|
ref: c,
|
|
2832
|
-
onScroll:
|
|
2834
|
+
onScroll: N,
|
|
2833
2835
|
"data-scrolled-top": d || void 0,
|
|
2834
2836
|
"data-scrolled-bottom": p || void 0,
|
|
2835
2837
|
className: Ue.scrollArea,
|
|
2836
|
-
children:
|
|
2838
|
+
children: S
|
|
2837
2839
|
}
|
|
2838
2840
|
),
|
|
2839
|
-
|
|
2841
|
+
v
|
|
2840
2842
|
]
|
|
2841
2843
|
}
|
|
2842
2844
|
);
|
|
@@ -2974,19 +2976,19 @@ const Oi = "NumberInput-module__layoutOverride___5-9T4", ki = "NumberInput-modul
|
|
|
2974
2976
|
onLabelEditClick: d,
|
|
2975
2977
|
label: m,
|
|
2976
2978
|
assistiveText: p,
|
|
2977
|
-
assistiveWithIcon:
|
|
2979
|
+
assistiveWithIcon: C,
|
|
2978
2980
|
error: y,
|
|
2979
|
-
required:
|
|
2980
|
-
withAsterisk:
|
|
2981
|
-
id:
|
|
2982
|
-
className:
|
|
2983
|
-
style:
|
|
2981
|
+
required: N,
|
|
2982
|
+
withAsterisk: v,
|
|
2983
|
+
id: S,
|
|
2984
|
+
className: b,
|
|
2985
|
+
style: T,
|
|
2984
2986
|
disabled: $,
|
|
2985
|
-
readOnly:
|
|
2986
|
-
readOnlyComponent:
|
|
2987
|
+
readOnly: g,
|
|
2988
|
+
readOnlyComponent: P,
|
|
2987
2989
|
emptyValueComponent: f,
|
|
2988
|
-
value:
|
|
2989
|
-
defaultValue:
|
|
2990
|
+
value: w,
|
|
2991
|
+
defaultValue: h,
|
|
2990
2992
|
hideControls: I = !1,
|
|
2991
2993
|
...L
|
|
2992
2994
|
} = e, B = G(
|
|
@@ -2999,12 +3001,12 @@ const Oi = "NumberInput-module__layoutOverride___5-9T4", ki = "NumberInput-modul
|
|
|
2999
3001
|
section: yo.section,
|
|
3000
3002
|
controls: yo.controls,
|
|
3001
3003
|
control: yo.control
|
|
3002
|
-
}, Y =
|
|
3004
|
+
}, Y = b ? `${yo.layoutOverride} ${b}` : yo.layoutOverride;
|
|
3003
3005
|
return /* @__PURE__ */ a(
|
|
3004
3006
|
ve,
|
|
3005
3007
|
{
|
|
3006
3008
|
className: Y,
|
|
3007
|
-
style:
|
|
3009
|
+
style: T,
|
|
3008
3010
|
controlMaxWidth: "var(--number-input-control-max-width)",
|
|
3009
3011
|
controlMinWidth: "var(--number-input-control-min-width)",
|
|
3010
3012
|
overStyled: o,
|
|
@@ -3016,16 +3018,16 @@ const Oi = "NumberInput-module__layoutOverride___5-9T4", ki = "NumberInput-modul
|
|
|
3016
3018
|
onLabelEditClick: d,
|
|
3017
3019
|
label: m,
|
|
3018
3020
|
assistiveText: p,
|
|
3019
|
-
assistiveWithIcon:
|
|
3021
|
+
assistiveWithIcon: C,
|
|
3020
3022
|
error: y,
|
|
3021
|
-
required:
|
|
3022
|
-
withAsterisk:
|
|
3023
|
-
id:
|
|
3024
|
-
readOnly:
|
|
3025
|
-
readOnlyComponent:
|
|
3023
|
+
required: N,
|
|
3024
|
+
withAsterisk: v,
|
|
3025
|
+
id: S,
|
|
3026
|
+
readOnly: g,
|
|
3027
|
+
readOnlyComponent: P,
|
|
3026
3028
|
emptyValueComponent: f,
|
|
3027
3029
|
readOnlyType: "text",
|
|
3028
|
-
readOnlyValue:
|
|
3030
|
+
readOnlyValue: w !== void 0 ? w == null ? void 0 : w.toString() : h == null ? void 0 : h.toString(),
|
|
3029
3031
|
readOnlyNativeProps: e,
|
|
3030
3032
|
activeComponent: (
|
|
3031
3033
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -3036,8 +3038,8 @@ const Oi = "NumberInput-module__layoutOverride___5-9T4", ki = "NumberInput-modul
|
|
|
3036
3038
|
...B,
|
|
3037
3039
|
classNames: A,
|
|
3038
3040
|
disabled: $,
|
|
3039
|
-
value:
|
|
3040
|
-
defaultValue:
|
|
3041
|
+
value: w,
|
|
3042
|
+
defaultValue: h,
|
|
3041
3043
|
hideControls: I,
|
|
3042
3044
|
label: void 0,
|
|
3043
3045
|
description: void 0,
|
|
@@ -3458,19 +3460,19 @@ const oc = "Radio-module__groupRoot___bfUii", tc = "Radio-module__root___kAjTD",
|
|
|
3458
3460
|
// Base Mantine Extracted Attributes
|
|
3459
3461
|
label: m,
|
|
3460
3462
|
description: p,
|
|
3461
|
-
assistiveText:
|
|
3463
|
+
assistiveText: C,
|
|
3462
3464
|
assistiveWithIcon: y,
|
|
3463
|
-
error:
|
|
3464
|
-
required:
|
|
3465
|
-
withAsterisk:
|
|
3466
|
-
id:
|
|
3467
|
-
className:
|
|
3465
|
+
error: N,
|
|
3466
|
+
required: v,
|
|
3467
|
+
withAsterisk: S,
|
|
3468
|
+
id: b,
|
|
3469
|
+
className: T,
|
|
3468
3470
|
style: $,
|
|
3469
|
-
children:
|
|
3470
|
-
readOnly:
|
|
3471
|
+
children: g,
|
|
3472
|
+
readOnly: P,
|
|
3471
3473
|
readOnlyComponent: f,
|
|
3472
|
-
emptyValueComponent:
|
|
3473
|
-
value:
|
|
3474
|
+
emptyValueComponent: w,
|
|
3475
|
+
value: h,
|
|
3474
3476
|
defaultValue: I,
|
|
3475
3477
|
...L
|
|
3476
3478
|
} = e, B = [
|
|
@@ -3483,7 +3485,7 @@ const oc = "Radio-module__groupRoot___bfUii", tc = "Radio-module__root___kAjTD",
|
|
|
3483
3485
|
return /* @__PURE__ */ a(
|
|
3484
3486
|
ve,
|
|
3485
3487
|
{
|
|
3486
|
-
className:
|
|
3488
|
+
className: T,
|
|
3487
3489
|
style: $,
|
|
3488
3490
|
controlMaxWidth: "var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",
|
|
3489
3491
|
controlMinWidth: void 0,
|
|
@@ -3497,27 +3499,27 @@ const oc = "Radio-module__groupRoot___bfUii", tc = "Radio-module__root___kAjTD",
|
|
|
3497
3499
|
onLabelEditClick: d,
|
|
3498
3500
|
label: m,
|
|
3499
3501
|
description: p,
|
|
3500
|
-
assistiveText:
|
|
3502
|
+
assistiveText: C,
|
|
3501
3503
|
assistiveWithIcon: y,
|
|
3502
|
-
error:
|
|
3503
|
-
required:
|
|
3504
|
-
withAsterisk:
|
|
3505
|
-
id:
|
|
3506
|
-
readOnly:
|
|
3504
|
+
error: N,
|
|
3505
|
+
required: v,
|
|
3506
|
+
withAsterisk: S,
|
|
3507
|
+
id: b,
|
|
3508
|
+
readOnly: P && !!f,
|
|
3507
3509
|
readOnlyComponent: f,
|
|
3508
|
-
emptyValueComponent:
|
|
3510
|
+
emptyValueComponent: w,
|
|
3509
3511
|
readOnlyType: "text",
|
|
3510
|
-
readOnlyValue:
|
|
3512
|
+
readOnlyValue: h !== void 0 ? h : I,
|
|
3511
3513
|
readOnlyNativeProps: e,
|
|
3512
3514
|
activeComponent: /* @__PURE__ */ a(
|
|
3513
3515
|
Ht.Group,
|
|
3514
3516
|
{
|
|
3515
3517
|
ref: n,
|
|
3516
3518
|
...W,
|
|
3517
|
-
disabled:
|
|
3518
|
-
value:
|
|
3519
|
+
disabled: P || A.disabled,
|
|
3520
|
+
value: h,
|
|
3519
3521
|
defaultValue: I,
|
|
3520
|
-
children: /* @__PURE__ */ a("div", { className: Re.groupRoot, "data-layout": t, children:
|
|
3522
|
+
children: /* @__PURE__ */ a("div", { className: Re.groupRoot, "data-layout": t, children: g })
|
|
3521
3523
|
}
|
|
3522
3524
|
)
|
|
3523
3525
|
}
|
|
@@ -3547,7 +3549,7 @@ const cc = ({ className: r, style: e }) => /* @__PURE__ */ a(
|
|
|
3547
3549
|
labelSize: d,
|
|
3548
3550
|
controlMaxWidth: m,
|
|
3549
3551
|
controlMinWidth: p,
|
|
3550
|
-
...
|
|
3552
|
+
...C
|
|
3551
3553
|
} = e, y = [
|
|
3552
3554
|
"size",
|
|
3553
3555
|
// Recursica controls sizing via Radio.module.css variables, not Mantine's native size scale.
|
|
@@ -3559,10 +3561,10 @@ const cc = ({ className: r, style: e }) => /* @__PURE__ */ a(
|
|
|
3559
3561
|
// Radio has a single Recursica-defined visual treatment; Mantine's variant isn't exposed.
|
|
3560
3562
|
"iconColor"
|
|
3561
3563
|
// Icon color is token-driven via Radio.module.css, not a native Mantine override.
|
|
3562
|
-
],
|
|
3563
|
-
u(
|
|
3564
|
+
], N = G(
|
|
3565
|
+
u(C, o),
|
|
3564
3566
|
y
|
|
3565
|
-
),
|
|
3567
|
+
), v = N, S = E(
|
|
3566
3568
|
{
|
|
3567
3569
|
root: Re.root,
|
|
3568
3570
|
body: Re.body,
|
|
@@ -3572,15 +3574,15 @@ const cc = ({ className: r, style: e }) => /* @__PURE__ */ a(
|
|
|
3572
3574
|
labelWrapper: Re.labelWrapper,
|
|
3573
3575
|
label: Re.label
|
|
3574
3576
|
},
|
|
3575
|
-
|
|
3576
|
-
),
|
|
3577
|
+
v.classNames
|
|
3578
|
+
), b = v.className, T = b ? `${Re.root} ${b}` : Re.root;
|
|
3577
3579
|
if (t && s) {
|
|
3578
|
-
const
|
|
3580
|
+
const g = !!(v.checked ?? v.defaultChecked), f = /* @__PURE__ */ a(
|
|
3579
3581
|
s,
|
|
3580
3582
|
{
|
|
3581
3583
|
...e,
|
|
3582
|
-
checked:
|
|
3583
|
-
label:
|
|
3584
|
+
checked: g,
|
|
3585
|
+
label: v.label
|
|
3584
3586
|
}
|
|
3585
3587
|
);
|
|
3586
3588
|
return c ? /* @__PURE__ */ a(
|
|
@@ -3598,10 +3600,10 @@ const cc = ({ className: r, style: e }) => /* @__PURE__ */ a(
|
|
|
3598
3600
|
Ht,
|
|
3599
3601
|
{
|
|
3600
3602
|
ref: n,
|
|
3601
|
-
...
|
|
3603
|
+
...N,
|
|
3602
3604
|
icon: me(cc, i),
|
|
3603
|
-
className:
|
|
3604
|
-
classNames:
|
|
3605
|
+
className: T,
|
|
3606
|
+
classNames: S,
|
|
3605
3607
|
disabled: t || l
|
|
3606
3608
|
}
|
|
3607
3609
|
);
|
|
@@ -3705,19 +3707,19 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3705
3707
|
labelActionArea: d,
|
|
3706
3708
|
onLabelEditClick: m,
|
|
3707
3709
|
label: p,
|
|
3708
|
-
tooltipLabel:
|
|
3710
|
+
tooltipLabel: C,
|
|
3709
3711
|
assistiveText: y,
|
|
3710
|
-
assistiveWithIcon:
|
|
3711
|
-
error:
|
|
3712
|
-
required:
|
|
3713
|
-
withAsterisk:
|
|
3714
|
-
id:
|
|
3712
|
+
assistiveWithIcon: N,
|
|
3713
|
+
error: v,
|
|
3714
|
+
required: S,
|
|
3715
|
+
withAsterisk: b,
|
|
3716
|
+
id: T,
|
|
3715
3717
|
className: $,
|
|
3716
|
-
style:
|
|
3717
|
-
disabled:
|
|
3718
|
+
style: g,
|
|
3719
|
+
disabled: P,
|
|
3718
3720
|
readOnly: f,
|
|
3719
|
-
readOnlyComponent:
|
|
3720
|
-
emptyValueComponent:
|
|
3721
|
+
readOnlyComponent: w,
|
|
3722
|
+
emptyValueComponent: h,
|
|
3721
3723
|
value: I,
|
|
3722
3724
|
defaultValue: L,
|
|
3723
3725
|
icon: B,
|
|
@@ -3796,13 +3798,13 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3796
3798
|
markLabel: ee.sliderMarkLabel
|
|
3797
3799
|
},
|
|
3798
3800
|
po.classNames
|
|
3799
|
-
), Je = $ ? `${ee.layoutOverride} ${$}` : ee.layoutOverride, xe = B ? /* @__PURE__ */ a("span", { className: ee.iconWrapper, "aria-hidden": !0, children: B }) : null, eo = W ? /* @__PURE__ */ a("span", { className: ee.iconWrapper, "aria-hidden": !0, children: W }) : null, V = Array.isArray(O) ? typeof
|
|
3801
|
+
), Je = $ ? `${ee.layoutOverride} ${$}` : ee.layoutOverride, xe = B ? /* @__PURE__ */ a("span", { className: ee.iconWrapper, "aria-hidden": !0, children: B }) : null, eo = W ? /* @__PURE__ */ a("span", { className: ee.iconWrapper, "aria-hidden": !0, children: W }) : null, V = Array.isArray(O) ? typeof C == "function" ? `${C(O[0])} – ${C(O[1])}` : `${O[0]} – ${O[1]}` : typeof C == "function" ? C(O) : O;
|
|
3800
3802
|
return /* @__PURE__ */ a(
|
|
3801
3803
|
ve,
|
|
3802
3804
|
{
|
|
3803
3805
|
ref: n,
|
|
3804
3806
|
className: Je,
|
|
3805
|
-
style:
|
|
3807
|
+
style: g,
|
|
3806
3808
|
controlMaxWidth: void 0,
|
|
3807
3809
|
controlMinWidth: void 0,
|
|
3808
3810
|
overStyled: o,
|
|
@@ -3815,14 +3817,14 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3815
3817
|
onLabelEditClick: m,
|
|
3816
3818
|
label: p,
|
|
3817
3819
|
assistiveText: y,
|
|
3818
|
-
assistiveWithIcon:
|
|
3819
|
-
error:
|
|
3820
|
-
required:
|
|
3821
|
-
withAsterisk:
|
|
3822
|
-
id:
|
|
3820
|
+
assistiveWithIcon: N,
|
|
3821
|
+
error: v,
|
|
3822
|
+
required: S,
|
|
3823
|
+
withAsterisk: b,
|
|
3824
|
+
id: T,
|
|
3823
3825
|
readOnly: f,
|
|
3824
|
-
readOnlyComponent:
|
|
3825
|
-
emptyValueComponent:
|
|
3826
|
+
readOnlyComponent: w || Rc,
|
|
3827
|
+
emptyValueComponent: h,
|
|
3826
3828
|
readOnlyType: "text",
|
|
3827
3829
|
readOnlyValue: O,
|
|
3828
3830
|
readOnlyNativeProps: { value: O },
|
|
@@ -3831,8 +3833,8 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3831
3833
|
{
|
|
3832
3834
|
className: ee.sliderContainer,
|
|
3833
3835
|
"data-form-layout": t,
|
|
3834
|
-
"data-disabled":
|
|
3835
|
-
"data-error":
|
|
3836
|
+
"data-disabled": P ? "true" : void 0,
|
|
3837
|
+
"data-error": v ? "true" : void 0,
|
|
3836
3838
|
children: [
|
|
3837
3839
|
le && A && /* @__PURE__ */ a(
|
|
3838
3840
|
"input",
|
|
@@ -3845,8 +3847,8 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3845
3847
|
min: j,
|
|
3846
3848
|
max: O[1],
|
|
3847
3849
|
step: Z,
|
|
3848
|
-
disabled:
|
|
3849
|
-
"data-error":
|
|
3850
|
+
disabled: P,
|
|
3851
|
+
"data-error": v ? "true" : void 0,
|
|
3850
3852
|
"aria-label": "Minimum value"
|
|
3851
3853
|
}
|
|
3852
3854
|
),
|
|
@@ -3857,28 +3859,28 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3857
3859
|
{
|
|
3858
3860
|
...Be,
|
|
3859
3861
|
classNames: Se,
|
|
3860
|
-
disabled:
|
|
3862
|
+
disabled: P,
|
|
3861
3863
|
value: O,
|
|
3862
3864
|
onChange: ie,
|
|
3863
3865
|
onChangeEnd: ue,
|
|
3864
3866
|
min: j,
|
|
3865
3867
|
max: q,
|
|
3866
3868
|
step: Z,
|
|
3867
|
-
label:
|
|
3869
|
+
label: C
|
|
3868
3870
|
}
|
|
3869
3871
|
) : /* @__PURE__ */ a(
|
|
3870
3872
|
dr,
|
|
3871
3873
|
{
|
|
3872
3874
|
...Be,
|
|
3873
3875
|
classNames: Se,
|
|
3874
|
-
disabled:
|
|
3876
|
+
disabled: P,
|
|
3875
3877
|
value: O,
|
|
3876
3878
|
onChange: ie,
|
|
3877
3879
|
onChangeEnd: ue,
|
|
3878
3880
|
min: j,
|
|
3879
3881
|
max: q,
|
|
3880
3882
|
step: Z,
|
|
3881
|
-
label:
|
|
3883
|
+
label: C
|
|
3882
3884
|
}
|
|
3883
3885
|
) }),
|
|
3884
3886
|
/* @__PURE__ */ M("div", { className: ee.rightGuideContainer, children: [
|
|
@@ -3897,8 +3899,8 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3897
3899
|
min: O[0],
|
|
3898
3900
|
max: q,
|
|
3899
3901
|
step: Z,
|
|
3900
|
-
disabled:
|
|
3901
|
-
"data-error":
|
|
3902
|
+
disabled: P,
|
|
3903
|
+
"data-error": v ? "true" : void 0,
|
|
3902
3904
|
"aria-label": "Maximum value"
|
|
3903
3905
|
}
|
|
3904
3906
|
) : /* @__PURE__ */ a(
|
|
@@ -3912,8 +3914,8 @@ const fc = va, yc = "Slider-module__layoutOverride___zYPun", hc = "Slider-module
|
|
|
3912
3914
|
min: j,
|
|
3913
3915
|
max: q,
|
|
3914
3916
|
step: Z,
|
|
3915
|
-
disabled:
|
|
3916
|
-
"data-error":
|
|
3917
|
+
disabled: P,
|
|
3918
|
+
"data-error": v ? "true" : void 0
|
|
3917
3919
|
}
|
|
3918
3920
|
))
|
|
3919
3921
|
]
|
|
@@ -4046,19 +4048,19 @@ const Qc = "Switch-module__root___Y5Ydi", Xc = "Switch-module__track___7ObdZ", J
|
|
|
4046
4048
|
// Base Mantine Extracted Attributes
|
|
4047
4049
|
label: m,
|
|
4048
4050
|
description: p,
|
|
4049
|
-
assistiveText:
|
|
4051
|
+
assistiveText: C,
|
|
4050
4052
|
assistiveWithIcon: y,
|
|
4051
|
-
error:
|
|
4052
|
-
required:
|
|
4053
|
-
withAsterisk:
|
|
4054
|
-
id:
|
|
4055
|
-
className:
|
|
4053
|
+
error: N,
|
|
4054
|
+
required: v,
|
|
4055
|
+
withAsterisk: S,
|
|
4056
|
+
id: b,
|
|
4057
|
+
className: T,
|
|
4056
4058
|
style: $,
|
|
4057
|
-
children:
|
|
4058
|
-
readOnly:
|
|
4059
|
+
children: g,
|
|
4060
|
+
readOnly: P,
|
|
4059
4061
|
readOnlyComponent: f,
|
|
4060
|
-
emptyValueComponent:
|
|
4061
|
-
value:
|
|
4062
|
+
emptyValueComponent: w,
|
|
4063
|
+
value: h,
|
|
4062
4064
|
defaultValue: I,
|
|
4063
4065
|
...L
|
|
4064
4066
|
} = e, B = [
|
|
@@ -4071,7 +4073,7 @@ const Qc = "Switch-module__root___Y5Ydi", Xc = "Switch-module__track___7ObdZ", J
|
|
|
4071
4073
|
return /* @__PURE__ */ a(
|
|
4072
4074
|
ve,
|
|
4073
4075
|
{
|
|
4074
|
-
className:
|
|
4076
|
+
className: T,
|
|
4075
4077
|
style: $,
|
|
4076
4078
|
controlMaxWidth: void 0,
|
|
4077
4079
|
controlMinWidth: void 0,
|
|
@@ -4085,27 +4087,27 @@ const Qc = "Switch-module__root___Y5Ydi", Xc = "Switch-module__track___7ObdZ", J
|
|
|
4085
4087
|
onLabelEditClick: d,
|
|
4086
4088
|
label: m,
|
|
4087
4089
|
description: p,
|
|
4088
|
-
assistiveText:
|
|
4090
|
+
assistiveText: C,
|
|
4089
4091
|
assistiveWithIcon: y,
|
|
4090
|
-
error:
|
|
4091
|
-
required:
|
|
4092
|
-
withAsterisk:
|
|
4093
|
-
id:
|
|
4094
|
-
readOnly:
|
|
4092
|
+
error: N,
|
|
4093
|
+
required: v,
|
|
4094
|
+
withAsterisk: S,
|
|
4095
|
+
id: b,
|
|
4096
|
+
readOnly: P && !!f,
|
|
4095
4097
|
readOnlyComponent: f,
|
|
4096
|
-
emptyValueComponent:
|
|
4098
|
+
emptyValueComponent: w,
|
|
4097
4099
|
readOnlyType: "text",
|
|
4098
|
-
readOnlyValue:
|
|
4100
|
+
readOnlyValue: h !== void 0 ? h : I,
|
|
4099
4101
|
readOnlyNativeProps: e,
|
|
4100
4102
|
activeComponent: /* @__PURE__ */ a(
|
|
4101
4103
|
jt.Group,
|
|
4102
4104
|
{
|
|
4103
4105
|
ref: n,
|
|
4104
4106
|
...W,
|
|
4105
|
-
disabled:
|
|
4106
|
-
value:
|
|
4107
|
+
disabled: P || A.disabled,
|
|
4108
|
+
value: h,
|
|
4107
4109
|
defaultValue: I,
|
|
4108
|
-
children: /* @__PURE__ */ a("div", { className: ye.groupRoot, "data-layout": t, children:
|
|
4110
|
+
children: /* @__PURE__ */ a("div", { className: ye.groupRoot, "data-layout": t, children: g })
|
|
4109
4111
|
}
|
|
4110
4112
|
)
|
|
4111
4113
|
}
|
|
@@ -4125,7 +4127,7 @@ const Pt = _(
|
|
|
4125
4127
|
labelSize: d,
|
|
4126
4128
|
controlMaxWidth: m,
|
|
4127
4129
|
controlMinWidth: p,
|
|
4128
|
-
...
|
|
4130
|
+
...C
|
|
4129
4131
|
} = e, y = [
|
|
4130
4132
|
"size",
|
|
4131
4133
|
// Recursica controls sizing via Switch.module.css variables, not Mantine's native size scale.
|
|
@@ -4135,10 +4137,10 @@ const Pt = _(
|
|
|
4135
4137
|
// Corner radius is fixed by Recursica tokens in Switch.module.css, not caller-configurable.
|
|
4136
4138
|
"variant"
|
|
4137
4139
|
// Switch has a single Recursica-defined visual treatment; Mantine's variant isn't exposed.
|
|
4138
|
-
],
|
|
4139
|
-
u(
|
|
4140
|
+
], N = G(
|
|
4141
|
+
u(C, o),
|
|
4140
4142
|
y
|
|
4141
|
-
),
|
|
4143
|
+
), v = N, S = E(
|
|
4142
4144
|
{
|
|
4143
4145
|
root: ye.root,
|
|
4144
4146
|
body: ye.body,
|
|
@@ -4148,18 +4150,18 @@ const Pt = _(
|
|
|
4148
4150
|
labelWrapper: ye.labelWrapper,
|
|
4149
4151
|
label: ye.label
|
|
4150
4152
|
},
|
|
4151
|
-
|
|
4152
|
-
),
|
|
4153
|
+
v.classNames
|
|
4154
|
+
), b = Ir(
|
|
4153
4155
|
{},
|
|
4154
|
-
|
|
4155
|
-
),
|
|
4156
|
+
v.styles
|
|
4157
|
+
), T = v.className, $ = T ? `${ye.root} ${T}` : ye.root;
|
|
4156
4158
|
if (t && s) {
|
|
4157
|
-
const f = !!(
|
|
4159
|
+
const f = !!(v.checked ?? v.defaultChecked), h = /* @__PURE__ */ a(
|
|
4158
4160
|
s,
|
|
4159
4161
|
{
|
|
4160
4162
|
...e,
|
|
4161
4163
|
checked: f,
|
|
4162
|
-
label:
|
|
4164
|
+
label: v.label
|
|
4163
4165
|
}
|
|
4164
4166
|
);
|
|
4165
4167
|
return c ? /* @__PURE__ */ a(
|
|
@@ -4169,25 +4171,25 @@ const Pt = _(
|
|
|
4169
4171
|
labelSize: d,
|
|
4170
4172
|
controlMaxWidth: m,
|
|
4171
4173
|
controlMinWidth: p,
|
|
4172
|
-
children:
|
|
4174
|
+
children: h
|
|
4173
4175
|
}
|
|
4174
|
-
) : /* @__PURE__ */ a(No, { children:
|
|
4176
|
+
) : /* @__PURE__ */ a(No, { children: h });
|
|
4175
4177
|
}
|
|
4176
|
-
const
|
|
4178
|
+
const g = /* @__PURE__ */ M("div", { className: ye.thumbIconWrapper, children: [
|
|
4177
4179
|
/* @__PURE__ */ a(pr, { className: ye.checkIcon }),
|
|
4178
4180
|
/* @__PURE__ */ a(mr, { className: ye.closeIcon })
|
|
4179
|
-
] }),
|
|
4181
|
+
] }), P = /* @__PURE__ */ a(
|
|
4180
4182
|
jt,
|
|
4181
4183
|
{
|
|
4182
4184
|
ref: n,
|
|
4183
|
-
...
|
|
4185
|
+
...N,
|
|
4184
4186
|
className: $,
|
|
4185
|
-
classNames:
|
|
4186
|
-
styles:
|
|
4187
|
+
classNames: S,
|
|
4188
|
+
styles: b,
|
|
4187
4189
|
disabled: t || l,
|
|
4188
4190
|
"data-disabled": t || l || void 0,
|
|
4189
4191
|
thumbIcon: me(
|
|
4190
|
-
|
|
4192
|
+
g,
|
|
4191
4193
|
i
|
|
4192
4194
|
)
|
|
4193
4195
|
}
|
|
@@ -4199,9 +4201,9 @@ const Pt = _(
|
|
|
4199
4201
|
labelSize: d,
|
|
4200
4202
|
controlMaxWidth: m,
|
|
4201
4203
|
controlMinWidth: p,
|
|
4202
|
-
children:
|
|
4204
|
+
children: P
|
|
4203
4205
|
}
|
|
4204
|
-
) :
|
|
4206
|
+
) : P;
|
|
4205
4207
|
}
|
|
4206
4208
|
);
|
|
4207
4209
|
Pt.displayName = "Switch";
|
|
@@ -4489,19 +4491,19 @@ const yd = Te(Wa), hd = "TextArea-module__layoutOverride___4MCdm", vd = "TextAre
|
|
|
4489
4491
|
onLabelEditClick: d,
|
|
4490
4492
|
label: m,
|
|
4491
4493
|
assistiveText: p,
|
|
4492
|
-
assistiveWithIcon:
|
|
4494
|
+
assistiveWithIcon: C,
|
|
4493
4495
|
error: y,
|
|
4494
|
-
required:
|
|
4495
|
-
withAsterisk:
|
|
4496
|
-
id:
|
|
4497
|
-
className:
|
|
4498
|
-
style:
|
|
4496
|
+
required: N,
|
|
4497
|
+
withAsterisk: v,
|
|
4498
|
+
id: S,
|
|
4499
|
+
className: b,
|
|
4500
|
+
style: T,
|
|
4499
4501
|
disabled: $,
|
|
4500
|
-
readOnly:
|
|
4501
|
-
readOnlyComponent:
|
|
4502
|
+
readOnly: g,
|
|
4503
|
+
readOnlyComponent: P,
|
|
4502
4504
|
emptyValueComponent: f,
|
|
4503
|
-
value:
|
|
4504
|
-
defaultValue:
|
|
4505
|
+
value: w,
|
|
4506
|
+
defaultValue: h,
|
|
4505
4507
|
...I
|
|
4506
4508
|
} = e, L = G(
|
|
4507
4509
|
u(I, o),
|
|
@@ -4513,12 +4515,12 @@ const yd = Te(Wa), hd = "TextArea-module__layoutOverride___4MCdm", vd = "TextAre
|
|
|
4513
4515
|
input: Fo.input
|
|
4514
4516
|
},
|
|
4515
4517
|
B.classNames
|
|
4516
|
-
), A =
|
|
4518
|
+
), A = b ? `${Fo.layoutOverride} ${b}` : Fo.layoutOverride;
|
|
4517
4519
|
return /* @__PURE__ */ a(
|
|
4518
4520
|
ve,
|
|
4519
4521
|
{
|
|
4520
4522
|
className: A,
|
|
4521
|
-
style:
|
|
4523
|
+
style: T,
|
|
4522
4524
|
controlMaxWidth: "var(--textarea-control-max-width)",
|
|
4523
4525
|
controlMinWidth: "var(--textarea-control-min-width)",
|
|
4524
4526
|
overStyled: o,
|
|
@@ -4530,16 +4532,16 @@ const yd = Te(Wa), hd = "TextArea-module__layoutOverride___4MCdm", vd = "TextAre
|
|
|
4530
4532
|
onLabelEditClick: d,
|
|
4531
4533
|
label: m,
|
|
4532
4534
|
assistiveText: p,
|
|
4533
|
-
assistiveWithIcon:
|
|
4535
|
+
assistiveWithIcon: C,
|
|
4534
4536
|
error: y,
|
|
4535
|
-
required:
|
|
4536
|
-
withAsterisk:
|
|
4537
|
-
id:
|
|
4538
|
-
readOnly:
|
|
4539
|
-
readOnlyComponent:
|
|
4537
|
+
required: N,
|
|
4538
|
+
withAsterisk: v,
|
|
4539
|
+
id: S,
|
|
4540
|
+
readOnly: g,
|
|
4541
|
+
readOnlyComponent: P,
|
|
4540
4542
|
emptyValueComponent: f,
|
|
4541
4543
|
readOnlyType: "text",
|
|
4542
|
-
readOnlyValue:
|
|
4544
|
+
readOnlyValue: w !== void 0 ? w : h,
|
|
4543
4545
|
readOnlyNativeProps: e,
|
|
4544
4546
|
activeComponent: (
|
|
4545
4547
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -4550,8 +4552,8 @@ const yd = Te(Wa), hd = "TextArea-module__layoutOverride___4MCdm", vd = "TextAre
|
|
|
4550
4552
|
...L,
|
|
4551
4553
|
classNames: W,
|
|
4552
4554
|
disabled: $,
|
|
4553
|
-
value:
|
|
4554
|
-
defaultValue:
|
|
4555
|
+
value: w,
|
|
4556
|
+
defaultValue: h,
|
|
4555
4557
|
label: void 0,
|
|
4556
4558
|
description: void 0,
|
|
4557
4559
|
error: !!y,
|
|
@@ -4590,19 +4592,19 @@ const Cd = "TextField-module__layoutOverride___SNZqc", Pd = "TextField-module__r
|
|
|
4590
4592
|
onLabelEditClick: d,
|
|
4591
4593
|
label: m,
|
|
4592
4594
|
assistiveText: p,
|
|
4593
|
-
assistiveWithIcon:
|
|
4595
|
+
assistiveWithIcon: C,
|
|
4594
4596
|
error: y,
|
|
4595
|
-
required:
|
|
4596
|
-
withAsterisk:
|
|
4597
|
-
id:
|
|
4598
|
-
className:
|
|
4599
|
-
style:
|
|
4597
|
+
required: N,
|
|
4598
|
+
withAsterisk: v,
|
|
4599
|
+
id: S,
|
|
4600
|
+
className: b,
|
|
4601
|
+
style: T,
|
|
4600
4602
|
disabled: $,
|
|
4601
|
-
readOnly:
|
|
4602
|
-
readOnlyComponent:
|
|
4603
|
+
readOnly: g,
|
|
4604
|
+
readOnlyComponent: P,
|
|
4603
4605
|
emptyValueComponent: f,
|
|
4604
|
-
value:
|
|
4605
|
-
defaultValue:
|
|
4606
|
+
value: w,
|
|
4607
|
+
defaultValue: h,
|
|
4606
4608
|
...I
|
|
4607
4609
|
} = e, L = G(
|
|
4608
4610
|
u(I, o),
|
|
@@ -4615,12 +4617,12 @@ const Cd = "TextField-module__layoutOverride___SNZqc", Pd = "TextField-module__r
|
|
|
4615
4617
|
section: Io.section
|
|
4616
4618
|
},
|
|
4617
4619
|
B.classNames
|
|
4618
|
-
), A =
|
|
4620
|
+
), A = b ? `${Io.layoutOverride} ${b}` : Io.layoutOverride;
|
|
4619
4621
|
return /* @__PURE__ */ a(
|
|
4620
4622
|
ve,
|
|
4621
4623
|
{
|
|
4622
4624
|
className: A,
|
|
4623
|
-
style:
|
|
4625
|
+
style: T,
|
|
4624
4626
|
controlMaxWidth: "var(--text-field-control-max-width)",
|
|
4625
4627
|
controlMinWidth: "var(--text-field-control-min-width)",
|
|
4626
4628
|
overStyled: o,
|
|
@@ -4632,16 +4634,16 @@ const Cd = "TextField-module__layoutOverride___SNZqc", Pd = "TextField-module__r
|
|
|
4632
4634
|
onLabelEditClick: d,
|
|
4633
4635
|
label: m,
|
|
4634
4636
|
assistiveText: p,
|
|
4635
|
-
assistiveWithIcon:
|
|
4637
|
+
assistiveWithIcon: C,
|
|
4636
4638
|
error: y,
|
|
4637
|
-
required:
|
|
4638
|
-
withAsterisk:
|
|
4639
|
-
id:
|
|
4640
|
-
readOnly:
|
|
4641
|
-
readOnlyComponent:
|
|
4639
|
+
required: N,
|
|
4640
|
+
withAsterisk: v,
|
|
4641
|
+
id: S,
|
|
4642
|
+
readOnly: g,
|
|
4643
|
+
readOnlyComponent: P,
|
|
4642
4644
|
emptyValueComponent: f,
|
|
4643
4645
|
readOnlyType: "text",
|
|
4644
|
-
readOnlyValue:
|
|
4646
|
+
readOnlyValue: w !== void 0 ? w : h,
|
|
4645
4647
|
readOnlyNativeProps: e,
|
|
4646
4648
|
activeComponent: (
|
|
4647
4649
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
@@ -4652,8 +4654,8 @@ const Cd = "TextField-module__layoutOverride___SNZqc", Pd = "TextField-module__r
|
|
|
4652
4654
|
...L,
|
|
4653
4655
|
classNames: W,
|
|
4654
4656
|
disabled: $,
|
|
4655
|
-
value:
|
|
4656
|
-
defaultValue:
|
|
4657
|
+
value: w,
|
|
4658
|
+
defaultValue: h,
|
|
4657
4659
|
wrapperProps: {
|
|
4658
4660
|
"data-disabled": $ ? "true" : void 0,
|
|
4659
4661
|
"data-error": y ? "true" : void 0
|
|
@@ -4762,19 +4764,19 @@ const Dd = [
|
|
|
4762
4764
|
onLabelEditClick: d,
|
|
4763
4765
|
label: m,
|
|
4764
4766
|
assistiveText: p,
|
|
4765
|
-
assistiveWithIcon:
|
|
4767
|
+
assistiveWithIcon: C,
|
|
4766
4768
|
error: y,
|
|
4767
|
-
required:
|
|
4768
|
-
withAsterisk:
|
|
4769
|
-
id:
|
|
4770
|
-
className:
|
|
4771
|
-
style:
|
|
4769
|
+
required: N,
|
|
4770
|
+
withAsterisk: v,
|
|
4771
|
+
id: S,
|
|
4772
|
+
className: b,
|
|
4773
|
+
style: T,
|
|
4772
4774
|
disabled: $,
|
|
4773
|
-
readOnly:
|
|
4774
|
-
readOnlyComponent:
|
|
4775
|
+
readOnly: g,
|
|
4776
|
+
readOnlyComponent: P,
|
|
4775
4777
|
emptyValueComponent: f,
|
|
4776
|
-
value:
|
|
4777
|
-
defaultValue:
|
|
4778
|
+
value: w,
|
|
4779
|
+
defaultValue: h,
|
|
4778
4780
|
onChange: I,
|
|
4779
4781
|
withSeconds: L,
|
|
4780
4782
|
minTime: B,
|
|
@@ -4784,14 +4786,14 @@ const Dd = [
|
|
|
4784
4786
|
u(A, o),
|
|
4785
4787
|
Dd
|
|
4786
4788
|
), j = Y, [q, J] = ce(
|
|
4787
|
-
() =>
|
|
4789
|
+
() => w ?? h
|
|
4788
4790
|
);
|
|
4789
4791
|
Ie(() => {
|
|
4790
|
-
|
|
4791
|
-
}, [
|
|
4792
|
+
w !== void 0 && J(w);
|
|
4793
|
+
}, [w]);
|
|
4792
4794
|
const H = Ve(null);
|
|
4793
4795
|
Ie(() => {
|
|
4794
|
-
Wt(
|
|
4796
|
+
Wt(w ?? h) === void 0 && H.current && zd(H.current, "AM");
|
|
4795
4797
|
}, []);
|
|
4796
4798
|
const Z = (O) => {
|
|
4797
4799
|
J(O), I == null || I(O);
|
|
@@ -4803,12 +4805,12 @@ const Dd = [
|
|
|
4803
4805
|
if (le === ue) return;
|
|
4804
4806
|
const Ne = le ? te + 12 : te - 12;
|
|
4805
4807
|
Z(Md(q, Ne));
|
|
4806
|
-
}, pe =
|
|
4808
|
+
}, pe = b ? `${ro.layoutOverride} ${b}` : ro.layoutOverride;
|
|
4807
4809
|
return /* @__PURE__ */ a(
|
|
4808
4810
|
ve,
|
|
4809
4811
|
{
|
|
4810
4812
|
className: pe,
|
|
4811
|
-
style:
|
|
4813
|
+
style: T,
|
|
4812
4814
|
controlMaxWidth: void 0,
|
|
4813
4815
|
controlMinWidth: void 0,
|
|
4814
4816
|
overStyled: o,
|
|
@@ -4820,17 +4822,17 @@ const Dd = [
|
|
|
4820
4822
|
onLabelEditClick: d,
|
|
4821
4823
|
label: m,
|
|
4822
4824
|
assistiveText: p,
|
|
4823
|
-
assistiveWithIcon:
|
|
4825
|
+
assistiveWithIcon: C,
|
|
4824
4826
|
error: y,
|
|
4825
|
-
required:
|
|
4826
|
-
withAsterisk:
|
|
4827
|
-
id:
|
|
4828
|
-
readOnly:
|
|
4829
|
-
readOnlyComponent:
|
|
4827
|
+
required: N,
|
|
4828
|
+
withAsterisk: v,
|
|
4829
|
+
id: S,
|
|
4830
|
+
readOnly: g,
|
|
4831
|
+
readOnlyComponent: P,
|
|
4830
4832
|
emptyValueComponent: f,
|
|
4831
4833
|
readOnlyType: "text",
|
|
4832
4834
|
readOnlyValue: Wd(
|
|
4833
|
-
|
|
4835
|
+
w !== void 0 ? w : h
|
|
4834
4836
|
),
|
|
4835
4837
|
readOnlyNativeProps: e,
|
|
4836
4838
|
activeComponent: (
|
|
@@ -5147,19 +5149,19 @@ const ja = _(
|
|
|
5147
5149
|
labelActionArea: d,
|
|
5148
5150
|
onLabelEditClick: m,
|
|
5149
5151
|
label: p,
|
|
5150
|
-
assistiveText:
|
|
5152
|
+
assistiveText: C,
|
|
5151
5153
|
description: y,
|
|
5152
|
-
helperText:
|
|
5153
|
-
assistiveWithIcon:
|
|
5154
|
-
error:
|
|
5155
|
-
required:
|
|
5156
|
-
id:
|
|
5154
|
+
helperText: N,
|
|
5155
|
+
assistiveWithIcon: v,
|
|
5156
|
+
error: S,
|
|
5157
|
+
required: b,
|
|
5158
|
+
id: T,
|
|
5157
5159
|
readOnly: $,
|
|
5158
|
-
readOnlyComponent:
|
|
5159
|
-
emptyValueComponent:
|
|
5160
|
+
readOnlyComponent: g,
|
|
5161
|
+
emptyValueComponent: P,
|
|
5160
5162
|
data: f,
|
|
5161
|
-
defaultData:
|
|
5162
|
-
onChange:
|
|
5163
|
+
defaultData: w,
|
|
5164
|
+
onChange: h,
|
|
5163
5165
|
sourceLabel: I = "Available",
|
|
5164
5166
|
targetLabel: L = "Selected",
|
|
5165
5167
|
searchable: B = !0,
|
|
@@ -5168,13 +5170,13 @@ const ja = _(
|
|
|
5168
5170
|
className: Y,
|
|
5169
5171
|
style: j,
|
|
5170
5172
|
...q
|
|
5171
|
-
} = e, J = u(q, o), H = Bt(), Z =
|
|
5172
|
-
() =>
|
|
5173
|
+
} = e, J = u(q, o), H = Bt(), Z = T || `recursica-transfer-list-${H}`, [te, ue] = ce(
|
|
5174
|
+
() => w ?? f ?? [[], []]
|
|
5173
5175
|
), D = f !== void 0 ? f : te, re = _o(
|
|
5174
5176
|
(V) => {
|
|
5175
|
-
f === void 0 && ue(V),
|
|
5177
|
+
f === void 0 && ue(V), h == null || h(V);
|
|
5176
5178
|
},
|
|
5177
|
-
[f,
|
|
5179
|
+
[f, h]
|
|
5178
5180
|
), [pe, O] = ce(""), [le, Ne] = ce(""), [se, ie] = ce(
|
|
5179
5181
|
() => /* @__PURE__ */ new Set()
|
|
5180
5182
|
), [be, $e] = ce(
|
|
@@ -5222,7 +5224,7 @@ const ja = _(
|
|
|
5222
5224
|
return z.has(V) ? z.delete(V) : z.add(V), z;
|
|
5223
5225
|
});
|
|
5224
5226
|
}, []), xe = (V, F, z, k, U, Q, _e, oo) => {
|
|
5225
|
-
const { groups: mo, ungrouped:
|
|
5227
|
+
const { groups: mo, ungrouped: x } = pu(z), ne = Object.keys(mo).sort(), ae = U.size > 0 ? `${U.size} / ${k.length}` : `${k.length}`;
|
|
5226
5228
|
return /* @__PURE__ */ M("div", { className: ge.pane, "data-pane": V, children: [
|
|
5227
5229
|
/* @__PURE__ */ M("div", { className: ge.paneHeader, children: [
|
|
5228
5230
|
/* @__PURE__ */ a("span", { children: F }),
|
|
@@ -5240,7 +5242,7 @@ const ja = _(
|
|
|
5240
5242
|
) }),
|
|
5241
5243
|
/* @__PURE__ */ M("div", { className: ge.paneList, children: [
|
|
5242
5244
|
z.length === 0 && /* @__PURE__ */ a("div", { className: ge.emptyState, children: "No items" }),
|
|
5243
|
-
|
|
5245
|
+
x.length > 0 && /* @__PURE__ */ a(Ro, { children: x.map((X) => /* @__PURE__ */ a(
|
|
5244
5246
|
Lo,
|
|
5245
5247
|
{
|
|
5246
5248
|
id: `${Z}-${V}-${X.value}`,
|
|
@@ -5285,19 +5287,19 @@ const ja = _(
|
|
|
5285
5287
|
labelActionArea: d,
|
|
5286
5288
|
onLabelEditClick: m,
|
|
5287
5289
|
label: p,
|
|
5288
|
-
assistiveText:
|
|
5290
|
+
assistiveText: C,
|
|
5289
5291
|
description: y,
|
|
5290
|
-
helperText:
|
|
5291
|
-
assistiveWithIcon:
|
|
5292
|
-
error:
|
|
5293
|
-
required:
|
|
5292
|
+
helperText: N,
|
|
5293
|
+
assistiveWithIcon: v,
|
|
5294
|
+
error: S,
|
|
5295
|
+
required: b,
|
|
5294
5296
|
id: Z,
|
|
5295
5297
|
className: eo,
|
|
5296
5298
|
style: j,
|
|
5297
5299
|
overStyled: o,
|
|
5298
5300
|
readOnly: $,
|
|
5299
|
-
readOnlyComponent:
|
|
5300
|
-
emptyValueComponent:
|
|
5301
|
+
readOnlyComponent: g,
|
|
5302
|
+
emptyValueComponent: P,
|
|
5301
5303
|
readOnlyType: "text",
|
|
5302
5304
|
readOnlyValue: D[1].map((V) => V.label),
|
|
5303
5305
|
readOnlyNativeProps: e,
|
|
@@ -5307,7 +5309,7 @@ const ja = _(
|
|
|
5307
5309
|
...J,
|
|
5308
5310
|
className: ge.root,
|
|
5309
5311
|
"data-disabled": A ? "true" : void 0,
|
|
5310
|
-
"data-error":
|
|
5312
|
+
"data-error": S ? "true" : void 0,
|
|
5311
5313
|
children: /* @__PURE__ */ M("div", { className: ge.panes, children: [
|
|
5312
5314
|
xe(
|
|
5313
5315
|
"source",
|
|
@@ -5462,7 +5464,7 @@ const qa = _(function({
|
|
|
5462
5464
|
onSelectedChange: d,
|
|
5463
5465
|
...m
|
|
5464
5466
|
}, p) {
|
|
5465
|
-
const
|
|
5467
|
+
const C = u(m, e), y = br({
|
|
5466
5468
|
initialExpandedState: o ? Cr(n, o) : void 0,
|
|
5467
5469
|
initialSelectedState: t,
|
|
5468
5470
|
multiple: s,
|
|
@@ -5472,32 +5474,32 @@ const qa = _(function({
|
|
|
5472
5474
|
Ie(() => {
|
|
5473
5475
|
d == null || d(y.selectedState);
|
|
5474
5476
|
}, [y.selectedState, d]);
|
|
5475
|
-
const
|
|
5477
|
+
const N = K.useRef(null);
|
|
5476
5478
|
Ie(() => {
|
|
5477
|
-
const $ =
|
|
5479
|
+
const $ = N.current;
|
|
5478
5480
|
if (!$) return;
|
|
5479
|
-
const
|
|
5480
|
-
if (l ||
|
|
5481
|
-
const f =
|
|
5481
|
+
const g = (P) => {
|
|
5482
|
+
if (l || P.key !== "Enter" && P.key !== " ") return;
|
|
5483
|
+
const f = P.target.closest(
|
|
5482
5484
|
'[role="treeitem"]'
|
|
5483
|
-
),
|
|
5484
|
-
|
|
5485
|
+
), w = f == null ? void 0 : f.dataset.value;
|
|
5486
|
+
w && (P.preventDefault(), y.select(w));
|
|
5485
5487
|
};
|
|
5486
|
-
return $.addEventListener("keydown",
|
|
5488
|
+
return $.addEventListener("keydown", g), () => $.removeEventListener("keydown", g);
|
|
5487
5489
|
}, [y.select, l]), Ie(() => {
|
|
5488
|
-
const $ =
|
|
5490
|
+
const $ = N.current;
|
|
5489
5491
|
if (!$ || !l) return;
|
|
5490
|
-
const
|
|
5491
|
-
|
|
5492
|
+
const g = (P) => {
|
|
5493
|
+
P.preventDefault(), P.stopPropagation();
|
|
5492
5494
|
};
|
|
5493
|
-
return $.addEventListener("keydown",
|
|
5495
|
+
return $.addEventListener("keydown", g, { capture: !0 }), () => $.removeEventListener("keydown", g, { capture: !0 });
|
|
5494
5496
|
}, [l]);
|
|
5495
|
-
const
|
|
5497
|
+
const v = $r(p, N), S = C, b = S.className, T = b ? `${uo.root} ${b}` : uo.root;
|
|
5496
5498
|
return /* @__PURE__ */ a(
|
|
5497
5499
|
Pr,
|
|
5498
5500
|
{
|
|
5499
|
-
ref:
|
|
5500
|
-
...
|
|
5501
|
+
ref: v,
|
|
5502
|
+
...C,
|
|
5501
5503
|
data: n,
|
|
5502
5504
|
tree: y,
|
|
5503
5505
|
expandOnClick: !1,
|
|
@@ -5506,8 +5508,8 @@ const qa = _(function({
|
|
|
5506
5508
|
renderNode: Cu(l),
|
|
5507
5509
|
"data-disabled": l || void 0,
|
|
5508
5510
|
classNames: E(
|
|
5509
|
-
{ root:
|
|
5510
|
-
|
|
5511
|
+
{ root: T, node: uo.node, subtree: uo.subtree },
|
|
5512
|
+
S.classNames
|
|
5511
5513
|
)
|
|
5512
5514
|
}
|
|
5513
5515
|
);
|