@moontra/moonui 2.3.3 → 2.3.5
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.global.js +27 -27
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/card.tsx +7 -7
- package/src/components/ui/tabs.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1029,10 +1029,10 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
1029
1029
|
glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
|
|
1030
1030
|
},
|
|
1031
1031
|
size: {
|
|
1032
|
-
default: "
|
|
1033
|
-
sm: "
|
|
1034
|
-
lg: "
|
|
1035
|
-
xl: "
|
|
1032
|
+
default: "",
|
|
1033
|
+
sm: "",
|
|
1034
|
+
lg: "",
|
|
1035
|
+
xl: ""
|
|
1036
1036
|
},
|
|
1037
1037
|
radius: {
|
|
1038
1038
|
default: "rounded-lg",
|
|
@@ -1085,7 +1085,7 @@ var CardHeader = t__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1085
1085
|
"div",
|
|
1086
1086
|
{
|
|
1087
1087
|
ref,
|
|
1088
|
-
className: cn("moonui-theme", "flex flex-col space-y-1.5", className),
|
|
1088
|
+
className: cn("moonui-theme", "flex flex-col space-y-1.5 p-6", className),
|
|
1089
1089
|
...props
|
|
1090
1090
|
}
|
|
1091
1091
|
));
|
|
@@ -1108,13 +1108,13 @@ var CardDescription = t__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1108
1108
|
}
|
|
1109
1109
|
));
|
|
1110
1110
|
CardDescription.displayName = "CardDescription";
|
|
1111
|
-
var CardContent = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "pt-0", className), ...props }));
|
|
1111
|
+
var CardContent = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
|
|
1112
1112
|
CardContent.displayName = "CardContent";
|
|
1113
1113
|
var CardFooter = t__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1114
1114
|
"div",
|
|
1115
1115
|
{
|
|
1116
1116
|
ref,
|
|
1117
|
-
className: cn("moonui-theme", "flex items-center pt-
|
|
1117
|
+
className: cn("moonui-theme", "flex items-center p-6 pt-0", className),
|
|
1118
1118
|
...props
|
|
1119
1119
|
}
|
|
1120
1120
|
));
|
|
@@ -2382,7 +2382,7 @@ var TabsContent = t__namespace.forwardRef(({ className, animated = false, ...pro
|
|
|
2382
2382
|
ref,
|
|
2383
2383
|
className: cn(
|
|
2384
2384
|
"moonui-theme",
|
|
2385
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2385
|
+
"mt-6 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2386
2386
|
animated && "data-[state=active]:animate-fadeIn data-[state=inactive]:animate-fadeOut",
|
|
2387
2387
|
className
|
|
2388
2388
|
),
|
|
@@ -10395,7 +10395,7 @@ function usePresence2(present) {
|
|
|
10395
10395
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
10396
10396
|
const handleAnimationEnd = (event) => {
|
|
10397
10397
|
const currentAnimationName = getAnimationName2(stylesRef.current);
|
|
10398
|
-
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
10398
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
10399
10399
|
if (event.target === node && isCurrentAnimation) {
|
|
10400
10400
|
send("ANIMATION_END");
|
|
10401
10401
|
if (!prevPresentRef.current) {
|
|
@@ -10528,8 +10528,6 @@ function useDirection(localDir) {
|
|
|
10528
10528
|
function clamp(value, [min2, max2]) {
|
|
10529
10529
|
return Math.min(max2, Math.max(min2, value));
|
|
10530
10530
|
}
|
|
10531
|
-
|
|
10532
|
-
// ../../node_modules/@radix-ui/primitive/dist/index.mjs
|
|
10533
10531
|
function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
10534
10532
|
return function handleEvent(event) {
|
|
10535
10533
|
originalEventHandler?.(event);
|