@moontra/moonui 2.4.7 → 2.4.8

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.js CHANGED
@@ -2552,26 +2552,31 @@ 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",
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) => /* @__PURE__ */ jsxRuntime.jsx(
2569
+ var TabsList = t__namespace.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2565
2570
  TabsPrimitive__namespace.List,
2566
2571
  {
2567
2572
  ref,
2568
- className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, className })),
2573
+ className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, scrollable, className })),
2569
2574
  ...props
2570
2575
  }
2571
2576
  ));
2572
2577
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
2573
2578
  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",
2579
+ "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
2580
  {
2576
2581
  variants: {
2577
2582
  variant: {