@moontra/moonui 6.6.0 → 6.7.0
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/hooks/index.global.js +6 -1
- package/dist/hooks/index.global.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.global.js +52 -365
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/dead-code-group-b.test.tsx +105 -0
- package/src/components/ui/accordion.tsx +7 -1
- package/src/components/ui/card.tsx +17 -1
- package/src/components/ui/popover.tsx +12 -2
- package/src/components/ui/progress.tsx +6 -1
package/dist/index.mjs
CHANGED
|
@@ -67,7 +67,7 @@ var AccordionTrigger = React23.forwardRef(({ className, children, ...props }, re
|
|
|
67
67
|
ref,
|
|
68
68
|
className: cn(
|
|
69
69
|
"flex flex-1 items-center justify-between py-4 font-medium transition-all dark:text-gray-100",
|
|
70
|
-
"hover:underline hover:text-primary
|
|
70
|
+
"hover:underline hover:text-primary",
|
|
71
71
|
"[&[data-state=open]>svg]:rotate-180",
|
|
72
72
|
className
|
|
73
73
|
),
|
|
@@ -1040,7 +1040,7 @@ var cardVariants = cva(
|
|
|
1040
1040
|
default: "",
|
|
1041
1041
|
outline: "border border-border shadow-none bg-transparent dark:border-gray-700 dark:bg-transparent dark:text-gray-200",
|
|
1042
1042
|
filled: "border-none bg-secondary dark:bg-gray-800 dark:text-gray-100 dark:shadow-inner dark:shadow-gray-950/10",
|
|
1043
|
-
elevated: "border-none shadow-md dark:shadow-lg dark:shadow-gray-900/30 dark:bg-
|
|
1043
|
+
elevated: "border-none shadow-md dark:shadow-lg dark:shadow-gray-900/30 dark:bg-card dark:text-gray-100",
|
|
1044
1044
|
gradient: "border-none bg-gradient-to-br from-primary/5 to-primary/10 dark:from-primary/10 dark:to-primary/20",
|
|
1045
1045
|
glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
|
|
1046
1046
|
},
|
|
@@ -2214,11 +2214,17 @@ var PopoverContent = React23.forwardRef(({
|
|
|
2214
2214
|
sideOffset = 4,
|
|
2215
2215
|
...props
|
|
2216
2216
|
}, ref) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2217
|
-
overlayBackdrop && /* @__PURE__ */ jsx(
|
|
2217
|
+
overlayBackdrop && /* @__PURE__ */ jsx(
|
|
2218
|
+
"div",
|
|
2219
|
+
{
|
|
2220
|
+
className: "fixed inset-0 z-40 bg-black/50"
|
|
2221
|
+
}
|
|
2222
|
+
),
|
|
2218
2223
|
/* @__PURE__ */ jsx(
|
|
2219
2224
|
PopoverPrimitive.Content,
|
|
2220
2225
|
{
|
|
2221
2226
|
ref,
|
|
2227
|
+
side,
|
|
2222
2228
|
sideOffset,
|
|
2223
2229
|
collisionPadding: 8,
|
|
2224
2230
|
onInteractOutside: (e) => {
|
|
@@ -4804,7 +4810,7 @@ var Progress = React23.forwardRef(({
|
|
|
4804
4810
|
"div",
|
|
4805
4811
|
{
|
|
4806
4812
|
className: cn(
|
|
4807
|
-
progressIndicatorVariants({ variant: indicatorVariant
|
|
4813
|
+
progressIndicatorVariants({ variant: indicatorVariant ?? variant ?? "primary", animation }),
|
|
4808
4814
|
indeterminate && "animate-indeterminate-progress"
|
|
4809
4815
|
),
|
|
4810
4816
|
style: indeterminate ? {} : { transform: `translateX(-${100 - percentage}%)` }
|