@tanishraj/ui-kit 2.5.2 → 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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +207 -115
- package/dist/index.es.js +149 -152
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -4
- package/readme.md +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActionMeta } from 'react-select';
|
|
2
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
3
2
|
import { AsyncCreatableProps } from 'react-select/async-creatable';
|
|
4
3
|
import { AsyncProps } from 'react-select/async';
|
|
5
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
@@ -7,7 +6,9 @@ import { ClassValue } from 'clsx';
|
|
|
7
6
|
import { ComponentProps } from 'react';
|
|
8
7
|
import { ComponentPropsWithoutRef } from 'react';
|
|
9
8
|
import { ComponentPropsWithRef } from 'react';
|
|
9
|
+
import { ComponentType } from 'react';
|
|
10
10
|
import { CreatableProps } from 'react-select/creatable';
|
|
11
|
+
import { DayPickerProps } from 'react-day-picker';
|
|
11
12
|
import { default as default_2 } from 'react-select';
|
|
12
13
|
import { DetailedHTMLProps } from 'react';
|
|
13
14
|
import { FC } from 'react';
|
|
@@ -15,13 +16,14 @@ import { FieldsetHTMLAttributes } from 'react';
|
|
|
15
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
16
17
|
import { GroupBase } from 'react-select';
|
|
17
18
|
import { HTMLAttributes } from 'react';
|
|
18
|
-
import { HTMLProps } from 'react';
|
|
19
19
|
import { ITooltip } from 'react-tooltip';
|
|
20
20
|
import { JSX } from 'react';
|
|
21
|
+
import { JSXElementConstructor } from 'react';
|
|
21
22
|
import { Key } from 'react';
|
|
22
23
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
23
24
|
import { LabelHTMLAttributes } from 'react';
|
|
24
25
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
26
|
+
import { MouseEventHandler } from 'react';
|
|
25
27
|
import { MultiValue } from 'react-select';
|
|
26
28
|
import { Options } from 'react-select';
|
|
27
29
|
import { Placement } from '@floating-ui/react';
|
|
@@ -62,15 +64,18 @@ export declare type AccordionSizes = RemoveNull<VariantProps<typeof accordionRoo
|
|
|
62
64
|
|
|
63
65
|
export declare type AccordionType = 'single' | 'multiple';
|
|
64
66
|
|
|
65
|
-
export declare
|
|
67
|
+
export declare function Alert({ variant, appearance, size, inverted, title, icon: Icon, children, onClose, closeLabel, className, role, ...restProps }: AlertProps): JSX.Element;
|
|
66
68
|
|
|
67
69
|
export declare type AlertAppearances = RemoveNull<VariantProps<typeof alertWrapperStyles>>['appearance'];
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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;
|
|
72
76
|
children?: ReactNode;
|
|
73
77
|
onClose?: () => void;
|
|
78
|
+
closeLabel?: string;
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
export declare type AlertSizes = RemoveNull<VariantProps<typeof alertWrapperStyles>>['size'];
|
|
@@ -84,23 +89,24 @@ declare const alertWrapperStyles: (props?: ({
|
|
|
84
89
|
inverted?: boolean | null | undefined;
|
|
85
90
|
} & ClassProp) | undefined) => string;
|
|
86
91
|
|
|
87
|
-
export declare
|
|
92
|
+
export declare function AnimatePresence({ children, presence }: AnimatePresenceProps): JSX.Element | null;
|
|
88
93
|
|
|
89
|
-
export declare
|
|
94
|
+
export declare function AnimatePresenceChild({ children }: PresenceChildProps): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
90
95
|
|
|
91
96
|
declare interface AnimatePresenceProps {
|
|
92
97
|
children: ReactElement | ReactElement[];
|
|
93
98
|
presence: boolean;
|
|
94
99
|
}
|
|
95
100
|
|
|
96
|
-
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, ...restProps }: AsyncSelectProps<Option, IsMulti>) => JSX.Element;
|
|
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;
|
|
97
102
|
|
|
98
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;
|
|
99
105
|
isDisabled?: boolean;
|
|
100
106
|
options?: Options<Option>;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
|
-
export declare
|
|
109
|
+
export declare function Avatar({ icon: Icon, img, initials, status, statusPosition, size, shape, variant, inverted, stroke, className, role, ...restProps }: AvatarProps): JSX.Element;
|
|
104
110
|
|
|
105
111
|
declare const avatarContainerStyles: (props?: ({
|
|
106
112
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
@@ -110,11 +116,11 @@ declare const avatarContainerStyles: (props?: ({
|
|
|
110
116
|
stroke?: boolean | null | undefined;
|
|
111
117
|
} & ClassProp) | undefined) => string;
|
|
112
118
|
|
|
113
|
-
export declare
|
|
119
|
+
export declare function AvatarGroup({ items, size, variant, shape, max, inverted, stroke, className, role, ...restProps }: AvatarGroupProps): JSX.Element;
|
|
114
120
|
|
|
115
121
|
export declare type AvatarGroupItem = Omit<AvatarProps, 'size' | 'shape' | 'inverted' | 'stroke' | 'className'>;
|
|
116
122
|
|
|
117
|
-
export declare interface AvatarGroupProps extends Omit<
|
|
123
|
+
export declare interface AvatarGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
118
124
|
items?: AvatarGroupItem[];
|
|
119
125
|
size?: AvatarGroupSizes;
|
|
120
126
|
variant?: AvatarVariants;
|
|
@@ -128,14 +134,14 @@ export declare type AvatarGroupShapes = RemoveNull<VariantProps<typeof avatarCon
|
|
|
128
134
|
|
|
129
135
|
export declare type AvatarGroupSizes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['size'];
|
|
130
136
|
|
|
131
|
-
export declare type AvatarIcon =
|
|
137
|
+
export declare type AvatarIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
132
138
|
|
|
133
139
|
export declare type AvatarImage = {
|
|
134
140
|
src: string;
|
|
135
141
|
alt: string;
|
|
136
142
|
};
|
|
137
143
|
|
|
138
|
-
export declare interface AvatarProps extends
|
|
144
|
+
export declare interface AvatarProps extends ComponentPropsWithoutRef<'span'>, Omit<VariantProps<typeof avatarContainerStyles>, 'stroke'> {
|
|
139
145
|
icon?: AvatarIcon;
|
|
140
146
|
img?: AvatarImage;
|
|
141
147
|
initials?: string;
|
|
@@ -165,12 +171,12 @@ declare const avatarStatusStyles: (props?: ({
|
|
|
165
171
|
|
|
166
172
|
export declare type AvatarVariants = RemoveNull<VariantProps<typeof avatarContainerStyles>>['variant'];
|
|
167
173
|
|
|
168
|
-
export declare
|
|
174
|
+
export declare function Badge({ variant, size, shape, inverted, icon: Icon, children, role, className, ...restProps }: BadgeProps): JSX.Element;
|
|
169
175
|
|
|
170
176
|
export declare type BadgeAppearances = RemoveNull<VariantProps<typeof badgeVariants>>['appearance'];
|
|
171
177
|
|
|
172
|
-
export declare interface BadgeProps extends
|
|
173
|
-
icon?:
|
|
178
|
+
export declare interface BadgeProps extends ComponentPropsWithoutRef<'span'>, Omit<VariantProps<typeof badgeVariants>, 'appearance'> {
|
|
179
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
export declare type BadgeShapes = RemoveNull<VariantProps<typeof badgeVariants>>['shape'];
|
|
@@ -181,26 +187,40 @@ export declare type BadgeVariants = RemoveNull<VariantProps<typeof badgeVariants
|
|
|
181
187
|
|
|
182
188
|
declare const badgeVariants: (props?: ({
|
|
183
189
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
184
|
-
appearance?: "
|
|
190
|
+
appearance?: "text" | "icon" | "dots" | null | undefined;
|
|
185
191
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
186
192
|
shape?: "circle" | "square" | null | undefined;
|
|
187
193
|
inverted?: boolean | null | undefined;
|
|
188
194
|
hasIcon?: boolean | null | undefined;
|
|
189
195
|
} & ClassProp) | undefined) => string;
|
|
190
196
|
|
|
191
|
-
|
|
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;
|
|
192
212
|
|
|
193
213
|
export declare type BreadcrumbAppearances = RemoveNull<VariantProps<typeof breadcrumbStyles>>['appearance'];
|
|
194
214
|
|
|
195
|
-
export declare interface BreadcrumbItem extends Omit<
|
|
215
|
+
export declare interface BreadcrumbItem extends Omit<ComponentPropsWithoutRef<'a'>, 'children'> {
|
|
196
216
|
id?: string;
|
|
197
217
|
label: ReactNode;
|
|
198
|
-
icon?:
|
|
218
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
199
219
|
current?: boolean;
|
|
200
220
|
disabled?: boolean;
|
|
201
221
|
}
|
|
202
222
|
|
|
203
|
-
export declare interface BreadcrumbProps extends
|
|
223
|
+
export declare interface BreadcrumbProps extends ComponentPropsWithoutRef<'nav'> {
|
|
204
224
|
items: BreadcrumbItem[];
|
|
205
225
|
appearance?: BreadcrumbAppearances;
|
|
206
226
|
separator?: BreadcrumbSeparators;
|
|
@@ -212,11 +232,11 @@ declare const breadcrumbStyles: (props?: ({
|
|
|
212
232
|
appearance?: "outline" | "ghost" | null | undefined;
|
|
213
233
|
} & ClassProp) | undefined) => string;
|
|
214
234
|
|
|
215
|
-
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;
|
|
216
236
|
|
|
217
237
|
export declare type ButtonAppearances = RemoveNull<VariantProps<typeof buttonStyles>>['appearance'];
|
|
218
238
|
|
|
219
|
-
export declare
|
|
239
|
+
export declare function ButtonGroup({ buttons, orientation, size, inverted, role, className, ...restProps }: ButtonGroupProps): JSX.Element;
|
|
220
240
|
|
|
221
241
|
export declare interface ButtonGroupItem extends Omit<ButtonProps, 'children' | 'ref' | 'className'> {
|
|
222
242
|
children?: ReactNode;
|
|
@@ -225,20 +245,21 @@ export declare interface ButtonGroupItem extends Omit<ButtonProps, 'children' |
|
|
|
225
245
|
|
|
226
246
|
export declare type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
227
247
|
|
|
228
|
-
export declare interface ButtonGroupProps extends Omit<
|
|
248
|
+
export declare interface ButtonGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
229
249
|
buttons?: ButtonGroupItem[];
|
|
230
250
|
orientation?: ButtonGroupOrientation;
|
|
231
251
|
size?: ButtonGroupSizes;
|
|
232
252
|
inverted?: boolean;
|
|
233
|
-
role?: 'group' | string;
|
|
234
253
|
}
|
|
235
254
|
|
|
236
255
|
export declare type ButtonGroupSizes = ButtonSizes;
|
|
237
256
|
|
|
257
|
+
declare type ButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
258
|
+
|
|
238
259
|
export declare interface ButtonProps extends ComponentPropsWithRef<'button'>, RemoveNull<Omit<VariantProps<typeof buttonStyles>, 'disabled'>> {
|
|
239
|
-
children
|
|
240
|
-
leadingIcon?:
|
|
241
|
-
trailingIcon?:
|
|
260
|
+
children?: ReactNode;
|
|
261
|
+
leadingIcon?: ButtonIcon;
|
|
262
|
+
trailingIcon?: ButtonIcon;
|
|
242
263
|
}
|
|
243
264
|
|
|
244
265
|
export declare type ButtonShapes = RemoveNull<VariantProps<typeof buttonStyles>>['shape'];
|
|
@@ -253,23 +274,33 @@ declare const buttonStyles: (props?: ({
|
|
|
253
274
|
disabled?: boolean | null | undefined;
|
|
254
275
|
loading?: boolean | null | undefined;
|
|
255
276
|
fullWidth?: boolean | null | undefined;
|
|
277
|
+
iconOnly?: boolean | null | undefined;
|
|
256
278
|
inverted?: boolean | null | undefined;
|
|
257
279
|
} & ClassProp) | undefined) => string;
|
|
258
280
|
|
|
259
281
|
export declare type ButtonVariants = RemoveNull<VariantProps<typeof buttonStyles>>['variant'];
|
|
260
282
|
|
|
261
|
-
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;
|
|
262
292
|
|
|
263
293
|
declare const checkboxControlStyles: (props?: ({
|
|
264
294
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
265
295
|
shape?: "circle" | "square" | null | undefined;
|
|
296
|
+
hasHelperText?: boolean | null | undefined;
|
|
266
297
|
invalid?: boolean | null | undefined;
|
|
267
298
|
indeterminate?: boolean | null | undefined;
|
|
268
299
|
} & ClassProp) | undefined) => string;
|
|
269
300
|
|
|
270
|
-
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;
|
|
271
302
|
|
|
272
|
-
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'> {
|
|
273
304
|
value: string;
|
|
274
305
|
}
|
|
275
306
|
|
|
@@ -303,7 +334,7 @@ export declare interface CheckboxProps extends Omit<ComponentPropsWithRef<'input
|
|
|
303
334
|
indeterminate?: boolean;
|
|
304
335
|
}
|
|
305
336
|
|
|
306
|
-
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, ...restProps }: CheckboxSelectProps<Option, IsMulti>) => JSX.Element;
|
|
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;
|
|
307
338
|
|
|
308
339
|
export declare interface CheckboxSelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
309
340
|
compactDisplay?: boolean;
|
|
@@ -313,9 +344,9 @@ export declare type CheckboxShapes = RemoveNull<VariantProps<typeof checkboxCont
|
|
|
313
344
|
|
|
314
345
|
export declare type CheckboxSizes = RemoveNull<VariantProps<typeof checkboxControlStyles>>['size'];
|
|
315
346
|
|
|
316
|
-
export declare
|
|
347
|
+
export declare function Chip({ children, icon: Icon, variant, appearance, size, shape, inverted, disabled, onClose, closeLabel, className, ...restProps }: ChipProps): JSX.Element;
|
|
317
348
|
|
|
318
|
-
export declare type ChipIcon =
|
|
349
|
+
export declare type ChipIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
319
350
|
|
|
320
351
|
export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, RemoveNull<Omit<VariantProps<typeof chipStyles>, 'disabled' | 'hasLeadingVisual' | 'removable'>> {
|
|
321
352
|
children: string | number;
|
|
@@ -357,11 +388,11 @@ export declare interface CompactListProps<T extends ItemType> {
|
|
|
357
388
|
renderItem?: (item: T, index: number) => ReactNode;
|
|
358
389
|
}
|
|
359
390
|
|
|
360
|
-
export declare
|
|
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;
|
|
361
392
|
|
|
362
393
|
export declare type ConfirmationPopupAlignments = 'start' | 'center' | 'end';
|
|
363
394
|
|
|
364
|
-
export declare type ConfirmationPopupIcon =
|
|
395
|
+
export declare type ConfirmationPopupIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
365
396
|
|
|
366
397
|
declare const confirmationPopupIconStyles: (props?: ({
|
|
367
398
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -374,7 +405,7 @@ declare const confirmationPopupPanelStyles: (props?: ({
|
|
|
374
405
|
|
|
375
406
|
export declare type ConfirmationPopupPlacements = 'top' | 'right' | 'bottom' | 'left';
|
|
376
407
|
|
|
377
|
-
export declare interface ConfirmationPopupProps extends Omit<
|
|
408
|
+
export declare interface ConfirmationPopupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onCancel' | 'title'>, RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>, RemoveNull<VariantProps<typeof confirmationPopupPanelStyles>> {
|
|
378
409
|
trigger?: ReactNode;
|
|
379
410
|
title?: ReactNode;
|
|
380
411
|
description?: ReactNode;
|
|
@@ -394,6 +425,7 @@ export declare interface ConfirmationPopupProps extends Omit<HTMLAttributes<HTML
|
|
|
394
425
|
closeOnOutsideClick?: boolean;
|
|
395
426
|
closeOnCancel?: boolean;
|
|
396
427
|
closeOnAction?: boolean;
|
|
428
|
+
portalled?: boolean;
|
|
397
429
|
showArrow?: boolean;
|
|
398
430
|
showCloseButton?: boolean;
|
|
399
431
|
showCancelButton?: boolean;
|
|
@@ -409,7 +441,7 @@ export declare type ConfirmationPopupSizes = RemoveNull<VariantProps<typeof conf
|
|
|
409
441
|
|
|
410
442
|
export declare type ConfirmationPopupVariants = RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>['variant'];
|
|
411
443
|
|
|
412
|
-
export declare
|
|
444
|
+
export declare function CountryFlag({ code, name, size, className, loading, decoding, ...restProps }: CountryFlagProps): JSX.Element | null;
|
|
413
445
|
|
|
414
446
|
export declare interface CountryFlagProps extends Omit<ComponentPropsWithoutRef<'img'>, 'alt' | 'height' | 'src' | 'width'> {
|
|
415
447
|
code?: string;
|
|
@@ -419,11 +451,19 @@ export declare interface CountryFlagProps extends Omit<ComponentPropsWithoutRef<
|
|
|
419
451
|
|
|
420
452
|
export declare type CountryFlagSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
421
453
|
|
|
422
|
-
export declare
|
|
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;
|
|
423
463
|
|
|
424
464
|
export declare type DividerOrientations = RemoveNull<VariantProps<typeof dividerRootStyles>>['orientation'];
|
|
425
465
|
|
|
426
|
-
export declare interface DividerProps extends
|
|
466
|
+
export declare interface DividerProps extends ComponentPropsWithoutRef<'div'> {
|
|
427
467
|
children?: ReactNode;
|
|
428
468
|
orientation?: DividerOrientations;
|
|
429
469
|
}
|
|
@@ -433,7 +473,7 @@ declare const dividerRootStyles: (props?: ({
|
|
|
433
473
|
hasContent?: boolean | null | undefined;
|
|
434
474
|
} & ClassProp) | undefined) => string;
|
|
435
475
|
|
|
436
|
-
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;
|
|
437
477
|
|
|
438
478
|
declare const drawerPanelStyles: (props?: ({
|
|
439
479
|
placement?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
@@ -442,7 +482,7 @@ declare const drawerPanelStyles: (props?: ({
|
|
|
442
482
|
|
|
443
483
|
export declare type DrawerPlacements = RemoveNull<VariantProps<typeof drawerPanelStyles>>['placement'];
|
|
444
484
|
|
|
445
|
-
export declare interface DrawerProps extends Omit<
|
|
485
|
+
export declare interface DrawerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'>, RemoveNull<VariantProps<typeof drawerPanelStyles>> {
|
|
446
486
|
open: boolean;
|
|
447
487
|
children?: ReactNode;
|
|
448
488
|
title?: ReactNode;
|
|
@@ -462,7 +502,7 @@ export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
462
502
|
|
|
463
503
|
export declare type DrawerSizes = RemoveNull<VariantProps<typeof drawerPanelStyles>>['size'];
|
|
464
504
|
|
|
465
|
-
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;
|
|
466
506
|
|
|
467
507
|
export declare type DropdownAlignments = 'start' | 'center' | 'end';
|
|
468
508
|
|
|
@@ -513,6 +553,32 @@ export declare type DropdownTriggerAction = 'click' | 'hover';
|
|
|
513
553
|
|
|
514
554
|
export declare type DropdownVariants = ButtonVariants;
|
|
515
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
|
+
|
|
516
582
|
declare enum EThemeOptions {
|
|
517
583
|
LIGHT = "light",
|
|
518
584
|
DARK = "dark"
|
|
@@ -524,7 +590,7 @@ export declare enum ETrend {
|
|
|
524
590
|
neutral = "neutral"
|
|
525
591
|
}
|
|
526
592
|
|
|
527
|
-
export declare
|
|
593
|
+
export declare function Feedback({ ref, className, defaultValue, disabled, getLabelText, name, onValueChange, options, readOnly, size, value, variant, 'aria-label': ariaLabel, ...restProps }: FeedbackProps): JSX.Element;
|
|
528
594
|
|
|
529
595
|
export declare type FeedbackGetLabelText = (option: FeedbackOption, index: number, total: number) => string;
|
|
530
596
|
|
|
@@ -569,7 +635,7 @@ export declare const getGrowthTrend: ({ currentValue, pastValue, isPercentage, h
|
|
|
569
635
|
|
|
570
636
|
export declare const getTrendVariant: (value: number | null | undefined, customThreshold?: number) => ETrend;
|
|
571
637
|
|
|
572
|
-
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, }: GroupedSelectProps<Option>) => JSX.Element;
|
|
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;
|
|
573
639
|
|
|
574
640
|
export declare interface GroupedSelectOption<T = string | number> extends SelectOption<T> {
|
|
575
641
|
group: string;
|
|
@@ -601,51 +667,29 @@ export declare interface GroupedSelectProps<Option extends GroupedSelectOption =
|
|
|
601
667
|
placeholder?: ReactNode;
|
|
602
668
|
readOnly?: boolean;
|
|
603
669
|
readonly?: boolean;
|
|
604
|
-
ref?: Ref<
|
|
670
|
+
ref?: Ref<SelectInstance<Option, true, GroupBase<Option>>>;
|
|
605
671
|
required?: boolean;
|
|
606
672
|
size?: SelectSizes;
|
|
607
673
|
styles?: ComponentProps<typeof default_2<Option, true>>['styles'];
|
|
608
674
|
value?: MultiValue<Option>;
|
|
609
675
|
variant?: SelectVariants;
|
|
676
|
+
'aria-describedby'?: string;
|
|
677
|
+
'aria-invalid'?: SelectAriaInvalid;
|
|
610
678
|
}
|
|
611
679
|
|
|
612
680
|
export declare type ILabelProps = LabelProps;
|
|
613
681
|
|
|
614
|
-
export declare
|
|
615
|
-
hint?: IMetricHint;
|
|
616
|
-
items?: IMetricValueItem[];
|
|
617
|
-
label?: ILabelProps;
|
|
618
|
-
showDivider?: boolean;
|
|
619
|
-
value?: IMetricValue;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
export declare interface IMetricHint {
|
|
623
|
-
color?: TMetricCardColorVariant;
|
|
624
|
-
text?: ReactNode;
|
|
625
|
-
trend?: ETrend;
|
|
626
|
-
trendInverted?: boolean;
|
|
627
|
-
trendPosition?: TTrendPosition;
|
|
628
|
-
}
|
|
682
|
+
export declare type IMetricCardProps = MetricCardProps;
|
|
629
683
|
|
|
630
|
-
export declare
|
|
631
|
-
color?: TMetricCardColorVariant;
|
|
632
|
-
supportText?: ReactNode;
|
|
633
|
-
supportTextSize?: TValueSupportSize;
|
|
634
|
-
text?: ReactNode;
|
|
635
|
-
trend?: ETrend;
|
|
636
|
-
trendInverted?: boolean;
|
|
637
|
-
}
|
|
684
|
+
export declare type IMetricHint = MetricHint;
|
|
638
685
|
|
|
639
|
-
export declare
|
|
640
|
-
hint?: IMetricHint;
|
|
641
|
-
value?: IMetricValue;
|
|
642
|
-
}
|
|
686
|
+
export declare type IMetricValue = MetricValue;
|
|
643
687
|
|
|
644
|
-
export declare type
|
|
688
|
+
export declare type IMetricValueItem = MetricValueItemData;
|
|
645
689
|
|
|
646
|
-
export declare
|
|
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;
|
|
647
691
|
|
|
648
|
-
export declare type InputIcon =
|
|
692
|
+
export declare type InputIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
649
693
|
|
|
650
694
|
export declare interface InputProps extends Omit<ComponentPropsWithRef<'input'>, 'children' | 'prefix' | 'size'> {
|
|
651
695
|
caption?: ReactNode;
|
|
@@ -653,14 +697,17 @@ export declare interface InputProps extends Omit<ComponentPropsWithRef<'input'>,
|
|
|
653
697
|
clearable?: boolean;
|
|
654
698
|
containerClassName?: string;
|
|
655
699
|
error?: ReactNode;
|
|
700
|
+
fieldRef?: Ref<HTMLDivElement>;
|
|
656
701
|
fullWidth?: boolean;
|
|
657
702
|
inputClassName?: string;
|
|
658
703
|
label?: ReactNode;
|
|
659
704
|
labelClassName?: string;
|
|
660
705
|
leadingIcon?: InputIcon;
|
|
661
706
|
onClear?: () => void;
|
|
707
|
+
onTrailingIconClick?: MouseEventHandler<HTMLButtonElement>;
|
|
662
708
|
size?: InputSizes;
|
|
663
709
|
trailingIcon?: InputIcon;
|
|
710
|
+
trailingIconLabel?: string;
|
|
664
711
|
variant?: InputVariants;
|
|
665
712
|
}
|
|
666
713
|
|
|
@@ -684,9 +731,7 @@ export declare interface InternalTabProps extends TabProps {
|
|
|
684
731
|
|
|
685
732
|
declare type ItemType = PrimitiveValue | ObjectItem;
|
|
686
733
|
|
|
687
|
-
export declare
|
|
688
|
-
|
|
689
|
-
export declare const Label: FC<LabelProps>;
|
|
734
|
+
export declare function Label({ children, className, disabled, endAdornment, labelWeight, position, required, size, text, variant, ...restProps }: LabelProps): JSX.Element;
|
|
690
735
|
|
|
691
736
|
export declare type LabelPosition = 'top' | 'bottom' | 'right' | 'left';
|
|
692
737
|
|
|
@@ -707,9 +752,9 @@ export declare type LabelVariant = 'primary' | 'secondary' | 'tertiary';
|
|
|
707
752
|
|
|
708
753
|
export declare type LabelWeight = 'semibold' | 'medium' | 'normal';
|
|
709
754
|
|
|
710
|
-
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;
|
|
711
756
|
|
|
712
|
-
export declare type LinkIcon =
|
|
757
|
+
export declare type LinkIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
713
758
|
|
|
714
759
|
export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'children'>, RemoveNull<Omit<VariantProps<typeof linkStyles>, 'disabled' | 'truncate'>> {
|
|
715
760
|
children: ReactNode;
|
|
@@ -737,7 +782,7 @@ export declare type LinkVariants = RemoveNull<VariantProps<typeof linkStyles>>['
|
|
|
737
782
|
|
|
738
783
|
export declare const ListBox: ForwardRefExoticComponent<ListBoxProps & RefAttributes<HTMLDivElement>>;
|
|
739
784
|
|
|
740
|
-
export declare type ListBoxIcon =
|
|
785
|
+
export declare type ListBoxIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
741
786
|
|
|
742
787
|
export declare interface ListBoxItemData {
|
|
743
788
|
disabled?: boolean;
|
|
@@ -747,16 +792,19 @@ export declare interface ListBoxItemData {
|
|
|
747
792
|
value: string;
|
|
748
793
|
}
|
|
749
794
|
|
|
750
|
-
export declare interface ListBoxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
795
|
+
export declare interface ListBoxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'role'> {
|
|
751
796
|
children?: ReactNode;
|
|
752
|
-
itemRole?:
|
|
797
|
+
itemRole?: ListItemRole;
|
|
753
798
|
items?: ListBoxItemData[];
|
|
754
799
|
leadingSlot?: ReactNode;
|
|
755
800
|
onItemSelect?: (item: ListBoxItemData) => void;
|
|
801
|
+
role?: ListBoxRole;
|
|
756
802
|
selectedValue?: string;
|
|
757
803
|
size?: ListBoxSizes;
|
|
758
804
|
}
|
|
759
805
|
|
|
806
|
+
export declare type ListBoxRole = 'listbox' | 'menu';
|
|
807
|
+
|
|
760
808
|
export declare type ListBoxSizes = 'sm' | 'md' | 'lg';
|
|
761
809
|
|
|
762
810
|
export declare const ListItem: ForwardRefExoticComponent<ListItemProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -764,19 +812,54 @@ export declare const ListItem: ForwardRefExoticComponent<ListItemProps & RefAttr
|
|
|
764
812
|
export declare interface ListItemProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'disabled' | 'onSelect' | 'value'> {
|
|
765
813
|
item: ListBoxItemData;
|
|
766
814
|
onSelect?: (item: ListBoxItemData) => void;
|
|
815
|
+
role?: ListItemRole;
|
|
767
816
|
selected?: boolean;
|
|
768
817
|
size?: ListBoxSizes;
|
|
769
818
|
}
|
|
770
819
|
|
|
820
|
+
export declare type ListItemRole = 'option' | 'menuitem';
|
|
821
|
+
|
|
771
822
|
export declare const mergeRefs: <T>(...refs: Array<PossibleRef<T>>) => (node: T | null) => (() => void) | undefined;
|
|
772
823
|
|
|
773
|
-
export declare
|
|
824
|
+
export declare function MetricCard({ className, hint, items, label, showDivider, value, ...restProps }: MetricCardProps): JSX.Element;
|
|
774
825
|
|
|
775
|
-
export declare
|
|
826
|
+
export declare type MetricCardColorVariant = 'secondary' | 'warning' | 'success' | 'error';
|
|
776
827
|
|
|
777
|
-
export declare
|
|
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
|
+
}
|
|
778
835
|
|
|
779
|
-
export declare
|
|
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
|
+
}
|
|
852
|
+
|
|
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>>;
|
|
780
863
|
|
|
781
864
|
declare const modalPanelStyles: (props?: ({
|
|
782
865
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -881,7 +964,7 @@ export declare interface OrgChartRef {
|
|
|
881
964
|
collapseAll: () => void;
|
|
882
965
|
}
|
|
883
966
|
|
|
884
|
-
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;
|
|
885
968
|
|
|
886
969
|
export declare type PopoverAlignments = 'start' | 'center' | 'end';
|
|
887
970
|
|
|
@@ -930,7 +1013,7 @@ declare interface PresenceChildProps {
|
|
|
930
1013
|
|
|
931
1014
|
declare type PrimitiveValue = string | number | boolean | bigint | symbol | null | undefined;
|
|
932
1015
|
|
|
933
|
-
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;
|
|
934
1017
|
|
|
935
1018
|
export declare type ProgressBarAppearances = NonNullable<RemoveNull<VariantProps<typeof progressBarRootStyles>>['appearance']>;
|
|
936
1019
|
|
|
@@ -976,14 +1059,15 @@ export declare interface ProgressBarValueFormatterArgs {
|
|
|
976
1059
|
|
|
977
1060
|
export declare type ProgressBarVariants = ButtonVariants;
|
|
978
1061
|
|
|
979
|
-
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;
|
|
980
1063
|
|
|
981
1064
|
declare const radioControlStyles: (props?: ({
|
|
982
1065
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1066
|
+
hasHelperText?: boolean | null | undefined;
|
|
983
1067
|
invalid?: boolean | null | undefined;
|
|
984
1068
|
} & ClassProp) | undefined) => string;
|
|
985
1069
|
|
|
986
|
-
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;
|
|
987
1071
|
|
|
988
1072
|
export declare interface RadioGroupOption extends Omit<RadioProps, 'checked' | 'defaultChecked' | 'children' | 'error' | 'name' | 'ref' | 'required' | 'size' | 'type' | 'value'> {
|
|
989
1073
|
value: string;
|
|
@@ -1016,7 +1100,7 @@ export declare interface RadioProps extends Omit<ComponentPropsWithRef<'input'>,
|
|
|
1016
1100
|
|
|
1017
1101
|
export declare type RadioSizes = RemoveNull<VariantProps<typeof radioControlStyles>>['size'];
|
|
1018
1102
|
|
|
1019
|
-
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;
|
|
1020
1104
|
|
|
1021
1105
|
export declare type RatingPrecision = 0.5 | 1;
|
|
1022
1106
|
|
|
@@ -1043,7 +1127,9 @@ export declare type RemoveNull<T> = {
|
|
|
1043
1127
|
[K in keyof T]: Exclude<T[K], null>;
|
|
1044
1128
|
};
|
|
1045
1129
|
|
|
1046
|
-
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, ...restProps }: SelectProps<Option, IsMulti>) => JSX.Element;
|
|
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';
|
|
1047
1133
|
|
|
1048
1134
|
export declare interface SelectOption<T = string | number> {
|
|
1049
1135
|
label: ReactNode;
|
|
@@ -1054,6 +1140,8 @@ export declare interface SelectOption<T = string | number> {
|
|
|
1054
1140
|
}
|
|
1055
1141
|
|
|
1056
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;
|
|
1057
1145
|
caption?: ReactNode;
|
|
1058
1146
|
containerClassName?: string;
|
|
1059
1147
|
createText?: string;
|
|
@@ -1079,7 +1167,7 @@ export declare type SelectSizes = InputSizes;
|
|
|
1079
1167
|
|
|
1080
1168
|
export declare type SelectVariants = InputVariants;
|
|
1081
1169
|
|
|
1082
|
-
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, ...restProps }: SelectWithApplyProps<Option, IsMulti>) => JSX.Element;
|
|
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;
|
|
1083
1171
|
|
|
1084
1172
|
export declare interface SelectWithApplyProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
1085
1173
|
allOptionLabel?: string;
|
|
@@ -1087,7 +1175,7 @@ export declare interface SelectWithApplyProps<Option extends SelectOption = Sele
|
|
|
1087
1175
|
compactDisplay?: boolean;
|
|
1088
1176
|
}
|
|
1089
1177
|
|
|
1090
|
-
export declare
|
|
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;
|
|
1091
1179
|
|
|
1092
1180
|
export declare type SliderLabelSizes = RemoveNull<VariantProps<typeof sliderLabelStyles>>['size'];
|
|
1093
1181
|
|
|
@@ -1142,7 +1230,7 @@ declare const sliderTrackStyles: (props?: ({
|
|
|
1142
1230
|
|
|
1143
1231
|
export declare type SliderValue = number | [number, number];
|
|
1144
1232
|
|
|
1145
|
-
export declare
|
|
1233
|
+
export declare function Tab({ children, className, closeLabel, disabled, endAdornment, index, onClose, panelId, selected, startAdornment, statusDot, ...restProps }: InternalTabProps): JSX.Element;
|
|
1146
1234
|
|
|
1147
1235
|
export declare type TabKeyboardEvent = KeyboardEvent_2<HTMLDivElement>;
|
|
1148
1236
|
|
|
@@ -1212,7 +1300,7 @@ export declare const TableRow: ForwardRefExoticComponent<Omit< DetailedHTMLProps
|
|
|
1212
1300
|
|
|
1213
1301
|
export declare interface TableSectionProps {
|
|
1214
1302
|
children: ReactNode;
|
|
1215
|
-
className?: string;
|
|
1303
|
+
className?: string | undefined;
|
|
1216
1304
|
}
|
|
1217
1305
|
|
|
1218
1306
|
export declare type TableSizes = InputSizes;
|
|
@@ -1222,7 +1310,7 @@ declare const tabListStyles: (props?: ({
|
|
|
1222
1310
|
variant?: "underline" | "pill" | null | undefined;
|
|
1223
1311
|
} & ClassProp) | undefined) => string;
|
|
1224
1312
|
|
|
1225
|
-
export declare
|
|
1313
|
+
export declare function TabPanel({ children, className, ...restProps }: TabPanelProps): JSX.Element;
|
|
1226
1314
|
|
|
1227
1315
|
export declare type TabPanelOrientation = RemoveNull<VariantProps<typeof tabPanelStyles>>['orientation'];
|
|
1228
1316
|
|
|
@@ -1252,7 +1340,7 @@ declare const tabRootStyles: (props?: ({
|
|
|
1252
1340
|
disabled?: boolean | null | undefined;
|
|
1253
1341
|
} & ClassProp) | undefined) => string;
|
|
1254
1342
|
|
|
1255
|
-
export declare
|
|
1343
|
+
export declare function Tabs({ children, className, defaultValue, disabled, id, onValueChange, orientation, size, value, variant, ...restProps }: TabsProps): JSX.Element;
|
|
1256
1344
|
|
|
1257
1345
|
export declare interface TabsContextValue {
|
|
1258
1346
|
baseId: string;
|
|
@@ -1264,7 +1352,7 @@ export declare interface TabsContextValue {
|
|
|
1264
1352
|
variant: NonNullable<TabsProps['variant']>;
|
|
1265
1353
|
}
|
|
1266
1354
|
|
|
1267
|
-
export declare
|
|
1355
|
+
export declare function TabsList({ children, className, ...restProps }: TabsListProps): JSX.Element;
|
|
1268
1356
|
|
|
1269
1357
|
export declare interface TabsListContextValue extends TabsContextValue {
|
|
1270
1358
|
registerTab: (index: number, node: HTMLDivElement | null) => void;
|
|
@@ -1304,7 +1392,7 @@ export declare type TabsSizes = RemoveNull<VariantProps<typeof tabRootStyles>>['
|
|
|
1304
1392
|
|
|
1305
1393
|
export declare type TabsVariant = RemoveNull<VariantProps<typeof tabRootStyles>>['variant'];
|
|
1306
1394
|
|
|
1307
|
-
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;
|
|
1308
1396
|
|
|
1309
1397
|
export declare interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'children' | 'size'> {
|
|
1310
1398
|
caption?: ReactNode;
|
|
@@ -1322,30 +1410,31 @@ export declare type TextAreaSizes = ButtonSizes;
|
|
|
1322
1410
|
|
|
1323
1411
|
export declare type TextAreaVariants = ButtonVariants;
|
|
1324
1412
|
|
|
1325
|
-
export declare type TMetricCardColorVariant =
|
|
1413
|
+
export declare type TMetricCardColorVariant = MetricCardColorVariant;
|
|
1326
1414
|
|
|
1327
|
-
export declare
|
|
1415
|
+
export declare function Toaster({ className, position, toastOptions, ...restProps }: ToasterProps): JSX.Element;
|
|
1328
1416
|
|
|
1329
1417
|
export declare interface ToastProps extends AlertProps {
|
|
1418
|
+
dismissable?: boolean;
|
|
1330
1419
|
duration?: number;
|
|
1331
1420
|
position?: ToasterProps['position'];
|
|
1332
|
-
dismissable?: boolean;
|
|
1333
1421
|
}
|
|
1334
1422
|
|
|
1335
|
-
export declare const Tooltip: ForwardRefExoticComponent<
|
|
1423
|
+
export declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<TooltipRefProps>>;
|
|
1336
1424
|
|
|
1337
1425
|
export declare interface TooltipProps extends Omit<ITooltip, 'variant'> {
|
|
1338
1426
|
variant?: 'primary' | 'secondary';
|
|
1339
|
-
ref?: Ref<TooltipRefProps>;
|
|
1340
1427
|
}
|
|
1341
1428
|
|
|
1429
|
+
export { TooltipRefProps }
|
|
1430
|
+
|
|
1342
1431
|
export declare const TREND_INDICATOR_COLORS: {
|
|
1343
1432
|
positive: string;
|
|
1344
1433
|
negative: string;
|
|
1345
1434
|
neutral: string;
|
|
1346
1435
|
};
|
|
1347
1436
|
|
|
1348
|
-
export declare
|
|
1437
|
+
export declare function TrendIndicator({ className, colorizeValueText, inverted, label, size, strokeWidth, value, variant, ...restProps }: TrendIndicatorProps): JSX.Element;
|
|
1349
1438
|
|
|
1350
1439
|
export declare const trendIndicatorColors: {
|
|
1351
1440
|
positive: string;
|
|
@@ -1353,10 +1442,9 @@ export declare const trendIndicatorColors: {
|
|
|
1353
1442
|
neutral: string;
|
|
1354
1443
|
};
|
|
1355
1444
|
|
|
1356
|
-
export declare interface TrendIndicatorProps {
|
|
1357
|
-
className?: HTMLProps<HTMLElement>['className'];
|
|
1445
|
+
export declare interface TrendIndicatorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1358
1446
|
colorizeValueText?: boolean;
|
|
1359
|
-
inverted?: boolean
|
|
1447
|
+
inverted?: boolean;
|
|
1360
1448
|
label?: ReactNode;
|
|
1361
1449
|
size?: TrendIndicatorSize;
|
|
1362
1450
|
strokeWidth?: TrendIndicatorStrokeWidth;
|
|
@@ -1368,9 +1456,11 @@ export declare type TrendIndicatorSize = 'sm' | 'md' | 'lg';
|
|
|
1368
1456
|
|
|
1369
1457
|
export declare type TrendIndicatorStrokeWidth = 'thin' | 'thick' | 'thicker';
|
|
1370
1458
|
|
|
1371
|
-
|
|
1459
|
+
declare type TrendPosition = 'left' | 'right';
|
|
1372
1460
|
|
|
1373
|
-
export declare type
|
|
1461
|
+
export declare type TTrendPosition = TrendPosition;
|
|
1462
|
+
|
|
1463
|
+
export declare type TValueSupportSize = ValueSupportSize;
|
|
1374
1464
|
|
|
1375
1465
|
export declare const useTheme: () => {
|
|
1376
1466
|
theme: EThemeOptions;
|
|
@@ -1378,7 +1468,7 @@ export declare const useTheme: () => {
|
|
|
1378
1468
|
setTheme: (theme: EThemeOptions) => void;
|
|
1379
1469
|
};
|
|
1380
1470
|
|
|
1381
|
-
export declare
|
|
1471
|
+
export declare function useToast(): {
|
|
1382
1472
|
toast: (props: ToastProps) => string | number;
|
|
1383
1473
|
default: (props: Omit<ToastProps, "variant">) => string | number;
|
|
1384
1474
|
primary: (props: Omit<ToastProps, "variant">) => string | number;
|
|
@@ -1392,4 +1482,6 @@ export declare const useToast: () => {
|
|
|
1392
1482
|
|
|
1393
1483
|
export declare const useToggle: () => readonly [boolean, () => void];
|
|
1394
1484
|
|
|
1485
|
+
declare type ValueSupportSize = 'sm' | 'lg';
|
|
1486
|
+
|
|
1395
1487
|
export { }
|