@firecms/ui 3.0.0-canary.220 → 3.0.0-canary.221
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/Dialog.d.ts +2 -1
- package/dist/index.es.js +88 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +88 -78
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dialog.tsx +3 -1
package/dist/index.umd.js
CHANGED
@@ -27985,12 +27985,13 @@
|
|
27985
27985
|
full: "max-w-full min-w-full w-full"
|
27986
27986
|
};
|
27987
27987
|
const Dialog = (t0) => {
|
27988
|
-
const $ = reactCompilerRuntime.c(
|
27988
|
+
const $ = reactCompilerRuntime.c(39);
|
27989
27989
|
const {
|
27990
27990
|
open,
|
27991
27991
|
onOpenChange,
|
27992
27992
|
children,
|
27993
27993
|
className,
|
27994
|
+
containerClassName,
|
27994
27995
|
fullWidth: t1,
|
27995
27996
|
fullHeight,
|
27996
27997
|
fullScreen,
|
@@ -28031,107 +28032,116 @@
|
|
28031
28032
|
}
|
28032
28033
|
React.useEffect(t5, t6);
|
28033
28034
|
const t7 = displayed || open;
|
28034
|
-
|
28035
|
-
|
28036
|
-
|
28037
|
-
|
28038
|
-
$[
|
28039
|
-
$[4] = t9;
|
28035
|
+
let t8;
|
28036
|
+
if ($[3] !== containerClassName) {
|
28037
|
+
t8 = cls("fixed inset-0 z-30", containerClassName);
|
28038
|
+
$[3] = containerClassName;
|
28039
|
+
$[4] = t8;
|
28040
28040
|
} else {
|
28041
|
-
|
28041
|
+
t8 = $[4];
|
28042
28042
|
}
|
28043
|
-
const
|
28044
|
-
let
|
28045
|
-
if ($[5] !==
|
28046
|
-
|
28047
|
-
|
28048
|
-
|
28049
|
-
$[5] = t10;
|
28050
|
-
$[6] = t11;
|
28043
|
+
const t9 = displayed && open ? "opacity-100" : "opacity-0";
|
28044
|
+
let t10;
|
28045
|
+
if ($[5] !== t9) {
|
28046
|
+
t10 = cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ", t9, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
|
28047
|
+
$[5] = t9;
|
28048
|
+
$[6] = t10;
|
28051
28049
|
} else {
|
28052
|
-
|
28050
|
+
t10 = $[6];
|
28053
28051
|
}
|
28052
|
+
const t11 = displayed ? "auto" : "none";
|
28054
28053
|
let t12;
|
28055
|
-
if ($[7] !== t11
|
28056
|
-
t12 =
|
28054
|
+
if ($[7] !== t11) {
|
28055
|
+
t12 = {
|
28056
|
+
pointerEvents: t11
|
28057
|
+
};
|
28057
28058
|
$[7] = t11;
|
28058
|
-
$[8] =
|
28059
|
-
$[9] = t12;
|
28059
|
+
$[8] = t12;
|
28060
28060
|
} else {
|
28061
|
-
t12 = $[
|
28061
|
+
t12 = $[8];
|
28062
28062
|
}
|
28063
28063
|
let t13;
|
28064
|
-
if ($[10]
|
28065
|
-
t13 =
|
28066
|
-
$[
|
28067
|
-
|
28068
|
-
|
28069
|
-
}
|
28070
|
-
|
28071
|
-
|
28072
|
-
|
28073
|
-
|
28074
|
-
|
28075
|
-
const t19 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
|
28076
|
-
let t20;
|
28077
|
-
if ($[11] !== className || $[12] !== t14 || $[13] !== t15 || $[14] !== t16 || $[15] !== t17 || $[16] !== t18 || $[17] !== t19) {
|
28078
|
-
t20 = cls(paperMixin, "z-30", "relative", "outline-none focus:outline-none", t14, t15, "text-surface-accent-900 dark:text-white", "justify-center items-center", t16, "ease-in-out duration-200", t17, t18, t19, className);
|
28079
|
-
$[11] = className;
|
28064
|
+
if ($[9] !== t10 || $[10] !== t12) {
|
28065
|
+
t13 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: t10, style: t12 });
|
28066
|
+
$[9] = t10;
|
28067
|
+
$[10] = t12;
|
28068
|
+
$[11] = t13;
|
28069
|
+
} else {
|
28070
|
+
t13 = $[11];
|
28071
|
+
}
|
28072
|
+
let t14;
|
28073
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
28074
|
+
t14 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
|
28080
28075
|
$[12] = t14;
|
28081
|
-
$[13] = t15;
|
28082
|
-
$[14] = t16;
|
28083
|
-
$[15] = t17;
|
28084
|
-
$[16] = t18;
|
28085
|
-
$[17] = t19;
|
28086
|
-
$[18] = t20;
|
28087
28076
|
} else {
|
28088
|
-
|
28077
|
+
t14 = $[12];
|
28089
28078
|
}
|
28079
|
+
const t15 = fullWidth && !fullScreen ? "w-11/12" : void 0;
|
28080
|
+
const t16 = fullHeight && !fullScreen ? "h-full" : void 0;
|
28081
|
+
const t17 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
|
28082
|
+
const t18 = scrollable && "overflow-y-auto";
|
28083
|
+
const t19 = displayed && open ? "opacity-100" : "opacity-0";
|
28084
|
+
const t20 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
|
28090
28085
|
let t21;
|
28091
|
-
if ($[
|
28092
|
-
t21 =
|
28093
|
-
$[
|
28094
|
-
$[
|
28095
|
-
$[
|
28086
|
+
if ($[13] !== className || $[14] !== t15 || $[15] !== t16 || $[16] !== t17 || $[17] !== t18 || $[18] !== t19 || $[19] !== t20) {
|
28087
|
+
t21 = cls(paperMixin, "z-30", "relative", "outline-none focus:outline-none", t15, t16, "text-surface-accent-900 dark:text-white", "justify-center items-center", t17, "ease-in-out duration-200", t18, t19, t20, className);
|
28088
|
+
$[13] = className;
|
28089
|
+
$[14] = t15;
|
28090
|
+
$[15] = t16;
|
28091
|
+
$[16] = t17;
|
28092
|
+
$[17] = t18;
|
28093
|
+
$[18] = t19;
|
28094
|
+
$[19] = t20;
|
28095
|
+
$[20] = t21;
|
28096
28096
|
} else {
|
28097
|
-
t21 = $[
|
28097
|
+
t21 = $[20];
|
28098
28098
|
}
|
28099
28099
|
let t22;
|
28100
|
-
if ($[
|
28101
|
-
t22 = /* @__PURE__ */ jsxRuntime.jsx(
|
28102
|
-
$[
|
28103
|
-
$[
|
28104
|
-
$[
|
28105
|
-
$[25] = onPointerDownOutside;
|
28106
|
-
$[26] = t21;
|
28107
|
-
$[27] = t22;
|
28100
|
+
if ($[21] !== children || $[22] !== t21) {
|
28101
|
+
t22 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t21, children });
|
28102
|
+
$[21] = children;
|
28103
|
+
$[22] = t21;
|
28104
|
+
$[23] = t22;
|
28108
28105
|
} else {
|
28109
|
-
t22 = $[
|
28106
|
+
t22 = $[23];
|
28110
28107
|
}
|
28111
28108
|
let t23;
|
28112
|
-
if ($[
|
28113
|
-
t23 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.
|
28114
|
-
|
28115
|
-
|
28116
|
-
]
|
28117
|
-
$[
|
28118
|
-
$[
|
28119
|
-
$[
|
28109
|
+
if ($[24] !== onEscapeKeyDown || $[25] !== onInteractOutside || $[26] !== onOpenAutoFocus || $[27] !== onPointerDownOutside || $[28] !== t22) {
|
28110
|
+
t23 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus, onPointerDownOutside, onInteractOutside, className: t14, children: t22 });
|
28111
|
+
$[24] = onEscapeKeyDown;
|
28112
|
+
$[25] = onInteractOutside;
|
28113
|
+
$[26] = onOpenAutoFocus;
|
28114
|
+
$[27] = onPointerDownOutside;
|
28115
|
+
$[28] = t22;
|
28116
|
+
$[29] = t23;
|
28120
28117
|
} else {
|
28121
|
-
t23 = $[
|
28118
|
+
t23 = $[29];
|
28122
28119
|
}
|
28123
28120
|
let t24;
|
28124
|
-
if ($[
|
28125
|
-
t24 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.
|
28126
|
-
|
28127
|
-
|
28128
|
-
|
28129
|
-
$[
|
28130
|
-
$[
|
28121
|
+
if ($[30] !== t13 || $[31] !== t23 || $[32] !== t8) {
|
28122
|
+
t24 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t8, children: [
|
28123
|
+
t13,
|
28124
|
+
t23
|
28125
|
+
] }) });
|
28126
|
+
$[30] = t13;
|
28127
|
+
$[31] = t23;
|
28128
|
+
$[32] = t8;
|
28129
|
+
$[33] = t24;
|
28131
28130
|
} else {
|
28132
|
-
t24 = $[
|
28131
|
+
t24 = $[33];
|
28133
28132
|
}
|
28134
|
-
|
28133
|
+
let t25;
|
28134
|
+
if ($[34] !== modal || $[35] !== onOpenChange || $[36] !== t24 || $[37] !== t7) {
|
28135
|
+
t25 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { open: t7, modal, onOpenChange, children: t24 });
|
28136
|
+
$[34] = modal;
|
28137
|
+
$[35] = onOpenChange;
|
28138
|
+
$[36] = t24;
|
28139
|
+
$[37] = t7;
|
28140
|
+
$[38] = t25;
|
28141
|
+
} else {
|
28142
|
+
t25 = $[38];
|
28143
|
+
}
|
28144
|
+
return t25;
|
28135
28145
|
};
|
28136
28146
|
function _temp$2() {
|
28137
28147
|
}
|