@firecms/ui 3.0.0-canary.167 → 3.0.0-canary.169
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/CircularProgress.d.ts +1 -1
- package/dist/components/Menu.d.ts +4 -1
- package/dist/components/Sheet.d.ts +2 -0
- package/dist/index.es.js +186 -158
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +186 -158
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +1 -1
- package/src/components/Chip.tsx +1 -0
- package/src/components/CircularProgress.tsx +7 -3
- 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 +2 -2
- package/src/components/TextareaAutosize.tsx +2 -2
package/dist/index.umd.js
CHANGED
@@ -876,7 +876,7 @@
|
|
876
876
|
"text-text-disabled dark:text-text-disabled-dark": disabled,
|
877
877
|
"border border-transparent opacity-50": t23,
|
878
878
|
"border border-surface-500 opacity-50": t24,
|
879
|
-
"border border-surface-
|
879
|
+
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40": t25
|
880
880
|
});
|
881
881
|
const sizeClasses2 = cls({
|
882
882
|
"py-1 px-2": size === "small",
|
@@ -1162,23 +1162,31 @@
|
|
1162
1162
|
} = t0;
|
1163
1163
|
const size = t1 === void 0 ? "medium" : t1;
|
1164
1164
|
let sizeClasses2;
|
1165
|
-
if (size === "
|
1165
|
+
if (size === "smallest") {
|
1166
1166
|
sizeClasses2 = "w-4 h-4";
|
1167
1167
|
} else {
|
1168
|
-
if (size === "
|
1169
|
-
sizeClasses2 = "w-
|
1168
|
+
if (size === "small") {
|
1169
|
+
sizeClasses2 = "w-6 h-6";
|
1170
1170
|
} else {
|
1171
|
-
|
1171
|
+
if (size === "medium") {
|
1172
|
+
sizeClasses2 = "w-8 h-8 m-1";
|
1173
|
+
} else {
|
1174
|
+
sizeClasses2 = "w-10 h-10 m-1";
|
1175
|
+
}
|
1172
1176
|
}
|
1173
1177
|
}
|
1174
1178
|
let borderClasses;
|
1175
|
-
if (size === "
|
1179
|
+
if (size === "smallest") {
|
1176
1180
|
borderClasses = "border-[3px]";
|
1177
1181
|
} else {
|
1178
|
-
if (size === "
|
1179
|
-
borderClasses = "border-
|
1182
|
+
if (size === "small") {
|
1183
|
+
borderClasses = "border-[4px]";
|
1180
1184
|
} else {
|
1181
|
-
|
1185
|
+
if (size === "medium") {
|
1186
|
+
borderClasses = "border-4";
|
1187
|
+
} else {
|
1188
|
+
borderClasses = "border-[6px]";
|
1189
|
+
}
|
1182
1190
|
}
|
1183
1191
|
}
|
1184
1192
|
let t2;
|
@@ -27328,7 +27336,7 @@
|
|
27328
27336
|
const t6 = error ? "text-red-500 dark:text-red-400" : "";
|
27329
27337
|
let t7;
|
27330
27338
|
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);
|
27339
|
+
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
27340
|
$[2] = className;
|
27333
27341
|
$[3] = t3;
|
27334
27342
|
$[4] = t4;
|
@@ -28796,7 +28804,7 @@
|
|
28796
28804
|
return t7;
|
28797
28805
|
}, equal);
|
28798
28806
|
const Menu = React.forwardRef((t0, ref) => {
|
28799
|
-
const $ = reactCompilerRuntime.c(
|
28807
|
+
const $ = reactCompilerRuntime.c(20);
|
28800
28808
|
const {
|
28801
28809
|
children,
|
28802
28810
|
trigger,
|
@@ -28805,90 +28813,98 @@
|
|
28805
28813
|
side,
|
28806
28814
|
align,
|
28807
28815
|
onOpenChange,
|
28808
|
-
portalContainer
|
28816
|
+
portalContainer,
|
28817
|
+
sideOffset: t1,
|
28818
|
+
className
|
28809
28819
|
} = t0;
|
28810
|
-
|
28820
|
+
const sideOffset = t1 === void 0 ? 4 : t1;
|
28821
|
+
let t2;
|
28811
28822
|
if ($[0] !== ref || $[1] !== trigger) {
|
28812
|
-
|
28823
|
+
t2 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Trigger, { ref, asChild: true, children: trigger });
|
28813
28824
|
$[0] = ref;
|
28814
28825
|
$[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;
|
28826
|
+
$[2] = t2;
|
28823
28827
|
} else {
|
28824
|
-
t2 = $[
|
28828
|
+
t2 = $[2];
|
28825
28829
|
}
|
28826
28830
|
let t3;
|
28827
|
-
if ($[
|
28828
|
-
t3 =
|
28829
|
-
$[
|
28830
|
-
$[
|
28831
|
-
$[6] = side;
|
28832
|
-
$[7] = t3;
|
28831
|
+
if ($[3] !== className) {
|
28832
|
+
t3 = cls(paperMixin, focusedDisabled, "shadow py-2 z-30", className);
|
28833
|
+
$[3] = className;
|
28834
|
+
$[4] = t3;
|
28833
28835
|
} else {
|
28834
|
-
t3 = $[
|
28836
|
+
t3 = $[4];
|
28835
28837
|
}
|
28836
28838
|
let t4;
|
28837
|
-
if ($[8] !==
|
28838
|
-
t4 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.
|
28839
|
-
$[
|
28839
|
+
if ($[5] !== align || $[6] !== children || $[7] !== side || $[8] !== sideOffset || $[9] !== t3) {
|
28840
|
+
t4 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Content, { side, sideOffset, align, className: t3, children });
|
28841
|
+
$[5] = align;
|
28842
|
+
$[6] = children;
|
28843
|
+
$[7] = side;
|
28844
|
+
$[8] = sideOffset;
|
28840
28845
|
$[9] = t3;
|
28841
28846
|
$[10] = t4;
|
28842
28847
|
} else {
|
28843
28848
|
t4 = $[10];
|
28844
28849
|
}
|
28845
28850
|
let t5;
|
28846
|
-
if ($[11] !==
|
28847
|
-
t5 = /* @__PURE__ */ jsxRuntime.
|
28848
|
-
|
28849
|
-
|
28851
|
+
if ($[11] !== portalContainer || $[12] !== t4) {
|
28852
|
+
t5 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Portal, { container: portalContainer, children: t4 });
|
28853
|
+
$[11] = portalContainer;
|
28854
|
+
$[12] = t4;
|
28855
|
+
$[13] = t5;
|
28856
|
+
} else {
|
28857
|
+
t5 = $[13];
|
28858
|
+
}
|
28859
|
+
let t6;
|
28860
|
+
if ($[14] !== defaultOpen || $[15] !== onOpenChange || $[16] !== open || $[17] !== t2 || $[18] !== t5) {
|
28861
|
+
t6 = /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu__namespace.Root, { open, defaultOpen, onOpenChange, children: [
|
28862
|
+
t2,
|
28863
|
+
t5
|
28850
28864
|
] });
|
28851
|
-
$[
|
28852
|
-
$[
|
28853
|
-
$[
|
28854
|
-
$[
|
28855
|
-
$[
|
28856
|
-
$[
|
28865
|
+
$[14] = defaultOpen;
|
28866
|
+
$[15] = onOpenChange;
|
28867
|
+
$[16] = open;
|
28868
|
+
$[17] = t2;
|
28869
|
+
$[18] = t5;
|
28870
|
+
$[19] = t6;
|
28857
28871
|
} else {
|
28858
|
-
|
28872
|
+
t6 = $[19];
|
28859
28873
|
}
|
28860
|
-
return
|
28874
|
+
return t6;
|
28861
28875
|
});
|
28862
28876
|
Menu.displayName = "Menu";
|
28863
28877
|
function MenuItem(t0) {
|
28864
|
-
const $ = reactCompilerRuntime.c(
|
28878
|
+
const $ = reactCompilerRuntime.c(8);
|
28865
28879
|
const {
|
28866
28880
|
children,
|
28867
28881
|
dense: t1,
|
28868
|
-
onClick
|
28882
|
+
onClick,
|
28883
|
+
className
|
28869
28884
|
} = t0;
|
28870
28885
|
const dense = t1 === void 0 ? false : t1;
|
28871
28886
|
const t2 = onClick && "cursor-pointer";
|
28872
28887
|
const t3 = dense ? "px-3 py-1.5" : "px-4 py-2";
|
28873
28888
|
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] =
|
28889
|
+
if ($[0] !== className || $[1] !== t2 || $[2] !== t3) {
|
28890
|
+
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);
|
28891
|
+
$[0] = className;
|
28892
|
+
$[1] = t2;
|
28893
|
+
$[2] = t3;
|
28894
|
+
$[3] = t4;
|
28879
28895
|
} else {
|
28880
|
-
t4 = $[
|
28896
|
+
t4 = $[3];
|
28881
28897
|
}
|
28882
28898
|
const classNames = t4;
|
28883
28899
|
let t5;
|
28884
|
-
if ($[
|
28900
|
+
if ($[4] !== children || $[5] !== classNames || $[6] !== onClick) {
|
28885
28901
|
t5 = /* @__PURE__ */ jsxRuntime.jsx(DropdownMenu__namespace.Item, { className: classNames, onClick, children });
|
28886
|
-
$[
|
28887
|
-
$[
|
28888
|
-
$[
|
28889
|
-
$[
|
28902
|
+
$[4] = children;
|
28903
|
+
$[5] = classNames;
|
28904
|
+
$[6] = onClick;
|
28905
|
+
$[7] = t5;
|
28890
28906
|
} else {
|
28891
|
-
t5 = $[
|
28907
|
+
t5 = $[7];
|
28892
28908
|
}
|
28893
28909
|
return t5;
|
28894
28910
|
}
|
@@ -30359,7 +30375,7 @@
|
|
30359
30375
|
}
|
30360
30376
|
let t9;
|
30361
30377
|
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: "
|
30378
|
+
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
30379
|
$[10] = loading;
|
30364
30380
|
$[11] = t9;
|
30365
30381
|
} else {
|
@@ -30817,13 +30833,15 @@
|
|
30817
30833
|
});
|
30818
30834
|
Slider.displayName = "Slider";
|
30819
30835
|
const Sheet = (t0) => {
|
30820
|
-
const $ = reactCompilerRuntime.c(
|
30836
|
+
const $ = reactCompilerRuntime.c(66);
|
30821
30837
|
let children;
|
30822
30838
|
let className;
|
30823
30839
|
let onOpenChange;
|
30824
30840
|
let open;
|
30825
30841
|
let overlayClassName;
|
30842
|
+
let overlayStyle;
|
30826
30843
|
let props;
|
30844
|
+
let style;
|
30827
30845
|
let t1;
|
30828
30846
|
let t2;
|
30829
30847
|
let t3;
|
@@ -30840,7 +30858,9 @@
|
|
30840
30858
|
onOpenChange,
|
30841
30859
|
transparent,
|
30842
30860
|
className,
|
30861
|
+
style,
|
30843
30862
|
overlayClassName,
|
30863
|
+
overlayStyle,
|
30844
30864
|
...props
|
30845
30865
|
} = t0);
|
30846
30866
|
$[0] = t0;
|
@@ -30849,24 +30869,28 @@
|
|
30849
30869
|
$[3] = onOpenChange;
|
30850
30870
|
$[4] = open;
|
30851
30871
|
$[5] = overlayClassName;
|
30852
|
-
$[6] =
|
30853
|
-
$[7] =
|
30854
|
-
$[8] =
|
30855
|
-
$[9] =
|
30856
|
-
$[10] =
|
30857
|
-
$[11] =
|
30872
|
+
$[6] = overlayStyle;
|
30873
|
+
$[7] = props;
|
30874
|
+
$[8] = style;
|
30875
|
+
$[9] = t1;
|
30876
|
+
$[10] = t2;
|
30877
|
+
$[11] = t3;
|
30878
|
+
$[12] = title;
|
30879
|
+
$[13] = transparent;
|
30858
30880
|
} else {
|
30859
30881
|
children = $[1];
|
30860
30882
|
className = $[2];
|
30861
30883
|
onOpenChange = $[3];
|
30862
30884
|
open = $[4];
|
30863
30885
|
overlayClassName = $[5];
|
30864
|
-
|
30865
|
-
|
30866
|
-
|
30867
|
-
|
30868
|
-
|
30869
|
-
|
30886
|
+
overlayStyle = $[6];
|
30887
|
+
props = $[7];
|
30888
|
+
style = $[8];
|
30889
|
+
t1 = $[9];
|
30890
|
+
t2 = $[10];
|
30891
|
+
t3 = $[11];
|
30892
|
+
title = $[12];
|
30893
|
+
transparent = $[13];
|
30870
30894
|
}
|
30871
30895
|
const side = t1 === void 0 ? "right" : t1;
|
30872
30896
|
const modal = t2 === void 0 ? true : t2;
|
@@ -30874,7 +30898,7 @@
|
|
30874
30898
|
const [displayed, setDisplayed] = React.useState(false);
|
30875
30899
|
let t4;
|
30876
30900
|
let t5;
|
30877
|
-
if ($[
|
30901
|
+
if ($[14] !== open) {
|
30878
30902
|
t4 = () => {
|
30879
30903
|
const timeout = setTimeout(() => {
|
30880
30904
|
setDisplayed(open);
|
@@ -30882,12 +30906,12 @@
|
|
30882
30906
|
return () => clearTimeout(timeout);
|
30883
30907
|
};
|
30884
30908
|
t5 = [open];
|
30885
|
-
$[
|
30886
|
-
$[
|
30887
|
-
$[
|
30909
|
+
$[14] = open;
|
30910
|
+
$[15] = t4;
|
30911
|
+
$[16] = t5;
|
30888
30912
|
} else {
|
30889
|
-
t4 = $[
|
30890
|
-
t5 = $[
|
30913
|
+
t4 = $[15];
|
30914
|
+
t5 = $[16];
|
30891
30915
|
}
|
30892
30916
|
React.useEffect(t4, t5);
|
30893
30917
|
let T0;
|
@@ -30901,7 +30925,7 @@
|
|
30901
30925
|
let t7;
|
30902
30926
|
let t8;
|
30903
30927
|
let t9;
|
30904
|
-
if ($[
|
30928
|
+
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
30929
|
const transformValue = {
|
30906
30930
|
top: "-translate-y-full",
|
30907
30931
|
bottom: "translate-y-full",
|
@@ -30920,102 +30944,106 @@
|
|
30920
30944
|
t13 = onOpenChange;
|
30921
30945
|
T1 = DialogPrimitive__namespace.Portal;
|
30922
30946
|
const t142 = title ?? "Sheet";
|
30923
|
-
if ($[
|
30947
|
+
if ($[40] !== t142) {
|
30924
30948
|
t9 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { autoFocus: true, tabIndex: 0, children: t142 });
|
30925
|
-
$[
|
30926
|
-
$[
|
30949
|
+
$[40] = t142;
|
30950
|
+
$[41] = t9;
|
30927
30951
|
} else {
|
30928
|
-
t9 = $[
|
30952
|
+
t9 = $[41];
|
30929
30953
|
}
|
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"
|
30954
|
+
if ($[42] !== displayed || $[43] !== includeBackgroundOverlay || $[44] !== open || $[45] !== overlayClassName || $[46] !== overlayStyle) {
|
30955
|
+
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: {
|
30956
|
+
pointerEvents: displayed ? "auto" : "none",
|
30957
|
+
...overlayStyle
|
30933
30958
|
} });
|
30934
|
-
$[
|
30935
|
-
$[
|
30936
|
-
$[
|
30937
|
-
$[
|
30938
|
-
$[
|
30959
|
+
$[42] = displayed;
|
30960
|
+
$[43] = includeBackgroundOverlay;
|
30961
|
+
$[44] = open;
|
30962
|
+
$[45] = overlayClassName;
|
30963
|
+
$[46] = overlayStyle;
|
30964
|
+
$[47] = t10;
|
30939
30965
|
} else {
|
30940
|
-
t10 = $[
|
30966
|
+
t10 = $[47];
|
30941
30967
|
}
|
30942
30968
|
T0 = DialogPrimitive__namespace.Content;
|
30943
30969
|
t6 = props;
|
30944
30970
|
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
|
-
|
30971
|
+
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);
|
30972
|
+
$[17] = className;
|
30973
|
+
$[18] = displayed;
|
30974
|
+
$[19] = includeBackgroundOverlay;
|
30975
|
+
$[20] = modal;
|
30976
|
+
$[21] = onOpenChange;
|
30977
|
+
$[22] = open;
|
30978
|
+
$[23] = overlayClassName;
|
30979
|
+
$[24] = overlayStyle;
|
30980
|
+
$[25] = props;
|
30981
|
+
$[26] = side;
|
30982
|
+
$[27] = title;
|
30983
|
+
$[28] = transparent;
|
30984
|
+
$[29] = T0;
|
30985
|
+
$[30] = T1;
|
30986
|
+
$[31] = T2;
|
30987
|
+
$[32] = t10;
|
30988
|
+
$[33] = t11;
|
30989
|
+
$[34] = t12;
|
30990
|
+
$[35] = t13;
|
30991
|
+
$[36] = t6;
|
30992
|
+
$[37] = t7;
|
30993
|
+
$[38] = t8;
|
30994
|
+
$[39] = t9;
|
30995
|
+
} else {
|
30996
|
+
T0 = $[29];
|
30997
|
+
T1 = $[30];
|
30998
|
+
T2 = $[31];
|
30999
|
+
t10 = $[32];
|
31000
|
+
t11 = $[33];
|
31001
|
+
t12 = $[34];
|
31002
|
+
t13 = $[35];
|
31003
|
+
t6 = $[36];
|
31004
|
+
t7 = $[37];
|
31005
|
+
t8 = $[38];
|
31006
|
+
t9 = $[39];
|
30980
31007
|
}
|
30981
31008
|
let t14;
|
30982
|
-
if ($[
|
30983
|
-
t14 = /* @__PURE__ */ jsxRuntime.jsx(T0, { ...t6, onFocusCapture: t7, className: t8, children });
|
30984
|
-
$[
|
30985
|
-
$[
|
30986
|
-
$[
|
30987
|
-
$[
|
30988
|
-
$[
|
30989
|
-
$[
|
30990
|
-
|
30991
|
-
|
31009
|
+
if ($[48] !== T0 || $[49] !== children || $[50] !== style || $[51] !== t6 || $[52] !== t7 || $[53] !== t8) {
|
31010
|
+
t14 = /* @__PURE__ */ jsxRuntime.jsx(T0, { ...t6, onFocusCapture: t7, className: t8, style, children });
|
31011
|
+
$[48] = T0;
|
31012
|
+
$[49] = children;
|
31013
|
+
$[50] = style;
|
31014
|
+
$[51] = t6;
|
31015
|
+
$[52] = t7;
|
31016
|
+
$[53] = t8;
|
31017
|
+
$[54] = t14;
|
31018
|
+
} else {
|
31019
|
+
t14 = $[54];
|
30992
31020
|
}
|
30993
31021
|
let t15;
|
30994
|
-
if ($[
|
31022
|
+
if ($[55] !== T1 || $[56] !== t10 || $[57] !== t14 || $[58] !== t9) {
|
30995
31023
|
t15 = /* @__PURE__ */ jsxRuntime.jsxs(T1, { children: [
|
30996
31024
|
t9,
|
30997
31025
|
t10,
|
30998
31026
|
t14
|
30999
31027
|
] });
|
31000
|
-
$[
|
31001
|
-
$[
|
31002
|
-
$[
|
31003
|
-
$[
|
31004
|
-
$[
|
31028
|
+
$[55] = T1;
|
31029
|
+
$[56] = t10;
|
31030
|
+
$[57] = t14;
|
31031
|
+
$[58] = t9;
|
31032
|
+
$[59] = t15;
|
31005
31033
|
} else {
|
31006
|
-
t15 = $[
|
31034
|
+
t15 = $[59];
|
31007
31035
|
}
|
31008
31036
|
let t16;
|
31009
|
-
if ($[
|
31037
|
+
if ($[60] !== T2 || $[61] !== t11 || $[62] !== t12 || $[63] !== t13 || $[64] !== t15) {
|
31010
31038
|
t16 = /* @__PURE__ */ jsxRuntime.jsx(T2, { open: t11, modal: t12, onOpenChange: t13, children: t15 });
|
31011
|
-
$[
|
31012
|
-
$[
|
31013
|
-
$[
|
31014
|
-
$[
|
31015
|
-
$[
|
31016
|
-
$[
|
31039
|
+
$[60] = T2;
|
31040
|
+
$[61] = t11;
|
31041
|
+
$[62] = t12;
|
31042
|
+
$[63] = t13;
|
31043
|
+
$[64] = t15;
|
31044
|
+
$[65] = t16;
|
31017
31045
|
} else {
|
31018
|
-
t16 = $[
|
31046
|
+
t16 = $[65];
|
31019
31047
|
}
|
31020
31048
|
return t16;
|
31021
31049
|
};
|
@@ -31217,9 +31245,9 @@
|
|
31217
31245
|
}
|
31218
31246
|
),
|
31219
31247
|
/* @__PURE__ */ jsxRuntime.jsx("textarea", { "aria-hidden": true, className: cls(props.className, props.shadowClassName), readOnly: true, ref: shadowRef, tabIndex: -1, style: {
|
31248
|
+
padding: 0,
|
31220
31249
|
...styles$1.shadow,
|
31221
|
-
...style
|
31222
|
-
padding: 0
|
31250
|
+
...style
|
31223
31251
|
} })
|
31224
31252
|
] });
|
31225
31253
|
});
|
@@ -31280,7 +31308,7 @@
|
|
31280
31308
|
const numberInputOnWheelPreventChange = React.useCallback((e) => {
|
31281
31309
|
e.preventDefault();
|
31282
31310
|
}, []);
|
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 && "
|
31311
|
+
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") }) : /* @__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 && "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
31312
|
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" : "", {
|
31285
31313
|
"min-h-[32px]": !invisible && size === "small",
|
31286
31314
|
"min-h-[48px]": !invisible && size === "medium",
|
@@ -31474,7 +31502,7 @@
|
|
31474
31502
|
} = t0;
|
31475
31503
|
let t1;
|
31476
31504
|
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);
|
31505
|
+
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
31506
|
$[0] = innerClassName;
|
31479
31507
|
$[1] = t1;
|
31480
31508
|
} else {
|
@@ -31522,7 +31550,7 @@
|
|
31522
31550
|
}
|
31523
31551
|
let t2;
|
31524
31552
|
if ($[3] !== innerClassName) {
|
31525
|
-
t2 = cls("uppercase inline-block p-2 px-4
|
31553
|
+
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
31554
|
$[3] = innerClassName;
|
31527
31555
|
$[4] = t2;
|
31528
31556
|
} else {
|