@unifiedsoftware/react-ui 1.0.68 → 1.0.69
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 +1007 -1007
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -3,1210 +3,1210 @@ import react__default, { Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { VirtualizerOptions as VirtualizerOptions$1, Virtualizer as Virtualizer$1, ListItemProps as ListItemProps$1, ResultProps as ResultProps$1 } from '@unifiedsoftware/react-ui';
|
|
5
5
|
|
|
6
|
-
type AccordionSize = 'sm' | 'md' | 'lg';
|
|
7
|
-
interface AccordionArrow {
|
|
8
|
-
isVisible?: boolean;
|
|
9
|
-
position?: 'start' | 'end';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface Props$u {
|
|
13
|
-
value?: any[];
|
|
14
|
-
defaultValue?: any[];
|
|
15
|
-
expandMode?: 'single' | 'multiple';
|
|
16
|
-
size?: AccordionSize;
|
|
17
|
-
arrow?: AccordionArrow;
|
|
18
|
-
onChange?: (value: any[]) => void;
|
|
19
|
-
}
|
|
20
|
-
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
21
|
-
type AccordionProps = Props$u & NativeAttrs$u;
|
|
6
|
+
type AccordionSize = 'sm' | 'md' | 'lg';
|
|
7
|
+
interface AccordionArrow {
|
|
8
|
+
isVisible?: boolean;
|
|
9
|
+
position?: 'start' | 'end';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface Props$u {
|
|
13
|
+
value?: any[];
|
|
14
|
+
defaultValue?: any[];
|
|
15
|
+
expandMode?: 'single' | 'multiple';
|
|
16
|
+
size?: AccordionSize;
|
|
17
|
+
arrow?: AccordionArrow;
|
|
18
|
+
onChange?: (value: any[]) => void;
|
|
19
|
+
}
|
|
20
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u>;
|
|
21
|
+
type AccordionProps = Props$u & NativeAttrs$u;
|
|
22
22
|
declare const Accordion: react.ForwardRefExoticComponent<Props$u & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
|
|
24
|
-
interface AccordionItemContextValue {
|
|
25
|
-
value: string;
|
|
26
|
-
}
|
|
27
|
-
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
-
interface Props$t {
|
|
29
|
-
value?: any;
|
|
30
|
-
}
|
|
31
|
-
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
32
|
-
type AccordionItemProps = Props$t & NativeAttrs$t;
|
|
24
|
+
interface AccordionItemContextValue {
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
+
interface Props$t {
|
|
29
|
+
value?: any;
|
|
30
|
+
}
|
|
31
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t>;
|
|
32
|
+
type AccordionItemProps = Props$t & NativeAttrs$t;
|
|
33
33
|
declare const AccordionItem: react.ForwardRefExoticComponent<Props$t & NativeAttrs$t & react.RefAttributes<HTMLDivElement>>;
|
|
34
34
|
|
|
35
|
-
interface Props$s {
|
|
36
|
-
as?: React.ElementType;
|
|
37
|
-
title?: React.ReactNode;
|
|
38
|
-
subtitle?: React.ReactNode;
|
|
39
|
-
startContent?: React.ReactNode;
|
|
40
|
-
endContent?: React.ReactNode;
|
|
41
|
-
bordered?: boolean;
|
|
42
|
-
collapsible?: boolean;
|
|
43
|
-
arrow?: AccordionArrow;
|
|
44
|
-
slotProps?: {
|
|
45
|
-
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
46
|
-
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
47
|
-
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
48
|
-
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
49
|
-
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
53
|
-
type AccordionHeaderProps = Props$s & NativeAttrs$s;
|
|
35
|
+
interface Props$s {
|
|
36
|
+
as?: React.ElementType;
|
|
37
|
+
title?: React.ReactNode;
|
|
38
|
+
subtitle?: React.ReactNode;
|
|
39
|
+
startContent?: React.ReactNode;
|
|
40
|
+
endContent?: React.ReactNode;
|
|
41
|
+
bordered?: boolean;
|
|
42
|
+
collapsible?: boolean;
|
|
43
|
+
arrow?: AccordionArrow;
|
|
44
|
+
slotProps?: {
|
|
45
|
+
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
46
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
47
|
+
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
48
|
+
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
49
|
+
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
53
|
+
type AccordionHeaderProps = Props$s & NativeAttrs$s;
|
|
54
54
|
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$s & NativeAttrs$s & react.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
|
|
56
|
-
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
56
|
+
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
57
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
|
|
59
|
-
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
59
|
+
type AccordionContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
60
60
|
declare const AccordionContent: react.ForwardRefExoticComponent<AccordionContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
61
61
|
|
|
62
|
-
interface AccordionTriggerProps {
|
|
63
|
-
children: React.ReactNode;
|
|
64
|
-
}
|
|
62
|
+
interface AccordionTriggerProps {
|
|
63
|
+
children: React.ReactNode;
|
|
64
|
+
}
|
|
65
65
|
declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & react.RefAttributes<unknown>>;
|
|
66
66
|
|
|
67
|
-
interface AccordionContextValue {
|
|
68
|
-
value: any[];
|
|
69
|
-
expandMode: 'single' | 'multiple';
|
|
70
|
-
arrow: AccordionArrow;
|
|
71
|
-
onChange: (value: any[]) => void;
|
|
72
|
-
}
|
|
73
|
-
declare const AccordionContext: react.Context<AccordionContextValue | null>;
|
|
67
|
+
interface AccordionContextValue {
|
|
68
|
+
value: any[];
|
|
69
|
+
expandMode: 'single' | 'multiple';
|
|
70
|
+
arrow: AccordionArrow;
|
|
71
|
+
onChange: (value: any[]) => void;
|
|
72
|
+
}
|
|
73
|
+
declare const AccordionContext: react.Context<AccordionContextValue | null>;
|
|
74
74
|
declare const useAccordion: () => AccordionContextValue;
|
|
75
75
|
|
|
76
|
-
declare global {
|
|
77
|
-
interface WindowEventMap {
|
|
78
|
-
'local-storage': CustomEvent;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
type SetValue<T> = Dispatch<SetStateAction<T>>;
|
|
82
|
-
/**
|
|
83
|
-
* It's a React hook that allows you to store and retrieve data from localStorage
|
|
84
|
-
* @param {string} key - string
|
|
85
|
-
* @param {T} initialValue - The initial value to use if the key doesn't exist in localStorage.
|
|
86
|
-
* @returns An array of two items. The first item is the value of the local storage key. The second
|
|
87
|
-
* item is a function that can be used to set the value of the local storage key.
|
|
88
|
-
*/
|
|
76
|
+
declare global {
|
|
77
|
+
interface WindowEventMap {
|
|
78
|
+
'local-storage': CustomEvent;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
type SetValue<T> = Dispatch<SetStateAction<T>>;
|
|
82
|
+
/**
|
|
83
|
+
* It's a React hook that allows you to store and retrieve data from localStorage
|
|
84
|
+
* @param {string} key - string
|
|
85
|
+
* @param {T} initialValue - The initial value to use if the key doesn't exist in localStorage.
|
|
86
|
+
* @returns An array of two items. The first item is the value of the local storage key. The second
|
|
87
|
+
* item is a function that can be used to set the value of the local storage key.
|
|
88
|
+
*/
|
|
89
89
|
declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<T>];
|
|
90
90
|
|
|
91
|
-
/**
|
|
92
|
-
* It returns the previous value of the given value
|
|
93
|
-
* @param {any} value - any - The value to track.
|
|
94
|
-
* @returns The previous value of the variable.
|
|
95
|
-
*/
|
|
91
|
+
/**
|
|
92
|
+
* It returns the previous value of the given value
|
|
93
|
+
* @param {any} value - any - The value to track.
|
|
94
|
+
* @returns The previous value of the variable.
|
|
95
|
+
*/
|
|
96
96
|
declare const usePrevious: (value: any) => undefined;
|
|
97
97
|
|
|
98
|
-
interface Disclosure {
|
|
99
|
-
isOpen: boolean;
|
|
100
|
-
onOpen: () => void;
|
|
101
|
-
onClose: () => void;
|
|
102
|
-
onToggle: () => void;
|
|
103
|
-
}
|
|
104
|
-
declare function useDisclosure({ defaultValue }?: {
|
|
105
|
-
defaultValue?: boolean;
|
|
98
|
+
interface Disclosure {
|
|
99
|
+
isOpen: boolean;
|
|
100
|
+
onOpen: () => void;
|
|
101
|
+
onClose: () => void;
|
|
102
|
+
onToggle: () => void;
|
|
103
|
+
}
|
|
104
|
+
declare function useDisclosure({ defaultValue }?: {
|
|
105
|
+
defaultValue?: boolean;
|
|
106
106
|
}): Disclosure;
|
|
107
107
|
|
|
108
|
-
type Handler = (event: MouseEvent | TouchEvent) => void;
|
|
109
|
-
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref:
|
|
110
|
-
|
|
111
|
-
interface Helpers {
|
|
112
|
-
goToNextStep: () => void;
|
|
113
|
-
goToPrevStep: () => void;
|
|
114
|
-
reset: () => void;
|
|
115
|
-
canGoToNextStep: boolean;
|
|
116
|
-
canGoToPrevStep: boolean;
|
|
117
|
-
setStep: Dispatch<SetStateAction<number>>;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* It returns a tuple with the current step and an object with functions to manipulate the step
|
|
121
|
-
* @param {number} maxStep - number - The maximum number of steps in the stepper.
|
|
122
|
-
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
123
|
-
* object with the following properties:
|
|
124
|
-
*/
|
|
108
|
+
type Handler = (event: MouseEvent | TouchEvent) => void;
|
|
109
|
+
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: React.RefObject<T>, handler: Handler) => void;
|
|
110
|
+
|
|
111
|
+
interface Helpers {
|
|
112
|
+
goToNextStep: () => void;
|
|
113
|
+
goToPrevStep: () => void;
|
|
114
|
+
reset: () => void;
|
|
115
|
+
canGoToNextStep: boolean;
|
|
116
|
+
canGoToPrevStep: boolean;
|
|
117
|
+
setStep: Dispatch<SetStateAction<number>>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* It returns a tuple with the current step and an object with functions to manipulate the step
|
|
121
|
+
* @param {number} maxStep - number - The maximum number of steps in the stepper.
|
|
122
|
+
* @returns An array with two elements. The first element is the current step. The second element is an
|
|
123
|
+
* object with the following properties:
|
|
124
|
+
*/
|
|
125
125
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
|
126
126
|
|
|
127
|
-
interface UseDebounceOptions {
|
|
128
|
-
delay?: number;
|
|
129
|
-
callback?: () => void;
|
|
130
|
-
}
|
|
131
|
-
declare function useDebounce<T>(value: T, options?: UseDebounceOptions): T;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @deprecated Use `useDebounce<T>(value: T, options?: UseDebounceOptions): T` instead
|
|
135
|
-
*/
|
|
127
|
+
interface UseDebounceOptions {
|
|
128
|
+
delay?: number;
|
|
129
|
+
callback?: () => void;
|
|
130
|
+
}
|
|
131
|
+
declare function useDebounce<T>(value: T, options?: UseDebounceOptions): T;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @deprecated Use `useDebounce<T>(value: T, options?: UseDebounceOptions): T` instead
|
|
135
|
+
*/
|
|
136
136
|
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
137
137
|
|
|
138
138
|
declare function useMediaQuery(query: string): boolean;
|
|
139
139
|
|
|
140
|
-
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto';
|
|
141
|
-
type ScrollBehavior = 'auto' | 'smooth';
|
|
142
|
-
interface ScrollToOptions {
|
|
143
|
-
align?: ScrollAlignment;
|
|
144
|
-
behavior?: ScrollBehavior;
|
|
145
|
-
}
|
|
146
|
-
type Key = number | string;
|
|
147
|
-
interface Virtualizer {
|
|
148
|
-
scrollOffset: number;
|
|
149
|
-
hasNextPage?: boolean;
|
|
150
|
-
getVirtualItems: () => VirtualItem[];
|
|
151
|
-
getTotalSize: () => number;
|
|
152
|
-
scrollToIndex: (index: number, options: ScrollToOptions) => void;
|
|
153
|
-
scrollToOffset: (toOffset: number, options: ScrollToOptions) => void;
|
|
154
|
-
}
|
|
155
|
-
interface VirtualItem {
|
|
156
|
-
key: Key;
|
|
157
|
-
index: number;
|
|
158
|
-
start: number;
|
|
159
|
-
end: number;
|
|
160
|
-
size: number;
|
|
161
|
-
lane: number;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface VirtualizerOptions {
|
|
165
|
-
parentRef: React.MutableRefObject<Element | null>;
|
|
166
|
-
total?: number;
|
|
167
|
-
overscan?: number;
|
|
168
|
-
count?: number;
|
|
169
|
-
hasNextPage?: boolean;
|
|
170
|
-
isFetchingNextPage?: boolean;
|
|
171
|
-
onFetchNextPage?: () => Promise<void> | void;
|
|
172
|
-
estimateSize: (index: number) => number;
|
|
173
|
-
}
|
|
140
|
+
type ScrollAlignment = 'start' | 'center' | 'end' | 'auto';
|
|
141
|
+
type ScrollBehavior = 'auto' | 'smooth';
|
|
142
|
+
interface ScrollToOptions {
|
|
143
|
+
align?: ScrollAlignment;
|
|
144
|
+
behavior?: ScrollBehavior;
|
|
145
|
+
}
|
|
146
|
+
type Key = number | string;
|
|
147
|
+
interface Virtualizer {
|
|
148
|
+
scrollOffset: number;
|
|
149
|
+
hasNextPage?: boolean;
|
|
150
|
+
getVirtualItems: () => VirtualItem[];
|
|
151
|
+
getTotalSize: () => number;
|
|
152
|
+
scrollToIndex: (index: number, options: ScrollToOptions) => void;
|
|
153
|
+
scrollToOffset: (toOffset: number, options: ScrollToOptions) => void;
|
|
154
|
+
}
|
|
155
|
+
interface VirtualItem {
|
|
156
|
+
key: Key;
|
|
157
|
+
index: number;
|
|
158
|
+
start: number;
|
|
159
|
+
end: number;
|
|
160
|
+
size: number;
|
|
161
|
+
lane: number;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface VirtualizerOptions {
|
|
165
|
+
parentRef: React.MutableRefObject<Element | null>;
|
|
166
|
+
total?: number;
|
|
167
|
+
overscan?: number;
|
|
168
|
+
count?: number;
|
|
169
|
+
hasNextPage?: boolean;
|
|
170
|
+
isFetchingNextPage?: boolean;
|
|
171
|
+
onFetchNextPage?: () => Promise<void> | void;
|
|
172
|
+
estimateSize: (index: number) => number;
|
|
173
|
+
}
|
|
174
174
|
declare function useVirtualizer(options: VirtualizerOptions): Virtualizer;
|
|
175
175
|
|
|
176
|
-
declare enum QueryStatus {
|
|
177
|
-
IDLE = 0,
|
|
178
|
-
LOADING = 1,
|
|
179
|
-
SUCCESS = 2,
|
|
180
|
-
ERROR = 3
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
interface InfiniteQueryOptions {
|
|
184
|
-
page?: number;
|
|
185
|
-
}
|
|
186
|
-
interface InfiniteData<TData = any> {
|
|
187
|
-
pages: TData[];
|
|
188
|
-
}
|
|
189
|
-
type InfiniteQueryFunction<TData = unknown> = (options: InfiniteQueryOptions) => Promise<TData>;
|
|
190
|
-
interface InfiniteQueryRefetchOptions<TData> {
|
|
191
|
-
refetchPages?: (allPages: TData[]) => number[];
|
|
192
|
-
refetchPage?: (page: TData, index: number) => boolean;
|
|
193
|
-
onRefetchedPage?: (page: TData, index: number) => {
|
|
194
|
-
page: TData;
|
|
195
|
-
isSync?: boolean;
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
interface UseInfiniteQueryOptions<TData = unknown, TError = Error> {
|
|
199
|
-
disabled?: boolean;
|
|
200
|
-
query: InfiniteQueryFunction<TData>;
|
|
201
|
-
getNextPage: (lastPage: TData, allPages: TData[]) => number | undefined;
|
|
202
|
-
onSuccess?: (data: InfiniteData<TData>) => void;
|
|
203
|
-
onError?: (error: TError) => void;
|
|
204
|
-
}
|
|
205
|
-
interface UseInfiniteQueryResult<TData = unknown, TError = Error> {
|
|
206
|
-
data?: InfiniteData<TData>;
|
|
207
|
-
error?: TError;
|
|
208
|
-
status: QueryStatus;
|
|
209
|
-
isLoading: boolean;
|
|
210
|
-
isSuccess: boolean;
|
|
211
|
-
isError: boolean;
|
|
212
|
-
isFetching: boolean;
|
|
213
|
-
isFetched: boolean;
|
|
214
|
-
isRefetching: boolean;
|
|
215
|
-
isRefetched: boolean;
|
|
216
|
-
hasNextPage?: boolean;
|
|
217
|
-
isFetchingNextPage: boolean;
|
|
218
|
-
fetchNextPage: () => Promise<void>;
|
|
219
|
-
unstable_mutate: (callback: (page: TData, index: number) => TData) => void;
|
|
220
|
-
unstable_refetch: (options?: InfiniteQueryRefetchOptions<TData>) => Promise<void>;
|
|
221
|
-
unstable_remove: () => void;
|
|
176
|
+
declare enum QueryStatus {
|
|
177
|
+
IDLE = 0,
|
|
178
|
+
LOADING = 1,
|
|
179
|
+
SUCCESS = 2,
|
|
180
|
+
ERROR = 3
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface InfiniteQueryOptions {
|
|
184
|
+
page?: number;
|
|
185
|
+
}
|
|
186
|
+
interface InfiniteData<TData = any> {
|
|
187
|
+
pages: TData[];
|
|
188
|
+
}
|
|
189
|
+
type InfiniteQueryFunction<TData = unknown> = (options: InfiniteQueryOptions) => Promise<TData>;
|
|
190
|
+
interface InfiniteQueryRefetchOptions<TData> {
|
|
191
|
+
refetchPages?: (allPages: TData[]) => number[];
|
|
192
|
+
refetchPage?: (page: TData, index: number) => boolean;
|
|
193
|
+
onRefetchedPage?: (page: TData, index: number) => {
|
|
194
|
+
page: TData;
|
|
195
|
+
isSync?: boolean;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
interface UseInfiniteQueryOptions<TData = unknown, TError = Error> {
|
|
199
|
+
disabled?: boolean;
|
|
200
|
+
query: InfiniteQueryFunction<TData>;
|
|
201
|
+
getNextPage: (lastPage: TData, allPages: TData[]) => number | undefined;
|
|
202
|
+
onSuccess?: (data: InfiniteData<TData>) => void;
|
|
203
|
+
onError?: (error: TError) => void;
|
|
204
|
+
}
|
|
205
|
+
interface UseInfiniteQueryResult<TData = unknown, TError = Error> {
|
|
206
|
+
data?: InfiniteData<TData>;
|
|
207
|
+
error?: TError;
|
|
208
|
+
status: QueryStatus;
|
|
209
|
+
isLoading: boolean;
|
|
210
|
+
isSuccess: boolean;
|
|
211
|
+
isError: boolean;
|
|
212
|
+
isFetching: boolean;
|
|
213
|
+
isFetched: boolean;
|
|
214
|
+
isRefetching: boolean;
|
|
215
|
+
isRefetched: boolean;
|
|
216
|
+
hasNextPage?: boolean;
|
|
217
|
+
isFetchingNextPage: boolean;
|
|
218
|
+
fetchNextPage: () => Promise<void>;
|
|
219
|
+
unstable_mutate: (callback: (page: TData, index: number) => TData) => void;
|
|
220
|
+
unstable_refetch: (options?: InfiniteQueryRefetchOptions<TData>) => Promise<void>;
|
|
221
|
+
unstable_remove: () => void;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
declare function useInfiniteQuery<TData = unknown, TError = Error>(options: UseInfiniteQueryOptions<TData, TError>, deps?: React.DependencyList): UseInfiniteQueryResult<TData, TError>;
|
|
225
225
|
|
|
226
|
-
type QueryFunction<TData = unknown> = () => Promise<TData>;
|
|
227
|
-
interface UseQueryOptions<TQueryData = unknown, TError = Error, TData = TQueryData> {
|
|
228
|
-
disabled?: boolean;
|
|
229
|
-
query: QueryFunction<TQueryData>;
|
|
230
|
-
select?: (data: TQueryData) => TData;
|
|
231
|
-
onSuccess?: (data: TData) => void;
|
|
232
|
-
onError?: (error: TError) => void;
|
|
233
|
-
}
|
|
234
|
-
interface UseQueryResult<TQueryData = unknown, TError = Error, TData = TQueryData> {
|
|
235
|
-
data?: TData;
|
|
236
|
-
error?: TError;
|
|
237
|
-
status: QueryStatus;
|
|
238
|
-
isLoading: boolean;
|
|
239
|
-
isSuccess: boolean;
|
|
240
|
-
isError: boolean;
|
|
241
|
-
isFetching: boolean;
|
|
242
|
-
isFetched: boolean;
|
|
243
|
-
isRefetching: boolean;
|
|
244
|
-
isRefetched: boolean;
|
|
245
|
-
refetch: () => Promise<void>;
|
|
246
|
-
mutate: (data: TData) => void;
|
|
247
|
-
remove: () => void;
|
|
226
|
+
type QueryFunction<TData = unknown> = () => Promise<TData>;
|
|
227
|
+
interface UseQueryOptions<TQueryData = unknown, TError = Error, TData = TQueryData> {
|
|
228
|
+
disabled?: boolean;
|
|
229
|
+
query: QueryFunction<TQueryData>;
|
|
230
|
+
select?: (data: TQueryData) => TData;
|
|
231
|
+
onSuccess?: (data: TData) => void;
|
|
232
|
+
onError?: (error: TError) => void;
|
|
233
|
+
}
|
|
234
|
+
interface UseQueryResult<TQueryData = unknown, TError = Error, TData = TQueryData> {
|
|
235
|
+
data?: TData;
|
|
236
|
+
error?: TError;
|
|
237
|
+
status: QueryStatus;
|
|
238
|
+
isLoading: boolean;
|
|
239
|
+
isSuccess: boolean;
|
|
240
|
+
isError: boolean;
|
|
241
|
+
isFetching: boolean;
|
|
242
|
+
isFetched: boolean;
|
|
243
|
+
isRefetching: boolean;
|
|
244
|
+
isRefetched: boolean;
|
|
245
|
+
refetch: () => Promise<void>;
|
|
246
|
+
mutate: (data: TData) => void;
|
|
247
|
+
remove: () => void;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
declare function useQuery<TQueryData = unknown, TError = Error, TData = TQueryData>(options: UseQueryOptions<TQueryData, TError, TData>, deps?: React.DependencyList): UseQueryResult<TQueryData, TError, TData>;
|
|
251
251
|
|
|
252
|
-
declare enum MutationStatus {
|
|
253
|
-
IDlE = 0,
|
|
254
|
-
LOADING = 1,
|
|
255
|
-
SUCCESS = 2,
|
|
256
|
-
ERROR = 3
|
|
257
|
-
}
|
|
258
|
-
interface MutationOK<TData> {
|
|
259
|
-
isError(): this is MutationError<never>;
|
|
260
|
-
isOK(): this is MutationOK<TData>;
|
|
261
|
-
data: TData;
|
|
262
|
-
}
|
|
263
|
-
interface MutationError<TError> {
|
|
264
|
-
isError(): this is MutationError<TError>;
|
|
265
|
-
isOK(): this is MutationOK<never>;
|
|
266
|
-
error: TError;
|
|
267
|
-
}
|
|
268
|
-
type MutationResult<TData, TError> = MutationOK<TData> | MutationError<TError>;
|
|
269
|
-
type MutationFunction<TParams = unknown, TData = unknown> = (params: TParams) => Promise<TData>;
|
|
270
|
-
interface UseMutationOptions<TParams = any, TData = any> {
|
|
271
|
-
mutation: MutationFunction<TParams, TData>;
|
|
272
|
-
}
|
|
273
|
-
interface UseMutationResult<TParams = unknown, TData = unknown, TError = unknown> {
|
|
274
|
-
isLoading: boolean;
|
|
275
|
-
isError: boolean;
|
|
276
|
-
status: MutationStatus;
|
|
277
|
-
data: TData | undefined;
|
|
278
|
-
error: string | undefined;
|
|
279
|
-
mutate: (params: TParams) => Promise<MutationResult<TData, TError>>;
|
|
252
|
+
declare enum MutationStatus {
|
|
253
|
+
IDlE = 0,
|
|
254
|
+
LOADING = 1,
|
|
255
|
+
SUCCESS = 2,
|
|
256
|
+
ERROR = 3
|
|
257
|
+
}
|
|
258
|
+
interface MutationOK<TData> {
|
|
259
|
+
isError(): this is MutationError<never>;
|
|
260
|
+
isOK(): this is MutationOK<TData>;
|
|
261
|
+
data: TData;
|
|
262
|
+
}
|
|
263
|
+
interface MutationError<TError> {
|
|
264
|
+
isError(): this is MutationError<TError>;
|
|
265
|
+
isOK(): this is MutationOK<never>;
|
|
266
|
+
error: TError;
|
|
267
|
+
}
|
|
268
|
+
type MutationResult<TData, TError> = MutationOK<TData> | MutationError<TError>;
|
|
269
|
+
type MutationFunction<TParams = unknown, TData = unknown> = (params: TParams) => Promise<TData>;
|
|
270
|
+
interface UseMutationOptions<TParams = any, TData = any> {
|
|
271
|
+
mutation: MutationFunction<TParams, TData>;
|
|
272
|
+
}
|
|
273
|
+
interface UseMutationResult<TParams = unknown, TData = unknown, TError = unknown> {
|
|
274
|
+
isLoading: boolean;
|
|
275
|
+
isError: boolean;
|
|
276
|
+
status: MutationStatus;
|
|
277
|
+
data: TData | undefined;
|
|
278
|
+
error: string | undefined;
|
|
279
|
+
mutate: (params: TParams) => Promise<MutationResult<TData, TError>>;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
declare const useMutation: <TParams = any, TData = any, TError = any>(options: UseMutationOptions<TParams, TData>) => UseMutationResult<TParams, TData, TError>;
|
|
283
283
|
|
|
284
|
-
interface Resize {
|
|
285
|
-
width: number;
|
|
286
|
-
height: number;
|
|
287
|
-
}
|
|
288
|
-
interface UseElementSizeOptions<T> {
|
|
289
|
-
ref?: React.MutableRefObject<T | null>;
|
|
290
|
-
target?: T;
|
|
291
|
-
callback?: (resize: Resize) => void;
|
|
292
|
-
}
|
|
284
|
+
interface Resize {
|
|
285
|
+
width: number;
|
|
286
|
+
height: number;
|
|
287
|
+
}
|
|
288
|
+
interface UseElementSizeOptions<T> {
|
|
289
|
+
ref?: React.MutableRefObject<T | null>;
|
|
290
|
+
target?: T;
|
|
291
|
+
callback?: (resize: Resize) => void;
|
|
292
|
+
}
|
|
293
293
|
declare function useElementSize<T extends HTMLElement = any>(options: UseElementSizeOptions<T>): Resize;
|
|
294
294
|
|
|
295
|
-
interface UseResizeObserverOptions<T> {
|
|
296
|
-
ref?: React.RefObject<T | undefined>;
|
|
297
|
-
onResize: () => void;
|
|
298
|
-
}
|
|
299
|
-
declare function hasResizeObserver(): boolean;
|
|
295
|
+
interface UseResizeObserverOptions<T> {
|
|
296
|
+
ref?: React.RefObject<T | undefined>;
|
|
297
|
+
onResize: () => void;
|
|
298
|
+
}
|
|
299
|
+
declare function hasResizeObserver(): boolean;
|
|
300
300
|
declare function useResizeObserver<T extends Element>(options: UseResizeObserverOptions<T>): void;
|
|
301
301
|
|
|
302
302
|
declare function useEffectEvent<T extends Function>(fn: T): T;
|
|
303
303
|
|
|
304
|
-
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
304
|
+
type SetValueAction<S> = (prev: S) => Generator<any, void, unknown>;
|
|
305
305
|
declare function useValueEffect<S>(defaultValue: S | (() => S)): [S, Dispatch<SetValueAction<S>>];
|
|
306
306
|
|
|
307
|
-
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
308
|
-
type InputColor = 'light' | 'dark' | 'inherit';
|
|
307
|
+
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
308
|
+
type InputColor = 'light' | 'dark' | 'inherit';
|
|
309
309
|
type InputVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
310
310
|
|
|
311
311
|
type ListSize = 'sm' | 'md' | 'lg';
|
|
312
312
|
|
|
313
|
-
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
314
|
-
as?: React.ElementType;
|
|
315
|
-
size?: ListSize;
|
|
316
|
-
}
|
|
313
|
+
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
314
|
+
as?: React.ElementType;
|
|
315
|
+
size?: ListSize;
|
|
316
|
+
}
|
|
317
317
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
318
318
|
|
|
319
|
-
interface Props$r {
|
|
320
|
-
as?: react__default.ElementType;
|
|
321
|
-
title?: react__default.ReactNode;
|
|
322
|
-
subtitle?: react__default.ReactNode;
|
|
323
|
-
startContent?: react__default.ReactNode;
|
|
324
|
-
endContent?: react__default.ReactNode;
|
|
325
|
-
level?: number;
|
|
326
|
-
hoverable?: boolean;
|
|
327
|
-
selected?: boolean;
|
|
328
|
-
disabled?: boolean;
|
|
329
|
-
slotProps?: {
|
|
330
|
-
startContent?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
331
|
-
content?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
332
|
-
endContent?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
333
|
-
title?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
334
|
-
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
type NativeAttrs$r = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
338
|
-
type ListItemProps = Props$r & NativeAttrs$r;
|
|
319
|
+
interface Props$r {
|
|
320
|
+
as?: react__default.ElementType;
|
|
321
|
+
title?: react__default.ReactNode;
|
|
322
|
+
subtitle?: react__default.ReactNode;
|
|
323
|
+
startContent?: react__default.ReactNode;
|
|
324
|
+
endContent?: react__default.ReactNode;
|
|
325
|
+
level?: number;
|
|
326
|
+
hoverable?: boolean;
|
|
327
|
+
selected?: boolean;
|
|
328
|
+
disabled?: boolean;
|
|
329
|
+
slotProps?: {
|
|
330
|
+
startContent?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
331
|
+
content?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
332
|
+
endContent?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
333
|
+
title?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
334
|
+
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
type NativeAttrs$r = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
338
|
+
type ListItemProps = Props$r & NativeAttrs$r;
|
|
339
339
|
declare const ListItem: react__default.ForwardRefExoticComponent<Props$r & NativeAttrs$r & react__default.RefAttributes<HTMLDivElement>>;
|
|
340
340
|
|
|
341
|
-
interface Props$q {
|
|
342
|
-
expandVisible?: boolean;
|
|
343
|
-
expandPosition?: 'start' | 'end';
|
|
344
|
-
isOpen?: boolean;
|
|
345
|
-
onOpen?: () => void;
|
|
346
|
-
onClose?: () => void;
|
|
347
|
-
onToggle?: () => void;
|
|
348
|
-
}
|
|
349
|
-
type NativeAttrs$q = Omit<ListItemProps, keyof Props$q>;
|
|
350
|
-
type ListGroupProps = Props$q & NativeAttrs$q;
|
|
341
|
+
interface Props$q {
|
|
342
|
+
expandVisible?: boolean;
|
|
343
|
+
expandPosition?: 'start' | 'end';
|
|
344
|
+
isOpen?: boolean;
|
|
345
|
+
onOpen?: () => void;
|
|
346
|
+
onClose?: () => void;
|
|
347
|
+
onToggle?: () => void;
|
|
348
|
+
}
|
|
349
|
+
type NativeAttrs$q = Omit<ListItemProps, keyof Props$q>;
|
|
350
|
+
type ListGroupProps = Props$q & NativeAttrs$q;
|
|
351
351
|
declare const ListGroup: react.ForwardRefExoticComponent<Props$q & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
352
352
|
|
|
353
|
-
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
|
-
as?: React.ElementType;
|
|
355
|
-
title: string;
|
|
356
|
-
startContent?: React.ReactNode;
|
|
357
|
-
endContent?: React.ReactNode;
|
|
358
|
-
bordered?: boolean;
|
|
359
|
-
level?: number;
|
|
360
|
-
hoverable?: boolean;
|
|
361
|
-
selected?: boolean;
|
|
362
|
-
disabled?: boolean;
|
|
363
|
-
}
|
|
353
|
+
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
|
+
as?: React.ElementType;
|
|
355
|
+
title: string;
|
|
356
|
+
startContent?: React.ReactNode;
|
|
357
|
+
endContent?: React.ReactNode;
|
|
358
|
+
bordered?: boolean;
|
|
359
|
+
level?: number;
|
|
360
|
+
hoverable?: boolean;
|
|
361
|
+
selected?: boolean;
|
|
362
|
+
disabled?: boolean;
|
|
363
|
+
}
|
|
364
364
|
declare const ListSubheader: react.ForwardRefExoticComponent<ListSubheaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
365
365
|
|
|
366
|
-
type ResultStatus = 'sucess' | 'info' | 'warning' | 'danger';
|
|
366
|
+
type ResultStatus = 'sucess' | 'info' | 'warning' | 'danger';
|
|
367
367
|
type ResultSize = 'sm' | 'md' | 'lg';
|
|
368
368
|
|
|
369
|
-
interface ResultProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
370
|
-
title?: string;
|
|
371
|
-
subtitle?: string;
|
|
372
|
-
icon?: React.ReactNode;
|
|
373
|
-
status?: ResultStatus;
|
|
374
|
-
size?: ResultSize;
|
|
375
|
-
extra?: React.ReactNode;
|
|
376
|
-
}
|
|
369
|
+
interface ResultProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
370
|
+
title?: string;
|
|
371
|
+
subtitle?: string;
|
|
372
|
+
icon?: React.ReactNode;
|
|
373
|
+
status?: ResultStatus;
|
|
374
|
+
size?: ResultSize;
|
|
375
|
+
extra?: React.ReactNode;
|
|
376
|
+
}
|
|
377
377
|
declare const Result: React.FC<ResultProps>;
|
|
378
378
|
|
|
379
|
-
type AutocompleteItem = Record<string, any>;
|
|
380
|
-
type AutocompleteKeyField<TAutocompleteItem> = keyof TAutocompleteItem;
|
|
381
|
-
interface AutocompleteSingleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
382
|
-
isMultiple?: false;
|
|
383
|
-
value: TAutocompleteItem[TAutocompleteKeyField] | null;
|
|
384
|
-
onChange?: (value: TAutocompleteItem | null) => void;
|
|
385
|
-
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField] | null) => void;
|
|
386
|
-
}
|
|
387
|
-
interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
388
|
-
isMultiple: true;
|
|
389
|
-
value: TAutocompleteItem[TAutocompleteKeyField][];
|
|
390
|
-
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
|
-
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
|
-
}
|
|
393
|
-
type NativeAttrs$p<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
394
|
-
type Props$p<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
|
-
data: TAutocompleteItem[];
|
|
396
|
-
keyField?: TAutocompleteKeyField;
|
|
397
|
-
textField?: keyof TAutocompleteItem;
|
|
398
|
-
placeholder?: string;
|
|
399
|
-
filter?: string;
|
|
400
|
-
loading?: boolean;
|
|
401
|
-
disabled?: boolean;
|
|
402
|
-
clearable?: boolean;
|
|
403
|
-
disclosure?: Disclosure;
|
|
404
|
-
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
405
|
-
color?: InputColor;
|
|
406
|
-
variant?: InputVariant;
|
|
407
|
-
size?: InputSize;
|
|
408
|
-
startContent?: React.ReactNode;
|
|
409
|
-
endContent?: React.ReactNode;
|
|
410
|
-
onItemSelect?: (item: TAutocompleteItem) => void;
|
|
411
|
-
onFilterChange?: (value: string) => void;
|
|
412
|
-
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
|
-
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
|
-
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
379
|
+
type AutocompleteItem = Record<string, any>;
|
|
380
|
+
type AutocompleteKeyField<TAutocompleteItem> = keyof TAutocompleteItem;
|
|
381
|
+
interface AutocompleteSingleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
382
|
+
isMultiple?: false;
|
|
383
|
+
value: TAutocompleteItem[TAutocompleteKeyField] | null;
|
|
384
|
+
onChange?: (value: TAutocompleteItem | null) => void;
|
|
385
|
+
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField] | null) => void;
|
|
386
|
+
}
|
|
387
|
+
interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> {
|
|
388
|
+
isMultiple: true;
|
|
389
|
+
value: TAutocompleteItem[TAutocompleteKeyField][];
|
|
390
|
+
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
|
+
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
|
+
}
|
|
393
|
+
type NativeAttrs$p<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
394
|
+
type Props$p<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
|
+
data: TAutocompleteItem[];
|
|
396
|
+
keyField?: TAutocompleteKeyField;
|
|
397
|
+
textField?: keyof TAutocompleteItem;
|
|
398
|
+
placeholder?: string;
|
|
399
|
+
filter?: string;
|
|
400
|
+
loading?: boolean;
|
|
401
|
+
disabled?: boolean;
|
|
402
|
+
clearable?: boolean;
|
|
403
|
+
disclosure?: Disclosure;
|
|
404
|
+
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
405
|
+
color?: InputColor;
|
|
406
|
+
variant?: InputVariant;
|
|
407
|
+
size?: InputSize;
|
|
408
|
+
startContent?: React.ReactNode;
|
|
409
|
+
endContent?: React.ReactNode;
|
|
410
|
+
onItemSelect?: (item: TAutocompleteItem) => void;
|
|
411
|
+
onFilterChange?: (value: string) => void;
|
|
412
|
+
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
|
+
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
|
+
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
415
415
|
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$p<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$p<TAutocompleteItem, TAutocompleteKeyField>;
|
|
416
416
|
|
|
417
417
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends keyof TAutocompleteItem = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
418
418
|
|
|
419
|
-
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
419
|
+
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
420
420
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
421
421
|
|
|
422
|
-
interface Props$o {
|
|
423
|
-
isOpen: boolean;
|
|
424
|
-
closable?: boolean;
|
|
425
|
-
placement?: BackdropPlacement;
|
|
426
|
-
variant?: BackdropVariant;
|
|
427
|
-
scrollable?: boolean;
|
|
428
|
-
scrollArea?: boolean;
|
|
429
|
-
onClose(): void;
|
|
430
|
-
}
|
|
431
|
-
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
432
|
-
type BackdropProps = Props$o & NativeAttrs$o;
|
|
422
|
+
interface Props$o {
|
|
423
|
+
isOpen: boolean;
|
|
424
|
+
closable?: boolean;
|
|
425
|
+
placement?: BackdropPlacement;
|
|
426
|
+
variant?: BackdropVariant;
|
|
427
|
+
scrollable?: boolean;
|
|
428
|
+
scrollArea?: boolean;
|
|
429
|
+
onClose(): void;
|
|
430
|
+
}
|
|
431
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
432
|
+
type BackdropProps = Props$o & NativeAttrs$o;
|
|
433
433
|
declare const Backdrop: react.ForwardRefExoticComponent<Props$o & NativeAttrs$o & react.RefAttributes<HTMLDivElement>>;
|
|
434
434
|
|
|
435
|
-
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
435
|
+
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
436
436
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
437
437
|
|
|
438
|
-
interface Props$n {
|
|
439
|
-
/**
|
|
440
|
-
* The placement of the badge relative to its content.
|
|
441
|
-
*/
|
|
442
|
-
/**
|
|
443
|
-
* The color of the chip.
|
|
444
|
-
*/
|
|
445
|
-
color?: BadgeColor;
|
|
446
|
-
placement?: BadgePlacement;
|
|
447
|
-
/**
|
|
448
|
-
* The content to display within the badge.
|
|
449
|
-
*/
|
|
450
|
-
content?: React.ReactNode;
|
|
451
|
-
unstyled?: boolean;
|
|
452
|
-
slotProps?: {
|
|
453
|
-
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
457
|
-
type BadgeProps = Props$n & NativeAttrs$n;
|
|
438
|
+
interface Props$n {
|
|
439
|
+
/**
|
|
440
|
+
* The placement of the badge relative to its content.
|
|
441
|
+
*/
|
|
442
|
+
/**
|
|
443
|
+
* The color of the chip.
|
|
444
|
+
*/
|
|
445
|
+
color?: BadgeColor;
|
|
446
|
+
placement?: BadgePlacement;
|
|
447
|
+
/**
|
|
448
|
+
* The content to display within the badge.
|
|
449
|
+
*/
|
|
450
|
+
content?: React.ReactNode;
|
|
451
|
+
unstyled?: boolean;
|
|
452
|
+
slotProps?: {
|
|
453
|
+
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
457
|
+
type BadgeProps = Props$n & NativeAttrs$n;
|
|
458
458
|
declare const Badge: React.FC<BadgeProps>;
|
|
459
459
|
|
|
460
|
-
type DataListItem = Record<string, any>;
|
|
461
|
-
type DataListKeyField<TDataListItem> = keyof TDataListItem;
|
|
462
|
-
interface DataListSingleProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> {
|
|
463
|
-
isMultiple?: false;
|
|
464
|
-
value: TDataListItem[TDataListKeyField] | null;
|
|
465
|
-
onChange?: (value: TDataListItem | null) => void;
|
|
466
|
-
onValueChange?: (value: TDataListItem[TDataListKeyField] | null) => void;
|
|
467
|
-
}
|
|
468
|
-
interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> {
|
|
469
|
-
isMultiple: true;
|
|
470
|
-
value: TDataListItem[TDataListKeyField][];
|
|
471
|
-
onChange?: (value: TDataListItem[]) => void;
|
|
472
|
-
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
|
-
}
|
|
474
|
-
type Props$m<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
|
-
data: TDataListItem[];
|
|
476
|
-
keyField?: TDataListKeyField;
|
|
477
|
-
textField?: keyof DataListItem;
|
|
478
|
-
loading?: boolean;
|
|
479
|
-
mounted?: boolean;
|
|
480
|
-
virtual?: Omit<VirtualizerOptions$1, 'parentRef'>;
|
|
481
|
-
virtualizer?: Virtualizer$1;
|
|
482
|
-
refs?: {
|
|
483
|
-
parent?: React.MutableRefObject<HTMLElement | null>;
|
|
484
|
-
};
|
|
485
|
-
onItemSelect?: (item: TDataListItem) => void;
|
|
486
|
-
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
|
-
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
|
-
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
-
type NativeAttrs$m<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m<TDataListItem, TDataListKeyField>>;
|
|
460
|
+
type DataListItem = Record<string, any>;
|
|
461
|
+
type DataListKeyField<TDataListItem> = keyof TDataListItem;
|
|
462
|
+
interface DataListSingleProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> {
|
|
463
|
+
isMultiple?: false;
|
|
464
|
+
value: TDataListItem[TDataListKeyField] | null;
|
|
465
|
+
onChange?: (value: TDataListItem | null) => void;
|
|
466
|
+
onValueChange?: (value: TDataListItem[TDataListKeyField] | null) => void;
|
|
467
|
+
}
|
|
468
|
+
interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> {
|
|
469
|
+
isMultiple: true;
|
|
470
|
+
value: TDataListItem[TDataListKeyField][];
|
|
471
|
+
onChange?: (value: TDataListItem[]) => void;
|
|
472
|
+
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
|
+
}
|
|
474
|
+
type Props$m<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
|
+
data: TDataListItem[];
|
|
476
|
+
keyField?: TDataListKeyField;
|
|
477
|
+
textField?: keyof DataListItem;
|
|
478
|
+
loading?: boolean;
|
|
479
|
+
mounted?: boolean;
|
|
480
|
+
virtual?: Omit<VirtualizerOptions$1, 'parentRef'>;
|
|
481
|
+
virtualizer?: Virtualizer$1;
|
|
482
|
+
refs?: {
|
|
483
|
+
parent?: React.MutableRefObject<HTMLElement | null>;
|
|
484
|
+
};
|
|
485
|
+
onItemSelect?: (item: TDataListItem) => void;
|
|
486
|
+
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
|
+
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
|
+
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
+
type NativeAttrs$m<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m<TDataListItem, TDataListKeyField>>;
|
|
490
490
|
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$m<TDataListItem, TDataListKeyField> & NativeAttrs$m<TDataListItem, TDataListKeyField>;
|
|
491
491
|
|
|
492
492
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends keyof TDataListItem = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
493
493
|
|
|
494
|
-
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
495
|
-
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
496
|
-
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
494
|
+
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
495
|
+
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
496
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
497
497
|
type ButtonGroupDirection = 'row' | 'col';
|
|
498
498
|
|
|
499
|
-
interface Props$l {
|
|
500
|
-
/**
|
|
501
|
-
* The HTML element type or React component to render as the button.
|
|
502
|
-
*/
|
|
503
|
-
as?: React.ElementType;
|
|
504
|
-
/**
|
|
505
|
-
* The variant style of the button.
|
|
506
|
-
*/
|
|
507
|
-
variant?: ButtonVariant;
|
|
508
|
-
/**
|
|
509
|
-
* The color of the button.
|
|
510
|
-
*/
|
|
511
|
-
color?: ButtonColor;
|
|
512
|
-
/**
|
|
513
|
-
* The size of the button.
|
|
514
|
-
*/
|
|
515
|
-
size?: ButtonSize;
|
|
516
|
-
/**
|
|
517
|
-
* Content to display as an icon within the button. Typically an icon component.
|
|
518
|
-
*/
|
|
519
|
-
iconOnly?: React.ReactNode;
|
|
520
|
-
/**
|
|
521
|
-
* Content to display at the start of the button, before the button's text.
|
|
522
|
-
*/
|
|
523
|
-
startContent?: React.ReactNode;
|
|
524
|
-
/**
|
|
525
|
-
* Content to display at the end of the button, after the button's text.
|
|
526
|
-
*/
|
|
527
|
-
endContent?: React.ReactNode;
|
|
528
|
-
block?: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* Whether the button is in a loading state.
|
|
531
|
-
*/
|
|
532
|
-
loading?: boolean;
|
|
533
|
-
/**
|
|
534
|
-
* Whether the button is disabled.
|
|
535
|
-
*/
|
|
536
|
-
disabled?: boolean;
|
|
537
|
-
}
|
|
538
|
-
type NativeAttrs$l = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$l>;
|
|
539
|
-
type ButtonProps = Props$l & NativeAttrs$l;
|
|
499
|
+
interface Props$l {
|
|
500
|
+
/**
|
|
501
|
+
* The HTML element type or React component to render as the button.
|
|
502
|
+
*/
|
|
503
|
+
as?: React.ElementType;
|
|
504
|
+
/**
|
|
505
|
+
* The variant style of the button.
|
|
506
|
+
*/
|
|
507
|
+
variant?: ButtonVariant;
|
|
508
|
+
/**
|
|
509
|
+
* The color of the button.
|
|
510
|
+
*/
|
|
511
|
+
color?: ButtonColor;
|
|
512
|
+
/**
|
|
513
|
+
* The size of the button.
|
|
514
|
+
*/
|
|
515
|
+
size?: ButtonSize;
|
|
516
|
+
/**
|
|
517
|
+
* Content to display as an icon within the button. Typically an icon component.
|
|
518
|
+
*/
|
|
519
|
+
iconOnly?: React.ReactNode;
|
|
520
|
+
/**
|
|
521
|
+
* Content to display at the start of the button, before the button's text.
|
|
522
|
+
*/
|
|
523
|
+
startContent?: React.ReactNode;
|
|
524
|
+
/**
|
|
525
|
+
* Content to display at the end of the button, after the button's text.
|
|
526
|
+
*/
|
|
527
|
+
endContent?: React.ReactNode;
|
|
528
|
+
block?: boolean;
|
|
529
|
+
/**
|
|
530
|
+
* Whether the button is in a loading state.
|
|
531
|
+
*/
|
|
532
|
+
loading?: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* Whether the button is disabled.
|
|
535
|
+
*/
|
|
536
|
+
disabled?: boolean;
|
|
537
|
+
}
|
|
538
|
+
type NativeAttrs$l = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$l>;
|
|
539
|
+
type ButtonProps = Props$l & NativeAttrs$l;
|
|
540
540
|
declare const Button: react.ForwardRefExoticComponent<Props$l & NativeAttrs$l & react.RefAttributes<HTMLButtonElement>>;
|
|
541
541
|
|
|
542
|
-
interface Props$k {
|
|
543
|
-
direction?: ButtonGroupDirection;
|
|
544
|
-
variant?: ButtonVariant;
|
|
545
|
-
color?: ButtonColor;
|
|
546
|
-
size?: ButtonSize;
|
|
547
|
-
disabled?: boolean;
|
|
548
|
-
}
|
|
549
|
-
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
550
|
-
type ButtonGroupProps = Props$k & NativeAttrs$k;
|
|
542
|
+
interface Props$k {
|
|
543
|
+
direction?: ButtonGroupDirection;
|
|
544
|
+
variant?: ButtonVariant;
|
|
545
|
+
color?: ButtonColor;
|
|
546
|
+
size?: ButtonSize;
|
|
547
|
+
disabled?: boolean;
|
|
548
|
+
}
|
|
549
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
550
|
+
type ButtonGroupProps = Props$k & NativeAttrs$k;
|
|
551
551
|
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$k & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
552
552
|
|
|
553
|
-
interface ButtonGroupContextValue {
|
|
554
|
-
direction: ButtonGroupDirection;
|
|
555
|
-
variant: ButtonVariant;
|
|
556
|
-
color: ButtonColor;
|
|
557
|
-
size: ButtonSize;
|
|
558
|
-
disabled?: boolean;
|
|
559
|
-
}
|
|
560
|
-
declare const ButtonGroupContext: react.Context<ButtonGroupContextValue | null>;
|
|
553
|
+
interface ButtonGroupContextValue {
|
|
554
|
+
direction: ButtonGroupDirection;
|
|
555
|
+
variant: ButtonVariant;
|
|
556
|
+
color: ButtonColor;
|
|
557
|
+
size: ButtonSize;
|
|
558
|
+
disabled?: boolean;
|
|
559
|
+
}
|
|
560
|
+
declare const ButtonGroupContext: react.Context<ButtonGroupContextValue | null>;
|
|
561
561
|
declare const useButtonGroup: () => ButtonGroupContextValue | null;
|
|
562
562
|
|
|
563
|
-
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
564
|
-
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
565
|
-
type TransitionDuration = 0 | 100 | 200 | 300;
|
|
566
|
-
type TransitionProperty = 'none' | 'all' | 'shadow';
|
|
567
|
-
type BoxState = 'base' | 'hover' | 'active';
|
|
568
|
-
type BoxProperties = {
|
|
569
|
-
shadow?: BoxShadow;
|
|
570
|
-
rounded?: BorderRadius;
|
|
571
|
-
transitionProperty?: TransitionProperty;
|
|
572
|
-
transitionDuration?: TransitionDuration;
|
|
573
|
-
};
|
|
574
|
-
type BoxApplyState<T> = T | {
|
|
575
|
-
[K in BoxState]?: T;
|
|
576
|
-
};
|
|
577
|
-
type BoxCSS = {
|
|
578
|
-
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
563
|
+
type BoxShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
564
|
+
type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
565
|
+
type TransitionDuration = 0 | 100 | 200 | 300;
|
|
566
|
+
type TransitionProperty = 'none' | 'all' | 'shadow';
|
|
567
|
+
type BoxState = 'base' | 'hover' | 'active';
|
|
568
|
+
type BoxProperties = {
|
|
569
|
+
shadow?: BoxShadow;
|
|
570
|
+
rounded?: BorderRadius;
|
|
571
|
+
transitionProperty?: TransitionProperty;
|
|
572
|
+
transitionDuration?: TransitionDuration;
|
|
573
|
+
};
|
|
574
|
+
type BoxApplyState<T> = T | {
|
|
575
|
+
[K in BoxState]?: T;
|
|
576
|
+
};
|
|
577
|
+
type BoxCSS = {
|
|
578
|
+
[K in keyof BoxProperties]: BoxApplyState<BoxProperties[K]>;
|
|
579
579
|
};
|
|
580
580
|
|
|
581
581
|
type CardSize = 'sm' | 'md' | 'lg';
|
|
582
582
|
|
|
583
|
-
interface Props$j {
|
|
584
|
-
as?: React.ElementType;
|
|
585
|
-
size?: CardSize;
|
|
586
|
-
hoverable?: boolean;
|
|
587
|
-
selected?: boolean;
|
|
588
|
-
disabled?: boolean;
|
|
589
|
-
bordered?: boolean;
|
|
590
|
-
css?: BoxCSS;
|
|
591
|
-
}
|
|
592
|
-
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
593
|
-
type CardProps = Props$j & NativeAttrs$j;
|
|
583
|
+
interface Props$j {
|
|
584
|
+
as?: React.ElementType;
|
|
585
|
+
size?: CardSize;
|
|
586
|
+
hoverable?: boolean;
|
|
587
|
+
selected?: boolean;
|
|
588
|
+
disabled?: boolean;
|
|
589
|
+
bordered?: boolean;
|
|
590
|
+
css?: BoxCSS;
|
|
591
|
+
}
|
|
592
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
593
|
+
type CardProps = Props$j & NativeAttrs$j;
|
|
594
594
|
declare const Card: react.ForwardRefExoticComponent<Props$j & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
595
595
|
|
|
596
|
-
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
596
|
+
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
597
597
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
598
598
|
|
|
599
|
-
interface Props$i {
|
|
600
|
-
as?: React.ElementType;
|
|
601
|
-
title?: React.ReactNode;
|
|
602
|
-
subtitle?: React.ReactNode;
|
|
603
|
-
startContent?: React.ReactNode;
|
|
604
|
-
endContent?: React.ReactNode;
|
|
605
|
-
bordered?: boolean;
|
|
606
|
-
slotProps?: {
|
|
607
|
-
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
608
|
-
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
609
|
-
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
610
|
-
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
611
|
-
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
612
|
-
};
|
|
613
|
-
}
|
|
614
|
-
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
615
|
-
type CardHeaderProps = Props$i & NativeAttrs$i;
|
|
599
|
+
interface Props$i {
|
|
600
|
+
as?: React.ElementType;
|
|
601
|
+
title?: React.ReactNode;
|
|
602
|
+
subtitle?: React.ReactNode;
|
|
603
|
+
startContent?: React.ReactNode;
|
|
604
|
+
endContent?: React.ReactNode;
|
|
605
|
+
bordered?: boolean;
|
|
606
|
+
slotProps?: {
|
|
607
|
+
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
608
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
609
|
+
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
610
|
+
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
611
|
+
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
615
|
+
type CardHeaderProps = Props$i & NativeAttrs$i;
|
|
616
616
|
declare const CardHeader: react.ForwardRefExoticComponent<Props$i & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
617
617
|
|
|
618
|
-
interface Props$h {
|
|
619
|
-
as?: React.ElementType;
|
|
620
|
-
bordered?: boolean;
|
|
621
|
-
}
|
|
622
|
-
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
623
|
-
type CardFooterProps = Props$h & NativeAttrs$h;
|
|
618
|
+
interface Props$h {
|
|
619
|
+
as?: React.ElementType;
|
|
620
|
+
bordered?: boolean;
|
|
621
|
+
}
|
|
622
|
+
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
623
|
+
type CardFooterProps = Props$h & NativeAttrs$h;
|
|
624
624
|
declare const CardFooter: react.ForwardRefExoticComponent<Props$h & NativeAttrs$h & react.RefAttributes<HTMLDivElement>>;
|
|
625
625
|
|
|
626
|
-
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
627
|
-
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
626
|
+
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
627
|
+
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
628
628
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
629
629
|
|
|
630
|
-
interface Props$g {
|
|
631
|
-
/**
|
|
632
|
-
* The HTML element type or React component to render as the chip.
|
|
633
|
-
*/
|
|
634
|
-
as?: React.ElementType;
|
|
635
|
-
/**
|
|
636
|
-
* The variant style of the chip.
|
|
637
|
-
*/
|
|
638
|
-
variant?: ChipVariant;
|
|
639
|
-
/**
|
|
640
|
-
* The color of the chip.
|
|
641
|
-
*/
|
|
642
|
-
color?: ChipColor;
|
|
643
|
-
/**
|
|
644
|
-
* The size of the chip.
|
|
645
|
-
*/
|
|
646
|
-
size?: ChipSize;
|
|
647
|
-
/**
|
|
648
|
-
* Content to display at the start of the chip, before the chip's text.
|
|
649
|
-
*/
|
|
650
|
-
startContent?: React.ReactNode;
|
|
651
|
-
/**
|
|
652
|
-
* Content to display at the end of the chip, after the chip's text.
|
|
653
|
-
*/
|
|
654
|
-
endContent?: React.ReactNode;
|
|
655
|
-
/**
|
|
656
|
-
* Whether the chip is disabled.
|
|
657
|
-
*/
|
|
658
|
-
disabled?: boolean;
|
|
659
|
-
closable?: boolean;
|
|
660
|
-
onClose?: () => void;
|
|
661
|
-
}
|
|
662
|
-
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
663
|
-
type ChipProps = Props$g & NativeAttrs$g;
|
|
630
|
+
interface Props$g {
|
|
631
|
+
/**
|
|
632
|
+
* The HTML element type or React component to render as the chip.
|
|
633
|
+
*/
|
|
634
|
+
as?: React.ElementType;
|
|
635
|
+
/**
|
|
636
|
+
* The variant style of the chip.
|
|
637
|
+
*/
|
|
638
|
+
variant?: ChipVariant;
|
|
639
|
+
/**
|
|
640
|
+
* The color of the chip.
|
|
641
|
+
*/
|
|
642
|
+
color?: ChipColor;
|
|
643
|
+
/**
|
|
644
|
+
* The size of the chip.
|
|
645
|
+
*/
|
|
646
|
+
size?: ChipSize;
|
|
647
|
+
/**
|
|
648
|
+
* Content to display at the start of the chip, before the chip's text.
|
|
649
|
+
*/
|
|
650
|
+
startContent?: React.ReactNode;
|
|
651
|
+
/**
|
|
652
|
+
* Content to display at the end of the chip, after the chip's text.
|
|
653
|
+
*/
|
|
654
|
+
endContent?: React.ReactNode;
|
|
655
|
+
/**
|
|
656
|
+
* Whether the chip is disabled.
|
|
657
|
+
*/
|
|
658
|
+
disabled?: boolean;
|
|
659
|
+
closable?: boolean;
|
|
660
|
+
onClose?: () => void;
|
|
661
|
+
}
|
|
662
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g>;
|
|
663
|
+
type ChipProps = Props$g & NativeAttrs$g;
|
|
664
664
|
declare const Chip: react.ForwardRefExoticComponent<Props$g & NativeAttrs$g & react.RefAttributes<HTMLDivElement>>;
|
|
665
665
|
|
|
666
|
-
interface CollapseProps {
|
|
667
|
-
children: React.ReactNode;
|
|
668
|
-
isOpen?: boolean;
|
|
669
|
-
onOpen?: () => void;
|
|
670
|
-
onClose?: () => void;
|
|
671
|
-
onToggle?: () => void;
|
|
672
|
-
}
|
|
666
|
+
interface CollapseProps {
|
|
667
|
+
children: React.ReactNode;
|
|
668
|
+
isOpen?: boolean;
|
|
669
|
+
onOpen?: () => void;
|
|
670
|
+
onClose?: () => void;
|
|
671
|
+
onToggle?: () => void;
|
|
672
|
+
}
|
|
673
673
|
declare const Collapse: React.FC<CollapseProps>;
|
|
674
674
|
|
|
675
|
-
interface CollapseContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
676
|
-
children: React.ReactNode;
|
|
677
|
-
}
|
|
675
|
+
interface CollapseContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
676
|
+
children: React.ReactNode;
|
|
677
|
+
}
|
|
678
678
|
declare const CollapseContent: React.FC<CollapseContentProps>;
|
|
679
679
|
|
|
680
|
-
interface CollapseContextValue {
|
|
681
|
-
collapseRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
682
|
-
isOpen: boolean;
|
|
683
|
-
heightAuto: boolean;
|
|
684
|
-
onOpen: () => void;
|
|
685
|
-
onClose: () => void;
|
|
686
|
-
onToggle: () => void;
|
|
687
|
-
}
|
|
688
|
-
declare const CollapseContext: react.Context<CollapseContextValue | null>;
|
|
680
|
+
interface CollapseContextValue {
|
|
681
|
+
collapseRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
682
|
+
isOpen: boolean;
|
|
683
|
+
heightAuto: boolean;
|
|
684
|
+
onOpen: () => void;
|
|
685
|
+
onClose: () => void;
|
|
686
|
+
onToggle: () => void;
|
|
687
|
+
}
|
|
688
|
+
declare const CollapseContext: react.Context<CollapseContextValue | null>;
|
|
689
689
|
declare const useCollapse: () => CollapseContextValue;
|
|
690
690
|
|
|
691
|
-
interface CollapseTriggerProps {
|
|
692
|
-
children: react__default.ReactNode;
|
|
693
|
-
}
|
|
691
|
+
interface CollapseTriggerProps {
|
|
692
|
+
children: react__default.ReactNode;
|
|
693
|
+
}
|
|
694
694
|
declare const CollapseTrigger: react__default.ForwardRefExoticComponent<CollapseTriggerProps & react__default.RefAttributes<unknown>>;
|
|
695
695
|
|
|
696
|
-
type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
697
|
-
/**
|
|
698
|
-
* @deprecated Use `DrawerPlacement` instead
|
|
699
|
-
*/
|
|
700
|
-
type DrawerPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
701
|
-
type DrawerPlacement = 'top' | 'left' | 'right' | 'bottom';
|
|
702
|
-
interface DrawerClose {
|
|
703
|
-
isVisible?: boolean;
|
|
704
|
-
position?: 'start' | 'end';
|
|
705
|
-
}
|
|
696
|
+
type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
697
|
+
/**
|
|
698
|
+
* @deprecated Use `DrawerPlacement` instead
|
|
699
|
+
*/
|
|
700
|
+
type DrawerPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
701
|
+
type DrawerPlacement = 'top' | 'left' | 'right' | 'bottom';
|
|
702
|
+
interface DrawerClose {
|
|
703
|
+
isVisible?: boolean;
|
|
704
|
+
position?: 'start' | 'end';
|
|
705
|
+
}
|
|
706
706
|
type DrawerBackdrop = BackdropVariant;
|
|
707
707
|
|
|
708
|
-
interface Props$f {
|
|
709
|
-
isOpen: boolean;
|
|
710
|
-
size?: DrawerSize;
|
|
711
|
-
backdrop?: DrawerBackdrop;
|
|
712
|
-
/**
|
|
713
|
-
* @deprecated Use `placement` instead
|
|
714
|
-
*/
|
|
715
|
-
position?: DrawerPosition;
|
|
716
|
-
placement?: DrawerPlacement;
|
|
717
|
-
closable?: boolean;
|
|
718
|
-
onClose: () => void;
|
|
719
|
-
onAfterClose?: () => void;
|
|
720
|
-
}
|
|
721
|
-
type NativeAttrs$f = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$f>;
|
|
722
|
-
type DrawerProps = Props$f & NativeAttrs$f;
|
|
708
|
+
interface Props$f {
|
|
709
|
+
isOpen: boolean;
|
|
710
|
+
size?: DrawerSize;
|
|
711
|
+
backdrop?: DrawerBackdrop;
|
|
712
|
+
/**
|
|
713
|
+
* @deprecated Use `placement` instead
|
|
714
|
+
*/
|
|
715
|
+
position?: DrawerPosition;
|
|
716
|
+
placement?: DrawerPlacement;
|
|
717
|
+
closable?: boolean;
|
|
718
|
+
onClose: () => void;
|
|
719
|
+
onAfterClose?: () => void;
|
|
720
|
+
}
|
|
721
|
+
type NativeAttrs$f = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$f>;
|
|
722
|
+
type DrawerProps = Props$f & NativeAttrs$f;
|
|
723
723
|
declare const Drawer: react.ForwardRefExoticComponent<Props$f & NativeAttrs$f & react.RefAttributes<HTMLDivElement>>;
|
|
724
724
|
|
|
725
|
-
interface Props$e {
|
|
726
|
-
as?: React.ElementType;
|
|
727
|
-
title?: React.ReactNode;
|
|
728
|
-
subtitle?: React.ReactNode;
|
|
729
|
-
startContent?: React.ReactNode;
|
|
730
|
-
endContent?: React.ReactNode;
|
|
731
|
-
bordered?: boolean;
|
|
732
|
-
close?: DrawerClose;
|
|
733
|
-
slotProps?: {
|
|
734
|
-
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
735
|
-
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
736
|
-
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
737
|
-
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
738
|
-
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
742
|
-
type DrawerHeaderProps = Props$e & NativeAttrs$e;
|
|
725
|
+
interface Props$e {
|
|
726
|
+
as?: React.ElementType;
|
|
727
|
+
title?: React.ReactNode;
|
|
728
|
+
subtitle?: React.ReactNode;
|
|
729
|
+
startContent?: React.ReactNode;
|
|
730
|
+
endContent?: React.ReactNode;
|
|
731
|
+
bordered?: boolean;
|
|
732
|
+
close?: DrawerClose;
|
|
733
|
+
slotProps?: {
|
|
734
|
+
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
735
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
736
|
+
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
737
|
+
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
738
|
+
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
type NativeAttrs$e = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
742
|
+
type DrawerHeaderProps = Props$e & NativeAttrs$e;
|
|
743
743
|
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$e & NativeAttrs$e & react.RefAttributes<HTMLDivElement>>;
|
|
744
744
|
|
|
745
|
-
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
745
|
+
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
746
746
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
747
747
|
|
|
748
|
-
interface Props$d {
|
|
749
|
-
as?: React.ElementType;
|
|
750
|
-
bordered?: boolean;
|
|
751
|
-
}
|
|
752
|
-
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
753
|
-
type DrawerFooterProps = Props$d & NativeAttrs$d;
|
|
748
|
+
interface Props$d {
|
|
749
|
+
as?: React.ElementType;
|
|
750
|
+
bordered?: boolean;
|
|
751
|
+
}
|
|
752
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
753
|
+
type DrawerFooterProps = Props$d & NativeAttrs$d;
|
|
754
754
|
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$d & NativeAttrs$d & react.RefAttributes<HTMLDivElement>>;
|
|
755
755
|
|
|
756
|
-
interface DrawerContextValue {
|
|
757
|
-
isOpen: boolean;
|
|
758
|
-
onClose: () => void;
|
|
759
|
-
}
|
|
760
|
-
declare const DrawerContext: react.Context<DrawerContextValue | null>;
|
|
756
|
+
interface DrawerContextValue {
|
|
757
|
+
isOpen: boolean;
|
|
758
|
+
onClose: () => void;
|
|
759
|
+
}
|
|
760
|
+
declare const DrawerContext: react.Context<DrawerContextValue | null>;
|
|
761
761
|
declare const useDrawer: () => DrawerContextValue;
|
|
762
762
|
|
|
763
|
-
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
764
|
-
label: string;
|
|
765
|
-
}
|
|
763
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
764
|
+
label: string;
|
|
765
|
+
}
|
|
766
766
|
declare const Field: react.ForwardRefExoticComponent<FieldProps & react.RefAttributes<HTMLDivElement>>;
|
|
767
767
|
|
|
768
|
-
type IconColor = 'inherit' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
768
|
+
type IconColor = 'inherit' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
769
769
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
770
770
|
|
|
771
|
-
interface IconProps {
|
|
772
|
-
children: React.ReactNode;
|
|
773
|
-
color?: IconColor;
|
|
774
|
-
size?: IconSize;
|
|
775
|
-
}
|
|
771
|
+
interface IconProps {
|
|
772
|
+
children: React.ReactNode;
|
|
773
|
+
color?: IconColor;
|
|
774
|
+
size?: IconSize;
|
|
775
|
+
}
|
|
776
776
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
777
777
|
|
|
778
|
-
interface Props$c {
|
|
779
|
-
/**
|
|
780
|
-
* The HTML element type or React component to render as the menu item.
|
|
781
|
-
*/
|
|
782
|
-
as?: React.ElementType;
|
|
783
|
-
/**
|
|
784
|
-
* The value associated with the menu item.
|
|
785
|
-
*/
|
|
786
|
-
value?: any;
|
|
787
|
-
/**
|
|
788
|
-
* The title to display for the menu item.
|
|
789
|
-
*/
|
|
790
|
-
title: string;
|
|
791
|
-
/**
|
|
792
|
-
* Optional icon to display with the menu item.
|
|
793
|
-
*/
|
|
794
|
-
icon?: React.ReactNode;
|
|
795
|
-
/**
|
|
796
|
-
* The nesting level of the menu item, for hierarchical menus.
|
|
797
|
-
*/
|
|
798
|
-
level?: number;
|
|
799
|
-
/**
|
|
800
|
-
* Whether the item is disabled.
|
|
801
|
-
*/
|
|
802
|
-
disabled?: boolean;
|
|
803
|
-
}
|
|
804
|
-
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c | 'items'>;
|
|
805
|
-
type MenuItemProps = Props$c & NativeAttrs$c;
|
|
778
|
+
interface Props$c {
|
|
779
|
+
/**
|
|
780
|
+
* The HTML element type or React component to render as the menu item.
|
|
781
|
+
*/
|
|
782
|
+
as?: React.ElementType;
|
|
783
|
+
/**
|
|
784
|
+
* The value associated with the menu item.
|
|
785
|
+
*/
|
|
786
|
+
value?: any;
|
|
787
|
+
/**
|
|
788
|
+
* The title to display for the menu item.
|
|
789
|
+
*/
|
|
790
|
+
title: string;
|
|
791
|
+
/**
|
|
792
|
+
* Optional icon to display with the menu item.
|
|
793
|
+
*/
|
|
794
|
+
icon?: React.ReactNode;
|
|
795
|
+
/**
|
|
796
|
+
* The nesting level of the menu item, for hierarchical menus.
|
|
797
|
+
*/
|
|
798
|
+
level?: number;
|
|
799
|
+
/**
|
|
800
|
+
* Whether the item is disabled.
|
|
801
|
+
*/
|
|
802
|
+
disabled?: boolean;
|
|
803
|
+
}
|
|
804
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c | 'items'>;
|
|
805
|
+
type MenuItemProps = Props$c & NativeAttrs$c;
|
|
806
806
|
declare const MenuItem: react.ForwardRefExoticComponent<Props$c & NativeAttrs$c & react.RefAttributes<HTMLDivElement>>;
|
|
807
807
|
|
|
808
|
-
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
809
|
-
items?: MenuItemType[];
|
|
810
|
-
};
|
|
808
|
+
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
809
|
+
items?: MenuItemType[];
|
|
810
|
+
};
|
|
811
811
|
declare const MenuSubmenu: React.FC<MenuSubmenuProps>;
|
|
812
812
|
|
|
813
|
-
type MenuGroupItemType = (MenuItemProps & {
|
|
814
|
-
type?: 'item';
|
|
815
|
-
}) | (MenuSubmenuProps & {
|
|
816
|
-
type?: 'submenu';
|
|
817
|
-
});
|
|
818
|
-
type MenuGroupProps = Omit<MenuItemProps, 'items'> & {
|
|
819
|
-
items?: MenuGroupItemType[];
|
|
820
|
-
};
|
|
813
|
+
type MenuGroupItemType = (MenuItemProps & {
|
|
814
|
+
type?: 'item';
|
|
815
|
+
}) | (MenuSubmenuProps & {
|
|
816
|
+
type?: 'submenu';
|
|
817
|
+
});
|
|
818
|
+
type MenuGroupProps = Omit<MenuItemProps, 'items'> & {
|
|
819
|
+
items?: MenuGroupItemType[];
|
|
820
|
+
};
|
|
821
821
|
declare const MenuGroup: React.FC<MenuGroupProps>;
|
|
822
822
|
|
|
823
|
-
type MenuItemType = (MenuGroupProps & {
|
|
824
|
-
type?: 'group';
|
|
825
|
-
}) | (MenuSubmenuProps & {
|
|
826
|
-
type?: 'submenu';
|
|
827
|
-
}) | (MenuItemProps & {
|
|
828
|
-
type?: 'item';
|
|
829
|
-
});
|
|
830
|
-
interface Props$b {
|
|
831
|
-
/**
|
|
832
|
-
* The currently selected value of the menu.
|
|
833
|
-
*/
|
|
834
|
-
value?: any[];
|
|
835
|
-
/**
|
|
836
|
-
* The default value of the menu when initially rendered.
|
|
837
|
-
*/
|
|
838
|
-
defaultValue?: any[];
|
|
839
|
-
/**
|
|
840
|
-
* An array of values that represent open submenus in the menu.
|
|
841
|
-
*/
|
|
842
|
-
openValues?: any[];
|
|
843
|
-
/**
|
|
844
|
-
* The expand mode of the menu, which can be 'single' or 'multiple'.
|
|
845
|
-
*/
|
|
846
|
-
expandMode?: 'single' | 'multiple';
|
|
847
|
-
/**
|
|
848
|
-
* The nav mode of the menu, which can be 'manual' or 'automatic'.
|
|
849
|
-
* Search for the last level of the menu and validate if the value matches.
|
|
850
|
-
*/
|
|
851
|
-
navMode?: 'manual' | 'automatic';
|
|
852
|
-
/**
|
|
853
|
-
* A callback function called when the selected values of the menu change.
|
|
854
|
-
*/
|
|
855
|
-
onChange?: (value: any[]) => void;
|
|
856
|
-
/**
|
|
857
|
-
* A callback function called when submenus are opened.
|
|
858
|
-
*/
|
|
859
|
-
onOpen?: (values: any[]) => void;
|
|
860
|
-
/**
|
|
861
|
-
* A callback function called when a menu item is selected.
|
|
862
|
-
* @param {MenuItemProps} props - The properties of the selected menu item.
|
|
863
|
-
*/
|
|
864
|
-
onItemSelect?: (props: MenuItemProps) => void;
|
|
865
|
-
}
|
|
866
|
-
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b | 'items'>;
|
|
867
|
-
type MenuProps = Props$b & NativeAttrs$b & {
|
|
868
|
-
items?: MenuItemType[];
|
|
869
|
-
};
|
|
823
|
+
type MenuItemType = (MenuGroupProps & {
|
|
824
|
+
type?: 'group';
|
|
825
|
+
}) | (MenuSubmenuProps & {
|
|
826
|
+
type?: 'submenu';
|
|
827
|
+
}) | (MenuItemProps & {
|
|
828
|
+
type?: 'item';
|
|
829
|
+
});
|
|
830
|
+
interface Props$b {
|
|
831
|
+
/**
|
|
832
|
+
* The currently selected value of the menu.
|
|
833
|
+
*/
|
|
834
|
+
value?: any[];
|
|
835
|
+
/**
|
|
836
|
+
* The default value of the menu when initially rendered.
|
|
837
|
+
*/
|
|
838
|
+
defaultValue?: any[];
|
|
839
|
+
/**
|
|
840
|
+
* An array of values that represent open submenus in the menu.
|
|
841
|
+
*/
|
|
842
|
+
openValues?: any[];
|
|
843
|
+
/**
|
|
844
|
+
* The expand mode of the menu, which can be 'single' or 'multiple'.
|
|
845
|
+
*/
|
|
846
|
+
expandMode?: 'single' | 'multiple';
|
|
847
|
+
/**
|
|
848
|
+
* The nav mode of the menu, which can be 'manual' or 'automatic'.
|
|
849
|
+
* Search for the last level of the menu and validate if the value matches.
|
|
850
|
+
*/
|
|
851
|
+
navMode?: 'manual' | 'automatic';
|
|
852
|
+
/**
|
|
853
|
+
* A callback function called when the selected values of the menu change.
|
|
854
|
+
*/
|
|
855
|
+
onChange?: (value: any[]) => void;
|
|
856
|
+
/**
|
|
857
|
+
* A callback function called when submenus are opened.
|
|
858
|
+
*/
|
|
859
|
+
onOpen?: (values: any[]) => void;
|
|
860
|
+
/**
|
|
861
|
+
* A callback function called when a menu item is selected.
|
|
862
|
+
* @param {MenuItemProps} props - The properties of the selected menu item.
|
|
863
|
+
*/
|
|
864
|
+
onItemSelect?: (props: MenuItemProps) => void;
|
|
865
|
+
}
|
|
866
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b | 'items'>;
|
|
867
|
+
type MenuProps = Props$b & NativeAttrs$b & {
|
|
868
|
+
items?: MenuItemType[];
|
|
869
|
+
};
|
|
870
870
|
declare const Menu: React.FC<MenuProps>;
|
|
871
871
|
|
|
872
|
-
interface MenuContextValue {
|
|
873
|
-
value: any[];
|
|
874
|
-
originalValue: any[];
|
|
875
|
-
openValues: any[];
|
|
876
|
-
expandMode: 'single' | 'multiple';
|
|
877
|
-
navMode: 'manual' | 'automatic';
|
|
878
|
-
onChange: (value: any[]) => void;
|
|
879
|
-
onOpen: (values: any[]) => void;
|
|
880
|
-
onItemSelect: (props: MenuItemProps) => void;
|
|
881
|
-
}
|
|
882
|
-
declare const MenuContext: react.Context<MenuContextValue | null>;
|
|
872
|
+
interface MenuContextValue {
|
|
873
|
+
value: any[];
|
|
874
|
+
originalValue: any[];
|
|
875
|
+
openValues: any[];
|
|
876
|
+
expandMode: 'single' | 'multiple';
|
|
877
|
+
navMode: 'manual' | 'automatic';
|
|
878
|
+
onChange: (value: any[]) => void;
|
|
879
|
+
onOpen: (values: any[]) => void;
|
|
880
|
+
onItemSelect: (props: MenuItemProps) => void;
|
|
881
|
+
}
|
|
882
|
+
declare const MenuContext: react.Context<MenuContextValue | null>;
|
|
883
883
|
declare const useMenu: () => MenuContextValue;
|
|
884
884
|
|
|
885
|
-
declare const MenuValueContext: react.Context<string[]>;
|
|
885
|
+
declare const MenuValueContext: react.Context<string[]>;
|
|
886
886
|
declare const useMenuItemValue: () => string[];
|
|
887
887
|
|
|
888
888
|
declare const getOpenValuesByPathname: (pathname: string) => string[];
|
|
889
889
|
|
|
890
|
-
interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
891
|
-
target?: boolean;
|
|
892
|
-
autoClose?: boolean | 'inside' | 'outside';
|
|
893
|
-
triggerClosable?: boolean;
|
|
894
|
-
isOpen?: boolean;
|
|
895
|
-
onOpen?(): void;
|
|
896
|
-
onClose?(): void;
|
|
897
|
-
onToggle?(): void;
|
|
898
|
-
onAfterClose?(): void;
|
|
899
|
-
}
|
|
890
|
+
interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
891
|
+
target?: boolean;
|
|
892
|
+
autoClose?: boolean | 'inside' | 'outside';
|
|
893
|
+
triggerClosable?: boolean;
|
|
894
|
+
isOpen?: boolean;
|
|
895
|
+
onOpen?(): void;
|
|
896
|
+
onClose?(): void;
|
|
897
|
+
onToggle?(): void;
|
|
898
|
+
onAfterClose?(): void;
|
|
899
|
+
}
|
|
900
900
|
declare const Popover: React.FC<PopoverProps>;
|
|
901
901
|
|
|
902
|
-
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
903
|
-
sectionValue?: string;
|
|
904
|
-
}
|
|
902
|
+
interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
903
|
+
sectionValue?: string;
|
|
904
|
+
}
|
|
905
905
|
declare const PopoverContent: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
906
906
|
|
|
907
|
-
interface PopoverContextValue {
|
|
908
|
-
triggerRef: React.MutableRefObject<HTMLElement | null>;
|
|
909
|
-
contentRef: React.MutableRefObject<HTMLElement | null>;
|
|
910
|
-
target?: boolean;
|
|
911
|
-
autoClose: boolean | 'inside' | 'outside';
|
|
912
|
-
triggerClosable: boolean;
|
|
913
|
-
isOpen: boolean;
|
|
914
|
-
onOpen(): void;
|
|
915
|
-
onClose(): void;
|
|
916
|
-
onToggle(): void;
|
|
917
|
-
}
|
|
907
|
+
interface PopoverContextValue {
|
|
908
|
+
triggerRef: React.MutableRefObject<HTMLElement | null>;
|
|
909
|
+
contentRef: React.MutableRefObject<HTMLElement | null>;
|
|
910
|
+
target?: boolean;
|
|
911
|
+
autoClose: boolean | 'inside' | 'outside';
|
|
912
|
+
triggerClosable: boolean;
|
|
913
|
+
isOpen: boolean;
|
|
914
|
+
onOpen(): void;
|
|
915
|
+
onClose(): void;
|
|
916
|
+
onToggle(): void;
|
|
917
|
+
}
|
|
918
918
|
declare const usePopover: () => PopoverContextValue;
|
|
919
919
|
|
|
920
|
-
interface PopoverTriggerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
921
|
-
as?: React.ElementType;
|
|
922
|
-
children: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
923
|
-
}
|
|
920
|
+
interface PopoverTriggerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
921
|
+
as?: React.ElementType;
|
|
922
|
+
children: React.ReactNode | ((isActive: boolean) => React.ReactNode);
|
|
923
|
+
}
|
|
924
924
|
declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverTriggerProps & react.RefAttributes<HTMLDivElement>>;
|
|
925
925
|
|
|
926
|
-
interface PortalProps {
|
|
927
|
-
children: React.ReactNode;
|
|
928
|
-
container?: Element;
|
|
929
|
-
}
|
|
926
|
+
interface PortalProps {
|
|
927
|
+
children: React.ReactNode;
|
|
928
|
+
container?: Element;
|
|
929
|
+
}
|
|
930
930
|
declare const Portal: react.ForwardRefExoticComponent<PortalProps & react.RefAttributes<HTMLDivElement>>;
|
|
931
931
|
|
|
932
|
-
interface ScrollAreaProps {
|
|
933
|
-
children: React.ReactNode;
|
|
934
|
-
autoHide?: boolean;
|
|
935
|
-
autoHeight?: boolean;
|
|
936
|
-
style?: React.CSSProperties;
|
|
937
|
-
}
|
|
932
|
+
interface ScrollAreaProps {
|
|
933
|
+
children: React.ReactNode;
|
|
934
|
+
autoHide?: boolean;
|
|
935
|
+
autoHeight?: boolean;
|
|
936
|
+
style?: React.CSSProperties;
|
|
937
|
+
}
|
|
938
938
|
declare const ScrollArea: react.ForwardRefExoticComponent<ScrollAreaProps & react.RefAttributes<HTMLDivElement>>;
|
|
939
939
|
|
|
940
|
-
type SelectItem = Record<string, any>;
|
|
941
|
-
type SelectKeyField<TSelectItem> = keyof TSelectItem;
|
|
942
|
-
interface SelectSingleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
943
|
-
isMultiple?: false;
|
|
944
|
-
value: TSelectItem[TSelectKeyField] | null;
|
|
945
|
-
onChange?: (value: TSelectItem | null) => void;
|
|
946
|
-
onValueChange?: (value: TSelectItem[TSelectKeyField] | null) => void;
|
|
947
|
-
}
|
|
948
|
-
interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
949
|
-
isMultiple: true;
|
|
950
|
-
value: TSelectItem[TSelectKeyField][];
|
|
951
|
-
onChange?: (value: TSelectItem[]) => void;
|
|
952
|
-
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
953
|
-
}
|
|
954
|
-
type NativeAttrs$a<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a<TSelectItem, TSelectKeyField>>;
|
|
955
|
-
type Props$a<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
956
|
-
data: TSelectItem[];
|
|
957
|
-
keyField?: TSelectKeyField;
|
|
958
|
-
textField?: keyof TSelectItem;
|
|
959
|
-
placeholder?: string;
|
|
960
|
-
loading?: boolean;
|
|
961
|
-
clearable?: boolean;
|
|
962
|
-
disabled?: boolean;
|
|
963
|
-
disclosure?: Disclosure;
|
|
964
|
-
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
965
|
-
color?: InputColor;
|
|
966
|
-
variant?: InputVariant;
|
|
967
|
-
size?: InputSize;
|
|
968
|
-
startContent?: React.ReactNode;
|
|
969
|
-
endContent?: React.ReactNode;
|
|
970
|
-
onItemSelect?: (item: TSelectItem) => void;
|
|
971
|
-
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
972
|
-
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
973
|
-
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
940
|
+
type SelectItem = Record<string, any>;
|
|
941
|
+
type SelectKeyField<TSelectItem> = keyof TSelectItem;
|
|
942
|
+
interface SelectSingleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
943
|
+
isMultiple?: false;
|
|
944
|
+
value: TSelectItem[TSelectKeyField] | null;
|
|
945
|
+
onChange?: (value: TSelectItem | null) => void;
|
|
946
|
+
onValueChange?: (value: TSelectItem[TSelectKeyField] | null) => void;
|
|
947
|
+
}
|
|
948
|
+
interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> {
|
|
949
|
+
isMultiple: true;
|
|
950
|
+
value: TSelectItem[TSelectKeyField][];
|
|
951
|
+
onChange?: (value: TSelectItem[]) => void;
|
|
952
|
+
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
953
|
+
}
|
|
954
|
+
type NativeAttrs$a<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a<TSelectItem, TSelectKeyField>>;
|
|
955
|
+
type Props$a<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
956
|
+
data: TSelectItem[];
|
|
957
|
+
keyField?: TSelectKeyField;
|
|
958
|
+
textField?: keyof TSelectItem;
|
|
959
|
+
placeholder?: string;
|
|
960
|
+
loading?: boolean;
|
|
961
|
+
clearable?: boolean;
|
|
962
|
+
disabled?: boolean;
|
|
963
|
+
disclosure?: Disclosure;
|
|
964
|
+
virtual?: Omit<VirtualizerOptions, 'parentRef'>;
|
|
965
|
+
color?: InputColor;
|
|
966
|
+
variant?: InputVariant;
|
|
967
|
+
size?: InputSize;
|
|
968
|
+
startContent?: React.ReactNode;
|
|
969
|
+
endContent?: React.ReactNode;
|
|
970
|
+
onItemSelect?: (item: TSelectItem) => void;
|
|
971
|
+
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
972
|
+
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
973
|
+
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
974
974
|
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$a<TSelectItem, TSelectKeyField> & NativeAttrs$a<TSelectItem, TSelectKeyField>;
|
|
975
975
|
|
|
976
976
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends keyof TSelectItem = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
977
977
|
|
|
978
|
-
interface Props$9 {
|
|
979
|
-
name?: string;
|
|
980
|
-
value?: string;
|
|
981
|
-
defaultValue?: string;
|
|
982
|
-
checked?: boolean;
|
|
983
|
-
defaultChecked?: boolean;
|
|
984
|
-
disabled?: boolean;
|
|
985
|
-
onChange?: (value: string) => void;
|
|
986
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
987
|
-
}
|
|
988
|
-
type NativeAttrs$9 = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, keyof Props$9>;
|
|
989
|
-
type SwitchProps = Props$9 & NativeAttrs$9;
|
|
978
|
+
interface Props$9 {
|
|
979
|
+
name?: string;
|
|
980
|
+
value?: string;
|
|
981
|
+
defaultValue?: string;
|
|
982
|
+
checked?: boolean;
|
|
983
|
+
defaultChecked?: boolean;
|
|
984
|
+
disabled?: boolean;
|
|
985
|
+
onChange?: (value: string) => void;
|
|
986
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
987
|
+
}
|
|
988
|
+
type NativeAttrs$9 = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, keyof Props$9>;
|
|
989
|
+
type SwitchProps = Props$9 & NativeAttrs$9;
|
|
990
990
|
declare const Switch: react.ForwardRefExoticComponent<Props$9 & NativeAttrs$9 & react.RefAttributes<HTMLLabelElement>>;
|
|
991
991
|
|
|
992
|
-
interface Props$8 {
|
|
993
|
-
/**
|
|
994
|
-
* The HTML element type or React component to render as the tab.
|
|
995
|
-
*/
|
|
996
|
-
as?: React.ElementType;
|
|
997
|
-
/**
|
|
998
|
-
* The value associated with the tab.
|
|
999
|
-
*/
|
|
1000
|
-
value?: any;
|
|
1001
|
-
/**
|
|
1002
|
-
* Whether the tab can be closed.
|
|
1003
|
-
*/
|
|
1004
|
-
closable?: boolean;
|
|
1005
|
-
/**
|
|
1006
|
-
* Whether the tab is disabled.
|
|
1007
|
-
*/
|
|
1008
|
-
disabled?: boolean;
|
|
1009
|
-
/**
|
|
1010
|
-
* Content to display at the start of the tab, before the tab's text.
|
|
1011
|
-
*/
|
|
1012
|
-
startContent?: React.ReactNode;
|
|
1013
|
-
/**
|
|
1014
|
-
* Content to display at the end of the tab, after the tab's text.
|
|
1015
|
-
*/
|
|
1016
|
-
endContent?: React.ReactNode;
|
|
1017
|
-
}
|
|
1018
|
-
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1019
|
-
type TabProps = Props$8 & NativeAttrs$8;
|
|
1020
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & {
|
|
1021
|
-
children?: react.ReactNode;
|
|
992
|
+
interface Props$8 {
|
|
993
|
+
/**
|
|
994
|
+
* The HTML element type or React component to render as the tab.
|
|
995
|
+
*/
|
|
996
|
+
as?: React.ElementType;
|
|
997
|
+
/**
|
|
998
|
+
* The value associated with the tab.
|
|
999
|
+
*/
|
|
1000
|
+
value?: any;
|
|
1001
|
+
/**
|
|
1002
|
+
* Whether the tab can be closed.
|
|
1003
|
+
*/
|
|
1004
|
+
closable?: boolean;
|
|
1005
|
+
/**
|
|
1006
|
+
* Whether the tab is disabled.
|
|
1007
|
+
*/
|
|
1008
|
+
disabled?: boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* Content to display at the start of the tab, before the tab's text.
|
|
1011
|
+
*/
|
|
1012
|
+
startContent?: React.ReactNode;
|
|
1013
|
+
/**
|
|
1014
|
+
* Content to display at the end of the tab, after the tab's text.
|
|
1015
|
+
*/
|
|
1016
|
+
endContent?: React.ReactNode;
|
|
1017
|
+
}
|
|
1018
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1019
|
+
type TabProps = Props$8 & NativeAttrs$8;
|
|
1020
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & {
|
|
1021
|
+
children?: react.ReactNode;
|
|
1022
1022
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1023
1023
|
|
|
1024
1024
|
type TabsAlignmet = 'start' | 'center' | 'end' | 'stretch';
|
|
1025
1025
|
|
|
1026
|
-
interface Props$7 {
|
|
1027
|
-
/**
|
|
1028
|
-
* The currently selected value of the tabs.
|
|
1029
|
-
*/
|
|
1030
|
-
value?: any;
|
|
1031
|
-
/**
|
|
1032
|
-
* The default value of the tabs when initially rendered.
|
|
1033
|
-
*/
|
|
1034
|
-
defaultValue?: any;
|
|
1035
|
-
/**
|
|
1036
|
-
* The alignment of the tabs.
|
|
1037
|
-
*/
|
|
1038
|
-
alignment?: TabsAlignmet;
|
|
1039
|
-
/**
|
|
1040
|
-
* A callback function called when the selected tab value changes.
|
|
1041
|
-
*/
|
|
1042
|
-
onChange?: (value: any) => void;
|
|
1043
|
-
/**
|
|
1044
|
-
* A callback function called when a tab is closed.
|
|
1045
|
-
*/
|
|
1046
|
-
onClose?: (value: any) => void;
|
|
1047
|
-
}
|
|
1048
|
-
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1049
|
-
type TabsProps = Props$7 & NativeAttrs$7;
|
|
1026
|
+
interface Props$7 {
|
|
1027
|
+
/**
|
|
1028
|
+
* The currently selected value of the tabs.
|
|
1029
|
+
*/
|
|
1030
|
+
value?: any;
|
|
1031
|
+
/**
|
|
1032
|
+
* The default value of the tabs when initially rendered.
|
|
1033
|
+
*/
|
|
1034
|
+
defaultValue?: any;
|
|
1035
|
+
/**
|
|
1036
|
+
* The alignment of the tabs.
|
|
1037
|
+
*/
|
|
1038
|
+
alignment?: TabsAlignmet;
|
|
1039
|
+
/**
|
|
1040
|
+
* A callback function called when the selected tab value changes.
|
|
1041
|
+
*/
|
|
1042
|
+
onChange?: (value: any) => void;
|
|
1043
|
+
/**
|
|
1044
|
+
* A callback function called when a tab is closed.
|
|
1045
|
+
*/
|
|
1046
|
+
onClose?: (value: any) => void;
|
|
1047
|
+
}
|
|
1048
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1049
|
+
type TabsProps = Props$7 & NativeAttrs$7;
|
|
1050
1050
|
declare const Tabs: React.FC<TabsProps>;
|
|
1051
1051
|
|
|
1052
|
-
interface Props$6 {
|
|
1053
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1054
|
-
variant?: InputVariant;
|
|
1055
|
-
color?: InputColor;
|
|
1056
|
-
size?: InputSize;
|
|
1057
|
-
startContent?: React.ReactNode;
|
|
1058
|
-
endContent?: React.ReactNode;
|
|
1059
|
-
css?: BoxCSS;
|
|
1060
|
-
}
|
|
1061
|
-
type NativeAttrs$6 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$6>;
|
|
1062
|
-
type TextInputProps = Props$6 & NativeAttrs$6;
|
|
1052
|
+
interface Props$6 {
|
|
1053
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1054
|
+
variant?: InputVariant;
|
|
1055
|
+
color?: InputColor;
|
|
1056
|
+
size?: InputSize;
|
|
1057
|
+
startContent?: React.ReactNode;
|
|
1058
|
+
endContent?: React.ReactNode;
|
|
1059
|
+
css?: BoxCSS;
|
|
1060
|
+
}
|
|
1061
|
+
type NativeAttrs$6 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$6>;
|
|
1062
|
+
type TextInputProps = Props$6 & NativeAttrs$6;
|
|
1063
1063
|
declare const TextInput: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLInputElement>>;
|
|
1064
1064
|
|
|
1065
1065
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1066
1066
|
|
|
1067
|
-
interface Props$5 {
|
|
1068
|
-
size?: ToolbarSize;
|
|
1069
|
-
title?: React.ReactNode;
|
|
1070
|
-
subtitle?: React.ReactNode;
|
|
1071
|
-
startContent?: React.ReactNode;
|
|
1072
|
-
endContent?: React.ReactNode;
|
|
1073
|
-
/**
|
|
1074
|
-
* @deprecated Use `startContent` instead
|
|
1075
|
-
*/
|
|
1076
|
-
startAction?: React.ReactNode;
|
|
1077
|
-
/**
|
|
1078
|
-
* @deprecated Use `endContent` instead
|
|
1079
|
-
*/
|
|
1080
|
-
endAction?: React.ReactNode;
|
|
1081
|
-
slotProps?: {
|
|
1082
|
-
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1083
|
-
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1084
|
-
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1085
|
-
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
1086
|
-
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1090
|
-
type ToolbarProps = Props$5 & NativeAttrs$5;
|
|
1067
|
+
interface Props$5 {
|
|
1068
|
+
size?: ToolbarSize;
|
|
1069
|
+
title?: React.ReactNode;
|
|
1070
|
+
subtitle?: React.ReactNode;
|
|
1071
|
+
startContent?: React.ReactNode;
|
|
1072
|
+
endContent?: React.ReactNode;
|
|
1073
|
+
/**
|
|
1074
|
+
* @deprecated Use `startContent` instead
|
|
1075
|
+
*/
|
|
1076
|
+
startAction?: React.ReactNode;
|
|
1077
|
+
/**
|
|
1078
|
+
* @deprecated Use `endContent` instead
|
|
1079
|
+
*/
|
|
1080
|
+
endAction?: React.ReactNode;
|
|
1081
|
+
slotProps?: {
|
|
1082
|
+
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1083
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1084
|
+
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1085
|
+
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
1086
|
+
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1090
|
+
type ToolbarProps = Props$5 & NativeAttrs$5;
|
|
1091
1091
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1092
1092
|
|
|
1093
|
-
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
1094
|
-
nodeRef?: React.MutableRefObject<HTMLElement | null>;
|
|
1095
|
-
name: string;
|
|
1096
|
-
isOpen: boolean;
|
|
1097
|
-
enter?: number;
|
|
1098
|
-
leave?: number;
|
|
1099
|
-
mountOnEnter?: boolean;
|
|
1100
|
-
unmountOnExit?: boolean;
|
|
1101
|
-
onExited?: () => void;
|
|
1102
|
-
}
|
|
1093
|
+
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
1094
|
+
nodeRef?: React.MutableRefObject<HTMLElement | null>;
|
|
1095
|
+
name: string;
|
|
1096
|
+
isOpen: boolean;
|
|
1097
|
+
enter?: number;
|
|
1098
|
+
leave?: number;
|
|
1099
|
+
mountOnEnter?: boolean;
|
|
1100
|
+
unmountOnExit?: boolean;
|
|
1101
|
+
onExited?: () => void;
|
|
1102
|
+
}
|
|
1103
1103
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
1104
1104
|
|
|
1105
|
-
interface Props$4 {
|
|
1106
|
-
/**
|
|
1107
|
-
* The HTML element type or React component to render as the tab.
|
|
1108
|
-
*/
|
|
1109
|
-
as?: React.ElementType;
|
|
1110
|
-
width?: number;
|
|
1111
|
-
}
|
|
1112
|
-
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1113
|
-
type SwipeItemProps = Props$4 & NativeAttrs$4;
|
|
1114
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & {
|
|
1115
|
-
children?: react.ReactNode;
|
|
1105
|
+
interface Props$4 {
|
|
1106
|
+
/**
|
|
1107
|
+
* The HTML element type or React component to render as the tab.
|
|
1108
|
+
*/
|
|
1109
|
+
as?: React.ElementType;
|
|
1110
|
+
width?: number;
|
|
1111
|
+
}
|
|
1112
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1113
|
+
type SwipeItemProps = Props$4 & NativeAttrs$4;
|
|
1114
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & {
|
|
1115
|
+
children?: react.ReactNode;
|
|
1116
1116
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1117
1117
|
|
|
1118
1118
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1119
1119
|
|
|
1120
|
-
interface Props$3 {
|
|
1121
|
-
gap?: number;
|
|
1122
|
-
alignment?: SwiperAlignmet;
|
|
1123
|
-
autoHide?: boolean;
|
|
1124
|
-
slotProps?: {
|
|
1125
|
-
arrowLeftButton?: ButtonProps;
|
|
1126
|
-
arrowRightButton?: ButtonProps;
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
1130
|
-
type SwipeProps = Props$3 & NativeAttrs$3;
|
|
1120
|
+
interface Props$3 {
|
|
1121
|
+
gap?: number;
|
|
1122
|
+
alignment?: SwiperAlignmet;
|
|
1123
|
+
autoHide?: boolean;
|
|
1124
|
+
slotProps?: {
|
|
1125
|
+
arrowLeftButton?: ButtonProps;
|
|
1126
|
+
arrowRightButton?: ButtonProps;
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
1130
|
+
type SwipeProps = Props$3 & NativeAttrs$3;
|
|
1131
1131
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1132
1132
|
|
|
1133
|
-
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1134
|
-
type ModalPlacement = 'top' | 'center' | 'bottom';
|
|
1135
|
-
interface ModalClose {
|
|
1136
|
-
isVisible?: boolean;
|
|
1137
|
-
position?: 'start' | 'end';
|
|
1138
|
-
}
|
|
1139
|
-
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1133
|
+
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1134
|
+
type ModalPlacement = 'top' | 'center' | 'bottom';
|
|
1135
|
+
interface ModalClose {
|
|
1136
|
+
isVisible?: boolean;
|
|
1137
|
+
position?: 'start' | 'end';
|
|
1138
|
+
}
|
|
1139
|
+
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1140
1140
|
type ModalBackdrop = BackdropVariant;
|
|
1141
1141
|
|
|
1142
|
-
interface Props$2 {
|
|
1143
|
-
isOpen: boolean;
|
|
1144
|
-
size?: ModalSize;
|
|
1145
|
-
backdrop?: ModalBackdrop;
|
|
1146
|
-
placement?: ModalPlacement;
|
|
1147
|
-
fullscreen?: boolean;
|
|
1148
|
-
scrollBehavior?: ModalScrollBehavior;
|
|
1149
|
-
closable?: boolean;
|
|
1150
|
-
scrollArea?: boolean;
|
|
1151
|
-
slotProps?: {
|
|
1152
|
-
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1153
|
-
};
|
|
1154
|
-
onClose: () => void;
|
|
1155
|
-
onAfterClose?: () => void;
|
|
1156
|
-
}
|
|
1157
|
-
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1158
|
-
type ModalProps = Props$2 & NativeAttrs$2;
|
|
1142
|
+
interface Props$2 {
|
|
1143
|
+
isOpen: boolean;
|
|
1144
|
+
size?: ModalSize;
|
|
1145
|
+
backdrop?: ModalBackdrop;
|
|
1146
|
+
placement?: ModalPlacement;
|
|
1147
|
+
fullscreen?: boolean;
|
|
1148
|
+
scrollBehavior?: ModalScrollBehavior;
|
|
1149
|
+
closable?: boolean;
|
|
1150
|
+
scrollArea?: boolean;
|
|
1151
|
+
slotProps?: {
|
|
1152
|
+
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
1153
|
+
};
|
|
1154
|
+
onClose: () => void;
|
|
1155
|
+
onAfterClose?: () => void;
|
|
1156
|
+
}
|
|
1157
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1158
|
+
type ModalProps = Props$2 & NativeAttrs$2;
|
|
1159
1159
|
declare const Modal: react.ForwardRefExoticComponent<Props$2 & NativeAttrs$2 & react.RefAttributes<HTMLDivElement>>;
|
|
1160
1160
|
|
|
1161
|
-
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1161
|
+
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1162
1162
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
1163
1163
|
|
|
1164
|
-
interface ModalContextValue {
|
|
1165
|
-
isOpen: boolean;
|
|
1166
|
-
scrollBehavior: ModalScrollBehavior;
|
|
1167
|
-
scrollArea: boolean;
|
|
1168
|
-
onClose(): void;
|
|
1169
|
-
onAfterClose(): void;
|
|
1170
|
-
}
|
|
1164
|
+
interface ModalContextValue {
|
|
1165
|
+
isOpen: boolean;
|
|
1166
|
+
scrollBehavior: ModalScrollBehavior;
|
|
1167
|
+
scrollArea: boolean;
|
|
1168
|
+
onClose(): void;
|
|
1169
|
+
onAfterClose(): void;
|
|
1170
|
+
}
|
|
1171
1171
|
declare function useModal(): ModalContextValue;
|
|
1172
1172
|
|
|
1173
|
-
interface Props$1 {
|
|
1174
|
-
as?: React.ElementType;
|
|
1175
|
-
bordered?: boolean;
|
|
1176
|
-
}
|
|
1177
|
-
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1178
|
-
type ModalFooterProps = Props$1 & NativeAttrs$1;
|
|
1173
|
+
interface Props$1 {
|
|
1174
|
+
as?: React.ElementType;
|
|
1175
|
+
bordered?: boolean;
|
|
1176
|
+
}
|
|
1177
|
+
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1178
|
+
type ModalFooterProps = Props$1 & NativeAttrs$1;
|
|
1179
1179
|
declare const ModalFooter: react.ForwardRefExoticComponent<Props$1 & NativeAttrs$1 & react.RefAttributes<HTMLDivElement>>;
|
|
1180
1180
|
|
|
1181
|
-
interface Props {
|
|
1182
|
-
as?: React.ElementType;
|
|
1183
|
-
title?: React.ReactNode;
|
|
1184
|
-
subtitle?: React.ReactNode;
|
|
1185
|
-
startContent?: React.ReactNode;
|
|
1186
|
-
endContent?: React.ReactNode;
|
|
1187
|
-
bordered?: boolean;
|
|
1188
|
-
close?: ModalClose;
|
|
1189
|
-
slotProps?: {
|
|
1190
|
-
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1191
|
-
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1192
|
-
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1193
|
-
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
1194
|
-
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1195
|
-
};
|
|
1196
|
-
}
|
|
1197
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1198
|
-
type ModalHeaderProps = Props & NativeAttrs;
|
|
1181
|
+
interface Props {
|
|
1182
|
+
as?: React.ElementType;
|
|
1183
|
+
title?: React.ReactNode;
|
|
1184
|
+
subtitle?: React.ReactNode;
|
|
1185
|
+
startContent?: React.ReactNode;
|
|
1186
|
+
endContent?: React.ReactNode;
|
|
1187
|
+
bordered?: boolean;
|
|
1188
|
+
close?: ModalClose;
|
|
1189
|
+
slotProps?: {
|
|
1190
|
+
startContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1191
|
+
content?: React.HTMLAttributes<HTMLDivElement>;
|
|
1192
|
+
endContent?: React.HTMLAttributes<HTMLDivElement>;
|
|
1193
|
+
title?: React.HTMLAttributes<HTMLDivElement>;
|
|
1194
|
+
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1198
|
+
type ModalHeaderProps = Props & NativeAttrs;
|
|
1199
1199
|
declare const ModalHeader: react.ForwardRefExoticComponent<Props & NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1200
1200
|
|
|
1201
1201
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1202
1202
|
|
|
1203
|
-
type ClassDictionary = Record<string, any>;
|
|
1204
|
-
type ClassArray = ClassValue[];
|
|
1205
|
-
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
1203
|
+
type ClassDictionary = Record<string, any>;
|
|
1204
|
+
type ClassArray = ClassValue[];
|
|
1205
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
1206
1206
|
declare function clsx(...inputs: ClassValue[]): string;
|
|
1207
1207
|
|
|
1208
|
-
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
1209
|
-
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1208
|
+
type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
1209
|
+
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1210
1210
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
1211
1211
|
|
|
1212
|
-
export { Accordion, AccordionBody, AccordionBodyProps, AccordionContent, AccordionContentProps, AccordionContext, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps, Autocomplete, AutocompleteItem, AutocompleteKeyField, AutocompleteMultipleProps, AutocompleteProps, AutocompleteSingleProps, Backdrop, BackdropPlacement, BackdropProps, BackdropVariant, Badge, BadgeProps, Button, ButtonColor, ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupDirection, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, Card, CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, DataList, DataListItem, DataListKeyField, DataListMultipleProps, DataListProps, DataListSingleProps, Disclosure, Drawer, DrawerBackdrop, DrawerBody, DrawerBodyProps, DrawerClose, DrawerContext, DrawerContextValue, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerPlacement, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconColor, IconProps, IconSize, InfiniteData, InfiniteQueryFunction, InfiniteQueryOptions, InfiniteQueryRefetchOptions, InputColor, InputSize, InputVariant, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, ListSize, ListSubheader, ListSubheaderProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, Modal, ModalBackdrop, ModalBody, ModalBodyProps, ModalClose, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalPlacement, ModalProps, ModalScrollBehavior, ModalSize, MutationError, MutationFunction, MutationOK, MutationResult, MutationStatus, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Portal, PortalProps, QueryFunction, QueryStatus, ReactRef, Resize, Result, ResultProps, ResultStatus, ScrollAlignment, ScrollArea, ScrollAreaProps, ScrollBehavior, ScrollToOptions, Select, SelectItem, SelectKeyField, SelectMultipleProps, SelectProps, SelectSingleProps, Swipe, SwipeItem, SwipeItemProps, SwipeProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, TextInput, TextInputProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, UseResizeObserverOptions, VirtualItem, Virtualizer, VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCollapse, useDebounce, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|
|
1212
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Autocomplete, type AutocompleteItem, type AutocompleteKeyField, type AutocompleteMultipleProps, type AutocompleteProps, type AutocompleteSingleProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, type Disclosure, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, Icon, type IconColor, type IconProps, type IconSize, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, type ReactRef, type Resize, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectItem, type SelectKeyField, type SelectMultipleProps, type SelectProps, type SelectSingleProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchProps, Tab, type TabProps, Tabs, type TabsAlignmet, type TabsProps, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCollapse, useDebounce, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|