singularity-components 0.1.76 → 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.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$1 = React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
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$1): react_jsx_runtime.JSX.Element;
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$1 = React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
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$1): react_jsx_runtime.JSX.Element;
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 };