@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/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(36);
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
- const t8 = displayed && open ? "opacity-100" : "opacity-0";
28035
- let t9;
28036
- if ($[3] !== t8) {
28037
- t9 = 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 ", t8, "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center");
28038
- $[3] = t8;
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
- t9 = $[4];
28041
+ t8 = $[4];
28042
28042
  }
28043
- const t10 = displayed ? "auto" : "none";
28044
- let t11;
28045
- if ($[5] !== t10) {
28046
- t11 = {
28047
- pointerEvents: t10
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
- t11 = $[6];
28050
+ t10 = $[6];
28053
28051
  }
28052
+ const t11 = displayed ? "auto" : "none";
28054
28053
  let t12;
28055
- if ($[7] !== t11 || $[8] !== t9) {
28056
- t12 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: t9, style: t11 });
28054
+ if ($[7] !== t11) {
28055
+ t12 = {
28056
+ pointerEvents: t11
28057
+ };
28057
28058
  $[7] = t11;
28058
- $[8] = t9;
28059
- $[9] = t12;
28059
+ $[8] = t12;
28060
28060
  } else {
28061
- t12 = $[9];
28061
+ t12 = $[8];
28062
28062
  }
28063
28063
  let t13;
28064
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
28065
- t13 = cls("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out");
28066
- $[10] = t13;
28067
- } else {
28068
- t13 = $[10];
28069
- }
28070
- const t14 = fullWidth && !fullScreen ? "w-11/12" : void 0;
28071
- const t15 = fullHeight && !fullScreen ? "h-full" : void 0;
28072
- const t16 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
28073
- const t17 = scrollable && "overflow-y-auto";
28074
- const t18 = displayed && open ? "opacity-100" : "opacity-0";
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
- t20 = $[18];
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 ($[19] !== children || $[20] !== t20) {
28092
- t21 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t20, children });
28093
- $[19] = children;
28094
- $[20] = t20;
28095
- $[21] = t21;
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 = $[21];
28097
+ t21 = $[20];
28098
28098
  }
28099
28099
  let t22;
28100
- if ($[22] !== onEscapeKeyDown || $[23] !== onInteractOutside || $[24] !== onOpenAutoFocus || $[25] !== onPointerDownOutside || $[26] !== t21) {
28101
- t22 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { onEscapeKeyDown, onOpenAutoFocus, onPointerDownOutside, onInteractOutside, className: t13, children: t21 });
28102
- $[22] = onEscapeKeyDown;
28103
- $[23] = onInteractOutside;
28104
- $[24] = onOpenAutoFocus;
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 = $[27];
28106
+ t22 = $[23];
28110
28107
  }
28111
28108
  let t23;
28112
- if ($[28] !== t12 || $[29] !== t22) {
28113
- t23 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "fixed inset-0 z-30", children: [
28114
- t12,
28115
- t22
28116
- ] }) });
28117
- $[28] = t12;
28118
- $[29] = t22;
28119
- $[30] = t23;
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 = $[30];
28118
+ t23 = $[29];
28122
28119
  }
28123
28120
  let t24;
28124
- if ($[31] !== modal || $[32] !== onOpenChange || $[33] !== t23 || $[34] !== t7) {
28125
- t24 = /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { open: t7, modal, onOpenChange, children: t23 });
28126
- $[31] = modal;
28127
- $[32] = onOpenChange;
28128
- $[33] = t23;
28129
- $[34] = t7;
28130
- $[35] = t24;
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 = $[35];
28131
+ t24 = $[33];
28133
28132
  }
28134
- return t24;
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
  }