@raydenui/ui 0.1.0
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 +4477 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +206 -0
- package/dist/index.d.ts +206 -0
- package/dist/index.js +4457 -0
- package/dist/index.js.map +1 -0
- package/dist/preset.cjs +186 -0
- package/dist/preset.cjs.map +1 -0
- package/dist/preset.d.cts +284 -0
- package/dist/preset.d.ts +284 -0
- package/dist/preset.js +179 -0
- package/dist/preset.js.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +76 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
type ButtonVariant = "primary" | "secondary" | "grey" | "destructive" | "text" | "success" | "warning" | "info";
|
|
7
|
+
type ButtonAppearance = "solid" | "outlined";
|
|
8
|
+
type ButtonSize = "sm" | "lg";
|
|
9
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
+
variant?: ButtonVariant;
|
|
11
|
+
appearance?: ButtonAppearance;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
iconPosition?: "none" | "leading" | "trailing" | "icon-only";
|
|
15
|
+
}
|
|
16
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
|
|
18
|
+
interface ButtonGroupProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function ButtonGroup({ children, className }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface ButtonGroupItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
25
|
+
leadingIcon?: ReactNode;
|
|
26
|
+
trailingIcon?: ReactNode;
|
|
27
|
+
active?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const ButtonGroupItem: react.ForwardRefExoticComponent<ButtonGroupItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
|
|
31
|
+
type InputSize = "sm" | "lg";
|
|
32
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
33
|
+
/** Input size variant */
|
|
34
|
+
size?: InputSize;
|
|
35
|
+
/** Label text above the input */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Helper text below the input */
|
|
38
|
+
helperText?: string;
|
|
39
|
+
/** Error message or boolean. Overrides helperText styling. */
|
|
40
|
+
error?: string | boolean;
|
|
41
|
+
/** Success message or boolean. Overrides helperText styling. */
|
|
42
|
+
success?: string | boolean;
|
|
43
|
+
/** Icon on the left side of the input */
|
|
44
|
+
leadingIcon?: ReactNode;
|
|
45
|
+
/** Icon on the right side of the input */
|
|
46
|
+
trailingIcon?: ReactNode;
|
|
47
|
+
/** Text addon on the right side */
|
|
48
|
+
addonRight?: string;
|
|
49
|
+
/** Wrapper className */
|
|
50
|
+
wrapperClassName?: string;
|
|
51
|
+
}
|
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
53
|
+
|
|
54
|
+
type TabsVariant = "line" | "pill";
|
|
55
|
+
interface TabsProps {
|
|
56
|
+
variant?: TabsVariant;
|
|
57
|
+
value?: string;
|
|
58
|
+
defaultValue?: string;
|
|
59
|
+
onValueChange?: (value: string) => void;
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
declare function Tabs({ variant, value, defaultValue, onValueChange, children, className, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
interface TabProps {
|
|
66
|
+
value: string;
|
|
67
|
+
icon?: ReactNode;
|
|
68
|
+
badge?: number | string;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function Tab({ value, icon, badge, disabled, children, className, }: TabProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
interface ChipProps extends HTMLAttributes<HTMLDivElement> {
|
|
76
|
+
variant?: "input" | "filter";
|
|
77
|
+
icon?: ReactNode;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
onClose?: () => void;
|
|
80
|
+
onDropdown?: () => void;
|
|
81
|
+
}
|
|
82
|
+
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
|
|
84
|
+
type ProgressBarSize = "sm" | "lg";
|
|
85
|
+
interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
86
|
+
value?: number;
|
|
87
|
+
size?: ProgressBarSize;
|
|
88
|
+
label?: string;
|
|
89
|
+
metadata?: string;
|
|
90
|
+
showPercentage?: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare function ProgressBar({ value, size, label, metadata, showPercentage, className, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
type ProgressCircleSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
95
|
+
interface ProgressCircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
96
|
+
value?: number;
|
|
97
|
+
size?: ProgressCircleSize;
|
|
98
|
+
showText?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare function ProgressCircle({ value, size, showText, className, ...rest }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
|
|
101
|
+
|
|
102
|
+
type BadgeColor = "orange" | "blue" | "success" | "warning" | "error" | "neutral" | "disabled";
|
|
103
|
+
type BadgeType = "filled" | "accent" | "outline";
|
|
104
|
+
type BadgeSize = "sm" | "md" | "lg";
|
|
105
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
106
|
+
color?: BadgeColor;
|
|
107
|
+
type?: BadgeType;
|
|
108
|
+
size?: BadgeSize;
|
|
109
|
+
leadingIcon?: ReactNode;
|
|
110
|
+
trailingIcon?: ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function Badge({ color, type, size, leadingIcon, trailingIcon, className, children, ...rest }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
type AlertVariant = "toast" | "banner";
|
|
115
|
+
type AlertState = "information" | "success" | "warning" | "error";
|
|
116
|
+
interface AlertAction {
|
|
117
|
+
label: string;
|
|
118
|
+
onClick: () => void;
|
|
119
|
+
}
|
|
120
|
+
interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
121
|
+
variant?: AlertVariant;
|
|
122
|
+
state?: AlertState;
|
|
123
|
+
title?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
showIcon?: boolean;
|
|
127
|
+
onClose?: () => void;
|
|
128
|
+
primaryAction?: AlertAction;
|
|
129
|
+
secondaryAction?: AlertAction;
|
|
130
|
+
}
|
|
131
|
+
declare function Alert({ variant, state, title, description, icon, showIcon, onClose, primaryAction, secondaryAction, className, ...rest }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
type DividerVariant = "default" | "with-icon" | "with-label" | "with-title" | "with-button" | "with-title-and-button";
|
|
134
|
+
interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
135
|
+
variant?: DividerVariant;
|
|
136
|
+
label?: string;
|
|
137
|
+
icon?: ReactNode;
|
|
138
|
+
buttonLabel?: string;
|
|
139
|
+
buttonIcon?: ReactNode;
|
|
140
|
+
onButtonClick?: () => void;
|
|
141
|
+
}
|
|
142
|
+
declare function Divider({ variant, label, icon, buttonLabel, buttonIcon, onButtonClick, className, ...rest }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
144
|
+
type TooltipPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-top" | "left-center" | "left-bottom" | "right-top" | "right-center" | "right-bottom";
|
|
145
|
+
type TooltipTheme = "light" | "dark";
|
|
146
|
+
interface TooltipAction {
|
|
147
|
+
label: string;
|
|
148
|
+
onClick: () => void;
|
|
149
|
+
}
|
|
150
|
+
interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
151
|
+
theme?: TooltipTheme;
|
|
152
|
+
position?: TooltipPosition;
|
|
153
|
+
title?: string;
|
|
154
|
+
content: string;
|
|
155
|
+
onClose?: () => void;
|
|
156
|
+
primaryAction?: TooltipAction;
|
|
157
|
+
secondaryAction?: TooltipAction;
|
|
158
|
+
}
|
|
159
|
+
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
160
|
+
|
|
161
|
+
interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
162
|
+
currentPage: number;
|
|
163
|
+
totalPages: number;
|
|
164
|
+
onPageChange: (page: number) => void;
|
|
165
|
+
showPrevNext?: boolean;
|
|
166
|
+
siblingCount?: number;
|
|
167
|
+
}
|
|
168
|
+
declare function Pagination({ currentPage, totalPages, onPageChange, showPrevNext, siblingCount, className, ...rest }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
171
|
+
label?: string;
|
|
172
|
+
description?: string;
|
|
173
|
+
position?: "left" | "right";
|
|
174
|
+
}
|
|
175
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
176
|
+
|
|
177
|
+
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
178
|
+
label?: string;
|
|
179
|
+
description?: string;
|
|
180
|
+
position?: "left" | "right";
|
|
181
|
+
}
|
|
182
|
+
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
183
|
+
|
|
184
|
+
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
185
|
+
label?: string;
|
|
186
|
+
description?: string;
|
|
187
|
+
position?: "left" | "right";
|
|
188
|
+
}
|
|
189
|
+
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLInputElement>>;
|
|
190
|
+
|
|
191
|
+
interface BreadcrumbItem {
|
|
192
|
+
label: string;
|
|
193
|
+
href?: string;
|
|
194
|
+
icon?: ReactNode;
|
|
195
|
+
disabled?: boolean;
|
|
196
|
+
active?: boolean;
|
|
197
|
+
}
|
|
198
|
+
interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
199
|
+
items: BreadcrumbItem[];
|
|
200
|
+
separator?: ReactNode;
|
|
201
|
+
}
|
|
202
|
+
declare function Breadcrumb({ items, separator, className, ...rest }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
203
|
+
|
|
204
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
205
|
+
|
|
206
|
+
export { Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, Input, type InputProps, type InputSize, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Radio, type RadioProps, Tab, type TabProps, Tabs, type TabsProps, type TabsVariant, Toggle, type ToggleProps, Tooltip, type TooltipAction, type TooltipPosition, type TooltipProps, type TooltipTheme, cn };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
type ButtonVariant = "primary" | "secondary" | "grey" | "destructive" | "text" | "success" | "warning" | "info";
|
|
7
|
+
type ButtonAppearance = "solid" | "outlined";
|
|
8
|
+
type ButtonSize = "sm" | "lg";
|
|
9
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
+
variant?: ButtonVariant;
|
|
11
|
+
appearance?: ButtonAppearance;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
iconPosition?: "none" | "leading" | "trailing" | "icon-only";
|
|
15
|
+
}
|
|
16
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
|
|
18
|
+
interface ButtonGroupProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function ButtonGroup({ children, className }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface ButtonGroupItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
25
|
+
leadingIcon?: ReactNode;
|
|
26
|
+
trailingIcon?: ReactNode;
|
|
27
|
+
active?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const ButtonGroupItem: react.ForwardRefExoticComponent<ButtonGroupItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
|
|
31
|
+
type InputSize = "sm" | "lg";
|
|
32
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
33
|
+
/** Input size variant */
|
|
34
|
+
size?: InputSize;
|
|
35
|
+
/** Label text above the input */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Helper text below the input */
|
|
38
|
+
helperText?: string;
|
|
39
|
+
/** Error message or boolean. Overrides helperText styling. */
|
|
40
|
+
error?: string | boolean;
|
|
41
|
+
/** Success message or boolean. Overrides helperText styling. */
|
|
42
|
+
success?: string | boolean;
|
|
43
|
+
/** Icon on the left side of the input */
|
|
44
|
+
leadingIcon?: ReactNode;
|
|
45
|
+
/** Icon on the right side of the input */
|
|
46
|
+
trailingIcon?: ReactNode;
|
|
47
|
+
/** Text addon on the right side */
|
|
48
|
+
addonRight?: string;
|
|
49
|
+
/** Wrapper className */
|
|
50
|
+
wrapperClassName?: string;
|
|
51
|
+
}
|
|
52
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
53
|
+
|
|
54
|
+
type TabsVariant = "line" | "pill";
|
|
55
|
+
interface TabsProps {
|
|
56
|
+
variant?: TabsVariant;
|
|
57
|
+
value?: string;
|
|
58
|
+
defaultValue?: string;
|
|
59
|
+
onValueChange?: (value: string) => void;
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
declare function Tabs({ variant, value, defaultValue, onValueChange, children, className, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
interface TabProps {
|
|
66
|
+
value: string;
|
|
67
|
+
icon?: ReactNode;
|
|
68
|
+
badge?: number | string;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function Tab({ value, icon, badge, disabled, children, className, }: TabProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
interface ChipProps extends HTMLAttributes<HTMLDivElement> {
|
|
76
|
+
variant?: "input" | "filter";
|
|
77
|
+
icon?: ReactNode;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
onClose?: () => void;
|
|
80
|
+
onDropdown?: () => void;
|
|
81
|
+
}
|
|
82
|
+
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
|
|
84
|
+
type ProgressBarSize = "sm" | "lg";
|
|
85
|
+
interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
86
|
+
value?: number;
|
|
87
|
+
size?: ProgressBarSize;
|
|
88
|
+
label?: string;
|
|
89
|
+
metadata?: string;
|
|
90
|
+
showPercentage?: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare function ProgressBar({ value, size, label, metadata, showPercentage, className, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
type ProgressCircleSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
95
|
+
interface ProgressCircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
96
|
+
value?: number;
|
|
97
|
+
size?: ProgressCircleSize;
|
|
98
|
+
showText?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare function ProgressCircle({ value, size, showText, className, ...rest }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
|
|
101
|
+
|
|
102
|
+
type BadgeColor = "orange" | "blue" | "success" | "warning" | "error" | "neutral" | "disabled";
|
|
103
|
+
type BadgeType = "filled" | "accent" | "outline";
|
|
104
|
+
type BadgeSize = "sm" | "md" | "lg";
|
|
105
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
106
|
+
color?: BadgeColor;
|
|
107
|
+
type?: BadgeType;
|
|
108
|
+
size?: BadgeSize;
|
|
109
|
+
leadingIcon?: ReactNode;
|
|
110
|
+
trailingIcon?: ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function Badge({ color, type, size, leadingIcon, trailingIcon, className, children, ...rest }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
type AlertVariant = "toast" | "banner";
|
|
115
|
+
type AlertState = "information" | "success" | "warning" | "error";
|
|
116
|
+
interface AlertAction {
|
|
117
|
+
label: string;
|
|
118
|
+
onClick: () => void;
|
|
119
|
+
}
|
|
120
|
+
interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
121
|
+
variant?: AlertVariant;
|
|
122
|
+
state?: AlertState;
|
|
123
|
+
title?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
showIcon?: boolean;
|
|
127
|
+
onClose?: () => void;
|
|
128
|
+
primaryAction?: AlertAction;
|
|
129
|
+
secondaryAction?: AlertAction;
|
|
130
|
+
}
|
|
131
|
+
declare function Alert({ variant, state, title, description, icon, showIcon, onClose, primaryAction, secondaryAction, className, ...rest }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
type DividerVariant = "default" | "with-icon" | "with-label" | "with-title" | "with-button" | "with-title-and-button";
|
|
134
|
+
interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
135
|
+
variant?: DividerVariant;
|
|
136
|
+
label?: string;
|
|
137
|
+
icon?: ReactNode;
|
|
138
|
+
buttonLabel?: string;
|
|
139
|
+
buttonIcon?: ReactNode;
|
|
140
|
+
onButtonClick?: () => void;
|
|
141
|
+
}
|
|
142
|
+
declare function Divider({ variant, label, icon, buttonLabel, buttonIcon, onButtonClick, className, ...rest }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
144
|
+
type TooltipPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-top" | "left-center" | "left-bottom" | "right-top" | "right-center" | "right-bottom";
|
|
145
|
+
type TooltipTheme = "light" | "dark";
|
|
146
|
+
interface TooltipAction {
|
|
147
|
+
label: string;
|
|
148
|
+
onClick: () => void;
|
|
149
|
+
}
|
|
150
|
+
interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
151
|
+
theme?: TooltipTheme;
|
|
152
|
+
position?: TooltipPosition;
|
|
153
|
+
title?: string;
|
|
154
|
+
content: string;
|
|
155
|
+
onClose?: () => void;
|
|
156
|
+
primaryAction?: TooltipAction;
|
|
157
|
+
secondaryAction?: TooltipAction;
|
|
158
|
+
}
|
|
159
|
+
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
160
|
+
|
|
161
|
+
interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
162
|
+
currentPage: number;
|
|
163
|
+
totalPages: number;
|
|
164
|
+
onPageChange: (page: number) => void;
|
|
165
|
+
showPrevNext?: boolean;
|
|
166
|
+
siblingCount?: number;
|
|
167
|
+
}
|
|
168
|
+
declare function Pagination({ currentPage, totalPages, onPageChange, showPrevNext, siblingCount, className, ...rest }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
171
|
+
label?: string;
|
|
172
|
+
description?: string;
|
|
173
|
+
position?: "left" | "right";
|
|
174
|
+
}
|
|
175
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
176
|
+
|
|
177
|
+
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
178
|
+
label?: string;
|
|
179
|
+
description?: string;
|
|
180
|
+
position?: "left" | "right";
|
|
181
|
+
}
|
|
182
|
+
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
183
|
+
|
|
184
|
+
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
185
|
+
label?: string;
|
|
186
|
+
description?: string;
|
|
187
|
+
position?: "left" | "right";
|
|
188
|
+
}
|
|
189
|
+
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLInputElement>>;
|
|
190
|
+
|
|
191
|
+
interface BreadcrumbItem {
|
|
192
|
+
label: string;
|
|
193
|
+
href?: string;
|
|
194
|
+
icon?: ReactNode;
|
|
195
|
+
disabled?: boolean;
|
|
196
|
+
active?: boolean;
|
|
197
|
+
}
|
|
198
|
+
interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
199
|
+
items: BreadcrumbItem[];
|
|
200
|
+
separator?: ReactNode;
|
|
201
|
+
}
|
|
202
|
+
declare function Breadcrumb({ items, separator, className, ...rest }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
203
|
+
|
|
204
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
205
|
+
|
|
206
|
+
export { Alert, type AlertAction, type AlertProps, type AlertState, type AlertVariant, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, Divider, type DividerProps, type DividerVariant, Input, type InputProps, type InputSize, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Radio, type RadioProps, Tab, type TabProps, Tabs, type TabsProps, type TabsVariant, Toggle, type ToggleProps, Tooltip, type TooltipAction, type TooltipPosition, type TooltipProps, type TooltipTheme, cn };
|