adminium 1.0.0 → 1.0.1-beta.2
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.cjs +646 -1019
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -5
- package/dist/index.d.ts +60 -5
- package/dist/index.js +610 -1017
- package/dist/index.js.map +1 -1
- package/package.json +15 -22
- package/src/styles/global.css +0 -20
package/dist/index.d.cts
CHANGED
|
@@ -2,17 +2,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import
|
|
5
|
+
import { Avatar as Avatar$1 } from 'radix-ui';
|
|
6
6
|
import { LucideIcon } from 'lucide-react';
|
|
7
7
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import { ClassValue } from 'clsx';
|
|
9
10
|
|
|
10
11
|
declare const avatarStatusVariants: (props?: ({
|
|
11
12
|
variant?: "online" | "offline" | "busy" | "away" | null | undefined;
|
|
12
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof
|
|
14
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof
|
|
15
|
-
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof
|
|
14
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
17
18
|
declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
@@ -63,6 +64,19 @@ interface ButtonArrowProps extends React$1.SVGProps<SVGSVGElement> {
|
|
|
63
64
|
}
|
|
64
65
|
declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): react_jsx_runtime.JSX.Element;
|
|
65
66
|
|
|
67
|
+
declare const cardVariants: (props?: ({
|
|
68
|
+
variant?: "default" | "accent" | null | undefined;
|
|
69
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
70
|
+
declare function Card({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>): react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare function CardHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
72
|
+
declare function CardContent({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function CardTable({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function CardFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function CardHeading({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
76
|
+
declare function CardToolbar({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
77
|
+
declare function CardTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
78
|
+
declare function CardDescription({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
66
80
|
declare const checkboxVariants: (props?: ({
|
|
67
81
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
68
82
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -94,6 +108,47 @@ declare const Icons: {
|
|
|
94
108
|
postgresql: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
95
109
|
};
|
|
96
110
|
|
|
111
|
+
declare const inputVariants: (props?: ({
|
|
112
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
113
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
114
|
+
declare const inputAddonVariants: (props?: ({
|
|
115
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
116
|
+
mode?: "default" | "icon" | null | undefined;
|
|
117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
118
|
+
declare const inputGroupVariants: (props?: ({} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
119
|
+
declare const inputWrapperVariants: (props?: ({
|
|
120
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
121
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
122
|
+
declare function Input({ className, type, variant, ...props }: React$1.ComponentProps<"input"> & VariantProps<typeof inputVariants>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function InputAddon({ className, variant, mode, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function InputWrapper({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputWrapperVariants>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
130
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
131
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
133
|
+
inset?: boolean;
|
|
134
|
+
}): react_jsx_runtime.JSX.Element;
|
|
135
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
137
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
139
|
+
inset?: boolean;
|
|
140
|
+
variant?: "destructive";
|
|
141
|
+
}): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
145
|
+
inset?: boolean;
|
|
146
|
+
}): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
149
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
151
|
+
|
|
97
152
|
declare function useIsMobile(): boolean;
|
|
98
153
|
|
|
99
154
|
declare function useCopyToClipboard({ timeout, onCopy, }?: {
|
|
@@ -114,4 +169,4 @@ declare function useMounted(): boolean;
|
|
|
114
169
|
*/
|
|
115
170
|
declare function cn(...inputs: ClassValue[]): string;
|
|
116
171
|
|
|
117
|
-
export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Checkbox, Icons, avatarStatusVariants, badgeVariants, buttonVariants, cn, useCopyToClipboard, useIsMobile, useMounted };
|
|
172
|
+
export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, useCopyToClipboard, useIsMobile, useMounted };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,17 +2,18 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import
|
|
5
|
+
import { Avatar as Avatar$1 } from 'radix-ui';
|
|
6
6
|
import { LucideIcon } from 'lucide-react';
|
|
7
7
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import { ClassValue } from 'clsx';
|
|
9
10
|
|
|
10
11
|
declare const avatarStatusVariants: (props?: ({
|
|
11
12
|
variant?: "online" | "offline" | "busy" | "away" | null | undefined;
|
|
12
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof
|
|
14
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof
|
|
15
|
-
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof
|
|
14
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
17
18
|
declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
@@ -63,6 +64,19 @@ interface ButtonArrowProps extends React$1.SVGProps<SVGSVGElement> {
|
|
|
63
64
|
}
|
|
64
65
|
declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): react_jsx_runtime.JSX.Element;
|
|
65
66
|
|
|
67
|
+
declare const cardVariants: (props?: ({
|
|
68
|
+
variant?: "default" | "accent" | null | undefined;
|
|
69
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
70
|
+
declare function Card({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>): react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare function CardHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
72
|
+
declare function CardContent({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function CardTable({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function CardFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
75
|
+
declare function CardHeading({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
76
|
+
declare function CardToolbar({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
77
|
+
declare function CardTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
78
|
+
declare function CardDescription({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
66
80
|
declare const checkboxVariants: (props?: ({
|
|
67
81
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
68
82
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -94,6 +108,47 @@ declare const Icons: {
|
|
|
94
108
|
postgresql: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
95
109
|
};
|
|
96
110
|
|
|
111
|
+
declare const inputVariants: (props?: ({
|
|
112
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
113
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
114
|
+
declare const inputAddonVariants: (props?: ({
|
|
115
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
116
|
+
mode?: "default" | "icon" | null | undefined;
|
|
117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
118
|
+
declare const inputGroupVariants: (props?: ({} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
119
|
+
declare const inputWrapperVariants: (props?: ({
|
|
120
|
+
variant?: "lg" | "md" | "sm" | null | undefined;
|
|
121
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
122
|
+
declare function Input({ className, type, variant, ...props }: React$1.ComponentProps<"input"> & VariantProps<typeof inputVariants>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function InputAddon({ className, variant, mode, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function InputWrapper({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputWrapperVariants>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
130
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
131
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
133
|
+
inset?: boolean;
|
|
134
|
+
}): react_jsx_runtime.JSX.Element;
|
|
135
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
137
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
139
|
+
inset?: boolean;
|
|
140
|
+
variant?: "destructive";
|
|
141
|
+
}): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
145
|
+
inset?: boolean;
|
|
146
|
+
}): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
149
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
151
|
+
|
|
97
152
|
declare function useIsMobile(): boolean;
|
|
98
153
|
|
|
99
154
|
declare function useCopyToClipboard({ timeout, onCopy, }?: {
|
|
@@ -114,4 +169,4 @@ declare function useMounted(): boolean;
|
|
|
114
169
|
*/
|
|
115
170
|
declare function cn(...inputs: ClassValue[]): string;
|
|
116
171
|
|
|
117
|
-
export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Checkbox, Icons, avatarStatusVariants, badgeVariants, buttonVariants, cn, useCopyToClipboard, useIsMobile, useMounted };
|
|
172
|
+
export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, useCopyToClipboard, useIsMobile, useMounted };
|