@unifiedsoftware/react-ui 1.0.23 → 1.0.25
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 +562 -562
- package/dist/index.js +1 -3194
- package/package.json +2 -4
- package/dist/index.d.mts +0 -691
- package/dist/index.mjs +0 -3101
package/dist/index.d.ts
CHANGED
|
@@ -2,690 +2,690 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import react__default, { Dispatch, SetStateAction } from 'react';
|
|
4
4
|
|
|
5
|
-
declare global {
|
|
6
|
-
interface WindowEventMap {
|
|
7
|
-
'local-storage': CustomEvent;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
type SetValue<T> = Dispatch<SetStateAction<T>>;
|
|
11
|
-
/**
|
|
12
|
-
* It's a React hook that allows you to store and retrieve data from localStorage
|
|
13
|
-
* @param {string} key - string
|
|
14
|
-
* @param {T} initialValue - The initial value to use if the key doesn't exist in localStorage.
|
|
15
|
-
* @returns An array of two items. The first item is the value of the local storage key. The second
|
|
16
|
-
* item is a function that can be used to set the value of the local storage key.
|
|
17
|
-
*/
|
|
5
|
+
declare global {
|
|
6
|
+
interface WindowEventMap {
|
|
7
|
+
'local-storage': CustomEvent;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
type SetValue<T> = Dispatch<SetStateAction<T>>;
|
|
11
|
+
/**
|
|
12
|
+
* It's a React hook that allows you to store and retrieve data from localStorage
|
|
13
|
+
* @param {string} key - string
|
|
14
|
+
* @param {T} initialValue - The initial value to use if the key doesn't exist in localStorage.
|
|
15
|
+
* @returns An array of two items. The first item is the value of the local storage key. The second
|
|
16
|
+
* item is a function that can be used to set the value of the local storage key.
|
|
17
|
+
*/
|
|
18
18
|
declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<T>];
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* It returns the previous value of the given value
|
|
22
|
-
* @param {any} value - any - The value to track.
|
|
23
|
-
* @returns The previous value of the variable.
|
|
24
|
-
*/
|
|
20
|
+
/**
|
|
21
|
+
* It returns the previous value of the given value
|
|
22
|
+
* @param {any} value - any - The value to track.
|
|
23
|
+
* @returns The previous value of the variable.
|
|
24
|
+
*/
|
|
25
25
|
declare const usePrevious: (value: any) => undefined;
|
|
26
26
|
|
|
27
|
-
interface Disclosure {
|
|
28
|
-
isOpen: boolean;
|
|
29
|
-
onOpen: () => void;
|
|
30
|
-
onClose: () => void;
|
|
31
|
-
onToggle: () => void;
|
|
32
|
-
}
|
|
33
|
-
declare function useDisclosure({ defaultValue }?: {
|
|
34
|
-
defaultValue?: boolean;
|
|
27
|
+
interface Disclosure {
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
onOpen: () => void;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
onToggle: () => void;
|
|
32
|
+
}
|
|
33
|
+
declare function useDisclosure({ defaultValue }?: {
|
|
34
|
+
defaultValue?: boolean;
|
|
35
35
|
}): Disclosure;
|
|
36
36
|
|
|
37
|
-
type Handler = (event: MouseEvent) => void;
|
|
37
|
+
type Handler = (event: MouseEvent) => void;
|
|
38
38
|
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: react.RefObject<T>, handler: Handler) => void;
|
|
39
39
|
|
|
40
|
-
interface Helpers {
|
|
41
|
-
goToNextStep: () => void;
|
|
42
|
-
goToPrevStep: () => void;
|
|
43
|
-
reset: () => void;
|
|
44
|
-
canGoToNextStep: boolean;
|
|
45
|
-
canGoToPrevStep: boolean;
|
|
46
|
-
setStep: Dispatch<SetStateAction<number>>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* It returns a tuple with the current step and an object with functions to manipulate the step
|
|
50
|
-
* @param {number} maxStep - number - The maximum number of steps in the stepper.
|
|
51
|
-
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
52
|
-
* object with the following properties:
|
|
53
|
-
*/
|
|
40
|
+
interface Helpers {
|
|
41
|
+
goToNextStep: () => void;
|
|
42
|
+
goToPrevStep: () => void;
|
|
43
|
+
reset: () => void;
|
|
44
|
+
canGoToNextStep: boolean;
|
|
45
|
+
canGoToPrevStep: boolean;
|
|
46
|
+
setStep: Dispatch<SetStateAction<number>>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* It returns a tuple with the current step and an object with functions to manipulate the step
|
|
50
|
+
* @param {number} maxStep - number - The maximum number of steps in the stepper.
|
|
51
|
+
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
52
|
+
* object with the following properties:
|
|
53
|
+
*/
|
|
54
54
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
55
55
|
|
|
56
56
|
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
57
57
|
|
|
58
|
-
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto';
|
|
59
|
-
type ScrollBehavior = 'auto' | 'smooth';
|
|
60
|
-
interface ScrollToOptions {
|
|
61
|
-
align?: ScrollAlignment;
|
|
62
|
-
behavior?: ScrollBehavior;
|
|
63
|
-
}
|
|
64
|
-
type Key = number | string;
|
|
65
|
-
interface Virtualizer {
|
|
66
|
-
getVirtualItems: () => VirtualItem[];
|
|
67
|
-
getTotalSize: () => number;
|
|
68
|
-
scrollToIndex: (index: number, options: ScrollToOptions) => void;
|
|
69
|
-
scrollToOffset: (toOffset: number, options: ScrollToOptions) => void;
|
|
70
|
-
}
|
|
71
|
-
interface VirtualItem {
|
|
72
|
-
key: Key;
|
|
73
|
-
index: number;
|
|
74
|
-
start: number;
|
|
75
|
-
end: number;
|
|
76
|
-
size: number;
|
|
77
|
-
lane: number;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface VirtualizerOptions {
|
|
81
|
-
parentRef: React.MutableRefObject<Element | null>;
|
|
82
|
-
total?: number;
|
|
83
|
-
overscan?: number;
|
|
84
|
-
count?: number;
|
|
85
|
-
hasNextPage?: boolean;
|
|
86
|
-
isFetchingNextPage?: boolean;
|
|
87
|
-
onFetchNextPage?: () => Promise<void> | void;
|
|
88
|
-
estimateSize: (index: number) => number;
|
|
89
|
-
}
|
|
58
|
+
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto';
|
|
59
|
+
type ScrollBehavior = 'auto' | 'smooth';
|
|
60
|
+
interface ScrollToOptions {
|
|
61
|
+
align?: ScrollAlignment;
|
|
62
|
+
behavior?: ScrollBehavior;
|
|
63
|
+
}
|
|
64
|
+
type Key = number | string;
|
|
65
|
+
interface Virtualizer {
|
|
66
|
+
getVirtualItems: () => VirtualItem[];
|
|
67
|
+
getTotalSize: () => number;
|
|
68
|
+
scrollToIndex: (index: number, options: ScrollToOptions) => void;
|
|
69
|
+
scrollToOffset: (toOffset: number, options: ScrollToOptions) => void;
|
|
70
|
+
}
|
|
71
|
+
interface VirtualItem {
|
|
72
|
+
key: Key;
|
|
73
|
+
index: number;
|
|
74
|
+
start: number;
|
|
75
|
+
end: number;
|
|
76
|
+
size: number;
|
|
77
|
+
lane: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface VirtualizerOptions {
|
|
81
|
+
parentRef: React.MutableRefObject<Element | null>;
|
|
82
|
+
total?: number;
|
|
83
|
+
overscan?: number;
|
|
84
|
+
count?: number;
|
|
85
|
+
hasNextPage?: boolean;
|
|
86
|
+
isFetchingNextPage?: boolean;
|
|
87
|
+
onFetchNextPage?: () => Promise<void> | void;
|
|
88
|
+
estimateSize: (index: number) => number;
|
|
89
|
+
}
|
|
90
90
|
declare function useVirtualizer(options: VirtualizerOptions): Virtualizer;
|
|
91
91
|
|
|
92
|
-
declare enum QueryStatus {
|
|
93
|
-
IDLE = 0,
|
|
94
|
-
LOADING = 1,
|
|
95
|
-
SUCCESS = 2,
|
|
96
|
-
ERROR = 3
|
|
97
|
-
}
|
|
98
|
-
interface QueryOptions {
|
|
99
|
-
page?: number;
|
|
100
|
-
}
|
|
101
|
-
interface InfiniteData<TData = any> {
|
|
102
|
-
pages: TData[];
|
|
103
|
-
}
|
|
104
|
-
type QueryFunction<TData = unknown> = (options: QueryOptions) => Promise<TData>;
|
|
105
|
-
interface UseInfiniteQueryOptions<TData = unknown> {
|
|
106
|
-
query: QueryFunction<TData>;
|
|
107
|
-
getNextPage: (lastPage: TData, allPages: TData[]) => number | undefined;
|
|
108
|
-
disabled?: boolean;
|
|
109
|
-
}
|
|
110
|
-
interface UseInfiniteQueryResult<TData = unknown, TError = unknown> {
|
|
111
|
-
status: QueryStatus;
|
|
112
|
-
data?: InfiniteData<TData>;
|
|
113
|
-
error?: TError;
|
|
114
|
-
hasNextPage?: boolean;
|
|
115
|
-
isFetchingNextPage: boolean;
|
|
116
|
-
fetchNextPage: () => Promise<void>;
|
|
92
|
+
declare enum QueryStatus {
|
|
93
|
+
IDLE = 0,
|
|
94
|
+
LOADING = 1,
|
|
95
|
+
SUCCESS = 2,
|
|
96
|
+
ERROR = 3
|
|
97
|
+
}
|
|
98
|
+
interface QueryOptions {
|
|
99
|
+
page?: number;
|
|
100
|
+
}
|
|
101
|
+
interface InfiniteData<TData = any> {
|
|
102
|
+
pages: TData[];
|
|
103
|
+
}
|
|
104
|
+
type QueryFunction<TData = unknown> = (options: QueryOptions) => Promise<TData>;
|
|
105
|
+
interface UseInfiniteQueryOptions<TData = unknown> {
|
|
106
|
+
query: QueryFunction<TData>;
|
|
107
|
+
getNextPage: (lastPage: TData, allPages: TData[]) => number | undefined;
|
|
108
|
+
disabled?: boolean;
|
|
109
|
+
}
|
|
110
|
+
interface UseInfiniteQueryResult<TData = unknown, TError = unknown> {
|
|
111
|
+
status: QueryStatus;
|
|
112
|
+
data?: InfiniteData<TData>;
|
|
113
|
+
error?: TError;
|
|
114
|
+
hasNextPage?: boolean;
|
|
115
|
+
isFetchingNextPage: boolean;
|
|
116
|
+
fetchNextPage: () => Promise<void>;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
declare function useInfiniteQuery<TData = unknown, TError = unknown>(options: UseInfiniteQueryOptions<TData>, deps?: React.DependencyList): UseInfiniteQueryResult<TData, TError>;
|
|
120
120
|
|
|
121
|
-
interface Resize {
|
|
122
|
-
width: number;
|
|
123
|
-
height: number;
|
|
124
|
-
}
|
|
125
|
-
interface UseElementSizeOptions<T> {
|
|
126
|
-
ref?: React.MutableRefObject<T | null>;
|
|
127
|
-
target?: T;
|
|
128
|
-
callback?: (resize: Resize) => void;
|
|
129
|
-
}
|
|
121
|
+
interface Resize {
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
}
|
|
125
|
+
interface UseElementSizeOptions<T> {
|
|
126
|
+
ref?: React.MutableRefObject<T | null>;
|
|
127
|
+
target?: T;
|
|
128
|
+
callback?: (resize: Resize) => void;
|
|
129
|
+
}
|
|
130
130
|
declare function useElementSize<T extends HTMLElement = any>(options: UseElementSizeOptions<T>): Resize;
|
|
131
131
|
|
|
132
|
-
interface UseResizeObserverOptions<T> {
|
|
133
|
-
ref?: React.RefObject<T | undefined>;
|
|
134
|
-
onResize: () => void;
|
|
135
|
-
}
|
|
136
|
-
declare function hasResizeObserver(): boolean;
|
|
132
|
+
interface UseResizeObserverOptions<T> {
|
|
133
|
+
ref?: React.RefObject<T | undefined>;
|
|
134
|
+
onResize: () => void;
|
|
135
|
+
}
|
|
136
|
+
declare function hasResizeObserver(): boolean;
|
|
137
137
|
declare function useResizeObserver<T extends Element>(options: UseResizeObserverOptions<T>): void;
|
|
138
138
|
|
|
139
139
|
declare function useEffectEvent<T extends Function>(fn: T): T;
|
|
140
140
|
|
|
141
|
-
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
141
|
+
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
142
142
|
declare function useValueEffect<S>(defaultValue: S | (() => S)): [S, Dispatch<SetValueAction<S>>];
|
|
143
143
|
|
|
144
|
-
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
145
|
-
as?: React.ElementType;
|
|
146
|
-
}
|
|
144
|
+
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
145
|
+
as?: React.ElementType;
|
|
146
|
+
}
|
|
147
147
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
148
148
|
|
|
149
|
-
interface ListItemProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
150
|
-
as?: react__default.ElementType;
|
|
151
|
-
title?: string;
|
|
152
|
-
subtitle?: string;
|
|
153
|
-
startContent?: react__default.ReactNode;
|
|
154
|
-
endContent?: react__default.ReactNode;
|
|
155
|
-
level?: number;
|
|
156
|
-
hoverable?: boolean;
|
|
157
|
-
selected?: boolean;
|
|
158
|
-
disabled?: boolean;
|
|
159
|
-
slotProps?: {
|
|
160
|
-
title?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
161
|
-
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
149
|
+
interface ListItemProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
150
|
+
as?: react__default.ElementType;
|
|
151
|
+
title?: string;
|
|
152
|
+
subtitle?: string;
|
|
153
|
+
startContent?: react__default.ReactNode;
|
|
154
|
+
endContent?: react__default.ReactNode;
|
|
155
|
+
level?: number;
|
|
156
|
+
hoverable?: boolean;
|
|
157
|
+
selected?: boolean;
|
|
158
|
+
disabled?: boolean;
|
|
159
|
+
slotProps?: {
|
|
160
|
+
title?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
161
|
+
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
164
|
declare const ListItem: react__default.ForwardRefExoticComponent<ListItemProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
165
165
|
|
|
166
|
-
type ListGroupProps = ListItemProps & {
|
|
167
|
-
expandVisible?: boolean;
|
|
168
|
-
expandPosition?: 'start' | 'end';
|
|
169
|
-
isOpen?: boolean;
|
|
170
|
-
onOpen?: () => void;
|
|
171
|
-
onClose?: () => void;
|
|
172
|
-
onToggle?: () => void;
|
|
173
|
-
};
|
|
174
|
-
declare const ListGroup: react.ForwardRefExoticComponent<ListItemProps & {
|
|
175
|
-
expandVisible?: boolean | undefined;
|
|
176
|
-
expandPosition?: "start" | "end" | undefined;
|
|
177
|
-
isOpen?: boolean | undefined;
|
|
178
|
-
onOpen?: (() => void) | undefined;
|
|
179
|
-
onClose?: (() => void) | undefined;
|
|
180
|
-
onToggle?: (() => void) | undefined;
|
|
166
|
+
type ListGroupProps = ListItemProps & {
|
|
167
|
+
expandVisible?: boolean;
|
|
168
|
+
expandPosition?: 'start' | 'end';
|
|
169
|
+
isOpen?: boolean;
|
|
170
|
+
onOpen?: () => void;
|
|
171
|
+
onClose?: () => void;
|
|
172
|
+
onToggle?: () => void;
|
|
173
|
+
};
|
|
174
|
+
declare const ListGroup: react.ForwardRefExoticComponent<ListItemProps & {
|
|
175
|
+
expandVisible?: boolean | undefined;
|
|
176
|
+
expandPosition?: "start" | "end" | undefined;
|
|
177
|
+
isOpen?: boolean | undefined;
|
|
178
|
+
onOpen?: (() => void) | undefined;
|
|
179
|
+
onClose?: (() => void) | undefined;
|
|
180
|
+
onToggle?: (() => void) | undefined;
|
|
181
181
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
182
182
|
|
|
183
|
-
type AutocompleteItem = Record<string, any>;
|
|
184
|
-
type AutocompleteKeyField<TAutocompleteItem> = keyof TAutocompleteItem;
|
|
185
|
-
interface AutocompleteSingleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
186
|
-
isMultiple?: false;
|
|
187
|
-
value: TAutocompleteItem[TAutocompleteKeyField] | null;
|
|
188
|
-
onChange?: (value: TAutocompleteItem | null) => void;
|
|
189
|
-
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField] | null) => void;
|
|
190
|
-
}
|
|
191
|
-
interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
192
|
-
isMultiple: true;
|
|
193
|
-
value: TAutocompleteItem[TAutocompleteKeyField][];
|
|
194
|
-
onChange?: (value: TAutocompleteItem[]) => void;
|
|
195
|
-
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
196
|
-
}
|
|
197
|
-
type NativeAttrs$a<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
198
|
-
type Props$a<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
199
|
-
data: TAutocompleteItem[];
|
|
200
|
-
keyField?: TAutocompleteKeyField;
|
|
201
|
-
textField?: keyof TAutocompleteItem;
|
|
202
|
-
placeholder?: string;
|
|
203
|
-
filter?: string;
|
|
204
|
-
loading?: boolean;
|
|
205
|
-
disabled?: boolean;
|
|
206
|
-
disclosure?: Disclosure;
|
|
207
|
-
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
208
|
-
startContent?: React.ReactNode;
|
|
209
|
-
endContent?: React.ReactNode;
|
|
210
|
-
onItemSelect?: (item: TAutocompleteItem) => void;
|
|
211
|
-
onFilterChange?: (value: string) => void;
|
|
212
|
-
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
213
|
-
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
183
|
+
type AutocompleteItem = Record<string, any>;
|
|
184
|
+
type AutocompleteKeyField<TAutocompleteItem> = keyof TAutocompleteItem;
|
|
185
|
+
interface AutocompleteSingleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
186
|
+
isMultiple?: false;
|
|
187
|
+
value: TAutocompleteItem[TAutocompleteKeyField] | null;
|
|
188
|
+
onChange?: (value: TAutocompleteItem | null) => void;
|
|
189
|
+
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField] | null) => void;
|
|
190
|
+
}
|
|
191
|
+
interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
192
|
+
isMultiple: true;
|
|
193
|
+
value: TAutocompleteItem[TAutocompleteKeyField][];
|
|
194
|
+
onChange?: (value: TAutocompleteItem[]) => void;
|
|
195
|
+
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
196
|
+
}
|
|
197
|
+
type NativeAttrs$a<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
198
|
+
type Props$a<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
199
|
+
data: TAutocompleteItem[];
|
|
200
|
+
keyField?: TAutocompleteKeyField;
|
|
201
|
+
textField?: keyof TAutocompleteItem;
|
|
202
|
+
placeholder?: string;
|
|
203
|
+
filter?: string;
|
|
204
|
+
loading?: boolean;
|
|
205
|
+
disabled?: boolean;
|
|
206
|
+
disclosure?: Disclosure;
|
|
207
|
+
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
208
|
+
startContent?: React.ReactNode;
|
|
209
|
+
endContent?: React.ReactNode;
|
|
210
|
+
onItemSelect?: (item: TAutocompleteItem) => void;
|
|
211
|
+
onFilterChange?: (value: string) => void;
|
|
212
|
+
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
213
|
+
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
214
214
|
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$a<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$a<TAutocompleteItem, TAutocompleteKeyField>;
|
|
215
215
|
|
|
216
216
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends keyof TAutocompleteItem = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
217
217
|
|
|
218
|
-
interface BackdropProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
219
|
-
isOpen: boolean;
|
|
220
|
-
onClose(): void;
|
|
221
|
-
}
|
|
218
|
+
interface BackdropProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
219
|
+
isOpen: boolean;
|
|
220
|
+
onClose(): void;
|
|
221
|
+
}
|
|
222
222
|
declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.RefAttributes<HTMLDivElement>>;
|
|
223
223
|
|
|
224
224
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
225
225
|
|
|
226
|
-
interface Props$9 {
|
|
227
|
-
/**
|
|
228
|
-
* The placement of the badge relative to its content.
|
|
229
|
-
*/
|
|
230
|
-
placement?: BadgePlacement;
|
|
231
|
-
/**
|
|
232
|
-
* The content to display within the badge.
|
|
233
|
-
*/
|
|
234
|
-
content?: React.ReactNode;
|
|
235
|
-
}
|
|
236
|
-
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
237
|
-
type BadgeProps = Props$9 & NativeAttrs$9;
|
|
226
|
+
interface Props$9 {
|
|
227
|
+
/**
|
|
228
|
+
* The placement of the badge relative to its content.
|
|
229
|
+
*/
|
|
230
|
+
placement?: BadgePlacement;
|
|
231
|
+
/**
|
|
232
|
+
* The content to display within the badge.
|
|
233
|
+
*/
|
|
234
|
+
content?: React.ReactNode;
|
|
235
|
+
}
|
|
236
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
237
|
+
type BadgeProps = Props$9 & NativeAttrs$9;
|
|
238
238
|
declare const Badge: React.FC<BadgeProps>;
|
|
239
239
|
|
|
240
|
-
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
241
|
-
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
240
|
+
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
241
|
+
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
242
242
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
243
243
|
|
|
244
|
-
interface Props$8 {
|
|
245
|
-
/**
|
|
246
|
-
* The HTML element type or React component to render as the button.
|
|
247
|
-
*/
|
|
248
|
-
as?: React.ElementType;
|
|
249
|
-
/**
|
|
250
|
-
* The variant style of the button.
|
|
251
|
-
*/
|
|
252
|
-
variant?: ButtonVariant;
|
|
253
|
-
/**
|
|
254
|
-
* The color of the button.
|
|
255
|
-
*/
|
|
256
|
-
color?: ButtonColor;
|
|
257
|
-
/**
|
|
258
|
-
* The size of the button.
|
|
259
|
-
*/
|
|
260
|
-
size?: ButtonSize;
|
|
261
|
-
/**
|
|
262
|
-
* Content to display as an icon within the button. Typically an icon component.
|
|
263
|
-
*/
|
|
264
|
-
iconOnly?: React.ReactNode;
|
|
265
|
-
/**
|
|
266
|
-
* Content to display at the start of the button, before the button's text.
|
|
267
|
-
*/
|
|
268
|
-
startContent?: React.ReactNode;
|
|
269
|
-
/**
|
|
270
|
-
* Content to display at the end of the button, after the button's text.
|
|
271
|
-
*/
|
|
272
|
-
endContent?: React.ReactNode;
|
|
273
|
-
block?: boolean;
|
|
274
|
-
/**
|
|
275
|
-
* Whether the button is in a loading state.
|
|
276
|
-
*/
|
|
277
|
-
loading?: boolean;
|
|
278
|
-
/**
|
|
279
|
-
* Whether the button is disabled.
|
|
280
|
-
*/
|
|
281
|
-
disabled?: boolean;
|
|
282
|
-
}
|
|
283
|
-
type NativeAttrs$8 = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$8>;
|
|
284
|
-
type ButtonProps = Props$8 & NativeAttrs$8;
|
|
244
|
+
interface Props$8 {
|
|
245
|
+
/**
|
|
246
|
+
* The HTML element type or React component to render as the button.
|
|
247
|
+
*/
|
|
248
|
+
as?: React.ElementType;
|
|
249
|
+
/**
|
|
250
|
+
* The variant style of the button.
|
|
251
|
+
*/
|
|
252
|
+
variant?: ButtonVariant;
|
|
253
|
+
/**
|
|
254
|
+
* The color of the button.
|
|
255
|
+
*/
|
|
256
|
+
color?: ButtonColor;
|
|
257
|
+
/**
|
|
258
|
+
* The size of the button.
|
|
259
|
+
*/
|
|
260
|
+
size?: ButtonSize;
|
|
261
|
+
/**
|
|
262
|
+
* Content to display as an icon within the button. Typically an icon component.
|
|
263
|
+
*/
|
|
264
|
+
iconOnly?: React.ReactNode;
|
|
265
|
+
/**
|
|
266
|
+
* Content to display at the start of the button, before the button's text.
|
|
267
|
+
*/
|
|
268
|
+
startContent?: React.ReactNode;
|
|
269
|
+
/**
|
|
270
|
+
* Content to display at the end of the button, after the button's text.
|
|
271
|
+
*/
|
|
272
|
+
endContent?: React.ReactNode;
|
|
273
|
+
block?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the button is in a loading state.
|
|
276
|
+
*/
|
|
277
|
+
loading?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Whether the button is disabled.
|
|
280
|
+
*/
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
}
|
|
283
|
+
type NativeAttrs$8 = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$8>;
|
|
284
|
+
type ButtonProps = Props$8 & NativeAttrs$8;
|
|
285
285
|
declare const Button: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & react.RefAttributes<HTMLButtonElement>>;
|
|
286
286
|
|
|
287
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
288
|
-
as?: React.ElementType;
|
|
289
|
-
}
|
|
287
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
288
|
+
as?: React.ElementType;
|
|
289
|
+
}
|
|
290
290
|
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
291
291
|
|
|
292
|
-
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
293
|
-
as?: React.ElementType;
|
|
294
|
-
title: string;
|
|
295
|
-
subtitle?: string;
|
|
296
|
-
startContent?: React.ReactNode;
|
|
297
|
-
endContent?: React.ReactNode;
|
|
298
|
-
}
|
|
292
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
293
|
+
as?: React.ElementType;
|
|
294
|
+
title: string;
|
|
295
|
+
subtitle?: string;
|
|
296
|
+
startContent?: React.ReactNode;
|
|
297
|
+
endContent?: React.ReactNode;
|
|
298
|
+
}
|
|
299
299
|
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
300
300
|
|
|
301
|
-
type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
302
|
-
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
301
|
+
type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
302
|
+
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
303
303
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
304
304
|
|
|
305
|
-
interface Props$7 {
|
|
306
|
-
/**
|
|
307
|
-
* The HTML element type or React component to render as the chip.
|
|
308
|
-
*/
|
|
309
|
-
as?: React.ElementType;
|
|
310
|
-
/**
|
|
311
|
-
* The variant style of the chip.
|
|
312
|
-
*/
|
|
313
|
-
variant?: ChipVariant;
|
|
314
|
-
/**
|
|
315
|
-
* The color of the chip.
|
|
316
|
-
*/
|
|
317
|
-
color?: ChipColor;
|
|
318
|
-
/**
|
|
319
|
-
* The size of the chip.
|
|
320
|
-
*/
|
|
321
|
-
size?: ChipSize;
|
|
322
|
-
}
|
|
323
|
-
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
324
|
-
type ChipProps = Props$7 & NativeAttrs$7;
|
|
305
|
+
interface Props$7 {
|
|
306
|
+
/**
|
|
307
|
+
* The HTML element type or React component to render as the chip.
|
|
308
|
+
*/
|
|
309
|
+
as?: React.ElementType;
|
|
310
|
+
/**
|
|
311
|
+
* The variant style of the chip.
|
|
312
|
+
*/
|
|
313
|
+
variant?: ChipVariant;
|
|
314
|
+
/**
|
|
315
|
+
* The color of the chip.
|
|
316
|
+
*/
|
|
317
|
+
color?: ChipColor;
|
|
318
|
+
/**
|
|
319
|
+
* The size of the chip.
|
|
320
|
+
*/
|
|
321
|
+
size?: ChipSize;
|
|
322
|
+
}
|
|
323
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
324
|
+
type ChipProps = Props$7 & NativeAttrs$7;
|
|
325
325
|
declare const Chip: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$7 & react.RefAttributes<HTMLDivElement>>;
|
|
326
326
|
|
|
327
|
-
interface CollapseProps {
|
|
328
|
-
children: React.ReactNode;
|
|
329
|
-
isOpen?: boolean;
|
|
330
|
-
onOpen?: () => void;
|
|
331
|
-
onClose?: () => void;
|
|
332
|
-
onToggle?: () => void;
|
|
333
|
-
}
|
|
327
|
+
interface CollapseProps {
|
|
328
|
+
children: React.ReactNode;
|
|
329
|
+
isOpen?: boolean;
|
|
330
|
+
onOpen?: () => void;
|
|
331
|
+
onClose?: () => void;
|
|
332
|
+
onToggle?: () => void;
|
|
333
|
+
}
|
|
334
334
|
declare const Collapse: React.FC<CollapseProps>;
|
|
335
335
|
|
|
336
|
-
interface CollapseContentProps {
|
|
337
|
-
children: React.ReactNode;
|
|
338
|
-
}
|
|
336
|
+
interface CollapseContentProps {
|
|
337
|
+
children: React.ReactNode;
|
|
338
|
+
}
|
|
339
339
|
declare const CollapseContent: React.FC<CollapseContentProps>;
|
|
340
340
|
|
|
341
|
-
interface CollapseContextValue {
|
|
342
|
-
collapseRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
343
|
-
isOpen: boolean;
|
|
344
|
-
heightAuto: boolean;
|
|
345
|
-
onOpen: () => void;
|
|
346
|
-
onClose: () => void;
|
|
347
|
-
onToggle: () => void;
|
|
348
|
-
}
|
|
349
|
-
declare const CollapseContext: react.Context<CollapseContextValue | null>;
|
|
341
|
+
interface CollapseContextValue {
|
|
342
|
+
collapseRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
343
|
+
isOpen: boolean;
|
|
344
|
+
heightAuto: boolean;
|
|
345
|
+
onOpen: () => void;
|
|
346
|
+
onClose: () => void;
|
|
347
|
+
onToggle: () => void;
|
|
348
|
+
}
|
|
349
|
+
declare const CollapseContext: react.Context<CollapseContextValue | null>;
|
|
350
350
|
declare const useCollapse: () => CollapseContextValue;
|
|
351
351
|
|
|
352
|
-
interface CollapseTriggerProps {
|
|
353
|
-
children: react__default.ReactNode;
|
|
354
|
-
}
|
|
352
|
+
interface CollapseTriggerProps {
|
|
353
|
+
children: react__default.ReactNode;
|
|
354
|
+
}
|
|
355
355
|
declare const CollapseTrigger: react__default.ForwardRefExoticComponent<CollapseTriggerProps & react__default.RefAttributes<unknown>>;
|
|
356
356
|
|
|
357
|
-
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
357
|
+
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
358
358
|
type DrawerPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
359
359
|
|
|
360
|
-
interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
361
|
-
isOpen: boolean;
|
|
362
|
-
size?: DrawerSize;
|
|
363
|
-
position?: DrawerPosition;
|
|
364
|
-
onClose: () => void;
|
|
365
|
-
onAfterClose?: () => void;
|
|
366
|
-
}
|
|
360
|
+
interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
361
|
+
isOpen: boolean;
|
|
362
|
+
size?: DrawerSize;
|
|
363
|
+
position?: DrawerPosition;
|
|
364
|
+
onClose: () => void;
|
|
365
|
+
onAfterClose?: () => void;
|
|
366
|
+
}
|
|
367
367
|
declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>>;
|
|
368
368
|
|
|
369
|
-
interface IconProps {
|
|
370
|
-
children: React.ReactNode;
|
|
371
|
-
color?: 'primary' | 'secondary';
|
|
372
|
-
size?: 'sm' | 'md' | 'lg';
|
|
373
|
-
}
|
|
369
|
+
interface IconProps {
|
|
370
|
+
children: React.ReactNode;
|
|
371
|
+
color?: 'primary' | 'secondary';
|
|
372
|
+
size?: 'sm' | 'md' | 'lg';
|
|
373
|
+
}
|
|
374
374
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
375
375
|
|
|
376
|
-
interface Props$6 {
|
|
377
|
-
/**
|
|
378
|
-
* The HTML element type or React component to render as the menu item.
|
|
379
|
-
*/
|
|
380
|
-
as?: React.ElementType;
|
|
381
|
-
/**
|
|
382
|
-
* The value associated with the menu item.
|
|
383
|
-
*/
|
|
384
|
-
value?: any;
|
|
385
|
-
/**
|
|
386
|
-
* The title to display for the menu item.
|
|
387
|
-
*/
|
|
388
|
-
title: string;
|
|
389
|
-
/**
|
|
390
|
-
* Optional icon to display with the menu item.
|
|
391
|
-
*/
|
|
392
|
-
icon?: React.ReactNode;
|
|
393
|
-
/**
|
|
394
|
-
* The nesting level of the menu item, for hierarchical menus.
|
|
395
|
-
*/
|
|
396
|
-
level?: number;
|
|
397
|
-
/**
|
|
398
|
-
* Whether the item is disabled.
|
|
399
|
-
*/
|
|
400
|
-
disabled?: boolean;
|
|
401
|
-
}
|
|
402
|
-
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6 | 'items'>;
|
|
403
|
-
type MenuItemProps = Props$6 & NativeAttrs$6;
|
|
376
|
+
interface Props$6 {
|
|
377
|
+
/**
|
|
378
|
+
* The HTML element type or React component to render as the menu item.
|
|
379
|
+
*/
|
|
380
|
+
as?: React.ElementType;
|
|
381
|
+
/**
|
|
382
|
+
* The value associated with the menu item.
|
|
383
|
+
*/
|
|
384
|
+
value?: any;
|
|
385
|
+
/**
|
|
386
|
+
* The title to display for the menu item.
|
|
387
|
+
*/
|
|
388
|
+
title: string;
|
|
389
|
+
/**
|
|
390
|
+
* Optional icon to display with the menu item.
|
|
391
|
+
*/
|
|
392
|
+
icon?: React.ReactNode;
|
|
393
|
+
/**
|
|
394
|
+
* The nesting level of the menu item, for hierarchical menus.
|
|
395
|
+
*/
|
|
396
|
+
level?: number;
|
|
397
|
+
/**
|
|
398
|
+
* Whether the item is disabled.
|
|
399
|
+
*/
|
|
400
|
+
disabled?: boolean;
|
|
401
|
+
}
|
|
402
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6 | 'items'>;
|
|
403
|
+
type MenuItemProps = Props$6 & NativeAttrs$6;
|
|
404
404
|
declare const MenuItem: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
405
405
|
|
|
406
|
-
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
407
|
-
items?: MenuItemType[];
|
|
408
|
-
};
|
|
406
|
+
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
407
|
+
items?: MenuItemType[];
|
|
408
|
+
};
|
|
409
409
|
declare const MenuSubmenu: React.FC<MenuSubmenuProps>;
|
|
410
410
|
|
|
411
|
-
type MenuGroupItemType = (MenuItemProps & {
|
|
412
|
-
type?: 'item';
|
|
413
|
-
}) | (MenuSubmenuProps & {
|
|
414
|
-
type?: 'submenu';
|
|
415
|
-
});
|
|
416
|
-
type MenuGroupProps = Omit<MenuItemProps, 'items'> & {
|
|
417
|
-
items?: MenuGroupItemType[];
|
|
418
|
-
};
|
|
411
|
+
type MenuGroupItemType = (MenuItemProps & {
|
|
412
|
+
type?: 'item';
|
|
413
|
+
}) | (MenuSubmenuProps & {
|
|
414
|
+
type?: 'submenu';
|
|
415
|
+
});
|
|
416
|
+
type MenuGroupProps = Omit<MenuItemProps, 'items'> & {
|
|
417
|
+
items?: MenuGroupItemType[];
|
|
418
|
+
};
|
|
419
419
|
declare const MenuGroup: React.FC<MenuGroupProps>;
|
|
420
420
|
|
|
421
|
-
type MenuItemType = (MenuGroupProps & {
|
|
422
|
-
type?: 'group';
|
|
423
|
-
}) | (MenuSubmenuProps & {
|
|
424
|
-
type?: 'submenu';
|
|
425
|
-
}) | (MenuItemProps & {
|
|
426
|
-
type?: 'item';
|
|
427
|
-
});
|
|
428
|
-
interface Props$5 {
|
|
429
|
-
/**
|
|
430
|
-
* The currently selected value of the menu.
|
|
431
|
-
*/
|
|
432
|
-
value?: any[];
|
|
433
|
-
/**
|
|
434
|
-
* The default value of the menu when initially rendered.
|
|
435
|
-
*/
|
|
436
|
-
defaultValue?: any[];
|
|
437
|
-
/**
|
|
438
|
-
* An array of values that represent open submenus in the menu.
|
|
439
|
-
*/
|
|
440
|
-
openValues?: any[];
|
|
441
|
-
/**
|
|
442
|
-
* The expand mode of the menu, which can be 'single' or 'multiple'.
|
|
443
|
-
*/
|
|
444
|
-
expandMode?: 'single' | 'multiple';
|
|
445
|
-
/**
|
|
446
|
-
* The nav mode of the menu, which can be 'manual' or 'automatic'.
|
|
447
|
-
* Search for the last level of the menu and validate if the value matches.
|
|
448
|
-
*/
|
|
449
|
-
navMode?: 'manual' | 'automatic';
|
|
450
|
-
/**
|
|
451
|
-
* A callback function called when the selected values of the menu change.
|
|
452
|
-
*/
|
|
453
|
-
onChange?: (value: any[]) => void;
|
|
454
|
-
/**
|
|
455
|
-
* A callback function called when submenus are opened.
|
|
456
|
-
*/
|
|
457
|
-
onOpen?: (values: any[]) => void;
|
|
458
|
-
/**
|
|
459
|
-
* A callback function called when a menu item is selected.
|
|
460
|
-
* @param {MenuItemProps} props - The properties of the selected menu item.
|
|
461
|
-
*/
|
|
462
|
-
onItemSelect?: (props: MenuItemProps) => void;
|
|
463
|
-
}
|
|
464
|
-
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5 | 'items'>;
|
|
465
|
-
type MenuProps = Props$5 & NativeAttrs$5 & {
|
|
466
|
-
items?: MenuItemType[];
|
|
467
|
-
};
|
|
421
|
+
type MenuItemType = (MenuGroupProps & {
|
|
422
|
+
type?: 'group';
|
|
423
|
+
}) | (MenuSubmenuProps & {
|
|
424
|
+
type?: 'submenu';
|
|
425
|
+
}) | (MenuItemProps & {
|
|
426
|
+
type?: 'item';
|
|
427
|
+
});
|
|
428
|
+
interface Props$5 {
|
|
429
|
+
/**
|
|
430
|
+
* The currently selected value of the menu.
|
|
431
|
+
*/
|
|
432
|
+
value?: any[];
|
|
433
|
+
/**
|
|
434
|
+
* The default value of the menu when initially rendered.
|
|
435
|
+
*/
|
|
436
|
+
defaultValue?: any[];
|
|
437
|
+
/**
|
|
438
|
+
* An array of values that represent open submenus in the menu.
|
|
439
|
+
*/
|
|
440
|
+
openValues?: any[];
|
|
441
|
+
/**
|
|
442
|
+
* The expand mode of the menu, which can be 'single' or 'multiple'.
|
|
443
|
+
*/
|
|
444
|
+
expandMode?: 'single' | 'multiple';
|
|
445
|
+
/**
|
|
446
|
+
* The nav mode of the menu, which can be 'manual' or 'automatic'.
|
|
447
|
+
* Search for the last level of the menu and validate if the value matches.
|
|
448
|
+
*/
|
|
449
|
+
navMode?: 'manual' | 'automatic';
|
|
450
|
+
/**
|
|
451
|
+
* A callback function called when the selected values of the menu change.
|
|
452
|
+
*/
|
|
453
|
+
onChange?: (value: any[]) => void;
|
|
454
|
+
/**
|
|
455
|
+
* A callback function called when submenus are opened.
|
|
456
|
+
*/
|
|
457
|
+
onOpen?: (values: any[]) => void;
|
|
458
|
+
/**
|
|
459
|
+
* A callback function called when a menu item is selected.
|
|
460
|
+
* @param {MenuItemProps} props - The properties of the selected menu item.
|
|
461
|
+
*/
|
|
462
|
+
onItemSelect?: (props: MenuItemProps) => void;
|
|
463
|
+
}
|
|
464
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5 | 'items'>;
|
|
465
|
+
type MenuProps = Props$5 & NativeAttrs$5 & {
|
|
466
|
+
items?: MenuItemType[];
|
|
467
|
+
};
|
|
468
468
|
declare const Menu: React.FC<MenuProps>;
|
|
469
469
|
|
|
470
|
-
interface MenuContextValue {
|
|
471
|
-
value: any;
|
|
472
|
-
originalValue: any;
|
|
473
|
-
openValues: any[];
|
|
474
|
-
expandMode: 'single' | 'multiple';
|
|
475
|
-
navMode: 'manual' | 'automatic';
|
|
476
|
-
onChange: (value: any) => void;
|
|
477
|
-
onOpen: (values: any) => void;
|
|
478
|
-
onItemSelect: (props: MenuItemProps) => void;
|
|
479
|
-
}
|
|
480
|
-
declare const MenuContext: react.Context<MenuContextValue | null>;
|
|
470
|
+
interface MenuContextValue {
|
|
471
|
+
value: any;
|
|
472
|
+
originalValue: any;
|
|
473
|
+
openValues: any[];
|
|
474
|
+
expandMode: 'single' | 'multiple';
|
|
475
|
+
navMode: 'manual' | 'automatic';
|
|
476
|
+
onChange: (value: any) => void;
|
|
477
|
+
onOpen: (values: any) => void;
|
|
478
|
+
onItemSelect: (props: MenuItemProps) => void;
|
|
479
|
+
}
|
|
480
|
+
declare const MenuContext: react.Context<MenuContextValue | null>;
|
|
481
481
|
declare const useMenu: () => MenuContextValue;
|
|
482
482
|
|
|
483
|
-
declare const MenuValueContext: react.Context<string[]>;
|
|
483
|
+
declare const MenuValueContext: react.Context<string[]>;
|
|
484
484
|
declare const useMenuItemValue: () => string[];
|
|
485
485
|
|
|
486
486
|
declare const getOpenValuesByPathname: (pathname: string) => string[];
|
|
487
487
|
|
|
488
|
-
type AccordionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
488
|
+
type AccordionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
489
489
|
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
490
490
|
|
|
491
|
-
interface AccordionItemContextValue {
|
|
492
|
-
value: string;
|
|
493
|
-
}
|
|
494
|
-
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
495
|
-
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
496
|
-
value?: any;
|
|
497
|
-
};
|
|
498
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
499
|
-
value?: any;
|
|
491
|
+
interface AccordionItemContextValue {
|
|
492
|
+
value: string;
|
|
493
|
+
}
|
|
494
|
+
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
495
|
+
type AccordionItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
496
|
+
value?: any;
|
|
497
|
+
};
|
|
498
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
499
|
+
value?: any;
|
|
500
500
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
501
501
|
|
|
502
|
-
type AccordionHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
503
|
-
title: string;
|
|
504
|
-
subtitle?: string;
|
|
505
|
-
startContent?: React.ReactNode;
|
|
506
|
-
endContent?: React.ReactNode;
|
|
507
|
-
};
|
|
508
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
509
|
-
title: string;
|
|
510
|
-
subtitle?: string | undefined;
|
|
511
|
-
startContent?: React.ReactNode;
|
|
512
|
-
endContent?: React.ReactNode;
|
|
502
|
+
type AccordionHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
503
|
+
title: string;
|
|
504
|
+
subtitle?: string;
|
|
505
|
+
startContent?: React.ReactNode;
|
|
506
|
+
endContent?: React.ReactNode;
|
|
507
|
+
};
|
|
508
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & {
|
|
509
|
+
title: string;
|
|
510
|
+
subtitle?: string | undefined;
|
|
511
|
+
startContent?: React.ReactNode;
|
|
512
|
+
endContent?: React.ReactNode;
|
|
513
513
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
514
514
|
|
|
515
|
-
type AccordionPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
515
|
+
type AccordionPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
|
516
516
|
declare const AccordionPanel: react.ForwardRefExoticComponent<AccordionPanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
517
517
|
|
|
518
|
-
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
518
|
+
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
519
519
|
declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
520
520
|
|
|
521
|
-
interface PortalProps {
|
|
522
|
-
children: React.ReactNode;
|
|
523
|
-
container?: Element;
|
|
524
|
-
}
|
|
521
|
+
interface PortalProps {
|
|
522
|
+
children: React.ReactNode;
|
|
523
|
+
container?: Element;
|
|
524
|
+
}
|
|
525
525
|
declare const Portal: react.ForwardRefExoticComponent<PortalProps & react.RefAttributes<HTMLDivElement>>;
|
|
526
526
|
|
|
527
|
-
interface Props$4 {
|
|
528
|
-
/**
|
|
529
|
-
* The HTML element type or React component to render as the tab.
|
|
530
|
-
*/
|
|
531
|
-
as?: React.ElementType;
|
|
532
|
-
/**
|
|
533
|
-
* The value associated with the tab.
|
|
534
|
-
*/
|
|
535
|
-
value?: any;
|
|
536
|
-
/**
|
|
537
|
-
* Whether the tab can be closed.
|
|
538
|
-
*/
|
|
539
|
-
closable?: boolean;
|
|
540
|
-
/**
|
|
541
|
-
* Whether the tab is disabled.
|
|
542
|
-
*/
|
|
543
|
-
disabled?: boolean;
|
|
544
|
-
/**
|
|
545
|
-
* Content to display at the start of the tab, before the tab's text.
|
|
546
|
-
*/
|
|
547
|
-
startContent?: React.ReactNode;
|
|
548
|
-
/**
|
|
549
|
-
* Content to display at the end of the tab, after the tab's text.
|
|
550
|
-
*/
|
|
551
|
-
endContent?: React.ReactNode;
|
|
552
|
-
}
|
|
553
|
-
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
554
|
-
type TabProps = Props$4 & NativeAttrs$4;
|
|
555
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & {
|
|
556
|
-
children?: react.ReactNode;
|
|
527
|
+
interface Props$4 {
|
|
528
|
+
/**
|
|
529
|
+
* The HTML element type or React component to render as the tab.
|
|
530
|
+
*/
|
|
531
|
+
as?: React.ElementType;
|
|
532
|
+
/**
|
|
533
|
+
* The value associated with the tab.
|
|
534
|
+
*/
|
|
535
|
+
value?: any;
|
|
536
|
+
/**
|
|
537
|
+
* Whether the tab can be closed.
|
|
538
|
+
*/
|
|
539
|
+
closable?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Whether the tab is disabled.
|
|
542
|
+
*/
|
|
543
|
+
disabled?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* Content to display at the start of the tab, before the tab's text.
|
|
546
|
+
*/
|
|
547
|
+
startContent?: React.ReactNode;
|
|
548
|
+
/**
|
|
549
|
+
* Content to display at the end of the tab, after the tab's text.
|
|
550
|
+
*/
|
|
551
|
+
endContent?: React.ReactNode;
|
|
552
|
+
}
|
|
553
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
554
|
+
type TabProps = Props$4 & NativeAttrs$4;
|
|
555
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & {
|
|
556
|
+
children?: react.ReactNode;
|
|
557
557
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
558
558
|
|
|
559
559
|
type TabsAlignmet = 'start' | 'center' | 'end' | 'stretch';
|
|
560
560
|
|
|
561
|
-
interface Props$3 {
|
|
562
|
-
/**
|
|
563
|
-
* The currently selected value of the tabs.
|
|
564
|
-
*/
|
|
565
|
-
value?: any;
|
|
566
|
-
/**
|
|
567
|
-
* The default value of the tabs when initially rendered.
|
|
568
|
-
*/
|
|
569
|
-
defaultValue?: any;
|
|
570
|
-
/**
|
|
571
|
-
* The alignment of the tabs.
|
|
572
|
-
*/
|
|
573
|
-
alignment?: TabsAlignmet;
|
|
574
|
-
/**
|
|
575
|
-
* A callback function called when the selected tab value changes.
|
|
576
|
-
*/
|
|
577
|
-
onChange?: (value: any) => void;
|
|
578
|
-
/**
|
|
579
|
-
* A callback function called when a tab is closed.
|
|
580
|
-
*/
|
|
581
|
-
onClose?: (value: any) => void;
|
|
582
|
-
}
|
|
583
|
-
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
584
|
-
type TabsProps = Props$3 & NativeAttrs$3;
|
|
561
|
+
interface Props$3 {
|
|
562
|
+
/**
|
|
563
|
+
* The currently selected value of the tabs.
|
|
564
|
+
*/
|
|
565
|
+
value?: any;
|
|
566
|
+
/**
|
|
567
|
+
* The default value of the tabs when initially rendered.
|
|
568
|
+
*/
|
|
569
|
+
defaultValue?: any;
|
|
570
|
+
/**
|
|
571
|
+
* The alignment of the tabs.
|
|
572
|
+
*/
|
|
573
|
+
alignment?: TabsAlignmet;
|
|
574
|
+
/**
|
|
575
|
+
* A callback function called when the selected tab value changes.
|
|
576
|
+
*/
|
|
577
|
+
onChange?: (value: any) => void;
|
|
578
|
+
/**
|
|
579
|
+
* A callback function called when a tab is closed.
|
|
580
|
+
*/
|
|
581
|
+
onClose?: (value: any) => void;
|
|
582
|
+
}
|
|
583
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
584
|
+
type TabsProps = Props$3 & NativeAttrs$3;
|
|
585
585
|
declare const Tabs: React.FC<TabsProps>;
|
|
586
586
|
|
|
587
587
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
588
588
|
|
|
589
|
-
interface ToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
590
|
-
size?: ToolbarSize;
|
|
591
|
-
title?: string;
|
|
592
|
-
subtitle?: string;
|
|
593
|
-
startContent?: React.ReactNode;
|
|
594
|
-
endContent?: React.ReactNode;
|
|
595
|
-
startAction?: React.ReactNode;
|
|
596
|
-
endAction?: React.ReactNode;
|
|
597
|
-
}
|
|
589
|
+
interface ToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
590
|
+
size?: ToolbarSize;
|
|
591
|
+
title?: string;
|
|
592
|
+
subtitle?: string;
|
|
593
|
+
startContent?: React.ReactNode;
|
|
594
|
+
endContent?: React.ReactNode;
|
|
595
|
+
startAction?: React.ReactNode;
|
|
596
|
+
endAction?: React.ReactNode;
|
|
597
|
+
}
|
|
598
598
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
599
599
|
|
|
600
|
-
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
601
|
-
nodeRef?: React.MutableRefObject<HTMLElement | null>;
|
|
602
|
-
name: string;
|
|
603
|
-
isOpen: boolean;
|
|
604
|
-
enter?: number;
|
|
605
|
-
leave?: number;
|
|
606
|
-
mountOnEnter?: boolean;
|
|
607
|
-
unmountOnExit?: boolean;
|
|
608
|
-
onExited?: () => void;
|
|
609
|
-
}
|
|
600
|
+
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
601
|
+
nodeRef?: React.MutableRefObject<HTMLElement | null>;
|
|
602
|
+
name: string;
|
|
603
|
+
isOpen: boolean;
|
|
604
|
+
enter?: number;
|
|
605
|
+
leave?: number;
|
|
606
|
+
mountOnEnter?: boolean;
|
|
607
|
+
unmountOnExit?: boolean;
|
|
608
|
+
onExited?: () => void;
|
|
609
|
+
}
|
|
610
610
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
611
611
|
|
|
612
|
-
interface ScrollAreaProps {
|
|
613
|
-
children: React.ReactNode;
|
|
614
|
-
autoHide?: boolean;
|
|
615
|
-
style?: React.CSSProperties;
|
|
616
|
-
}
|
|
612
|
+
interface ScrollAreaProps {
|
|
613
|
+
children: React.ReactNode;
|
|
614
|
+
autoHide?: boolean;
|
|
615
|
+
style?: React.CSSProperties;
|
|
616
|
+
}
|
|
617
617
|
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
618
618
|
|
|
619
|
-
interface Props$2 {
|
|
620
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
621
|
-
startContent?: React.ReactNode;
|
|
622
|
-
endContent?: React.ReactNode;
|
|
623
|
-
}
|
|
624
|
-
type NativeAttrs$2 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$2>;
|
|
625
|
-
type TextInputProps = Props$2 & NativeAttrs$2;
|
|
619
|
+
interface Props$2 {
|
|
620
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
621
|
+
startContent?: React.ReactNode;
|
|
622
|
+
endContent?: React.ReactNode;
|
|
623
|
+
}
|
|
624
|
+
type NativeAttrs$2 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$2>;
|
|
625
|
+
type TextInputProps = Props$2 & NativeAttrs$2;
|
|
626
626
|
declare const TextInput: react.ForwardRefExoticComponent<Props$2 & NativeAttrs$2 & react.RefAttributes<HTMLInputElement>>;
|
|
627
627
|
|
|
628
|
-
interface Props$1 {
|
|
629
|
-
name?: string;
|
|
630
|
-
value?: string;
|
|
631
|
-
defaultValue?: string;
|
|
632
|
-
checked?: boolean;
|
|
633
|
-
defaultChecked?: boolean;
|
|
634
|
-
disabled?: boolean;
|
|
635
|
-
onChange?: (value: string) => void;
|
|
636
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
637
|
-
}
|
|
638
|
-
type NativeAttrs$1 = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, keyof Props$1>;
|
|
639
|
-
type SwitchProps = Props$1 & NativeAttrs$1;
|
|
628
|
+
interface Props$1 {
|
|
629
|
+
name?: string;
|
|
630
|
+
value?: string;
|
|
631
|
+
defaultValue?: string;
|
|
632
|
+
checked?: boolean;
|
|
633
|
+
defaultChecked?: boolean;
|
|
634
|
+
disabled?: boolean;
|
|
635
|
+
onChange?: (value: string) => void;
|
|
636
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
637
|
+
}
|
|
638
|
+
type NativeAttrs$1 = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, keyof Props$1>;
|
|
639
|
+
type SwitchProps = Props$1 & NativeAttrs$1;
|
|
640
640
|
declare const Switch: react.ForwardRefExoticComponent<Props$1 & NativeAttrs$1 & react.RefAttributes<HTMLLabelElement>>;
|
|
641
641
|
|
|
642
|
-
type SelectItem = Record<string, any>;
|
|
643
|
-
type SelectKeyField<TSelectItem> = keyof TSelectItem;
|
|
644
|
-
interface SelectSingleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
645
|
-
isMultiple?: false;
|
|
646
|
-
value: TSelectItem[TSelectKeyField] | null;
|
|
647
|
-
onChange?: (value: TSelectItem | null) => void;
|
|
648
|
-
onValueChange?: (value: TSelectItem[TSelectKeyField] | null) => void;
|
|
649
|
-
}
|
|
650
|
-
interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
651
|
-
isMultiple: true;
|
|
652
|
-
value: TSelectItem[TSelectKeyField][];
|
|
653
|
-
onChange?: (value: TSelectItem[]) => void;
|
|
654
|
-
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
655
|
-
}
|
|
656
|
-
type NativeAttrs<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props<TSelectItem, TSelectKeyField>>;
|
|
657
|
-
type Props<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
658
|
-
data: TSelectItem[];
|
|
659
|
-
keyField?: TSelectKeyField;
|
|
660
|
-
textField?: keyof TSelectItem;
|
|
661
|
-
placeholder?: string;
|
|
662
|
-
loading?: boolean;
|
|
663
|
-
disabled?: boolean;
|
|
664
|
-
disclosure?: Disclosure;
|
|
665
|
-
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
666
|
-
startContent?: React.ReactNode;
|
|
667
|
-
endContent?: React.ReactNode;
|
|
668
|
-
onItemSelect?: (item: TSelectItem) => void;
|
|
669
|
-
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
670
|
-
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
642
|
+
type SelectItem = Record<string, any>;
|
|
643
|
+
type SelectKeyField<TSelectItem> = keyof TSelectItem;
|
|
644
|
+
interface SelectSingleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
645
|
+
isMultiple?: false;
|
|
646
|
+
value: TSelectItem[TSelectKeyField] | null;
|
|
647
|
+
onChange?: (value: TSelectItem | null) => void;
|
|
648
|
+
onValueChange?: (value: TSelectItem[TSelectKeyField] | null) => void;
|
|
649
|
+
}
|
|
650
|
+
interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
651
|
+
isMultiple: true;
|
|
652
|
+
value: TSelectItem[TSelectKeyField][];
|
|
653
|
+
onChange?: (value: TSelectItem[]) => void;
|
|
654
|
+
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
655
|
+
}
|
|
656
|
+
type NativeAttrs<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props<TSelectItem, TSelectKeyField>>;
|
|
657
|
+
type Props<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
658
|
+
data: TSelectItem[];
|
|
659
|
+
keyField?: TSelectKeyField;
|
|
660
|
+
textField?: keyof TSelectItem;
|
|
661
|
+
placeholder?: string;
|
|
662
|
+
loading?: boolean;
|
|
663
|
+
disabled?: boolean;
|
|
664
|
+
disclosure?: Disclosure;
|
|
665
|
+
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
666
|
+
startContent?: React.ReactNode;
|
|
667
|
+
endContent?: React.ReactNode;
|
|
668
|
+
onItemSelect?: (item: TSelectItem) => void;
|
|
669
|
+
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
670
|
+
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
671
671
|
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props<TSelectItem, TSelectKeyField> & NativeAttrs<TSelectItem, TSelectKeyField>;
|
|
672
672
|
|
|
673
673
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends keyof TSelectItem = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
674
674
|
|
|
675
|
-
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
676
|
-
label: string;
|
|
677
|
-
}
|
|
675
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
676
|
+
label: string;
|
|
677
|
+
}
|
|
678
678
|
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
679
679
|
|
|
680
680
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
681
681
|
|
|
682
|
-
type ClassDictionary = Record<string, any>;
|
|
683
|
-
type ClassArray = ClassValue[];
|
|
684
|
-
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
682
|
+
type ClassDictionary = Record<string, any>;
|
|
683
|
+
type ClassArray = ClassValue[];
|
|
684
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
685
685
|
declare function clsx(...inputs: ClassValue[]): string;
|
|
686
686
|
|
|
687
|
-
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
688
|
-
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
687
|
+
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
688
|
+
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
689
689
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
690
690
|
|
|
691
691
|
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, Autocomplete, AutocompleteItem, AutocompleteKeyField, AutocompleteMultipleProps, AutocompleteProps, AutocompleteSingleProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Disclosure, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, InfiniteData, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, Portal, PortalProps, QueryFunction, QueryOptions, QueryStatus, ReactRef, Resize, ScrollAlignment, ScrollArea, ScrollAreaProps, ScrollBehavior, ScrollToOptions, Select, SelectItem, SelectKeyField, SelectMultipleProps, SelectProps, SelectSingleProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, TextInput, TextInputProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseResizeObserverOptions, VirtualItem, Virtualizer, VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordionItem, useCollapse, useDebounce, useDisclosure, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMenu, useMenuItemValue, useOnClickOutside, usePrevious, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|