@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.mjs CHANGED
@@ -2520,26 +2520,31 @@ var tabsListVariants = cva(
2520
2520
  },
2521
2521
  fullWidth: {
2522
2522
  true: "w-full"
2523
+ },
2524
+ scrollable: {
2525
+ true: "overflow-x-auto overflow-y-hidden flex-nowrap hide-scrollbar snap-x snap-mandatory",
2526
+ false: "flex-wrap"
2523
2527
  }
2524
2528
  },
2525
2529
  defaultVariants: {
2526
2530
  variant: "default",
2527
2531
  orientation: "horizontal",
2528
- fullWidth: false
2532
+ fullWidth: false,
2533
+ scrollable: false
2529
2534
  }
2530
2535
  }
2531
2536
  );
2532
- var TabsList = t.forwardRef(({ className, variant, orientation, fullWidth, ...props }, ref) => /* @__PURE__ */ jsx(
2537
+ var TabsList = t.forwardRef(({ className, variant, orientation, fullWidth, scrollable, ...props }, ref) => /* @__PURE__ */ jsx(
2533
2538
  TabsPrimitive.List,
2534
2539
  {
2535
2540
  ref,
2536
- className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, className })),
2541
+ className: cn("moonui-theme", tabsListVariants({ variant, orientation, fullWidth, scrollable, className })),
2537
2542
  ...props
2538
2543
  }
2539
2544
  ));
2540
2545
  TabsList.displayName = TabsPrimitive.List.displayName;
2541
2546
  var tabsTriggerVariants = cva(
2542
- "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",
2547
+ "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",
2543
2548
  {
2544
2549
  variants: {
2545
2550
  variant: {