@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.mjs
CHANGED
|
@@ -997,10 +997,10 @@ var cardVariants = cva(
|
|
|
997
997
|
glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
|
|
998
998
|
},
|
|
999
999
|
size: {
|
|
1000
|
-
default: "
|
|
1001
|
-
sm: "
|
|
1002
|
-
lg: "
|
|
1003
|
-
xl: "
|
|
1000
|
+
default: "",
|
|
1001
|
+
sm: "",
|
|
1002
|
+
lg: "",
|
|
1003
|
+
xl: ""
|
|
1004
1004
|
},
|
|
1005
1005
|
radius: {
|
|
1006
1006
|
default: "rounded-lg",
|
|
@@ -1053,7 +1053,7 @@ var CardHeader = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1053
1053
|
"div",
|
|
1054
1054
|
{
|
|
1055
1055
|
ref,
|
|
1056
|
-
className: cn("moonui-theme", "flex flex-col space-y-1.5", className),
|
|
1056
|
+
className: cn("moonui-theme", "flex flex-col space-y-1.5 p-6", className),
|
|
1057
1057
|
...props
|
|
1058
1058
|
}
|
|
1059
1059
|
));
|
|
@@ -1076,13 +1076,13 @@ var CardDescription = t.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1076
1076
|
}
|
|
1077
1077
|
));
|
|
1078
1078
|
CardDescription.displayName = "CardDescription";
|
|
1079
|
-
var CardContent = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "pt-0", className), ...props }));
|
|
1079
|
+
var CardContent = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("moonui-theme", "p-6 pt-0", className), ...props }));
|
|
1080
1080
|
CardContent.displayName = "CardContent";
|
|
1081
1081
|
var CardFooter = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1082
1082
|
"div",
|
|
1083
1083
|
{
|
|
1084
1084
|
ref,
|
|
1085
|
-
className: cn("moonui-theme", "flex items-center pt-
|
|
1085
|
+
className: cn("moonui-theme", "flex items-center p-6 pt-0", className),
|
|
1086
1086
|
...props
|
|
1087
1087
|
}
|
|
1088
1088
|
));
|
|
@@ -2350,7 +2350,7 @@ var TabsContent = t.forwardRef(({ className, animated = false, ...props }, ref)
|
|
|
2350
2350
|
ref,
|
|
2351
2351
|
className: cn(
|
|
2352
2352
|
"moonui-theme",
|
|
2353
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2353
|
+
"mt-6 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2354
2354
|
animated && "data-[state=active]:animate-fadeIn data-[state=inactive]:animate-fadeOut",
|
|
2355
2355
|
className
|
|
2356
2356
|
),
|
|
@@ -10363,7 +10363,7 @@ function usePresence2(present) {
|
|
|
10363
10363
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
10364
10364
|
const handleAnimationEnd = (event) => {
|
|
10365
10365
|
const currentAnimationName = getAnimationName2(stylesRef.current);
|
|
10366
|
-
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
10366
|
+
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
10367
10367
|
if (event.target === node && isCurrentAnimation) {
|
|
10368
10368
|
send("ANIMATION_END");
|
|
10369
10369
|
if (!prevPresentRef.current) {
|
|
@@ -10496,8 +10496,6 @@ function useDirection(localDir) {
|
|
|
10496
10496
|
function clamp(value, [min2, max2]) {
|
|
10497
10497
|
return Math.min(max2, Math.max(min2, value));
|
|
10498
10498
|
}
|
|
10499
|
-
|
|
10500
|
-
// ../../node_modules/@radix-ui/primitive/dist/index.mjs
|
|
10501
10499
|
function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
10502
10500
|
return function handleEvent(event) {
|
|
10503
10501
|
originalEventHandler?.(event);
|