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 +31 -0
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.cts +13 -4
- package/dist/main.d.ts +13 -4
- package/dist/main.js +30 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import React__default, { PropsWithChildren } from 'react';
|
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import { icons } from 'lucide-react';
|
|
7
|
+
import { icons, LucideIcon } from 'lucide-react';
|
|
8
8
|
|
|
9
9
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
10
10
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
@@ -29,14 +29,14 @@ declare const buttonVariants: (props?: ({
|
|
|
29
29
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
30
30
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
31
31
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
32
|
-
type Props$
|
|
32
|
+
type Props$2 = React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
33
33
|
asChild?: boolean;
|
|
34
34
|
iconStart?: keyof typeof icons;
|
|
35
35
|
iconStartAnimate?: boolean;
|
|
36
36
|
iconEnd?: keyof typeof icons;
|
|
37
37
|
iconEndAnimate?: boolean;
|
|
38
38
|
};
|
|
39
|
-
declare function Button({ className, variant, size, asChild, iconStart, iconStartAnimate, iconEnd, iconEndAnimate, children, ...props }: Props$
|
|
39
|
+
declare function Button({ className, variant, size, asChild, iconStart, iconStartAnimate, iconEnd, iconEndAnimate, children, ...props }: Props$2): react_jsx_runtime.JSX.Element;
|
|
40
40
|
|
|
41
41
|
type ValidBreakpoint = "" | "sm:" | "md:" | "lg:" | "xl:" | "2xl:";
|
|
42
42
|
type ValidMarginDirection = "m-" | "mx-" | "my-" | "mt-" | "mr-" | "mb-" | "ml-";
|
|
@@ -54,6 +54,15 @@ interface HeadingProps extends OmitClassProperty<React__default.HTMLAttributes<H
|
|
|
54
54
|
}
|
|
55
55
|
declare const Heading: React__default.FC<HeadingProps>;
|
|
56
56
|
|
|
57
|
+
declare const iconVariants: (props?: ({
|
|
58
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
59
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
|
+
type Props$1 = Omit<React$1.ComponentProps<LucideIcon>, "size"> & VariantProps<typeof iconVariants> & {
|
|
61
|
+
icon: keyof typeof icons;
|
|
62
|
+
spin?: boolean;
|
|
63
|
+
};
|
|
64
|
+
declare function Icon({ className, size, icon, spin, ...props }: Props$1): react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
57
66
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
58
67
|
|
|
59
68
|
declare const layoutVariants: (props?: ({
|
|
@@ -103,4 +112,4 @@ interface TextProps extends OmitClassProperty<React__default.HTMLAttributes<HTML
|
|
|
103
112
|
}
|
|
104
113
|
declare const Text: React__default.FC<TextProps>;
|
|
105
114
|
|
|
106
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, Button, Heading, type HeadingProps, Input, Layout, type LayoutProps, Skeleton, Spinner, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, type TextProps, badgeVariants, buttonVariants, layoutVariants };
|
|
115
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, Button, Heading, type HeadingProps, Icon, Input, Layout, type LayoutProps, Skeleton, Spinner, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, type TextProps, badgeVariants, buttonVariants, iconVariants, layoutVariants };
|
package/dist/main.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import React__default, { PropsWithChildren } from 'react';
|
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import { icons } from 'lucide-react';
|
|
7
|
+
import { icons, LucideIcon } from 'lucide-react';
|
|
8
8
|
|
|
9
9
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
10
10
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
@@ -29,14 +29,14 @@ declare const buttonVariants: (props?: ({
|
|
|
29
29
|
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
30
30
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
31
31
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
32
|
-
type Props$
|
|
32
|
+
type Props$2 = React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
33
33
|
asChild?: boolean;
|
|
34
34
|
iconStart?: keyof typeof icons;
|
|
35
35
|
iconStartAnimate?: boolean;
|
|
36
36
|
iconEnd?: keyof typeof icons;
|
|
37
37
|
iconEndAnimate?: boolean;
|
|
38
38
|
};
|
|
39
|
-
declare function Button({ className, variant, size, asChild, iconStart, iconStartAnimate, iconEnd, iconEndAnimate, children, ...props }: Props$
|
|
39
|
+
declare function Button({ className, variant, size, asChild, iconStart, iconStartAnimate, iconEnd, iconEndAnimate, children, ...props }: Props$2): react_jsx_runtime.JSX.Element;
|
|
40
40
|
|
|
41
41
|
type ValidBreakpoint = "" | "sm:" | "md:" | "lg:" | "xl:" | "2xl:";
|
|
42
42
|
type ValidMarginDirection = "m-" | "mx-" | "my-" | "mt-" | "mr-" | "mb-" | "ml-";
|
|
@@ -54,6 +54,15 @@ interface HeadingProps extends OmitClassProperty<React__default.HTMLAttributes<H
|
|
|
54
54
|
}
|
|
55
55
|
declare const Heading: React__default.FC<HeadingProps>;
|
|
56
56
|
|
|
57
|
+
declare const iconVariants: (props?: ({
|
|
58
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
59
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
|
+
type Props$1 = Omit<React$1.ComponentProps<LucideIcon>, "size"> & VariantProps<typeof iconVariants> & {
|
|
61
|
+
icon: keyof typeof icons;
|
|
62
|
+
spin?: boolean;
|
|
63
|
+
};
|
|
64
|
+
declare function Icon({ className, size, icon, spin, ...props }: Props$1): react_jsx_runtime.JSX.Element;
|
|
65
|
+
|
|
57
66
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
58
67
|
|
|
59
68
|
declare const layoutVariants: (props?: ({
|
|
@@ -103,4 +112,4 @@ interface TextProps extends OmitClassProperty<React__default.HTMLAttributes<HTML
|
|
|
103
112
|
}
|
|
104
113
|
declare const Text: React__default.FC<TextProps>;
|
|
105
114
|
|
|
106
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, Button, Heading, type HeadingProps, Input, Layout, type LayoutProps, Skeleton, Spinner, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, type TextProps, badgeVariants, buttonVariants, layoutVariants };
|
|
115
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, Button, Heading, type HeadingProps, Icon, Input, Layout, type LayoutProps, Skeleton, Spinner, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text, type TextProps, badgeVariants, buttonVariants, iconVariants, layoutVariants };
|
package/dist/main.js
CHANGED
|
@@ -20256,6 +20256,35 @@ var Heading7 = ({
|
|
|
20256
20256
|
}
|
|
20257
20257
|
);
|
|
20258
20258
|
};
|
|
20259
|
+
var iconVariants = cva("", {
|
|
20260
|
+
variants: {
|
|
20261
|
+
size: {
|
|
20262
|
+
sm: "",
|
|
20263
|
+
md: "",
|
|
20264
|
+
lg: ""
|
|
20265
|
+
}
|
|
20266
|
+
},
|
|
20267
|
+
defaultVariants: {
|
|
20268
|
+
size: "md"
|
|
20269
|
+
}
|
|
20270
|
+
});
|
|
20271
|
+
function Icon2({ className, size, icon, spin, ...props }) {
|
|
20272
|
+
const LucideIcon2 = icons_exports[icon];
|
|
20273
|
+
let iconSize = 20;
|
|
20274
|
+
if (size == "sm") {
|
|
20275
|
+
iconSize = 16;
|
|
20276
|
+
} else if (size == "lg") {
|
|
20277
|
+
iconSize = 32;
|
|
20278
|
+
}
|
|
20279
|
+
return /* @__PURE__ */ jsx(
|
|
20280
|
+
LucideIcon2,
|
|
20281
|
+
{
|
|
20282
|
+
size: iconSize,
|
|
20283
|
+
className: clsx2(className, spin && "sg:animate-spin"),
|
|
20284
|
+
...props
|
|
20285
|
+
}
|
|
20286
|
+
);
|
|
20287
|
+
}
|
|
20259
20288
|
function Input({ className, type, ...props }) {
|
|
20260
20289
|
return /* @__PURE__ */ jsx(
|
|
20261
20290
|
"input",
|
|
@@ -33447,6 +33476,6 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
33447
33476
|
*)
|
|
33448
33477
|
*/
|
|
33449
33478
|
|
|
33450
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge2 as Badge, Button, Heading7 as Heading, Input, Layout, Skeleton, Spinner, Table3 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text2 as Text, badgeVariants, buttonVariants, layoutVariants };
|
|
33479
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge2 as Badge, Button, Heading7 as Heading, Icon2 as Icon, Input, Layout, Skeleton, Spinner, Table3 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Text2 as Text, badgeVariants, buttonVariants, iconVariants, layoutVariants };
|
|
33451
33480
|
//# sourceMappingURL=main.js.map
|
|
33452
33481
|
//# sourceMappingURL=main.js.map
|