@l3mpire/ui 2.5.2 → 2.5.4

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
@@ -2904,7 +2904,7 @@ var import_icons17 = require("@l3mpire/icons");
2904
2904
  var import_jsx_runtime25 = require("react/jsx-runtime");
2905
2905
  var modalVariants = (0, import_class_variance_authority15.cva)(
2906
2906
  [
2907
- "fixed top-[50%] left-[50%] z-50",
2907
+ "fixed top-[50%] left-[50%] -translate-x-1/2 -translate-y-1/2 z-50",
2908
2908
  "flex flex-col",
2909
2909
  "bg-modal-bg border border-modal-border rounded-md shadow-sm overflow-clip",
2910
2910
  "outline-none",
@@ -2913,10 +2913,10 @@ var modalVariants = (0, import_class_variance_authority15.cva)(
2913
2913
  {
2914
2914
  variants: {
2915
2915
  size: {
2916
- sm: "w-[500px] max-h-[80vh] translate-x-[-50%] translate-y-[-50%]",
2917
- md: "w-[800px] max-h-[85vh] translate-x-[-50%] translate-y-[-50%]",
2918
- lg: "w-[1100px] max-h-[90vh] translate-x-[-50%] translate-y-[-50%]",
2919
- full: "w-[calc(100%-32px)] h-[calc(100%-32px)] translate-x-[-50%] translate-y-[-50%]"
2916
+ sm: "w-[500px] max-h-[80vh]",
2917
+ md: "w-[800px] max-h-[85vh]",
2918
+ lg: "w-[1100px] max-h-[90vh]",
2919
+ full: "w-[calc(100%-32px)] h-[calc(100%-32px)]"
2920
2920
  }
2921
2921
  },
2922
2922
  defaultVariants: { size: "md" }
@@ -2964,19 +2964,16 @@ var ModalHeader = React25.forwardRef(
2964
2964
  ...props,
2965
2965
  children: [
2966
2966
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex flex-1 flex-col gap-2xs", children }),
2967
- onClose && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Tooltip, { children: [
2968
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2969
- "button",
2970
- {
2971
- type: "button",
2972
- onClick: onClose,
2973
- className: "inline-flex shrink-0 items-center justify-center p-xs rounded-base text-modal-header-close hover:bg-black/5 transition-colors",
2974
- "aria-label": "Close",
2975
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons17.Icon, { icon: import_icons17.faXmarkSolid, size: "sm" })
2976
- }
2977
- ) }) }),
2978
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipContent, { children: "Close" })
2979
- ] }) })
2967
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2968
+ "button",
2969
+ {
2970
+ type: "button",
2971
+ onClick: onClose,
2972
+ className: "inline-flex shrink-0 items-center justify-center p-xs rounded-base text-modal-header-close hover:bg-black/5 transition-colors cursor-pointer",
2973
+ "aria-label": "Close",
2974
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons17.Icon, { icon: import_icons17.faXmarkSolid, size: "sm" })
2975
+ }
2976
+ ) })
2980
2977
  ]
2981
2978
  }
2982
2979
  )