@unifiedsoftware/react-ui 1.0.18 → 1.0.19
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.d.mts +182 -119
- package/dist/index.d.ts +182 -119
- package/dist/index.js +1279 -600
- package/dist/index.mjs +1202 -535
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.Re
|
|
|
10
10
|
|
|
11
11
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
12
12
|
|
|
13
|
-
interface Props$
|
|
13
|
+
interface Props$8 {
|
|
14
14
|
/**
|
|
15
15
|
* The placement of the badge relative to its content.
|
|
16
16
|
*/
|
|
@@ -20,15 +20,15 @@ interface Props$6 {
|
|
|
20
20
|
*/
|
|
21
21
|
content?: React.ReactNode;
|
|
22
22
|
}
|
|
23
|
-
type NativeAttrs$
|
|
24
|
-
type BadgeProps = Props$
|
|
23
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
24
|
+
type BadgeProps = Props$8 & NativeAttrs$8;
|
|
25
25
|
declare const Badge: React.FC<BadgeProps>;
|
|
26
26
|
|
|
27
|
-
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
27
|
+
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
28
28
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
29
29
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
30
30
|
|
|
31
|
-
interface Props$
|
|
31
|
+
interface Props$7 {
|
|
32
32
|
/**
|
|
33
33
|
* The HTML element type or React component to render as the button.
|
|
34
34
|
*/
|
|
@@ -67,9 +67,9 @@ interface Props$5 {
|
|
|
67
67
|
*/
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
}
|
|
70
|
-
type NativeAttrs$
|
|
71
|
-
type ButtonProps = Props$
|
|
72
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
70
|
+
type NativeAttrs$7 = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$7>;
|
|
71
|
+
type ButtonProps = Props$7 & NativeAttrs$7;
|
|
72
|
+
declare const Button: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$7 & react.RefAttributes<HTMLButtonElement>>;
|
|
73
73
|
|
|
74
74
|
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
75
|
as?: React.ElementType;
|
|
@@ -89,7 +89,7 @@ type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
|
89
89
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
90
90
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
91
91
|
|
|
92
|
-
interface Props$
|
|
92
|
+
interface Props$6 {
|
|
93
93
|
/**
|
|
94
94
|
* The HTML element type or React component to render as the chip.
|
|
95
95
|
*/
|
|
@@ -107,9 +107,9 @@ interface Props$4 {
|
|
|
107
107
|
*/
|
|
108
108
|
size?: ChipSize;
|
|
109
109
|
}
|
|
110
|
-
type NativeAttrs$
|
|
111
|
-
type ChipProps = Props$
|
|
112
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
110
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
111
|
+
type ChipProps = Props$6 & NativeAttrs$6;
|
|
112
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
113
113
|
|
|
114
114
|
interface CollapseProps {
|
|
115
115
|
children: React.ReactNode;
|
|
@@ -160,7 +160,7 @@ interface IconProps {
|
|
|
160
160
|
}
|
|
161
161
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
162
162
|
|
|
163
|
-
interface Props$
|
|
163
|
+
interface Props$5 {
|
|
164
164
|
/**
|
|
165
165
|
* The HTML element type or React component to render as the menu item.
|
|
166
166
|
*/
|
|
@@ -186,9 +186,9 @@ interface Props$3 {
|
|
|
186
186
|
*/
|
|
187
187
|
disabled?: boolean;
|
|
188
188
|
}
|
|
189
|
-
type NativeAttrs$
|
|
190
|
-
type MenuItemProps = Props$
|
|
191
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
189
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5 | 'items'>;
|
|
190
|
+
type MenuItemProps = Props$5 & NativeAttrs$5;
|
|
191
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
192
192
|
|
|
193
193
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
194
194
|
items?: MenuItemType[];
|
|
@@ -212,7 +212,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
212
212
|
}) | (MenuItemProps & {
|
|
213
213
|
type?: 'item';
|
|
214
214
|
});
|
|
215
|
-
interface Props$
|
|
215
|
+
interface Props$4 {
|
|
216
216
|
/**
|
|
217
217
|
* The currently selected value of the menu.
|
|
218
218
|
*/
|
|
@@ -248,8 +248,8 @@ interface Props$2 {
|
|
|
248
248
|
*/
|
|
249
249
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
250
250
|
}
|
|
251
|
-
type NativeAttrs$
|
|
252
|
-
type MenuProps = Props$
|
|
251
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4 | 'items'>;
|
|
252
|
+
type MenuProps = Props$4 & NativeAttrs$4 & {
|
|
253
253
|
items?: MenuItemType[];
|
|
254
254
|
};
|
|
255
255
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -307,10 +307,11 @@ declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContent
|
|
|
307
307
|
|
|
308
308
|
interface PortalProps {
|
|
309
309
|
children: React.ReactNode;
|
|
310
|
+
container?: Element;
|
|
310
311
|
}
|
|
311
|
-
declare const Portal: react.ForwardRefExoticComponent<PortalProps & react.RefAttributes<
|
|
312
|
+
declare const Portal: react.ForwardRefExoticComponent<PortalProps & react.RefAttributes<HTMLDivElement>>;
|
|
312
313
|
|
|
313
|
-
interface Props$
|
|
314
|
+
interface Props$3 {
|
|
314
315
|
/**
|
|
315
316
|
* The HTML element type or React component to render as the tab.
|
|
316
317
|
*/
|
|
@@ -328,15 +329,15 @@ interface Props$1 {
|
|
|
328
329
|
*/
|
|
329
330
|
disabled?: boolean;
|
|
330
331
|
}
|
|
331
|
-
type NativeAttrs$
|
|
332
|
-
type TabProps = Props$
|
|
333
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
332
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
333
|
+
type TabProps = Props$3 & NativeAttrs$3;
|
|
334
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$3 & NativeAttrs$3 & {
|
|
334
335
|
children?: react.ReactNode;
|
|
335
336
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
336
337
|
|
|
337
338
|
type TabsAlignmet = 'start' | 'center' | 'end' | 'stretch';
|
|
338
339
|
|
|
339
|
-
interface Props {
|
|
340
|
+
interface Props$2 {
|
|
340
341
|
/**
|
|
341
342
|
* The currently selected value of the tabs.
|
|
342
343
|
*/
|
|
@@ -358,8 +359,8 @@ interface Props {
|
|
|
358
359
|
*/
|
|
359
360
|
onClose?: (value: any) => void;
|
|
360
361
|
}
|
|
361
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
362
|
-
type TabsProps = Props & NativeAttrs;
|
|
362
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
363
|
+
type TabsProps = Props$2 & NativeAttrs$2;
|
|
363
364
|
declare const Tabs: React.FC<TabsProps>;
|
|
364
365
|
|
|
365
366
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
@@ -385,11 +386,22 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
385
386
|
}
|
|
386
387
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
387
388
|
|
|
388
|
-
interface ScrollAreaProps
|
|
389
|
-
|
|
389
|
+
interface ScrollAreaProps {
|
|
390
|
+
children: React.ReactNode;
|
|
391
|
+
height?: number;
|
|
392
|
+
style?: React.CSSProperties;
|
|
390
393
|
}
|
|
391
394
|
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
392
395
|
|
|
396
|
+
interface Props$1 {
|
|
397
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
398
|
+
startContent?: React.ReactNode;
|
|
399
|
+
endContent?: React.ReactNode;
|
|
400
|
+
}
|
|
401
|
+
type NativeAttrs$1 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$1>;
|
|
402
|
+
type TextInputProps = Props$1 & NativeAttrs$1;
|
|
403
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$1 & NativeAttrs$1 & react.RefAttributes<HTMLInputElement>>;
|
|
404
|
+
|
|
393
405
|
type SelectItem = {
|
|
394
406
|
key: any;
|
|
395
407
|
text: string;
|
|
@@ -402,7 +414,7 @@ type SelectState = {
|
|
|
402
414
|
skip: number;
|
|
403
415
|
filter: string;
|
|
404
416
|
};
|
|
405
|
-
interface VirtualScrollerProps
|
|
417
|
+
interface VirtualScrollerProps {
|
|
406
418
|
pageSize?: number;
|
|
407
419
|
}
|
|
408
420
|
type SelectBaseProps<TSelectItem = SelectItem> = {
|
|
@@ -413,7 +425,7 @@ type SelectBaseProps<TSelectItem = SelectItem> = {
|
|
|
413
425
|
textField?: string;
|
|
414
426
|
filterable?: boolean;
|
|
415
427
|
filter?: string;
|
|
416
|
-
virtual?: VirtualScrollerProps
|
|
428
|
+
virtual?: VirtualScrollerProps;
|
|
417
429
|
disabled?: boolean;
|
|
418
430
|
loading?: boolean;
|
|
419
431
|
className?: string;
|
|
@@ -443,55 +455,98 @@ type SwitchProps = {
|
|
|
443
455
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
|
|
444
456
|
declare const Switch: React.FC<SwitchProps>;
|
|
445
457
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
type MultiSelectData<TMultiSelectItem = MultiSelectItem> = {
|
|
451
|
-
items: TMultiSelectItem[];
|
|
452
|
-
total: number;
|
|
453
|
-
};
|
|
454
|
-
type MultiSelectState = {
|
|
455
|
-
skip: number;
|
|
456
|
-
filter: string;
|
|
457
|
-
};
|
|
458
|
-
interface VirtualScrollerProps {
|
|
459
|
-
pageSize?: number;
|
|
458
|
+
declare global {
|
|
459
|
+
interface WindowEventMap {
|
|
460
|
+
'local-storage': CustomEvent;
|
|
461
|
+
}
|
|
460
462
|
}
|
|
461
|
-
type
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
463
|
+
type SetValue<T> = Dispatch<SetStateAction<T>>;
|
|
464
|
+
/**
|
|
465
|
+
* It's a React hook that allows you to store and retrieve data from localStorage
|
|
466
|
+
* @param {string} key - string
|
|
467
|
+
* @param {T} initialValue - The initial value to use if the key doesn't exist in localStorage.
|
|
468
|
+
* @returns An array of two items. The first item is the value of the local storage key. The second
|
|
469
|
+
* item is a function that can be used to set the value of the local storage key.
|
|
470
|
+
*/
|
|
471
|
+
declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<T>];
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* It returns the previous value of the given value
|
|
475
|
+
* @param {any} value - any - The value to track.
|
|
476
|
+
* @returns The previous value of the variable.
|
|
477
|
+
*/
|
|
478
|
+
declare const usePrevious: (value: any) => undefined;
|
|
479
|
+
|
|
480
|
+
interface Disclosure {
|
|
481
|
+
isOpen: boolean;
|
|
482
|
+
onOpen: () => void;
|
|
483
|
+
onClose: () => void;
|
|
484
|
+
onToggle: () => void;
|
|
485
|
+
}
|
|
486
|
+
declare function useDisclosure({ defaultValue }?: {
|
|
487
|
+
defaultValue?: boolean;
|
|
488
|
+
}): Disclosure;
|
|
489
|
+
|
|
490
|
+
type Handler = (event: MouseEvent) => void;
|
|
491
|
+
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: react.RefObject<T>, handler: Handler) => void;
|
|
492
|
+
|
|
493
|
+
interface Helpers {
|
|
494
|
+
goToNextStep: () => void;
|
|
495
|
+
goToPrevStep: () => void;
|
|
496
|
+
reset: () => void;
|
|
497
|
+
canGoToNextStep: boolean;
|
|
498
|
+
canGoToPrevStep: boolean;
|
|
499
|
+
setStep: Dispatch<SetStateAction<number>>;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* It returns a tuple with the current step and an object with functions to manipulate the step
|
|
503
|
+
* @param {number} maxStep - number - The maximum number of steps in the stepper.
|
|
504
|
+
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
505
|
+
* object with the following properties:
|
|
506
|
+
*/
|
|
507
|
+
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
508
|
+
|
|
509
|
+
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
510
|
+
|
|
511
|
+
declare enum QueryStatus {
|
|
512
|
+
IDLE = 0,
|
|
513
|
+
LOADING = 1,
|
|
514
|
+
SUCCESS = 2,
|
|
515
|
+
ERROR = 3
|
|
516
|
+
}
|
|
517
|
+
interface QueryOptions {
|
|
478
518
|
page?: number;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
519
|
+
}
|
|
520
|
+
interface InfiniteData<TData = any> {
|
|
521
|
+
pages: TData[];
|
|
522
|
+
}
|
|
523
|
+
type QueryFunction<TData = unknown> = (options: QueryOptions) => Promise<TData>;
|
|
524
|
+
interface UseInfiniteQueryOptions<TData = unknown> {
|
|
525
|
+
query: QueryFunction<TData>;
|
|
526
|
+
getNextPage: (lastPage: TData, allPages: TData[]) => number | undefined;
|
|
527
|
+
disabled?: boolean;
|
|
528
|
+
}
|
|
529
|
+
interface UseInfiniteQueryResult<TData = unknown, TError = unknown> {
|
|
530
|
+
status: QueryStatus;
|
|
531
|
+
data?: InfiniteData<TData>;
|
|
532
|
+
error?: TError;
|
|
533
|
+
hasNextPage?: boolean;
|
|
534
|
+
isFetchingNextPage: boolean;
|
|
535
|
+
fetchNextPage: () => Promise<void>;
|
|
536
|
+
}
|
|
488
537
|
|
|
489
|
-
declare
|
|
538
|
+
declare function useInfiniteQuery<TData = unknown, TError = unknown>(options: UseInfiniteQueryOptions<TData>, deps?: React.DependencyList): UseInfiniteQueryResult<TData, TError>;
|
|
490
539
|
|
|
491
|
-
interface
|
|
492
|
-
|
|
540
|
+
interface Resize {
|
|
541
|
+
width: number;
|
|
542
|
+
height: number;
|
|
493
543
|
}
|
|
494
|
-
|
|
544
|
+
interface UseElementSizeOptions<T> {
|
|
545
|
+
ref?: React.MutableRefObject<T | null>;
|
|
546
|
+
target?: T;
|
|
547
|
+
callback?: (resize: Resize) => void;
|
|
548
|
+
}
|
|
549
|
+
declare function useElementSize<T extends HTMLElement = any>(options: UseElementSizeOptions<T>): Resize;
|
|
495
550
|
|
|
496
551
|
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
497
552
|
as?: React.ElementType;
|
|
@@ -501,12 +556,17 @@ declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttribu
|
|
|
501
556
|
interface ListItemProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
502
557
|
as?: react__default.ElementType;
|
|
503
558
|
title: string;
|
|
559
|
+
subtitle?: string;
|
|
504
560
|
startContent?: react__default.ReactNode;
|
|
505
561
|
endContent?: react__default.ReactNode;
|
|
506
562
|
level?: number;
|
|
507
563
|
hoverable?: boolean;
|
|
508
564
|
selected?: boolean;
|
|
509
565
|
disabled?: boolean;
|
|
566
|
+
slotProps?: {
|
|
567
|
+
title?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
568
|
+
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
569
|
+
};
|
|
510
570
|
}
|
|
511
571
|
declare const ListItem: react__default.ForwardRefExoticComponent<ListItemProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
512
572
|
|
|
@@ -527,58 +587,61 @@ declare const ListGroup: react.ForwardRefExoticComponent<ListItemProps & {
|
|
|
527
587
|
onToggle?: (() => void) | undefined;
|
|
528
588
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
529
589
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
590
|
+
type ComboboxItem = Record<string, any>;
|
|
591
|
+
type ComboboxKeyField<TComboboxItem> = keyof TComboboxItem;
|
|
592
|
+
interface VirtualProps {
|
|
593
|
+
count?: number;
|
|
594
|
+
hasNextPage?: boolean;
|
|
595
|
+
isFetchingNextPage?: boolean;
|
|
596
|
+
onFetchNextPage?: () => Promise<void> | void;
|
|
597
|
+
estimateSize: (index: number) => number;
|
|
534
598
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
599
|
+
interface ComboboxSingleProps<TComboboxItem extends ComboboxItem, TComboboxKeyField extends ComboboxKeyField<TComboboxItem> = 'key'> {
|
|
600
|
+
isMultiple?: false;
|
|
601
|
+
value: TComboboxItem[TComboboxKeyField] | undefined;
|
|
602
|
+
onChange?: (value: TComboboxItem | undefined) => void;
|
|
603
|
+
onValueChange?: (value: TComboboxItem[TComboboxKeyField] | undefined) => void;
|
|
604
|
+
}
|
|
605
|
+
interface ComboboxMultipleProps<TComboboxItem extends ComboboxItem, TComboboxKeyField extends ComboboxKeyField<TComboboxItem> = 'key'> {
|
|
606
|
+
isMultiple: true;
|
|
607
|
+
value: TComboboxItem[TComboboxKeyField][];
|
|
608
|
+
onChange?: (value: TComboboxItem[]) => void;
|
|
609
|
+
onValueChange?: (value: TComboboxItem[TComboboxKeyField][]) => void;
|
|
610
|
+
}
|
|
611
|
+
type NativeAttrs<TComboboxItem extends ComboboxItem, TComboboxKeyField extends ComboboxKeyField<TComboboxItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props<TComboboxItem, TComboboxKeyField>>;
|
|
612
|
+
type Props<TComboboxItem extends ComboboxItem, TComboboxKeyField extends ComboboxKeyField<TComboboxItem> = 'key'> = {
|
|
613
|
+
data: TComboboxItem[];
|
|
614
|
+
keyField?: TComboboxKeyField;
|
|
615
|
+
textField?: keyof TComboboxItem;
|
|
616
|
+
placeholder?: string;
|
|
617
|
+
filterable?: boolean;
|
|
618
|
+
filter?: string;
|
|
619
|
+
loading?: boolean;
|
|
620
|
+
disabled?: boolean;
|
|
621
|
+
disclosure?: Disclosure;
|
|
622
|
+
virtual?: VirtualProps;
|
|
623
|
+
onItemSelect?: (item: TComboboxItem) => void;
|
|
624
|
+
onFilterChange?: (value: string) => void;
|
|
625
|
+
renderItem?: (item: TComboboxItem, props: ListItemProps) => React.ReactNode;
|
|
626
|
+
} & (ComboboxSingleProps<TComboboxItem, TComboboxKeyField> | ComboboxMultipleProps<TComboboxItem, TComboboxKeyField>);
|
|
627
|
+
type ComboboxProps<TComboboxItem extends ComboboxItem, TComboboxKeyField extends ComboboxKeyField<TComboboxItem> = 'key'> = Props<TComboboxItem, TComboboxKeyField> & NativeAttrs<TComboboxItem, TComboboxKeyField>;
|
|
551
628
|
|
|
552
|
-
declare const
|
|
553
|
-
defaultValue?: boolean | undefined;
|
|
554
|
-
}) => {
|
|
555
|
-
isOpen: boolean;
|
|
556
|
-
onOpen: () => void;
|
|
557
|
-
onClose: () => void;
|
|
558
|
-
onToggle: () => void;
|
|
559
|
-
};
|
|
629
|
+
declare const Combobox: <TComboboxItem extends ComboboxItem, TComboboxKeyField extends keyof TComboboxItem = "key">(props: ComboboxProps<TComboboxItem, TComboboxKeyField>) => react_jsx_runtime.JSX.Element;
|
|
560
630
|
|
|
561
|
-
interface
|
|
562
|
-
|
|
563
|
-
goToPrevStep: () => void;
|
|
564
|
-
reset: () => void;
|
|
565
|
-
canGoToNextStep: boolean;
|
|
566
|
-
canGoToPrevStep: boolean;
|
|
567
|
-
setStep: Dispatch<SetStateAction<number>>;
|
|
631
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
632
|
+
label: string;
|
|
568
633
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
573
|
-
* object with the following properties:
|
|
574
|
-
*/
|
|
575
|
-
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
634
|
+
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
635
|
+
|
|
636
|
+
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
576
637
|
|
|
577
638
|
type ClassDictionary = Record<string, any>;
|
|
578
639
|
type ClassArray = ClassValue[];
|
|
579
640
|
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
580
641
|
declare function clsx(...inputs: ClassValue[]): string;
|
|
581
642
|
|
|
582
|
-
|
|
643
|
+
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
644
|
+
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
645
|
+
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
583
646
|
|
|
584
|
-
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext,
|
|
647
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Combobox, ComboboxItem, ComboboxKeyField, ComboboxMultipleProps, ComboboxProps, ComboboxSingleProps, Disclosure, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, InfiniteData, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, Portal, PortalProps, QueryFunction, QueryOptions, QueryStatus, ReactRef, Resize, ScrollArea, ScrollAreaProps, Select, SelectData, SelectItem, SelectProps, SelectState, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, TextInput, TextInputProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, UseInfiniteQueryOptions, UseInfiniteQueryResult, assignRef, clsx, getOpenValuesByPathname, mergeRefs, scrollToItem, useAccordionItem, useCollapse, useDebounce, useDisclosure, useElementSize, useInfiniteQuery, useLocalStorage, useMenu, useMenuItemValue, useOnClickOutside, usePrevious, useStep };
|