@sikka/hawa 0.2.38 → 0.2.40-next
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/README.md +65 -65
- package/dist/index.css +1919 -0
- package/dist/index.d.mts +208 -3
- package/dist/index.d.ts +208 -3
- package/dist/index.js +1523 -0
- package/dist/index.mjs +1418 -0
- package/package.json +70 -153
- package/dist/index.cjs.js +0 -8
- package/dist/index.esm.js +0 -8
- package/dist/tailwind.css +0 -3966
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,210 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { FC, ReactNode } from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
8
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
9
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
10
|
|
|
3
|
-
declare const
|
|
11
|
+
declare const buttonVariants: (props?: ({
|
|
12
|
+
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
13
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
20
|
|
|
5
|
-
|
|
21
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
22
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
24
|
+
persist?: boolean | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const DialogHeader: {
|
|
27
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
31
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
32
|
+
declare const DialogFooter: {
|
|
33
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
clickable?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
43
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
44
|
+
declare const CardContent: React.ForwardRefExoticComponent<{
|
|
45
|
+
headless?: boolean | undefined;
|
|
46
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
|
|
49
|
+
type LoadingTypes = {
|
|
50
|
+
/** Specifies the size of the loading component.*/
|
|
51
|
+
size?: "button" | "xs" | "sm" | "normal" | "lg" | "xl";
|
|
52
|
+
/** Determines the design of the loading animation.*/
|
|
53
|
+
design?: "spinner" | "dots-bounce" | "dots-pulse" | "pulse" | "spinner-dots";
|
|
54
|
+
/** Specifies the color of the loading component. By default it will inherit the value of <span className="inline-code">--primary</span> global CSS variable*/
|
|
55
|
+
color?: string;
|
|
56
|
+
};
|
|
57
|
+
declare const Loading: FC<LoadingTypes>;
|
|
58
|
+
|
|
59
|
+
interface TBreadcrumb {
|
|
60
|
+
/** The array of crumbs, each one with a label and a href link */
|
|
61
|
+
breadcrumbLinks: {
|
|
62
|
+
label: string;
|
|
63
|
+
href: string;
|
|
64
|
+
}[];
|
|
65
|
+
/** The separator between each crumb, can be character or React Node. The default is ">" */
|
|
66
|
+
separator?: string | ReactNode;
|
|
67
|
+
}
|
|
68
|
+
declare const Breadcrumb: FC<TBreadcrumb>;
|
|
69
|
+
|
|
70
|
+
type TooltipTypes = {
|
|
71
|
+
/** Controls the open state of the tooltip. */
|
|
72
|
+
open?: any;
|
|
73
|
+
/** Specifies the side where the tooltip will appear. */
|
|
74
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
75
|
+
/** Content to be displayed within the tooltip. */
|
|
76
|
+
content?: any;
|
|
77
|
+
/** Elements to which the tooltip is anchored. */
|
|
78
|
+
children?: any;
|
|
79
|
+
/** Sets the default open state of the tooltip. */
|
|
80
|
+
defaultOpen?: any;
|
|
81
|
+
/** Event handler for open state changes. */
|
|
82
|
+
onOpenChange?: any;
|
|
83
|
+
/** Duration of the delay before the tooltip appears. */
|
|
84
|
+
delayDuration?: any;
|
|
85
|
+
};
|
|
86
|
+
declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
|
|
87
|
+
|
|
88
|
+
type CodeBlockTypes = {
|
|
89
|
+
/** Sets the theme color of the code block.*/
|
|
90
|
+
color?: "dark" | "light";
|
|
91
|
+
/** Specifies the programming language for syntax highlighting.*/
|
|
92
|
+
language?: string;
|
|
93
|
+
/** Defines the width of the code block.*/
|
|
94
|
+
width?: "full" | "md" | "sm";
|
|
95
|
+
/** Array of tabs each containing a title and code content.*/
|
|
96
|
+
tabs?: {
|
|
97
|
+
title: string;
|
|
98
|
+
code: string;
|
|
99
|
+
}[];
|
|
100
|
+
/** Name of the file being displayed. */
|
|
101
|
+
fileName?: string;
|
|
102
|
+
/** Code content to be displayed within the code block.*/
|
|
103
|
+
code?: string;
|
|
104
|
+
};
|
|
105
|
+
declare const CodeBlock: FC<CodeBlockTypes>;
|
|
106
|
+
|
|
107
|
+
type TCheckBoxTypes = {
|
|
108
|
+
id: string;
|
|
109
|
+
label?: any;
|
|
110
|
+
sublabel?: any;
|
|
111
|
+
helperText?: any;
|
|
112
|
+
};
|
|
113
|
+
type HawaCheckboxProps = TCheckBoxTypes & React.ComponentProps<typeof CheckboxElement>;
|
|
114
|
+
declare const Checkbox: React.FC<HawaCheckboxProps>;
|
|
115
|
+
declare const CheckboxElement: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
116
|
+
|
|
117
|
+
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
118
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
119
|
+
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
120
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
121
|
+
severity?: "none" | "error" | "info" | "warning" | "success" | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
123
|
+
severity?: "none" | "error" | "info" | "warning" | "success" | undefined;
|
|
124
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
125
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
126
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
127
|
+
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
128
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
131
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
132
|
+
|
|
133
|
+
type ToasterProps = {
|
|
134
|
+
direction?: "ltr" | "rtl";
|
|
135
|
+
};
|
|
136
|
+
declare function Toaster(props: ToasterProps): React__default.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
|
|
139
|
+
size?: "default" | "sm" | "lg";
|
|
140
|
+
label?: string;
|
|
141
|
+
}
|
|
142
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
143
|
+
|
|
144
|
+
type RadioTypes = {
|
|
145
|
+
orientation?: "vertical" | "horizontal";
|
|
146
|
+
design?: "default" | "tabs" | "cards" | "bordered";
|
|
147
|
+
options?: {
|
|
148
|
+
value: any;
|
|
149
|
+
label: any;
|
|
150
|
+
disabled?: any;
|
|
151
|
+
sublabel?: any;
|
|
152
|
+
icon?: any;
|
|
153
|
+
}[];
|
|
154
|
+
width?: "default" | "full";
|
|
155
|
+
onChangeTab?: any;
|
|
156
|
+
defaultValue?: any;
|
|
157
|
+
};
|
|
158
|
+
declare const Radio: FC<RadioTypes>;
|
|
159
|
+
|
|
160
|
+
type ExtendedDropdownMenuContentProps = Partial<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
161
|
+
type ExtendedDropdownMenuTriggerProps = Partial<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
162
|
+
type SubItem = {
|
|
163
|
+
label?: string;
|
|
164
|
+
value?: any;
|
|
165
|
+
icon?: any;
|
|
166
|
+
action?: () => void;
|
|
167
|
+
highlighted?: boolean;
|
|
168
|
+
disabled?: boolean;
|
|
169
|
+
};
|
|
170
|
+
type MenuItemType = {
|
|
171
|
+
icon?: any;
|
|
172
|
+
label?: string;
|
|
173
|
+
value?: any;
|
|
174
|
+
end?: any;
|
|
175
|
+
presist?: boolean;
|
|
176
|
+
type?: "separator" | "label";
|
|
177
|
+
action?: () => void;
|
|
178
|
+
highlighted?: boolean;
|
|
179
|
+
subitems?: SubItem[];
|
|
180
|
+
disabled?: boolean;
|
|
181
|
+
};
|
|
182
|
+
interface DropdownMenuProps {
|
|
183
|
+
trigger?: any;
|
|
184
|
+
items?: MenuItemType[];
|
|
185
|
+
direction?: "rtl" | "ltr";
|
|
186
|
+
className?: ExtendedDropdownMenuContentProps["className"];
|
|
187
|
+
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
188
|
+
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
189
|
+
side?: ExtendedDropdownMenuContentProps["side"];
|
|
190
|
+
align?: ExtendedDropdownMenuContentProps["align"];
|
|
191
|
+
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
192
|
+
width?: "default" | "sm" | "lg" | "parent";
|
|
193
|
+
size?: "default" | "sm";
|
|
194
|
+
onItemSelect?: any;
|
|
195
|
+
}
|
|
196
|
+
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
197
|
+
|
|
198
|
+
type ImageCardTypes = {
|
|
199
|
+
children: any;
|
|
200
|
+
align?: any;
|
|
201
|
+
bottomElement?: any;
|
|
202
|
+
inCardActions?: any;
|
|
203
|
+
cardImage?: string;
|
|
204
|
+
title?: string;
|
|
205
|
+
subtitle?: string;
|
|
206
|
+
blank?: boolean;
|
|
207
|
+
};
|
|
208
|
+
declare const ActionCard: FC<ImageCardTypes>;
|
|
209
|
+
|
|
210
|
+
export { ActionCard, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, Loading, MenuItemType, Radio, SubItem, Switch, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,210 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { FC, ReactNode } from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
8
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
9
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
10
|
|
|
3
|
-
declare const
|
|
11
|
+
declare const buttonVariants: (props?: ({
|
|
12
|
+
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
13
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
20
|
|
|
5
|
-
|
|
21
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
22
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
24
|
+
persist?: boolean | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const DialogHeader: {
|
|
27
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
31
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
32
|
+
declare const DialogFooter: {
|
|
33
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
clickable?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
43
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
44
|
+
declare const CardContent: React.ForwardRefExoticComponent<{
|
|
45
|
+
headless?: boolean | undefined;
|
|
46
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
|
|
49
|
+
type LoadingTypes = {
|
|
50
|
+
/** Specifies the size of the loading component.*/
|
|
51
|
+
size?: "button" | "xs" | "sm" | "normal" | "lg" | "xl";
|
|
52
|
+
/** Determines the design of the loading animation.*/
|
|
53
|
+
design?: "spinner" | "dots-bounce" | "dots-pulse" | "pulse" | "spinner-dots";
|
|
54
|
+
/** Specifies the color of the loading component. By default it will inherit the value of <span className="inline-code">--primary</span> global CSS variable*/
|
|
55
|
+
color?: string;
|
|
56
|
+
};
|
|
57
|
+
declare const Loading: FC<LoadingTypes>;
|
|
58
|
+
|
|
59
|
+
interface TBreadcrumb {
|
|
60
|
+
/** The array of crumbs, each one with a label and a href link */
|
|
61
|
+
breadcrumbLinks: {
|
|
62
|
+
label: string;
|
|
63
|
+
href: string;
|
|
64
|
+
}[];
|
|
65
|
+
/** The separator between each crumb, can be character or React Node. The default is ">" */
|
|
66
|
+
separator?: string | ReactNode;
|
|
67
|
+
}
|
|
68
|
+
declare const Breadcrumb: FC<TBreadcrumb>;
|
|
69
|
+
|
|
70
|
+
type TooltipTypes = {
|
|
71
|
+
/** Controls the open state of the tooltip. */
|
|
72
|
+
open?: any;
|
|
73
|
+
/** Specifies the side where the tooltip will appear. */
|
|
74
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
75
|
+
/** Content to be displayed within the tooltip. */
|
|
76
|
+
content?: any;
|
|
77
|
+
/** Elements to which the tooltip is anchored. */
|
|
78
|
+
children?: any;
|
|
79
|
+
/** Sets the default open state of the tooltip. */
|
|
80
|
+
defaultOpen?: any;
|
|
81
|
+
/** Event handler for open state changes. */
|
|
82
|
+
onOpenChange?: any;
|
|
83
|
+
/** Duration of the delay before the tooltip appears. */
|
|
84
|
+
delayDuration?: any;
|
|
85
|
+
};
|
|
86
|
+
declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
|
|
87
|
+
|
|
88
|
+
type CodeBlockTypes = {
|
|
89
|
+
/** Sets the theme color of the code block.*/
|
|
90
|
+
color?: "dark" | "light";
|
|
91
|
+
/** Specifies the programming language for syntax highlighting.*/
|
|
92
|
+
language?: string;
|
|
93
|
+
/** Defines the width of the code block.*/
|
|
94
|
+
width?: "full" | "md" | "sm";
|
|
95
|
+
/** Array of tabs each containing a title and code content.*/
|
|
96
|
+
tabs?: {
|
|
97
|
+
title: string;
|
|
98
|
+
code: string;
|
|
99
|
+
}[];
|
|
100
|
+
/** Name of the file being displayed. */
|
|
101
|
+
fileName?: string;
|
|
102
|
+
/** Code content to be displayed within the code block.*/
|
|
103
|
+
code?: string;
|
|
104
|
+
};
|
|
105
|
+
declare const CodeBlock: FC<CodeBlockTypes>;
|
|
106
|
+
|
|
107
|
+
type TCheckBoxTypes = {
|
|
108
|
+
id: string;
|
|
109
|
+
label?: any;
|
|
110
|
+
sublabel?: any;
|
|
111
|
+
helperText?: any;
|
|
112
|
+
};
|
|
113
|
+
type HawaCheckboxProps = TCheckBoxTypes & React.ComponentProps<typeof CheckboxElement>;
|
|
114
|
+
declare const Checkbox: React.FC<HawaCheckboxProps>;
|
|
115
|
+
declare const CheckboxElement: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
116
|
+
|
|
117
|
+
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
118
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
119
|
+
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
120
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
121
|
+
severity?: "none" | "error" | "info" | "warning" | "success" | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
123
|
+
severity?: "none" | "error" | "info" | "warning" | "success" | undefined;
|
|
124
|
+
direction?: "rtl" | "ltr" | undefined;
|
|
125
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
126
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
127
|
+
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
128
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
131
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
132
|
+
|
|
133
|
+
type ToasterProps = {
|
|
134
|
+
direction?: "ltr" | "rtl";
|
|
135
|
+
};
|
|
136
|
+
declare function Toaster(props: ToasterProps): React__default.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
|
|
139
|
+
size?: "default" | "sm" | "lg";
|
|
140
|
+
label?: string;
|
|
141
|
+
}
|
|
142
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
143
|
+
|
|
144
|
+
type RadioTypes = {
|
|
145
|
+
orientation?: "vertical" | "horizontal";
|
|
146
|
+
design?: "default" | "tabs" | "cards" | "bordered";
|
|
147
|
+
options?: {
|
|
148
|
+
value: any;
|
|
149
|
+
label: any;
|
|
150
|
+
disabled?: any;
|
|
151
|
+
sublabel?: any;
|
|
152
|
+
icon?: any;
|
|
153
|
+
}[];
|
|
154
|
+
width?: "default" | "full";
|
|
155
|
+
onChangeTab?: any;
|
|
156
|
+
defaultValue?: any;
|
|
157
|
+
};
|
|
158
|
+
declare const Radio: FC<RadioTypes>;
|
|
159
|
+
|
|
160
|
+
type ExtendedDropdownMenuContentProps = Partial<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
161
|
+
type ExtendedDropdownMenuTriggerProps = Partial<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
162
|
+
type SubItem = {
|
|
163
|
+
label?: string;
|
|
164
|
+
value?: any;
|
|
165
|
+
icon?: any;
|
|
166
|
+
action?: () => void;
|
|
167
|
+
highlighted?: boolean;
|
|
168
|
+
disabled?: boolean;
|
|
169
|
+
};
|
|
170
|
+
type MenuItemType = {
|
|
171
|
+
icon?: any;
|
|
172
|
+
label?: string;
|
|
173
|
+
value?: any;
|
|
174
|
+
end?: any;
|
|
175
|
+
presist?: boolean;
|
|
176
|
+
type?: "separator" | "label";
|
|
177
|
+
action?: () => void;
|
|
178
|
+
highlighted?: boolean;
|
|
179
|
+
subitems?: SubItem[];
|
|
180
|
+
disabled?: boolean;
|
|
181
|
+
};
|
|
182
|
+
interface DropdownMenuProps {
|
|
183
|
+
trigger?: any;
|
|
184
|
+
items?: MenuItemType[];
|
|
185
|
+
direction?: "rtl" | "ltr";
|
|
186
|
+
className?: ExtendedDropdownMenuContentProps["className"];
|
|
187
|
+
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
188
|
+
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
189
|
+
side?: ExtendedDropdownMenuContentProps["side"];
|
|
190
|
+
align?: ExtendedDropdownMenuContentProps["align"];
|
|
191
|
+
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
192
|
+
width?: "default" | "sm" | "lg" | "parent";
|
|
193
|
+
size?: "default" | "sm";
|
|
194
|
+
onItemSelect?: any;
|
|
195
|
+
}
|
|
196
|
+
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
197
|
+
|
|
198
|
+
type ImageCardTypes = {
|
|
199
|
+
children: any;
|
|
200
|
+
align?: any;
|
|
201
|
+
bottomElement?: any;
|
|
202
|
+
inCardActions?: any;
|
|
203
|
+
cardImage?: string;
|
|
204
|
+
title?: string;
|
|
205
|
+
subtitle?: string;
|
|
206
|
+
blank?: boolean;
|
|
207
|
+
};
|
|
208
|
+
declare const ActionCard: FC<ImageCardTypes>;
|
|
209
|
+
|
|
210
|
+
export { ActionCard, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, Loading, MenuItemType, Radio, SubItem, Switch, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|