@unifiedsoftware/react-ui 1.1.7 → 2.0.0-alpha.1
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.ts +282 -136
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,36 +3,47 @@ import react__default, { Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { VirtualizerOptions as VirtualizerOptions$1, Virtualizer as Virtualizer$1, ListItemProps as ListItemProps$1, ResultProps as ResultProps$1 } from '@unifiedsoftware/react-ui';
|
|
5
5
|
|
|
6
|
-
type AccordionSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
type AccordionSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
type AccordionVariant = 'plain' | 'flat' | 'tonal' | 'filled';
|
|
8
|
+
type AccordionColor = 'primary' | 'secondary';
|
|
7
9
|
interface AccordionArrow {
|
|
8
10
|
isVisible?: boolean;
|
|
9
11
|
position?: 'start' | 'end';
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
interface Props$
|
|
14
|
+
interface Props$A {
|
|
13
15
|
value?: any[];
|
|
14
16
|
defaultValue?: any[];
|
|
15
17
|
expandMode?: 'single' | 'multiple';
|
|
16
18
|
size?: AccordionSize;
|
|
17
19
|
arrow?: AccordionArrow;
|
|
20
|
+
variant?: AccordionVariant;
|
|
21
|
+
color?: AccordionColor;
|
|
22
|
+
splitted?: boolean;
|
|
23
|
+
bordered?: boolean;
|
|
24
|
+
shadow?: boolean;
|
|
25
|
+
headerProps?: {
|
|
26
|
+
variant?: AccordionVariant;
|
|
27
|
+
color?: AccordionColor;
|
|
28
|
+
};
|
|
18
29
|
onChange?: (value: any[]) => void;
|
|
19
30
|
}
|
|
20
|
-
type NativeAttrs$
|
|
21
|
-
type AccordionProps = Props$
|
|
22
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
31
|
+
type NativeAttrs$A = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
32
|
+
type AccordionProps = Props$A & NativeAttrs$A;
|
|
33
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$A & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
23
34
|
|
|
24
35
|
interface AccordionItemContextValue {
|
|
25
36
|
value: string;
|
|
26
37
|
}
|
|
27
38
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
-
interface Props$
|
|
39
|
+
interface Props$z {
|
|
29
40
|
value?: any;
|
|
30
41
|
}
|
|
31
|
-
type NativeAttrs$
|
|
32
|
-
type AccordionItemProps = Props$
|
|
33
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
42
|
+
type NativeAttrs$z = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
43
|
+
type AccordionItemProps = Props$z & NativeAttrs$z;
|
|
44
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$z & NativeAttrs$z & react.RefAttributes<HTMLDivElement>>;
|
|
34
45
|
|
|
35
|
-
interface Props$
|
|
46
|
+
interface Props$y {
|
|
36
47
|
as?: React.ElementType;
|
|
37
48
|
title?: React.ReactNode;
|
|
38
49
|
subtitle?: React.ReactNode;
|
|
@@ -41,6 +52,8 @@ interface Props$w {
|
|
|
41
52
|
bordered?: boolean;
|
|
42
53
|
collapsible?: boolean;
|
|
43
54
|
arrow?: AccordionArrow;
|
|
55
|
+
variant?: AccordionVariant;
|
|
56
|
+
color?: AccordionColor;
|
|
44
57
|
slotProps?: {
|
|
45
58
|
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
46
59
|
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -49,9 +62,9 @@ interface Props$w {
|
|
|
49
62
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
63
|
};
|
|
51
64
|
}
|
|
52
|
-
type NativeAttrs$
|
|
53
|
-
type AccordionHeaderProps = Props$
|
|
54
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
65
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$y>;
|
|
66
|
+
type AccordionHeaderProps = Props$y & NativeAttrs$y;
|
|
67
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$y & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
55
68
|
|
|
56
69
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
70
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -68,6 +81,12 @@ interface AccordionContextValue {
|
|
|
68
81
|
value: any[];
|
|
69
82
|
expandMode: 'single' | 'multiple';
|
|
70
83
|
arrow: AccordionArrow;
|
|
84
|
+
variant: AccordionVariant;
|
|
85
|
+
color: AccordionColor;
|
|
86
|
+
headerProps: {
|
|
87
|
+
variant: AccordionVariant;
|
|
88
|
+
color: AccordionColor;
|
|
89
|
+
};
|
|
71
90
|
onChange: (value: any[]) => void;
|
|
72
91
|
}
|
|
73
92
|
declare const AccordionContext: react.Context<AccordionContextValue | null>;
|
|
@@ -304,6 +323,31 @@ declare function useEffectEvent<T extends Function>(fn: T): T;
|
|
|
304
323
|
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
305
324
|
declare function useValueEffect<S>(defaultValue: S | (() => S)): [S, Dispatch<SetValueAction<S>>];
|
|
306
325
|
|
|
326
|
+
declare const defaultBreakpoints: {
|
|
327
|
+
xs: number;
|
|
328
|
+
sm: number;
|
|
329
|
+
md: number;
|
|
330
|
+
lg: number;
|
|
331
|
+
xl: number;
|
|
332
|
+
xxl: number;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
declare enum ContainerMediaQuery {
|
|
336
|
+
XS = 0,
|
|
337
|
+
SM = 1,
|
|
338
|
+
MD = 2,
|
|
339
|
+
LG = 3,
|
|
340
|
+
XL = 4,
|
|
341
|
+
XXL = 5
|
|
342
|
+
}
|
|
343
|
+
type ContainerBreakpoints = typeof defaultBreakpoints;
|
|
344
|
+
|
|
345
|
+
interface UseContainerMediaQueryOptions<TElement extends HTMLElement = HTMLElement> {
|
|
346
|
+
ref: React.MutableRefObject<TElement | null>;
|
|
347
|
+
breakpoints?: Partial<ContainerBreakpoints>;
|
|
348
|
+
}
|
|
349
|
+
declare function useContainerMediaQuery<TElement extends HTMLElement = HTMLElement>(options: UseContainerMediaQueryOptions<TElement>): ContainerMediaQuery | undefined;
|
|
350
|
+
|
|
307
351
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
308
352
|
type InputColor = 'light' | 'dark' | 'inherit';
|
|
309
353
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
@@ -316,7 +360,7 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
316
360
|
}
|
|
317
361
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
318
362
|
|
|
319
|
-
interface Props$
|
|
363
|
+
interface Props$x {
|
|
320
364
|
as?: react__default.ElementType;
|
|
321
365
|
title?: react__default.ReactNode;
|
|
322
366
|
subtitle?: react__default.ReactNode;
|
|
@@ -334,11 +378,11 @@ interface Props$v {
|
|
|
334
378
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
379
|
};
|
|
336
380
|
}
|
|
337
|
-
type NativeAttrs$
|
|
338
|
-
type ListItemProps = Props$
|
|
339
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
381
|
+
type NativeAttrs$x = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
382
|
+
type ListItemProps = Props$x & NativeAttrs$x;
|
|
383
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$x & NativeAttrs$x & react__default.RefAttributes<HTMLDivElement>>;
|
|
340
384
|
|
|
341
|
-
interface Props$
|
|
385
|
+
interface Props$w {
|
|
342
386
|
expandVisible?: boolean;
|
|
343
387
|
expandPosition?: 'start' | 'end';
|
|
344
388
|
isOpen?: boolean;
|
|
@@ -346,9 +390,9 @@ interface Props$u {
|
|
|
346
390
|
onClose?: () => void;
|
|
347
391
|
onToggle?: () => void;
|
|
348
392
|
}
|
|
349
|
-
type NativeAttrs$
|
|
350
|
-
type ListGroupProps = Props$
|
|
351
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
393
|
+
type NativeAttrs$w = Omit<ListItemProps, keyof Props$w>;
|
|
394
|
+
type ListGroupProps = Props$w & NativeAttrs$w;
|
|
395
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$w & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
352
396
|
|
|
353
397
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
398
|
as?: React.ElementType;
|
|
@@ -390,8 +434,8 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
390
434
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
435
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
436
|
}
|
|
393
|
-
type NativeAttrs$
|
|
394
|
-
type Props$
|
|
437
|
+
type NativeAttrs$v<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
438
|
+
type Props$v<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
439
|
data: TAutocompleteItem[];
|
|
396
440
|
keyField?: TAutocompleteKeyField;
|
|
397
441
|
textField?: keyof TAutocompleteItem;
|
|
@@ -412,14 +456,14 @@ type Props$t<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
412
456
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
457
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
458
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
415
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$
|
|
459
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$v<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$v<TAutocompleteItem, TAutocompleteKeyField>;
|
|
416
460
|
|
|
417
461
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
418
462
|
|
|
419
463
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
420
464
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
421
465
|
|
|
422
|
-
interface Props$
|
|
466
|
+
interface Props$u {
|
|
423
467
|
isOpen: boolean;
|
|
424
468
|
closable?: boolean;
|
|
425
469
|
placement?: BackdropPlacement;
|
|
@@ -428,14 +472,14 @@ interface Props$s {
|
|
|
428
472
|
scrollArea?: boolean;
|
|
429
473
|
onClose(): void;
|
|
430
474
|
}
|
|
431
|
-
type NativeAttrs$
|
|
432
|
-
type BackdropProps = Props$
|
|
433
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
475
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
476
|
+
type BackdropProps = Props$u & NativeAttrs$u;
|
|
477
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$u & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
434
478
|
|
|
435
479
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
436
480
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
437
481
|
|
|
438
|
-
interface Props$
|
|
482
|
+
interface Props$t {
|
|
439
483
|
/**
|
|
440
484
|
* The placement of the badge relative to its content.
|
|
441
485
|
*/
|
|
@@ -453,8 +497,8 @@ interface Props$r {
|
|
|
453
497
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
498
|
};
|
|
455
499
|
}
|
|
456
|
-
type NativeAttrs$
|
|
457
|
-
type BadgeProps = Props$
|
|
500
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
501
|
+
type BadgeProps = Props$t & NativeAttrs$t;
|
|
458
502
|
declare const Badge: React.FC<BadgeProps>;
|
|
459
503
|
|
|
460
504
|
type DataListItem = Record<string, any>;
|
|
@@ -471,7 +515,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
471
515
|
onChange?: (value: TDataListItem[]) => void;
|
|
472
516
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
517
|
}
|
|
474
|
-
type Props$
|
|
518
|
+
type Props$s<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
519
|
data: TDataListItem[];
|
|
476
520
|
keyField?: TDataListKeyField;
|
|
477
521
|
textField?: keyof DataListItem;
|
|
@@ -486,8 +530,8 @@ type Props$q<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
486
530
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
531
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
532
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
-
type NativeAttrs$
|
|
490
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
533
|
+
type NativeAttrs$s<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s<TDataListItem, TDataListKeyField>>;
|
|
534
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$s<TDataListItem, TDataListKeyField> & NativeAttrs$s<TDataListItem, TDataListKeyField>;
|
|
491
535
|
|
|
492
536
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
493
537
|
|
|
@@ -496,7 +540,7 @@ type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'd
|
|
|
496
540
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
497
541
|
type ButtonGroupDirection = 'row' | 'col';
|
|
498
542
|
|
|
499
|
-
interface Props$
|
|
543
|
+
interface Props$r {
|
|
500
544
|
/**
|
|
501
545
|
* The HTML element type or React component to render as the button.
|
|
502
546
|
*/
|
|
@@ -541,20 +585,20 @@ interface Props$p {
|
|
|
541
585
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
542
586
|
};
|
|
543
587
|
}
|
|
544
|
-
type NativeAttrs$
|
|
545
|
-
type ButtonProps = Props$
|
|
546
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
588
|
+
type NativeAttrs$r = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$r>;
|
|
589
|
+
type ButtonProps = Props$r & NativeAttrs$r;
|
|
590
|
+
declare const Button: react.ForwardRefExoticComponent<Props$r & NativeAttrs$r & react.RefAttributes<HTMLButtonElement>>;
|
|
547
591
|
|
|
548
|
-
interface Props$
|
|
592
|
+
interface Props$q {
|
|
549
593
|
direction?: ButtonGroupDirection;
|
|
550
594
|
variant?: ButtonVariant;
|
|
551
595
|
color?: ButtonColor;
|
|
552
596
|
size?: ButtonSize;
|
|
553
597
|
disabled?: boolean;
|
|
554
598
|
}
|
|
555
|
-
type NativeAttrs$
|
|
556
|
-
type ButtonGroupProps = Props$
|
|
557
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
599
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q>;
|
|
600
|
+
type ButtonGroupProps = Props$q & NativeAttrs$q;
|
|
601
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$q & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
558
602
|
|
|
559
603
|
interface ButtonGroupContextValue {
|
|
560
604
|
direction: ButtonGroupDirection;
|
|
@@ -584,25 +628,26 @@ type BoxCSS = {
|
|
|
584
628
|
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
585
629
|
};
|
|
586
630
|
|
|
587
|
-
type CardSize = 'sm' | 'md' | 'lg';
|
|
631
|
+
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
588
632
|
|
|
589
|
-
interface Props$
|
|
633
|
+
interface Props$p {
|
|
590
634
|
as?: React.ElementType;
|
|
591
635
|
size?: CardSize;
|
|
592
636
|
hoverable?: boolean;
|
|
593
637
|
selected?: boolean;
|
|
594
638
|
disabled?: boolean;
|
|
595
639
|
bordered?: boolean;
|
|
640
|
+
shadow?: boolean;
|
|
596
641
|
css?: BoxCSS;
|
|
597
642
|
}
|
|
598
|
-
type NativeAttrs$
|
|
599
|
-
type CardProps = Props$
|
|
600
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
643
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p>;
|
|
644
|
+
type CardProps = Props$p & NativeAttrs$p;
|
|
645
|
+
declare const Card: react.ForwardRefExoticComponent<Props$p & NativeAttrs$p & react.RefAttributes<HTMLDivElement>>;
|
|
601
646
|
|
|
602
647
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
603
648
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
604
649
|
|
|
605
|
-
interface Props$
|
|
650
|
+
interface Props$o {
|
|
606
651
|
as?: React.ElementType;
|
|
607
652
|
title?: React.ReactNode;
|
|
608
653
|
subtitle?: React.ReactNode;
|
|
@@ -617,23 +662,32 @@ interface Props$m {
|
|
|
617
662
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
618
663
|
};
|
|
619
664
|
}
|
|
620
|
-
type NativeAttrs$
|
|
621
|
-
type CardHeaderProps = Props$
|
|
622
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
665
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
666
|
+
type CardHeaderProps = Props$o & NativeAttrs$o;
|
|
667
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$o & NativeAttrs$o & react.RefAttributes<HTMLDivElement>>;
|
|
623
668
|
|
|
624
|
-
interface Props$
|
|
669
|
+
interface Props$n {
|
|
625
670
|
as?: React.ElementType;
|
|
626
671
|
bordered?: boolean;
|
|
627
672
|
}
|
|
628
|
-
type NativeAttrs$
|
|
629
|
-
type CardFooterProps = Props$
|
|
630
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
673
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
674
|
+
type CardFooterProps = Props$n & NativeAttrs$n;
|
|
675
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$n & NativeAttrs$n & react.RefAttributes<HTMLDivElement>>;
|
|
676
|
+
|
|
677
|
+
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
678
|
+
topLeftContent?: React.ReactNode;
|
|
679
|
+
topRightContent?: React.ReactNode;
|
|
680
|
+
};
|
|
681
|
+
declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
682
|
+
topLeftContent?: React.ReactNode;
|
|
683
|
+
topRightContent?: React.ReactNode;
|
|
684
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
631
685
|
|
|
632
686
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
633
687
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
634
688
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
635
689
|
|
|
636
|
-
interface Props$
|
|
690
|
+
interface Props$m {
|
|
637
691
|
/**
|
|
638
692
|
* The HTML element type or React component to render as the chip.
|
|
639
693
|
*/
|
|
@@ -671,9 +725,9 @@ interface Props$k {
|
|
|
671
725
|
};
|
|
672
726
|
onClose?: () => void;
|
|
673
727
|
}
|
|
674
|
-
type NativeAttrs$
|
|
675
|
-
type ChipProps = Props$
|
|
676
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
728
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m>;
|
|
729
|
+
type ChipProps = Props$m & NativeAttrs$m;
|
|
730
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$m & NativeAttrs$m & react.RefAttributes<HTMLDivElement>>;
|
|
677
731
|
|
|
678
732
|
interface CollapseProps {
|
|
679
733
|
children: React.ReactNode;
|
|
@@ -717,7 +771,7 @@ interface DrawerClose {
|
|
|
717
771
|
}
|
|
718
772
|
type DrawerBackdrop = BackdropVariant;
|
|
719
773
|
|
|
720
|
-
interface Props$
|
|
774
|
+
interface Props$l {
|
|
721
775
|
isOpen: boolean;
|
|
722
776
|
size?: DrawerSize;
|
|
723
777
|
backdrop?: DrawerBackdrop;
|
|
@@ -734,11 +788,11 @@ interface Props$j {
|
|
|
734
788
|
onClose: () => void;
|
|
735
789
|
onAfterClose?: () => void;
|
|
736
790
|
}
|
|
737
|
-
type NativeAttrs$
|
|
738
|
-
type DrawerProps = Props$
|
|
739
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
791
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
792
|
+
type DrawerProps = Props$l & NativeAttrs$l;
|
|
793
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$l & NativeAttrs$l & react.RefAttributes<HTMLDivElement>>;
|
|
740
794
|
|
|
741
|
-
interface Props$
|
|
795
|
+
interface Props$k {
|
|
742
796
|
as?: React.ElementType;
|
|
743
797
|
title?: React.ReactNode;
|
|
744
798
|
subtitle?: React.ReactNode;
|
|
@@ -754,20 +808,20 @@ interface Props$i {
|
|
|
754
808
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
755
809
|
};
|
|
756
810
|
}
|
|
757
|
-
type NativeAttrs$
|
|
758
|
-
type DrawerHeaderProps = Props$
|
|
759
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
811
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
812
|
+
type DrawerHeaderProps = Props$k & NativeAttrs$k;
|
|
813
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$k & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
760
814
|
|
|
761
815
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
762
816
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
763
817
|
|
|
764
|
-
interface Props$
|
|
818
|
+
interface Props$j {
|
|
765
819
|
as?: React.ElementType;
|
|
766
820
|
bordered?: boolean;
|
|
767
821
|
}
|
|
768
|
-
type NativeAttrs$
|
|
769
|
-
type DrawerFooterProps = Props$
|
|
770
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
822
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
823
|
+
type DrawerFooterProps = Props$j & NativeAttrs$j;
|
|
824
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$j & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
771
825
|
|
|
772
826
|
interface DrawerContextValue {
|
|
773
827
|
isOpen: boolean;
|
|
@@ -791,7 +845,7 @@ interface IconProps {
|
|
|
791
845
|
}
|
|
792
846
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
793
847
|
|
|
794
|
-
interface Props$
|
|
848
|
+
interface Props$i {
|
|
795
849
|
/**
|
|
796
850
|
* The HTML element type or React component to render as the menu item.
|
|
797
851
|
*/
|
|
@@ -817,9 +871,9 @@ interface Props$g {
|
|
|
817
871
|
*/
|
|
818
872
|
disabled?: boolean;
|
|
819
873
|
}
|
|
820
|
-
type NativeAttrs$
|
|
821
|
-
type MenuItemProps = Props$
|
|
822
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
874
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i | 'items'>;
|
|
875
|
+
type MenuItemProps = Props$i & NativeAttrs$i;
|
|
876
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$i & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
823
877
|
|
|
824
878
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
825
879
|
items?: MenuItemType[];
|
|
@@ -843,7 +897,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
843
897
|
}) | (MenuItemProps & {
|
|
844
898
|
type?: 'item';
|
|
845
899
|
});
|
|
846
|
-
interface Props$
|
|
900
|
+
interface Props$h {
|
|
847
901
|
/**
|
|
848
902
|
* The currently selected value of the menu.
|
|
849
903
|
*/
|
|
@@ -879,8 +933,8 @@ interface Props$f {
|
|
|
879
933
|
*/
|
|
880
934
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
881
935
|
}
|
|
882
|
-
type NativeAttrs$
|
|
883
|
-
type MenuProps = Props$
|
|
936
|
+
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h | 'items'>;
|
|
937
|
+
type MenuProps = Props$h & NativeAttrs$h & {
|
|
884
938
|
items?: MenuItemType[];
|
|
885
939
|
};
|
|
886
940
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -967,8 +1021,8 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
967
1021
|
onChange?: (value: TSelectItem[]) => void;
|
|
968
1022
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
969
1023
|
}
|
|
970
|
-
type NativeAttrs$
|
|
971
|
-
type Props$
|
|
1024
|
+
type NativeAttrs$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g<TSelectItem, TSelectKeyField>>;
|
|
1025
|
+
type Props$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
972
1026
|
data: TSelectItem[];
|
|
973
1027
|
keyField?: TSelectKeyField;
|
|
974
1028
|
textField?: keyof TSelectItem;
|
|
@@ -987,7 +1041,7 @@ type Props$e<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
987
1041
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
988
1042
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
989
1043
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
990
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$
|
|
1044
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$g<TSelectItem, TSelectKeyField> & NativeAttrs$g<TSelectItem, TSelectKeyField>;
|
|
991
1045
|
|
|
992
1046
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
993
1047
|
|
|
@@ -996,19 +1050,20 @@ type ColorScheme = 'default' | 'light' | 'dark';
|
|
|
996
1050
|
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
997
1051
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
998
1052
|
|
|
999
|
-
interface Props$
|
|
1053
|
+
interface Props$f {
|
|
1000
1054
|
size?: SwitchSize;
|
|
1001
1055
|
labelPlacement?: SwitchLabelPlacement;
|
|
1002
1056
|
colorScheme?: ColorScheme;
|
|
1003
1057
|
}
|
|
1004
|
-
type NativeAttrs$
|
|
1005
|
-
type SwitchProps = Props$
|
|
1006
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1058
|
+
type NativeAttrs$f = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'value' | 'defaultValue'>;
|
|
1059
|
+
type SwitchProps = Props$f & NativeAttrs$f;
|
|
1060
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$f & NativeAttrs$f & react.RefAttributes<HTMLInputElement>>;
|
|
1007
1061
|
|
|
1062
|
+
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1008
1063
|
type TabValue = string | number | symbol;
|
|
1009
1064
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1010
1065
|
|
|
1011
|
-
interface Props$
|
|
1066
|
+
interface Props$e<TTabValue extends TabValue = TabValue> {
|
|
1012
1067
|
/**
|
|
1013
1068
|
* The HTML element type or React component to render as the tab.
|
|
1014
1069
|
*/
|
|
@@ -1034,11 +1089,11 @@ interface Props$c<TTabValue extends TabValue = TabValue> {
|
|
|
1034
1089
|
*/
|
|
1035
1090
|
endContent?: React.ReactNode;
|
|
1036
1091
|
}
|
|
1037
|
-
type NativeAttrs$
|
|
1038
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1039
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1092
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1093
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$e<TTabValue> & NativeAttrs$e;
|
|
1094
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$e<TabValue> & NativeAttrs$e & react.RefAttributes<HTMLDivElement>>;
|
|
1040
1095
|
|
|
1041
|
-
interface Props$
|
|
1096
|
+
interface Props$d<TTabValue extends TabValue = TabValue> {
|
|
1042
1097
|
/**
|
|
1043
1098
|
* The currently selected value of the tabs.
|
|
1044
1099
|
*/
|
|
@@ -1047,6 +1102,7 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1047
1102
|
* The default value of the tabs when initially rendered.
|
|
1048
1103
|
*/
|
|
1049
1104
|
defaultValue?: TTabValue;
|
|
1105
|
+
variant?: TabsVariant;
|
|
1050
1106
|
/**
|
|
1051
1107
|
* The alignment of the tabs.
|
|
1052
1108
|
*/
|
|
@@ -1060,11 +1116,11 @@ interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
|
1060
1116
|
*/
|
|
1061
1117
|
onClose?: (value: TTabValue) => void;
|
|
1062
1118
|
}
|
|
1063
|
-
type NativeAttrs$
|
|
1064
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1065
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1119
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
1120
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$d<TTabValue> & NativeAttrs$d;
|
|
1121
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$d<TTabValue> & NativeAttrs$d & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1066
1122
|
|
|
1067
|
-
interface Props$
|
|
1123
|
+
interface Props$c {
|
|
1068
1124
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1069
1125
|
variant?: InputVariant;
|
|
1070
1126
|
color?: InputColor;
|
|
@@ -1073,13 +1129,13 @@ interface Props$a {
|
|
|
1073
1129
|
endContent?: React.ReactNode;
|
|
1074
1130
|
css?: BoxCSS;
|
|
1075
1131
|
}
|
|
1076
|
-
type NativeAttrs$
|
|
1077
|
-
type TextInputProps = Props$
|
|
1078
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1132
|
+
type NativeAttrs$c = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$c>;
|
|
1133
|
+
type TextInputProps = Props$c & NativeAttrs$c;
|
|
1134
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$c & NativeAttrs$c & react.RefAttributes<HTMLInputElement>>;
|
|
1079
1135
|
|
|
1080
1136
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1081
1137
|
|
|
1082
|
-
interface Props$
|
|
1138
|
+
interface Props$b {
|
|
1083
1139
|
size?: ToolbarSize;
|
|
1084
1140
|
title?: React.ReactNode;
|
|
1085
1141
|
subtitle?: React.ReactNode;
|
|
@@ -1101,8 +1157,8 @@ interface Props$9 {
|
|
|
1101
1157
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1102
1158
|
};
|
|
1103
1159
|
}
|
|
1104
|
-
type NativeAttrs$
|
|
1105
|
-
type ToolbarProps = Props$
|
|
1160
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1161
|
+
type ToolbarProps = Props$b & NativeAttrs$b;
|
|
1106
1162
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1107
1163
|
|
|
1108
1164
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1117,32 +1173,33 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1117
1173
|
}
|
|
1118
1174
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
1119
1175
|
|
|
1120
|
-
interface Props$
|
|
1176
|
+
interface Props$a {
|
|
1121
1177
|
/**
|
|
1122
1178
|
* The HTML element type or React component to render as the tab.
|
|
1123
1179
|
*/
|
|
1124
1180
|
as?: React.ElementType;
|
|
1125
1181
|
width?: number;
|
|
1126
1182
|
}
|
|
1127
|
-
type NativeAttrs$
|
|
1128
|
-
type SwipeItemProps = Props$
|
|
1129
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1183
|
+
type NativeAttrs$a = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1184
|
+
type SwipeItemProps = Props$a & NativeAttrs$a;
|
|
1185
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$a & {
|
|
1130
1186
|
children?: react.ReactNode | undefined;
|
|
1131
1187
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1132
1188
|
|
|
1133
1189
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1134
1190
|
|
|
1135
|
-
interface Props$
|
|
1191
|
+
interface Props$9 {
|
|
1136
1192
|
gap?: number;
|
|
1137
1193
|
alignment?: SwiperAlignmet;
|
|
1138
1194
|
autoHide?: boolean;
|
|
1139
1195
|
slotProps?: {
|
|
1196
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1140
1197
|
arrowLeftButton?: ButtonProps;
|
|
1141
1198
|
arrowRightButton?: ButtonProps;
|
|
1142
1199
|
};
|
|
1143
1200
|
}
|
|
1144
|
-
type NativeAttrs$
|
|
1145
|
-
type SwipeProps = Props$
|
|
1201
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
1202
|
+
type SwipeProps = Props$9 & NativeAttrs$9;
|
|
1146
1203
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1147
1204
|
|
|
1148
1205
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1154,7 +1211,7 @@ interface ModalClose {
|
|
|
1154
1211
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1155
1212
|
type ModalBackdrop = BackdropVariant;
|
|
1156
1213
|
|
|
1157
|
-
interface Props$
|
|
1214
|
+
interface Props$8 {
|
|
1158
1215
|
isOpen: boolean;
|
|
1159
1216
|
size?: ModalSize;
|
|
1160
1217
|
backdrop?: ModalBackdrop;
|
|
@@ -1169,9 +1226,9 @@ interface Props$6 {
|
|
|
1169
1226
|
onClose: () => void;
|
|
1170
1227
|
onAfterClose?: () => void;
|
|
1171
1228
|
}
|
|
1172
|
-
type NativeAttrs$
|
|
1173
|
-
type ModalProps = Props$
|
|
1174
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1229
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1230
|
+
type ModalProps = Props$8 & NativeAttrs$8;
|
|
1231
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1175
1232
|
|
|
1176
1233
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1177
1234
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1185,15 +1242,15 @@ interface ModalContextValue {
|
|
|
1185
1242
|
}
|
|
1186
1243
|
declare function useModal(): ModalContextValue;
|
|
1187
1244
|
|
|
1188
|
-
interface Props$
|
|
1245
|
+
interface Props$7 {
|
|
1189
1246
|
as?: React.ElementType;
|
|
1190
1247
|
bordered?: boolean;
|
|
1191
1248
|
}
|
|
1192
|
-
type NativeAttrs$
|
|
1193
|
-
type ModalFooterProps = Props$
|
|
1194
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1249
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1250
|
+
type ModalFooterProps = Props$7 & NativeAttrs$7;
|
|
1251
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1195
1252
|
|
|
1196
|
-
interface Props$
|
|
1253
|
+
interface Props$6 {
|
|
1197
1254
|
as?: React.ElementType;
|
|
1198
1255
|
title?: React.ReactNode;
|
|
1199
1256
|
subtitle?: React.ReactNode;
|
|
@@ -1209,9 +1266,9 @@ interface Props$4 {
|
|
|
1209
1266
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1210
1267
|
};
|
|
1211
1268
|
}
|
|
1212
|
-
type NativeAttrs$
|
|
1213
|
-
type ModalHeaderProps = Props$
|
|
1214
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1269
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1270
|
+
type ModalHeaderProps = Props$6 & NativeAttrs$6;
|
|
1271
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1215
1272
|
|
|
1216
1273
|
type CheckboxValue = string | number | symbol;
|
|
1217
1274
|
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
@@ -1219,17 +1276,17 @@ type CheckboxLabelPlacement = 'before' | 'after';
|
|
|
1219
1276
|
type CheckboxGroupDirection = 'row' | 'col';
|
|
1220
1277
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1221
1278
|
|
|
1222
|
-
interface Props$
|
|
1279
|
+
interface Props$5<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1223
1280
|
value?: TCheckboxValue;
|
|
1224
1281
|
size?: CheckboxSize;
|
|
1225
1282
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1226
1283
|
colorScheme?: ColorScheme;
|
|
1227
1284
|
}
|
|
1228
|
-
type NativeAttrs$
|
|
1229
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1230
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1285
|
+
type NativeAttrs$5 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$5 | 'defaultValue'>;
|
|
1286
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$5<TCheckboxValue> & NativeAttrs$5;
|
|
1287
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$5<TCheckboxValue> & NativeAttrs$5 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1231
1288
|
|
|
1232
|
-
interface Props$
|
|
1289
|
+
interface Props$4<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1233
1290
|
value?: TCheckboxValue[];
|
|
1234
1291
|
defaultValue?: TCheckboxValue[];
|
|
1235
1292
|
disabled?: boolean;
|
|
@@ -1241,9 +1298,9 @@ interface Props$2<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1241
1298
|
colorScheme?: ColorScheme;
|
|
1242
1299
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1243
1300
|
}
|
|
1244
|
-
type NativeAttrs$
|
|
1245
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1246
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1301
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1302
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$4<TCheckboxValue> & NativeAttrs$4;
|
|
1303
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$4<TCheckboxValue> & NativeAttrs$4 & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1247
1304
|
|
|
1248
1305
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1249
1306
|
value: TCheckboxValue[];
|
|
@@ -1263,7 +1320,7 @@ type RadioLabelPlacement = 'before' | 'after';
|
|
|
1263
1320
|
type RadioGroupDirection = 'row' | 'col';
|
|
1264
1321
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1265
1322
|
|
|
1266
|
-
interface Props$
|
|
1323
|
+
interface Props$3<TRadioValue extends RadioValue = RadioValue> {
|
|
1267
1324
|
value?: TRadioValue;
|
|
1268
1325
|
disabled?: boolean;
|
|
1269
1326
|
readOnly?: boolean;
|
|
@@ -1271,11 +1328,11 @@ interface Props$1<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1271
1328
|
labelPlacement?: RadioLabelPlacement;
|
|
1272
1329
|
colorScheme?: ColorScheme;
|
|
1273
1330
|
}
|
|
1274
|
-
type NativeAttrs$
|
|
1275
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1276
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1331
|
+
type NativeAttrs$3 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$3 | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1332
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$3<TRadioValue> & NativeAttrs$3;
|
|
1333
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$3<TRadioValue> & NativeAttrs$3 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1277
1334
|
|
|
1278
|
-
interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
1335
|
+
interface Props$2<TRadioValue extends RadioValue = RadioValue> {
|
|
1279
1336
|
name?: string;
|
|
1280
1337
|
value?: TRadioValue;
|
|
1281
1338
|
defaultValue?: TRadioValue;
|
|
@@ -1288,9 +1345,9 @@ interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1288
1345
|
colorScheme?: ColorScheme;
|
|
1289
1346
|
onChange?: (value: TRadioValue) => void;
|
|
1290
1347
|
}
|
|
1291
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1292
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props<TRadioValue> & NativeAttrs;
|
|
1293
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props<TRadioValue> & NativeAttrs & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1348
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1349
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$2<TRadioValue> & NativeAttrs$2;
|
|
1350
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$2<TRadioValue> & NativeAttrs$2 & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1294
1351
|
|
|
1295
1352
|
interface RadioGroupContextValue {
|
|
1296
1353
|
name: string;
|
|
@@ -1305,6 +1362,88 @@ interface RadioGroupContextValue {
|
|
|
1305
1362
|
}
|
|
1306
1363
|
declare const useRadioGroup: () => RadioGroupContextValue;
|
|
1307
1364
|
|
|
1365
|
+
type NavRailPlacement = 'left' | 'right';
|
|
1366
|
+
|
|
1367
|
+
interface Props$1 {
|
|
1368
|
+
startContent?: React.ReactNode;
|
|
1369
|
+
endContent?: React.ReactNode;
|
|
1370
|
+
placement?: NavRailPlacement;
|
|
1371
|
+
}
|
|
1372
|
+
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1373
|
+
type NavRailProps = Props$1 & NativeAttrs$1;
|
|
1374
|
+
declare const NavRail: React.FC<NavRailProps>;
|
|
1375
|
+
|
|
1376
|
+
interface Props {
|
|
1377
|
+
as?: React.ElementType;
|
|
1378
|
+
icon?: React.ReactNode;
|
|
1379
|
+
media?: React.ReactNode;
|
|
1380
|
+
label?: React.ReactNode;
|
|
1381
|
+
selected?: boolean;
|
|
1382
|
+
}
|
|
1383
|
+
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1384
|
+
type NavRailItemProps = Props & NativeAttrs;
|
|
1385
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props & NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1386
|
+
|
|
1387
|
+
type DescriptionSpan = {
|
|
1388
|
+
xs?: number;
|
|
1389
|
+
sm?: number;
|
|
1390
|
+
md?: number;
|
|
1391
|
+
lg?: number;
|
|
1392
|
+
xl?: number;
|
|
1393
|
+
xxl?: number;
|
|
1394
|
+
};
|
|
1395
|
+
interface DescriptionItemString {
|
|
1396
|
+
type: 'string';
|
|
1397
|
+
value?: string;
|
|
1398
|
+
}
|
|
1399
|
+
interface DescriptionItemNumber {
|
|
1400
|
+
type: 'number';
|
|
1401
|
+
value?: number | string;
|
|
1402
|
+
}
|
|
1403
|
+
interface DescriptionItemDate {
|
|
1404
|
+
type: 'date';
|
|
1405
|
+
value?: Date | string | number;
|
|
1406
|
+
format?: 'date' | 'datetime' | 'time';
|
|
1407
|
+
locales?: Intl.LocalesArgument;
|
|
1408
|
+
options?: Intl.DateTimeFormatOptions;
|
|
1409
|
+
}
|
|
1410
|
+
interface DescriptionItemBoolean {
|
|
1411
|
+
type: 'boolean';
|
|
1412
|
+
value?: boolean;
|
|
1413
|
+
labels?: {
|
|
1414
|
+
true?: string;
|
|
1415
|
+
false?: string;
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
interface DescriptionItemCurrency {
|
|
1419
|
+
type: 'currency';
|
|
1420
|
+
value?: number | bigint | Intl.StringNumericLiteral;
|
|
1421
|
+
currency?: string;
|
|
1422
|
+
locales?: Intl.LocalesArgument;
|
|
1423
|
+
options?: Intl.NumberFormatOptions;
|
|
1424
|
+
}
|
|
1425
|
+
interface DescriptionItemPercent {
|
|
1426
|
+
type: 'percent';
|
|
1427
|
+
value?: number | string;
|
|
1428
|
+
decimals?: number;
|
|
1429
|
+
locales?: Intl.LocalesArgument;
|
|
1430
|
+
options?: Intl.NumberFormatOptions;
|
|
1431
|
+
}
|
|
1432
|
+
type DescriptionItem = {
|
|
1433
|
+
name: React.ReactNode;
|
|
1434
|
+
span?: number | DescriptionSpan;
|
|
1435
|
+
} & (DescriptionItemString | DescriptionItemNumber | DescriptionItemDate | DescriptionItemBoolean | DescriptionItemCurrency | DescriptionItemPercent);
|
|
1436
|
+
|
|
1437
|
+
interface DescriptionsProps {
|
|
1438
|
+
items: DescriptionItem[];
|
|
1439
|
+
}
|
|
1440
|
+
declare const Descriptions: React.FC<DescriptionsProps>;
|
|
1441
|
+
|
|
1442
|
+
interface DescriptionProps {
|
|
1443
|
+
item: DescriptionItem;
|
|
1444
|
+
}
|
|
1445
|
+
declare const Description: React.FC<DescriptionProps>;
|
|
1446
|
+
|
|
1308
1447
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1309
1448
|
|
|
1310
1449
|
type ClassDictionary = Record<string, any>;
|
|
@@ -1316,4 +1455,11 @@ type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
|
1316
1455
|
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1317
1456
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
1318
1457
|
|
|
1319
|
-
|
|
1458
|
+
declare function formatDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1459
|
+
declare function formatFullDataTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1460
|
+
declare function formatShortDateTime(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1461
|
+
declare function formatShortDate(value: Date | string | number, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
1462
|
+
declare function formatCurrency(value: number | bigint | Intl.StringNumericLiteral, currency?: string, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1463
|
+
declare function formatPercent(value: any, decimals?: number, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1464
|
+
|
|
1465
|
+
export { Accordion, type AccordionArrow, AccordionBody, type AccordionBodyProps, type AccordionColor, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, Autocomplete, type AutocompleteItem, type AutocompleteKeyField, type AutocompleteMultipleProps, type AutocompleteProps, type AutocompleteSingleProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupAlignment, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxLabelPlacement, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, type ContainerBreakpoints, ContainerMediaQuery, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, Description, type DescriptionItem, type DescriptionProps, type DescriptionSpan, Descriptions, type DescriptionsProps, type Disclosure, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, Icon, type IconColor, type IconProps, type IconSize, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, RadioGroup, type RadioGroupAlignment, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectItem, type SelectKeyField, type SelectMultipleProps, type SelectProps, type SelectSingleProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchProps, type SwitchSize, Tab, type TabProps, Tabs, type TabsAlignment, type TabsProps, type TabsVariant, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, clsx, formatCurrency, formatDate, formatFullDataTime, formatPercent, formatShortDate, formatShortDateTime, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|