@me1a/ui 2.0.4 → 2.0.5
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/index.d.mts +10 -14
- package/dist/index.d.ts +10 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -16,8 +16,6 @@ import { Drawer as Drawer$1 } from 'vaul';
|
|
|
16
16
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
17
17
|
import { ClassValue } from 'clsx';
|
|
18
18
|
|
|
19
|
-
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
20
|
-
type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
21
19
|
/**
|
|
22
20
|
* Props interface for the Button component.
|
|
23
21
|
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
@@ -39,8 +37,6 @@ type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
|
39
37
|
*/
|
|
40
38
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
39
|
asChild?: boolean;
|
|
42
|
-
variant?: ButtonVariant;
|
|
43
|
-
size?: ButtonSize;
|
|
44
40
|
startIcon?: React$1.ReactNode;
|
|
45
41
|
endIcon?: React$1.ReactNode;
|
|
46
42
|
loading?: boolean;
|
|
@@ -61,7 +57,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
61
57
|
declare const buttonVariants: (props?: ({
|
|
62
58
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
63
59
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
64
|
-
} &
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
61
|
/**
|
|
66
62
|
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
67
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
@@ -129,7 +125,7 @@ interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
|
|
|
129
125
|
declare const textFieldVariants: (props?: ({
|
|
130
126
|
variant?: "default" | "error" | null | undefined;
|
|
131
127
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
132
|
-
} &
|
|
128
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
133
129
|
/**
|
|
134
130
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
135
131
|
* Built on top of shadcn/ui's Input component.
|
|
@@ -372,7 +368,7 @@ declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
|
372
368
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
369
|
declare const sheetVariants: (props?: ({
|
|
374
370
|
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
375
|
-
} &
|
|
371
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
376
372
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
377
373
|
}
|
|
378
374
|
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -425,7 +421,7 @@ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrim
|
|
|
425
421
|
declare const badgeVariants: (props?: ({
|
|
426
422
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
427
423
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
428
|
-
} &
|
|
424
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
429
425
|
|
|
430
426
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
431
427
|
/**
|
|
@@ -572,7 +568,7 @@ declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps &
|
|
|
572
568
|
declare const typographyVariants: (props?: ({
|
|
573
569
|
variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
|
|
574
570
|
align?: "center" | "left" | "right" | "justify" | null | undefined;
|
|
575
|
-
} &
|
|
571
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
576
572
|
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
577
573
|
as?: React$1.ElementType;
|
|
578
574
|
}
|
|
@@ -650,7 +646,7 @@ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribut
|
|
|
650
646
|
|
|
651
647
|
declare const navigationMenuTriggerStyle: (props?: ({
|
|
652
648
|
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
653
|
-
} &
|
|
649
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
654
650
|
|
|
655
651
|
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
656
652
|
/**
|
|
@@ -888,7 +884,7 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.De
|
|
|
888
884
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
889
885
|
variant?: "default" | "outline" | null | undefined;
|
|
890
886
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
891
|
-
} &
|
|
887
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
892
888
|
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
893
889
|
asChild?: boolean;
|
|
894
890
|
isActive?: boolean;
|
|
@@ -896,7 +892,7 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
896
892
|
} & VariantProps<(props?: ({
|
|
897
893
|
variant?: "default" | "outline" | null | undefined;
|
|
898
894
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
899
|
-
} &
|
|
895
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
900
896
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
901
897
|
asChild?: boolean;
|
|
902
898
|
showOnHover?: boolean;
|
|
@@ -984,7 +980,7 @@ declare const DropdownMenuShortcut: {
|
|
|
984
980
|
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
985
981
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
986
982
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
987
|
-
} &
|
|
983
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
988
984
|
|
|
989
985
|
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
990
986
|
interface DropdownMenuProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -16,8 +16,6 @@ import { Drawer as Drawer$1 } from 'vaul';
|
|
|
16
16
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
17
17
|
import { ClassValue } from 'clsx';
|
|
18
18
|
|
|
19
|
-
type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
20
|
-
type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
21
19
|
/**
|
|
22
20
|
* Props interface for the Button component.
|
|
23
21
|
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
@@ -39,8 +37,6 @@ type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
|
39
37
|
*/
|
|
40
38
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
39
|
asChild?: boolean;
|
|
42
|
-
variant?: ButtonVariant;
|
|
43
|
-
size?: ButtonSize;
|
|
44
40
|
startIcon?: React$1.ReactNode;
|
|
45
41
|
endIcon?: React$1.ReactNode;
|
|
46
42
|
loading?: boolean;
|
|
@@ -61,7 +57,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
61
57
|
declare const buttonVariants: (props?: ({
|
|
62
58
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
63
59
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
64
|
-
} &
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
61
|
/**
|
|
66
62
|
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
67
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
@@ -129,7 +125,7 @@ interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
|
|
|
129
125
|
declare const textFieldVariants: (props?: ({
|
|
130
126
|
variant?: "default" | "error" | null | undefined;
|
|
131
127
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
132
|
-
} &
|
|
128
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
133
129
|
/**
|
|
134
130
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
135
131
|
* Built on top of shadcn/ui's Input component.
|
|
@@ -372,7 +368,7 @@ declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
|
372
368
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
369
|
declare const sheetVariants: (props?: ({
|
|
374
370
|
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
375
|
-
} &
|
|
371
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
376
372
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
377
373
|
}
|
|
378
374
|
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -425,7 +421,7 @@ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrim
|
|
|
425
421
|
declare const badgeVariants: (props?: ({
|
|
426
422
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
427
423
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
428
|
-
} &
|
|
424
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
429
425
|
|
|
430
426
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
431
427
|
/**
|
|
@@ -572,7 +568,7 @@ declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps &
|
|
|
572
568
|
declare const typographyVariants: (props?: ({
|
|
573
569
|
variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
|
|
574
570
|
align?: "center" | "left" | "right" | "justify" | null | undefined;
|
|
575
|
-
} &
|
|
571
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
576
572
|
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
577
573
|
as?: React$1.ElementType;
|
|
578
574
|
}
|
|
@@ -650,7 +646,7 @@ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribut
|
|
|
650
646
|
|
|
651
647
|
declare const navigationMenuTriggerStyle: (props?: ({
|
|
652
648
|
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
653
|
-
} &
|
|
649
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
654
650
|
|
|
655
651
|
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
656
652
|
/**
|
|
@@ -888,7 +884,7 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.De
|
|
|
888
884
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
889
885
|
variant?: "default" | "outline" | null | undefined;
|
|
890
886
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
891
|
-
} &
|
|
887
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
892
888
|
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
893
889
|
asChild?: boolean;
|
|
894
890
|
isActive?: boolean;
|
|
@@ -896,7 +892,7 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
896
892
|
} & VariantProps<(props?: ({
|
|
897
893
|
variant?: "default" | "outline" | null | undefined;
|
|
898
894
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
899
|
-
} &
|
|
895
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
900
896
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
901
897
|
asChild?: boolean;
|
|
902
898
|
showOnHover?: boolean;
|
|
@@ -984,7 +980,7 @@ declare const DropdownMenuShortcut: {
|
|
|
984
980
|
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
985
981
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
986
982
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
987
|
-
} &
|
|
983
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
988
984
|
|
|
989
985
|
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
990
986
|
interface DropdownMenuProps {
|