@firecms/ui 3.0.0-beta.11 → 3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar.d.ts +1 -0
- package/dist/components/CircularProgress.d.ts +1 -1
- package/dist/components/Menu.d.ts +4 -1
- package/dist/components/Sheet.d.ts +2 -0
- package/dist/components/TextField.d.ts +20 -1
- package/dist/index.es.js +235 -202
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +235 -202
- package/dist/index.umd.js.map +1 -1
- package/package.json +29 -29
- package/src/components/Avatar.tsx +4 -1
- package/src/components/Button.tsx +1 -1
- package/src/components/Chip.tsx +1 -0
- package/src/components/CircularProgress.tsx +7 -3
- package/src/components/DateTimeField.tsx +19 -19
- package/src/components/DialogContent.tsx +1 -1
- package/src/components/FileUpload.tsx +2 -1
- package/src/components/Menu.tsx +13 -4
- package/src/components/SearchBar.tsx +1 -1
- package/src/components/Sheet.tsx +9 -1
- package/src/components/Tabs.tsx +3 -1
- package/src/components/TextField.tsx +178 -153
- package/src/components/TextareaAutosize.tsx +2 -2
- package/src/components/Tooltip.tsx +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
return t7;
|
|
625
625
|
};
|
|
626
626
|
const AvatarInner = (t0, ref) => {
|
|
627
|
-
const $ = reactCompilerRuntime.c(
|
|
627
|
+
const $ = reactCompilerRuntime.c(25);
|
|
628
628
|
let alt;
|
|
629
629
|
let children;
|
|
630
630
|
let className;
|
|
@@ -632,6 +632,7 @@
|
|
|
632
632
|
let props;
|
|
633
633
|
let src;
|
|
634
634
|
let style;
|
|
635
|
+
let t1;
|
|
635
636
|
if ($[0] !== t0) {
|
|
636
637
|
({
|
|
637
638
|
src,
|
|
@@ -640,6 +641,7 @@
|
|
|
640
641
|
className,
|
|
641
642
|
style,
|
|
642
643
|
outerClassName,
|
|
644
|
+
hover: t1,
|
|
643
645
|
...props
|
|
644
646
|
} = t0);
|
|
645
647
|
$[0] = t0;
|
|
@@ -650,6 +652,7 @@
|
|
|
650
652
|
$[5] = props;
|
|
651
653
|
$[6] = src;
|
|
652
654
|
$[7] = style;
|
|
655
|
+
$[8] = t1;
|
|
653
656
|
} else {
|
|
654
657
|
alt = $[1];
|
|
655
658
|
children = $[2];
|
|
@@ -658,51 +661,55 @@
|
|
|
658
661
|
props = $[5];
|
|
659
662
|
src = $[6];
|
|
660
663
|
style = $[7];
|
|
664
|
+
t1 = $[8];
|
|
661
665
|
}
|
|
666
|
+
const hover = t1 === void 0 ? true : t1;
|
|
662
667
|
const [isImageError, setIsImageError] = React.useState(false);
|
|
663
|
-
let
|
|
664
|
-
if ($[
|
|
665
|
-
|
|
668
|
+
let t2;
|
|
669
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
670
|
+
t2 = () => {
|
|
666
671
|
setIsImageError(true);
|
|
667
672
|
};
|
|
668
|
-
$[
|
|
673
|
+
$[9] = t2;
|
|
669
674
|
} else {
|
|
670
|
-
|
|
675
|
+
t2 = $[9];
|
|
671
676
|
}
|
|
672
|
-
const handleImageError =
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
$[10] =
|
|
677
|
+
const handleImageError = t2;
|
|
678
|
+
const t3 = hover && "hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700";
|
|
679
|
+
let t4;
|
|
680
|
+
if ($[10] !== outerClassName || $[11] !== t3) {
|
|
681
|
+
t4 = cls("rounded-full flex items-center justify-center overflow-hidden", "p-1 w-12 h-12 min-w-12 min-h-12", t3, outerClassName);
|
|
682
|
+
$[10] = outerClassName;
|
|
683
|
+
$[11] = t3;
|
|
684
|
+
$[12] = t4;
|
|
678
685
|
} else {
|
|
679
|
-
|
|
686
|
+
t4 = $[12];
|
|
680
687
|
}
|
|
681
|
-
let
|
|
682
|
-
if ($[
|
|
683
|
-
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
688
|
+
let t5;
|
|
689
|
+
if ($[13] !== alt || $[14] !== children || $[15] !== className || $[16] !== isImageError || $[17] !== src) {
|
|
690
|
+
t5 = src && !isImageError ? /* @__PURE__ */ jsxRuntime.jsx("img", { className: cls("bg-surface-accent-100 dark:bg-surface-accent-800", "w-full h-full object-cover rounded-full", className), src, alt, onError: handleImageError }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cls("bg-surface-accent-100 dark:bg-surface-accent-800", "flex items-center justify-center", "w-full h-full py-1.5 text-lg font-medium text-surface-accent-900 dark:text-white rounded-full", className), children });
|
|
691
|
+
$[13] = alt;
|
|
692
|
+
$[14] = children;
|
|
693
|
+
$[15] = className;
|
|
694
|
+
$[16] = isImageError;
|
|
695
|
+
$[17] = src;
|
|
696
|
+
$[18] = t5;
|
|
690
697
|
} else {
|
|
691
|
-
|
|
698
|
+
t5 = $[18];
|
|
692
699
|
}
|
|
693
|
-
let
|
|
694
|
-
if ($[
|
|
695
|
-
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[20] = t2;
|
|
700
|
-
$[21] = t3;
|
|
700
|
+
let t6;
|
|
701
|
+
if ($[19] !== props || $[20] !== ref || $[21] !== style || $[22] !== t4 || $[23] !== t5) {
|
|
702
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsx("button", { ref, style, ...props, className: t4, children: t5 });
|
|
703
|
+
$[19] = props;
|
|
704
|
+
$[20] = ref;
|
|
705
|
+
$[21] = style;
|
|
701
706
|
$[22] = t4;
|
|
707
|
+
$[23] = t5;
|
|
708
|
+
$[24] = t6;
|
|
702
709
|
} else {
|
|
703
|
-
|
|
710
|
+
t6 = $[24];
|
|
704
711
|
}
|
|
705
|
-
return
|
|
712
|
+
return t6;
|
|
706
713
|
};
|
|
707
714
|
const Avatar = React.forwardRef(AvatarInner);
|
|
708
715
|
const BooleanSwitch = React.forwardRef(function BooleanSwitch2({
|
|
@@ -876,7 +883,7 @@
|
|
|
876
883
|
"text-text-disabled dark:text-text-disabled-dark": disabled,
|
|
877
884
|
"border border-transparent opacity-50": t23,
|
|
878
885
|
"border border-surface-500 opacity-50": t24,
|
|
879
|
-
"border border-surface-
|
|
886
|
+
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40": t25
|
|
880
887
|
});
|
|
881
888
|
const sizeClasses2 = cls({
|
|
882
889
|
"py-1 px-2": size === "small",
|
|
@@ -1162,23 +1169,31 @@
|
|
|
1162
1169
|
} = t0;
|
|
1163
1170
|
const size = t1 === void 0 ? "medium" : t1;
|
|
1164
1171
|
let sizeClasses2;
|
|
1165
|
-
if (size === "
|
|
1172
|
+
if (size === "smallest") {
|
|
1166
1173
|
sizeClasses2 = "w-4 h-4";
|
|
1167
1174
|
} else {
|
|
1168
|
-
if (size === "
|
|
1169
|
-
sizeClasses2 = "w-
|
|
1175
|
+
if (size === "small") {
|
|
1176
|
+
sizeClasses2 = "w-6 h-6";
|
|
1170
1177
|
} else {
|
|
1171
|
-
|
|
1178
|
+
if (size === "medium") {
|
|
1179
|
+
sizeClasses2 = "w-8 h-8 m-1";
|
|
1180
|
+
} else {
|
|
1181
|
+
sizeClasses2 = "w-10 h-10 m-1";
|
|
1182
|
+
}
|
|
1172
1183
|
}
|
|
1173
1184
|
}
|
|
1174
1185
|
let borderClasses;
|
|
1175
|
-
if (size === "
|
|
1186
|
+
if (size === "smallest") {
|
|
1176
1187
|
borderClasses = "border-[3px]";
|
|
1177
1188
|
} else {
|
|
1178
|
-
if (size === "
|
|
1179
|
-
borderClasses = "border-
|
|
1189
|
+
if (size === "small") {
|
|
1190
|
+
borderClasses = "border-[4px]";
|
|
1180
1191
|
} else {
|
|
1181
|
-
|
|
1192
|
+
if (size === "medium") {
|
|
1193
|
+
borderClasses = "border-4";
|
|
1194
|
+
} else {
|
|
1195
|
+
borderClasses = "border-[6px]";
|
|
1196
|
+
}
|
|
1182
1197
|
}
|
|
1183
1198
|
}
|
|
1184
1199
|
let t2;
|
|
@@ -27328,7 +27343,7 @@
|
|
|
27328
27343
|
const t6 = error ? "text-red-500 dark:text-red-400" : "";
|
|
27329
27344
|
let t7;
|
|
27330
27345
|
if ($[2] !== className || $[3] !== t3 || $[4] !== t4 || $[5] !== t5 || $[6] !== t6) {
|
|
27331
|
-
t7 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", t3, t4, t5, t6, className);
|
|
27346
|
+
t7 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", "items-center", t3, t4, t5, t6, className);
|
|
27332
27347
|
$[2] = className;
|
|
27333
27348
|
$[3] = t3;
|
|
27334
27349
|
$[4] = t4;
|
|
@@ -28161,7 +28176,7 @@
|
|
|
28161
28176
|
}
|
|
28162
28177
|
let t2;
|
|
28163
28178
|
if ($[2] !== className || $[3] !== includeMargin) {
|
|
28164
|
-
t2 = cls("
|
|
28179
|
+
t2 = cls("flex-grow", {
|
|
28165
28180
|
"my-6 mx-6": includeMargin
|
|
28166
28181
|
}, className);
|
|
28167
28182
|
$[2] = className;
|
|
@@ -28565,7 +28580,7 @@
|
|
|
28565
28580
|
}
|
|
28566
28581
|
let t12;
|
|
28567
28582
|
if ($[23] !== uploadDescription) {
|
|
28568
|
-
t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow h-28 box-border flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { align: "center", variant: "label", children: uploadDescription }) });
|
|
28583
|
+
t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow h-28 box-border flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { align: "center", variant: "label", className: "flex flex-row gap-2 justify-center", children: uploadDescription }) });
|
|
28569
28584
|
$[23] = uploadDescription;
|
|
28570
28585
|
$[24] = t12;
|
|
28571
28586
|
} else {
|
|
@@ -28796,7 +28811,7 @@
|
|
|
28796
28811
|
return t7;
|
|
28797
28812
|
}, equal);
|
|
28798
28813
|
const Menu = React.forwardRef((t0, ref) => {
|
|
28799
|
-
const $ = reactCompilerRuntime.c(
|
|
28814
|
+
const $ = reactCompilerRuntime.c(20);
|
|
28800
28815
|
const {
|
|
28801
28816
|
children,
|
|
28802
28817
|
trigger,
|
|
@@ -28805,90 +28820,98 @@
|
|
|
28805
28820
|
side,
|
|
28806
28821
|
align,
|
|
28807
28822
|
onOpenChange,
|
|
28808
|
-
portalContainer
|
|
28823
|
+
portalContainer,
|
|
28824
|
+
sideOffset: t1,
|
|
28825
|
+
className
|
|
28809
28826
|
} = t0;
|
|
28810
|
-
|
|
28827
|
+
const sideOffset = t1 === void 0 ? 4 : t1;
|
|
28828
|
+
let t2;
|
|
28811
28829
|
if ($[0] !== ref || $[1] !== trigger) {
|
|
28812
|
-
|
|
28830
|
+
t2 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Trigger, { ref, asChild: true, children: trigger });
|
|
28813
28831
|
$[0] = ref;
|
|
28814
28832
|
$[1] = trigger;
|
|
28815
|
-
$[2] =
|
|
28816
|
-
} else {
|
|
28817
|
-
t1 = $[2];
|
|
28818
|
-
}
|
|
28819
|
-
let t2;
|
|
28820
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28821
|
-
t2 = cls(paperMixin, focusedDisabled, "shadow py-2 z-30");
|
|
28822
|
-
$[3] = t2;
|
|
28833
|
+
$[2] = t2;
|
|
28823
28834
|
} else {
|
|
28824
|
-
t2 = $[
|
|
28835
|
+
t2 = $[2];
|
|
28825
28836
|
}
|
|
28826
28837
|
let t3;
|
|
28827
|
-
if ($[
|
|
28828
|
-
t3 =
|
|
28829
|
-
$[
|
|
28830
|
-
$[
|
|
28831
|
-
$[6] = side;
|
|
28832
|
-
$[7] = t3;
|
|
28838
|
+
if ($[3] !== className) {
|
|
28839
|
+
t3 = cls(paperMixin, focusedDisabled, "shadow py-2 z-30", className);
|
|
28840
|
+
$[3] = className;
|
|
28841
|
+
$[4] = t3;
|
|
28833
28842
|
} else {
|
|
28834
|
-
t3 = $[
|
|
28843
|
+
t3 = $[4];
|
|
28835
28844
|
}
|
|
28836
28845
|
let t4;
|
|
28837
|
-
if ($[8] !==
|
|
28838
|
-
t4 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.
|
|
28839
|
-
$[
|
|
28846
|
+
if ($[5] !== align || $[6] !== children || $[7] !== side || $[8] !== sideOffset || $[9] !== t3) {
|
|
28847
|
+
t4 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Content, { side, sideOffset, align, className: t3, children });
|
|
28848
|
+
$[5] = align;
|
|
28849
|
+
$[6] = children;
|
|
28850
|
+
$[7] = side;
|
|
28851
|
+
$[8] = sideOffset;
|
|
28840
28852
|
$[9] = t3;
|
|
28841
28853
|
$[10] = t4;
|
|
28842
28854
|
} else {
|
|
28843
28855
|
t4 = $[10];
|
|
28844
28856
|
}
|
|
28845
28857
|
let t5;
|
|
28846
|
-
if ($[11] !==
|
|
28847
|
-
t5 = /* @__PURE__ */ jsxRuntime.
|
|
28848
|
-
|
|
28849
|
-
|
|
28858
|
+
if ($[11] !== portalContainer || $[12] !== t4) {
|
|
28859
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Portal, { container: portalContainer, children: t4 });
|
|
28860
|
+
$[11] = portalContainer;
|
|
28861
|
+
$[12] = t4;
|
|
28862
|
+
$[13] = t5;
|
|
28863
|
+
} else {
|
|
28864
|
+
t5 = $[13];
|
|
28865
|
+
}
|
|
28866
|
+
let t6;
|
|
28867
|
+
if ($[14] !== defaultOpen || $[15] !== onOpenChange || $[16] !== open || $[17] !== t2 || $[18] !== t5) {
|
|
28868
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu__namespace.Root, { open, defaultOpen, onOpenChange, children: [
|
|
28869
|
+
t2,
|
|
28870
|
+
t5
|
|
28850
28871
|
] });
|
|
28851
|
-
$[
|
|
28852
|
-
$[
|
|
28853
|
-
$[
|
|
28854
|
-
$[
|
|
28855
|
-
$[
|
|
28856
|
-
$[
|
|
28872
|
+
$[14] = defaultOpen;
|
|
28873
|
+
$[15] = onOpenChange;
|
|
28874
|
+
$[16] = open;
|
|
28875
|
+
$[17] = t2;
|
|
28876
|
+
$[18] = t5;
|
|
28877
|
+
$[19] = t6;
|
|
28857
28878
|
} else {
|
|
28858
|
-
|
|
28879
|
+
t6 = $[19];
|
|
28859
28880
|
}
|
|
28860
|
-
return
|
|
28881
|
+
return t6;
|
|
28861
28882
|
});
|
|
28862
28883
|
Menu.displayName = "Menu";
|
|
28863
28884
|
function MenuItem(t0) {
|
|
28864
|
-
const $ = reactCompilerRuntime.c(
|
|
28885
|
+
const $ = reactCompilerRuntime.c(8);
|
|
28865
28886
|
const {
|
|
28866
28887
|
children,
|
|
28867
28888
|
dense: t1,
|
|
28868
|
-
onClick
|
|
28889
|
+
onClick,
|
|
28890
|
+
className
|
|
28869
28891
|
} = t0;
|
|
28870
28892
|
const dense = t1 === void 0 ? false : t1;
|
|
28871
28893
|
const t2 = onClick && "cursor-pointer";
|
|
28872
28894
|
const t3 = dense ? "px-3 py-1.5" : "px-4 py-2";
|
|
28873
28895
|
let t4;
|
|
28874
|
-
if ($[0] !==
|
|
28875
|
-
t4 = cls(t2, "rounded-md text-sm font-medium text-surface-accent-700 dark:text-surface-accent-300 hover:bg-surface-accent-100 dark:hover:bg-surface-accent-900 flex items-center gap-4", t3);
|
|
28876
|
-
$[0] =
|
|
28877
|
-
$[1] =
|
|
28878
|
-
$[2] =
|
|
28896
|
+
if ($[0] !== className || $[1] !== t2 || $[2] !== t3) {
|
|
28897
|
+
t4 = cls(t2, "rounded-md text-sm font-medium text-surface-accent-700 dark:text-surface-accent-300 hover:bg-surface-accent-100 dark:hover:bg-surface-accent-900 flex items-center gap-4", t3, className);
|
|
28898
|
+
$[0] = className;
|
|
28899
|
+
$[1] = t2;
|
|
28900
|
+
$[2] = t3;
|
|
28901
|
+
$[3] = t4;
|
|
28879
28902
|
} else {
|
|
28880
|
-
t4 = $[
|
|
28903
|
+
t4 = $[3];
|
|
28881
28904
|
}
|
|
28882
28905
|
const classNames = t4;
|
|
28883
28906
|
let t5;
|
|
28884
|
-
if ($[
|
|
28907
|
+
if ($[4] !== children || $[5] !== classNames || $[6] !== onClick) {
|
|
28885
28908
|
t5 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Item, { className: classNames, onClick, children });
|
|
28886
|
-
$[
|
|
28887
|
-
$[
|
|
28888
|
-
$[
|
|
28889
|
-
$[
|
|
28909
|
+
$[4] = children;
|
|
28910
|
+
$[5] = classNames;
|
|
28911
|
+
$[6] = onClick;
|
|
28912
|
+
$[7] = t5;
|
|
28890
28913
|
} else {
|
|
28891
|
-
t5 = $[
|
|
28914
|
+
t5 = $[7];
|
|
28892
28915
|
}
|
|
28893
28916
|
return t5;
|
|
28894
28917
|
}
|
|
@@ -30359,7 +30382,7 @@
|
|
|
30359
30382
|
}
|
|
30360
30383
|
let t9;
|
|
30361
30384
|
if ($[10] !== loading) {
|
|
30362
|
-
t9 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0", children: loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "
|
|
30385
|
+
t9 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0", children: loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "smallest" }) : /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "text-text-disabled dark:text-text-disabled-dark" }) });
|
|
30363
30386
|
$[10] = loading;
|
|
30364
30387
|
$[11] = t9;
|
|
30365
30388
|
} else {
|
|
@@ -30817,13 +30840,15 @@
|
|
|
30817
30840
|
});
|
|
30818
30841
|
Slider.displayName = "Slider";
|
|
30819
30842
|
const Sheet = (t0) => {
|
|
30820
|
-
const $ = reactCompilerRuntime.c(
|
|
30843
|
+
const $ = reactCompilerRuntime.c(66);
|
|
30821
30844
|
let children;
|
|
30822
30845
|
let className;
|
|
30823
30846
|
let onOpenChange;
|
|
30824
30847
|
let open;
|
|
30825
30848
|
let overlayClassName;
|
|
30849
|
+
let overlayStyle;
|
|
30826
30850
|
let props;
|
|
30851
|
+
let style;
|
|
30827
30852
|
let t1;
|
|
30828
30853
|
let t2;
|
|
30829
30854
|
let t3;
|
|
@@ -30840,7 +30865,9 @@
|
|
|
30840
30865
|
onOpenChange,
|
|
30841
30866
|
transparent,
|
|
30842
30867
|
className,
|
|
30868
|
+
style,
|
|
30843
30869
|
overlayClassName,
|
|
30870
|
+
overlayStyle,
|
|
30844
30871
|
...props
|
|
30845
30872
|
} = t0);
|
|
30846
30873
|
$[0] = t0;
|
|
@@ -30849,24 +30876,28 @@
|
|
|
30849
30876
|
$[3] = onOpenChange;
|
|
30850
30877
|
$[4] = open;
|
|
30851
30878
|
$[5] = overlayClassName;
|
|
30852
|
-
$[6] =
|
|
30853
|
-
$[7] =
|
|
30854
|
-
$[8] =
|
|
30855
|
-
$[9] =
|
|
30856
|
-
$[10] =
|
|
30857
|
-
$[11] =
|
|
30879
|
+
$[6] = overlayStyle;
|
|
30880
|
+
$[7] = props;
|
|
30881
|
+
$[8] = style;
|
|
30882
|
+
$[9] = t1;
|
|
30883
|
+
$[10] = t2;
|
|
30884
|
+
$[11] = t3;
|
|
30885
|
+
$[12] = title;
|
|
30886
|
+
$[13] = transparent;
|
|
30858
30887
|
} else {
|
|
30859
30888
|
children = $[1];
|
|
30860
30889
|
className = $[2];
|
|
30861
30890
|
onOpenChange = $[3];
|
|
30862
30891
|
open = $[4];
|
|
30863
30892
|
overlayClassName = $[5];
|
|
30864
|
-
|
|
30865
|
-
|
|
30866
|
-
|
|
30867
|
-
|
|
30868
|
-
|
|
30869
|
-
|
|
30893
|
+
overlayStyle = $[6];
|
|
30894
|
+
props = $[7];
|
|
30895
|
+
style = $[8];
|
|
30896
|
+
t1 = $[9];
|
|
30897
|
+
t2 = $[10];
|
|
30898
|
+
t3 = $[11];
|
|
30899
|
+
title = $[12];
|
|
30900
|
+
transparent = $[13];
|
|
30870
30901
|
}
|
|
30871
30902
|
const side = t1 === void 0 ? "right" : t1;
|
|
30872
30903
|
const modal = t2 === void 0 ? true : t2;
|
|
@@ -30874,7 +30905,7 @@
|
|
|
30874
30905
|
const [displayed, setDisplayed] = React.useState(false);
|
|
30875
30906
|
let t4;
|
|
30876
30907
|
let t5;
|
|
30877
|
-
if ($[
|
|
30908
|
+
if ($[14] !== open) {
|
|
30878
30909
|
t4 = () => {
|
|
30879
30910
|
const timeout = setTimeout(() => {
|
|
30880
30911
|
setDisplayed(open);
|
|
@@ -30882,12 +30913,12 @@
|
|
|
30882
30913
|
return () => clearTimeout(timeout);
|
|
30883
30914
|
};
|
|
30884
30915
|
t5 = [open];
|
|
30885
|
-
$[
|
|
30886
|
-
$[
|
|
30887
|
-
$[
|
|
30916
|
+
$[14] = open;
|
|
30917
|
+
$[15] = t4;
|
|
30918
|
+
$[16] = t5;
|
|
30888
30919
|
} else {
|
|
30889
|
-
t4 = $[
|
|
30890
|
-
t5 = $[
|
|
30920
|
+
t4 = $[15];
|
|
30921
|
+
t5 = $[16];
|
|
30891
30922
|
}
|
|
30892
30923
|
React.useEffect(t4, t5);
|
|
30893
30924
|
let T0;
|
|
@@ -30901,7 +30932,7 @@
|
|
|
30901
30932
|
let t7;
|
|
30902
30933
|
let t8;
|
|
30903
30934
|
let t9;
|
|
30904
|
-
if ($[
|
|
30935
|
+
if ($[17] !== className || $[18] !== displayed || $[19] !== includeBackgroundOverlay || $[20] !== modal || $[21] !== onOpenChange || $[22] !== open || $[23] !== overlayClassName || $[24] !== overlayStyle || $[25] !== props || $[26] !== side || $[27] !== title || $[28] !== transparent) {
|
|
30905
30936
|
const transformValue = {
|
|
30906
30937
|
top: "-translate-y-full",
|
|
30907
30938
|
bottom: "translate-y-full",
|
|
@@ -30920,102 +30951,106 @@
|
|
|
30920
30951
|
t13 = onOpenChange;
|
|
30921
30952
|
T1 = DialogPrimitive__namespace.Portal;
|
|
30922
30953
|
const t142 = title ?? "Sheet";
|
|
30923
|
-
if ($[
|
|
30954
|
+
if ($[40] !== t142) {
|
|
30924
30955
|
t9 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { autoFocus: true, tabIndex: 0, children: t142 });
|
|
30925
|
-
$[
|
|
30926
|
-
$[
|
|
30956
|
+
$[40] = t142;
|
|
30957
|
+
$[41] = t9;
|
|
30927
30958
|
} else {
|
|
30928
|
-
t9 = $[
|
|
30959
|
+
t9 = $[41];
|
|
30929
30960
|
}
|
|
30930
|
-
if ($[
|
|
30931
|
-
t10 = includeBackgroundOverlay && /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm", "bg-black bg-opacity-50", "dark:bg-surface-900 dark:bg-opacity-60", displayed && open ? "opacity-100" : "opacity-0", overlayClassName), style: {
|
|
30932
|
-
pointerEvents: displayed ? "auto" : "none"
|
|
30961
|
+
if ($[42] !== displayed || $[43] !== includeBackgroundOverlay || $[44] !== open || $[45] !== overlayClassName || $[46] !== overlayStyle) {
|
|
30962
|
+
t10 = includeBackgroundOverlay && /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cls("outline-none", "fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm", "bg-black bg-opacity-50", "dark:bg-surface-900 dark:bg-opacity-60", displayed && open ? "opacity-100" : "opacity-0", overlayClassName), style: {
|
|
30963
|
+
pointerEvents: displayed ? "auto" : "none",
|
|
30964
|
+
...overlayStyle
|
|
30933
30965
|
} });
|
|
30934
|
-
$[
|
|
30935
|
-
$[
|
|
30936
|
-
$[
|
|
30937
|
-
$[
|
|
30938
|
-
$[
|
|
30966
|
+
$[42] = displayed;
|
|
30967
|
+
$[43] = includeBackgroundOverlay;
|
|
30968
|
+
$[44] = open;
|
|
30969
|
+
$[45] = overlayClassName;
|
|
30970
|
+
$[46] = overlayStyle;
|
|
30971
|
+
$[47] = t10;
|
|
30939
30972
|
} else {
|
|
30940
|
-
t10 = $[
|
|
30973
|
+
t10 = $[47];
|
|
30941
30974
|
}
|
|
30942
30975
|
T0 = DialogPrimitive__namespace.Content;
|
|
30943
30976
|
t6 = props;
|
|
30944
30977
|
t7 = _temp;
|
|
30945
|
-
t8 = cls(borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-20 transition-all ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none", transparent ? "" : "shadow-md bg-white dark:bg-surface-950", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
|
|
30946
|
-
$[
|
|
30947
|
-
$[
|
|
30948
|
-
$[
|
|
30949
|
-
$[
|
|
30950
|
-
$[
|
|
30951
|
-
$[
|
|
30952
|
-
$[
|
|
30953
|
-
$[
|
|
30954
|
-
$[
|
|
30955
|
-
$[
|
|
30956
|
-
$[
|
|
30957
|
-
$[
|
|
30958
|
-
$[
|
|
30959
|
-
$[
|
|
30960
|
-
$[
|
|
30961
|
-
$[
|
|
30962
|
-
$[
|
|
30963
|
-
$[
|
|
30964
|
-
$[
|
|
30965
|
-
$[
|
|
30966
|
-
$[
|
|
30967
|
-
$[
|
|
30968
|
-
|
|
30969
|
-
|
|
30970
|
-
|
|
30971
|
-
|
|
30972
|
-
|
|
30973
|
-
|
|
30974
|
-
|
|
30975
|
-
|
|
30976
|
-
|
|
30977
|
-
|
|
30978
|
-
|
|
30979
|
-
|
|
30978
|
+
t8 = cls("outline-none", borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-20 transition-all ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none", transparent ? "" : "shadow-md bg-white dark:bg-surface-950", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
|
|
30979
|
+
$[17] = className;
|
|
30980
|
+
$[18] = displayed;
|
|
30981
|
+
$[19] = includeBackgroundOverlay;
|
|
30982
|
+
$[20] = modal;
|
|
30983
|
+
$[21] = onOpenChange;
|
|
30984
|
+
$[22] = open;
|
|
30985
|
+
$[23] = overlayClassName;
|
|
30986
|
+
$[24] = overlayStyle;
|
|
30987
|
+
$[25] = props;
|
|
30988
|
+
$[26] = side;
|
|
30989
|
+
$[27] = title;
|
|
30990
|
+
$[28] = transparent;
|
|
30991
|
+
$[29] = T0;
|
|
30992
|
+
$[30] = T1;
|
|
30993
|
+
$[31] = T2;
|
|
30994
|
+
$[32] = t10;
|
|
30995
|
+
$[33] = t11;
|
|
30996
|
+
$[34] = t12;
|
|
30997
|
+
$[35] = t13;
|
|
30998
|
+
$[36] = t6;
|
|
30999
|
+
$[37] = t7;
|
|
31000
|
+
$[38] = t8;
|
|
31001
|
+
$[39] = t9;
|
|
31002
|
+
} else {
|
|
31003
|
+
T0 = $[29];
|
|
31004
|
+
T1 = $[30];
|
|
31005
|
+
T2 = $[31];
|
|
31006
|
+
t10 = $[32];
|
|
31007
|
+
t11 = $[33];
|
|
31008
|
+
t12 = $[34];
|
|
31009
|
+
t13 = $[35];
|
|
31010
|
+
t6 = $[36];
|
|
31011
|
+
t7 = $[37];
|
|
31012
|
+
t8 = $[38];
|
|
31013
|
+
t9 = $[39];
|
|
30980
31014
|
}
|
|
30981
31015
|
let t14;
|
|
30982
|
-
if ($[
|
|
30983
|
-
t14 = /* @__PURE__ */ jsxRuntime.jsx(T0, { ...t6, onFocusCapture: t7, className: t8, children });
|
|
30984
|
-
$[
|
|
30985
|
-
$[
|
|
30986
|
-
$[
|
|
30987
|
-
$[
|
|
30988
|
-
$[
|
|
30989
|
-
$[
|
|
30990
|
-
|
|
30991
|
-
|
|
31016
|
+
if ($[48] !== T0 || $[49] !== children || $[50] !== style || $[51] !== t6 || $[52] !== t7 || $[53] !== t8) {
|
|
31017
|
+
t14 = /* @__PURE__ */ jsxRuntime.jsx(T0, { ...t6, onFocusCapture: t7, className: t8, style, children });
|
|
31018
|
+
$[48] = T0;
|
|
31019
|
+
$[49] = children;
|
|
31020
|
+
$[50] = style;
|
|
31021
|
+
$[51] = t6;
|
|
31022
|
+
$[52] = t7;
|
|
31023
|
+
$[53] = t8;
|
|
31024
|
+
$[54] = t14;
|
|
31025
|
+
} else {
|
|
31026
|
+
t14 = $[54];
|
|
30992
31027
|
}
|
|
30993
31028
|
let t15;
|
|
30994
|
-
if ($[
|
|
31029
|
+
if ($[55] !== T1 || $[56] !== t10 || $[57] !== t14 || $[58] !== t9) {
|
|
30995
31030
|
t15 = /* @__PURE__ */ jsxRuntime.jsxs(T1, { children: [
|
|
30996
31031
|
t9,
|
|
30997
31032
|
t10,
|
|
30998
31033
|
t14
|
|
30999
31034
|
] });
|
|
31000
|
-
$[
|
|
31001
|
-
$[
|
|
31002
|
-
$[
|
|
31003
|
-
$[
|
|
31004
|
-
$[
|
|
31035
|
+
$[55] = T1;
|
|
31036
|
+
$[56] = t10;
|
|
31037
|
+
$[57] = t14;
|
|
31038
|
+
$[58] = t9;
|
|
31039
|
+
$[59] = t15;
|
|
31005
31040
|
} else {
|
|
31006
|
-
t15 = $[
|
|
31041
|
+
t15 = $[59];
|
|
31007
31042
|
}
|
|
31008
31043
|
let t16;
|
|
31009
|
-
if ($[
|
|
31044
|
+
if ($[60] !== T2 || $[61] !== t11 || $[62] !== t12 || $[63] !== t13 || $[64] !== t15) {
|
|
31010
31045
|
t16 = /* @__PURE__ */ jsxRuntime.jsx(T2, { open: t11, modal: t12, onOpenChange: t13, children: t15 });
|
|
31011
|
-
$[
|
|
31012
|
-
$[
|
|
31013
|
-
$[
|
|
31014
|
-
$[
|
|
31015
|
-
$[
|
|
31016
|
-
$[
|
|
31046
|
+
$[60] = T2;
|
|
31047
|
+
$[61] = t11;
|
|
31048
|
+
$[62] = t12;
|
|
31049
|
+
$[63] = t13;
|
|
31050
|
+
$[64] = t15;
|
|
31051
|
+
$[65] = t16;
|
|
31017
31052
|
} else {
|
|
31018
|
-
t16 = $[
|
|
31053
|
+
t16 = $[65];
|
|
31019
31054
|
}
|
|
31020
31055
|
return t16;
|
|
31021
31056
|
};
|
|
@@ -31217,9 +31252,9 @@
|
|
|
31217
31252
|
}
|
|
31218
31253
|
),
|
|
31219
31254
|
/* @__PURE__ */ jsxRuntime.jsx("textarea", { "aria-hidden": true, className: cls(props.className, props.shadowClassName), readOnly: true, ref: shadowRef, tabIndex: -1, style: {
|
|
31255
|
+
padding: 0,
|
|
31220
31256
|
...styles$1.shadow,
|
|
31221
|
-
...style
|
|
31222
|
-
padding: 0
|
|
31257
|
+
...style
|
|
31223
31258
|
} })
|
|
31224
31259
|
] });
|
|
31225
31260
|
});
|
|
@@ -31242,7 +31277,7 @@
|
|
|
31242
31277
|
ref.current = value;
|
|
31243
31278
|
}
|
|
31244
31279
|
}
|
|
31245
|
-
|
|
31280
|
+
const TextField = React.forwardRef(({
|
|
31246
31281
|
value,
|
|
31247
31282
|
onChange,
|
|
31248
31283
|
label,
|
|
@@ -31262,7 +31297,7 @@
|
|
|
31262
31297
|
inputStyle,
|
|
31263
31298
|
inputRef: inputRefProp,
|
|
31264
31299
|
...inputProps
|
|
31265
|
-
}) {
|
|
31300
|
+
}, ref) => {
|
|
31266
31301
|
const inputRef = inputRefProp ?? React.useRef(null);
|
|
31267
31302
|
const [focused, setFocused] = React.useState(document.activeElement === inputRef.current);
|
|
31268
31303
|
const hasValue = value !== void 0 && value !== null && value !== "";
|
|
@@ -31272,16 +31307,13 @@
|
|
|
31272
31307
|
if (event.target instanceof HTMLElement) event.target.blur();
|
|
31273
31308
|
};
|
|
31274
31309
|
const element = "current" in inputRef ? inputRef.current : inputRef;
|
|
31275
|
-
element
|
|
31310
|
+
element?.addEventListener("wheel", handleWheel);
|
|
31276
31311
|
return () => {
|
|
31277
|
-
element
|
|
31312
|
+
element?.removeEventListener("wheel", handleWheel);
|
|
31278
31313
|
};
|
|
31279
31314
|
}, [inputRef, type]);
|
|
31280
|
-
const
|
|
31281
|
-
|
|
31282
|
-
}, []);
|
|
31283
|
-
const input = multiline ? /* @__PURE__ */ jsxRuntime.jsx(TextareaAutosize, { ...inputProps, ref: inputRef, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows, value: value ?? "", onChange, style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8", disabled && "border border-transparent outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500") }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, onWheel: type === "number" ? numberInputOnWheelPreventChange : void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-md", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, size === "small" ? "min-h-[32px]" : size === "medium" ? "min-h-[48px]" : "min-h-[64px]", label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2", endAdornment ? "pr-10" : "pr-3", disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-800 dark:text-white", inputClassName), placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, onFocus: () => setFocused(true), onBlur: () => setFocused(false), type, value: Number.isNaN(value) ? "" : value ?? "", onChange });
|
|
31284
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cls("rounded-md relative max-w-full", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, error ? "border border-red-500 dark:border-red-600" : "", {
|
|
31315
|
+
const input = multiline ? /* @__PURE__ */ jsxRuntime.jsx(TextareaAutosize, { ...inputProps, ref: inputRef, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows, value: value ?? "", onChange, style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-md", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, size === "small" ? "min-h-[32px]" : size === "medium" ? "min-h-[48px]" : "min-h-[64px]", label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2", endAdornment ? "pr-10" : "pr-3", disabled && "outline-none opacity-50 dark:opacity-50 text-surface-accent-800 dark:text-white", inputClassName), placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, onFocus: () => setFocused(true), onBlur: () => setFocused(false), type, value: type === "number" && Number.isNaN(value) ? "" : value ?? "", onChange });
|
|
31316
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: cls("rounded-md relative max-w-full", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, error ? "border border-red-500 dark:border-red-600" : "", {
|
|
31285
31317
|
"min-h-[32px]": !invisible && size === "small",
|
|
31286
31318
|
"min-h-[48px]": !invisible && size === "medium",
|
|
31287
31319
|
"min-h-[64px]": !invisible && size === "large"
|
|
@@ -31294,7 +31326,8 @@
|
|
|
31294
31326
|
"mr-2": size === "small"
|
|
31295
31327
|
}), children: endAdornment })
|
|
31296
31328
|
] });
|
|
31297
|
-
}
|
|
31329
|
+
});
|
|
31330
|
+
TextField.displayName = "TextField";
|
|
31298
31331
|
const Tooltip = (t0) => {
|
|
31299
31332
|
const $ = reactCompilerRuntime.c(28);
|
|
31300
31333
|
const {
|
|
@@ -31474,7 +31507,7 @@
|
|
|
31474
31507
|
} = t0;
|
|
31475
31508
|
let t1;
|
|
31476
31509
|
if ($[0] !== innerClassName) {
|
|
31477
|
-
t1 = cls("flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar items-end", innerClassName);
|
|
31510
|
+
t1 = cls("w-max", "flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar items-end", innerClassName);
|
|
31478
31511
|
$[0] = innerClassName;
|
|
31479
31512
|
$[1] = t1;
|
|
31480
31513
|
} else {
|
|
@@ -31522,7 +31555,7 @@
|
|
|
31522
31555
|
}
|
|
31523
31556
|
let t2;
|
|
31524
31557
|
if ($[3] !== innerClassName) {
|
|
31525
|
-
t2 = cls("uppercase inline-block p-2 px-4
|
|
31558
|
+
t2 = cls("line-clamp-1", "uppercase inline-block p-2 px-4 rounded", "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800", innerClassName);
|
|
31526
31559
|
$[3] = innerClassName;
|
|
31527
31560
|
$[4] = t2;
|
|
31528
31561
|
} else {
|