liquid-glass-for-react 0.1.0 → 0.3.0
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/README.md +42 -4
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +885 -166
- package/dist/index.d.ts +885 -166
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +287 -17
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, CSSProperties, ReactNode, ElementType, RefObject, Dispatch, SetStateAction, useEffect, ButtonHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes,
|
|
2
|
+
import { HTMLAttributes, CSSProperties, ReactNode, ElementType, Key, RefObject, Dispatch, SetStateAction, useEffect, ReactElement, ButtonHTMLAttributes, InputHTMLAttributes, Ref, ChangeEvent, SelectHTMLAttributes, TextareaHTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefAttributes, AnchorHTMLAttributes, JSXElementConstructor, ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
|
|
4
4
|
type GlassVariant = "regular" | "clear" | "prominent" | "tinted";
|
|
5
5
|
type GlassSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -58,6 +58,52 @@ interface GlassSurfaceProps extends HTMLAttributes<HTMLDivElement>, ComponentCus
|
|
|
58
58
|
}
|
|
59
59
|
type Placement = "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
60
60
|
|
|
61
|
+
type ComponentColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | (string & {});
|
|
62
|
+
type ComponentRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
63
|
+
type ControlVariant = "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "ghost" | "underlined";
|
|
64
|
+
type LabelPlacement = "inside" | "outside" | "outside-left" | "outside-top";
|
|
65
|
+
interface FieldStateProps {
|
|
66
|
+
isDisabled?: boolean;
|
|
67
|
+
isReadOnly?: boolean;
|
|
68
|
+
isRequired?: boolean;
|
|
69
|
+
isInvalid?: boolean;
|
|
70
|
+
disableAnimation?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface ValidationResult {
|
|
73
|
+
isInvalid: boolean;
|
|
74
|
+
validationErrors: string[];
|
|
75
|
+
validationDetails: ValidityState;
|
|
76
|
+
}
|
|
77
|
+
type FieldError = ReactNode | ((result: ValidationResult) => ReactNode);
|
|
78
|
+
interface CollectionSelectionProps {
|
|
79
|
+
selectionMode?: "none" | "single" | "multiple";
|
|
80
|
+
selectionBehavior?: "toggle" | "replace";
|
|
81
|
+
selectedKeys?: "all" | Iterable<Key>;
|
|
82
|
+
defaultSelectedKeys?: "all" | Iterable<Key>;
|
|
83
|
+
disabledKeys?: Iterable<Key>;
|
|
84
|
+
disallowEmptySelection?: boolean;
|
|
85
|
+
onSelectionChange?: (keys: Set<Key>) => void;
|
|
86
|
+
}
|
|
87
|
+
interface PressEvent<T extends HTMLElement = HTMLElement> {
|
|
88
|
+
type: "press" | "pressstart" | "pressend" | "pressup";
|
|
89
|
+
pointerType: "mouse" | "pen" | "touch" | "keyboard" | "virtual";
|
|
90
|
+
target: T;
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
shiftKey: boolean;
|
|
94
|
+
ctrlKey: boolean;
|
|
95
|
+
metaKey: boolean;
|
|
96
|
+
altKey: boolean;
|
|
97
|
+
continuePropagation: () => void;
|
|
98
|
+
}
|
|
99
|
+
interface PressProps<T extends HTMLElement = HTMLElement> {
|
|
100
|
+
onPress?: (event: PressEvent<T>) => void;
|
|
101
|
+
onPressStart?: (event: PressEvent<T>) => void;
|
|
102
|
+
onPressEnd?: (event: PressEvent<T>) => void;
|
|
103
|
+
onPressUp?: (event: PressEvent<T>) => void;
|
|
104
|
+
onPressChange?: (pressed: boolean) => void;
|
|
105
|
+
}
|
|
106
|
+
|
|
61
107
|
type ColorScheme = "light" | "dark" | "auto";
|
|
62
108
|
interface GlassConfig {
|
|
63
109
|
colorScheme: ColorScheme;
|
|
@@ -101,10 +147,123 @@ declare const Footer: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HT
|
|
|
101
147
|
declare const VisuallyHidden: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
102
148
|
declare const glassStyle: (properties: GlassStyleProperties) => CSSProperties;
|
|
103
149
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
interface PortalProps {
|
|
151
|
+
children: ReactNode;
|
|
152
|
+
container?: Element | DocumentFragment | null;
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
}
|
|
155
|
+
declare function Portal({ children, container, disabled }: PortalProps): ReactNode;
|
|
156
|
+
interface NoSsrProps {
|
|
157
|
+
children: ReactNode;
|
|
158
|
+
fallback?: ReactNode;
|
|
159
|
+
defer?: boolean;
|
|
160
|
+
}
|
|
161
|
+
declare function NoSsr({ children, fallback, defer }: NoSsrProps): ReactNode;
|
|
162
|
+
interface BackdropProps extends HTMLAttributes<HTMLDivElement> {
|
|
163
|
+
open?: boolean;
|
|
164
|
+
blur?: boolean;
|
|
165
|
+
invisible?: boolean;
|
|
166
|
+
}
|
|
167
|
+
declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
type OverlaySlot = "root" | "wrapper" | "backdrop" | "base" | "content" | "header" | "body" | "footer" | "closeButton";
|
|
169
|
+
type ModalSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full" | "fullscreen";
|
|
170
|
+
type ModalCloseReason = "escape" | "backdrop" | "dismiss";
|
|
171
|
+
interface OverlayStateProps {
|
|
172
|
+
isOpen?: boolean;
|
|
173
|
+
defaultOpen?: boolean;
|
|
174
|
+
onOpenChange?: (open: boolean) => void;
|
|
175
|
+
isDismissable?: boolean;
|
|
176
|
+
isKeyboardDismissDisabled?: boolean;
|
|
177
|
+
shouldBlockScroll?: boolean;
|
|
178
|
+
portalContainer?: Element | DocumentFragment | null;
|
|
179
|
+
disableAnimation?: boolean;
|
|
180
|
+
}
|
|
181
|
+
interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, Omit<ComponentCustomizationProps<OverlaySlot>, "motionDuration">, OverlayStateProps {
|
|
182
|
+
open?: boolean;
|
|
183
|
+
onClose?: {
|
|
184
|
+
dismiss(reason: ModalCloseReason): void;
|
|
185
|
+
}["dismiss"];
|
|
186
|
+
children?: ReactNode | ((onClose: () => void) => ReactNode);
|
|
187
|
+
closeOnEscape?: boolean;
|
|
188
|
+
closeOnBackdrop?: boolean;
|
|
189
|
+
keepMounted?: boolean;
|
|
190
|
+
portal?: boolean;
|
|
191
|
+
container?: Element | DocumentFragment | null;
|
|
192
|
+
backdrop?: boolean | "transparent" | "opaque" | "blur";
|
|
193
|
+
motionDuration?: number;
|
|
194
|
+
size?: ModalSize;
|
|
195
|
+
radius?: number | string;
|
|
196
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
197
|
+
placement?: "auto" | "top" | "bottom" | "center" | "top-center" | "bottom-center";
|
|
198
|
+
scrollBehavior?: "normal" | "inside" | "outside";
|
|
199
|
+
hideCloseButton?: boolean;
|
|
200
|
+
closeButton?: ReactNode;
|
|
201
|
+
}
|
|
202
|
+
declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDivElement>>;
|
|
203
|
+
interface PopperProps extends HTMLAttributes<HTMLDivElement> {
|
|
204
|
+
open: boolean;
|
|
205
|
+
anchor: HTMLElement | null;
|
|
206
|
+
placement?: Placement;
|
|
207
|
+
offset?: number;
|
|
208
|
+
matchAnchorWidth?: boolean;
|
|
209
|
+
containerPadding?: number;
|
|
210
|
+
crossOffset?: number;
|
|
211
|
+
shouldFlip?: boolean;
|
|
212
|
+
updatePositionDeps?: readonly unknown[];
|
|
213
|
+
portal?: boolean;
|
|
214
|
+
container?: Element | DocumentFragment | null;
|
|
215
|
+
}
|
|
216
|
+
declare const Popper: react.ForwardRefExoticComponent<PopperProps & react.RefAttributes<HTMLDivElement>>;
|
|
217
|
+
interface PopoverProps extends Omit<PopperProps, "open">, Omit<ComponentCustomizationProps<"root" | "base" | "content" | "trigger" | "arrow" | "backdrop">, "motionDuration">, OverlayStateProps {
|
|
218
|
+
open?: boolean;
|
|
219
|
+
onClose?: () => void;
|
|
220
|
+
glass?: boolean;
|
|
221
|
+
color?: ComponentColor;
|
|
222
|
+
radius?: number | string;
|
|
223
|
+
size?: "sm" | "md" | "lg";
|
|
224
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
225
|
+
backdrop?: "transparent" | "opaque" | "blur";
|
|
226
|
+
state?: {
|
|
227
|
+
isOpen: boolean;
|
|
228
|
+
close: () => void;
|
|
229
|
+
};
|
|
230
|
+
triggerType?: "dialog" | "menu" | "listbox" | "tree" | "grid";
|
|
231
|
+
showArrow?: boolean;
|
|
232
|
+
triggerScaleOnOpen?: boolean;
|
|
233
|
+
shouldCloseOnScroll?: boolean;
|
|
234
|
+
shouldCloseOnBlur?: boolean;
|
|
235
|
+
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
236
|
+
}
|
|
237
|
+
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
interface ClickAwayListenerProps {
|
|
239
|
+
children: ReactElement;
|
|
240
|
+
onClickAway: (event: MouseEvent | TouchEvent) => void;
|
|
241
|
+
}
|
|
242
|
+
declare function ClickAwayListener({ children, onClickAway }: ClickAwayListenerProps): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
243
|
+
interface TransitionProps extends HTMLAttributes<HTMLDivElement> {
|
|
244
|
+
in: boolean;
|
|
245
|
+
duration?: number;
|
|
246
|
+
appear?: boolean;
|
|
247
|
+
unmountOnExit?: boolean;
|
|
248
|
+
type?: "fade" | "scale" | "slide-up" | "slide-down";
|
|
249
|
+
}
|
|
250
|
+
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLDivElement>>;
|
|
251
|
+
interface CssBaselineProps {
|
|
252
|
+
colorScheme?: "light" | "dark" | "auto";
|
|
253
|
+
}
|
|
254
|
+
declare function CssBaseline({ colorScheme }: CssBaselineProps): react.JSX.Element;
|
|
255
|
+
interface InitColorSchemeScriptProps {
|
|
256
|
+
attribute?: string;
|
|
257
|
+
storageKey?: string;
|
|
258
|
+
defaultScheme?: "light" | "dark" | "auto";
|
|
259
|
+
}
|
|
260
|
+
declare function InitColorSchemeScript({ attribute, storageKey, defaultScheme, }: InitColorSchemeScriptProps): react.JSX.Element;
|
|
261
|
+
|
|
262
|
+
type ButtonSlot = "root" | "base" | "light" | "ripples" | "content" | "label" | "leading" | "trailing" | "spinner";
|
|
263
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, ComponentCustomizationProps<ButtonSlot>, PressProps<HTMLButtonElement> {
|
|
264
|
+
variant?: GlassVariant | ControlVariant;
|
|
107
265
|
tone?: GlassTone;
|
|
266
|
+
color?: ComponentColor;
|
|
108
267
|
size?: GlassSize;
|
|
109
268
|
loading?: boolean;
|
|
110
269
|
block?: boolean;
|
|
@@ -113,6 +272,16 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Component
|
|
|
113
272
|
radius?: number | string;
|
|
114
273
|
blur?: number;
|
|
115
274
|
pressScale?: number;
|
|
275
|
+
startContent?: ReactNode;
|
|
276
|
+
endContent?: ReactNode;
|
|
277
|
+
spinner?: ReactNode;
|
|
278
|
+
spinnerPlacement?: "start" | "end";
|
|
279
|
+
fullWidth?: boolean;
|
|
280
|
+
isIconOnly?: boolean;
|
|
281
|
+
isDisabled?: boolean;
|
|
282
|
+
isLoading?: boolean;
|
|
283
|
+
disableRipple?: boolean;
|
|
284
|
+
disableAnimation?: boolean;
|
|
116
285
|
}
|
|
117
286
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
118
287
|
interface IconButtonProps extends Omit<ButtonProps, "leading" | "trailing"> {
|
|
@@ -123,13 +292,19 @@ interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
123
292
|
orientation?: "horizontal" | "vertical";
|
|
124
293
|
attached?: boolean;
|
|
125
294
|
size?: GlassSize;
|
|
295
|
+
variant?: ButtonProps["variant"];
|
|
296
|
+
color?: ComponentColor;
|
|
297
|
+
radius?: ButtonProps["radius"];
|
|
298
|
+
fullWidth?: boolean;
|
|
299
|
+
isDisabled?: boolean;
|
|
126
300
|
}
|
|
127
301
|
declare const ButtonGroup: react.ForwardRefExoticComponent<ButtonGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
128
302
|
interface FabProps extends ButtonProps {
|
|
129
303
|
extended?: boolean;
|
|
130
304
|
}
|
|
131
305
|
declare const Fab: react.ForwardRefExoticComponent<FabProps & react.RefAttributes<HTMLButtonElement>>;
|
|
132
|
-
|
|
306
|
+
type FieldSlot = "root" | "base" | "label" | "inputWrapper" | "innerWrapper" | "mainWrapper" | "input" | "clearButton" | "helperWrapper" | "description" | "errorMessage" | "stepperButton" | "stepperWrapper";
|
|
307
|
+
interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, ComponentCustomizationProps<FieldSlot>, FieldStateProps {
|
|
133
308
|
label?: ReactNode;
|
|
134
309
|
helperText?: ReactNode;
|
|
135
310
|
error?: boolean;
|
|
@@ -137,42 +312,118 @@ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "si
|
|
|
137
312
|
leading?: ReactNode;
|
|
138
313
|
trailing?: ReactNode;
|
|
139
314
|
block?: boolean;
|
|
315
|
+
fullWidth?: boolean;
|
|
316
|
+
variant?: "flat" | "bordered" | "faded" | "underlined";
|
|
317
|
+
color?: ComponentColor;
|
|
318
|
+
radius?: number | string;
|
|
319
|
+
startContent?: ReactNode;
|
|
320
|
+
endContent?: ReactNode;
|
|
321
|
+
description?: ReactNode;
|
|
322
|
+
errorMessage?: FieldError;
|
|
323
|
+
labelPlacement?: LabelPlacement;
|
|
324
|
+
baseRef?: Ref<HTMLDivElement>;
|
|
325
|
+
isClearable?: boolean;
|
|
326
|
+
validate?: (value: string) => string | string[] | true | null | undefined;
|
|
327
|
+
validationBehavior?: "native" | "aria";
|
|
328
|
+
onValueChange?: (value: string) => void;
|
|
329
|
+
onClear?: () => void;
|
|
140
330
|
}
|
|
141
331
|
declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
142
|
-
|
|
332
|
+
type TextareaSlot = FieldSlot | "headerWrapper";
|
|
333
|
+
interface TextareaAutosizeProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, ComponentCustomizationProps<TextareaSlot>, FieldStateProps {
|
|
334
|
+
minRows?: number;
|
|
335
|
+
maxRows?: number;
|
|
336
|
+
cacheMeasurements?: boolean;
|
|
337
|
+
disableAutosize?: boolean;
|
|
338
|
+
label?: ReactNode;
|
|
339
|
+
size?: GlassSize;
|
|
340
|
+
variant?: TextFieldProps["variant"];
|
|
341
|
+
color?: ComponentColor;
|
|
342
|
+
radius?: number | string;
|
|
343
|
+
startContent?: ReactNode;
|
|
344
|
+
endContent?: ReactNode;
|
|
345
|
+
description?: ReactNode;
|
|
346
|
+
errorMessage?: FieldError;
|
|
347
|
+
validate?: TextFieldProps["validate"];
|
|
348
|
+
validationBehavior?: TextFieldProps["validationBehavior"];
|
|
349
|
+
validationState?: "valid" | "invalid";
|
|
350
|
+
labelPlacement?: LabelPlacement;
|
|
351
|
+
fullWidth?: boolean;
|
|
352
|
+
isClearable?: boolean;
|
|
353
|
+
onValueChange?: (value: string) => void;
|
|
354
|
+
onClear?: () => void;
|
|
355
|
+
onHeightChange?: (height: number, meta: {
|
|
356
|
+
rowHeight: number;
|
|
357
|
+
}) => void;
|
|
358
|
+
}
|
|
359
|
+
declare const TextareaAutosize: react.ForwardRefExoticComponent<TextareaAutosizeProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
360
|
+
interface NumberFieldProps extends Omit<TextFieldProps, "type" | "value" | "defaultValue" | "onValueChange" | "validate"> {
|
|
143
361
|
value?: number;
|
|
144
362
|
defaultValue?: number;
|
|
145
363
|
min?: number;
|
|
146
364
|
max?: number;
|
|
147
365
|
step?: number;
|
|
148
366
|
onValueChange?: (value: number) => void;
|
|
367
|
+
minValue?: number;
|
|
368
|
+
maxValue?: number;
|
|
369
|
+
hideStepper?: boolean;
|
|
370
|
+
isWheelDisabled?: boolean;
|
|
371
|
+
incrementAriaLabel?: string;
|
|
372
|
+
decrementAriaLabel?: string;
|
|
373
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
374
|
+
validate?: (value: number) => string | string[] | true | null | undefined;
|
|
149
375
|
}
|
|
150
376
|
declare const NumberField: react.ForwardRefExoticComponent<NumberFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
151
|
-
|
|
377
|
+
type ChoiceSlot = "root" | "base" | "input" | "wrapper" | "icon" | "control" | "label" | "description" | "labelWrapper";
|
|
378
|
+
interface ChoiceStateProps extends FieldStateProps {
|
|
379
|
+
isSelected?: boolean;
|
|
380
|
+
defaultSelected?: boolean;
|
|
381
|
+
onValueChange?: (selected: boolean) => void;
|
|
382
|
+
color?: ComponentColor;
|
|
383
|
+
}
|
|
384
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "color">, ComponentCustomizationProps<ChoiceSlot>, ChoiceStateProps {
|
|
152
385
|
label?: ReactNode;
|
|
153
386
|
description?: ReactNode;
|
|
154
387
|
indeterminate?: boolean;
|
|
155
388
|
size?: "sm" | "md" | "lg";
|
|
389
|
+
radius?: number | string;
|
|
390
|
+
lineThrough?: boolean;
|
|
391
|
+
icon?: ReactNode | ((state: {
|
|
392
|
+
isSelected: boolean;
|
|
393
|
+
isIndeterminate: boolean;
|
|
394
|
+
isDisabled: boolean;
|
|
395
|
+
}) => ReactNode);
|
|
396
|
+
isIndeterminate?: boolean;
|
|
397
|
+
validationState?: "valid" | "invalid";
|
|
156
398
|
}
|
|
157
399
|
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
158
|
-
interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
400
|
+
interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">, FieldStateProps, ComponentCustomizationProps<"root" | "base" | "label" | "wrapper" | "description" | "errorMessage"> {
|
|
159
401
|
name?: string;
|
|
160
402
|
value?: string;
|
|
161
403
|
defaultValue?: string;
|
|
162
404
|
onValueChange?: (value: string) => void;
|
|
163
405
|
orientation?: "horizontal" | "vertical";
|
|
164
406
|
disabled?: boolean;
|
|
407
|
+
label?: ReactNode;
|
|
408
|
+
size?: RadioProps["size"];
|
|
409
|
+
color?: ComponentColor;
|
|
410
|
+
description?: ReactNode;
|
|
411
|
+
errorMessage?: FieldError;
|
|
412
|
+
validationState?: "valid" | "invalid";
|
|
413
|
+
validationBehavior?: "native" | "aria";
|
|
414
|
+
validate?: TextFieldProps["validate"];
|
|
415
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
165
416
|
}
|
|
166
|
-
declare function RadioGroup({ name: providedName, value: controlled, defaultValue, onValueChange, orientation, disabled, className, children, ...props }: RadioGroupProps): react.JSX.Element;
|
|
167
|
-
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"
|
|
417
|
+
declare function RadioGroup({ name: providedName, value: controlled, defaultValue, onValueChange, orientation, disabled: suppliedDisabled, className, children, isDisabled, isReadOnly, isRequired, isInvalid, disableAnimation, label, description, errorMessage, color, size, style, classNames, styles, validationState, validate, validationBehavior, onChange, motionDuration, ...props }: RadioGroupProps): react.JSX.Element;
|
|
418
|
+
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "color">, ComponentCustomizationProps<ChoiceSlot>, ChoiceStateProps {
|
|
168
419
|
label?: ReactNode;
|
|
169
420
|
description?: ReactNode;
|
|
170
421
|
value: string;
|
|
171
422
|
size?: "sm" | "md" | "lg";
|
|
172
423
|
}
|
|
173
424
|
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
174
|
-
type SwitchSlot = "root" | "input" | "track" | "thumb" | "label" | "description";
|
|
175
|
-
interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size">, ComponentCustomizationProps<SwitchSlot
|
|
425
|
+
type SwitchSlot = "root" | "base" | "input" | "track" | "wrapper" | "thumb" | "thumbIcon" | "startContent" | "endContent" | "label" | "description";
|
|
426
|
+
interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "color">, ComponentCustomizationProps<SwitchSlot>, ChoiceStateProps {
|
|
176
427
|
label?: ReactNode;
|
|
177
428
|
description?: ReactNode;
|
|
178
429
|
size?: "sm" | "md" | "lg";
|
|
@@ -180,9 +431,16 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"
|
|
|
180
431
|
checkedColor?: string;
|
|
181
432
|
thumbColor?: string;
|
|
182
433
|
radius?: number | string;
|
|
434
|
+
startContent?: ReactNode;
|
|
435
|
+
endContent?: ReactNode;
|
|
436
|
+
thumbIcon?: ReactNode | ((state: {
|
|
437
|
+
isSelected: boolean;
|
|
438
|
+
isDisabled: boolean;
|
|
439
|
+
className?: string;
|
|
440
|
+
}) => ReactNode);
|
|
183
441
|
}
|
|
184
442
|
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
185
|
-
type SliderSlot = "root" | "header" | "value" | "control" | "track" | "fill" | "thumb" | "input";
|
|
443
|
+
type SliderSlot = "root" | "base" | "header" | "labelWrapper" | "label" | "value" | "control" | "trackWrapper" | "track" | "fill" | "filler" | "thumb" | "input" | "mark" | "step" | "startContent" | "endContent";
|
|
186
444
|
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size">, ComponentCustomizationProps<SliderSlot> {
|
|
187
445
|
label?: ReactNode;
|
|
188
446
|
showValue?: boolean;
|
|
@@ -194,15 +452,119 @@ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"
|
|
|
194
452
|
thumbSize?: number | string;
|
|
195
453
|
trackHeight?: number | string;
|
|
196
454
|
radius?: number | string;
|
|
455
|
+
color?: ComponentColor;
|
|
456
|
+
minValue?: number;
|
|
457
|
+
maxValue?: number;
|
|
458
|
+
orientation?: "horizontal" | "vertical";
|
|
459
|
+
fillOffset?: number;
|
|
460
|
+
showSteps?: boolean;
|
|
461
|
+
showTooltip?: boolean;
|
|
462
|
+
marks?: readonly {
|
|
463
|
+
value: number;
|
|
464
|
+
label?: ReactNode;
|
|
465
|
+
}[];
|
|
466
|
+
startContent?: ReactNode;
|
|
467
|
+
endContent?: ReactNode;
|
|
468
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
469
|
+
tooltipValueFormatOptions?: Intl.NumberFormatOptions;
|
|
470
|
+
tooltipProps?: Pick<HTMLAttributes<HTMLSpanElement>, "className" | "style">;
|
|
471
|
+
showOutline?: boolean;
|
|
472
|
+
hideValue?: boolean;
|
|
473
|
+
hideThumb?: boolean;
|
|
474
|
+
disableThumbScale?: boolean;
|
|
475
|
+
isDisabled?: boolean;
|
|
476
|
+
disableAnimation?: boolean;
|
|
477
|
+
getValue?: (value: number) => string;
|
|
478
|
+
getTooltipValue?: (value: number, index?: number) => string | number;
|
|
479
|
+
renderLabel?: (props: HTMLAttributes<HTMLSpanElement>) => ReactNode;
|
|
480
|
+
renderValue?: (props: React.OutputHTMLAttributes<HTMLOutputElement>) => ReactNode;
|
|
481
|
+
renderThumb?: (props: HTMLAttributes<HTMLSpanElement> & {
|
|
482
|
+
index: number;
|
|
483
|
+
}) => ReactNode;
|
|
484
|
+
onValueChange?: (value: number) => void;
|
|
485
|
+
onChangeEnd?: (value: number) => void;
|
|
486
|
+
}
|
|
487
|
+
interface RangeSliderOptions extends Omit<SliderProps, "value" | "defaultValue" | "onChange" | "onValueChange" | "onChangeEnd" | "getValue" | "getTooltipValue"> {
|
|
488
|
+
onChange?: (value: number[]) => void;
|
|
489
|
+
onValueChange?: (value: number[]) => void;
|
|
490
|
+
onChangeEnd?: (value: number[]) => void;
|
|
491
|
+
getValue?: (value: number[]) => string;
|
|
492
|
+
getTooltipValue?: (value: number[], index?: number) => string | number;
|
|
493
|
+
}
|
|
494
|
+
type RangeSliderProps = RangeSliderOptions & ({
|
|
495
|
+
value: readonly number[];
|
|
496
|
+
defaultValue?: readonly number[];
|
|
497
|
+
} | {
|
|
498
|
+
value?: readonly number[];
|
|
499
|
+
defaultValue: readonly number[];
|
|
500
|
+
});
|
|
501
|
+
declare const Slider: {
|
|
502
|
+
(props: RangeSliderProps & React.RefAttributes<HTMLInputElement>): ReactElement | null;
|
|
503
|
+
(props: SliderProps & React.RefAttributes<HTMLInputElement>): ReactElement | null;
|
|
504
|
+
};
|
|
505
|
+
type SelectSlot = FieldSlot | "trigger" | "selectorIcon" | "value" | "listboxWrapper" | "listbox" | "popoverContent";
|
|
506
|
+
type SelectionKeys = "all" | Iterable<Key>;
|
|
507
|
+
interface SelectOption {
|
|
508
|
+
key: Key;
|
|
509
|
+
label: ReactNode;
|
|
510
|
+
textValue?: string;
|
|
511
|
+
disabled?: boolean;
|
|
512
|
+
}
|
|
513
|
+
interface SelectItemProps extends React.OptionHTMLAttributes<HTMLOptionElement> {
|
|
514
|
+
textValue?: string;
|
|
515
|
+
isDisabled?: boolean;
|
|
516
|
+
startContent?: ReactNode;
|
|
517
|
+
endContent?: ReactNode;
|
|
197
518
|
}
|
|
198
|
-
declare
|
|
199
|
-
interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
519
|
+
declare function SelectItem({ children, textValue, isDisabled, disabled, startContent: _startContent, endContent: _endContent, ...props }: SelectItemProps): react.JSX.Element;
|
|
520
|
+
interface SelectProps<T = SelectOption> extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "children">, FieldStateProps, ComponentCustomizationProps<SelectSlot> {
|
|
200
521
|
label?: ReactNode;
|
|
201
522
|
helperText?: ReactNode;
|
|
202
523
|
error?: boolean;
|
|
203
524
|
block?: boolean;
|
|
204
|
-
|
|
205
|
-
|
|
525
|
+
items?: Iterable<T>;
|
|
526
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
527
|
+
selectedKeys?: SelectionKeys;
|
|
528
|
+
defaultSelectedKeys?: SelectionKeys;
|
|
529
|
+
disabledKeys?: Iterable<Key>;
|
|
530
|
+
selectionMode?: "single" | "multiple";
|
|
531
|
+
disallowEmptySelection?: boolean;
|
|
532
|
+
onSelectionChange?: (keys: Set<Key>) => void;
|
|
533
|
+
description?: ReactNode;
|
|
534
|
+
errorMessage?: FieldError;
|
|
535
|
+
placeholder?: string;
|
|
536
|
+
startContent?: ReactNode;
|
|
537
|
+
endContent?: ReactNode;
|
|
538
|
+
selectorIcon?: ReactNode;
|
|
539
|
+
clearIcon?: ReactNode;
|
|
540
|
+
variant?: TextFieldProps["variant"];
|
|
541
|
+
radius?: number | string;
|
|
542
|
+
fullWidth?: boolean;
|
|
543
|
+
labelPlacement?: LabelPlacement;
|
|
544
|
+
validationState?: "valid" | "invalid";
|
|
545
|
+
isClearable?: boolean;
|
|
546
|
+
isMultiline?: boolean;
|
|
547
|
+
isLoading?: boolean;
|
|
548
|
+
isOpen?: boolean;
|
|
549
|
+
defaultOpen?: boolean;
|
|
550
|
+
disableSelectorIconRotation?: boolean;
|
|
551
|
+
showScrollIndicators?: boolean;
|
|
552
|
+
hideEmptyContent?: boolean;
|
|
553
|
+
maxListboxHeight?: number;
|
|
554
|
+
itemHeight?: number;
|
|
555
|
+
scrollRef?: Ref<HTMLDivElement>;
|
|
556
|
+
spinnerRef?: Ref<HTMLElement>;
|
|
557
|
+
onOpenChange?: (open: boolean) => void;
|
|
558
|
+
onClose?: () => void;
|
|
559
|
+
onClear?: () => void;
|
|
560
|
+
renderValue?: (items: readonly SelectOption[]) => ReactNode;
|
|
561
|
+
popoverProps?: Partial<React.ComponentProps<typeof Popover>>;
|
|
562
|
+
listboxProps?: HTMLAttributes<HTMLDivElement> & {
|
|
563
|
+
emptyContent?: ReactNode;
|
|
564
|
+
};
|
|
565
|
+
scrollShadowProps?: HTMLAttributes<HTMLDivElement>;
|
|
566
|
+
}
|
|
567
|
+
declare const Select: <T = SelectOption>(props: SelectProps<T> & React.RefAttributes<HTMLSelectElement>) => ReactElement | null;
|
|
206
568
|
interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
207
569
|
value?: number;
|
|
208
570
|
defaultValue?: number;
|
|
@@ -216,8 +578,8 @@ interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
|
216
578
|
label?: string;
|
|
217
579
|
}
|
|
218
580
|
declare function Rating({ value: controlled, defaultValue, max, precision, readOnly, disabled, onValueChange, emptyIcon, icon, label, className, ...props }: RatingProps): react.JSX.Element;
|
|
219
|
-
interface AutocompleteProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
220
|
-
options
|
|
581
|
+
interface AutocompleteProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children">, FieldStateProps, ComponentCustomizationProps<"root" | "base" | "listboxWrapper" | "listbox" | "popoverContent" | "endContentWrapper" | "clearButton" | "selectorButton"> {
|
|
582
|
+
options?: readonly T[];
|
|
221
583
|
value?: T | null;
|
|
222
584
|
defaultValue?: T | null;
|
|
223
585
|
onValueChange?: (value: T | null) => void;
|
|
@@ -227,8 +589,54 @@ interface AutocompleteProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, "onC
|
|
|
227
589
|
placeholder?: string;
|
|
228
590
|
noOptionsText?: ReactNode;
|
|
229
591
|
disabled?: boolean;
|
|
592
|
+
items?: Iterable<T>;
|
|
593
|
+
defaultItems?: Iterable<T>;
|
|
594
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
595
|
+
name?: string;
|
|
596
|
+
variant?: TextFieldProps["variant"];
|
|
597
|
+
color?: ComponentColor;
|
|
598
|
+
size?: GlassSize;
|
|
599
|
+
radius?: number | string;
|
|
600
|
+
inputValue?: string;
|
|
601
|
+
defaultInputValue?: string;
|
|
602
|
+
allowsCustomValue?: boolean;
|
|
603
|
+
allowsEmptyCollection?: boolean;
|
|
604
|
+
shouldCloseOnBlur?: boolean;
|
|
605
|
+
menuTrigger?: "focus" | "input" | "manual";
|
|
606
|
+
description?: ReactNode;
|
|
607
|
+
errorMessage?: FieldError;
|
|
608
|
+
labelPlacement?: LabelPlacement;
|
|
609
|
+
disabledKeys?: Iterable<Key>;
|
|
610
|
+
validate?: TextFieldProps["validate"];
|
|
611
|
+
validationBehavior?: TextFieldProps["validationBehavior"];
|
|
612
|
+
startContent?: ReactNode;
|
|
613
|
+
endContent?: ReactNode;
|
|
614
|
+
autoFocus?: boolean;
|
|
615
|
+
defaultFilter?: (textValue: string, inputValue: string) => boolean;
|
|
616
|
+
filterOptions?: Intl.CollatorOptions;
|
|
617
|
+
maxListboxHeight?: number;
|
|
618
|
+
itemHeight?: number;
|
|
619
|
+
fullWidth?: boolean;
|
|
620
|
+
selectorIcon?: ReactNode;
|
|
621
|
+
clearIcon?: ReactNode;
|
|
622
|
+
showScrollIndicators?: boolean;
|
|
623
|
+
scrollRef?: Ref<HTMLDivElement>;
|
|
624
|
+
inputProps?: TextFieldProps;
|
|
625
|
+
popoverProps?: Partial<React.ComponentProps<typeof Popper>>;
|
|
626
|
+
listboxProps?: HTMLAttributes<HTMLDivElement>;
|
|
627
|
+
scrollShadowProps?: HTMLAttributes<HTMLDivElement>;
|
|
628
|
+
selectorButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
629
|
+
clearButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
630
|
+
isClearable?: boolean;
|
|
631
|
+
disableSelectorIconRotation?: boolean;
|
|
632
|
+
onOpenChange?: (open: boolean) => void;
|
|
633
|
+
onInputChange?: (input: string) => void;
|
|
634
|
+
onChange?: (key: Key | null) => void;
|
|
635
|
+
onClose?: () => void;
|
|
636
|
+
onClear?: () => void;
|
|
637
|
+
onFocusChange?: (focused: boolean) => void;
|
|
230
638
|
}
|
|
231
|
-
declare function Autocomplete<T>({ options, value: controlled, defaultValue, onValueChange, getOptionLabel, isOptionEqual, label, placeholder, noOptionsText, disabled, className, ...props }: AutocompleteProps<T>): react.JSX.Element;
|
|
639
|
+
declare function Autocomplete<T>({ options: suppliedOptions, value: controlled, defaultValue, onValueChange, getOptionLabel, isOptionEqual, label, placeholder, noOptionsText, disabled: suppliedDisabled, className, style, classNames, styles, motionDuration, items, defaultItems, children, name, variant, color, size, radius, inputValue, defaultInputValue, allowsCustomValue, allowsEmptyCollection, shouldCloseOnBlur, menuTrigger, description, errorMessage, labelPlacement, disabledKeys, validate, validationBehavior, startContent, endContent, autoFocus, defaultFilter, filterOptions, maxListboxHeight, itemHeight, fullWidth, selectorIcon, clearIcon, showScrollIndicators, scrollRef, inputProps, popoverProps, listboxProps, scrollShadowProps, selectorButtonProps, clearButtonProps, isClearable, disableSelectorIconRotation, isDisabled, isReadOnly, isRequired, isInvalid, disableAnimation, onOpenChange, onInputChange, onChange, onClose, onClear, onFocusChange, ...props }: AutocompleteProps<T>): react.JSX.Element;
|
|
232
640
|
interface ToggleButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
233
641
|
value?: string | string[];
|
|
234
642
|
defaultValue?: string | string[];
|
|
@@ -258,38 +666,70 @@ interface TransferListProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChan
|
|
|
258
666
|
}
|
|
259
667
|
declare function TransferList({ items, value: controlled, defaultValue, onValueChange, availableLabel, selectedLabel, className, ...props }: TransferListProps): react.JSX.Element;
|
|
260
668
|
|
|
261
|
-
interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
669
|
+
interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">, ComponentCustomizationProps<"root" | "base" | "img" | "fallback" | "name" | "icon"> {
|
|
262
670
|
src?: string;
|
|
263
671
|
alt?: string;
|
|
264
672
|
fallback?: ReactNode;
|
|
265
673
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
266
674
|
shape?: "circle" | "rounded" | "square";
|
|
267
675
|
imgProps?: Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt">;
|
|
676
|
+
color?: ComponentColor;
|
|
677
|
+
radius?: string | number;
|
|
678
|
+
name?: string;
|
|
679
|
+
icon?: ReactNode;
|
|
680
|
+
isBordered?: boolean;
|
|
681
|
+
isDisabled?: boolean;
|
|
682
|
+
isFocusable?: boolean;
|
|
683
|
+
showFallback?: boolean;
|
|
684
|
+
ImgComponent?: ElementType;
|
|
268
685
|
}
|
|
269
686
|
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLSpanElement>>;
|
|
270
|
-
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
687
|
+
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement>, ComponentCustomizationProps<"root" | "base" | "count"> {
|
|
271
688
|
max?: number;
|
|
272
689
|
size?: AvatarProps["size"];
|
|
690
|
+
total?: number;
|
|
691
|
+
color?: ComponentColor;
|
|
692
|
+
radius?: AvatarProps["radius"];
|
|
693
|
+
isGrid?: boolean;
|
|
694
|
+
isDisabled?: boolean;
|
|
695
|
+
isBordered?: boolean;
|
|
696
|
+
renderCount?: (count: number) => ReactNode;
|
|
273
697
|
}
|
|
274
698
|
declare const AvatarGroup: react.ForwardRefExoticComponent<AvatarGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
275
|
-
interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content"> {
|
|
699
|
+
interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content">, ComponentCustomizationProps<"root" | "base" | "badge"> {
|
|
276
700
|
content?: ReactNode;
|
|
277
701
|
tone?: GlassTone;
|
|
278
|
-
variant?: "standard" | "dot";
|
|
279
|
-
placement?: "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
702
|
+
variant?: "standard" | "dot" | "solid" | "flat" | "faded" | "shadow";
|
|
703
|
+
placement?: "top-start" | "top-end" | "bottom-start" | "bottom-end" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
280
704
|
invisible?: boolean;
|
|
281
705
|
max?: number;
|
|
706
|
+
size?: "sm" | "md" | "lg";
|
|
707
|
+
shape?: "rectangle" | "circle";
|
|
708
|
+
color?: ComponentColor;
|
|
709
|
+
showOutline?: boolean;
|
|
710
|
+
disableOutline?: boolean;
|
|
711
|
+
disableAnimation?: boolean;
|
|
712
|
+
isInvisible?: boolean;
|
|
713
|
+
isOneChar?: boolean;
|
|
714
|
+
isDot?: boolean;
|
|
282
715
|
}
|
|
283
716
|
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
284
|
-
interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
717
|
+
interface ChipProps extends HTMLAttributes<HTMLSpanElement>, ComponentCustomizationProps<"root" | "base" | "content" | "dot" | "closeButton"> {
|
|
285
718
|
label?: ReactNode;
|
|
286
719
|
tone?: GlassTone;
|
|
287
|
-
variant?: "filled" | "outlined" | "glass";
|
|
288
|
-
size?: "sm" | "md";
|
|
720
|
+
variant?: "filled" | "outlined" | "glass" | "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "dot";
|
|
721
|
+
size?: "sm" | "md" | "lg";
|
|
289
722
|
leading?: ReactNode;
|
|
290
723
|
onDelete?: () => void;
|
|
291
724
|
disabled?: boolean;
|
|
292
725
|
clickable?: boolean;
|
|
726
|
+
color?: ComponentColor;
|
|
727
|
+
radius?: number | string;
|
|
728
|
+
avatar?: ReactNode;
|
|
729
|
+
startContent?: ReactNode;
|
|
730
|
+
endContent?: ReactNode;
|
|
731
|
+
isDisabled?: boolean;
|
|
732
|
+
onClose?: () => void;
|
|
293
733
|
}
|
|
294
734
|
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLSpanElement>>;
|
|
295
735
|
interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -304,18 +744,59 @@ interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
304
744
|
label?: string;
|
|
305
745
|
}
|
|
306
746
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<HTMLSpanElement>>;
|
|
307
|
-
|
|
747
|
+
type ListSlot = "root" | "base" | "list" | "emptyContent";
|
|
748
|
+
type ListItemSlot = "root" | "base" | "wrapper" | "title" | "description" | "shortcut" | "selectedIcon" | "startContent" | "endContent";
|
|
749
|
+
interface ListProps<T = unknown> extends Omit<HTMLAttributes<HTMLUListElement>, "children" | "autoFocus">, ComponentCustomizationProps<ListSlot>, CollectionSelectionProps {
|
|
308
750
|
divided?: boolean;
|
|
309
751
|
inset?: boolean;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
752
|
+
items?: Iterable<T>;
|
|
753
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
754
|
+
variant?: "solid" | "bordered" | "light" | "flat" | "faded" | "shadow";
|
|
755
|
+
color?: ComponentColor;
|
|
756
|
+
topContent?: ReactNode;
|
|
757
|
+
bottomContent?: ReactNode;
|
|
758
|
+
emptyContent?: ReactNode;
|
|
759
|
+
hideEmptyContent?: boolean;
|
|
760
|
+
hideSelectedIcon?: boolean;
|
|
761
|
+
shouldHighlightOnFocus?: boolean;
|
|
762
|
+
shouldFocusWrap?: boolean;
|
|
763
|
+
disableAnimation?: boolean;
|
|
764
|
+
autoFocus?: boolean | "first" | "last";
|
|
765
|
+
itemClasses?: ListItemProps["classNames"];
|
|
766
|
+
onAction?: (key: Key) => void;
|
|
767
|
+
}
|
|
768
|
+
declare const List: <T>(props: ListProps<T> & React.RefAttributes<HTMLUListElement>) => ReactElement | null;
|
|
769
|
+
interface ListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, "title">, ComponentCustomizationProps<ListItemSlot>, PressProps<HTMLLIElement> {
|
|
313
770
|
leading?: ReactNode;
|
|
314
771
|
trailing?: ReactNode;
|
|
315
772
|
secondary?: ReactNode;
|
|
316
773
|
selected?: boolean;
|
|
317
774
|
disabled?: boolean;
|
|
318
775
|
interactive?: boolean;
|
|
776
|
+
itemKey?: Key;
|
|
777
|
+
title?: ReactNode;
|
|
778
|
+
textValue?: string;
|
|
779
|
+
description?: ReactNode;
|
|
780
|
+
shortcut?: ReactNode;
|
|
781
|
+
startContent?: ReactNode;
|
|
782
|
+
endContent?: ReactNode;
|
|
783
|
+
selectedIcon?: ReactNode | ((state: {
|
|
784
|
+
isSelected: boolean;
|
|
785
|
+
isDisabled: boolean;
|
|
786
|
+
}) => ReactNode);
|
|
787
|
+
isSelected?: boolean;
|
|
788
|
+
isDisabled?: boolean;
|
|
789
|
+
isReadOnly?: boolean;
|
|
790
|
+
hideSelectedIcon?: boolean;
|
|
791
|
+
shouldHighlightOnFocus?: boolean;
|
|
792
|
+
showDivider?: boolean;
|
|
793
|
+
href?: string;
|
|
794
|
+
target?: string;
|
|
795
|
+
rel?: string;
|
|
796
|
+
download?: string | boolean;
|
|
797
|
+
ping?: string;
|
|
798
|
+
referrerPolicy?: React.HTMLAttributeReferrerPolicy;
|
|
799
|
+
onAction?: (key: Key) => void;
|
|
319
800
|
}
|
|
320
801
|
declare const ListItem: react.ForwardRefExoticComponent<ListItemProps & react.RefAttributes<HTMLLIElement>>;
|
|
321
802
|
declare const ListSubheader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
|
|
@@ -323,19 +804,104 @@ interface TableContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
323
804
|
glass?: boolean;
|
|
324
805
|
}
|
|
325
806
|
declare const TableContainer: react.ForwardRefExoticComponent<TableContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
326
|
-
|
|
807
|
+
type TableSlot = "root" | "base" | "wrapper" | "table" | "thead" | "tbody" | "tr" | "th" | "td" | "tfoot" | "sortIcon" | "emptyWrapper" | "loadingWrapper";
|
|
808
|
+
interface TableSortDescriptor {
|
|
809
|
+
column: Key;
|
|
810
|
+
direction: "ascending" | "descending";
|
|
811
|
+
}
|
|
812
|
+
interface TableProps extends TableHTMLAttributes<HTMLTableElement>, ComponentCustomizationProps<TableSlot> {
|
|
813
|
+
layout?: "auto" | "fixed";
|
|
814
|
+
radius?: string | number;
|
|
815
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
816
|
+
maxTableHeight?: number | string;
|
|
817
|
+
rowHeight?: number | string;
|
|
818
|
+
hideHeader?: boolean;
|
|
819
|
+
isStriped?: boolean;
|
|
820
|
+
isCompact?: boolean;
|
|
821
|
+
isHeaderSticky?: boolean;
|
|
822
|
+
fullWidth?: boolean;
|
|
823
|
+
removeWrapper?: boolean;
|
|
824
|
+
BaseComponent?: ElementType;
|
|
825
|
+
topContent?: ReactNode;
|
|
826
|
+
bottomContent?: ReactNode;
|
|
827
|
+
topContentPlacement?: "inside" | "outside";
|
|
828
|
+
bottomContentPlacement?: "inside" | "outside";
|
|
829
|
+
showSelectionCheckboxes?: boolean;
|
|
830
|
+
selectedKeys?: "all" | Iterable<Key>;
|
|
831
|
+
defaultSelectedKeys?: "all" | Iterable<Key>;
|
|
832
|
+
disabledKeys?: Iterable<Key>;
|
|
833
|
+
selectionMode?: "none" | "single" | "multiple";
|
|
834
|
+
selectionBehavior?: "replace" | "toggle";
|
|
835
|
+
disallowEmptySelection?: boolean;
|
|
836
|
+
disabledBehavior?: "all" | "selection";
|
|
837
|
+
allowDuplicateSelectionEvents?: boolean;
|
|
838
|
+
disableAnimation?: boolean;
|
|
839
|
+
isKeyboardNavigationDisabled?: boolean;
|
|
840
|
+
sortDescriptor?: TableSortDescriptor;
|
|
841
|
+
onRowAction?: (key: Key) => void;
|
|
842
|
+
onCellAction?: (row: Key, column: Key) => void;
|
|
843
|
+
onSelectionChange?: (keys: "all" | Set<Key>) => void;
|
|
844
|
+
onSortChange?: (sort: TableSortDescriptor) => void;
|
|
845
|
+
checkboxesProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
846
|
+
}
|
|
847
|
+
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
327
848
|
declare const TableHead: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
328
|
-
|
|
849
|
+
interface TableBodyProps<T = unknown> extends Omit<HTMLAttributes<HTMLTableSectionElement>, "children"> {
|
|
850
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
851
|
+
items?: Iterable<T>;
|
|
852
|
+
isLoading?: boolean;
|
|
853
|
+
loadingState?: "loading" | "filtering" | "sorting" | "loadingMore" | "idle" | "error";
|
|
854
|
+
loadingContent?: ReactNode;
|
|
855
|
+
emptyContent?: ReactNode;
|
|
856
|
+
onLoadMore?: () => void;
|
|
857
|
+
}
|
|
858
|
+
declare const TableBody: <T>(props: TableBodyProps<T> & React.RefAttributes<HTMLTableSectionElement>) => ReactElement | null;
|
|
329
859
|
declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
860
|
+
interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
861
|
+
rowKey?: Key;
|
|
862
|
+
textValue?: string;
|
|
863
|
+
}
|
|
864
|
+
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
865
|
+
interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
866
|
+
columnKey?: Key;
|
|
867
|
+
hideHeader?: boolean;
|
|
868
|
+
allowsSorting?: boolean;
|
|
869
|
+
sortIcon?: ReactNode;
|
|
870
|
+
isRowHeader?: boolean;
|
|
871
|
+
textValue?: string;
|
|
872
|
+
width?: number | string;
|
|
873
|
+
minWidth?: number | string;
|
|
874
|
+
maxWidth?: number | string;
|
|
875
|
+
}
|
|
876
|
+
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
877
|
+
declare const TableColumn: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
878
|
+
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
879
|
+
textValue?: string;
|
|
880
|
+
columnKey?: Key;
|
|
881
|
+
}
|
|
882
|
+
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
333
883
|
declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
334
|
-
interface TooltipProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content"> {
|
|
884
|
+
interface TooltipProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content">, Omit<OverlayStateProps, "shouldBlockScroll">, ComponentCustomizationProps<"root" | "base" | "content" | "arrow"> {
|
|
335
885
|
content: ReactNode;
|
|
336
886
|
placement?: Placement;
|
|
337
887
|
delay?: number;
|
|
338
888
|
disabled?: boolean;
|
|
889
|
+
isDisabled?: boolean;
|
|
890
|
+
closeDelay?: number;
|
|
891
|
+
offset?: number;
|
|
892
|
+
crossOffset?: number;
|
|
893
|
+
containerPadding?: number;
|
|
894
|
+
color?: ComponentColor;
|
|
895
|
+
radius?: number | string;
|
|
896
|
+
size?: "sm" | "md" | "lg";
|
|
897
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
898
|
+
showArrow?: boolean;
|
|
899
|
+
shouldFlip?: boolean;
|
|
900
|
+
triggerScaleOnOpen?: boolean;
|
|
901
|
+
shouldCloseOnBlur?: boolean;
|
|
902
|
+
updatePositionDeps?: readonly unknown[];
|
|
903
|
+
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
904
|
+
onClose?: () => void;
|
|
339
905
|
}
|
|
340
906
|
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLSpanElement>>;
|
|
341
907
|
type TypographyVariant = "largeTitle" | "title1" | "title2" | "title3" | "headline" | "body" | "callout" | "subheadline" | "footnote" | "caption1" | "caption2";
|
|
@@ -347,118 +913,70 @@ interface TypographyProps extends PolymorphicProps {
|
|
|
347
913
|
}
|
|
348
914
|
declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLElement>>;
|
|
349
915
|
|
|
350
|
-
interface
|
|
351
|
-
children: ReactNode;
|
|
352
|
-
container?: Element | DocumentFragment | null;
|
|
353
|
-
disabled?: boolean;
|
|
354
|
-
}
|
|
355
|
-
declare function Portal({ children, container, disabled }: PortalProps): ReactNode;
|
|
356
|
-
interface NoSsrProps {
|
|
357
|
-
children: ReactNode;
|
|
358
|
-
fallback?: ReactNode;
|
|
359
|
-
defer?: boolean;
|
|
360
|
-
}
|
|
361
|
-
declare function NoSsr({ children, fallback, defer }: NoSsrProps): ReactNode;
|
|
362
|
-
interface BackdropProps extends HTMLAttributes<HTMLDivElement> {
|
|
363
|
-
open?: boolean;
|
|
364
|
-
blur?: boolean;
|
|
365
|
-
invisible?: boolean;
|
|
366
|
-
}
|
|
367
|
-
declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.RefAttributes<HTMLDivElement>>;
|
|
368
|
-
interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
369
|
-
open: boolean;
|
|
370
|
-
onClose?: (reason: "escape" | "backdrop") => void;
|
|
371
|
-
closeOnEscape?: boolean;
|
|
372
|
-
closeOnBackdrop?: boolean;
|
|
373
|
-
keepMounted?: boolean;
|
|
374
|
-
portal?: boolean;
|
|
375
|
-
container?: Element | DocumentFragment | null;
|
|
376
|
-
backdrop?: boolean;
|
|
377
|
-
motionDuration?: number;
|
|
378
|
-
}
|
|
379
|
-
declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDivElement>>;
|
|
380
|
-
interface PopperProps extends HTMLAttributes<HTMLDivElement> {
|
|
381
|
-
open: boolean;
|
|
382
|
-
anchor: HTMLElement | null;
|
|
383
|
-
placement?: Placement;
|
|
384
|
-
offset?: number;
|
|
385
|
-
matchAnchorWidth?: boolean;
|
|
386
|
-
portal?: boolean;
|
|
387
|
-
container?: Element | DocumentFragment | null;
|
|
388
|
-
}
|
|
389
|
-
declare const Popper: react.ForwardRefExoticComponent<PopperProps & react.RefAttributes<HTMLDivElement>>;
|
|
390
|
-
interface PopoverProps extends PopperProps {
|
|
391
|
-
onClose?: () => void;
|
|
392
|
-
glass?: boolean;
|
|
393
|
-
}
|
|
394
|
-
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
|
|
395
|
-
interface ClickAwayListenerProps {
|
|
396
|
-
children: ReactElement;
|
|
397
|
-
onClickAway: (event: MouseEvent | TouchEvent) => void;
|
|
398
|
-
}
|
|
399
|
-
declare function ClickAwayListener({ children, onClickAway }: ClickAwayListenerProps): ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
400
|
-
interface TextareaAutosizeProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
401
|
-
minRows?: number;
|
|
402
|
-
maxRows?: number;
|
|
403
|
-
}
|
|
404
|
-
declare const TextareaAutosize: react.ForwardRefExoticComponent<TextareaAutosizeProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
405
|
-
interface TransitionProps extends HTMLAttributes<HTMLDivElement> {
|
|
406
|
-
in: boolean;
|
|
407
|
-
duration?: number;
|
|
408
|
-
appear?: boolean;
|
|
409
|
-
unmountOnExit?: boolean;
|
|
410
|
-
type?: "fade" | "scale" | "slide-up" | "slide-down";
|
|
411
|
-
}
|
|
412
|
-
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLDivElement>>;
|
|
413
|
-
interface CssBaselineProps {
|
|
414
|
-
colorScheme?: "light" | "dark" | "auto";
|
|
415
|
-
}
|
|
416
|
-
declare function CssBaseline({ colorScheme }: CssBaselineProps): react.JSX.Element;
|
|
417
|
-
interface InitColorSchemeScriptProps {
|
|
418
|
-
attribute?: string;
|
|
419
|
-
storageKey?: string;
|
|
420
|
-
defaultScheme?: "light" | "dark" | "auto";
|
|
421
|
-
}
|
|
422
|
-
declare function InitColorSchemeScript({ attribute, storageKey, defaultScheme, }: InitColorSchemeScriptProps): react.JSX.Element;
|
|
423
|
-
|
|
424
|
-
interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
916
|
+
interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, ComponentCustomizationProps<"root" | "base" | "mainWrapper" | "title" | "description" | "iconWrapper" | "alertIcon" | "closeButton" | "endContent"> {
|
|
425
917
|
tone?: GlassTone;
|
|
426
|
-
variant?: "glass" | "soft" | "outlined";
|
|
918
|
+
variant?: "glass" | "soft" | "outlined" | "solid" | "bordered" | "flat" | "faded";
|
|
427
919
|
icon?: ReactNode | false;
|
|
428
920
|
onClose?: () => void;
|
|
429
921
|
action?: ReactNode;
|
|
922
|
+
title?: ReactNode;
|
|
923
|
+
description?: ReactNode;
|
|
924
|
+
color?: ComponentColor;
|
|
925
|
+
radius?: number | string;
|
|
926
|
+
startContent?: ReactNode;
|
|
927
|
+
endContent?: ReactNode;
|
|
928
|
+
isVisible?: boolean;
|
|
929
|
+
isClosable?: boolean;
|
|
930
|
+
hideIcon?: boolean;
|
|
931
|
+
hideIconWrapper?: boolean;
|
|
932
|
+
closeButtonProps?: ButtonProps;
|
|
933
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
430
934
|
}
|
|
431
935
|
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
432
|
-
interface DialogProps extends
|
|
433
|
-
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
936
|
+
interface DialogProps extends ModalProps {
|
|
434
937
|
label?: string;
|
|
435
938
|
labelledBy?: string;
|
|
436
939
|
describedBy?: string;
|
|
437
940
|
}
|
|
438
941
|
declare const Dialog: react.ForwardRefExoticComponent<DialogProps & react.RefAttributes<HTMLDivElement>>;
|
|
439
|
-
|
|
942
|
+
type ProgressSlot = "root" | "base" | "labelWrapper" | "label" | "svgWrapper" | "svg" | "track" | "value" | "indicator";
|
|
943
|
+
interface ProgressProps extends HTMLAttributes<HTMLDivElement>, ComponentCustomizationProps<ProgressSlot> {
|
|
440
944
|
value?: number;
|
|
441
945
|
min?: number;
|
|
442
946
|
max?: number;
|
|
443
947
|
variant?: "linear" | "circular";
|
|
444
948
|
size?: number | string;
|
|
445
949
|
thickness?: number;
|
|
446
|
-
label?:
|
|
950
|
+
label?: ReactNode;
|
|
447
951
|
showValue?: boolean;
|
|
448
952
|
tone?: GlassTone;
|
|
953
|
+
minValue?: number;
|
|
954
|
+
maxValue?: number;
|
|
955
|
+
color?: ComponentColor;
|
|
956
|
+
radius?: number | string;
|
|
957
|
+
valueLabel?: ReactNode;
|
|
958
|
+
showValueLabel?: boolean;
|
|
959
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
960
|
+
isIndeterminate?: boolean;
|
|
961
|
+
isStriped?: boolean;
|
|
962
|
+
strokeWidth?: number;
|
|
963
|
+
isDisabled?: boolean;
|
|
964
|
+
disableAnimation?: boolean;
|
|
449
965
|
}
|
|
450
966
|
declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
451
967
|
declare const CircularProgress: react.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
452
968
|
declare const LinearProgress: react.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
453
|
-
interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
969
|
+
interface SkeletonProps extends HTMLAttributes<HTMLSpanElement>, ComponentCustomizationProps<"root" | "base" | "content"> {
|
|
454
970
|
variant?: "text" | "rectangular" | "rounded" | "circular";
|
|
455
971
|
width?: number | string;
|
|
456
972
|
height?: number | string;
|
|
457
973
|
animation?: "pulse" | "wave" | false;
|
|
458
974
|
lines?: number;
|
|
975
|
+
isLoaded?: boolean;
|
|
976
|
+
disableAnimation?: boolean;
|
|
459
977
|
}
|
|
460
978
|
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLSpanElement>>;
|
|
461
|
-
interface SnackbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
979
|
+
interface SnackbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, ComponentCustomizationProps<"root" | "base" | "content" | "title" | "description" | "icon" | "closeButton" | "progressTrack" | "progressIndicator"> {
|
|
462
980
|
open: boolean;
|
|
463
981
|
message?: ReactNode;
|
|
464
982
|
onClose?: (reason: "timeout" | "escape" | "close") => void;
|
|
@@ -466,6 +984,22 @@ interface SnackbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
466
984
|
action?: ReactNode;
|
|
467
985
|
placement?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end";
|
|
468
986
|
portal?: boolean;
|
|
987
|
+
title?: ReactNode;
|
|
988
|
+
description?: ReactNode;
|
|
989
|
+
icon?: ReactNode;
|
|
990
|
+
color?: ComponentColor;
|
|
991
|
+
severity?: "default" | "success" | "warning" | "danger" | "info";
|
|
992
|
+
variant?: AlertProps["variant"];
|
|
993
|
+
radius?: number | string;
|
|
994
|
+
endContent?: ReactNode;
|
|
995
|
+
closeIcon?: ReactNode;
|
|
996
|
+
timeout?: number | null;
|
|
997
|
+
promise?: PromiseLike<unknown>;
|
|
998
|
+
loadingComponent?: ReactNode;
|
|
999
|
+
hideIcon?: boolean;
|
|
1000
|
+
hideCloseButton?: boolean;
|
|
1001
|
+
shouldShowTimeoutProgress?: boolean;
|
|
1002
|
+
disableAnimation?: boolean;
|
|
469
1003
|
}
|
|
470
1004
|
declare const Snackbar: react.ForwardRefExoticComponent<SnackbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
471
1005
|
|
|
@@ -473,30 +1007,85 @@ interface PaperProps extends GlassSurfaceProps {
|
|
|
473
1007
|
elevation?: 0 | 1 | 2 | 3 | 4;
|
|
474
1008
|
}
|
|
475
1009
|
declare const Paper: react.ForwardRefExoticComponent<PaperProps & react.RefAttributes<HTMLDivElement>>;
|
|
476
|
-
interface CardProps extends GlassSurfaceProps {
|
|
1010
|
+
interface CardProps extends Omit<GlassSurfaceProps, "classNames" | "styles" | "radius">, ComponentCustomizationProps<"root" | "base" | "light" | "content" | "header" | "body" | "footer">, PressProps<HTMLDivElement> {
|
|
477
1011
|
orientation?: "vertical" | "horizontal";
|
|
478
1012
|
selected?: boolean;
|
|
479
1013
|
disabled?: boolean;
|
|
1014
|
+
radius?: number | string;
|
|
1015
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
1016
|
+
fullWidth?: boolean;
|
|
1017
|
+
isHoverable?: boolean;
|
|
1018
|
+
isPressable?: boolean;
|
|
1019
|
+
isBlurred?: boolean;
|
|
1020
|
+
isFooterBlurred?: boolean;
|
|
1021
|
+
isDisabled?: boolean;
|
|
1022
|
+
disableAnimation?: boolean;
|
|
1023
|
+
disableRipple?: boolean;
|
|
1024
|
+
allowTextSelectionOnPress?: boolean;
|
|
480
1025
|
}
|
|
481
1026
|
declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
482
1027
|
interface AppBarProps extends GlassSurfaceProps {
|
|
483
1028
|
position?: "static" | "sticky" | "fixed";
|
|
484
1029
|
edge?: "top" | "bottom";
|
|
485
1030
|
safeArea?: boolean;
|
|
1031
|
+
height?: number | string;
|
|
1032
|
+
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
1033
|
+
parentRef?: RefObject<HTMLElement | null>;
|
|
1034
|
+
isBordered?: boolean;
|
|
1035
|
+
isBlurred?: boolean;
|
|
1036
|
+
shouldHideOnScroll?: boolean;
|
|
1037
|
+
disableScrollHandler?: boolean;
|
|
1038
|
+
disableAnimation?: boolean;
|
|
1039
|
+
onScrollPositionChange?: (position: number) => void;
|
|
486
1040
|
}
|
|
487
1041
|
declare const AppBar: react.ForwardRefExoticComponent<AppBarProps & react.RefAttributes<HTMLDivElement>>;
|
|
488
|
-
interface AccordionProps extends Omit<GlassSurfaceProps, "onChange" | "defaultValue"> {
|
|
1042
|
+
interface AccordionProps extends Omit<GlassSurfaceProps, "onChange" | "defaultValue" | "variant"> {
|
|
489
1043
|
expanded?: boolean;
|
|
490
1044
|
defaultExpanded?: boolean;
|
|
491
1045
|
onExpandedChange?: (expanded: boolean) => void;
|
|
492
1046
|
disabled?: boolean;
|
|
1047
|
+
variant?: GlassVariant | "light" | "shadow" | "bordered" | "splitted";
|
|
1048
|
+
selectionMode?: "single" | "multiple" | "none";
|
|
1049
|
+
selectionBehavior?: "toggle" | "replace";
|
|
1050
|
+
isCompact?: boolean;
|
|
1051
|
+
isDisabled?: boolean;
|
|
1052
|
+
showDivider?: boolean;
|
|
1053
|
+
dividerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1054
|
+
hideIndicator?: boolean;
|
|
1055
|
+
disableAnimation?: boolean;
|
|
1056
|
+
disableIndicatorAnimation?: boolean;
|
|
1057
|
+
disallowEmptySelection?: boolean;
|
|
1058
|
+
keepContentMounted?: boolean;
|
|
1059
|
+
fullWidth?: boolean;
|
|
1060
|
+
disabledKeys?: Iterable<Key>;
|
|
1061
|
+
itemClasses?: AccordionItemProps["classNames"];
|
|
1062
|
+
selectedKeys?: Iterable<Key> | "all";
|
|
1063
|
+
defaultSelectedKeys?: Iterable<Key> | "all";
|
|
1064
|
+
onSelectionChange?: (keys: Set<Key>) => void;
|
|
493
1065
|
}
|
|
494
1066
|
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
495
1067
|
interface AccordionSummaryProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
496
1068
|
indicator?: ReactNode;
|
|
1069
|
+
hideIndicator?: boolean;
|
|
1070
|
+
indicatorClassName?: string;
|
|
497
1071
|
}
|
|
498
1072
|
declare const AccordionSummary: react.ForwardRefExoticComponent<AccordionSummaryProps & react.RefAttributes<HTMLButtonElement>>;
|
|
499
1073
|
declare const AccordionDetails: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
1074
|
+
interface AccordionItemProps extends Omit<AccordionProps, "title" | "classNames" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "children">, PressProps<HTMLButtonElement> {
|
|
1075
|
+
title?: ReactNode;
|
|
1076
|
+
subtitle?: ReactNode;
|
|
1077
|
+
startContent?: ReactNode;
|
|
1078
|
+
indicator?: ReactNode | ((state: {
|
|
1079
|
+
isOpen: boolean;
|
|
1080
|
+
isDisabled: boolean;
|
|
1081
|
+
indicator: ReactNode;
|
|
1082
|
+
}) => ReactNode);
|
|
1083
|
+
HeadingComponent?: "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
1084
|
+
onFocusChange?: (focused: boolean) => void;
|
|
1085
|
+
children?: ReactNode;
|
|
1086
|
+
classNames?: Partial<Record<"base" | "heading" | "trigger" | "titleWrapper" | "title" | "subtitle" | "startContent" | "indicator" | "content", string>>;
|
|
1087
|
+
}
|
|
1088
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
500
1089
|
|
|
501
1090
|
interface BottomNavigationProps extends Omit<GlassSurfaceProps, "onChange" | "defaultValue"> {
|
|
502
1091
|
value?: string;
|
|
@@ -509,54 +1098,122 @@ interface BottomNavigationProps extends Omit<GlassSurfaceProps, "onChange" | "de
|
|
|
509
1098
|
expandedContent?: ReactNode;
|
|
510
1099
|
accessory?: ReactNode;
|
|
511
1100
|
}
|
|
512
|
-
declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps &
|
|
1101
|
+
declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & RefAttributes<HTMLDivElement>>;
|
|
513
1102
|
interface BottomNavigationActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
514
1103
|
value: string;
|
|
515
1104
|
label: ReactNode;
|
|
516
1105
|
icon?: ReactNode;
|
|
517
1106
|
}
|
|
518
|
-
declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps &
|
|
519
|
-
interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
1107
|
+
declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & RefAttributes<HTMLButtonElement>>;
|
|
1108
|
+
interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomizationProps<"root" | "base" | "list" | "ellipsis" | "separator"> {
|
|
520
1109
|
separator?: ReactNode;
|
|
521
1110
|
maxItems?: number;
|
|
522
1111
|
itemsBeforeCollapse?: number;
|
|
523
1112
|
itemsAfterCollapse?: number;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
1113
|
+
variant?: "solid" | "bordered" | "light";
|
|
1114
|
+
color?: ComponentColor;
|
|
1115
|
+
size?: "sm" | "md" | "lg";
|
|
1116
|
+
radius?: number | string;
|
|
1117
|
+
underline?: LinkProps["underline"];
|
|
1118
|
+
hideSeparator?: boolean;
|
|
1119
|
+
isDisabled?: boolean;
|
|
1120
|
+
disableAnimation?: boolean;
|
|
1121
|
+
itemClasses?: Partial<Record<"base" | "item" | "separator", string>>;
|
|
1122
|
+
onAction?: (key: Key) => void;
|
|
1123
|
+
}
|
|
1124
|
+
declare const Breadcrumbs: react.ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLElement>>;
|
|
1125
|
+
interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, Omit<ComponentCustomizationProps<OverlaySlot>, "motionDuration">, OverlayStateProps {
|
|
1126
|
+
open?: boolean;
|
|
528
1127
|
onClose?: () => void;
|
|
529
1128
|
anchor?: "left" | "right" | "top" | "bottom";
|
|
1129
|
+
placement?: DrawerProps["anchor"];
|
|
530
1130
|
variant?: "temporary" | "persistent" | "permanent";
|
|
531
1131
|
size?: number | string;
|
|
532
1132
|
label?: string;
|
|
533
1133
|
motionDuration?: number;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
declare const
|
|
541
|
-
interface
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
1134
|
+
radius?: number | string;
|
|
1135
|
+
backdrop?: ModalProps["backdrop"];
|
|
1136
|
+
hideCloseButton?: boolean;
|
|
1137
|
+
closeButton?: ReactNode;
|
|
1138
|
+
children?: ModalProps["children"];
|
|
1139
|
+
}
|
|
1140
|
+
declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDivElement>>;
|
|
1141
|
+
interface LinkOptions extends PressProps<HTMLAnchorElement> {
|
|
1142
|
+
underline?: "always" | "hover" | "none" | "active" | "focus";
|
|
1143
|
+
color?: ComponentColor;
|
|
1144
|
+
size?: "sm" | "md" | "lg";
|
|
1145
|
+
isExternal?: boolean;
|
|
1146
|
+
showAnchorIcon?: boolean;
|
|
1147
|
+
anchorIcon?: ReactNode;
|
|
1148
|
+
isBlock?: boolean;
|
|
1149
|
+
isDisabled?: boolean;
|
|
1150
|
+
disableAnimation?: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "color">, LinkOptions {
|
|
1153
|
+
as?: "a";
|
|
1154
|
+
}
|
|
1155
|
+
/** Props for a router Link that forwards anchor attributes and its ref to an <a>. */
|
|
1156
|
+
type LinkComponentProps<C extends JSXElementConstructor<any>> = LinkOptions & {
|
|
1157
|
+
as: C;
|
|
1158
|
+
} & Omit<ComponentPropsWithoutRef<C>, keyof LinkOptions | "as">;
|
|
1159
|
+
declare const Link: {
|
|
1160
|
+
<C extends JSXElementConstructor<any>>(props: LinkComponentProps<C> & RefAttributes<HTMLAnchorElement>): ReactElement | null;
|
|
1161
|
+
(props: LinkProps & RefAttributes<HTMLAnchorElement>): ReactElement | null;
|
|
1162
|
+
};
|
|
1163
|
+
interface MenuProps<T = unknown> extends Omit<PopoverProps, "children" | "classNames" | "autoFocus">, CollectionSelectionProps {
|
|
546
1164
|
label?: string;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
1165
|
+
items?: Iterable<T>;
|
|
1166
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
1167
|
+
classNames?: PopoverProps["classNames"] & Partial<Record<"list" | "emptyContent", string>>;
|
|
1168
|
+
itemClasses?: MenuItemProps["classNames"];
|
|
1169
|
+
variant?: ControlVariant;
|
|
1170
|
+
isDisabled?: boolean;
|
|
1171
|
+
closeOnSelect?: boolean;
|
|
1172
|
+
topContent?: ReactNode;
|
|
1173
|
+
bottomContent?: ReactNode;
|
|
1174
|
+
emptyContent?: ReactNode;
|
|
1175
|
+
hideEmptyContent?: boolean;
|
|
1176
|
+
hideSelectedIcon?: boolean;
|
|
1177
|
+
shouldFocusWrap?: boolean;
|
|
1178
|
+
autoFocus?: boolean | "first" | "last";
|
|
1179
|
+
onAction?: (key: Key) => void;
|
|
1180
|
+
}
|
|
1181
|
+
declare const Menu: <T>(props: MenuProps<T> & React.RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
1182
|
+
interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title">, ComponentCustomizationProps<"root" | "base" | "wrapper" | "title" | "description" | "shortcut" | "selectedIcon" | "startContent" | "endContent">, PressProps<HTMLButtonElement> {
|
|
550
1183
|
leading?: ReactNode;
|
|
551
1184
|
trailing?: ReactNode;
|
|
552
1185
|
selected?: boolean;
|
|
553
1186
|
destructive?: boolean;
|
|
1187
|
+
itemKey?: Key;
|
|
1188
|
+
title?: ReactNode;
|
|
1189
|
+
textValue?: string;
|
|
1190
|
+
description?: ReactNode;
|
|
1191
|
+
shortcut?: ReactNode;
|
|
1192
|
+
startContent?: ReactNode;
|
|
1193
|
+
endContent?: ReactNode;
|
|
1194
|
+
selectedIcon?: ReactNode;
|
|
1195
|
+
isSelected?: boolean;
|
|
1196
|
+
isDisabled?: boolean;
|
|
1197
|
+
isReadOnly?: boolean;
|
|
1198
|
+
hideSelectedIcon?: boolean;
|
|
1199
|
+
showDivider?: boolean;
|
|
1200
|
+
closeOnSelect?: boolean;
|
|
1201
|
+
onAction?: (key: Key) => void;
|
|
1202
|
+
onClose?: () => void;
|
|
554
1203
|
}
|
|
555
|
-
declare const MenuItem: react.ForwardRefExoticComponent<MenuItemProps &
|
|
556
|
-
declare const MenuDivider: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> &
|
|
557
|
-
declare const Menubar: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> &
|
|
558
|
-
interface
|
|
559
|
-
|
|
1204
|
+
declare const MenuItem: react.ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLButtonElement>>;
|
|
1205
|
+
declare const MenuDivider: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
1206
|
+
declare const Menubar: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
1207
|
+
interface PaginationItemState {
|
|
1208
|
+
value: number | "prev" | "next" | "ellipsis";
|
|
1209
|
+
isActive: boolean;
|
|
1210
|
+
isDisabled: boolean;
|
|
1211
|
+
onPress: () => void;
|
|
1212
|
+
className?: string;
|
|
1213
|
+
"aria-label"?: string;
|
|
1214
|
+
}
|
|
1215
|
+
interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">, ComponentCustomizationProps<"root" | "base" | "wrapper" | "item" | "cursor" | "prev" | "next" | "ellipsis" | "chevronNext"> {
|
|
1216
|
+
count?: number;
|
|
560
1217
|
page?: number;
|
|
561
1218
|
defaultPage?: number;
|
|
562
1219
|
onPageChange?: (page: number) => void;
|
|
@@ -565,8 +1222,27 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">
|
|
|
565
1222
|
showFirstButton?: boolean;
|
|
566
1223
|
showLastButton?: boolean;
|
|
567
1224
|
disabled?: boolean;
|
|
1225
|
+
total?: number;
|
|
1226
|
+
initialPage?: number;
|
|
1227
|
+
onChange?: (page: number) => void;
|
|
1228
|
+
siblings?: number;
|
|
1229
|
+
boundaries?: number;
|
|
1230
|
+
dotsJump?: number;
|
|
1231
|
+
loop?: boolean;
|
|
1232
|
+
isCompact?: boolean;
|
|
1233
|
+
isDisabled?: boolean;
|
|
1234
|
+
showShadow?: boolean;
|
|
1235
|
+
showControls?: boolean;
|
|
1236
|
+
disableCursorAnimation?: boolean;
|
|
1237
|
+
disableAnimation?: boolean;
|
|
1238
|
+
variant?: "flat" | "bordered" | "light" | "faded";
|
|
1239
|
+
color?: ComponentColor;
|
|
1240
|
+
size?: "sm" | "md" | "lg";
|
|
1241
|
+
radius?: number | string;
|
|
1242
|
+
getItemAriaLabel?: (page: string) => string;
|
|
1243
|
+
renderItem?: (item: PaginationItemState) => ReactNode;
|
|
568
1244
|
}
|
|
569
|
-
declare const Pagination: react.ForwardRefExoticComponent<PaginationProps &
|
|
1245
|
+
declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
|
|
570
1246
|
interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
571
1247
|
open?: boolean;
|
|
572
1248
|
defaultOpen?: boolean;
|
|
@@ -576,43 +1252,65 @@ interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"
|
|
|
576
1252
|
label: string;
|
|
577
1253
|
direction?: "up" | "down" | "left" | "right";
|
|
578
1254
|
}
|
|
579
|
-
declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps &
|
|
1255
|
+
declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & RefAttributes<HTMLDivElement>>;
|
|
580
1256
|
interface SpeedDialActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
581
1257
|
icon: ReactNode;
|
|
582
1258
|
label: string;
|
|
583
1259
|
}
|
|
584
|
-
declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps &
|
|
1260
|
+
declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & RefAttributes<HTMLButtonElement>>;
|
|
585
1261
|
interface StepperProps extends HTMLAttributes<HTMLDivElement> {
|
|
586
1262
|
activeStep?: number;
|
|
587
1263
|
orientation?: "horizontal" | "vertical";
|
|
588
1264
|
}
|
|
589
|
-
declare const Stepper: react.ForwardRefExoticComponent<StepperProps &
|
|
1265
|
+
declare const Stepper: react.ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLDivElement>>;
|
|
590
1266
|
interface StepProps extends HTMLAttributes<HTMLDivElement> {
|
|
591
1267
|
index?: number;
|
|
592
1268
|
completed?: boolean;
|
|
593
1269
|
disabled?: boolean;
|
|
594
1270
|
optional?: ReactNode;
|
|
595
1271
|
}
|
|
596
|
-
declare const Step: react.ForwardRefExoticComponent<StepProps &
|
|
597
|
-
declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> &
|
|
598
|
-
interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
1272
|
+
declare const Step: react.ForwardRefExoticComponent<StepProps & RefAttributes<HTMLDivElement>>;
|
|
1273
|
+
declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
|
|
1274
|
+
interface TabsProps<T = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children">, ComponentCustomizationProps<"root" | "base" | "tabList" | "tab" | "tabContent" | "cursor" | "panel" | "tabWrapper"> {
|
|
599
1275
|
value?: string;
|
|
600
1276
|
defaultValue?: string;
|
|
601
1277
|
onValueChange?: (value: string) => void;
|
|
602
|
-
variant?: "standard" | "segmented" | "scrollable";
|
|
1278
|
+
variant?: "standard" | "segmented" | "scrollable" | "solid" | "underlined" | "bordered" | "light";
|
|
603
1279
|
label?: string;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
1280
|
+
color?: ComponentColor;
|
|
1281
|
+
size?: GlassSize;
|
|
1282
|
+
radius?: number | string;
|
|
1283
|
+
fullWidth?: boolean;
|
|
1284
|
+
items?: Iterable<T>;
|
|
1285
|
+
children?: ReactNode | ((item: T) => ReactNode);
|
|
1286
|
+
disabledKeys?: Iterable<Key>;
|
|
1287
|
+
selectedKey?: Key | null;
|
|
1288
|
+
defaultSelectedKey?: Key;
|
|
1289
|
+
onSelectionChange?: (key: Key) => void;
|
|
1290
|
+
keyboardActivation?: "manual" | "automatic";
|
|
1291
|
+
isDisabled?: boolean;
|
|
1292
|
+
disableAnimation?: boolean;
|
|
1293
|
+
disableCursorAnimation?: boolean;
|
|
1294
|
+
isVertical?: boolean;
|
|
1295
|
+
placement?: "top" | "bottom" | "start" | "end";
|
|
1296
|
+
shouldSelectOnPressUp?: boolean;
|
|
1297
|
+
destroyInactiveTabPanel?: boolean;
|
|
1298
|
+
}
|
|
1299
|
+
declare const Tabs: <T>(props: TabsProps<T> & React.RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
1300
|
+
interface TabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
|
|
1301
|
+
value?: string;
|
|
608
1302
|
icon?: ReactNode;
|
|
1303
|
+
tabRef?: Ref<HTMLButtonElement>;
|
|
1304
|
+
title?: ReactNode;
|
|
1305
|
+
titleValue?: string;
|
|
1306
|
+
shouldSelectOnPressUp?: boolean;
|
|
609
1307
|
}
|
|
610
|
-
declare const Tab: react.ForwardRefExoticComponent<TabProps &
|
|
1308
|
+
declare const Tab: react.ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
|
|
611
1309
|
interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
612
1310
|
value: string;
|
|
613
1311
|
keepMounted?: boolean;
|
|
614
1312
|
}
|
|
615
|
-
declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps &
|
|
1313
|
+
declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
|
|
616
1314
|
|
|
617
1315
|
type BottomSheetCloseReason = "escape" | "backdrop" | "swipe";
|
|
618
1316
|
interface BottomSheetProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -713,7 +1411,9 @@ interface DataGridProps<Row extends {
|
|
|
713
1411
|
declare function DataGrid<Row extends {
|
|
714
1412
|
id: string | number;
|
|
715
1413
|
}>({ rows, columns, selectedRows, onSelectedRowsChange, emptyText, striped, className, ...props }: DataGridProps<Row>): react.JSX.Element;
|
|
716
|
-
|
|
1414
|
+
type PickerSlot = FieldSlot | "selectorButton" | "selectorIcon" | "popoverContent" | "calendar" | "calendarContent" | "timeInputLabel" | "timeInput" | "segment";
|
|
1415
|
+
type Weekday = "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
|
|
1416
|
+
interface DatePickerProps extends Omit<TextFieldProps, "type" | "value" | "defaultValue" | "onChange" | "leading" | "trailing" | "classNames" | "styles" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp">, ComponentCustomizationProps<PickerSlot>, Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp"> {
|
|
717
1417
|
value?: string;
|
|
718
1418
|
defaultValue?: string;
|
|
719
1419
|
onValueChange?: (value: string) => void;
|
|
@@ -722,9 +1422,28 @@ interface DatePickerProps extends Omit<TextFieldProps, "type" | "value" | "defau
|
|
|
722
1422
|
defaultOpen?: boolean;
|
|
723
1423
|
onOpenChange?: (open: boolean) => void;
|
|
724
1424
|
locale?: string;
|
|
725
|
-
firstDayOfWeek?: 0 | 1;
|
|
1425
|
+
firstDayOfWeek?: 0 | 1 | Weekday;
|
|
726
1426
|
minuteStep?: number;
|
|
727
1427
|
formatValue?: (value: string) => ReactNode;
|
|
1428
|
+
minValue?: string;
|
|
1429
|
+
maxValue?: string;
|
|
1430
|
+
placeholderValue?: string;
|
|
1431
|
+
visibleMonths?: number;
|
|
1432
|
+
selectionAlignment?: "start" | "center" | "end";
|
|
1433
|
+
pageBehavior?: "single" | "visible";
|
|
1434
|
+
calendarWidth?: number | string;
|
|
1435
|
+
isDateUnavailable?: (value: string) => boolean;
|
|
1436
|
+
selectorIcon?: ReactNode;
|
|
1437
|
+
selectorButtonProps?: ButtonProps;
|
|
1438
|
+
popoverProps?: Partial<PopoverProps>;
|
|
1439
|
+
calendarProps?: HTMLAttributes<HTMLDivElement>;
|
|
1440
|
+
timeInputProps?: HTMLAttributes<HTMLDivElement>;
|
|
1441
|
+
CalendarBottomContent?: ReactNode;
|
|
1442
|
+
showMonthAndYearPickers?: boolean;
|
|
1443
|
+
hourCycle?: 12 | 24;
|
|
1444
|
+
granularity?: "day" | "hour" | "minute";
|
|
1445
|
+
shouldForceLeadingZeros?: boolean;
|
|
1446
|
+
onFocusChange?: (focused: boolean) => void;
|
|
728
1447
|
}
|
|
729
1448
|
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
730
1449
|
declare const TimePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
@@ -762,4 +1481,4 @@ interface TreeItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
|
762
1481
|
}
|
|
763
1482
|
declare const TreeItem: react.ForwardRefExoticComponent<TreeItemProps & react.RefAttributes<HTMLLIElement>>;
|
|
764
1483
|
|
|
765
|
-
export { Accordion, AccordionDetails, type AccordionProps, AccordionSummary, type AccordionSummaryProps, Actions, Alert, type AlertProps, AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Backdrop, type BackdropProps, Badge, type BadgeProps, BottomNavigation, BottomNavigationAction, type BottomNavigationActionProps, type BottomNavigationProps, BottomSheet, type BottomSheetCloseReason, type BottomSheetProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSlot, Card, type CardProps, Chart, type ChartProps, type ChartSeries, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, ClickAwayListener, type ClickAwayListenerProps, type ColorScheme, type CommonProps, type ComponentCustomizationProps, Container, type ContainerProps, Content, CssBaseline, type CssBaselineProps, DataGrid, type DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, DateTimePicker, Description, Dialog, type DialogProps, Divider, type DividerProps, Drawer, type DrawerProps, Fab, type FabProps, Footer, Glass, type GlassConfig, GlassProvider, type GlassProviderProps, type GlassSize, type GlassStyleProperties, type GlassSurfaceProps, type GlassTone, type GlassVariant, Grid, GridItem, type GridItemProps, type GridProps, Header, Icon, IconButton, type IconButtonProps, type IconProps, ImageList, ImageListItem, type ImageListItemProps, type ImageListProps, InitColorSchemeScript, type InitColorSchemeScriptProps, LinearProgress, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, ListSubheader, Masonry, type MasonryProps, Menu, MenuDivider, MenuItem, type MenuItemProps, type MenuProps, Menubar, Modal, type ModalProps, NoSsr, type NoSsrProps, NumberField, type NumberFieldProps, Pagination, type PaginationProps, Paper, type PaperProps, type Placement, type PolymorphicProps, Popover, type PopoverProps, Popper, type PopperProps, Portal, type PortalProps, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, Select, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderSlot, type SlotClassNames, type SlotStyles, Snackbar, type SnackbarProps, SpeedDial, SpeedDialAction, type SpeedDialActionProps, type SpeedDialProps, Stack, type StackProps, Step, StepLabel, type StepProps, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSlot, Tab, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableContainer, type TableContainerProps, TableFooter, TableHead, TableHeader, TableRow, Tabs, type TabsProps, TextField, type TextFieldProps, TextareaAutosize, type TextareaAutosizeProps, TimePicker, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Title, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, type TransferItem, TransferList, type TransferListProps, Transition, type TransitionProps, TreeItem, type TreeItemProps, TreeView, type TreeViewProps, Typography, type TypographyProps, type TypographyVariant, VisuallyHidden, glassStyle, useClickAway, useControllableState, useFocusTrap, useGlass, useMediaQuery, useMergedStateMap, useSafeLayoutEffect };
|
|
1484
|
+
export { Accordion, AccordionDetails, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, Actions, Alert, type AlertProps, AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Backdrop, type BackdropProps, Badge, type BadgeProps, BottomNavigation, BottomNavigationAction, type BottomNavigationActionProps, type BottomNavigationProps, BottomSheet, type BottomSheetCloseReason, type BottomSheetProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSlot, Card, type CardProps, Chart, type ChartProps, type ChartSeries, Checkbox, type CheckboxProps, Chip, type ChipProps, type ChoiceSlot, CircularProgress, ClickAwayListener, type ClickAwayListenerProps, type ColorScheme, type CommonProps, type ComponentColor, type ComponentCustomizationProps, type ComponentRadius, Container, type ContainerProps, Content, type ControlVariant, CssBaseline, type CssBaselineProps, DataGrid, type DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, DateTimePicker, Description, Dialog, type DialogProps, Divider, type DividerProps, Drawer, type DrawerProps, Fab, type FabProps, type FieldSlot, Footer, Glass, type GlassConfig, GlassProvider, type GlassProviderProps, type GlassSize, type GlassStyleProperties, type GlassSurfaceProps, type GlassTone, type GlassVariant, Grid, GridItem, type GridItemProps, type GridProps, Header, Icon, IconButton, type IconButtonProps, type IconProps, ImageList, ImageListItem, type ImageListItemProps, type ImageListProps, InitColorSchemeScript, type InitColorSchemeScriptProps, type LabelPlacement, LinearProgress, Link, type LinkComponentProps, type LinkProps, List, ListItem, type ListItemProps, type ListItemSlot, type ListProps, type ListSlot, ListSubheader, Masonry, type MasonryProps, Menu, MenuDivider, MenuItem, type MenuItemProps, type MenuProps, Menubar, Modal, type ModalCloseReason, type ModalProps, type ModalSize, NoSsr, type NoSsrProps, NumberField, type NumberFieldProps, type OverlaySlot, type OverlayStateProps, Pagination, type PaginationItemState, type PaginationProps, Paper, type PaperProps, type Placement, type PolymorphicProps, Popover, type PopoverProps, Popper, type PopperProps, Portal, type PortalProps, type PressEvent, type PressProps, Progress, type ProgressProps, type ProgressSlot, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RangeSliderProps, Rating, type RatingProps, Select, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, type SelectionKeys, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderSlot, type SlotClassNames, type SlotStyles, Snackbar, type SnackbarProps, SpeedDial, SpeedDialAction, type SpeedDialActionProps, type SpeedDialProps, Stack, type StackProps, Step, StepLabel, type StepProps, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSlot, Tab, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, TableCell, type TableCellProps, TableColumn, TableContainer, type TableContainerProps, TableFooter, TableHead, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, type TableSlot, type TableSortDescriptor, Tabs, type TabsProps, TextField, type TextFieldProps, TextareaAutosize, type TextareaAutosizeProps, type TextareaSlot, TimePicker, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Title, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, type TransferItem, TransferList, type TransferListProps, Transition, type TransitionProps, TreeItem, type TreeItemProps, TreeView, type TreeViewProps, Typography, type TypographyProps, type TypographyVariant, type ValidationResult, VisuallyHidden, glassStyle, useClickAway, useControllableState, useFocusTrap, useGlass, useMediaQuery, useMergedStateMap, useSafeLayoutEffect };
|