singularity-components 0.1.84 → 0.1.86

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",
@@ -20571,7 +20605,7 @@ var TextBody = ({
20571
20605
  }
20572
20606
  );
20573
20607
  };
20574
- var textDisplayVariants = classVarianceAuthority.cva("sg:font-bold sg:tracking-tight", {
20608
+ var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:font-bold sg:tracking-tight", {
20575
20609
  variants: {
20576
20610
  size: {
20577
20611
  sm: "sg:text-4xl",
@@ -20579,11 +20613,13 @@ var textDisplayVariants = classVarianceAuthority.cva("sg:font-bold sg:tracking-t
20579
20613
  lg: "sg:text-6xl"
20580
20614
  },
20581
20615
  gradient: {
20582
- true: "sg:bg-gradient-to-r sg:from-primary sg:to-secondary-foreground sg:text-transparent sg:bg-clip-text"
20616
+ none: "",
20617
+ true: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
20583
20618
  }
20584
20619
  },
20585
20620
  defaultVariants: {
20586
- size: "md"
20621
+ size: "md",
20622
+ gradient: "none"
20587
20623
  }
20588
20624
  });
20589
20625
  var TextDisplay = ({
@@ -33588,6 +33624,7 @@ exports.Layout = Layout;
33588
33624
  exports.Separator = Separator;
33589
33625
  exports.Skeleton = Skeleton;
33590
33626
  exports.Spinner = Spinner;
33627
+ exports.Stack = Stack;
33591
33628
  exports.Table = Table3;
33592
33629
  exports.TableBody = TableBody;
33593
33630
  exports.TableCaption = TableCaption;
@@ -33603,5 +33640,6 @@ exports.badgeVariants = badgeVariants;
33603
33640
  exports.buttonVariants = buttonVariants;
33604
33641
  exports.iconVariants = iconVariants;
33605
33642
  exports.layoutVariants = layoutVariants;
33643
+ exports.stackVariants = stackVariants;
33606
33644
  //# sourceMappingURL=main.cjs.map
33607
33645
  //# sourceMappingURL=main.cjs.map