@moontra/moonui 6.5.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.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/dist/lib/theme.global.js.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.js
CHANGED
|
@@ -105,7 +105,7 @@ var AccordionTrigger = React23__namespace.forwardRef(({ className, children, ...
|
|
|
105
105
|
ref,
|
|
106
106
|
className: cn(
|
|
107
107
|
"flex flex-1 items-center justify-between py-4 font-medium transition-all dark:text-gray-100",
|
|
108
|
-
"hover:underline hover:text-primary
|
|
108
|
+
"hover:underline hover:text-primary",
|
|
109
109
|
"[&[data-state=open]>svg]:rotate-180",
|
|
110
110
|
className
|
|
111
111
|
),
|
|
@@ -1078,7 +1078,7 @@ var cardVariants = classVarianceAuthority.cva(
|
|
|
1078
1078
|
default: "",
|
|
1079
1079
|
outline: "border border-border shadow-none bg-transparent dark:border-gray-700 dark:bg-transparent dark:text-gray-200",
|
|
1080
1080
|
filled: "border-none bg-secondary dark:bg-gray-800 dark:text-gray-100 dark:shadow-inner dark:shadow-gray-950/10",
|
|
1081
|
-
elevated: "border-none shadow-md dark:shadow-lg dark:shadow-gray-900/30 dark:bg-
|
|
1081
|
+
elevated: "border-none shadow-md dark:shadow-lg dark:shadow-gray-900/30 dark:bg-card dark:text-gray-100",
|
|
1082
1082
|
gradient: "border-none bg-gradient-to-br from-primary/5 to-primary/10 dark:from-primary/10 dark:to-primary/20",
|
|
1083
1083
|
glass: "border border-white/20 bg-white/10 backdrop-blur-md dark:border-gray-700/30 dark:bg-gray-800/10"
|
|
1084
1084
|
},
|
|
@@ -2252,11 +2252,17 @@ var PopoverContent = React23__namespace.forwardRef(({
|
|
|
2252
2252
|
sideOffset = 4,
|
|
2253
2253
|
...props
|
|
2254
2254
|
}, ref) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2255
|
-
overlayBackdrop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2255
|
+
overlayBackdrop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2256
|
+
"div",
|
|
2257
|
+
{
|
|
2258
|
+
className: "fixed inset-0 z-40 bg-black/50"
|
|
2259
|
+
}
|
|
2260
|
+
),
|
|
2256
2261
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2257
2262
|
PopoverPrimitive__namespace.Content,
|
|
2258
2263
|
{
|
|
2259
2264
|
ref,
|
|
2265
|
+
side,
|
|
2260
2266
|
sideOffset,
|
|
2261
2267
|
collisionPadding: 8,
|
|
2262
2268
|
onInteractOutside: (e) => {
|
|
@@ -4842,7 +4848,7 @@ var Progress = React23__namespace.forwardRef(({
|
|
|
4842
4848
|
"div",
|
|
4843
4849
|
{
|
|
4844
4850
|
className: cn(
|
|
4845
|
-
progressIndicatorVariants({ variant: indicatorVariant
|
|
4851
|
+
progressIndicatorVariants({ variant: indicatorVariant ?? variant ?? "primary", animation }),
|
|
4846
4852
|
indeterminate && "animate-indeterminate-progress"
|
|
4847
4853
|
),
|
|
4848
4854
|
style: indeterminate ? {} : { transform: `translateX(-${100 - percentage}%)` }
|