@l3mpire/ui 2.5.2 → 2.5.3
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 +15 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/globals.css +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2792,7 +2792,7 @@ import { Icon as Icon17, faXmarkSolid as faXmarkSolid5, faCircleInfoSolid as faC
|
|
|
2792
2792
|
import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2793
2793
|
var modalVariants = cva15(
|
|
2794
2794
|
[
|
|
2795
|
-
"fixed top-[50%] left-[50%] z-50",
|
|
2795
|
+
"fixed top-[50%] left-[50%] -translate-x-1/2 -translate-y-1/2 z-50",
|
|
2796
2796
|
"flex flex-col",
|
|
2797
2797
|
"bg-modal-bg border border-modal-border rounded-md shadow-sm overflow-clip",
|
|
2798
2798
|
"outline-none",
|
|
@@ -2801,10 +2801,10 @@ var modalVariants = cva15(
|
|
|
2801
2801
|
{
|
|
2802
2802
|
variants: {
|
|
2803
2803
|
size: {
|
|
2804
|
-
sm: "w-[500px] max-h-[80vh]
|
|
2805
|
-
md: "w-[800px] max-h-[85vh]
|
|
2806
|
-
lg: "w-[1100px] max-h-[90vh]
|
|
2807
|
-
full: "w-[calc(100%-32px)] h-[calc(100%-32px)]
|
|
2804
|
+
sm: "w-[500px] max-h-[80vh]",
|
|
2805
|
+
md: "w-[800px] max-h-[85vh]",
|
|
2806
|
+
lg: "w-[1100px] max-h-[90vh]",
|
|
2807
|
+
full: "w-[calc(100%-32px)] h-[calc(100%-32px)]"
|
|
2808
2808
|
}
|
|
2809
2809
|
},
|
|
2810
2810
|
defaultVariants: { size: "md" }
|
|
@@ -2852,19 +2852,16 @@ var ModalHeader = React25.forwardRef(
|
|
|
2852
2852
|
...props,
|
|
2853
2853
|
children: [
|
|
2854
2854
|
/* @__PURE__ */ jsx25("div", { className: "flex flex-1 flex-col gap-2xs", children }),
|
|
2855
|
-
onClose && /* @__PURE__ */ jsx25(
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
) }) }),
|
|
2866
|
-
/* @__PURE__ */ jsx25(TooltipContent, { children: "Close" })
|
|
2867
|
-
] }) })
|
|
2855
|
+
onClose && /* @__PURE__ */ jsx25(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx25(
|
|
2856
|
+
"button",
|
|
2857
|
+
{
|
|
2858
|
+
type: "button",
|
|
2859
|
+
onClick: onClose,
|
|
2860
|
+
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",
|
|
2861
|
+
"aria-label": "Close",
|
|
2862
|
+
children: /* @__PURE__ */ jsx25(Icon17, { icon: faXmarkSolid5, size: "sm" })
|
|
2863
|
+
}
|
|
2864
|
+
) })
|
|
2868
2865
|
]
|
|
2869
2866
|
}
|
|
2870
2867
|
)
|