evelearn-theme 2.0.12 → 2.0.13

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
@@ -1233,25 +1233,23 @@ var Modal = function(_param) {
1233
1233
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
1234
1234
  className: (0, import_clsx7.default)("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
1235
1235
  children: [
1236
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {
1237
- children: dismissLink ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_link.default, {
1238
- href: dismissLink,
1239
- scroll: false,
1240
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1241
- onClick: onDismissed,
1242
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
1243
- className: "absolute h-5 w-5 top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
1244
- })
1245
- })
1246
- }) : dismissable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
1247
- className: "absolute top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
1248
- type: "button",
1236
+ dismissLink ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_link.default, {
1237
+ href: dismissLink,
1238
+ scroll: false,
1239
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1249
1240
  onClick: onDismissed,
1250
1241
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
1251
- className: "h-5 w-5"
1242
+ className: "absolute h-5 w-5 top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
1252
1243
  })
1253
- }) : null
1254
- }),
1244
+ })
1245
+ }) : dismissable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
1246
+ className: "absolute top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
1247
+ type: "button",
1248
+ onClick: onDismissed,
1249
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
1250
+ className: "h-5 w-5"
1251
+ })
1252
+ }) : null,
1255
1253
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1256
1254
  className: "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",
1257
1255
  onClick: function(e) {
package/dist/index.mjs CHANGED
@@ -1016,7 +1016,7 @@ var XIcon = function(param) {
1016
1016
  var XIcon_default = XIcon;
1017
1017
  // src/Common/Modal.tsx
1018
1018
  import clsx7 from "clsx";
1019
- import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
1019
+ import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
1020
1020
  var Modal = function(_param) {
1021
1021
  var visible = _param.visible, children = _param.children, fullscreen = _param.fullscreen, displayDark = _param.displayDark, dismissLink = _param.dismissLink, bgOpacity = _param.bgOpacity, onDismissed = _param.onDismissed, _param_dismissable = _param.dismissable, dismissable = _param_dismissable === void 0 ? true : _param_dismissable, _param_dismissOnBackdropClick = _param.dismissOnBackdropClick, dismissOnBackdropClick = _param_dismissOnBackdropClick === void 0 ? true : _param_dismissOnBackdropClick, style = _param.style, props = _object_without_properties(_param, [
1022
1022
  "visible",
@@ -1045,25 +1045,23 @@ var Modal = function(_param) {
1045
1045
  children: /* @__PURE__ */ jsxs9("div", {
1046
1046
  className: clsx7("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
1047
1047
  children: [
1048
- /* @__PURE__ */ jsx20(Fragment2, {
1049
- children: dismissLink ? /* @__PURE__ */ jsx20(Link, {
1050
- href: dismissLink,
1051
- scroll: false,
1052
- children: /* @__PURE__ */ jsx20("div", {
1053
- onClick: onDismissed,
1054
- children: /* @__PURE__ */ jsx20(XIcon_default, {
1055
- className: "absolute h-5 w-5 top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
1056
- })
1057
- })
1058
- }) : dismissable ? /* @__PURE__ */ jsx20("button", {
1059
- className: "absolute top-7 sm:top-20 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
1060
- type: "button",
1048
+ dismissLink ? /* @__PURE__ */ jsx20(Link, {
1049
+ href: dismissLink,
1050
+ scroll: false,
1051
+ children: /* @__PURE__ */ jsx20("div", {
1061
1052
  onClick: onDismissed,
1062
1053
  children: /* @__PURE__ */ jsx20(XIcon_default, {
1063
- className: "h-5 w-5"
1054
+ className: "absolute h-5 w-5 top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
1064
1055
  })
1065
- }) : null
1066
- }),
1056
+ })
1057
+ }) : dismissable ? /* @__PURE__ */ jsx20("button", {
1058
+ className: "absolute top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
1059
+ type: "button",
1060
+ onClick: onDismissed,
1061
+ children: /* @__PURE__ */ jsx20(XIcon_default, {
1062
+ className: "h-5 w-5"
1063
+ })
1064
+ }) : null,
1067
1065
  /* @__PURE__ */ jsx20("div", {
1068
1066
  className: "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",
1069
1067
  onClick: function(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evelearn-theme",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",