@tanishraj/ui-kit 2.4.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals.css +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +462 -53
- package/dist/index.es.js +155 -100
- package/dist/index.es.js.map +1 -1
- package/package.json +24 -22
- package/readme.md +161 -539
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
|
+
import { ActionMeta } from 'react-select';
|
|
1
2
|
import { AnchorHTMLAttributes } from 'react';
|
|
3
|
+
import { AsyncCreatableProps } from 'react-select/async-creatable';
|
|
4
|
+
import { AsyncProps } from 'react-select/async';
|
|
2
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
6
|
import { ClassValue } from 'clsx';
|
|
7
|
+
import { ComponentProps } from 'react';
|
|
4
8
|
import { ComponentPropsWithoutRef } from 'react';
|
|
5
9
|
import { ComponentPropsWithRef } from 'react';
|
|
10
|
+
import { CreatableProps } from 'react-select/creatable';
|
|
11
|
+
import { default as default_2 } from 'react-select';
|
|
12
|
+
import { DetailedHTMLProps } from 'react';
|
|
6
13
|
import { FC } from 'react';
|
|
7
14
|
import { FieldsetHTMLAttributes } from 'react';
|
|
8
15
|
import { ForwardRefExoticComponent } from 'react';
|
|
16
|
+
import { GroupBase } from 'react-select';
|
|
9
17
|
import { HTMLAttributes } from 'react';
|
|
18
|
+
import { HTMLProps } from 'react';
|
|
19
|
+
import { ITooltip } from 'react-tooltip';
|
|
20
|
+
import { JSX } from 'react';
|
|
21
|
+
import { Key } from 'react';
|
|
10
22
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
23
|
+
import { LabelHTMLAttributes } from 'react';
|
|
11
24
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
25
|
+
import { MultiValue } from 'react-select';
|
|
26
|
+
import { Options } from 'react-select';
|
|
12
27
|
import { Placement } from '@floating-ui/react';
|
|
13
28
|
import { ReactElement } from 'react';
|
|
14
29
|
import { ReactNode } from 'react';
|
|
15
30
|
import { Ref } from 'react';
|
|
16
31
|
import { RefAttributes } from 'react';
|
|
17
32
|
import { RefObject } from 'react';
|
|
18
|
-
import {
|
|
33
|
+
import { SelectInstance } from 'react-select';
|
|
19
34
|
import { SVGProps } from 'react';
|
|
20
35
|
import { ToasterProps } from 'sonner';
|
|
36
|
+
import { TooltipRefProps } from 'react-tooltip';
|
|
21
37
|
import { VariantProps } from 'class-variance-authority';
|
|
22
38
|
|
|
23
39
|
export declare const Accordion: FC<AccordionProps>;
|
|
@@ -29,7 +45,7 @@ export declare interface AccordionItem {
|
|
|
29
45
|
disabled?: boolean;
|
|
30
46
|
}
|
|
31
47
|
|
|
32
|
-
export declare interface AccordionProps extends ComponentPropsWithRef<'div'>,
|
|
48
|
+
export declare interface AccordionProps extends ComponentPropsWithRef<'div'>, RemoveNull<VariantProps<typeof accordionRootStyles>> {
|
|
33
49
|
items: AccordionItem[];
|
|
34
50
|
type?: AccordionType;
|
|
35
51
|
value?: string | string[];
|
|
@@ -42,24 +58,24 @@ declare const accordionRootStyles: (props?: ({
|
|
|
42
58
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
43
59
|
} & ClassProp) | undefined) => string;
|
|
44
60
|
|
|
45
|
-
export declare type AccordionSizes =
|
|
61
|
+
export declare type AccordionSizes = RemoveNull<VariantProps<typeof accordionRootStyles>>['size'];
|
|
46
62
|
|
|
47
63
|
export declare type AccordionType = 'single' | 'multiple';
|
|
48
64
|
|
|
49
65
|
export declare const Alert: FC<AlertProps>;
|
|
50
66
|
|
|
51
|
-
export declare type AlertAppearances =
|
|
67
|
+
export declare type AlertAppearances = RemoveNull<VariantProps<typeof alertWrapperStyles>>['appearance'];
|
|
52
68
|
|
|
53
|
-
export declare interface AlertProps extends
|
|
69
|
+
export declare interface AlertProps extends RemoveNull<VariantProps<typeof alertWrapperStyles>> {
|
|
54
70
|
title?: string;
|
|
55
71
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
56
72
|
children?: ReactNode;
|
|
57
73
|
onClose?: () => void;
|
|
58
74
|
}
|
|
59
75
|
|
|
60
|
-
export declare type AlertSizes =
|
|
76
|
+
export declare type AlertSizes = RemoveNull<VariantProps<typeof alertWrapperStyles>>['size'];
|
|
61
77
|
|
|
62
|
-
export declare type AlertVariants =
|
|
78
|
+
export declare type AlertVariants = RemoveNull<VariantProps<typeof alertWrapperStyles>>['variant'];
|
|
63
79
|
|
|
64
80
|
declare const alertWrapperStyles: (props?: ({
|
|
65
81
|
appearance?: "filled" | "outline" | "dashed" | null | undefined;
|
|
@@ -77,6 +93,13 @@ declare interface AnimatePresenceProps {
|
|
|
77
93
|
presence: boolean;
|
|
78
94
|
}
|
|
79
95
|
|
|
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;
|
|
97
|
+
|
|
98
|
+
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'> {
|
|
99
|
+
isDisabled?: boolean;
|
|
100
|
+
options?: Options<Option>;
|
|
101
|
+
}
|
|
102
|
+
|
|
80
103
|
export declare const Avatar: FC<AvatarProps>;
|
|
81
104
|
|
|
82
105
|
declare const avatarContainerStyles: (props?: ({
|
|
@@ -101,9 +124,9 @@ export declare interface AvatarGroupProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
101
124
|
stroke?: boolean;
|
|
102
125
|
}
|
|
103
126
|
|
|
104
|
-
export declare type AvatarGroupShapes =
|
|
127
|
+
export declare type AvatarGroupShapes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['shape'];
|
|
105
128
|
|
|
106
|
-
export declare type AvatarGroupSizes =
|
|
129
|
+
export declare type AvatarGroupSizes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['size'];
|
|
107
130
|
|
|
108
131
|
export declare type AvatarIcon = FC<SVGProps<SVGSVGElement>>;
|
|
109
132
|
|
|
@@ -125,11 +148,11 @@ export declare interface AvatarProps extends HTMLAttributes<HTMLSpanElement>, Om
|
|
|
125
148
|
stroke?: boolean;
|
|
126
149
|
}
|
|
127
150
|
|
|
128
|
-
export declare type AvatarShapes =
|
|
151
|
+
export declare type AvatarShapes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['shape'];
|
|
129
152
|
|
|
130
|
-
export declare type AvatarSizes =
|
|
153
|
+
export declare type AvatarSizes = RemoveNull<VariantProps<typeof avatarContainerStyles>>['size'];
|
|
131
154
|
|
|
132
|
-
export declare type AvatarStatus =
|
|
155
|
+
export declare type AvatarStatus = RemoveNull<VariantProps<typeof avatarStatusStyles>['status']>;
|
|
133
156
|
|
|
134
157
|
export declare type AvatarStatusPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
135
158
|
|
|
@@ -140,21 +163,21 @@ declare const avatarStatusStyles: (props?: ({
|
|
|
140
163
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
141
164
|
} & ClassProp) | undefined) => string;
|
|
142
165
|
|
|
143
|
-
export declare type AvatarVariants =
|
|
166
|
+
export declare type AvatarVariants = RemoveNull<VariantProps<typeof avatarContainerStyles>>['variant'];
|
|
144
167
|
|
|
145
168
|
export declare const Badge: FC<BadgeProps>;
|
|
146
169
|
|
|
147
|
-
export declare type BadgeAppearances =
|
|
170
|
+
export declare type BadgeAppearances = RemoveNull<VariantProps<typeof badgeVariants>>['appearance'];
|
|
148
171
|
|
|
149
172
|
export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement>, Omit<VariantProps<typeof badgeVariants>, 'appearance'> {
|
|
150
173
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
151
174
|
}
|
|
152
175
|
|
|
153
|
-
export declare type BadgeShapes =
|
|
176
|
+
export declare type BadgeShapes = RemoveNull<VariantProps<typeof badgeVariants>>['shape'];
|
|
154
177
|
|
|
155
|
-
export declare type BadgeSizes =
|
|
178
|
+
export declare type BadgeSizes = RemoveNull<VariantProps<typeof badgeVariants>>['size'];
|
|
156
179
|
|
|
157
|
-
export declare type BadgeVariants =
|
|
180
|
+
export declare type BadgeVariants = RemoveNull<VariantProps<typeof badgeVariants>>['variant'];
|
|
158
181
|
|
|
159
182
|
declare const badgeVariants: (props?: ({
|
|
160
183
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
@@ -167,7 +190,7 @@ declare const badgeVariants: (props?: ({
|
|
|
167
190
|
|
|
168
191
|
export declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
169
192
|
|
|
170
|
-
export declare type BreadcrumbAppearances =
|
|
193
|
+
export declare type BreadcrumbAppearances = RemoveNull<VariantProps<typeof breadcrumbStyles>>['appearance'];
|
|
171
194
|
|
|
172
195
|
export declare interface BreadcrumbItem extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
|
|
173
196
|
id?: string;
|
|
@@ -191,7 +214,7 @@ declare const breadcrumbStyles: (props?: ({
|
|
|
191
214
|
|
|
192
215
|
export declare const Button: FC<ButtonProps>;
|
|
193
216
|
|
|
194
|
-
export declare type ButtonAppearances =
|
|
217
|
+
export declare type ButtonAppearances = RemoveNull<VariantProps<typeof buttonStyles>>['appearance'];
|
|
195
218
|
|
|
196
219
|
export declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
197
220
|
|
|
@@ -218,9 +241,9 @@ export declare interface ButtonProps extends ComponentPropsWithRef<'button'>, Re
|
|
|
218
241
|
trailingIcon?: FC<SVGProps<SVGSVGElement>>;
|
|
219
242
|
}
|
|
220
243
|
|
|
221
|
-
export declare type ButtonShapes =
|
|
244
|
+
export declare type ButtonShapes = RemoveNull<VariantProps<typeof buttonStyles>>['shape'];
|
|
222
245
|
|
|
223
|
-
export declare type ButtonSizes =
|
|
246
|
+
export declare type ButtonSizes = RemoveNull<VariantProps<typeof buttonStyles>>['size'];
|
|
224
247
|
|
|
225
248
|
declare const buttonStyles: (props?: ({
|
|
226
249
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -233,7 +256,7 @@ declare const buttonStyles: (props?: ({
|
|
|
233
256
|
inverted?: boolean | null | undefined;
|
|
234
257
|
} & ClassProp) | undefined) => string;
|
|
235
258
|
|
|
236
|
-
export declare type ButtonVariants =
|
|
259
|
+
export declare type ButtonVariants = RemoveNull<VariantProps<typeof buttonStyles>>['variant'];
|
|
237
260
|
|
|
238
261
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
239
262
|
|
|
@@ -280,15 +303,21 @@ export declare interface CheckboxProps extends Omit<ComponentPropsWithRef<'input
|
|
|
280
303
|
indeterminate?: boolean;
|
|
281
304
|
}
|
|
282
305
|
|
|
283
|
-
export declare
|
|
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;
|
|
307
|
+
|
|
308
|
+
export declare interface CheckboxSelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
309
|
+
compactDisplay?: boolean;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare type CheckboxShapes = RemoveNull<VariantProps<typeof checkboxControlStyles>>['shape'];
|
|
284
313
|
|
|
285
|
-
export declare type CheckboxSizes =
|
|
314
|
+
export declare type CheckboxSizes = RemoveNull<VariantProps<typeof checkboxControlStyles>>['size'];
|
|
286
315
|
|
|
287
316
|
export declare const Chip: FC<ChipProps>;
|
|
288
317
|
|
|
289
318
|
export declare type ChipIcon = FC<SVGProps<SVGSVGElement>>;
|
|
290
319
|
|
|
291
|
-
export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,
|
|
320
|
+
export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, RemoveNull<Omit<VariantProps<typeof chipStyles>, 'disabled' | 'hasLeadingVisual' | 'removable'>> {
|
|
292
321
|
children: string | number;
|
|
293
322
|
icon?: ChipIcon;
|
|
294
323
|
disabled?: boolean;
|
|
@@ -296,9 +325,9 @@ export declare interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>
|
|
|
296
325
|
closeLabel?: string;
|
|
297
326
|
}
|
|
298
327
|
|
|
299
|
-
export declare type ChipShapes =
|
|
328
|
+
export declare type ChipShapes = RemoveNull<VariantProps<typeof chipStyles>>['shape'];
|
|
300
329
|
|
|
301
|
-
export declare type ChipSizes =
|
|
330
|
+
export declare type ChipSizes = RemoveNull<VariantProps<typeof chipStyles>>['size'];
|
|
302
331
|
|
|
303
332
|
declare const chipStyles: (props?: ({
|
|
304
333
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
@@ -311,13 +340,88 @@ declare const chipStyles: (props?: ({
|
|
|
311
340
|
inverted?: boolean | null | undefined;
|
|
312
341
|
} & ClassProp) | undefined) => string;
|
|
313
342
|
|
|
314
|
-
export declare type ChipVariants =
|
|
343
|
+
export declare type ChipVariants = RemoveNull<VariantProps<typeof chipStyles>>['variant'];
|
|
315
344
|
|
|
316
345
|
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
317
346
|
|
|
347
|
+
export declare const CompactList: <T extends ItemType>({ badgeProps, displayKey, includeAll, items, lineClampSize, maxVisible, popoverClassName, renderItem, }: CompactListProps<T>) => JSX.Element | null;
|
|
348
|
+
|
|
349
|
+
export declare interface CompactListProps<T extends ItemType> {
|
|
350
|
+
badgeProps?: Omit<BadgeProps, 'children'>;
|
|
351
|
+
displayKey?: T extends ObjectItem ? keyof T : never;
|
|
352
|
+
includeAll?: boolean;
|
|
353
|
+
items: T[];
|
|
354
|
+
lineClampSize?: number;
|
|
355
|
+
maxVisible?: number;
|
|
356
|
+
popoverClassName?: string;
|
|
357
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export declare const ConfirmationPopup: FC<ConfirmationPopupProps>;
|
|
361
|
+
|
|
362
|
+
export declare type ConfirmationPopupAlignments = 'start' | 'center' | 'end';
|
|
363
|
+
|
|
364
|
+
export declare type ConfirmationPopupIcon = FC<SVGProps<SVGSVGElement>>;
|
|
365
|
+
|
|
366
|
+
declare const confirmationPopupIconStyles: (props?: ({
|
|
367
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
368
|
+
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
369
|
+
} & ClassProp) | undefined) => string;
|
|
370
|
+
|
|
371
|
+
declare const confirmationPopupPanelStyles: (props?: ({
|
|
372
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
373
|
+
} & ClassProp) | undefined) => string;
|
|
374
|
+
|
|
375
|
+
export declare type ConfirmationPopupPlacements = 'top' | 'right' | 'bottom' | 'left';
|
|
376
|
+
|
|
377
|
+
export declare interface ConfirmationPopupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onCancel' | 'title'>, RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>, RemoveNull<VariantProps<typeof confirmationPopupPanelStyles>> {
|
|
378
|
+
trigger?: ReactNode;
|
|
379
|
+
title?: ReactNode;
|
|
380
|
+
description?: ReactNode;
|
|
381
|
+
children?: ReactNode;
|
|
382
|
+
placement?: ConfirmationPopupPlacements;
|
|
383
|
+
align?: ConfirmationPopupAlignments;
|
|
384
|
+
open?: boolean;
|
|
385
|
+
defaultOpen?: boolean;
|
|
386
|
+
onOpenChange?: (open: boolean) => void;
|
|
387
|
+
onClose?: () => void;
|
|
388
|
+
onCancel?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
389
|
+
onAction?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
390
|
+
closeLabel?: string;
|
|
391
|
+
cancelLabel?: ReactNode;
|
|
392
|
+
actionLabel?: ReactNode;
|
|
393
|
+
closeOnEscape?: boolean;
|
|
394
|
+
closeOnOutsideClick?: boolean;
|
|
395
|
+
closeOnCancel?: boolean;
|
|
396
|
+
closeOnAction?: boolean;
|
|
397
|
+
showArrow?: boolean;
|
|
398
|
+
showCloseButton?: boolean;
|
|
399
|
+
showCancelButton?: boolean;
|
|
400
|
+
showActionButton?: boolean;
|
|
401
|
+
leadingIcon?: ConfirmationPopupIcon;
|
|
402
|
+
contentClassName?: string;
|
|
403
|
+
triggerClassName?: string;
|
|
404
|
+
actionButtonProps?: Partial<ButtonProps>;
|
|
405
|
+
cancelButtonProps?: Partial<ButtonProps>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export declare type ConfirmationPopupSizes = RemoveNull<VariantProps<typeof confirmationPopupPanelStyles>>['size'];
|
|
409
|
+
|
|
410
|
+
export declare type ConfirmationPopupVariants = RemoveNull<VariantProps<typeof confirmationPopupIconStyles>>['variant'];
|
|
411
|
+
|
|
412
|
+
export declare const CountryFlag: FC<CountryFlagProps>;
|
|
413
|
+
|
|
414
|
+
export declare interface CountryFlagProps extends Omit<ComponentPropsWithoutRef<'img'>, 'alt' | 'height' | 'src' | 'width'> {
|
|
415
|
+
code?: string;
|
|
416
|
+
name?: string;
|
|
417
|
+
size?: CountryFlagSize;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export declare type CountryFlagSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
421
|
+
|
|
318
422
|
export declare const Divider: FC<DividerProps>;
|
|
319
423
|
|
|
320
|
-
export declare type DividerOrientations =
|
|
424
|
+
export declare type DividerOrientations = RemoveNull<VariantProps<typeof dividerRootStyles>>['orientation'];
|
|
321
425
|
|
|
322
426
|
export declare interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
323
427
|
children?: ReactNode;
|
|
@@ -336,9 +440,9 @@ declare const drawerPanelStyles: (props?: ({
|
|
|
336
440
|
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
337
441
|
} & ClassProp) | undefined) => string;
|
|
338
442
|
|
|
339
|
-
export declare type DrawerPlacements =
|
|
443
|
+
export declare type DrawerPlacements = RemoveNull<VariantProps<typeof drawerPanelStyles>>['placement'];
|
|
340
444
|
|
|
341
|
-
export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>,
|
|
445
|
+
export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, RemoveNull<VariantProps<typeof drawerPanelStyles>> {
|
|
342
446
|
open: boolean;
|
|
343
447
|
children?: ReactNode;
|
|
344
448
|
title?: ReactNode;
|
|
@@ -356,7 +460,7 @@ export declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>
|
|
|
356
460
|
showOverlay?: boolean;
|
|
357
461
|
}
|
|
358
462
|
|
|
359
|
-
export declare type DrawerSizes =
|
|
463
|
+
export declare type DrawerSizes = RemoveNull<VariantProps<typeof drawerPanelStyles>>['size'];
|
|
360
464
|
|
|
361
465
|
export declare const Dropdown: FC<DropdownProps>;
|
|
362
466
|
|
|
@@ -414,6 +518,12 @@ declare enum EThemeOptions {
|
|
|
414
518
|
DARK = "dark"
|
|
415
519
|
}
|
|
416
520
|
|
|
521
|
+
export declare enum ETrend {
|
|
522
|
+
positive = "positive",
|
|
523
|
+
negative = "negative",
|
|
524
|
+
neutral = "neutral"
|
|
525
|
+
}
|
|
526
|
+
|
|
417
527
|
export declare const Feedback: FC<FeedbackProps>;
|
|
418
528
|
|
|
419
529
|
export declare type FeedbackGetLabelText = (option: FeedbackOption, index: number, total: number) => string;
|
|
@@ -442,10 +552,97 @@ export declare interface FeedbackProps extends Omit<ComponentPropsWithRef<'div'>
|
|
|
442
552
|
variant?: FeedbackVariant;
|
|
443
553
|
}
|
|
444
554
|
|
|
445
|
-
export declare type FeedbackSizes =
|
|
555
|
+
export declare type FeedbackSizes = RemoveNull<VariantProps<typeof feedbackOptionStyles>>['size'];
|
|
446
556
|
|
|
447
557
|
export declare type FeedbackVariant = 'face' | 'emoji';
|
|
448
558
|
|
|
559
|
+
export declare const getGrowthTrend: ({ currentValue, pastValue, isPercentage, hasFractionDigits, isPointValue, }: {
|
|
560
|
+
currentValue: number;
|
|
561
|
+
pastValue: number;
|
|
562
|
+
isPercentage?: boolean;
|
|
563
|
+
hasFractionDigits?: boolean;
|
|
564
|
+
isPointValue?: boolean;
|
|
565
|
+
}) => {
|
|
566
|
+
growth: number;
|
|
567
|
+
trend: ETrend;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
export declare const getTrendVariant: (value: number | null | undefined, customThreshold?: number) => ETrend;
|
|
571
|
+
|
|
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;
|
|
573
|
+
|
|
574
|
+
export declare interface GroupedSelectOption<T = string | number> extends SelectOption<T> {
|
|
575
|
+
group: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export declare interface GroupedSelectProps<Option extends GroupedSelectOption = GroupedSelectOption> {
|
|
579
|
+
caption?: ReactNode;
|
|
580
|
+
className?: string;
|
|
581
|
+
compactDisplay?: boolean;
|
|
582
|
+
containerClassName?: string;
|
|
583
|
+
disabled?: boolean;
|
|
584
|
+
error?: ReactNode;
|
|
585
|
+
errorMsg?: ReactNode;
|
|
586
|
+
fullWidth?: boolean;
|
|
587
|
+
hideErrorMsg?: boolean;
|
|
588
|
+
hideSelectedOptions?: boolean;
|
|
589
|
+
hintText?: ReactNode;
|
|
590
|
+
inputClassName?: string;
|
|
591
|
+
isClearable?: boolean;
|
|
592
|
+
isSearchable?: boolean;
|
|
593
|
+
label?: ReactNode;
|
|
594
|
+
labelClassName?: string;
|
|
595
|
+
menuIsOpen?: boolean;
|
|
596
|
+
menuPlacement?: 'auto' | 'top' | 'bottom';
|
|
597
|
+
menuPortalTarget?: HTMLElement | null;
|
|
598
|
+
menuPosition?: 'absolute' | 'fixed';
|
|
599
|
+
onChange?: (newValue: MultiValue<Option>, actionMeta: ActionMeta<Option>) => void;
|
|
600
|
+
options: readonly GroupBase<Option>[];
|
|
601
|
+
placeholder?: ReactNode;
|
|
602
|
+
readOnly?: boolean;
|
|
603
|
+
readonly?: boolean;
|
|
604
|
+
ref?: Ref<unknown>;
|
|
605
|
+
required?: boolean;
|
|
606
|
+
size?: SelectSizes;
|
|
607
|
+
styles?: ComponentProps<typeof default_2<Option, true>>['styles'];
|
|
608
|
+
value?: MultiValue<Option>;
|
|
609
|
+
variant?: SelectVariants;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export declare type ILabelProps = LabelProps;
|
|
613
|
+
|
|
614
|
+
export declare interface IMetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
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
|
+
}
|
|
629
|
+
|
|
630
|
+
export declare interface IMetricValue {
|
|
631
|
+
color?: TMetricCardColorVariant;
|
|
632
|
+
supportText?: ReactNode;
|
|
633
|
+
supportTextSize?: TValueSupportSize;
|
|
634
|
+
text?: ReactNode;
|
|
635
|
+
trend?: ETrend;
|
|
636
|
+
trendInverted?: boolean;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
export declare interface IMetricValueItem {
|
|
640
|
+
hint?: IMetricHint;
|
|
641
|
+
value?: IMetricValue;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export declare type IndicatorMapper = Record<ETrend, FC>;
|
|
645
|
+
|
|
449
646
|
export declare const Input: FC<InputProps>;
|
|
450
647
|
|
|
451
648
|
export declare type InputIcon = FC<SVGProps<SVGSVGElement>>;
|
|
@@ -485,11 +682,36 @@ export declare interface InternalTabProps extends TabProps {
|
|
|
485
682
|
selected?: boolean;
|
|
486
683
|
}
|
|
487
684
|
|
|
685
|
+
declare type ItemType = PrimitiveValue | ObjectItem;
|
|
686
|
+
|
|
687
|
+
export declare type ITrendIndicatorProps = TrendIndicatorProps;
|
|
688
|
+
|
|
689
|
+
export declare const Label: FC<LabelProps>;
|
|
690
|
+
|
|
691
|
+
export declare type LabelPosition = 'top' | 'bottom' | 'right' | 'left';
|
|
692
|
+
|
|
693
|
+
export declare interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
694
|
+
disabled?: boolean;
|
|
695
|
+
endAdornment?: ReactNode;
|
|
696
|
+
labelWeight?: LabelWeight;
|
|
697
|
+
position?: LabelPosition;
|
|
698
|
+
required?: boolean;
|
|
699
|
+
size?: LabelSize;
|
|
700
|
+
text?: ReactNode;
|
|
701
|
+
variant?: LabelVariant;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export declare type LabelSize = 'lg' | 'md' | 'sm';
|
|
705
|
+
|
|
706
|
+
export declare type LabelVariant = 'primary' | 'secondary' | 'tertiary';
|
|
707
|
+
|
|
708
|
+
export declare type LabelWeight = 'semibold' | 'medium' | 'normal';
|
|
709
|
+
|
|
488
710
|
export declare const Link: FC<LinkProps>;
|
|
489
711
|
|
|
490
712
|
export declare type LinkIcon = FC<SVGProps<SVGSVGElement>>;
|
|
491
713
|
|
|
492
|
-
export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'children'>,
|
|
714
|
+
export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'children'>, RemoveNull<Omit<VariantProps<typeof linkStyles>, 'disabled' | 'truncate'>> {
|
|
493
715
|
children: ReactNode;
|
|
494
716
|
leadingIcon?: LinkIcon;
|
|
495
717
|
trailingIcon?: LinkIcon;
|
|
@@ -498,7 +720,7 @@ export declare interface LinkProps extends Omit<ComponentPropsWithRef<'a'>, 'chi
|
|
|
498
720
|
truncate?: boolean;
|
|
499
721
|
}
|
|
500
722
|
|
|
501
|
-
export declare type LinkSizes =
|
|
723
|
+
export declare type LinkSizes = RemoveNull<VariantProps<typeof linkStyles>>['size'];
|
|
502
724
|
|
|
503
725
|
declare const linkStyles: (props?: ({
|
|
504
726
|
variant?: "default" | "primary" | "info" | "success" | "warning" | "danger" | null | undefined;
|
|
@@ -509,9 +731,9 @@ declare const linkStyles: (props?: ({
|
|
|
509
731
|
truncate?: boolean | null | undefined;
|
|
510
732
|
} & ClassProp) | undefined) => string;
|
|
511
733
|
|
|
512
|
-
export declare type LinkUnderline =
|
|
734
|
+
export declare type LinkUnderline = RemoveNull<VariantProps<typeof linkStyles>>['underline'];
|
|
513
735
|
|
|
514
|
-
export declare type LinkVariants =
|
|
736
|
+
export declare type LinkVariants = RemoveNull<VariantProps<typeof linkStyles>>['variant'];
|
|
515
737
|
|
|
516
738
|
export declare const ListBox: ForwardRefExoticComponent<ListBoxProps & RefAttributes<HTMLDivElement>>;
|
|
517
739
|
|
|
@@ -548,6 +770,10 @@ export declare interface ListItemProps extends Omit<ComponentPropsWithoutRef<'bu
|
|
|
548
770
|
|
|
549
771
|
export declare const mergeRefs: <T>(...refs: Array<PossibleRef<T>>) => (node: T | null) => (() => void) | undefined;
|
|
550
772
|
|
|
773
|
+
export declare const MetricCard: FC<IMetricCardProps>;
|
|
774
|
+
|
|
775
|
+
export declare const MetricValueItem: FC<IMetricValueItem>;
|
|
776
|
+
|
|
551
777
|
export declare const Modal: FC<ModalProps>;
|
|
552
778
|
|
|
553
779
|
export declare type ModalIcon = FC<SVGProps<SVGSVGElement>>;
|
|
@@ -556,7 +782,7 @@ declare const modalPanelStyles: (props?: ({
|
|
|
556
782
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
557
783
|
} & ClassProp) | undefined) => string;
|
|
558
784
|
|
|
559
|
-
export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>,
|
|
785
|
+
export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, RemoveNull<VariantProps<typeof modalPanelStyles>> {
|
|
560
786
|
open: boolean;
|
|
561
787
|
children?: ReactNode;
|
|
562
788
|
title?: ReactNode;
|
|
@@ -575,7 +801,13 @@ export declare interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
575
801
|
showOverlay?: boolean;
|
|
576
802
|
}
|
|
577
803
|
|
|
578
|
-
export declare type ModalSizes =
|
|
804
|
+
export declare type ModalSizes = RemoveNull<VariantProps<typeof modalPanelStyles>>['size'];
|
|
805
|
+
|
|
806
|
+
export declare const MultiSelectCompact: <Option extends SelectOption = SelectOption>(props: MultiSelectCompactProps<Option>) => JSX.Element;
|
|
807
|
+
|
|
808
|
+
export declare type MultiSelectCompactProps<Option extends SelectOption = SelectOption> = Omit<CheckboxSelectProps<Option, true>, 'compactDisplay' | 'isMulti'>;
|
|
809
|
+
|
|
810
|
+
declare type ObjectItem = Record<string, unknown>;
|
|
579
811
|
|
|
580
812
|
export declare const OrganizationChart: ForwardRefExoticComponent<OrgChartComponentProps & RefAttributes<OrgChartRef>>;
|
|
581
813
|
|
|
@@ -659,7 +891,7 @@ declare const popoverIconStyles: (props?: ({
|
|
|
659
891
|
|
|
660
892
|
export declare type PopoverPlacements = 'top' | 'right' | 'bottom' | 'left';
|
|
661
893
|
|
|
662
|
-
export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>,
|
|
894
|
+
export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, RemoveNull<VariantProps<typeof popoverIconStyles>> {
|
|
663
895
|
trigger?: ReactNode;
|
|
664
896
|
title?: ReactNode;
|
|
665
897
|
children?: ReactNode;
|
|
@@ -678,7 +910,7 @@ export declare interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement
|
|
|
678
910
|
triggerClassName?: string;
|
|
679
911
|
}
|
|
680
912
|
|
|
681
|
-
export declare type PopoverVariants =
|
|
913
|
+
export declare type PopoverVariants = RemoveNull<VariantProps<typeof popoverIconStyles>>['variant'];
|
|
682
914
|
|
|
683
915
|
export declare const Portal: FC<PortalProps>;
|
|
684
916
|
|
|
@@ -696,9 +928,11 @@ declare interface PresenceChildProps {
|
|
|
696
928
|
children: ReactElement;
|
|
697
929
|
}
|
|
698
930
|
|
|
931
|
+
declare type PrimitiveValue = string | number | boolean | bigint | symbol | null | undefined;
|
|
932
|
+
|
|
699
933
|
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
700
934
|
|
|
701
|
-
export declare type ProgressBarAppearances = NonNullable<
|
|
935
|
+
export declare type ProgressBarAppearances = NonNullable<RemoveNull<VariantProps<typeof progressBarRootStyles>>['appearance']>;
|
|
702
936
|
|
|
703
937
|
export declare interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
704
938
|
appearance?: ProgressBarAppearances;
|
|
@@ -726,7 +960,7 @@ declare const progressBarRootStyles: (props?: ({
|
|
|
726
960
|
fullWidth?: boolean | null | undefined;
|
|
727
961
|
} & ClassProp) | undefined) => string;
|
|
728
962
|
|
|
729
|
-
export declare type ProgressBarSizes = NonNullable<
|
|
963
|
+
export declare type ProgressBarSizes = NonNullable<RemoveNull<VariantProps<typeof progressBarTrackStyles>>['size']>;
|
|
730
964
|
|
|
731
965
|
declare const progressBarTrackStyles: (props?: ({
|
|
732
966
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -780,7 +1014,7 @@ export declare interface RadioProps extends Omit<ComponentPropsWithRef<'input'>,
|
|
|
780
1014
|
size?: RadioSizes;
|
|
781
1015
|
}
|
|
782
1016
|
|
|
783
|
-
export declare type RadioSizes =
|
|
1017
|
+
export declare type RadioSizes = RemoveNull<VariantProps<typeof radioControlStyles>>['size'];
|
|
784
1018
|
|
|
785
1019
|
export declare const Rating: FC<RatingProps>;
|
|
786
1020
|
|
|
@@ -799,7 +1033,7 @@ export declare interface RatingProps extends Omit<ComponentPropsWithRef<'div'>,
|
|
|
799
1033
|
value?: number;
|
|
800
1034
|
}
|
|
801
1035
|
|
|
802
|
-
export declare type RatingSizes =
|
|
1036
|
+
export declare type RatingSizes = RemoveNull<VariantProps<typeof ratingStarStyles>>['size'];
|
|
803
1037
|
|
|
804
1038
|
declare const ratingStarStyles: (props?: ({
|
|
805
1039
|
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
@@ -809,9 +1043,53 @@ export declare type RemoveNull<T> = {
|
|
|
809
1043
|
[K in keyof T]: Exclude<T[K], null>;
|
|
810
1044
|
};
|
|
811
1045
|
|
|
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;
|
|
1047
|
+
|
|
1048
|
+
export declare interface SelectOption<T = string | number> {
|
|
1049
|
+
label: ReactNode;
|
|
1050
|
+
value?: T;
|
|
1051
|
+
__isNew__?: boolean;
|
|
1052
|
+
disabled?: boolean;
|
|
1053
|
+
options?: SelectOption<T>[];
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
export declare interface SelectProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends Omit<CreatableProps<Option, IsMulti, GroupBase<Option>>, 'size'> {
|
|
1057
|
+
caption?: ReactNode;
|
|
1058
|
+
containerClassName?: string;
|
|
1059
|
+
createText?: string;
|
|
1060
|
+
disabled?: boolean;
|
|
1061
|
+
error?: ReactNode;
|
|
1062
|
+
errorMsg?: ReactNode;
|
|
1063
|
+
fullWidth?: boolean;
|
|
1064
|
+
hideErrorMsg?: boolean;
|
|
1065
|
+
hintText?: ReactNode;
|
|
1066
|
+
inputClassName?: string;
|
|
1067
|
+
isCreatable?: boolean;
|
|
1068
|
+
label?: ReactNode;
|
|
1069
|
+
labelClassName?: string;
|
|
1070
|
+
readOnly?: boolean;
|
|
1071
|
+
readonly?: boolean;
|
|
1072
|
+
ref?: Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
1073
|
+
required?: boolean;
|
|
1074
|
+
size?: SelectSizes;
|
|
1075
|
+
variant?: SelectVariants;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
export declare type SelectSizes = InputSizes;
|
|
1079
|
+
|
|
1080
|
+
export declare type SelectVariants = InputVariants;
|
|
1081
|
+
|
|
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;
|
|
1083
|
+
|
|
1084
|
+
export declare interface SelectWithApplyProps<Option extends SelectOption = SelectOption, IsMulti extends boolean = false> extends SelectProps<Option, IsMulti> {
|
|
1085
|
+
allOptionLabel?: string;
|
|
1086
|
+
applyButtonLabel?: string;
|
|
1087
|
+
compactDisplay?: boolean;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
812
1090
|
export declare const Slider: FC<SliderProps>;
|
|
813
1091
|
|
|
814
|
-
export declare type SliderLabelSizes =
|
|
1092
|
+
export declare type SliderLabelSizes = RemoveNull<VariantProps<typeof sliderLabelStyles>>['size'];
|
|
815
1093
|
|
|
816
1094
|
declare const sliderLabelStyles: (props?: ({
|
|
817
1095
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -842,7 +1120,7 @@ export declare interface SliderProps extends Omit<ComponentPropsWithRef<'div'>,
|
|
|
842
1120
|
valueClassName?: string;
|
|
843
1121
|
}
|
|
844
1122
|
|
|
845
|
-
export declare type SliderSizes =
|
|
1123
|
+
export declare type SliderSizes = RemoveNull<VariantProps<typeof sliderTrackStyles>>['size'];
|
|
846
1124
|
|
|
847
1125
|
export declare interface SliderState {
|
|
848
1126
|
max: number;
|
|
@@ -850,7 +1128,7 @@ export declare interface SliderState {
|
|
|
850
1128
|
values: [number, number?];
|
|
851
1129
|
}
|
|
852
1130
|
|
|
853
|
-
export declare type SliderThumbSizes =
|
|
1131
|
+
export declare type SliderThumbSizes = RemoveNull<VariantProps<typeof sliderThumbStyles>>['size'];
|
|
854
1132
|
|
|
855
1133
|
declare const sliderThumbStyles: (props?: ({
|
|
856
1134
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -868,6 +1146,77 @@ export declare const Tab: FC<InternalTabProps>;
|
|
|
868
1146
|
|
|
869
1147
|
export declare type TabKeyboardEvent = KeyboardEvent_2<HTMLDivElement>;
|
|
870
1148
|
|
|
1149
|
+
export declare const Table: <RowData extends object = Record<string, unknown>>(props: TableProps<RowData>) => React.JSX.Element;
|
|
1150
|
+
|
|
1151
|
+
export declare type TableAlign = 'left' | 'center' | 'right';
|
|
1152
|
+
|
|
1153
|
+
export declare const TableBody: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1154
|
+
|
|
1155
|
+
export declare const TableCaption: ForwardRefExoticComponent<TableCaptionProps & RefAttributes<HTMLTableCaptionElement>>;
|
|
1156
|
+
|
|
1157
|
+
export declare interface TableCaptionProps extends ComponentPropsWithoutRef<'caption'> {
|
|
1158
|
+
side?: 'top' | 'bottom';
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export declare const TableCell: ForwardRefExoticComponent<TableCellProps & RefAttributes<HTMLTableCellElement>>;
|
|
1162
|
+
|
|
1163
|
+
export declare interface TableCellProps extends ComponentPropsWithoutRef<'td'> {
|
|
1164
|
+
align?: TableAlign | undefined;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export declare interface TableColumn<RowData> {
|
|
1168
|
+
accessorKey?: keyof RowData;
|
|
1169
|
+
align?: TableAlign;
|
|
1170
|
+
cell?: (row: RowData, rowIndex: number) => ReactNode;
|
|
1171
|
+
className?: string;
|
|
1172
|
+
header: ReactNode;
|
|
1173
|
+
headerClassName?: string;
|
|
1174
|
+
id?: string;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export declare interface TableContextValue {
|
|
1178
|
+
interactive: boolean;
|
|
1179
|
+
showColumnBorder: boolean;
|
|
1180
|
+
size: TableSizes;
|
|
1181
|
+
stickyHeader: boolean;
|
|
1182
|
+
striped: boolean;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
export declare const TableFooter: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1186
|
+
|
|
1187
|
+
export declare const TableHead: ForwardRefExoticComponent<TableHeadProps & RefAttributes<HTMLTableCellElement>>;
|
|
1188
|
+
|
|
1189
|
+
export declare const TableHeader: ForwardRefExoticComponent<TableSectionProps & RefAttributes<HTMLTableSectionElement>>;
|
|
1190
|
+
|
|
1191
|
+
export declare interface TableHeadProps extends ComponentPropsWithoutRef<'th'> {
|
|
1192
|
+
align?: TableAlign | undefined;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
export declare interface TableProps<RowData extends object = Record<string, unknown>> extends Omit<ComponentPropsWithoutRef<'table'>, 'children' | 'size'> {
|
|
1196
|
+
caption?: ReactNode;
|
|
1197
|
+
captionSide?: 'top' | 'bottom';
|
|
1198
|
+
columns: TableColumn<RowData>[];
|
|
1199
|
+
containerClassName?: string;
|
|
1200
|
+
data: RowData[];
|
|
1201
|
+
emptyMessage?: ReactNode;
|
|
1202
|
+
footer?: ReactNode;
|
|
1203
|
+
interactive?: boolean;
|
|
1204
|
+
rowKey?: keyof RowData | ((row: RowData, index: number) => Key);
|
|
1205
|
+
showColumnBorder?: boolean;
|
|
1206
|
+
size?: TableSizes;
|
|
1207
|
+
stickyHeader?: boolean;
|
|
1208
|
+
striped?: boolean;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export declare const TableRow: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & RefAttributes<HTMLTableRowElement>>;
|
|
1212
|
+
|
|
1213
|
+
export declare interface TableSectionProps {
|
|
1214
|
+
children: ReactNode;
|
|
1215
|
+
className?: string;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export declare type TableSizes = InputSizes;
|
|
1219
|
+
|
|
871
1220
|
declare const tabListStyles: (props?: ({
|
|
872
1221
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
873
1222
|
variant?: "underline" | "pill" | null | undefined;
|
|
@@ -875,7 +1224,7 @@ declare const tabListStyles: (props?: ({
|
|
|
875
1224
|
|
|
876
1225
|
export declare const TabPanel: FC<TabPanelProps>;
|
|
877
1226
|
|
|
878
|
-
export declare type TabPanelOrientation =
|
|
1227
|
+
export declare type TabPanelOrientation = RemoveNull<VariantProps<typeof tabPanelStyles>>['orientation'];
|
|
879
1228
|
|
|
880
1229
|
export declare interface TabPanelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
881
1230
|
children: ReactNode;
|
|
@@ -931,7 +1280,7 @@ export declare interface TabsListProps extends Omit<ComponentPropsWithoutRef<'di
|
|
|
931
1280
|
children: ReactNode;
|
|
932
1281
|
}
|
|
933
1282
|
|
|
934
|
-
export declare type TabsOrientation =
|
|
1283
|
+
export declare type TabsOrientation = RemoveNull<VariantProps<typeof tabsRootStyles>>['orientation'];
|
|
935
1284
|
|
|
936
1285
|
export declare interface TabsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'defaultValue' | 'onChange'> {
|
|
937
1286
|
children: ReactNode;
|
|
@@ -945,15 +1294,35 @@ export declare interface TabsProps extends Omit<ComponentPropsWithoutRef<'div'>,
|
|
|
945
1294
|
variant?: TabsVariant;
|
|
946
1295
|
}
|
|
947
1296
|
|
|
948
|
-
export declare type TabsRootOrientation =
|
|
1297
|
+
export declare type TabsRootOrientation = RemoveNull<VariantProps<typeof tabListStyles>>['orientation'];
|
|
949
1298
|
|
|
950
1299
|
declare const tabsRootStyles: (props?: ({
|
|
951
1300
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
952
1301
|
} & ClassProp) | undefined) => string;
|
|
953
1302
|
|
|
954
|
-
export declare type TabsSizes =
|
|
1303
|
+
export declare type TabsSizes = RemoveNull<VariantProps<typeof tabRootStyles>>['size'];
|
|
1304
|
+
|
|
1305
|
+
export declare type TabsVariant = RemoveNull<VariantProps<typeof tabRootStyles>>['variant'];
|
|
1306
|
+
|
|
1307
|
+
export declare const TextArea: FC<TextAreaProps>;
|
|
1308
|
+
|
|
1309
|
+
export declare interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'children' | 'size'> {
|
|
1310
|
+
caption?: ReactNode;
|
|
1311
|
+
containerClassName?: string;
|
|
1312
|
+
error?: ReactNode;
|
|
1313
|
+
fullWidth?: boolean;
|
|
1314
|
+
label?: ReactNode;
|
|
1315
|
+
labelClassName?: string;
|
|
1316
|
+
size?: TextAreaSizes;
|
|
1317
|
+
textAreaClassName?: string;
|
|
1318
|
+
variant?: TextAreaVariants;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export declare type TextAreaSizes = ButtonSizes;
|
|
1322
|
+
|
|
1323
|
+
export declare type TextAreaVariants = ButtonVariants;
|
|
955
1324
|
|
|
956
|
-
export declare type
|
|
1325
|
+
export declare type TMetricCardColorVariant = 'secondary' | 'warning' | 'success' | 'error';
|
|
957
1326
|
|
|
958
1327
|
export declare const Toaster: FC<ToasterProps>;
|
|
959
1328
|
|
|
@@ -963,6 +1332,46 @@ export declare interface ToastProps extends AlertProps {
|
|
|
963
1332
|
dismissable?: boolean;
|
|
964
1333
|
}
|
|
965
1334
|
|
|
1335
|
+
export declare const Tooltip: ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & RefAttributes<TooltipRefProps>>;
|
|
1336
|
+
|
|
1337
|
+
export declare interface TooltipProps extends Omit<ITooltip, 'variant'> {
|
|
1338
|
+
variant?: 'primary' | 'secondary';
|
|
1339
|
+
ref?: Ref<TooltipRefProps>;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export declare const TREND_INDICATOR_COLORS: {
|
|
1343
|
+
positive: string;
|
|
1344
|
+
negative: string;
|
|
1345
|
+
neutral: string;
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
export declare const TrendIndicator: FC<TrendIndicatorProps>;
|
|
1349
|
+
|
|
1350
|
+
export declare const trendIndicatorColors: {
|
|
1351
|
+
positive: string;
|
|
1352
|
+
negative: string;
|
|
1353
|
+
neutral: string;
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
export declare interface TrendIndicatorProps {
|
|
1357
|
+
className?: HTMLProps<HTMLElement>['className'];
|
|
1358
|
+
colorizeValueText?: boolean;
|
|
1359
|
+
inverted?: boolean | undefined;
|
|
1360
|
+
label?: ReactNode;
|
|
1361
|
+
size?: TrendIndicatorSize;
|
|
1362
|
+
strokeWidth?: TrendIndicatorStrokeWidth;
|
|
1363
|
+
value?: ReactNode;
|
|
1364
|
+
variant?: ETrend;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
export declare type TrendIndicatorSize = 'sm' | 'md' | 'lg';
|
|
1368
|
+
|
|
1369
|
+
export declare type TrendIndicatorStrokeWidth = 'thin' | 'thick' | 'thicker';
|
|
1370
|
+
|
|
1371
|
+
export declare type TTrendPosition = 'left' | 'right';
|
|
1372
|
+
|
|
1373
|
+
export declare type TValueSupportSize = 'sm' | 'lg';
|
|
1374
|
+
|
|
966
1375
|
export declare const useTheme: () => {
|
|
967
1376
|
theme: EThemeOptions;
|
|
968
1377
|
isDark: boolean;
|