evelearn-theme 2.0.39 → 2.0.40

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.js CHANGED
@@ -1085,8 +1085,8 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1085
1085
  "style"
1086
1086
  ]);
1087
1087
  if (!visible) return null;
1088
- var modalWrapperClass = tw("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full flex items-center justify-center md:mx-0 md:w-full lg:w-full");
1089
- var modalPanelClass = tw("my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar", fullscreen && "rounded-none sm:mt-0 h-full w-full flex flex-col justify-center");
1088
+ var modalWrapperClass = tw("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full shrink-0 flex items-center justify-center");
1089
+ var modalPanelClass = tw("my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar", fullscreen && "rounded-none sm:mt-0 h-full shrink-0 w-full flex flex-col justify-center");
1090
1090
  var modalPanelStyle = fullscreen ? _object_spread({
1091
1091
  height: "100vh",
1092
1092
  width: "100vw",
@@ -1094,8 +1094,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1094
1094
  }, style) : _object_spread({
1095
1095
  maxHeight: "calc(100vh - 6rem)"
1096
1096
  }, style);
1097
- var innerPaddingClass = fullscreen ? "p-4 sm:p-10 flex-1 flex items-center justify-center" : "p-4 sm:p-10";
1098
- var contentMarginTopClass = fullscreen ? "" : "mt-8 sm:mt-0";
1097
+ var innerPaddingClass = fullscreen ? "p-4 sm:p-10 shrink-0 flex-1 flex items-center justify-center" : "p-4 sm:p-10 mt-8 sm:mt-0";
1099
1098
  return /* @__PURE__ */ jsxRuntime.jsx(Overlay_default, _object_spread_props(_object_spread({
1100
1099
  visible: visible,
1101
1100
  onClick: dismissOnBackdropClick ? onDismissed : void 0,
@@ -1103,7 +1102,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1103
1102
  withContainer: true
1104
1103
  }, props), {
1105
1104
  children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1106
- className: tw(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
1105
+ className: tw(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center w-full h-full"),
1107
1106
  style: {
1108
1107
  zIndex: 1e4
1109
1108
  },
@@ -1134,10 +1133,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1134
1133
  style: modalPanelStyle,
1135
1134
  children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1136
1135
  className: innerPaddingClass,
1137
- children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1138
- className: contentMarginTopClass,
1139
- children: children
1140
- })
1136
+ children: children
1141
1137
  })
1142
1138
  })
1143
1139
  ]
package/dist/index.mjs CHANGED
@@ -1076,8 +1076,8 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1076
1076
  "style"
1077
1077
  ]);
1078
1078
  if (!visible) return null;
1079
- var modalWrapperClass = tw("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full flex items-center justify-center md:mx-0 md:w-full lg:w-full");
1080
- var modalPanelClass = tw("my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar", fullscreen && "rounded-none sm:mt-0 h-full w-full flex flex-col justify-center");
1079
+ var modalWrapperClass = tw("relative mx-1 w-full", !fullscreen && "md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "fixed inset-0 mx-0 w-full h-full shrink-0 flex items-center justify-center");
1080
+ var modalPanelClass = tw("my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar", fullscreen && "rounded-none sm:mt-0 h-full shrink-0 w-full flex flex-col justify-center");
1081
1081
  var modalPanelStyle = fullscreen ? _object_spread({
1082
1082
  height: "100vh",
1083
1083
  width: "100vw",
@@ -1085,8 +1085,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1085
1085
  }, style) : _object_spread({
1086
1086
  maxHeight: "calc(100vh - 6rem)"
1087
1087
  }, style);
1088
- var innerPaddingClass = fullscreen ? "p-4 sm:p-10 flex-1 flex items-center justify-center" : "p-4 sm:p-10";
1089
- var contentMarginTopClass = fullscreen ? "" : "mt-8 sm:mt-0";
1088
+ var innerPaddingClass = fullscreen ? "p-4 sm:p-10 shrink-0 flex-1 flex items-center justify-center" : "p-4 sm:p-10 mt-8 sm:mt-0";
1090
1089
  return /* @__PURE__ */ jsx(Overlay_default, _object_spread_props(_object_spread({
1091
1090
  visible: visible,
1092
1091
  onClick: dismissOnBackdropClick ? onDismissed : void 0,
@@ -1094,7 +1093,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1094
1093
  withContainer: true
1095
1094
  }, props), {
1096
1095
  children: /* @__PURE__ */ jsx("div", {
1097
- className: tw(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
1096
+ className: tw(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center w-full h-full"),
1098
1097
  style: {
1099
1098
  zIndex: 1e4
1100
1099
  },
@@ -1125,10 +1124,7 @@ var Modal = /* @__PURE__ */ __name(function(_param) {
1125
1124
  style: modalPanelStyle,
1126
1125
  children: /* @__PURE__ */ jsx("div", {
1127
1126
  className: innerPaddingClass,
1128
- children: /* @__PURE__ */ jsx("div", {
1129
- className: contentMarginTopClass,
1130
- children: children
1131
- })
1127
+ children: children
1132
1128
  })
1133
1129
  })
1134
1130
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evelearn-theme",
3
- "version": "2.0.39",
3
+ "version": "2.0.40",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",