singularity-components 0.1.77 → 0.1.78

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
@@ -20281,6 +20281,35 @@ var Heading7 = ({
20281
20281
  }
20282
20282
  );
20283
20283
  };
20284
+ var iconVariants = classVarianceAuthority.cva("", {
20285
+ variants: {
20286
+ size: {
20287
+ sm: "",
20288
+ md: "",
20289
+ lg: ""
20290
+ }
20291
+ },
20292
+ defaultVariants: {
20293
+ size: "md"
20294
+ }
20295
+ });
20296
+ function Icon2({ className, size, icon, spin, ...props }) {
20297
+ const LucideIcon2 = icons_exports[icon];
20298
+ let iconSize = 20;
20299
+ if (size == "sm") {
20300
+ iconSize = 16;
20301
+ } else if (size == "lg") {
20302
+ iconSize = 32;
20303
+ }
20304
+ return /* @__PURE__ */ jsxRuntime.jsx(
20305
+ LucideIcon2,
20306
+ {
20307
+ size: iconSize,
20308
+ className: clsx2__default.default(className, spin && "sg:animate-spin"),
20309
+ ...props
20310
+ }
20311
+ );
20312
+ }
20284
20313
  function Input({ className, type, ...props }) {
20285
20314
  return /* @__PURE__ */ jsxRuntime.jsx(
20286
20315
  "input",
@@ -33482,6 +33511,7 @@ exports.AlertTitle = AlertTitle;
33482
33511
  exports.Badge = Badge2;
33483
33512
  exports.Button = Button;
33484
33513
  exports.Heading = Heading7;
33514
+ exports.Icon = Icon2;
33485
33515
  exports.Input = Input;
33486
33516
  exports.Layout = Layout;
33487
33517
  exports.Skeleton = Skeleton;
@@ -33497,6 +33527,7 @@ exports.TableRow = TableRow;
33497
33527
  exports.Text = Text2;
33498
33528
  exports.badgeVariants = badgeVariants;
33499
33529
  exports.buttonVariants = buttonVariants;
33530
+ exports.iconVariants = iconVariants;
33500
33531
  exports.layoutVariants = layoutVariants;
33501
33532
  //# sourceMappingURL=main.cjs.map
33502
33533
  //# sourceMappingURL=main.cjs.map