@tanishraj/ui-kit 2.4.1 → 2.5.3
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/globals.css +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +612 -111
- package/dist/index.es.js +152 -100
- package/dist/index.es.js.map +1 -1
- package/package.json +27 -24
- package/readme.md +164 -539
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActionMeta } from 'react-select';
|
|
2
|
+
import { AsyncCreatableProps } from 'react-select/async-creatable';
|
|
3
|
+
import { AsyncProps } from 'react-select/async';
|
|
2
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
5
|
import { ClassValue } from 'clsx';
|
|
6
|
+
import { ComponentProps } from 'react';
|
|
4
7
|
import { ComponentPropsWithoutRef } from 'react';
|
|
5
8
|
import { ComponentPropsWithRef } from 'react';
|
|
9
|
+
import { ComponentType } from 'react';
|
|
10
|
+
import { CreatableProps } from 'react-select/creatable';
|
|
11
|
+
import { DayPickerProps } from 'react-day-picker';
|
|
12
|
+
import { default as default_2 } from 'react-select';
|
|
13
|
+
import { DetailedHTMLProps } from 'react';
|
|
6
14
|
import { FC } from 'react';
|
|
7
15
|
import { FieldsetHTMLAttributes } from 'react';
|
|
8
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { GroupBase } from 'react-select';
|
|
9
18
|
import { HTMLAttributes } from 'react';
|
|
19
|
+
import { ITooltip } from 'react-tooltip';
|
|
20
|
+
import { JSX } from 'react';
|
|
21
|
+
import { JSXElementConstructor } from 'react';
|
|
22
|
+
import { Key } from 'react';
|
|
10
23
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
24
|
+
import { LabelHTMLAttributes } from 'react';
|
|
11
25
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
26
|
+
import { MouseEventHandler } from 'react';
|
|
27
|
+
import { MultiValue } from 'react-select';
|
|
28
|
+
import { Options } from 'react-select';
|
|
12
29
|
import { Placement } from '@floating-ui/react';
|
|
13
30
|
import { ReactElement } from 'react';
|
|
14
31
|
import { ReactNode } from 'react';
|
|
15
32
|
import { Ref } from 'react';
|
|
16
33
|
import { RefAttributes } from 'react';
|
|
17
34
|
import { RefObject } from 'react';
|
|
18
|
-
import {
|
|
35
|
+
import { SelectInstance } from 'react-select';
|
|
19
36
|
import { SVGProps } from 'react';
|
|
20
37
|
import { ToasterProps } from 'sonner';
|
|
38
|
+
import { TooltipRefProps } from 'react-tooltip';
|
|
21
39
|
import { VariantProps } from 'class-variance-authority';
|
|
22
40
|
|
|
23
41
|
export declare const Accordion: FC<AccordionProps>;
|
|
@@ -29,7 +47,7 @@ export declare interface AccordionItem {
|
|
|
29
47
|
disabled?: boolean;
|
|
30
48
|
}
|
|
31
49
|
|
|
32
|
-
export declare interface AccordionProps extends ComponentPropsWithRef<'div'>,
|
|
50
|
+
export declare interface AccordionProps extends ComponentPropsWithRef<'div'>, RemoveNull<VariantProps<typeof accordionRootStyles>> {
|
|
33
51
|
items: AccordionItem[];
|
|
34
52
|
type?: AccordionType;
|
|
35
53
|
value?: string | string[];
|
|
@@ -42,24 +60,27 @@ declare const accordionRootStyles: (props?: ({
|
|
|
42
60
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
43
61
|
} & ClassProp) | undefined) => string;
|
|
44
62
|
|
|
45
|
-
export declare type AccordionSizes =
|
|
63
|
+
export declare type AccordionSizes = RemoveNull<VariantProps<typeof accordionRootStyles>>['size'];
|
|
46
64
|
|
|
47
65
|
export declare type AccordionType = 'single' | 'multiple';
|
|
48
66
|
|
|
49
|
-
export declare
|
|
67
|
+
export declare function Alert({ variant, appearance, size, inverted, title, icon: Icon, children, onClose, closeLabel, className, role, ...restProps }: AlertProps): JSX.Element;
|
|
50
68
|
|
|
51
|
-
export declare type AlertAppearances =
|
|
69
|
+
export declare type AlertAppearances = RemoveNull<VariantProps<typeof alertWrapperStyles>>['appearance'];
|
|
52
70
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
declare type AlertIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
72
|
+
|
|
73
|
+
export declare interface AlertProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'>, RemoveNull<VariantProps<typeof alertWrapperStyles>> {
|
|
74
|
+
title?: ReactNode;
|
|
75
|
+
icon?: AlertIcon;
|
|
56
76
|
children?: ReactNode;
|
|
57
77
|
onClose?: () => void;
|
|
78
|
+
closeLabel?: string;
|
|
58
79
|
}
|
|
59
80
|
|
|
60
|
-
export declare type AlertSizes =
|
|
81
|
+
export declare type AlertSizes = RemoveNull<VariantProps<typeof alertWrapperStyles>>['size'];
|
|
61
82
|
|
|
62
|
-
export declare type AlertVariants =
|
|
83
|
+
export declare type AlertVariants = RemoveNull<VariantProps<typeof alertWrapperStyles>>['variant'];
|
|
63
84
|
|
|
64
85
|
declare const alertWrapperStyles: (props?: ({
|
|
65
86
|
appearance?: "filled" | "outline" | "dashed" | null | undefined;
|
|
@@ -68,16 +89,24 @@ declare const alertWrapperStyles: (props?: ({
|
|
|
68
89
|
inverted?: boolean | null | undefined;
|
|
69
90
|
} & ClassProp) | undefined) => string;
|
|
70
91
|
|
|
71
|
-
export declare
|
|
92
|
+
export declare function AnimatePresence({ children, presence }: AnimatePresenceProps): JSX.Element | null;
|
|
72
93
|
|
|
73
|
-
export declare
|
|
94
|
+
export declare function AnimatePresenceChild({ children }: PresenceChildProps): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
74
95
|
|
|
75
96
|
declare interface AnimatePresenceProps {
|
|
76
97
|
children: ReactElement | ReactElement[];
|
|
77
98
|
presence: boolean;
|
|
78
99
|
}
|
|
79
100
|
|
|
80
|
-
export declare const
|
|
101
|
+
export declare const AsyncSelect: <Option extends SelectOption = SelectOption, IsMulti extends boolean = false>({ ref, id, label, caption, error, errorMsg, hideErrorMsg, hintText, size, variant, fullWidth, containerClassName, labelClassName, inputClassName, disabled, isDisabled, readOnly, readonly, required, isCreatable, createText, placeholder, className, classNames: customClassNames, components: customComponents, controlShouldRenderValue, defaultOptions, formatCreateLabel, formatOptionLabel, getOptionLabel, getOptionValue, inputValue, isMulti, isOptionDisabled, isSearchable, loadOptions, menuIsOpen, menuPlacement, menuPortalTarget, menuPosition, onBlur, onFocus, onMenuClose, onMenuOpen, options, openMenuOnClick, styles: customStyles, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...restProps }: AsyncSelectProps<Option, IsMulti>) => JSX.Element;
|
|
102
|
+
|
|
103
|
+
export declare interface AsyncSelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends Omit<AsyncProps<Option, IsMulti, GroupBase<Option>>, 'size' | 'isDisabled'>, Omit<AsyncCreatableProps<Option, IsMulti, GroupBase<Option>>, 'size' | 'isDisabled'>, Pick<SelectProps<Option, IsMulti>, 'caption' | 'containerClassName' | 'createText' | 'disabled' | 'error' | 'errorMsg' | 'fullWidth' | 'hideErrorMsg' | 'hintText' | 'inputClassName' | 'isCreatable' | 'label' | 'labelClassName' | 'readOnly' | 'readonly' | 'ref' | 'required' | 'size' | 'variant'> {
|
|
104
|
+
'aria-describedby'?: string;
|
|
105
|
+
isDisabled?: boolean;
|
|
106
|
+
options?: Options<Option>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare function Avatar({ icon: Icon, img, initials, status, statusPosition, size, shape, variant, inverted, stroke, className, role, ...restProps }: AvatarProps): JSX.Element;
|
|
81
110
|
|
|
82
111
|
declare const avatarContainerStyles: (props?: ({
|
|
83
112
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
@@ -87,11 +116,11 @@ declare const avatarContainerStyles: (props?: ({
|
|
|
87
116
|
stroke?: boolean | null | undefined;
|
|
88
117
|
} & ClassProp) | undefined) => string;
|
|
89
118
|
|
|
90
|
-
export declare
|
|
119
|
+
export declare function AvatarGroup({ items, size, variant, shape, max, inverted, stroke, className, role, ...restProps }: AvatarGroupProps): JSX.Element;
|
|
91
120
|
|
|
92
121
|
export declare type AvatarGroupItem = Omit<AvatarProps, 'size' | 'shape' | 'inverted' | 'stroke' | 'className'>;
|
|
93
122
|
|
|
94
|
-
export declare interface AvatarGroupProps extends Omit<
|
|
123
|
+
export declare interface AvatarGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
95
124
|
items?: AvatarGroupItem[];
|
|
96
125
|
size?: AvatarGroupSizes;
|
|
97
126
|
variant?: AvatarVariants;
|
|
@@ -101,18 +130,18 @@ export declare interface AvatarGroupProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
101
130
|
stroke?: boolean;
|
|
102
131
|
}
|
|
103
132
|
|
|
104
|
-
export declare type AvatarGroupShapes =
|
|
133
|
+
export declare type AvatarGroupShapes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['shape'];
|
|
105
134
|
|
|
106
|
-
export declare type AvatarGroupSizes =
|
|
135
|
+
export declare type AvatarGroupSizes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['size'];
|
|
107
136
|
|
|
108
|
-
export declare type AvatarIcon =
|
|
137
|
+
export declare type AvatarIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
109
138
|
|
|
110
139
|
export declare type AvatarImage = {
|
|
111
140
|
src: string;
|
|
112
141
|
alt: string;
|
|
113
142
|
};
|
|
114
143
|
|
|
115
|
-
export declare interface AvatarProps extends
|
|
144
|
+
export declare interface AvatarProps extends ComponentPropsWithoutRef<'span'>, Omit<VariantProps<typeof avatarContainerStyles>, 'stroke'> {
|
|
116
145
|
icon?: AvatarIcon;
|
|
117
146
|
img?: AvatarImage;
|
|
118
147
|
initials?: string;
|
|
@@ -125,11 +154,11 @@ export declare interface AvatarProps extends HTMLAttributes<HTMLSpanElement>, Om
|
|
|
125
154
|
stroke?: boolean;
|
|
126
155
|
}
|
|
127
156
|
|
|
128
|
-
export declare type AvatarShapes =
|
|
157
|
+
export declare type AvatarShapes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['shape'];
|
|
129
158
|
|
|
130
|
-
export declare type AvatarSizes =
|
|
159
|
+
export declare type AvatarSizes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['size'];
|
|
131
160
|
|
|
132
|
-
export declare type AvatarStatus =
|
|
161
|
+
export declare type AvatarStatus = RemoveNull<VariantProps<typeof avatarStatusStyles>['status']>;
|
|
133
162
|
|
|
134
163
|
export declare type AvatarStatusPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
135
164
|
|
|
@@ -140,44 +169,58 @@ declare const avatarStatusStyles: (props?: ({
|
|
|
140
169
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
141
170
|
} & ClassProp) | undefined) => string;
|
|
142
171
|
|
|
143
|
-
export declare type AvatarVariants =
|
|
172
|
+
export declare type AvatarVariants = RemoveNull<VariantProps<typeof avatarContainerStyles>>['variant'];
|
|
144
173
|
|
|
145
|
-
export declare
|
|
174
|
+
export declare function Badge({ variant, size, shape, inverted, icon: Icon, children, role, className, ...restProps }: BadgeProps): JSX.Element;
|
|
146
175
|
|
|
147
|
-
export declare type BadgeAppearances =
|
|
176
|
+
export declare type BadgeAppearances = RemoveNull<VariantProps<typeof badgeVariants>>['appearance'];
|
|
148
177
|
|
|
149
|
-
export declare interface BadgeProps extends
|
|
150
|
-
icon?:
|
|
178
|
+
export declare interface BadgeProps extends ComponentPropsWithoutRef<'span'>, Omit<VariantProps<typeof badgeVariants>, 'appearance'> {
|
|
179
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
151
180
|
}
|
|
152
181
|
|
|
153
|
-
export declare type BadgeShapes =
|
|
182
|
+
export declare type BadgeShapes = RemoveNull<VariantProps<typeof badgeVariants>>['shape'];
|
|
154
183
|
|
|
155
|
-
export declare type BadgeSizes =
|
|
184
|
+
export declare type BadgeSizes = RemoveNull<VariantProps<typeof badgeVariants>>['size'];
|
|
156
185
|
|
|
157
|
-
export declare type BadgeVariants =
|
|
186
|
+
export declare type BadgeVariants = RemoveNull<VariantProps<typeof badgeVariants>>['variant'];
|
|
158
187
|
|
|
159
188
|
declare const badgeVariants: (props?: ({
|
|
160
189
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
161
|
-
appearance?: "
|
|
190
|
+
appearance?: "text" | "icon" | "dots" | null | undefined;
|
|
162
191
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
163
192
|
shape?: "circle" | "square" | null | undefined;
|
|
164
193
|
inverted?: boolean | null | undefined;
|
|
165
194
|
hasIcon?: boolean | null | undefined;
|
|
166
195
|
} & ClassProp) | undefined) => string;
|
|
167
196
|
|
|
168
|
-
|
|
197
|
+
declare type BaseDatePickerProps = Omit<InputProps, 'defaultValue' | 'leadingIcon' | 'onChange' | 'onClear' | 'readOnly' | 'trailingIcon' | 'type' | 'value'> & {
|
|
198
|
+
calendarProps?: DatePickerCalendarProps | undefined;
|
|
199
|
+
closeOnSelect?: boolean;
|
|
200
|
+
defaultOpen?: boolean;
|
|
201
|
+
defaultValue?: Date | undefined;
|
|
202
|
+
formatDate?: (date: Date) => string;
|
|
203
|
+
onClear?: () => void;
|
|
204
|
+
onOpenChange?: (open: boolean) => void;
|
|
205
|
+
onValueChange?: (value: Date | undefined) => void;
|
|
206
|
+
open?: boolean;
|
|
207
|
+
panelClassName?: string;
|
|
208
|
+
value?: Date | undefined;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export declare function Breadcrumb({ items, appearance, separator, role, className, ...restProps }: BreadcrumbProps): JSX.Element;
|
|
169
212
|
|
|
170
|
-
export declare type BreadcrumbAppearances =
|
|
213
|
+
export declare type BreadcrumbAppearances = RemoveNull<VariantProps<typeof breadcrumbStyles>>['appearance'];
|
|
171
214
|
|
|
172
|
-
export declare interface BreadcrumbItem extends Omit<
|
|
215
|
+
export declare interface BreadcrumbItem extends Omit<ComponentPropsWithoutRef<'a'>, 'children'> {
|
|
173
216
|
id?: string;
|
|
174
217
|
label: ReactNode;
|
|
175
|
-
icon?:
|
|
218
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
176
219
|
current?: boolean;
|
|
177
220
|
disabled?: boolean;
|
|
178
221
|
}
|
|
179
222
|
|
|
180
|
-
export declare interface BreadcrumbProps extends
|
|
223
|
+
export declare interface BreadcrumbProps extends ComponentPropsWithoutRef<'nav'> {
|
|
181
224
|
items: BreadcrumbItem[];
|
|
182
225
|
appearance?: BreadcrumbAppearances;
|
|
183
226
|
separator?: BreadcrumbSeparators;
|
|
@@ -189,11 +232,11 @@ declare const breadcrumbStyles: (props?: ({
|
|
|
189
232
|
appearance?: "outline" | "ghost" | null | undefined;
|
|
190
233
|
} & ClassProp) | undefined) => string;
|
|
191
234
|
|
|
192
|
-
export declare
|
|
235
|
+
export declare function Button({ ref, size, variant, appearance, shape, disabled, loading, fullWidth, inverted, children, type, leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, className, ...restProps }: ButtonProps): JSX.Element;
|
|
193
236
|
|
|
194
|
-
export declare type ButtonAppearances =
|
|
237
|
+
export declare type ButtonAppearances = RemoveNull<VariantProps<typeof buttonStyles>>['appearance'];
|
|
195
238
|
|
|
196
|
-
export declare
|
|
239
|
+
export declare function ButtonGroup({ buttons, orientation, size, inverted, role, className, ...restProps }: ButtonGroupProps): JSX.Element;
|
|
197
240
|
|
|
198
241
|
export declare interface ButtonGroupItem extends Omit<ButtonProps, 'children' | 'ref' | 'className'> {
|
|
199
242
|
children?: ReactNode;
|
|
@@ -202,25 +245,26 @@ export declare interface ButtonGroupItem extends Omit<ButtonProps, 'children' |
|
|
|
202
245
|
|
|
203
246
|
export declare type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
204
247
|
|
|
205
|
-
export declare interface ButtonGroupProps extends Omit<
|
|
248
|
+
export declare interface ButtonGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
206
249
|
buttons?: ButtonGroupItem[];
|
|
207
250
|
orientation?: ButtonGroupOrientation;
|
|
208
251
|
size?: ButtonGroupSizes;
|
|
209
252
|
inverted?: boolean;
|
|
210
|
-
role?: 'group' | string;
|
|
211
253
|
}
|
|
212
254
|
|
|
213
255
|
export declare type ButtonGroupSizes = ButtonSizes;
|
|
214
256
|
|
|
257
|
+
declare type ButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
258
|
+
|
|
215
259
|
export declare interface ButtonProps extends ComponentPropsWithRef<'button'>, RemoveNull<Omit<VariantProps<typeof buttonStyles>, 'disabled'>> {
|
|
216
|
-
children
|
|
217
|
-
leadingIcon?:
|
|
218
|
-
trailingIcon?:
|
|
260
|
+
children?: ReactNode;
|
|
261
|
+
leadingIcon?: ButtonIcon;
|
|
262
|
+
trailingIcon?: ButtonIcon;
|
|
219
263
|
}
|
|
220
264
|
|
|
221
|
-
export declare type ButtonShapes =
|
|
265
|
+
export declare type ButtonShapes = RemoveNull<VariantProps<typeof buttonStyles>>['shape'];
|
|
222
266
|
|
|
223
|
-
export declare type ButtonSizes =
|
|
267
|
+
export declare type ButtonSizes = RemoveNull<VariantProps<typeof buttonStyles>>['size'];
|
|
224
268
|
|
|
225
269
|
declare const buttonStyles: (props?: ({
|
|
226
270
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -230,23 +274,33 @@ declare const buttonStyles: (props?: ({
|
|
|
230
274
|
disabled?: boolean | null | undefined;
|
|
231
275
|
loading?: boolean | null | undefined;
|
|
232
276
|
fullWidth?: boolean | null | undefined;
|
|
277
|
+
iconOnly?: boolean | null | undefined;
|
|
233
278
|
inverted?: boolean | null | undefined;
|
|
234
279
|
} & ClassProp) | undefined) => string;
|
|
235
280
|
|
|
236
|
-
export declare type ButtonVariants =
|
|
281
|
+
export declare type ButtonVariants = RemoveNull<VariantProps<typeof buttonStyles>>['variant'];
|
|
237
282
|
|
|
238
|
-
export declare
|
|
283
|
+
export declare function Calendar({ className, classNames, components, shape, showOutsideDays, ...props }: CalendarProps): JSX.Element;
|
|
284
|
+
|
|
285
|
+
export declare type CalendarProps = DistributiveOmit<DayPickerProps, 'navLayout'> & {
|
|
286
|
+
shape?: CalendarShape;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export declare type CalendarShape = 'squared' | 'circle';
|
|
290
|
+
|
|
291
|
+
export declare function Checkbox({ ref, id, label, description, error, size, shape, indeterminate, disabled, required, checked, defaultChecked, className, onChange, onClick, ...restProps }: CheckboxProps): JSX.Element;
|
|
239
292
|
|
|
240
293
|
declare const checkboxControlStyles: (props?: ({
|
|
241
294
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
242
295
|
shape?: "circle" | "square" | null | undefined;
|
|
296
|
+
hasHelperText?: boolean | null | undefined;
|
|
243
297
|
invalid?: boolean | null | undefined;
|
|
244
298
|
indeterminate?: boolean | null | undefined;
|
|
245
299
|
} & ClassProp) | undefined) => string;
|
|
246
300
|
|
|
247
|
-
export declare
|
|
301
|
+
export declare function CheckboxGroup({ options, value, defaultValue, onValueChange, name, label, description, error, size, shape, orientation, disabled, required, className, ...restProps }: CheckboxGroupProps): JSX.Element;
|
|
248
302
|
|
|
249
|
-
export declare interface CheckboxGroupOption extends Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'children' | 'error' | 'name' | 'ref' | 'size' | 'type' | 'value'> {
|
|
303
|
+
export declare interface CheckboxGroupOption extends Omit<CheckboxProps, 'checked' | 'description' | 'defaultChecked' | 'children' | 'error' | 'name' | 'ref' | 'size' | 'type' | 'value'> {
|
|
250
304
|
value: string;
|
|
251
305
|
}
|
|
252
306
|
|
|
@@ -280,15 +334,21 @@ export declare interface CheckboxProps extends Omit<ComponentPropsWithRef<'input
|
|
|
280
334
|
indeterminate?: boolean;
|
|
281
335
|
}
|
|
282
336
|
|
|
283
|
-
export declare
|
|
337
|
+
export declare const CheckboxSelect: <Option extends SelectOption = SelectOption, IsMulti extends boolean = false>({ ref, id, label, caption, error, errorMsg, hideErrorMsg, hintText, size, variant, fullWidth, containerClassName, labelClassName, inputClassName, disabled, isDisabled, readOnly, readonly, required, placeholder, className, classNames: customClassNames, components: customComponents, compactDisplay, formatOptionLabel, getOptionLabel, getOptionValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, menuPlacement, menuPortalTarget, menuPosition, openMenuOnClick, options, styles: customStyles, value, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...restProps }: CheckboxSelectProps<Option, IsMulti>) => JSX.Element;
|
|
284
338
|
|
|
285
|
-
export declare
|
|
339
|
+
export declare interface CheckboxSelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
340
|
+
compactDisplay?: boolean;
|
|
341
|
+
}
|
|
286
342
|
|
|
287
|
-
export declare
|
|
343
|
+
export declare type CheckboxShapes = RemoveNull<VariantProps<typeof checkboxControlStyles>>['shape'];
|
|
288
344
|
|
|
289
|
-
export declare type
|
|
345
|
+
export declare type CheckboxSizes = RemoveNull<VariantProps<typeof checkboxControlStyles>>['size'];
|
|
290
346
|
|
|
291
|
-
export declare
|
|
347
|
+
export declare function Chip({ children, icon: Icon, variant, appearance, size, shape, inverted, disabled, onClose, closeLabel, className, ...restProps }: ChipProps): JSX.Element;
|
|
348
|
+
|
|
349
|
+
export declare type ChipIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
350
|
+
|
|
351
|
+
export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, RemoveNull<Omit<VariantProps<typeof chipStyles>, 'disabled' | 'hasLeadingVisual' | 'removable'>> {
|
|
292
352
|
children: string | number;
|
|
293
353
|
icon?: ChipIcon;
|
|
294
354
|
disabled?: boolean;
|
|
@@ -296,9 +356,9 @@ export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>
|
|
|
296
356
|
closeLabel?: string;
|
|
297
357
|
}
|
|
298
358
|
|
|
299
|
-
export declare type ChipShapes =
|
|
359
|
+
export declare type ChipShapes = RemoveNull<VariantProps<typeof chipStyles>>['shape'];
|
|
300
360
|
|
|
301
|
-
export declare type ChipSizes =
|
|
361
|
+
export declare type ChipSizes = RemoveNull<VariantProps<typeof chipStyles>>['size'];
|
|
302
362
|
|
|
303
363
|
declare const chipStyles: (props?: ({
|
|
304
364
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
@@ -311,15 +371,99 @@ declare const chipStyles: (props?: ({
|
|
|
311
371
|
inverted?: boolean | null | undefined;
|
|
312
372
|
} & ClassProp) | undefined) => string;
|
|
313
373
|
|
|
314
|
-
export declare type ChipVariants =
|
|
374
|
+
export declare type ChipVariants = RemoveNull<VariantProps<typeof chipStyles>>['variant'];
|
|
315
375
|
|
|
316
376
|
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
317
377
|
|
|
318
|
-
export declare const
|
|
378
|
+
export declare const CompactList: <T extends ItemType>({ badgeProps, displayKey, includeAll, items, lineClampSize, maxVisible, popoverClassName, renderItem, }: CompactListProps<T>) => JSX.Element | null;
|
|
379
|
+
|
|
380
|
+
export declare interface CompactListProps<T extends ItemType> {
|
|
381
|
+
badgeProps?: Omit<BadgeProps, 'children'>;
|
|
382
|
+
displayKey?: T extends ObjectItem ? keyof T : never;
|
|
383
|
+
includeAll?: boolean;
|
|
384
|
+
items: T[];
|
|
385
|
+
lineClampSize?: number;
|
|
386
|
+
maxVisible?: number;
|
|
387
|
+
popoverClassName?: string;
|
|
388
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export declare function ConfirmationPopup({ trigger, title, description, children, open, defaultOpen, onOpenChange, onClose, onCancel, onAction, placement, align, size, variant, closeLabel, cancelLabel, actionLabel, closeOnEscape, closeOnOutsideClick, closeOnCancel, closeOnAction, portalled, showArrow, showCloseButton, showCancelButton, showActionButton, leadingIcon, className, contentClassName, triggerClassName, actionButtonProps, cancelButtonProps, ...restProps }: ConfirmationPopupProps): JSX.Element;
|
|
392
|
+
|
|
393
|
+
export declare type ConfirmationPopupAlignments = 'start' | 'center' | 'end';
|
|
394
|
+
|
|
395
|
+
export declare type ConfirmationPopupIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
319
396
|
|
|
320
|
-
|
|
397
|
+
declare const confirmationPopupIconStyles: (props?: ({
|
|
398
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
399
|
+
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
400
|
+
} & ClassProp) | undefined) => string;
|
|
401
|
+
|
|
402
|
+
declare const confirmationPopupPanelStyles: (props?: ({
|
|
403
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
404
|
+
} & ClassProp) | undefined) => string;
|
|
405
|
+
|
|
406
|
+
export declare type ConfirmationPopupPlacements = 'top' | 'right' | 'bottom' | 'left';
|
|
321
407
|
|
|
322
|
-
export declare interface
|
|
408
|
+
export declare interface ConfirmationPopupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onCancel' | 'title'>, RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>, RemoveNull<VariantProps<typeof confirmationPopupPanelStyles>> {
|
|
409
|
+
trigger?: ReactNode;
|
|
410
|
+
title?: ReactNode;
|
|
411
|
+
description?: ReactNode;
|
|
412
|
+
children?: ReactNode;
|
|
413
|
+
placement?: ConfirmationPopupPlacements;
|
|
414
|
+
align?: ConfirmationPopupAlignments;
|
|
415
|
+
open?: boolean;
|
|
416
|
+
defaultOpen?: boolean;
|
|
417
|
+
onOpenChange?: (open: boolean) => void;
|
|
418
|
+
onClose?: () => void;
|
|
419
|
+
onCancel?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
420
|
+
onAction?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
421
|
+
closeLabel?: string;
|
|
422
|
+
cancelLabel?: ReactNode;
|
|
423
|
+
actionLabel?: ReactNode;
|
|
424
|
+
closeOnEscape?: boolean;
|
|
425
|
+
closeOnOutsideClick?: boolean;
|
|
426
|
+
closeOnCancel?: boolean;
|
|
427
|
+
closeOnAction?: boolean;
|
|
428
|
+
portalled?: boolean;
|
|
429
|
+
showArrow?: boolean;
|
|
430
|
+
showCloseButton?: boolean;
|
|
431
|
+
showCancelButton?: boolean;
|
|
432
|
+
showActionButton?: boolean;
|
|
433
|
+
leadingIcon?: ConfirmationPopupIcon;
|
|
434
|
+
contentClassName?: string;
|
|
435
|
+
triggerClassName?: string;
|
|
436
|
+
actionButtonProps?: Partial<ButtonProps>;
|
|
437
|
+
cancelButtonProps?: Partial<ButtonProps>;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export declare type ConfirmationPopupSizes = RemoveNull<VariantProps<typeof confirmationPopupPanelStyles>>['size'];
|
|
441
|
+
|
|
442
|
+
export declare type ConfirmationPopupVariants = RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>['variant'];
|
|
443
|
+
|
|
444
|
+
export declare function CountryFlag({ code, name, size, className, loading, decoding, ...restProps }: CountryFlagProps): JSX.Element | null;
|
|
445
|
+
|
|
446
|
+
export declare interface CountryFlagProps extends Omit<ComponentPropsWithoutRef<'img'>, 'alt' | 'height' | 'src' | 'width'> {
|
|
447
|
+
code?: string;
|
|
448
|
+
name?: string;
|
|
449
|
+
size?: CountryFlagSize;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export declare type CountryFlagSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
453
|
+
|
|
454
|
+
export declare function DatePicker(props: DatePickerProps): JSX.Element;
|
|
455
|
+
|
|
456
|
+
export declare type DatePickerCalendarProps = Omit<CalendarProps, 'mode' | 'selected' | 'onSelect'>;
|
|
457
|
+
|
|
458
|
+
export declare type DatePickerProps = Readonly<BaseDatePickerProps>;
|
|
459
|
+
|
|
460
|
+
declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
461
|
+
|
|
462
|
+
export declare function Divider({ children, orientation, className, role, ...restProps }: DividerProps): JSX.Element;
|
|
463
|
+
|
|
464
|
+
export declare type DividerOrientations = RemoveNull<VariantProps<typeof dividerRootStyles>>['orientation'];
|
|
465
|
+
|
|
466
|
+
export declare interface DividerProps extends ComponentPropsWithoutRef<'div'> {
|
|
323
467
|
children?: ReactNode;
|
|
324
468
|
orientation?: DividerOrientations;
|
|
325
469
|
}
|
|
@@ -329,16 +473,16 @@ declare const dividerRootStyles: (props?: ({
|
|
|
329
473
|
hasContent?: boolean | null | undefined;
|
|
330
474
|
} & ClassProp) | undefined) => string;
|
|
331
475
|
|
|
332
|
-
export declare
|
|
476
|
+
export declare function Drawer({ open, children, title, description, footer, onClose, placement, size, closeLabel, closeOnEscape, closeOnOverlayClick, container, containerId, containerRef, disablePortal, showCloseButton, showOverlay, role, className, ...restProps }: DrawerProps): JSX.Element;
|
|
333
477
|
|
|
334
478
|
declare const drawerPanelStyles: (props?: ({
|
|
335
479
|
placement?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
336
480
|
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
337
481
|
} & ClassProp) | undefined) => string;
|
|
338
482
|
|
|
339
|
-
export declare type DrawerPlacements =
|
|
483
|
+
export declare type DrawerPlacements = RemoveNull<VariantProps<typeof drawerPanelStyles>>['placement'];
|
|
340
484
|
|
|
341
|
-
export declare interface DrawerProps extends Omit<
|
|
485
|
+
export declare interface DrawerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'>, RemoveNull<VariantProps<typeof drawerPanelStyles>> {
|
|
342
486
|
open: boolean;
|
|
343
487
|
children?: ReactNode;
|
|
344
488
|
title?: ReactNode;
|
|
@@ -356,9 +500,9 @@ export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
356
500
|
showOverlay?: boolean;
|
|
357
501
|
}
|
|
358
502
|
|
|
359
|
-
export declare type DrawerSizes =
|
|
503
|
+
export declare type DrawerSizes = RemoveNull<VariantProps<typeof drawerPanelStyles>>['size'];
|
|
360
504
|
|
|
361
|
-
export declare
|
|
505
|
+
export declare function Dropdown({ children, chevronIcon: ChevronIcon, clickOutsideToClose, closeOnSelect, defaultOpen, icon: Icon, iconOnly, inline, items, align, menuClassName, menuContent, menuOffset, menuPlacement, menuProps, onItemSelect, onOpenChange, open, placement, portalTarget, renderAs, selectedValue, showChevron, trigger, triggerAction, triggerClassName, usePortal, withArrow, leadingIcon, type, 'aria-label': ariaLabel, 'aria-haspopup': ariaHasPopup, className, disabled, loading, onClick, ...restProps }: DropdownProps): JSX.Element;
|
|
362
506
|
|
|
363
507
|
export declare type DropdownAlignments = 'start' | 'center' | 'end';
|
|
364
508
|
|
|
@@ -409,12 +553,44 @@ export declare type DropdownTriggerAction = 'click' | 'hover';
|
|
|
409
553
|
|
|
410
554
|
export declare type DropdownVariants = ButtonVariants;
|
|
411
555
|
|
|
556
|
+
export declare function EmptyState({ title, description, icon, size, orientation, actions, copyClassName, children, className, ...props }: Readonly<EmptyStateProps>): JSX.Element;
|
|
557
|
+
|
|
558
|
+
export declare type EmptyStateAction = Readonly<Omit<ButtonProps, 'ref' | 'size'> & {
|
|
559
|
+
actionKey?: Key;
|
|
560
|
+
size?: ButtonProps['size'];
|
|
561
|
+
}>;
|
|
562
|
+
|
|
563
|
+
export declare type EmptyStateOrientation = RemoveNull<VariantProps<typeof emptyStateRootStyles>>['orientation'];
|
|
564
|
+
|
|
565
|
+
export declare interface EmptyStateProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
566
|
+
actions?: ReadonlyArray<EmptyStateAction>;
|
|
567
|
+
copyClassName?: string;
|
|
568
|
+
description?: ReactNode;
|
|
569
|
+
icon?: ReactNode;
|
|
570
|
+
orientation?: EmptyStateOrientation;
|
|
571
|
+
size?: EmptyStateSize;
|
|
572
|
+
title?: ReactNode;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare const emptyStateRootStyles: (props?: ({
|
|
576
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
577
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
578
|
+
} & ClassProp) | undefined) => string;
|
|
579
|
+
|
|
580
|
+
export declare type EmptyStateSize = RemoveNull<VariantProps<typeof emptyStateRootStyles>>['size'];
|
|
581
|
+
|
|
412
582
|
declare enum EThemeOptions {
|
|
413
583
|
LIGHT = "light",
|
|
414
584
|
DARK = "dark"
|
|
415
585
|
}
|
|
416
586
|
|
|
417
|
-
export declare
|
|
587
|
+
export declare enum ETrend {
|
|
588
|
+
positive = "positive",
|
|
589
|
+
negative = "negative",
|
|
590
|
+
neutral = "neutral"
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export declare function Feedback({ ref, className, defaultValue, disabled, getLabelText, name, onValueChange, options, readOnly, size, value, variant, 'aria-label': ariaLabel, ...restProps }: FeedbackProps): JSX.Element;
|
|
418
594
|
|
|
419
595
|
export declare type FeedbackGetLabelText = (option: FeedbackOption, index: number, total: number) => string;
|
|
420
596
|
|
|
@@ -442,13 +618,78 @@ export declare interface FeedbackProps extends Omit<ComponentPropsWithRef<'div'>
|
|
|
442
618
|
variant?: FeedbackVariant;
|
|
443
619
|
}
|
|
444
620
|
|
|
445
|
-
export declare type FeedbackSizes =
|
|
621
|
+
export declare type FeedbackSizes = RemoveNull<VariantProps<typeof feedbackOptionStyles>>['size'];
|
|
446
622
|
|
|
447
623
|
export declare type FeedbackVariant = 'face' | 'emoji';
|
|
448
624
|
|
|
449
|
-
export declare const
|
|
625
|
+
export declare const getGrowthTrend: ({ currentValue, pastValue, isPercentage, hasFractionDigits, isPointValue, }: {
|
|
626
|
+
currentValue: number;
|
|
627
|
+
pastValue: number;
|
|
628
|
+
isPercentage?: boolean;
|
|
629
|
+
hasFractionDigits?: boolean;
|
|
630
|
+
isPointValue?: boolean;
|
|
631
|
+
}) => {
|
|
632
|
+
growth: number;
|
|
633
|
+
trend: ETrend;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export declare const getTrendVariant: (value: number | null | undefined, customThreshold?: number) => ETrend;
|
|
450
637
|
|
|
451
|
-
export declare
|
|
638
|
+
export declare const GroupedSelect: <Option extends GroupedSelectOption = GroupedSelectOption>({ caption, className, compactDisplay, containerClassName, disabled, error, errorMsg, fullWidth, hideErrorMsg, hideSelectedOptions, hintText, inputClassName, isClearable, isSearchable, label, labelClassName, menuIsOpen, menuPlacement, menuPortalTarget, menuPosition, onChange, options, placeholder, readOnly, readonly, ref, required, size, styles, value, variant, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, }: GroupedSelectProps<Option>) => JSX.Element;
|
|
639
|
+
|
|
640
|
+
export declare interface GroupedSelectOption<T = string | number> extends SelectOption<T> {
|
|
641
|
+
group: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export declare interface GroupedSelectProps<Option extends GroupedSelectOption = GroupedSelectOption> {
|
|
645
|
+
caption?: ReactNode;
|
|
646
|
+
className?: string;
|
|
647
|
+
compactDisplay?: boolean;
|
|
648
|
+
containerClassName?: string;
|
|
649
|
+
disabled?: boolean;
|
|
650
|
+
error?: ReactNode;
|
|
651
|
+
errorMsg?: ReactNode;
|
|
652
|
+
fullWidth?: boolean;
|
|
653
|
+
hideErrorMsg?: boolean;
|
|
654
|
+
hideSelectedOptions?: boolean;
|
|
655
|
+
hintText?: ReactNode;
|
|
656
|
+
inputClassName?: string;
|
|
657
|
+
isClearable?: boolean;
|
|
658
|
+
isSearchable?: boolean;
|
|
659
|
+
label?: ReactNode;
|
|
660
|
+
labelClassName?: string;
|
|
661
|
+
menuIsOpen?: boolean;
|
|
662
|
+
menuPlacement?: 'auto' | 'top' | 'bottom';
|
|
663
|
+
menuPortalTarget?: HTMLElement | null;
|
|
664
|
+
menuPosition?: 'absolute' | 'fixed';
|
|
665
|
+
onChange?: (newValue: MultiValue<Option>, actionMeta: ActionMeta<Option>) => void;
|
|
666
|
+
options: readonly GroupBase<Option>[];
|
|
667
|
+
placeholder?: ReactNode;
|
|
668
|
+
readOnly?: boolean;
|
|
669
|
+
readonly?: boolean;
|
|
670
|
+
ref?: Ref<SelectInstance<Option, true, GroupBase<Option>>>;
|
|
671
|
+
required?: boolean;
|
|
672
|
+
size?: SelectSizes;
|
|
673
|
+
styles?: ComponentProps<typeof default_2<Option, true>>['styles'];
|
|
674
|
+
value?: MultiValue<Option>;
|
|
675
|
+
variant?: SelectVariants;
|
|
676
|
+
'aria-describedby'?: string;
|
|
677
|
+
'aria-invalid'?: SelectAriaInvalid;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export declare type ILabelProps = LabelProps;
|
|
681
|
+
|
|
682
|
+
export declare type IMetricCardProps = MetricCardProps;
|
|
683
|
+
|
|
684
|
+
export declare type IMetricHint = MetricHint;
|
|
685
|
+
|
|
686
|
+
export declare type IMetricValue = MetricValue;
|
|
687
|
+
|
|
688
|
+
export declare type IMetricValueItem = MetricValueItemData;
|
|
689
|
+
|
|
690
|
+
export declare function Input({ ref, id, label, caption, error, size, variant, fullWidth, leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, clearable, clearLabel, containerClassName, labelClassName, inputClassName, className, fieldRef, disabled, required, value, defaultValue, onChange, onClear, onTrailingIconClick, trailingIconLabel, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: InputProps): JSX.Element;
|
|
691
|
+
|
|
692
|
+
export declare type InputIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
452
693
|
|
|
453
694
|
export declare interface InputProps extends Omit<ComponentPropsWithRef<'input'>, 'children' | 'prefix' | 'size'> {
|
|
454
695
|
caption?: ReactNode;
|
|
@@ -456,14 +697,17 @@ export declare interface InputProps extends Omit<ComponentPropsWithRef<'input'>,
|
|
|
456
697
|
clearable?: boolean;
|
|
457
698
|
containerClassName?: string;
|
|
458
699
|
error?: ReactNode;
|
|
700
|
+
fieldRef?: Ref<HTMLDivElement>;
|
|
459
701
|
fullWidth?: boolean;
|
|
460
702
|
inputClassName?: string;
|
|
461
703
|
label?: ReactNode;
|
|
462
704
|
labelClassName?: string;
|
|
463
705
|
leadingIcon?: InputIcon;
|
|
464
706
|
onClear?: () => void;
|
|
707
|
+
onTrailingIconClick?: MouseEventHandler<HTMLButtonElement>;
|
|
465
708
|
size?: InputSizes;
|
|
466
709
|
trailingIcon?: InputIcon;
|
|
710
|
+
trailingIconLabel?: string;
|
|
467
711
|
variant?: InputVariants;
|
|
468
712
|
}
|
|
469
713
|
|
|
@@ -485,11 +729,34 @@ export declare interface InternalTabProps extends TabProps {
|
|
|
485
729
|
selected?: boolean;
|
|
486
730
|
}
|
|
487
731
|
|
|
488
|
-
|
|
732
|
+
declare type ItemType = PrimitiveValue | ObjectItem;
|
|
733
|
+
|
|
734
|
+
export declare function Label({ children, className, disabled, endAdornment, labelWeight, position, required, size, text, variant, ...restProps }: LabelProps): JSX.Element;
|
|
735
|
+
|
|
736
|
+
export declare type LabelPosition = 'top' | 'bottom' | 'right' | 'left';
|
|
737
|
+
|
|
738
|
+
export declare interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
739
|
+
disabled?: boolean;
|
|
740
|
+
endAdornment?: ReactNode;
|
|
741
|
+
labelWeight?: LabelWeight;
|
|
742
|
+
position?: LabelPosition;
|
|
743
|
+
required?: boolean;
|
|
744
|
+
size?: LabelSize;
|
|
745
|
+
text?: ReactNode;
|
|
746
|
+
variant?: LabelVariant;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export declare type LabelSize = 'lg' | 'md' | 'sm';
|
|
750
|
+
|
|
751
|
+
export declare type LabelVariant = 'primary' | 'secondary' | 'tertiary';
|
|
752
|
+
|
|
753
|
+
export declare type LabelWeight = 'semibold' | 'medium' | 'normal';
|
|
489
754
|
|
|
490
|
-
export declare
|
|
755
|
+
export declare function Link({ ref, children, leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, external, variant, size, underline, inverted, disabled, truncate, target, rel, href, className, onClick, ...restProps }: LinkProps): JSX.Element;
|
|
491
756
|
|
|
492
|
-
export declare
|
|
757
|
+
export declare type LinkIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
758
|
+
|
|
759
|
+
export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'children'>, RemoveNull<Omit<VariantProps<typeof linkStyles>, 'disabled' | 'truncate'>> {
|
|
493
760
|
children: ReactNode;
|
|
494
761
|
leadingIcon?: LinkIcon;
|
|
495
762
|
trailingIcon?: LinkIcon;
|
|
@@ -498,7 +765,7 @@ export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'chi
|
|
|
498
765
|
truncate?: boolean;
|
|
499
766
|
}
|
|
500
767
|
|
|
501
|
-
export declare type LinkSizes =
|
|
768
|
+
export declare type LinkSizes = RemoveNull<VariantProps<typeof linkStyles>>['size'];
|
|
502
769
|
|
|
503
770
|
declare const linkStyles: (props?: ({
|
|
504
771
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
@@ -509,13 +776,13 @@ declare const linkStyles: (props?: ({
|
|
|
509
776
|
truncate?: boolean | null | undefined;
|
|
510
777
|
} & ClassProp) | undefined) => string;
|
|
511
778
|
|
|
512
|
-
export declare type LinkUnderline =
|
|
779
|
+
export declare type LinkUnderline = RemoveNull<VariantProps<typeof linkStyles>>['underline'];
|
|
513
780
|
|
|
514
|
-
export declare type LinkVariants =
|
|
781
|
+
export declare type LinkVariants = RemoveNull<VariantProps<typeof linkStyles>>['variant'];
|
|
515
782
|
|
|
516
783
|
export declare const ListBox: ForwardRefExoticComponent<ListBoxProps & RefAttributes<HTMLDivElement>>;
|
|
517
784
|
|
|
518
|
-
export declare type ListBoxIcon =
|
|
785
|
+
export declare type ListBoxIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
519
786
|
|
|
520
787
|
export declare interface ListBoxItemData {
|
|
521
788
|
disabled?: boolean;
|
|
@@ -525,16 +792,19 @@ export declare interface ListBoxItemData {
|
|
|
525
792
|
value: string;
|
|
526
793
|
}
|
|
527
794
|
|
|
528
|
-
export declare interface ListBoxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
795
|
+
export declare interface ListBoxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'role'> {
|
|
529
796
|
children?: ReactNode;
|
|
530
|
-
itemRole?:
|
|
797
|
+
itemRole?: ListItemRole;
|
|
531
798
|
items?: ListBoxItemData[];
|
|
532
799
|
leadingSlot?: ReactNode;
|
|
533
800
|
onItemSelect?: (item: ListBoxItemData) => void;
|
|
801
|
+
role?: ListBoxRole;
|
|
534
802
|
selectedValue?: string;
|
|
535
803
|
size?: ListBoxSizes;
|
|
536
804
|
}
|
|
537
805
|
|
|
806
|
+
export declare type ListBoxRole = 'listbox' | 'menu';
|
|
807
|
+
|
|
538
808
|
export declare type ListBoxSizes = 'sm' | 'md' | 'lg';
|
|
539
809
|
|
|
540
810
|
export declare const ListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -542,21 +812,60 @@ export declare const ListItem: ForwardRefExoticComponent<ListItemProps & RefAttr
|
|
|
542
812
|
export declare interface ListItemProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'disabled' | 'onSelect' | 'value'> {
|
|
543
813
|
item: ListBoxItemData;
|
|
544
814
|
onSelect?: (item: ListBoxItemData) => void;
|
|
815
|
+
role?: ListItemRole;
|
|
545
816
|
selected?: boolean;
|
|
546
817
|
size?: ListBoxSizes;
|
|
547
818
|
}
|
|
548
819
|
|
|
820
|
+
export declare type ListItemRole = 'option' | 'menuitem';
|
|
821
|
+
|
|
549
822
|
export declare const mergeRefs: <T>(...refs: Array<PossibleRef<T>>) => (node: T | null) => (() => void) | undefined;
|
|
550
823
|
|
|
551
|
-
export declare
|
|
824
|
+
export declare function MetricCard({ className, hint, items, label, showDivider, value, ...restProps }: MetricCardProps): JSX.Element;
|
|
825
|
+
|
|
826
|
+
export declare type MetricCardColorVariant = 'secondary' | 'warning' | 'success' | 'error';
|
|
827
|
+
|
|
828
|
+
export declare interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
829
|
+
hint?: MetricHint;
|
|
830
|
+
items?: MetricValueItemData[];
|
|
831
|
+
label?: LabelProps;
|
|
832
|
+
showDivider?: boolean;
|
|
833
|
+
value?: MetricValue;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export declare interface MetricHint {
|
|
837
|
+
color?: MetricCardColorVariant;
|
|
838
|
+
text?: ReactNode;
|
|
839
|
+
trend?: ETrend;
|
|
840
|
+
trendInverted?: boolean;
|
|
841
|
+
trendPosition?: TrendPosition;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export declare interface MetricValue {
|
|
845
|
+
color?: MetricCardColorVariant;
|
|
846
|
+
supportText?: ReactNode;
|
|
847
|
+
supportTextSize?: ValueSupportSize;
|
|
848
|
+
text?: ReactNode;
|
|
849
|
+
trend?: ETrend;
|
|
850
|
+
trendInverted?: boolean;
|
|
851
|
+
}
|
|
552
852
|
|
|
553
|
-
export declare
|
|
853
|
+
export declare function MetricValueItem({ value, hint }: MetricValueItemData): JSX.Element;
|
|
854
|
+
|
|
855
|
+
export declare interface MetricValueItemData {
|
|
856
|
+
hint?: MetricHint;
|
|
857
|
+
value?: MetricValue;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export declare function Modal({ open, children, title, description, footer, onClose, size, closeLabel, closeOnEscape, closeOnOverlayClick, container, containerId, containerRef, disablePortal, leadingIcon: LeadingIcon, showCloseButton, showOverlay, role, className, ...restProps }: ModalProps): JSX.Element;
|
|
861
|
+
|
|
862
|
+
export declare type ModalIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
554
863
|
|
|
555
864
|
declare const modalPanelStyles: (props?: ({
|
|
556
865
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
557
866
|
} & ClassProp) | undefined) => string;
|
|
558
867
|
|
|
559
|
-
export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>,
|
|
868
|
+
export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, RemoveNull<VariantProps<typeof modalPanelStyles>> {
|
|
560
869
|
open: boolean;
|
|
561
870
|
children?: ReactNode;
|
|
562
871
|
title?: ReactNode;
|
|
@@ -575,7 +884,13 @@ export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
575
884
|
showOverlay?: boolean;
|
|
576
885
|
}
|
|
577
886
|
|
|
578
|
-
export declare type ModalSizes =
|
|
887
|
+
export declare type ModalSizes = RemoveNull<VariantProps<typeof modalPanelStyles>>['size'];
|
|
888
|
+
|
|
889
|
+
export declare const MultiSelectCompact: <Option extends SelectOption = SelectOption>(props: MultiSelectCompactProps<Option>) => JSX.Element;
|
|
890
|
+
|
|
891
|
+
export declare type MultiSelectCompactProps<Option extends SelectOption = SelectOption> = Omit<CheckboxSelectProps<Option, true>, 'compactDisplay' | 'isMulti'>;
|
|
892
|
+
|
|
893
|
+
declare type ObjectItem = Record<string, unknown>;
|
|
579
894
|
|
|
580
895
|
export declare const OrganizationChart: ForwardRefExoticComponent<OrgChartComponentProps & RefAttributes<OrgChartRef>>;
|
|
581
896
|
|
|
@@ -649,7 +964,7 @@ export declare interface OrgChartRef {
|
|
|
649
964
|
collapseAll: () => void;
|
|
650
965
|
}
|
|
651
966
|
|
|
652
|
-
export declare
|
|
967
|
+
export declare function Popover({ trigger, title, children, open, defaultOpen, onOpenChange, placement, align, variant, closeLabel, closeOnEscape, closeOnOutsideClick, showArrow, showCloseButton, showSlotBorder, className, contentClassName, triggerClassName, ...restProps }: PopoverProps): JSX.Element;
|
|
653
968
|
|
|
654
969
|
export declare type PopoverAlignments = 'start' | 'center' | 'end';
|
|
655
970
|
|
|
@@ -659,7 +974,7 @@ declare const popoverIconStyles: (props?: ({
|
|
|
659
974
|
|
|
660
975
|
export declare type PopoverPlacements = 'top' | 'right' | 'bottom' | 'left';
|
|
661
976
|
|
|
662
|
-
export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>,
|
|
977
|
+
export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, RemoveNull<VariantProps<typeof popoverIconStyles>> {
|
|
663
978
|
trigger?: ReactNode;
|
|
664
979
|
title?: ReactNode;
|
|
665
980
|
children?: ReactNode;
|
|
@@ -678,7 +993,7 @@ export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
678
993
|
triggerClassName?: string;
|
|
679
994
|
}
|
|
680
995
|
|
|
681
|
-
export declare type PopoverVariants =
|
|
996
|
+
export declare type PopoverVariants = RemoveNull<VariantProps<typeof popoverIconStyles>>['variant'];
|
|
682
997
|
|
|
683
998
|
export declare const Portal: FC<PortalProps>;
|
|
684
999
|
|
|
@@ -696,9 +1011,11 @@ declare interface PresenceChildProps {
|
|
|
696
1011
|
children: ReactElement;
|
|
697
1012
|
}
|
|
698
1013
|
|
|
699
|
-
|
|
1014
|
+
declare type PrimitiveValue = string | number | boolean | bigint | symbol | null | undefined;
|
|
700
1015
|
|
|
701
|
-
export declare
|
|
1016
|
+
export declare function ProgressBar({ appearance, caption, captionClassName, className, fullWidth, indicatorClassName, inverted, label, labelClassName, max, min, role, showDot, showValue, size, trackClassName, value, valueClassName, valueFormatter, variant, 'aria-describedby': ariaDescribedBy, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...restProps }: ProgressBarProps): JSX.Element;
|
|
1017
|
+
|
|
1018
|
+
export declare type ProgressBarAppearances = NonNullable<RemoveNull<VariantProps<typeof progressBarRootStyles>>['appearance']>;
|
|
702
1019
|
|
|
703
1020
|
export declare interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
704
1021
|
appearance?: ProgressBarAppearances;
|
|
@@ -726,7 +1043,7 @@ declare const progressBarRootStyles: (props?: ({
|
|
|
726
1043
|
fullWidth?: boolean | null | undefined;
|
|
727
1044
|
} & ClassProp) | undefined) => string;
|
|
728
1045
|
|
|
729
|
-
export declare type ProgressBarSizes = NonNullable<
|
|
1046
|
+
export declare type ProgressBarSizes = NonNullable<RemoveNull<VariantProps<typeof progressBarTrackStyles>>['size']>;
|
|
730
1047
|
|
|
731
1048
|
declare const progressBarTrackStyles: (props?: ({
|
|
732
1049
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -742,14 +1059,15 @@ export declare interface ProgressBarValueFormatterArgs {
|
|
|
742
1059
|
|
|
743
1060
|
export declare type ProgressBarVariants = ButtonVariants;
|
|
744
1061
|
|
|
745
|
-
export declare
|
|
1062
|
+
export declare function Radio({ ref, id, label, description, error, size, disabled, required, checked, defaultChecked, className, onChange, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: RadioProps): JSX.Element;
|
|
746
1063
|
|
|
747
1064
|
declare const radioControlStyles: (props?: ({
|
|
748
1065
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1066
|
+
hasHelperText?: boolean | null | undefined;
|
|
749
1067
|
invalid?: boolean | null | undefined;
|
|
750
1068
|
} & ClassProp) | undefined) => string;
|
|
751
1069
|
|
|
752
|
-
export declare
|
|
1070
|
+
export declare function RadioGroup({ options, value, defaultValue, onValueChange, name, label, description, error, size, orientation, disabled, required, className, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: RadioGroupProps): JSX.Element;
|
|
753
1071
|
|
|
754
1072
|
export declare interface RadioGroupOption extends Omit<RadioProps, 'checked' | 'defaultChecked' | 'children' | 'error' | 'name' | 'ref' | 'required' | 'size' | 'type' | 'value'> {
|
|
755
1073
|
value: string;
|
|
@@ -780,9 +1098,9 @@ export declare interface RadioProps extends Omit<ComponentPropsWithRef<'input'>,
|
|
|
780
1098
|
size?: RadioSizes;
|
|
781
1099
|
}
|
|
782
1100
|
|
|
783
|
-
export declare type RadioSizes =
|
|
1101
|
+
export declare type RadioSizes = RemoveNull<VariantProps<typeof radioControlStyles>>['size'];
|
|
784
1102
|
|
|
785
|
-
export declare
|
|
1103
|
+
export declare function Rating({ ref, className, defaultValue, disabled, getLabelText, max, name, onValueChange, precision, readOnly, size, value, 'aria-label': ariaLabel, ...restProps }: RatingProps): JSX.Element;
|
|
786
1104
|
|
|
787
1105
|
export declare type RatingPrecision = 0.5 | 1;
|
|
788
1106
|
|
|
@@ -799,7 +1117,7 @@ export declare interface RatingProps extends Omit<ComponentPropsWithRef<'div'>,
|
|
|
799
1117
|
value?: number;
|
|
800
1118
|
}
|
|
801
1119
|
|
|
802
|
-
export declare type RatingSizes =
|
|
1120
|
+
export declare type RatingSizes = RemoveNull<VariantProps<typeof ratingStarStyles>>['size'];
|
|
803
1121
|
|
|
804
1122
|
declare const ratingStarStyles: (props?: ({
|
|
805
1123
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
@@ -809,9 +1127,57 @@ export declare type RemoveNull<T> = {
|
|
|
809
1127
|
[K in keyof T]: Exclude<T[K], null>;
|
|
810
1128
|
};
|
|
811
1129
|
|
|
812
|
-
export declare const
|
|
1130
|
+
export declare const Select: <Option extends SelectOption = SelectOption, IsMulti extends boolean = false>({ ref, id, label, caption, error, errorMsg, hideErrorMsg, hintText, size, variant, fullWidth, containerClassName, labelClassName, inputClassName, disabled, isDisabled, readOnly, readonly, required, isCreatable, createText, placeholder, className, components: customComponents, classNames: customClassNames, styles: customStyles, menuPortalTarget, menuPlacement, menuPosition, isSearchable, isOptionDisabled, getOptionLabel, getOptionValue, formatOptionLabel, formatCreateLabel, menuIsOpen, openMenuOnClick, backspaceRemovesValue, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...restProps }: SelectProps<Option, IsMulti>) => JSX.Element;
|
|
1131
|
+
|
|
1132
|
+
export declare type SelectAriaInvalid = boolean | 'false' | 'grammar' | 'spelling' | 'true';
|
|
1133
|
+
|
|
1134
|
+
export declare interface SelectOption<T = string | number> {
|
|
1135
|
+
label: ReactNode;
|
|
1136
|
+
value?: T;
|
|
1137
|
+
__isNew__?: boolean;
|
|
1138
|
+
disabled?: boolean;
|
|
1139
|
+
options?: SelectOption<T>[];
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
export declare interface SelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends Omit<CreatableProps<Option, IsMulti, GroupBase<Option>>, 'size'> {
|
|
1143
|
+
'aria-describedby'?: string;
|
|
1144
|
+
'aria-invalid'?: SelectAriaInvalid;
|
|
1145
|
+
caption?: ReactNode;
|
|
1146
|
+
containerClassName?: string;
|
|
1147
|
+
createText?: string;
|
|
1148
|
+
disabled?: boolean;
|
|
1149
|
+
error?: ReactNode;
|
|
1150
|
+
errorMsg?: ReactNode;
|
|
1151
|
+
fullWidth?: boolean;
|
|
1152
|
+
hideErrorMsg?: boolean;
|
|
1153
|
+
hintText?: ReactNode;
|
|
1154
|
+
inputClassName?: string;
|
|
1155
|
+
isCreatable?: boolean;
|
|
1156
|
+
label?: ReactNode;
|
|
1157
|
+
labelClassName?: string;
|
|
1158
|
+
readOnly?: boolean;
|
|
1159
|
+
readonly?: boolean;
|
|
1160
|
+
ref?: Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
1161
|
+
required?: boolean;
|
|
1162
|
+
size?: SelectSizes;
|
|
1163
|
+
variant?: SelectVariants;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export declare type SelectSizes = InputSizes;
|
|
1167
|
+
|
|
1168
|
+
export declare type SelectVariants = InputVariants;
|
|
813
1169
|
|
|
814
|
-
export declare
|
|
1170
|
+
export declare const SelectWithApply: <Option extends SelectOption = SelectOption, IsMulti extends boolean = false>({ ref, id, label, caption, error, errorMsg, hideErrorMsg, hintText, size, variant, fullWidth, containerClassName, labelClassName, inputClassName, disabled, isDisabled, readOnly, readonly, required, placeholder, className, classNames: customClassNames, compactDisplay, components: customComponents, isMulti, isOptionDisabled, isSearchable, menuPlacement, menuPortalTarget, menuPosition, onChange, options, styles: customStyles, value, allOptionLabel, applyButtonLabel, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...restProps }: SelectWithApplyProps<Option, IsMulti>) => JSX.Element;
|
|
1171
|
+
|
|
1172
|
+
export declare interface SelectWithApplyProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
1173
|
+
allOptionLabel?: string;
|
|
1174
|
+
applyButtonLabel?: string;
|
|
1175
|
+
compactDisplay?: boolean;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
export declare function Slider({ caption, captionClassName, className, defaultValue, disabled, error, formatValue, label, labelClassName, max, min, onValueChange, range, showMaxLabel, showMinLabel, showValueLabel, size, step, thumbClassName, trackClassName, value, valueClassName, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: SliderProps): JSX.Element;
|
|
1179
|
+
|
|
1180
|
+
export declare type SliderLabelSizes = RemoveNull<VariantProps<typeof sliderLabelStyles>>['size'];
|
|
815
1181
|
|
|
816
1182
|
declare const sliderLabelStyles: (props?: ({
|
|
817
1183
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -842,7 +1208,7 @@ export declare interface SliderProps extends Omit<ComponentPropsWithRef<'div'>,
|
|
|
842
1208
|
valueClassName?: string;
|
|
843
1209
|
}
|
|
844
1210
|
|
|
845
|
-
export declare type SliderSizes =
|
|
1211
|
+
export declare type SliderSizes = RemoveNull<VariantProps<typeof sliderTrackStyles>>['size'];
|
|
846
1212
|
|
|
847
1213
|
export declare interface SliderState {
|
|
848
1214
|
max: number;
|
|
@@ -850,7 +1216,7 @@ export declare interface SliderState {
|
|
|
850
1216
|
values: [number, number?];
|
|
851
1217
|
}
|
|
852
1218
|
|
|
853
|
-
export declare type SliderThumbSizes =
|
|
1219
|
+
export declare type SliderThumbSizes = RemoveNull<VariantProps<typeof sliderThumbStyles>>['size'];
|
|
854
1220
|
|
|
855
1221
|
declare const sliderThumbStyles: (props?: ({
|
|
856
1222
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -864,18 +1230,89 @@ declare const sliderTrackStyles: (props?: ({
|
|
|
864
1230
|
|
|
865
1231
|
export declare type SliderValue = number | [number, number];
|
|
866
1232
|
|
|
867
|
-
export declare
|
|
1233
|
+
export declare function Tab({ children, className, closeLabel, disabled, endAdornment, index, onClose, panelId, selected, startAdornment, statusDot, ...restProps }: InternalTabProps): JSX.Element;
|
|
868
1234
|
|
|
869
1235
|
export declare type TabKeyboardEvent = KeyboardEvent_2<HTMLDivElement>;
|
|
870
1236
|
|
|
1237
|
+
export declare const Table: <RowData extends object = Record<string, unknown>>(props: TableProps<RowData>) => React.JSX.Element;
|
|
1238
|
+
|
|
1239
|
+
export declare type TableAlign = 'left' | 'center' | 'right';
|
|
1240
|
+
|
|
1241
|
+
export declare const TableBody: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1242
|
+
|
|
1243
|
+
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & RefAttributes<HTMLTableCaptionElement>>;
|
|
1244
|
+
|
|
1245
|
+
export declare interface TableCaptionProps extends ComponentPropsWithoutRef<'caption'> {
|
|
1246
|
+
side?: 'top' | 'bottom';
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export declare const TableCell: ForwardRefExoticComponent<TableCellProps & RefAttributes<HTMLTableCellElement>>;
|
|
1250
|
+
|
|
1251
|
+
export declare interface TableCellProps extends ComponentPropsWithoutRef<'td'> {
|
|
1252
|
+
align?: TableAlign | undefined;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export declare interface TableColumn<RowData> {
|
|
1256
|
+
accessorKey?: keyof RowData;
|
|
1257
|
+
align?: TableAlign;
|
|
1258
|
+
cell?: (row: RowData, rowIndex: number) => ReactNode;
|
|
1259
|
+
className?: string;
|
|
1260
|
+
header: ReactNode;
|
|
1261
|
+
headerClassName?: string;
|
|
1262
|
+
id?: string;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
export declare interface TableContextValue {
|
|
1266
|
+
interactive: boolean;
|
|
1267
|
+
showColumnBorder: boolean;
|
|
1268
|
+
size: TableSizes;
|
|
1269
|
+
stickyHeader: boolean;
|
|
1270
|
+
striped: boolean;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
export declare const TableFooter: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1274
|
+
|
|
1275
|
+
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & RefAttributes<HTMLTableCellElement>>;
|
|
1276
|
+
|
|
1277
|
+
export declare const TableHeader: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1278
|
+
|
|
1279
|
+
export declare interface TableHeadProps extends ComponentPropsWithoutRef<'th'> {
|
|
1280
|
+
align?: TableAlign | undefined;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export declare interface TableProps<RowData extends object = Record<string, unknown>> extends Omit<ComponentPropsWithoutRef<'table'>, 'children' | 'size'> {
|
|
1284
|
+
caption?: ReactNode;
|
|
1285
|
+
captionSide?: 'top' | 'bottom';
|
|
1286
|
+
columns: TableColumn<RowData>[];
|
|
1287
|
+
containerClassName?: string;
|
|
1288
|
+
data: RowData[];
|
|
1289
|
+
emptyMessage?: ReactNode;
|
|
1290
|
+
footer?: ReactNode;
|
|
1291
|
+
interactive?: boolean;
|
|
1292
|
+
rowKey?: keyof RowData | ((row: RowData, index: number) => Key);
|
|
1293
|
+
showColumnBorder?: boolean;
|
|
1294
|
+
size?: TableSizes;
|
|
1295
|
+
stickyHeader?: boolean;
|
|
1296
|
+
striped?: boolean;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export declare const TableRow: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & RefAttributes<HTMLTableRowElement>>;
|
|
1300
|
+
|
|
1301
|
+
export declare interface TableSectionProps {
|
|
1302
|
+
children: ReactNode;
|
|
1303
|
+
className?: string | undefined;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export declare type TableSizes = InputSizes;
|
|
1307
|
+
|
|
871
1308
|
declare const tabListStyles: (props?: ({
|
|
872
1309
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
873
1310
|
variant?: "underline" | "pill" | null | undefined;
|
|
874
1311
|
} & ClassProp) | undefined) => string;
|
|
875
1312
|
|
|
876
|
-
export declare
|
|
1313
|
+
export declare function TabPanel({ children, className, ...restProps }: TabPanelProps): JSX.Element;
|
|
877
1314
|
|
|
878
|
-
export declare type TabPanelOrientation =
|
|
1315
|
+
export declare type TabPanelOrientation = RemoveNull<VariantProps<typeof tabPanelStyles>>['orientation'];
|
|
879
1316
|
|
|
880
1317
|
export declare interface TabPanelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
881
1318
|
children: ReactNode;
|
|
@@ -903,7 +1340,7 @@ declare const tabRootStyles: (props?: ({
|
|
|
903
1340
|
disabled?: boolean | null | undefined;
|
|
904
1341
|
} & ClassProp) | undefined) => string;
|
|
905
1342
|
|
|
906
|
-
export declare
|
|
1343
|
+
export declare function Tabs({ children, className, defaultValue, disabled, id, onValueChange, orientation, size, value, variant, ...restProps }: TabsProps): JSX.Element;
|
|
907
1344
|
|
|
908
1345
|
export declare interface TabsContextValue {
|
|
909
1346
|
baseId: string;
|
|
@@ -915,7 +1352,7 @@ export declare interface TabsContextValue {
|
|
|
915
1352
|
variant: NonNullable<TabsProps['variant']>;
|
|
916
1353
|
}
|
|
917
1354
|
|
|
918
|
-
export declare
|
|
1355
|
+
export declare function TabsList({ children, className, ...restProps }: TabsListProps): JSX.Element;
|
|
919
1356
|
|
|
920
1357
|
export declare interface TabsListContextValue extends TabsContextValue {
|
|
921
1358
|
registerTab: (index: number, node: HTMLDivElement | null) => void;
|
|
@@ -931,7 +1368,7 @@ export declare interface TabsListProps extends Omit<ComponentPropsWithoutRef<'di
|
|
|
931
1368
|
children: ReactNode;
|
|
932
1369
|
}
|
|
933
1370
|
|
|
934
|
-
export declare type TabsOrientation =
|
|
1371
|
+
export declare type TabsOrientation = RemoveNull<VariantProps<typeof tabsRootStyles>>['orientation'];
|
|
935
1372
|
|
|
936
1373
|
export declare interface TabsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'defaultValue' | 'onChange'> {
|
|
937
1374
|
children: ReactNode;
|
|
@@ -945,31 +1382,93 @@ export declare interface TabsProps extends Omit<ComponentPropsWithoutRef<'div'>,
|
|
|
945
1382
|
variant?: TabsVariant;
|
|
946
1383
|
}
|
|
947
1384
|
|
|
948
|
-
export declare type TabsRootOrientation =
|
|
1385
|
+
export declare type TabsRootOrientation = RemoveNull<VariantProps<typeof tabListStyles>>['orientation'];
|
|
949
1386
|
|
|
950
1387
|
declare const tabsRootStyles: (props?: ({
|
|
951
1388
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
952
1389
|
} & ClassProp) | undefined) => string;
|
|
953
1390
|
|
|
954
|
-
export declare type TabsSizes =
|
|
1391
|
+
export declare type TabsSizes = RemoveNull<VariantProps<typeof tabRootStyles>>['size'];
|
|
955
1392
|
|
|
956
|
-
export declare type TabsVariant =
|
|
1393
|
+
export declare type TabsVariant = RemoveNull<VariantProps<typeof tabRootStyles>>['variant'];
|
|
957
1394
|
|
|
958
|
-
export declare
|
|
1395
|
+
export declare function TextArea({ ref, id, label, caption, error, size, variant, fullWidth, containerClassName, labelClassName, textAreaClassName, className, disabled, required, value, defaultValue, maxLength, onChange, rows, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: TextAreaProps): JSX.Element;
|
|
1396
|
+
|
|
1397
|
+
export declare interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'children' | 'size'> {
|
|
1398
|
+
caption?: ReactNode;
|
|
1399
|
+
containerClassName?: string;
|
|
1400
|
+
error?: ReactNode;
|
|
1401
|
+
fullWidth?: boolean;
|
|
1402
|
+
label?: ReactNode;
|
|
1403
|
+
labelClassName?: string;
|
|
1404
|
+
size?: TextAreaSizes;
|
|
1405
|
+
textAreaClassName?: string;
|
|
1406
|
+
variant?: TextAreaVariants;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export declare type TextAreaSizes = ButtonSizes;
|
|
1410
|
+
|
|
1411
|
+
export declare type TextAreaVariants = ButtonVariants;
|
|
1412
|
+
|
|
1413
|
+
export declare type TMetricCardColorVariant = MetricCardColorVariant;
|
|
1414
|
+
|
|
1415
|
+
export declare function Toaster({ className, position, toastOptions, ...restProps }: ToasterProps): JSX.Element;
|
|
959
1416
|
|
|
960
1417
|
export declare interface ToastProps extends AlertProps {
|
|
1418
|
+
dismissable?: boolean;
|
|
961
1419
|
duration?: number;
|
|
962
1420
|
position?: ToasterProps['position'];
|
|
963
|
-
dismissable?: boolean;
|
|
964
1421
|
}
|
|
965
1422
|
|
|
1423
|
+
export declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<TooltipRefProps>>;
|
|
1424
|
+
|
|
1425
|
+
export declare interface TooltipProps extends Omit<ITooltip, 'variant'> {
|
|
1426
|
+
variant?: 'primary' | 'secondary';
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
export { TooltipRefProps }
|
|
1430
|
+
|
|
1431
|
+
export declare const TREND_INDICATOR_COLORS: {
|
|
1432
|
+
positive: string;
|
|
1433
|
+
negative: string;
|
|
1434
|
+
neutral: string;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
export declare function TrendIndicator({ className, colorizeValueText, inverted, label, size, strokeWidth, value, variant, ...restProps }: TrendIndicatorProps): JSX.Element;
|
|
1438
|
+
|
|
1439
|
+
export declare const trendIndicatorColors: {
|
|
1440
|
+
positive: string;
|
|
1441
|
+
negative: string;
|
|
1442
|
+
neutral: string;
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
export declare interface TrendIndicatorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1446
|
+
colorizeValueText?: boolean;
|
|
1447
|
+
inverted?: boolean;
|
|
1448
|
+
label?: ReactNode;
|
|
1449
|
+
size?: TrendIndicatorSize;
|
|
1450
|
+
strokeWidth?: TrendIndicatorStrokeWidth;
|
|
1451
|
+
value?: ReactNode;
|
|
1452
|
+
variant?: ETrend;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export declare type TrendIndicatorSize = 'sm' | 'md' | 'lg';
|
|
1456
|
+
|
|
1457
|
+
export declare type TrendIndicatorStrokeWidth = 'thin' | 'thick' | 'thicker';
|
|
1458
|
+
|
|
1459
|
+
declare type TrendPosition = 'left' | 'right';
|
|
1460
|
+
|
|
1461
|
+
export declare type TTrendPosition = TrendPosition;
|
|
1462
|
+
|
|
1463
|
+
export declare type TValueSupportSize = ValueSupportSize;
|
|
1464
|
+
|
|
966
1465
|
export declare const useTheme: () => {
|
|
967
1466
|
theme: EThemeOptions;
|
|
968
1467
|
isDark: boolean;
|
|
969
1468
|
setTheme: (theme: EThemeOptions) => void;
|
|
970
1469
|
};
|
|
971
1470
|
|
|
972
|
-
export declare
|
|
1471
|
+
export declare function useToast(): {
|
|
973
1472
|
toast: (props: ToastProps) => string | number;
|
|
974
1473
|
default: (props: Omit<ToastProps, "variant">) => string | number;
|
|
975
1474
|
primary: (props: Omit<ToastProps, "variant">) => string | number;
|
|
@@ -983,4 +1482,6 @@ export declare const useToast: () => {
|
|
|
983
1482
|
|
|
984
1483
|
export declare const useToggle: () => readonly [boolean, () => void];
|
|
985
1484
|
|
|
1485
|
+
declare type ValueSupportSize = 'sm' | 'lg';
|
|
1486
|
+
|
|
986
1487
|
export { }
|