singularity-components 0.1.77 → 0.1.79

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
@@ -7,6 +7,7 @@ var tailwindMerge = require('tailwind-merge');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var classVarianceAuthority = require('class-variance-authority');
9
9
  var reactSlot = require('@radix-ui/react-slot');
10
+ var SeparatorPrimitive = require('@radix-ui/react-separator');
10
11
  var reactSpinners = require('react-spinners');
11
12
 
12
13
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -32,6 +33,7 @@ function _interopNamespace(e) {
32
33
  var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
33
34
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
35
  var clsx2__default = /*#__PURE__*/_interopDefault(clsx2);
36
+ var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
35
37
 
36
38
  var __defProp = Object.defineProperty;
37
39
  var __export = (target, all) => {
@@ -20281,6 +20283,35 @@ var Heading7 = ({
20281
20283
  }
20282
20284
  );
20283
20285
  };
20286
+ var iconVariants = classVarianceAuthority.cva("", {
20287
+ variants: {
20288
+ size: {
20289
+ sm: "",
20290
+ md: "",
20291
+ lg: ""
20292
+ }
20293
+ },
20294
+ defaultVariants: {
20295
+ size: "md"
20296
+ }
20297
+ });
20298
+ function Icon2({ className, size, icon, spin, ...props }) {
20299
+ const LucideIcon2 = icons_exports[icon];
20300
+ let iconSize = 20;
20301
+ if (size == "sm") {
20302
+ iconSize = 16;
20303
+ } else if (size == "lg") {
20304
+ iconSize = 32;
20305
+ }
20306
+ return /* @__PURE__ */ jsxRuntime.jsx(
20307
+ LucideIcon2,
20308
+ {
20309
+ size: iconSize,
20310
+ className: clsx2__default.default(className, spin && "sg:animate-spin"),
20311
+ ...props
20312
+ }
20313
+ );
20314
+ }
20284
20315
  function Input({ className, type, ...props }) {
20285
20316
  return /* @__PURE__ */ jsxRuntime.jsx(
20286
20317
  "input",
@@ -20374,6 +20405,26 @@ Layout.Col1 = Col;
20374
20405
  Layout.Col2 = Col;
20375
20406
  Layout.Col3 = Col;
20376
20407
  Layout.Col4 = Col;
20408
+ function Separator({
20409
+ className,
20410
+ orientation = "horizontal",
20411
+ decorative = true,
20412
+ ...props
20413
+ }) {
20414
+ return /* @__PURE__ */ jsxRuntime.jsx(
20415
+ SeparatorPrimitive__namespace.Root,
20416
+ {
20417
+ "data-slot": "separator",
20418
+ decorative,
20419
+ orientation,
20420
+ className: cn(
20421
+ "sg:bg-border sg:shrink-0 sg:data-[orientation=horizontal]:h-px sg:data-[orientation=horizontal]:w-full sg:data-[orientation=vertical]:h-full sg:data-[orientation=vertical]:w-px",
20422
+ className
20423
+ ),
20424
+ ...props
20425
+ }
20426
+ );
20427
+ }
20377
20428
  function Skeleton({ className, ...props }) {
20378
20429
  return /* @__PURE__ */ jsxRuntime.jsx(
20379
20430
  "div",
@@ -33482,8 +33533,10 @@ exports.AlertTitle = AlertTitle;
33482
33533
  exports.Badge = Badge2;
33483
33534
  exports.Button = Button;
33484
33535
  exports.Heading = Heading7;
33536
+ exports.Icon = Icon2;
33485
33537
  exports.Input = Input;
33486
33538
  exports.Layout = Layout;
33539
+ exports.Separator = Separator;
33487
33540
  exports.Skeleton = Skeleton;
33488
33541
  exports.Spinner = Spinner;
33489
33542
  exports.Table = Table3;
@@ -33497,6 +33550,7 @@ exports.TableRow = TableRow;
33497
33550
  exports.Text = Text2;
33498
33551
  exports.badgeVariants = badgeVariants;
33499
33552
  exports.buttonVariants = buttonVariants;
33553
+ exports.iconVariants = iconVariants;
33500
33554
  exports.layoutVariants = layoutVariants;
33501
33555
  //# sourceMappingURL=main.cjs.map
33502
33556
  //# sourceMappingURL=main.cjs.map