singularity-components 0.1.88 → 0.1.90
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 +15 -3
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +2 -17
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +6 -5
- package/dist/main.d.ts +6 -5
- package/dist/main.js +15 -3
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -20259,13 +20259,22 @@ var iconVariants = classVarianceAuthority.cva("", {
|
|
|
20259
20259
|
sm: "",
|
|
20260
20260
|
md: "",
|
|
20261
20261
|
lg: ""
|
|
20262
|
+
},
|
|
20263
|
+
color: {
|
|
20264
|
+
default: "sg:text-foreground",
|
|
20265
|
+
black: "sg:text-black",
|
|
20266
|
+
white: "sg:text-white",
|
|
20267
|
+
gray: "sg:text-gray",
|
|
20268
|
+
primary: "sg:text-primary",
|
|
20269
|
+
secondary: "sg:text-secondary"
|
|
20262
20270
|
}
|
|
20263
20271
|
},
|
|
20264
20272
|
defaultVariants: {
|
|
20265
|
-
size: "md"
|
|
20273
|
+
size: "md",
|
|
20274
|
+
color: "default"
|
|
20266
20275
|
}
|
|
20267
20276
|
});
|
|
20268
|
-
function Icon2({ className, size, icon, spin, ...props }) {
|
|
20277
|
+
function Icon2({ className, size, color, icon, spin, ...props }) {
|
|
20269
20278
|
const LucideIcon2 = icons_exports[icon];
|
|
20270
20279
|
let iconSize = 20;
|
|
20271
20280
|
if (size == "sm") {
|
|
@@ -20277,7 +20286,10 @@ function Icon2({ className, size, icon, spin, ...props }) {
|
|
|
20277
20286
|
LucideIcon2,
|
|
20278
20287
|
{
|
|
20279
20288
|
size: iconSize,
|
|
20280
|
-
className:
|
|
20289
|
+
className: cn(
|
|
20290
|
+
iconVariants({ color, className }),
|
|
20291
|
+
spin && "sg:animate-spin"
|
|
20292
|
+
),
|
|
20281
20293
|
...props
|
|
20282
20294
|
}
|
|
20283
20295
|
);
|