singularity-components 0.1.85 → 0.1.87

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/main.cjs CHANGED
@@ -20415,6 +20415,40 @@ function Spinner({ size = "md" }) {
20415
20415
  const spinnerSize = typeof size === "string" ? sizeMap[size] : size;
20416
20416
  return /* @__PURE__ */ jsxRuntime.jsx(reactSpinners.PuffLoader, { "data-slot": "spinner", size: spinnerSize });
20417
20417
  }
20418
+ var stackVariants = classVarianceAuthority.cva("sg:flex sg:flex-col", {
20419
+ variants: {
20420
+ gap: {
20421
+ 0: "sg:gap-0",
20422
+ 1: "sg:gap-1",
20423
+ 2: "sg:gap-2",
20424
+ 3: "sg:gap-3",
20425
+ 4: "sg:gap-4",
20426
+ 5: "sg:gap-5",
20427
+ 6: "sg:gap-6",
20428
+ 7: "sg:gap-7",
20429
+ 8: "sg:gap-8",
20430
+ 9: "sg:gap-9",
20431
+ 10: "sg:gap-10"
20432
+ }
20433
+ },
20434
+ defaultVariants: {
20435
+ gap: 4
20436
+ }
20437
+ });
20438
+ var Stack = React__namespace.forwardRef(
20439
+ ({ className, gap, asChild = false, ...props }, ref) => {
20440
+ const Comp = asChild ? reactSlot.Slot : "div";
20441
+ return /* @__PURE__ */ jsxRuntime.jsx(
20442
+ Comp,
20443
+ {
20444
+ className: cn(stackVariants({ gap }), className),
20445
+ ref,
20446
+ ...props
20447
+ }
20448
+ );
20449
+ }
20450
+ );
20451
+ Stack.displayName = "Stack";
20418
20452
  function Table3({ className, ...props }) {
20419
20453
  return /* @__PURE__ */ jsxRuntime.jsx(
20420
20454
  "div",
@@ -33590,6 +33624,7 @@ exports.Layout = Layout;
33590
33624
  exports.Separator = Separator;
33591
33625
  exports.Skeleton = Skeleton;
33592
33626
  exports.Spinner = Spinner;
33627
+ exports.Stack = Stack;
33593
33628
  exports.Table = Table3;
33594
33629
  exports.TableBody = TableBody;
33595
33630
  exports.TableCaption = TableCaption;
@@ -33605,5 +33640,6 @@ exports.badgeVariants = badgeVariants;
33605
33640
  exports.buttonVariants = buttonVariants;
33606
33641
  exports.iconVariants = iconVariants;
33607
33642
  exports.layoutVariants = layoutVariants;
33643
+ exports.stackVariants = stackVariants;
33608
33644
  //# sourceMappingURL=main.cjs.map
33609
33645
  //# sourceMappingURL=main.cjs.map