@unifiedsoftware/react-ui 2.0.0-beta.1 → 2.0.0-beta.11
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 +343 -188
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import * as react from 'react';
|
|
|
2
2
|
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
|
+
import { FloatingRootContext } from '@floating-ui/react';
|
|
5
6
|
|
|
6
|
-
interface Props$
|
|
7
|
+
interface Props$O {
|
|
7
8
|
}
|
|
8
|
-
type NativeAttrs$
|
|
9
|
-
type DividerProps = Props$
|
|
10
|
-
declare const Divider: react.ForwardRefExoticComponent<Props$
|
|
9
|
+
type NativeAttrs$Q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$O>;
|
|
10
|
+
type DividerProps = Props$O & NativeAttrs$Q;
|
|
11
|
+
declare const Divider: react.ForwardRefExoticComponent<Props$O & NativeAttrs$Q & react.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
|
|
12
13
|
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
14
|
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -35,7 +36,7 @@ interface AccordionArrow {
|
|
|
35
36
|
position?: 'start' | 'end';
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
interface Props$
|
|
39
|
+
interface Props$N {
|
|
39
40
|
value?: any[];
|
|
40
41
|
defaultValue?: any[];
|
|
41
42
|
expandMode?: 'single' | 'multiple';
|
|
@@ -52,9 +53,9 @@ interface Props$K {
|
|
|
52
53
|
}) => React.ReactNode;
|
|
53
54
|
onChange?: (value: any[]) => void;
|
|
54
55
|
}
|
|
55
|
-
type NativeAttrs$
|
|
56
|
-
type AccordionProps = Props$
|
|
57
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
56
|
+
type NativeAttrs$P = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$N>;
|
|
57
|
+
type AccordionProps = Props$N & NativeAttrs$P;
|
|
58
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$N & NativeAttrs$P & react.RefAttributes<HTMLDivElement>>;
|
|
58
59
|
|
|
59
60
|
interface AccordionItemContextValue {
|
|
60
61
|
value: string;
|
|
@@ -63,7 +64,7 @@ interface AccordionItemContextValue {
|
|
|
63
64
|
}) => React.ReactNode;
|
|
64
65
|
}
|
|
65
66
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
66
|
-
interface Props$
|
|
67
|
+
interface Props$M {
|
|
67
68
|
value?: any;
|
|
68
69
|
variant?: AccordionVariant;
|
|
69
70
|
color?: AccordionColor;
|
|
@@ -71,11 +72,11 @@ interface Props$J {
|
|
|
71
72
|
isOpen: boolean;
|
|
72
73
|
}) => React.ReactNode;
|
|
73
74
|
}
|
|
74
|
-
type NativeAttrs$
|
|
75
|
-
type AccordionItemProps = Props$
|
|
76
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
75
|
+
type NativeAttrs$O = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$M>;
|
|
76
|
+
type AccordionItemProps = Props$M & NativeAttrs$O;
|
|
77
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$M & NativeAttrs$O & react.RefAttributes<HTMLDivElement>>;
|
|
77
78
|
|
|
78
|
-
interface Props$
|
|
79
|
+
interface Props$L {
|
|
79
80
|
as?: React.ElementType;
|
|
80
81
|
title?: React.ReactNode;
|
|
81
82
|
subtitle?: React.ReactNode;
|
|
@@ -93,9 +94,9 @@ interface Props$I {
|
|
|
93
94
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
|
-
type NativeAttrs$
|
|
97
|
-
type AccordionHeaderProps = Props$
|
|
98
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
97
|
+
type NativeAttrs$N = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$L>;
|
|
98
|
+
type AccordionHeaderProps = Props$L & NativeAttrs$N;
|
|
99
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$L & NativeAttrs$N & react.RefAttributes<HTMLDivElement>>;
|
|
99
100
|
|
|
100
101
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
101
102
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -490,11 +491,11 @@ type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
490
491
|
type InputColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
491
492
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
492
493
|
|
|
493
|
-
interface Props$
|
|
494
|
+
interface Props$K {
|
|
494
495
|
}
|
|
495
|
-
type NativeAttrs$
|
|
496
|
-
type InputGroupProps = Props$
|
|
497
|
-
declare const InputGroup: react.ForwardRefExoticComponent<Props$
|
|
496
|
+
type NativeAttrs$M = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$K>;
|
|
497
|
+
type InputGroupProps = Props$K & NativeAttrs$M;
|
|
498
|
+
declare const InputGroup: react.ForwardRefExoticComponent<Props$K & NativeAttrs$M & react.RefAttributes<HTMLDivElement>>;
|
|
498
499
|
|
|
499
500
|
type ListSize = 'sm' | 'md' | 'lg';
|
|
500
501
|
|
|
@@ -504,7 +505,7 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
504
505
|
}
|
|
505
506
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
506
507
|
|
|
507
|
-
interface Props$
|
|
508
|
+
interface Props$J {
|
|
508
509
|
as?: react__default.ElementType;
|
|
509
510
|
title?: react__default.ReactNode;
|
|
510
511
|
subtitle?: react__default.ReactNode;
|
|
@@ -522,11 +523,11 @@ interface Props$G {
|
|
|
522
523
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
523
524
|
};
|
|
524
525
|
}
|
|
525
|
-
type NativeAttrs$
|
|
526
|
-
type ListItemProps = Props$
|
|
527
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
526
|
+
type NativeAttrs$L = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$J>;
|
|
527
|
+
type ListItemProps = Props$J & NativeAttrs$L;
|
|
528
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$J & NativeAttrs$L & react__default.RefAttributes<HTMLDivElement>>;
|
|
528
529
|
|
|
529
|
-
interface Props$
|
|
530
|
+
interface Props$I {
|
|
530
531
|
expandVisible?: boolean;
|
|
531
532
|
expandPosition?: 'start' | 'end';
|
|
532
533
|
isOpen?: boolean;
|
|
@@ -534,9 +535,9 @@ interface Props$F {
|
|
|
534
535
|
onClose?: () => void;
|
|
535
536
|
onToggle?: () => void;
|
|
536
537
|
}
|
|
537
|
-
type NativeAttrs$
|
|
538
|
-
type ListGroupProps = Props$
|
|
539
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
538
|
+
type NativeAttrs$K = Omit<ListItemProps, keyof Props$I>;
|
|
539
|
+
type ListGroupProps = Props$I & NativeAttrs$K;
|
|
540
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$I & NativeAttrs$K & react.RefAttributes<HTMLDivElement>>;
|
|
540
541
|
|
|
541
542
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
542
543
|
as?: React.ElementType;
|
|
@@ -566,7 +567,7 @@ declare const Result: React.FC<ResultProps>;
|
|
|
566
567
|
|
|
567
568
|
type AutocompleteMultiple = false;
|
|
568
569
|
type AutocompleteClearable = true;
|
|
569
|
-
type NativeAttrs$
|
|
570
|
+
type NativeAttrs$J<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$H<TItem, TKeyField>>;
|
|
570
571
|
type BaseProps$1<TItem extends Record<string, any>> = {
|
|
571
572
|
textField?: keyof TItem;
|
|
572
573
|
placeholder?: string;
|
|
@@ -586,8 +587,8 @@ type BaseProps$1<TItem extends Record<string, any>> = {
|
|
|
586
587
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
587
588
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
588
589
|
};
|
|
589
|
-
type Props$
|
|
590
|
-
type AutocompleteProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
590
|
+
type Props$H<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = BaseProps$1<TItem> & SelectionProps<TItem, TKeyField, TMultiple, TClearable>;
|
|
591
|
+
type AutocompleteProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$H<TItem, TKeyField, TMultiple, TClearable> & NativeAttrs$J<TItem, TKeyField>;
|
|
591
592
|
|
|
592
593
|
declare const Autocomplete: <TItem extends Record<string, any>, TKeyField extends keyof TItem = "key", TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = true>(props: AutocompleteProps<TItem, TKeyField, TMultiple, TClearable>) => react_jsx_runtime.JSX.Element;
|
|
593
594
|
|
|
@@ -610,7 +611,7 @@ declare const useAutocomplete: () => AutocompleteContextValue<Record<string, any
|
|
|
610
611
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
611
612
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
612
613
|
|
|
613
|
-
interface Props$
|
|
614
|
+
interface Props$G {
|
|
614
615
|
isOpen: boolean;
|
|
615
616
|
closable?: boolean;
|
|
616
617
|
placement?: BackdropPlacement;
|
|
@@ -619,14 +620,14 @@ interface Props$D {
|
|
|
619
620
|
scrollArea?: boolean;
|
|
620
621
|
onClose(): void;
|
|
621
622
|
}
|
|
622
|
-
type NativeAttrs$
|
|
623
|
-
type BackdropProps = Props$
|
|
624
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
623
|
+
type NativeAttrs$I = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$G>;
|
|
624
|
+
type BackdropProps = Props$G & NativeAttrs$I;
|
|
625
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$G & NativeAttrs$I & react.RefAttributes<HTMLDivElement>>;
|
|
625
626
|
|
|
626
627
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
627
628
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
628
629
|
|
|
629
|
-
interface Props$
|
|
630
|
+
interface Props$F {
|
|
630
631
|
/**
|
|
631
632
|
* The placement of the badge relative to its content.
|
|
632
633
|
*/
|
|
@@ -644,8 +645,8 @@ interface Props$C {
|
|
|
644
645
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
645
646
|
};
|
|
646
647
|
}
|
|
647
|
-
type NativeAttrs$
|
|
648
|
-
type BadgeProps = Props$
|
|
648
|
+
type NativeAttrs$H = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$F>;
|
|
649
|
+
type BadgeProps = Props$F & NativeAttrs$H;
|
|
649
650
|
declare const Badge: React.FC<BadgeProps>;
|
|
650
651
|
|
|
651
652
|
type DataListItem = Record<string, any>;
|
|
@@ -662,7 +663,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
662
663
|
onChange?: (value: TDataListItem[]) => void;
|
|
663
664
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
664
665
|
}
|
|
665
|
-
type Props$
|
|
666
|
+
type Props$E<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
666
667
|
data: TDataListItem[];
|
|
667
668
|
keyField?: TDataListKeyField;
|
|
668
669
|
textField?: keyof DataListItem;
|
|
@@ -677,8 +678,8 @@ type Props$B<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
677
678
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
678
679
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
679
680
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
680
|
-
type NativeAttrs$
|
|
681
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
681
|
+
type NativeAttrs$G<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$E<TDataListItem, TDataListKeyField>>;
|
|
682
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$E<TDataListItem, TDataListKeyField> & NativeAttrs$G<TDataListItem, TDataListKeyField>;
|
|
682
683
|
|
|
683
684
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
684
685
|
|
|
@@ -687,7 +688,7 @@ type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'd
|
|
|
687
688
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
688
689
|
type ButtonGroupDirection = 'row' | 'col';
|
|
689
690
|
|
|
690
|
-
interface Props$
|
|
691
|
+
interface Props$D {
|
|
691
692
|
/**
|
|
692
693
|
* The HTML element type or React component to render as the button.
|
|
693
694
|
*/
|
|
@@ -732,20 +733,20 @@ interface Props$A {
|
|
|
732
733
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
733
734
|
};
|
|
734
735
|
}
|
|
735
|
-
type NativeAttrs$
|
|
736
|
-
type ButtonProps = Props$
|
|
737
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
736
|
+
type NativeAttrs$F = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$D>;
|
|
737
|
+
type ButtonProps = Props$D & NativeAttrs$F;
|
|
738
|
+
declare const Button: react.ForwardRefExoticComponent<Props$D & NativeAttrs$F & react.RefAttributes<HTMLButtonElement>>;
|
|
738
739
|
|
|
739
|
-
interface Props$
|
|
740
|
+
interface Props$C {
|
|
740
741
|
direction?: ButtonGroupDirection;
|
|
741
742
|
variant?: ButtonVariant;
|
|
742
743
|
color?: ButtonColor;
|
|
743
744
|
size?: ButtonSize;
|
|
744
745
|
disabled?: boolean;
|
|
745
746
|
}
|
|
746
|
-
type NativeAttrs$
|
|
747
|
-
type ButtonGroupProps = Props$
|
|
748
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
747
|
+
type NativeAttrs$E = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C>;
|
|
748
|
+
type ButtonGroupProps = Props$C & NativeAttrs$E;
|
|
749
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$C & NativeAttrs$E & react.RefAttributes<HTMLDivElement>>;
|
|
749
750
|
|
|
750
751
|
interface ButtonGroupContextValue {
|
|
751
752
|
direction: ButtonGroupDirection;
|
|
@@ -759,7 +760,7 @@ declare const useButtonGroup: () => ButtonGroupContextValue | null;
|
|
|
759
760
|
|
|
760
761
|
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
761
762
|
|
|
762
|
-
interface Props$
|
|
763
|
+
interface Props$B {
|
|
763
764
|
as?: React.ElementType;
|
|
764
765
|
size?: CardSize;
|
|
765
766
|
hoverable?: boolean;
|
|
@@ -769,14 +770,14 @@ interface Props$y {
|
|
|
769
770
|
divider?: boolean;
|
|
770
771
|
css?: BoxCSS;
|
|
771
772
|
}
|
|
772
|
-
type NativeAttrs$
|
|
773
|
-
type CardProps = Props$
|
|
774
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
773
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
774
|
+
type CardProps = Props$B & NativeAttrs$D;
|
|
775
|
+
declare const Card: react.ForwardRefExoticComponent<Props$B & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
775
776
|
|
|
776
777
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
777
778
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
778
779
|
|
|
779
|
-
interface Props$
|
|
780
|
+
interface Props$A {
|
|
780
781
|
as?: React.ElementType;
|
|
781
782
|
title?: React.ReactNode;
|
|
782
783
|
subtitle?: React.ReactNode;
|
|
@@ -802,11 +803,11 @@ interface Props$x {
|
|
|
802
803
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
803
804
|
};
|
|
804
805
|
}
|
|
805
|
-
type NativeAttrs$
|
|
806
|
-
type CardHeaderProps = Props$
|
|
807
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
806
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
807
|
+
type CardHeaderProps = Props$A & NativeAttrs$C;
|
|
808
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$C & react.RefAttributes<HTMLDivElement>>;
|
|
808
809
|
|
|
809
|
-
interface Props$
|
|
810
|
+
interface Props$z {
|
|
810
811
|
as?: React.ElementType;
|
|
811
812
|
/**
|
|
812
813
|
* @deprecated Use `underlined` instead
|
|
@@ -814,9 +815,9 @@ interface Props$w {
|
|
|
814
815
|
bordered?: boolean;
|
|
815
816
|
underlined?: boolean;
|
|
816
817
|
}
|
|
817
|
-
type NativeAttrs$
|
|
818
|
-
type CardFooterProps = Props$
|
|
819
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
818
|
+
type NativeAttrs$B = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
819
|
+
type CardFooterProps = Props$z & NativeAttrs$B;
|
|
820
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$z & NativeAttrs$B & react.RefAttributes<HTMLDivElement>>;
|
|
820
821
|
|
|
821
822
|
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
822
823
|
topLeftContent?: React.ReactNode;
|
|
@@ -827,28 +828,28 @@ declare const CardMedia: react.ForwardRefExoticComponent<react.HTMLAttributes<HT
|
|
|
827
828
|
topRightContent?: React.ReactNode;
|
|
828
829
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
829
830
|
|
|
830
|
-
interface Props$
|
|
831
|
+
interface Props$y {
|
|
831
832
|
as?: React.ElementType;
|
|
832
833
|
centered?: boolean;
|
|
833
834
|
css?: BoxCSS;
|
|
834
835
|
}
|
|
835
|
-
type NativeAttrs$
|
|
836
|
-
type CardTitleProps = Props$
|
|
837
|
-
declare const CardTitle: react.ForwardRefExoticComponent<Props$
|
|
836
|
+
type NativeAttrs$A = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$y>;
|
|
837
|
+
type CardTitleProps = Props$y & NativeAttrs$A;
|
|
838
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$y & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
838
839
|
|
|
839
|
-
interface Props$
|
|
840
|
+
interface Props$x {
|
|
840
841
|
as?: React.ElementType;
|
|
841
842
|
css?: BoxCSS;
|
|
842
843
|
}
|
|
843
|
-
type NativeAttrs$
|
|
844
|
-
type CardSubtitleProps = Props$
|
|
845
|
-
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$
|
|
844
|
+
type NativeAttrs$z = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
845
|
+
type CardSubtitleProps = Props$x & NativeAttrs$z;
|
|
846
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$x & NativeAttrs$z & react.RefAttributes<HTMLDivElement>>;
|
|
846
847
|
|
|
847
848
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain' | 'bordered';
|
|
848
849
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
849
850
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
850
851
|
|
|
851
|
-
interface Props$
|
|
852
|
+
interface Props$w {
|
|
852
853
|
/**
|
|
853
854
|
* The HTML element type or React component to render as the chip.
|
|
854
855
|
*/
|
|
@@ -886,9 +887,9 @@ interface Props$t {
|
|
|
886
887
|
};
|
|
887
888
|
onClose?: () => void;
|
|
888
889
|
}
|
|
889
|
-
type NativeAttrs$
|
|
890
|
-
type ChipProps = Props$
|
|
891
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
890
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
891
|
+
type ChipProps = Props$w & NativeAttrs$y;
|
|
892
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$w & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
892
893
|
|
|
893
894
|
interface CollapseProps {
|
|
894
895
|
children: React.ReactNode;
|
|
@@ -917,6 +918,7 @@ declare const useCollapse: () => CollapseContextValue;
|
|
|
917
918
|
|
|
918
919
|
interface CollapseTriggerProps {
|
|
919
920
|
children: react__default.ReactNode;
|
|
921
|
+
disabled?: boolean;
|
|
920
922
|
}
|
|
921
923
|
declare const CollapseTrigger: react__default.ForwardRefExoticComponent<CollapseTriggerProps & react__default.RefAttributes<unknown>>;
|
|
922
924
|
|
|
@@ -932,7 +934,7 @@ interface DrawerClose {
|
|
|
932
934
|
}
|
|
933
935
|
type DrawerBackdrop = BackdropVariant;
|
|
934
936
|
|
|
935
|
-
interface Props$
|
|
937
|
+
interface Props$v {
|
|
936
938
|
isOpen: boolean;
|
|
937
939
|
size?: DrawerSize;
|
|
938
940
|
backdrop?: DrawerBackdrop;
|
|
@@ -949,11 +951,11 @@ interface Props$s {
|
|
|
949
951
|
onClose: () => void;
|
|
950
952
|
onAfterClose?: () => void;
|
|
951
953
|
}
|
|
952
|
-
type NativeAttrs$
|
|
953
|
-
type DrawerProps = Props$
|
|
954
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
954
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
955
|
+
type DrawerProps = Props$v & NativeAttrs$x;
|
|
956
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$v & NativeAttrs$x & react.RefAttributes<HTMLDivElement>>;
|
|
955
957
|
|
|
956
|
-
interface Props$
|
|
958
|
+
interface Props$u {
|
|
957
959
|
as?: React.ElementType;
|
|
958
960
|
title?: React.ReactNode;
|
|
959
961
|
subtitle?: React.ReactNode;
|
|
@@ -969,20 +971,20 @@ interface Props$r {
|
|
|
969
971
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
970
972
|
};
|
|
971
973
|
}
|
|
972
|
-
type NativeAttrs$
|
|
973
|
-
type DrawerHeaderProps = Props$
|
|
974
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
974
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
975
|
+
type DrawerHeaderProps = Props$u & NativeAttrs$w;
|
|
976
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$u & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
975
977
|
|
|
976
978
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
977
979
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
978
980
|
|
|
979
|
-
interface Props$
|
|
981
|
+
interface Props$t {
|
|
980
982
|
as?: React.ElementType;
|
|
981
983
|
bordered?: boolean;
|
|
982
984
|
}
|
|
983
|
-
type NativeAttrs$
|
|
984
|
-
type DrawerFooterProps = Props$
|
|
985
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
985
|
+
type NativeAttrs$v = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
986
|
+
type DrawerFooterProps = Props$t & NativeAttrs$v;
|
|
987
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$t & NativeAttrs$v & react.RefAttributes<HTMLDivElement>>;
|
|
986
988
|
|
|
987
989
|
interface DrawerContextValue {
|
|
988
990
|
isOpen: boolean;
|
|
@@ -1003,10 +1005,15 @@ interface IconProps {
|
|
|
1003
1005
|
children: React.ReactNode;
|
|
1004
1006
|
color?: IconColor;
|
|
1005
1007
|
size?: IconSize;
|
|
1008
|
+
cssUtils?: {
|
|
1009
|
+
opacity?: number;
|
|
1010
|
+
pointer?: boolean;
|
|
1011
|
+
hoverOpacity?: number;
|
|
1012
|
+
};
|
|
1006
1013
|
}
|
|
1007
1014
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
1008
1015
|
|
|
1009
|
-
interface Props$
|
|
1016
|
+
interface Props$s {
|
|
1010
1017
|
/**
|
|
1011
1018
|
* The HTML element type or React component to render as the menu item.
|
|
1012
1019
|
*/
|
|
@@ -1032,9 +1039,9 @@ interface Props$p {
|
|
|
1032
1039
|
*/
|
|
1033
1040
|
disabled?: boolean;
|
|
1034
1041
|
}
|
|
1035
|
-
type NativeAttrs$
|
|
1036
|
-
type MenuItemProps = Props$
|
|
1037
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
1042
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s | 'items'>;
|
|
1043
|
+
type MenuItemProps = Props$s & NativeAttrs$u;
|
|
1044
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$s & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
1038
1045
|
|
|
1039
1046
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
1040
1047
|
items?: MenuItemType[];
|
|
@@ -1058,7 +1065,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
1058
1065
|
}) | (MenuItemProps & {
|
|
1059
1066
|
type?: 'item';
|
|
1060
1067
|
});
|
|
1061
|
-
interface Props$
|
|
1068
|
+
interface Props$r {
|
|
1062
1069
|
/**
|
|
1063
1070
|
* The currently selected value of the menu.
|
|
1064
1071
|
*/
|
|
@@ -1094,8 +1101,8 @@ interface Props$o {
|
|
|
1094
1101
|
*/
|
|
1095
1102
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
1096
1103
|
}
|
|
1097
|
-
type NativeAttrs$
|
|
1098
|
-
type MenuProps = Props$
|
|
1104
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r | 'items'>;
|
|
1105
|
+
type MenuProps = Props$r & NativeAttrs$t & {
|
|
1099
1106
|
items?: MenuItemType[];
|
|
1100
1107
|
};
|
|
1101
1108
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -1170,7 +1177,7 @@ declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & reac
|
|
|
1170
1177
|
|
|
1171
1178
|
type SelectMultiple = false;
|
|
1172
1179
|
type SelectClearable = false;
|
|
1173
|
-
type NativeAttrs$
|
|
1180
|
+
type NativeAttrs$s<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q<TItem, TKeyField>>;
|
|
1174
1181
|
type BaseProps<TItem extends Record<string, any>> = {
|
|
1175
1182
|
textField?: keyof TItem;
|
|
1176
1183
|
placeholder?: string;
|
|
@@ -1188,8 +1195,8 @@ type BaseProps<TItem extends Record<string, any>> = {
|
|
|
1188
1195
|
renderItem?: (item: TItem, props: ListItemProps) => React.ReactNode;
|
|
1189
1196
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
1190
1197
|
};
|
|
1191
|
-
type Props$
|
|
1192
|
-
type SelectProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$
|
|
1198
|
+
type Props$q<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = BaseProps<TItem> & SelectionProps<TItem, TKeyField, TMultiple, TClearable>;
|
|
1199
|
+
type SelectProps<TItem extends Record<string, any>, TKeyField extends keyof TItem = 'key', TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false> = Props$q<TItem, TKeyField, TMultiple, TClearable> & NativeAttrs$s<TItem, TKeyField>;
|
|
1193
1200
|
|
|
1194
1201
|
declare const Select: <TItem extends Record<string, any>, TKeyField extends keyof TItem = "key", TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false>(props: SelectProps<TItem, TKeyField, TMultiple, TClearable>) => react_jsx_runtime.JSX.Element;
|
|
1195
1202
|
|
|
@@ -1213,20 +1220,20 @@ type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1213
1220
|
type SwitchLabelPlacement = 'before' | 'after';
|
|
1214
1221
|
type SwitchColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1215
1222
|
|
|
1216
|
-
interface Props$
|
|
1223
|
+
interface Props$p {
|
|
1217
1224
|
size?: SwitchSize;
|
|
1218
1225
|
labelPlacement?: SwitchLabelPlacement;
|
|
1219
1226
|
color?: SwitchColor;
|
|
1220
1227
|
}
|
|
1221
|
-
type NativeAttrs$
|
|
1222
|
-
type SwitchProps = Props$
|
|
1223
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
1228
|
+
type NativeAttrs$r = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$p | 'value' | 'defaultValue'>;
|
|
1229
|
+
type SwitchProps = Props$p & NativeAttrs$r;
|
|
1230
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$p & NativeAttrs$r & react.RefAttributes<HTMLInputElement>>;
|
|
1224
1231
|
|
|
1225
1232
|
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1226
1233
|
type TabValue = string | number | symbol;
|
|
1227
1234
|
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1228
1235
|
|
|
1229
|
-
interface Props$
|
|
1236
|
+
interface Props$o<TTabValue extends TabValue = TabValue> {
|
|
1230
1237
|
/**
|
|
1231
1238
|
* The HTML element type or React component to render as the tab.
|
|
1232
1239
|
*/
|
|
@@ -1252,11 +1259,11 @@ interface Props$l<TTabValue extends TabValue = TabValue> {
|
|
|
1252
1259
|
*/
|
|
1253
1260
|
endContent?: React.ReactNode;
|
|
1254
1261
|
}
|
|
1255
|
-
type NativeAttrs$
|
|
1256
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1257
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1262
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
1263
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$o<TTabValue> & NativeAttrs$q;
|
|
1264
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$o<TabValue> & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
1258
1265
|
|
|
1259
|
-
interface Props$
|
|
1266
|
+
interface Props$n<TTabValue extends TabValue = TabValue> {
|
|
1260
1267
|
/**
|
|
1261
1268
|
* The currently selected value of the tabs.
|
|
1262
1269
|
*/
|
|
@@ -1279,11 +1286,11 @@ interface Props$k<TTabValue extends TabValue = TabValue> {
|
|
|
1279
1286
|
*/
|
|
1280
1287
|
onClose?: (value: TTabValue) => void;
|
|
1281
1288
|
}
|
|
1282
|
-
type NativeAttrs$
|
|
1283
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$
|
|
1284
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$
|
|
1289
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
1290
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$n<TTabValue> & NativeAttrs$p;
|
|
1291
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$n<TTabValue> & NativeAttrs$p & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1285
1292
|
|
|
1286
|
-
interface Props$
|
|
1293
|
+
interface Props$m {
|
|
1287
1294
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1288
1295
|
variant?: InputVariant;
|
|
1289
1296
|
color?: InputColor;
|
|
@@ -1292,13 +1299,13 @@ interface Props$j {
|
|
|
1292
1299
|
endContent?: React.ReactNode;
|
|
1293
1300
|
css?: BoxCSS;
|
|
1294
1301
|
}
|
|
1295
|
-
type NativeAttrs$
|
|
1296
|
-
type TextInputProps = Props$
|
|
1297
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1302
|
+
type NativeAttrs$o = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$m>;
|
|
1303
|
+
type TextInputProps = Props$m & NativeAttrs$o;
|
|
1304
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$m & NativeAttrs$o & react.RefAttributes<HTMLInputElement>>;
|
|
1298
1305
|
|
|
1299
1306
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1300
1307
|
|
|
1301
|
-
interface Props$
|
|
1308
|
+
interface Props$l {
|
|
1302
1309
|
size?: ToolbarSize;
|
|
1303
1310
|
title?: React.ReactNode;
|
|
1304
1311
|
subtitle?: React.ReactNode;
|
|
@@ -1320,8 +1327,8 @@ interface Props$i {
|
|
|
1320
1327
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1321
1328
|
};
|
|
1322
1329
|
}
|
|
1323
|
-
type NativeAttrs$
|
|
1324
|
-
type ToolbarProps = Props$
|
|
1330
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
1331
|
+
type ToolbarProps = Props$l & NativeAttrs$n;
|
|
1325
1332
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1326
1333
|
|
|
1327
1334
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1336,22 +1343,22 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1336
1343
|
}
|
|
1337
1344
|
declare const Transition: React.FC<TransitionProps>;
|
|
1338
1345
|
|
|
1339
|
-
interface Props$
|
|
1346
|
+
interface Props$k {
|
|
1340
1347
|
/**
|
|
1341
1348
|
* The HTML element type or React component to render as the tab.
|
|
1342
1349
|
*/
|
|
1343
1350
|
as?: React.ElementType;
|
|
1344
1351
|
width?: number;
|
|
1345
1352
|
}
|
|
1346
|
-
type NativeAttrs$
|
|
1347
|
-
type SwipeItemProps = Props$
|
|
1348
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1353
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
1354
|
+
type SwipeItemProps = Props$k & NativeAttrs$m;
|
|
1355
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$k & NativeAttrs$m & {
|
|
1349
1356
|
children?: react.ReactNode | undefined;
|
|
1350
1357
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1351
1358
|
|
|
1352
1359
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1353
1360
|
|
|
1354
|
-
interface Props$
|
|
1361
|
+
interface Props$j {
|
|
1355
1362
|
gap?: number;
|
|
1356
1363
|
alignment?: SwiperAlignmet;
|
|
1357
1364
|
autoHide?: boolean;
|
|
@@ -1361,8 +1368,8 @@ interface Props$g {
|
|
|
1361
1368
|
arrowRightButton?: ButtonProps;
|
|
1362
1369
|
};
|
|
1363
1370
|
}
|
|
1364
|
-
type NativeAttrs$
|
|
1365
|
-
type SwipeProps = Props$
|
|
1371
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
1372
|
+
type SwipeProps = Props$j & NativeAttrs$l;
|
|
1366
1373
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1367
1374
|
|
|
1368
1375
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1374,7 +1381,7 @@ interface ModalClose {
|
|
|
1374
1381
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1375
1382
|
type ModalBackdrop = BackdropVariant;
|
|
1376
1383
|
|
|
1377
|
-
interface Props$
|
|
1384
|
+
interface Props$i {
|
|
1378
1385
|
isOpen: boolean;
|
|
1379
1386
|
size?: ModalSize;
|
|
1380
1387
|
backdrop?: ModalBackdrop;
|
|
@@ -1389,9 +1396,9 @@ interface Props$f {
|
|
|
1389
1396
|
onClose: () => void;
|
|
1390
1397
|
onAfterClose?: () => void;
|
|
1391
1398
|
}
|
|
1392
|
-
type NativeAttrs$
|
|
1393
|
-
type ModalProps = Props$
|
|
1394
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1399
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
1400
|
+
type ModalProps = Props$i & NativeAttrs$k;
|
|
1401
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$i & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
1395
1402
|
|
|
1396
1403
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1397
1404
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1406,15 +1413,15 @@ interface ModalContextValue {
|
|
|
1406
1413
|
}
|
|
1407
1414
|
declare function useModal(): ModalContextValue;
|
|
1408
1415
|
|
|
1409
|
-
interface Props$
|
|
1416
|
+
interface Props$h {
|
|
1410
1417
|
as?: React.ElementType;
|
|
1411
1418
|
bordered?: boolean;
|
|
1412
1419
|
}
|
|
1413
|
-
type NativeAttrs$
|
|
1414
|
-
type ModalFooterProps = Props$
|
|
1415
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1420
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
1421
|
+
type ModalFooterProps = Props$h & NativeAttrs$j;
|
|
1422
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$h & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
1416
1423
|
|
|
1417
|
-
interface Props$
|
|
1424
|
+
interface Props$g {
|
|
1418
1425
|
as?: React.ElementType;
|
|
1419
1426
|
title?: React.ReactNode;
|
|
1420
1427
|
subtitle?: React.ReactNode;
|
|
@@ -1430,9 +1437,9 @@ interface Props$d {
|
|
|
1430
1437
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1431
1438
|
};
|
|
1432
1439
|
}
|
|
1433
|
-
type NativeAttrs$
|
|
1434
|
-
type ModalHeaderProps = Props$
|
|
1435
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$
|
|
1440
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
1441
|
+
type ModalHeaderProps = Props$g & NativeAttrs$i;
|
|
1442
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$g & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
1436
1443
|
|
|
1437
1444
|
type CheckboxValue = string | number | symbol;
|
|
1438
1445
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -1441,17 +1448,18 @@ type CheckboxGroupDirection = 'row' | 'col';
|
|
|
1441
1448
|
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1442
1449
|
type CheckboxColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1443
1450
|
|
|
1444
|
-
interface Props$
|
|
1451
|
+
interface Props$f<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1445
1452
|
value?: TCheckboxValue;
|
|
1446
1453
|
size?: CheckboxSize;
|
|
1447
1454
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1448
1455
|
color?: CheckboxColor;
|
|
1456
|
+
indeterminate?: boolean;
|
|
1449
1457
|
}
|
|
1450
|
-
type NativeAttrs$
|
|
1451
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1452
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1458
|
+
type NativeAttrs$h = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'defaultValue'>;
|
|
1459
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$f<TCheckboxValue> & NativeAttrs$h;
|
|
1460
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$f<TCheckboxValue> & NativeAttrs$h & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1453
1461
|
|
|
1454
|
-
interface Props$
|
|
1462
|
+
interface Props$e<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1455
1463
|
value?: TCheckboxValue[];
|
|
1456
1464
|
defaultValue?: TCheckboxValue[];
|
|
1457
1465
|
disabled?: boolean;
|
|
@@ -1463,9 +1471,9 @@ interface Props$b<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1463
1471
|
color?: CheckboxColor;
|
|
1464
1472
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1465
1473
|
}
|
|
1466
|
-
type NativeAttrs$
|
|
1467
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$
|
|
1468
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$
|
|
1474
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1475
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$e<TCheckboxValue> & NativeAttrs$g;
|
|
1476
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$e<TCheckboxValue> & NativeAttrs$g & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1469
1477
|
|
|
1470
1478
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1471
1479
|
value: TCheckboxValue[];
|
|
@@ -1487,7 +1495,7 @@ type RadioGroupDirection = 'row' | 'col';
|
|
|
1487
1495
|
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1488
1496
|
type RadioColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'light';
|
|
1489
1497
|
|
|
1490
|
-
interface Props$
|
|
1498
|
+
interface Props$d<TRadioValue extends RadioValue = RadioValue> {
|
|
1491
1499
|
value?: TRadioValue;
|
|
1492
1500
|
disabled?: boolean;
|
|
1493
1501
|
readOnly?: boolean;
|
|
@@ -1495,11 +1503,11 @@ interface Props$a<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1495
1503
|
labelPlacement?: RadioLabelPlacement;
|
|
1496
1504
|
colorScheme?: ColorScheme;
|
|
1497
1505
|
}
|
|
1498
|
-
type NativeAttrs$
|
|
1499
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1500
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1506
|
+
type NativeAttrs$f = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$d | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1507
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$d<TRadioValue> & NativeAttrs$f;
|
|
1508
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$d<TRadioValue> & NativeAttrs$f & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1501
1509
|
|
|
1502
|
-
interface Props$
|
|
1510
|
+
interface Props$c<TRadioValue extends RadioValue = RadioValue> {
|
|
1503
1511
|
name?: string;
|
|
1504
1512
|
value?: TRadioValue;
|
|
1505
1513
|
defaultValue?: TRadioValue;
|
|
@@ -1512,9 +1520,9 @@ interface Props$9<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1512
1520
|
color?: RadioColor;
|
|
1513
1521
|
onChange?: (value: TRadioValue) => void;
|
|
1514
1522
|
}
|
|
1515
|
-
type NativeAttrs$
|
|
1516
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$
|
|
1517
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$
|
|
1523
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c>;
|
|
1524
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$c<TRadioValue> & NativeAttrs$e;
|
|
1525
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$c<TRadioValue> & NativeAttrs$e & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1518
1526
|
|
|
1519
1527
|
interface RadioGroupContextValue {
|
|
1520
1528
|
name: string;
|
|
@@ -1532,27 +1540,30 @@ declare const useRadioGroup: () => RadioGroupContextValue;
|
|
|
1532
1540
|
|
|
1533
1541
|
type NavRailPlacement = 'left' | 'right';
|
|
1534
1542
|
|
|
1535
|
-
interface Props$
|
|
1543
|
+
interface Props$b {
|
|
1536
1544
|
startContent?: React.ReactNode;
|
|
1537
1545
|
endContent?: React.ReactNode;
|
|
1538
1546
|
placement?: NavRailPlacement;
|
|
1539
1547
|
}
|
|
1540
|
-
type NativeAttrs$
|
|
1541
|
-
type NavRailProps = Props$
|
|
1548
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1549
|
+
type NavRailProps = Props$b & NativeAttrs$d;
|
|
1542
1550
|
declare const NavRail: React.FC<NavRailProps>;
|
|
1543
1551
|
|
|
1544
|
-
interface Props$
|
|
1552
|
+
interface Props$a {
|
|
1545
1553
|
as?: React.ElementType;
|
|
1546
1554
|
icon?: React.ReactNode;
|
|
1547
1555
|
media?: React.ReactNode;
|
|
1548
1556
|
label?: React.ReactNode;
|
|
1549
1557
|
selected?: boolean;
|
|
1558
|
+
slotProps?: {
|
|
1559
|
+
label?: React.HTMLAttributes<HTMLDivElement>;
|
|
1560
|
+
};
|
|
1550
1561
|
}
|
|
1551
|
-
type NativeAttrs$
|
|
1552
|
-
type NavRailItemProps = Props$
|
|
1553
|
-
declare const NavRailItem: react.ForwardRefExoticComponent<Props$
|
|
1562
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1563
|
+
type NavRailItemProps = Props$a & NativeAttrs$c;
|
|
1564
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$c & react.RefAttributes<HTMLDivElement>>;
|
|
1554
1565
|
|
|
1555
|
-
type Props$
|
|
1566
|
+
type Props$9 = {
|
|
1556
1567
|
as?: React.ElementType;
|
|
1557
1568
|
label: React.ReactNode;
|
|
1558
1569
|
span?: Responsive<number>;
|
|
@@ -1568,20 +1579,20 @@ type Props$6 = {
|
|
|
1568
1579
|
mq: ContainerMediaQuery;
|
|
1569
1580
|
}) => React.ReactNode;
|
|
1570
1581
|
} & FormatOptions;
|
|
1571
|
-
type NativeAttrs$
|
|
1572
|
-
type DescriptionProps = Props$
|
|
1582
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9 | 'children'>;
|
|
1583
|
+
type DescriptionProps = Props$9 & NativeAttrs$b;
|
|
1573
1584
|
declare const Description: react.ForwardRefExoticComponent<DescriptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
1574
1585
|
|
|
1575
|
-
type NativeAttrs$
|
|
1576
|
-
type DescriptionEmptyProps = NativeAttrs$
|
|
1577
|
-
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1586
|
+
type NativeAttrs$a = React.HTMLAttributes<HTMLDivElement>;
|
|
1587
|
+
type DescriptionEmptyProps = NativeAttrs$a;
|
|
1588
|
+
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$a & react.RefAttributes<HTMLDivElement>>;
|
|
1578
1589
|
|
|
1579
1590
|
type DescriptionsLayout = 'row' | 'col';
|
|
1580
1591
|
type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
1581
1592
|
type DescriptionsAlign = React.CSSProperties['textAlign'];
|
|
1582
1593
|
type DescriptionsMode = 'container' | 'screen' | 'css';
|
|
1583
1594
|
|
|
1584
|
-
interface Props$
|
|
1595
|
+
interface Props$8 {
|
|
1585
1596
|
as?: React.ElementType;
|
|
1586
1597
|
mode?: DescriptionsMode;
|
|
1587
1598
|
items?: DescriptionProps[];
|
|
@@ -1592,9 +1603,9 @@ interface Props$5 {
|
|
|
1592
1603
|
labelAlign?: Responsive<DescriptionsAlign>;
|
|
1593
1604
|
contentAlign?: Responsive<DescriptionsAlign>;
|
|
1594
1605
|
}
|
|
1595
|
-
type NativeAttrs$
|
|
1596
|
-
type DescriptionsProps = Props$
|
|
1597
|
-
declare const Descriptions: react.ForwardRefExoticComponent<Props$
|
|
1606
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8 | 'children'>;
|
|
1607
|
+
type DescriptionsProps = Props$8 & NativeAttrs$9;
|
|
1608
|
+
declare const Descriptions: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>>;
|
|
1598
1609
|
|
|
1599
1610
|
interface DescriptionsContextValue {
|
|
1600
1611
|
mq: ContainerMediaQuery;
|
|
@@ -1607,9 +1618,9 @@ interface DescriptionsContextValue {
|
|
|
1607
1618
|
declare const DescriptionsContext: react.Context<DescriptionsContextValue | null>;
|
|
1608
1619
|
declare const useDescriptionsContext: () => DescriptionsContextValue;
|
|
1609
1620
|
|
|
1610
|
-
type NativeAttrs$
|
|
1611
|
-
type DescriptionTextProps = NativeAttrs$
|
|
1612
|
-
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$
|
|
1621
|
+
type NativeAttrs$8 = React.HTMLAttributes<HTMLDivElement>;
|
|
1622
|
+
type DescriptionTextProps = NativeAttrs$8;
|
|
1623
|
+
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1613
1624
|
|
|
1614
1625
|
declare function reactNodeToText(node: React.ReactNode): string;
|
|
1615
1626
|
|
|
@@ -1629,14 +1640,14 @@ interface ResponsiveProps$2 {
|
|
|
1629
1640
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1630
1641
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1631
1642
|
}
|
|
1632
|
-
type Props$
|
|
1643
|
+
type Props$7 = {
|
|
1633
1644
|
as?: React.ElementType;
|
|
1634
1645
|
} & ResponsiveProps$2;
|
|
1635
|
-
type NativeAttrs$
|
|
1636
|
-
type GridItemProps = Props$
|
|
1646
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1647
|
+
type GridItemProps = Props$7 & NativeAttrs$7;
|
|
1637
1648
|
declare const GridItem: react.ForwardRefExoticComponent<{
|
|
1638
1649
|
as?: React.ElementType;
|
|
1639
|
-
} & ResponsiveProps$2 & NativeAttrs$
|
|
1650
|
+
} & ResponsiveProps$2 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
1640
1651
|
|
|
1641
1652
|
interface ResponsiveProps$1 {
|
|
1642
1653
|
cols?: Responsive<number>;
|
|
@@ -1654,14 +1665,14 @@ interface ResponsiveProps$1 {
|
|
|
1654
1665
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1655
1666
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1656
1667
|
}
|
|
1657
|
-
type Props$
|
|
1668
|
+
type Props$6 = {
|
|
1658
1669
|
items?: GridItemProps[];
|
|
1659
1670
|
} & ResponsiveProps$1;
|
|
1660
|
-
type NativeAttrs$
|
|
1661
|
-
type GridSubProps = Props$
|
|
1671
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1672
|
+
type GridSubProps = Props$6 & NativeAttrs$6;
|
|
1662
1673
|
declare const GridSub: react.ForwardRefExoticComponent<{
|
|
1663
1674
|
items?: GridItemProps[];
|
|
1664
|
-
} & ResponsiveProps$1 & NativeAttrs$
|
|
1675
|
+
} & ResponsiveProps$1 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1665
1676
|
|
|
1666
1677
|
type GridMode = 'container' | 'screen' | 'css';
|
|
1667
1678
|
|
|
@@ -1679,17 +1690,20 @@ interface ResponsiveProps {
|
|
|
1679
1690
|
gx?: Responsive<React.CSSProperties['columnGap']>;
|
|
1680
1691
|
justifyContent?: Responsive<React.CSSProperties['justifyContent']>;
|
|
1681
1692
|
alignItems?: Responsive<React.CSSProperties['alignItems']>;
|
|
1693
|
+
slotProps?: {
|
|
1694
|
+
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1695
|
+
};
|
|
1682
1696
|
}
|
|
1683
|
-
type Props$
|
|
1697
|
+
type Props$5 = {
|
|
1684
1698
|
mode?: GridMode;
|
|
1685
1699
|
items?: (GridItemProps | GridSubProps)[];
|
|
1686
1700
|
} & ResponsiveProps;
|
|
1687
|
-
type NativeAttrs$
|
|
1688
|
-
type GridProps = Props$
|
|
1701
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1702
|
+
type GridProps = Props$5 & NativeAttrs$5;
|
|
1689
1703
|
declare const Grid: react.ForwardRefExoticComponent<{
|
|
1690
1704
|
mode?: GridMode;
|
|
1691
1705
|
items?: (GridItemProps | GridSubProps)[];
|
|
1692
|
-
} & ResponsiveProps & NativeAttrs$
|
|
1706
|
+
} & ResponsiveProps & NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
1693
1707
|
|
|
1694
1708
|
interface GridContextValue {
|
|
1695
1709
|
mq: ContainerMediaQuery;
|
|
@@ -1709,7 +1723,7 @@ declare const Html: React.FC<HtmlProps>;
|
|
|
1709
1723
|
|
|
1710
1724
|
type StepColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
1711
1725
|
|
|
1712
|
-
interface Props$
|
|
1726
|
+
interface Props$4 {
|
|
1713
1727
|
value?: string | number | symbol;
|
|
1714
1728
|
title: React.ReactNode;
|
|
1715
1729
|
subtitle: React.ReactNode;
|
|
@@ -1717,18 +1731,18 @@ interface Props$1 {
|
|
|
1717
1731
|
color?: StepColor;
|
|
1718
1732
|
disabled?: boolean;
|
|
1719
1733
|
}
|
|
1720
|
-
type NativeAttrs$
|
|
1721
|
-
type StepProps = Props$
|
|
1734
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1735
|
+
type StepProps = Props$4 & NativeAttrs$4;
|
|
1722
1736
|
declare const Step: React.FC<StepProps>;
|
|
1723
1737
|
|
|
1724
|
-
interface Props {
|
|
1738
|
+
interface Props$3 {
|
|
1725
1739
|
direction?: 'horizontal' | 'vertical';
|
|
1726
1740
|
value?: number | string | symbol;
|
|
1727
1741
|
color?: StepColor;
|
|
1728
1742
|
markPreviousAsChecked?: boolean;
|
|
1729
1743
|
}
|
|
1730
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1731
|
-
type StepsProps = Props & NativeAttrs;
|
|
1744
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
1745
|
+
type StepsProps = Props$3 & NativeAttrs$3;
|
|
1732
1746
|
declare const Steps: React.FC<StepsProps>;
|
|
1733
1747
|
|
|
1734
1748
|
interface StepsContextValue {
|
|
@@ -1748,6 +1762,143 @@ interface StepsContextValue {
|
|
|
1748
1762
|
declare const StepsContext: react.Context<StepsContextValue | null>;
|
|
1749
1763
|
declare const useStepsContext: () => StepsContextValue;
|
|
1750
1764
|
|
|
1765
|
+
interface TreeItemValue {
|
|
1766
|
+
value: string;
|
|
1767
|
+
selected: boolean;
|
|
1768
|
+
checked: boolean;
|
|
1769
|
+
indeterminate: boolean;
|
|
1770
|
+
}
|
|
1771
|
+
interface TreeItemBase {
|
|
1772
|
+
value: string;
|
|
1773
|
+
items?: TreeItemBase[];
|
|
1774
|
+
}
|
|
1775
|
+
interface TreeItemData {
|
|
1776
|
+
value: string;
|
|
1777
|
+
parents: string[];
|
|
1778
|
+
hasChildren: boolean;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
interface Props$2 extends TreeItemBase {
|
|
1782
|
+
title: string;
|
|
1783
|
+
items?: Props$2[];
|
|
1784
|
+
}
|
|
1785
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2 | 'items'>;
|
|
1786
|
+
type TreeItemProps = Props$2 & NativeAttrs$2;
|
|
1787
|
+
declare const TreeItem: (props: TreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1788
|
+
|
|
1789
|
+
interface TreeProps$1 {
|
|
1790
|
+
items?: TreeItemProps[];
|
|
1791
|
+
value?: TreeItemValue[];
|
|
1792
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1793
|
+
}
|
|
1794
|
+
declare const Tree: (props: TreeProps$1) => react_jsx_runtime.JSX.Element;
|
|
1795
|
+
|
|
1796
|
+
interface TreeContextValue {
|
|
1797
|
+
items: TreeItemData[];
|
|
1798
|
+
values: TreeItemValue[];
|
|
1799
|
+
setValues: (value: TreeItemValue[]) => void;
|
|
1800
|
+
selectValue: (value: string) => void;
|
|
1801
|
+
unselectValue: (value: string) => void;
|
|
1802
|
+
checkValue: (value: string) => void;
|
|
1803
|
+
uncheckValue: (value: string) => void;
|
|
1804
|
+
}
|
|
1805
|
+
declare const TreeContext: react.Context<TreeContextValue>;
|
|
1806
|
+
|
|
1807
|
+
interface TreeProps {
|
|
1808
|
+
items?: TreeItemBase[];
|
|
1809
|
+
value?: TreeItemValue[];
|
|
1810
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1811
|
+
onSelect?: (value: string) => void;
|
|
1812
|
+
onUnselect?: (value: string) => void;
|
|
1813
|
+
}
|
|
1814
|
+
declare function useTree(props: TreeProps): {
|
|
1815
|
+
items: TreeItemData[];
|
|
1816
|
+
values: TreeItemValue[];
|
|
1817
|
+
setValues: react.Dispatch<react.SetStateAction<TreeItemValue[]>>;
|
|
1818
|
+
selectValue: (value: string) => void;
|
|
1819
|
+
unselectValue: (value: string) => void;
|
|
1820
|
+
checkValue: (value: string) => void;
|
|
1821
|
+
uncheckValue: (value: string) => void;
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
declare function initializeTreeValues(items: TreeItemData[]): TreeItemValue[];
|
|
1825
|
+
declare function flattenTree(tree: TreeItemBase[], parents?: string[]): TreeItemData[];
|
|
1826
|
+
declare function updateTreeValues(values: TreeItemValue[], value: string, action: 'select' | 'unselect' | 'check' | 'uncheck', items: TreeItemData[]): TreeItemValue[];
|
|
1827
|
+
|
|
1828
|
+
interface DropdownProps {
|
|
1829
|
+
isOpen?: boolean;
|
|
1830
|
+
onOpen?: () => void;
|
|
1831
|
+
onClose?: () => void;
|
|
1832
|
+
children: ((options: {
|
|
1833
|
+
isOpen: boolean;
|
|
1834
|
+
}) => React.ReactNode) | React.ReactNode;
|
|
1835
|
+
}
|
|
1836
|
+
declare const Dropdown: (props: DropdownProps) => react_jsx_runtime.JSX.Element;
|
|
1837
|
+
|
|
1838
|
+
interface DropdownContentProps {
|
|
1839
|
+
children: React.ReactNode;
|
|
1840
|
+
}
|
|
1841
|
+
declare const DropdownContent: (props: DropdownContentProps) => react_jsx_runtime.JSX.Element;
|
|
1842
|
+
|
|
1843
|
+
interface DropdownContextValue {
|
|
1844
|
+
isOpen: boolean;
|
|
1845
|
+
onClose(): void;
|
|
1846
|
+
onOpen(): void;
|
|
1847
|
+
onToggle(): void;
|
|
1848
|
+
floatingRootContext: FloatingRootContext;
|
|
1849
|
+
triggerElement: Element | null;
|
|
1850
|
+
setTriggerElement(el: Element | null): void;
|
|
1851
|
+
getTriggerProps(externalProps?: React.HTMLAttributes<any> & {
|
|
1852
|
+
ref?: React.Ref<any> | undefined;
|
|
1853
|
+
}): React.HTMLAttributes<any> & {
|
|
1854
|
+
ref?: React.Ref<any> | undefined;
|
|
1855
|
+
};
|
|
1856
|
+
contentElement: Element | null;
|
|
1857
|
+
setContentElement(el: HTMLElement | null): void;
|
|
1858
|
+
getContentProps(externalProps?: React.HTMLAttributes<any> & {
|
|
1859
|
+
ref?: React.Ref<any> | undefined;
|
|
1860
|
+
}): React.HTMLAttributes<any> & {
|
|
1861
|
+
ref?: React.Ref<any> | undefined;
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
declare const DropdownContext: react.Context<DropdownContextValue | null>;
|
|
1865
|
+
declare const useDropdownContext: () => DropdownContextValue;
|
|
1866
|
+
|
|
1867
|
+
interface Props$1 {
|
|
1868
|
+
}
|
|
1869
|
+
type NativeAttrs$1 = Omit<ListItemProps, keyof Props$1>;
|
|
1870
|
+
type DropdownItemProps = Props$1 & NativeAttrs$1;
|
|
1871
|
+
declare const DropdownItem: (props: DropdownItemProps) => react_jsx_runtime.JSX.Element;
|
|
1872
|
+
|
|
1873
|
+
interface DropdownTriggerProps {
|
|
1874
|
+
children: React.ReactNode;
|
|
1875
|
+
}
|
|
1876
|
+
declare const DropdownTrigger: (props: DropdownTriggerProps) => react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
1877
|
+
|
|
1878
|
+
interface Props extends TreeItemBase {
|
|
1879
|
+
items?: Props[];
|
|
1880
|
+
}
|
|
1881
|
+
type NativeAttrs = Omit<ListItemProps, keyof Props | 'items'>;
|
|
1882
|
+
type ListTreeItemProps = Props & NativeAttrs;
|
|
1883
|
+
declare const ListTreeItem: (props: ListTreeItemProps) => react_jsx_runtime.JSX.Element;
|
|
1884
|
+
|
|
1885
|
+
interface ListTreeProps {
|
|
1886
|
+
items?: ListTreeItemProps[];
|
|
1887
|
+
value?: TreeItemValue[];
|
|
1888
|
+
selectable?: boolean;
|
|
1889
|
+
checkable?: boolean;
|
|
1890
|
+
onChange?: (value: TreeItemValue[]) => void;
|
|
1891
|
+
onSelect?: (value: string) => void;
|
|
1892
|
+
onUnselect?: (value: string) => void;
|
|
1893
|
+
}
|
|
1894
|
+
declare const ListTree: (props: ListTreeProps) => react_jsx_runtime.JSX.Element;
|
|
1895
|
+
|
|
1896
|
+
interface ListTreeContextValue {
|
|
1897
|
+
selectable: boolean;
|
|
1898
|
+
checkable: boolean;
|
|
1899
|
+
}
|
|
1900
|
+
declare const ListTreeContext: react.Context<ListTreeContextValue>;
|
|
1901
|
+
|
|
1751
1902
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1752
1903
|
|
|
1753
1904
|
type ClassDictionary = Record<string, any>;
|
|
@@ -1771,4 +1922,8 @@ declare function format(options: FormatOptions): string | undefined;
|
|
|
1771
1922
|
declare const valueToValues: <TItem extends Record<string, any>, TKeyField extends keyof TItem, TMultiple extends boolean | undefined = false, TClearable extends boolean | undefined = false>(value?: SelectionValue<TItem, TKeyField, TMultiple, TClearable>) => TItem[TKeyField][];
|
|
1772
1923
|
declare const valuesToValue: <TItem extends Record<string, any>, TKeyField extends keyof TItem>(values: TItem[TKeyField][]) => TItem[TKeyField] | null;
|
|
1773
1924
|
|
|
1774
|
-
|
|
1925
|
+
declare function areArraysEqual<T extends string | number | symbol>(arr1: T[], arr2: T[]): boolean;
|
|
1926
|
+
|
|
1927
|
+
declare function toLocalDateString(date: Date): string;
|
|
1928
|
+
|
|
1929
|
+
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 AutocompleteClearable, AutocompleteContext, type AutocompleteContextValue, type AutocompleteMultiple, type AutocompleteProps, 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, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, Checkbox, type CheckboxColor, CheckboxGroup, type CheckboxGroupAlignment, CheckboxGroupContext, 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, DescriptionEmpty, type DescriptionEmptyProps, type DescriptionProps, DescriptionText, type DescriptionTextProps, Descriptions, type DescriptionsAlign, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsMode, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, 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, Dropdown, DropdownContent, type DropdownContentProps, DropdownContext, type DropdownContextValue, DropdownItem, type DropdownItemProps, type DropdownProps, DropdownTrigger, type DropdownTriggerProps, Field, type FieldProps, type FormatBooleanOptions, type FormatCurrencyOptions, type FormatDateOptions, type FormatNumberOptions, type FormatOptions, type FormatPercentOptions, type FormatStringOptions, Grid, GridContext, type GridContextValue, GridItem, type GridItemProps, type GridMode, type GridProps, GridSub, type GridSubProps, Html, type HtmlProps, Icon, type IconColor, type IconProps, type IconSize, Iframe, type IframeProps, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, InputGroup, type InputGroupProps, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, ListTree, ListTreeContext, type ListTreeContextValue, ListTreeItem, type ListTreeItemProps, type ListTreeProps, type MediaQuery, 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, type RadioColor, RadioGroup, type RadioGroupAlignment, RadioGroupContext, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioLabelPlacement, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectClearable, SelectContext, type SelectContextValue, type SelectMultiple, type SelectProps, type SelectionItem, type SelectionOnChange, type SelectionProps, type SelectionValue, Step, type StepColor, type StepProps, Steps, StepsContext, type StepsContextValue, type StepsProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchColor, type SwitchLabelPlacement, 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, Tree, TreeContext, type TreeContextValue, TreeItem, type TreeItemBase, type TreeItemData, type TreeItemProps, type TreeItemValue, type TreeProps$1 as TreeProps, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, areArraysEqual, assignRef, breakpointsMap, clsx, dateFormat, defaultBreakpoints, flattenTree, format, formatCurrency, formatDate, formatDateTime, formatPercent, formatShortDateTime, formatTime, getOpenValuesByPathname, hasResizeObserver, initializeTreeValues, mergeRefs, reactNodeToText, scrollToItem, toLocalDateString, updateTreeValues, useAccordion, useAccordionItem, useAutocomplete, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDescriptionsContext, useDisclosure, useDrawer, useDropdownContext, useEffectEvent, useElementSize, useFormat, useGridContext, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useSelect, useStep, useStepsContext, useTree, useValueEffect, useVirtualizer, valueToValues, valuesToValue };
|