@moontra/moonui 2.4.7 → 2.4.9
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.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.global.js +29 -37
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/tabs.tsx +22 -12
- package/src/styles/tailwind.css +20 -1
package/dist/index.js
CHANGED
|
@@ -2552,32 +2552,39 @@ var tabsListVariants = classVarianceAuthority.cva(
|
|
|
2552
2552
|
},
|
|
2553
2553
|
fullWidth: {
|
|
2554
2554
|
true: "w-full"
|
|
2555
|
+
},
|
|
2556
|
+
scrollable: {
|
|
2557
|
+
true: "overflow-x-auto overflow-y-hidden flex-nowrap hide-scrollbar snap-x snap-mandatory px-4",
|
|
2558
|
+
false: "flex-wrap"
|
|
2555
2559
|
}
|
|
2556
2560
|
},
|
|
2557
2561
|
defaultVariants: {
|
|
2558
2562
|
variant: "default",
|
|
2559
2563
|
orientation: "horizontal",
|
|
2560
|
-
fullWidth: false
|
|
2564
|
+
fullWidth: false,
|
|
2565
|
+
scrollable: false
|
|
2561
2566
|
}
|
|
2562
2567
|
}
|
|
2563
2568
|
);
|
|
2564
|
-
var TabsList = t__namespace.forwardRef(({ className, variant, orientation, fullWidth, ...props }, ref) =>
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2569
|
+
var TabsList = t__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => {
|
|
2570
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2571
|
+
TabsPrimitive__namespace.List,
|
|
2572
|
+
{
|
|
2573
|
+
ref,
|
|
2574
|
+
className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, scrollable, className })),
|
|
2575
|
+
...props
|
|
2576
|
+
}
|
|
2577
|
+
);
|
|
2578
|
+
});
|
|
2572
2579
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
2573
2580
|
var tabsTriggerVariants = classVarianceAuthority.cva(
|
|
2574
|
-
"inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2581
|
+
"inline-flex items-center justify-center whitespace-nowrap flex-shrink-0 font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
2575
2582
|
{
|
|
2576
2583
|
variants: {
|
|
2577
2584
|
variant: {
|
|
2578
2585
|
default: "rounded-md data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-900 dark:data-[state=active]:text-gray-100 dark:data-[state=active]:shadow-gray-950/10",
|
|
2579
2586
|
underline: "rounded-none border-b-2 border-transparent pb-2 data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground dark:data-[state=active]:border-primary/80 dark:data-[state=active]:text-gray-100",
|
|
2580
|
-
pills: "rounded-full bg-
|
|
2587
|
+
pills: "rounded-full bg-gray-100 hover:bg-gray-200/80 border border-gray-300 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:border-primary dark:bg-gray-800 dark:hover:bg-gray-700 dark:border-gray-700 dark:data-[state=active]:bg-primary/90 dark:data-[state=active]:text-white dark:data-[state=active]:border-primary",
|
|
2581
2588
|
cards: "rounded-md bg-muted/50 hover:bg-muted data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-md dark:bg-gray-800/50 dark:hover:bg-gray-700/50 dark:data-[state=active]:bg-gray-900 dark:data-[state=active]:text-gray-100 dark:data-[state=active]:shadow-gray-950/20",
|
|
2582
2589
|
minimal: "rounded-sm bg-transparent hover:bg-muted/30 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:underline data-[state=active]:underline-offset-4 dark:hover:bg-gray-800/30 dark:data-[state=active]:text-gray-200"
|
|
2583
2590
|
},
|