liquid-glass-for-react 0.0.5 → 0.2.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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +289 -66
  3. package/dist/index.cjs +4 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +1474 -0
  6. package/dist/index.d.ts +1474 -2
  7. package/dist/index.js +4 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/styles.css +1178 -0
  10. package/package.json +67 -36
  11. package/dist/App.d.ts +0 -3
  12. package/dist/App.d.ts.map +0 -1
  13. package/dist/components/Alert/Alert.d.ts +0 -21
  14. package/dist/components/Alert/Alert.d.ts.map +0 -1
  15. package/dist/components/Alert/index.d.ts +0 -2
  16. package/dist/components/Alert/index.d.ts.map +0 -1
  17. package/dist/components/Badge/Badge.d.ts +0 -7
  18. package/dist/components/Badge/Badge.d.ts.map +0 -1
  19. package/dist/components/Badge/index.d.ts +0 -2
  20. package/dist/components/Badge/index.d.ts.map +0 -1
  21. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  22. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  23. package/dist/components/Breadcrumbs/index.d.ts +0 -2
  24. package/dist/components/Breadcrumbs/index.d.ts.map +0 -1
  25. package/dist/components/Button/Button.d.ts +0 -14
  26. package/dist/components/Button/Button.d.ts.map +0 -1
  27. package/dist/components/Button/index.d.ts +0 -2
  28. package/dist/components/Button/index.d.ts.map +0 -1
  29. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -6
  30. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +0 -1
  31. package/dist/components/ButtonGroup/index.d.ts +0 -2
  32. package/dist/components/ButtonGroup/index.d.ts.map +0 -1
  33. package/dist/components/Calendar/Calendar.d.ts +0 -5
  34. package/dist/components/Calendar/Calendar.d.ts.map +0 -1
  35. package/dist/components/Calendar/index.d.ts +0 -2
  36. package/dist/components/Calendar/index.d.ts.map +0 -1
  37. package/dist/components/Card/Card.d.ts +0 -7
  38. package/dist/components/Card/Card.d.ts.map +0 -1
  39. package/dist/components/Card/CardBody.d.ts +0 -6
  40. package/dist/components/Card/CardBody.d.ts.map +0 -1
  41. package/dist/components/Card/CardFooter.d.ts +0 -6
  42. package/dist/components/Card/CardFooter.d.ts.map +0 -1
  43. package/dist/components/Card/CardHeader.d.ts +0 -14
  44. package/dist/components/Card/CardHeader.d.ts.map +0 -1
  45. package/dist/components/Card/index.d.ts +0 -3
  46. package/dist/components/Card/index.d.ts.map +0 -1
  47. package/dist/components/Checkbox/Checkbox.d.ts +0 -7
  48. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  49. package/dist/components/Checkbox/index.d.ts +0 -2
  50. package/dist/components/Checkbox/index.d.ts.map +0 -1
  51. package/dist/components/Chip/Chip.d.ts +0 -6
  52. package/dist/components/Chip/Chip.d.ts.map +0 -1
  53. package/dist/components/Chip/index.d.ts +0 -2
  54. package/dist/components/Chip/index.d.ts.map +0 -1
  55. package/dist/components/Code/Code.d.ts +0 -6
  56. package/dist/components/Code/Code.d.ts.map +0 -1
  57. package/dist/components/Code/index.d.ts +0 -2
  58. package/dist/components/Code/index.d.ts.map +0 -1
  59. package/dist/components/DatePicker/DatePicker.d.ts +0 -2
  60. package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
  61. package/dist/components/DatePicker/index.d.ts +0 -2
  62. package/dist/components/DatePicker/index.d.ts.map +0 -1
  63. package/dist/components/Dropdown/Dropdown.d.ts +0 -2
  64. package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
  65. package/dist/components/Dropdown/index.d.ts +0 -2
  66. package/dist/components/Dropdown/index.d.ts.map +0 -1
  67. package/dist/components/Input/Input.d.ts +0 -3
  68. package/dist/components/Input/Input.d.ts.map +0 -1
  69. package/dist/components/Modal/Modal.d.ts +0 -9
  70. package/dist/components/Modal/Modal.d.ts.map +0 -1
  71. package/dist/components/Modal/index.d.ts +0 -2
  72. package/dist/components/Modal/index.d.ts.map +0 -1
  73. package/dist/components/Pagination/Pagination.d.ts +0 -7
  74. package/dist/components/Pagination/Pagination.d.ts.map +0 -1
  75. package/dist/components/Pagination/index.d.ts +0 -2
  76. package/dist/components/Pagination/index.d.ts.map +0 -1
  77. package/dist/components/Radio/Radio.d.ts +0 -8
  78. package/dist/components/Radio/Radio.d.ts.map +0 -1
  79. package/dist/components/Radio/index.d.ts +0 -2
  80. package/dist/components/Radio/index.d.ts.map +0 -1
  81. package/dist/components/index.d.ts +0 -16
  82. package/dist/components/index.d.ts.map +0 -1
  83. package/dist/liquid-glass-for-react.es.js +0 -1081
  84. package/dist/liquid-glass-for-react.umd.js +0 -154
  85. package/dist/main.d.ts +0 -1
  86. package/dist/main.d.ts.map +0 -1
  87. package/dist/vite.svg +0 -1
package/dist/index.d.ts CHANGED
@@ -1,2 +1,1474 @@
1
- export * from './components/index'
2
- export {}
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, CSSProperties, ReactNode, ElementType, Key, RefObject, Dispatch, SetStateAction, useEffect, ReactElement, ButtonHTMLAttributes, InputHTMLAttributes, Ref, ChangeEvent, SelectHTMLAttributes, TextareaHTMLAttributes, ImgHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, AnchorHTMLAttributes } from 'react';
3
+
4
+ type GlassVariant = "regular" | "clear" | "prominent" | "tinted";
5
+ type GlassSize = "sm" | "md" | "lg" | "xl";
6
+ type GlassTone = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
7
+ interface GlassStyleProperties extends CSSProperties {
8
+ "--lg-accent"?: string;
9
+ "--lg-tint"?: string;
10
+ "--lg-radius"?: string;
11
+ "--lg-glass-radius"?: string;
12
+ "--lg-blur"?: string;
13
+ "--lg-glass-blur"?: string;
14
+ "--lg-saturation"?: string;
15
+ "--lg-glass-saturation"?: string;
16
+ "--lg-pointer-x"?: string;
17
+ "--lg-pointer-y"?: string;
18
+ "--lg-motion-duration-standard"?: string;
19
+ "--lg-motion-press-scale"?: string | number;
20
+ "--lg-motion-press-scale-subtle"?: string | number;
21
+ }
22
+ type SlotClassNames<Slot extends string> = Partial<Record<Slot, string>>;
23
+ type SlotStyles<Slot extends string> = Partial<Record<Slot, CSSProperties>>;
24
+ /** Per-instance customization. Theme tokens remain the inherited global fallback. */
25
+ interface ComponentCustomizationProps<Slot extends string = "root"> {
26
+ classNames?: SlotClassNames<Slot>;
27
+ styles?: SlotStyles<Slot>;
28
+ motionDuration?: number | string;
29
+ }
30
+ interface CommonProps {
31
+ className?: string;
32
+ children?: ReactNode;
33
+ style?: GlassStyleProperties;
34
+ }
35
+ interface PolymorphicProps extends CommonProps {
36
+ as?: ElementType;
37
+ id?: string;
38
+ role?: string;
39
+ title?: string;
40
+ tabIndex?: number;
41
+ "aria-label"?: string;
42
+ "aria-labelledby"?: string;
43
+ "aria-describedby"?: string;
44
+ "aria-hidden"?: boolean | "true" | "false";
45
+ "data-testid"?: string;
46
+ onClick?: HTMLAttributes<HTMLElement>["onClick"];
47
+ }
48
+ interface GlassSurfaceProps extends HTMLAttributes<HTMLDivElement>, ComponentCustomizationProps<"root" | "light" | "content"> {
49
+ variant?: GlassVariant;
50
+ tone?: GlassTone;
51
+ interactive?: boolean;
52
+ radius?: string;
53
+ blur?: number;
54
+ saturation?: number;
55
+ tint?: string;
56
+ refraction?: boolean;
57
+ pressScale?: number;
58
+ }
59
+ type Placement = "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
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
+
107
+ type ColorScheme = "light" | "dark" | "auto";
108
+ interface GlassConfig {
109
+ colorScheme: ColorScheme;
110
+ resolvedColorScheme: "light" | "dark";
111
+ accent: string;
112
+ locale?: string;
113
+ reduceTransparency: boolean;
114
+ reduceMotion: boolean;
115
+ }
116
+ interface GlassProviderProps extends HTMLAttributes<HTMLDivElement> {
117
+ children: ReactNode;
118
+ colorScheme?: ColorScheme;
119
+ accent?: string;
120
+ locale?: string;
121
+ reduceTransparency?: boolean;
122
+ reduceMotion?: boolean;
123
+ }
124
+ declare function GlassProvider({ children, colorScheme, accent, locale, reduceTransparency, reduceMotion, className, style, ...props }: GlassProviderProps): react.JSX.Element;
125
+ declare function useGlass(): GlassConfig;
126
+
127
+ declare const useSafeLayoutEffect: typeof useEffect;
128
+ declare function useControllableState<T>(controlled: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, Dispatch<SetStateAction<T>>];
129
+ declare function useClickAway<T extends HTMLElement>(handler: (event: MouseEvent | TouchEvent) => void): RefObject<T | null>;
130
+ declare function useMediaQuery(query: string, options?: {
131
+ defaultMatches?: boolean;
132
+ }): boolean;
133
+ declare function useFocusTrap<T extends HTMLElement>(open: boolean, mounted: boolean, visible: boolean, onEscape?: () => void): RefObject<T | null>;
134
+ declare function useMergedStateMap<T extends string | number>(initial?: readonly T[]): {
135
+ selected: Set<T>;
136
+ toggle: (item: T) => void;
137
+ clear: () => void;
138
+ };
139
+
140
+ declare const Glass: react.ForwardRefExoticComponent<GlassSurfaceProps & react.RefAttributes<HTMLDivElement>>;
141
+ declare const Title: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
142
+ declare const Description: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
143
+ declare const Content: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
144
+ declare const Actions: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
145
+ declare const Header: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
146
+ declare const Footer: react.ForwardRefExoticComponent<PolymorphicProps & Omit<HTMLAttributes<HTMLElement>, keyof PolymorphicProps> & react.RefAttributes<HTMLElement>>;
147
+ declare const VisuallyHidden: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
148
+ declare const glassStyle: (properties: GlassStyleProperties) => CSSProperties;
149
+
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;
265
+ tone?: GlassTone;
266
+ color?: ComponentColor;
267
+ size?: GlassSize;
268
+ loading?: boolean;
269
+ block?: boolean;
270
+ leading?: ReactNode;
271
+ trailing?: ReactNode;
272
+ radius?: number | string;
273
+ blur?: number;
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;
285
+ }
286
+ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
287
+ interface IconButtonProps extends Omit<ButtonProps, "leading" | "trailing"> {
288
+ "aria-label": string;
289
+ }
290
+ declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
291
+ interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
292
+ orientation?: "horizontal" | "vertical";
293
+ attached?: boolean;
294
+ size?: GlassSize;
295
+ variant?: ButtonProps["variant"];
296
+ color?: ComponentColor;
297
+ radius?: ButtonProps["radius"];
298
+ fullWidth?: boolean;
299
+ isDisabled?: boolean;
300
+ }
301
+ declare const ButtonGroup: react.ForwardRefExoticComponent<ButtonGroupProps & react.RefAttributes<HTMLDivElement>>;
302
+ interface FabProps extends ButtonProps {
303
+ extended?: boolean;
304
+ }
305
+ declare const Fab: react.ForwardRefExoticComponent<FabProps & react.RefAttributes<HTMLButtonElement>>;
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 {
308
+ label?: ReactNode;
309
+ helperText?: ReactNode;
310
+ error?: boolean;
311
+ size?: GlassSize;
312
+ leading?: ReactNode;
313
+ trailing?: ReactNode;
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;
330
+ }
331
+ declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
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"> {
361
+ value?: number;
362
+ defaultValue?: number;
363
+ min?: number;
364
+ max?: number;
365
+ step?: number;
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;
375
+ }
376
+ declare const NumberField: react.ForwardRefExoticComponent<NumberFieldProps & react.RefAttributes<HTMLInputElement>>;
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 {
385
+ label?: ReactNode;
386
+ description?: ReactNode;
387
+ indeterminate?: boolean;
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";
398
+ }
399
+ declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
400
+ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">, FieldStateProps, ComponentCustomizationProps<"root" | "base" | "label" | "wrapper" | "description" | "errorMessage"> {
401
+ name?: string;
402
+ value?: string;
403
+ defaultValue?: string;
404
+ onValueChange?: (value: string) => void;
405
+ orientation?: "horizontal" | "vertical";
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;
416
+ }
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 {
419
+ label?: ReactNode;
420
+ description?: ReactNode;
421
+ value: string;
422
+ size?: "sm" | "md" | "lg";
423
+ }
424
+ declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
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 {
427
+ label?: ReactNode;
428
+ description?: ReactNode;
429
+ size?: "sm" | "md" | "lg";
430
+ trackColor?: string;
431
+ checkedColor?: string;
432
+ thumbColor?: string;
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);
441
+ }
442
+ declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
443
+ type SliderSlot = "root" | "base" | "header" | "labelWrapper" | "label" | "value" | "control" | "trackWrapper" | "track" | "fill" | "filler" | "thumb" | "input" | "mark" | "step" | "startContent" | "endContent";
444
+ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size">, ComponentCustomizationProps<SliderSlot> {
445
+ label?: ReactNode;
446
+ showValue?: boolean;
447
+ size?: "sm" | "md" | "lg";
448
+ formatValue?: (value: number) => ReactNode;
449
+ trackColor?: string;
450
+ fillColor?: string;
451
+ thumbColor?: string;
452
+ thumbSize?: number | string;
453
+ trackHeight?: number | string;
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;
518
+ }
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> {
521
+ label?: ReactNode;
522
+ helperText?: ReactNode;
523
+ error?: boolean;
524
+ block?: boolean;
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;
568
+ interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
569
+ value?: number;
570
+ defaultValue?: number;
571
+ max?: number;
572
+ precision?: 0.5 | 1;
573
+ readOnly?: boolean;
574
+ disabled?: boolean;
575
+ onValueChange?: (value: number) => void;
576
+ emptyIcon?: ReactNode;
577
+ icon?: ReactNode;
578
+ label?: string;
579
+ }
580
+ declare function Rating({ value: controlled, defaultValue, max, precision, readOnly, disabled, onValueChange, emptyIcon, icon, label, className, ...props }: RatingProps): react.JSX.Element;
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[];
583
+ value?: T | null;
584
+ defaultValue?: T | null;
585
+ onValueChange?: (value: T | null) => void;
586
+ getOptionLabel?: (option: T) => string;
587
+ isOptionEqual?: (option: T, value: T) => boolean;
588
+ label?: ReactNode;
589
+ placeholder?: string;
590
+ noOptionsText?: ReactNode;
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;
638
+ }
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;
640
+ interface ToggleButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
641
+ value?: string | string[];
642
+ defaultValue?: string | string[];
643
+ exclusive?: boolean;
644
+ disabled?: boolean;
645
+ onValueChange?: (value: string | string[]) => void;
646
+ }
647
+ declare function ToggleButtonGroup({ value: controlled, defaultValue, exclusive, disabled, onValueChange, className, children, ...props }: ToggleButtonGroupProps): react.JSX.Element;
648
+ interface ToggleButtonProps extends Omit<ButtonProps, "value"> {
649
+ value: string;
650
+ selected?: boolean;
651
+ onSelectedChange?: (selected: boolean) => void;
652
+ }
653
+ declare const ToggleButton: react.ForwardRefExoticComponent<ToggleButtonProps & react.RefAttributes<HTMLButtonElement>>;
654
+ interface TransferItem {
655
+ id: string;
656
+ label: ReactNode;
657
+ disabled?: boolean;
658
+ }
659
+ interface TransferListProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
660
+ items: readonly TransferItem[];
661
+ value?: readonly string[];
662
+ defaultValue?: readonly string[];
663
+ onValueChange?: (value: string[]) => void;
664
+ availableLabel?: ReactNode;
665
+ selectedLabel?: ReactNode;
666
+ }
667
+ declare function TransferList({ items, value: controlled, defaultValue, onValueChange, availableLabel, selectedLabel, className, ...props }: TransferListProps): react.JSX.Element;
668
+
669
+ interface AvatarProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">, ComponentCustomizationProps<"root" | "base" | "img" | "fallback" | "name" | "icon"> {
670
+ src?: string;
671
+ alt?: string;
672
+ fallback?: ReactNode;
673
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
674
+ shape?: "circle" | "rounded" | "square";
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;
685
+ }
686
+ declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLSpanElement>>;
687
+ interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement>, ComponentCustomizationProps<"root" | "base" | "count"> {
688
+ max?: number;
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;
697
+ }
698
+ declare const AvatarGroup: react.ForwardRefExoticComponent<AvatarGroupProps & react.RefAttributes<HTMLDivElement>>;
699
+ interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content">, ComponentCustomizationProps<"root" | "base" | "badge"> {
700
+ content?: ReactNode;
701
+ tone?: GlassTone;
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";
704
+ invisible?: boolean;
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;
715
+ }
716
+ declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
717
+ interface ChipProps extends HTMLAttributes<HTMLSpanElement>, ComponentCustomizationProps<"root" | "base" | "content" | "dot" | "closeButton"> {
718
+ label?: ReactNode;
719
+ tone?: GlassTone;
720
+ variant?: "filled" | "outlined" | "glass" | "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "dot";
721
+ size?: "sm" | "md" | "lg";
722
+ leading?: ReactNode;
723
+ onDelete?: () => void;
724
+ disabled?: boolean;
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;
733
+ }
734
+ declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLSpanElement>>;
735
+ interface DividerProps extends HTMLAttributes<HTMLDivElement> {
736
+ orientation?: "horizontal" | "vertical";
737
+ inset?: boolean;
738
+ decorative?: boolean;
739
+ }
740
+ declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
741
+ interface IconProps extends HTMLAttributes<HTMLSpanElement> {
742
+ size?: number | string;
743
+ color?: string;
744
+ label?: string;
745
+ }
746
+ declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<HTMLSpanElement>>;
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 {
750
+ divided?: boolean;
751
+ inset?: boolean;
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> {
770
+ leading?: ReactNode;
771
+ trailing?: ReactNode;
772
+ secondary?: ReactNode;
773
+ selected?: boolean;
774
+ disabled?: boolean;
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;
800
+ }
801
+ declare const ListItem: react.ForwardRefExoticComponent<ListItemProps & react.RefAttributes<HTMLLIElement>>;
802
+ declare const ListSubheader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
803
+ interface TableContainerProps extends HTMLAttributes<HTMLDivElement> {
804
+ glass?: boolean;
805
+ }
806
+ declare const TableContainer: react.ForwardRefExoticComponent<TableContainerProps & react.RefAttributes<HTMLDivElement>>;
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>>;
848
+ declare const TableHead: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
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;
859
+ declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
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>>;
883
+ declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
884
+ interface TooltipProps extends Omit<HTMLAttributes<HTMLSpanElement>, "content">, Omit<OverlayStateProps, "shouldBlockScroll">, ComponentCustomizationProps<"root" | "base" | "content" | "arrow"> {
885
+ content: ReactNode;
886
+ placement?: Placement;
887
+ delay?: number;
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;
905
+ }
906
+ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLSpanElement>>;
907
+ type TypographyVariant = "largeTitle" | "title1" | "title2" | "title3" | "headline" | "body" | "callout" | "subheadline" | "footnote" | "caption1" | "caption2";
908
+ interface TypographyProps extends PolymorphicProps {
909
+ variant?: TypographyVariant;
910
+ color?: "primary" | "secondary" | "tertiary" | "accent" | "inherit";
911
+ weight?: "regular" | "medium" | "semibold" | "bold";
912
+ truncate?: boolean;
913
+ }
914
+ declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLElement>>;
915
+
916
+ interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, ComponentCustomizationProps<"root" | "base" | "mainWrapper" | "title" | "description" | "iconWrapper" | "alertIcon" | "closeButton" | "endContent"> {
917
+ tone?: GlassTone;
918
+ variant?: "glass" | "soft" | "outlined" | "solid" | "bordered" | "flat" | "faded";
919
+ icon?: ReactNode | false;
920
+ onClose?: () => void;
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;
934
+ }
935
+ declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
936
+ interface DialogProps extends ModalProps {
937
+ label?: string;
938
+ labelledBy?: string;
939
+ describedBy?: string;
940
+ }
941
+ declare const Dialog: react.ForwardRefExoticComponent<DialogProps & react.RefAttributes<HTMLDivElement>>;
942
+ type ProgressSlot = "root" | "base" | "labelWrapper" | "label" | "svgWrapper" | "svg" | "track" | "value" | "indicator";
943
+ interface ProgressProps extends HTMLAttributes<HTMLDivElement>, ComponentCustomizationProps<ProgressSlot> {
944
+ value?: number;
945
+ min?: number;
946
+ max?: number;
947
+ variant?: "linear" | "circular";
948
+ size?: number | string;
949
+ thickness?: number;
950
+ label?: ReactNode;
951
+ showValue?: boolean;
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;
965
+ }
966
+ declare const Progress: react.ForwardRefExoticComponent<ProgressProps & react.RefAttributes<HTMLDivElement>>;
967
+ declare const CircularProgress: react.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
968
+ declare const LinearProgress: react.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
969
+ interface SkeletonProps extends HTMLAttributes<HTMLSpanElement>, ComponentCustomizationProps<"root" | "base" | "content"> {
970
+ variant?: "text" | "rectangular" | "rounded" | "circular";
971
+ width?: number | string;
972
+ height?: number | string;
973
+ animation?: "pulse" | "wave" | false;
974
+ lines?: number;
975
+ isLoaded?: boolean;
976
+ disableAnimation?: boolean;
977
+ }
978
+ declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLSpanElement>>;
979
+ interface SnackbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, ComponentCustomizationProps<"root" | "base" | "content" | "title" | "description" | "icon" | "closeButton" | "progressTrack" | "progressIndicator"> {
980
+ open: boolean;
981
+ message?: ReactNode;
982
+ onClose?: (reason: "timeout" | "escape" | "close") => void;
983
+ duration?: number | null;
984
+ action?: ReactNode;
985
+ placement?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end";
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;
1003
+ }
1004
+ declare const Snackbar: react.ForwardRefExoticComponent<SnackbarProps & react.RefAttributes<HTMLDivElement>>;
1005
+
1006
+ interface PaperProps extends GlassSurfaceProps {
1007
+ elevation?: 0 | 1 | 2 | 3 | 4;
1008
+ }
1009
+ declare const Paper: react.ForwardRefExoticComponent<PaperProps & react.RefAttributes<HTMLDivElement>>;
1010
+ interface CardProps extends Omit<GlassSurfaceProps, "classNames" | "styles" | "radius">, ComponentCustomizationProps<"root" | "base" | "light" | "content" | "header" | "body" | "footer">, PressProps<HTMLDivElement> {
1011
+ orientation?: "vertical" | "horizontal";
1012
+ selected?: boolean;
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;
1025
+ }
1026
+ declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
1027
+ interface AppBarProps extends GlassSurfaceProps {
1028
+ position?: "static" | "sticky" | "fixed";
1029
+ edge?: "top" | "bottom";
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;
1040
+ }
1041
+ declare const AppBar: react.ForwardRefExoticComponent<AppBarProps & react.RefAttributes<HTMLDivElement>>;
1042
+ interface AccordionProps extends Omit<GlassSurfaceProps, "onChange" | "defaultValue" | "variant"> {
1043
+ expanded?: boolean;
1044
+ defaultExpanded?: boolean;
1045
+ onExpandedChange?: (expanded: boolean) => void;
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;
1065
+ }
1066
+ declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
1067
+ interface AccordionSummaryProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1068
+ indicator?: ReactNode;
1069
+ hideIndicator?: boolean;
1070
+ indicatorClassName?: string;
1071
+ }
1072
+ declare const AccordionSummary: react.ForwardRefExoticComponent<AccordionSummaryProps & react.RefAttributes<HTMLButtonElement>>;
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>>;
1089
+
1090
+ interface BottomNavigationProps extends Omit<GlassSurfaceProps, "onChange" | "defaultValue"> {
1091
+ value?: string;
1092
+ defaultValue?: string;
1093
+ onValueChange?: (value: string) => void;
1094
+ showLabels?: boolean;
1095
+ /** The compact state can replace the tabs, and the expanded state can reveal a search field or other controls. */
1096
+ mode?: "default" | "compact" | "expanded";
1097
+ compactContent?: ReactNode;
1098
+ expandedContent?: ReactNode;
1099
+ accessory?: ReactNode;
1100
+ }
1101
+ declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & react.RefAttributes<HTMLDivElement>>;
1102
+ interface BottomNavigationActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1103
+ value: string;
1104
+ label: ReactNode;
1105
+ icon?: ReactNode;
1106
+ }
1107
+ declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & react.RefAttributes<HTMLButtonElement>>;
1108
+ interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomizationProps<"root" | "base" | "list" | "ellipsis" | "separator"> {
1109
+ separator?: ReactNode;
1110
+ maxItems?: number;
1111
+ itemsBeforeCollapse?: number;
1112
+ itemsAfterCollapse?: number;
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 & react.RefAttributes<HTMLElement>>;
1125
+ interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, Omit<ComponentCustomizationProps<OverlaySlot>, "motionDuration">, OverlayStateProps {
1126
+ open?: boolean;
1127
+ onClose?: () => void;
1128
+ anchor?: "left" | "right" | "top" | "bottom";
1129
+ placement?: DrawerProps["anchor"];
1130
+ variant?: "temporary" | "persistent" | "permanent";
1131
+ size?: number | string;
1132
+ label?: string;
1133
+ motionDuration?: number;
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 & react.RefAttributes<HTMLDivElement>>;
1141
+ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, 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
+ declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
1153
+ interface MenuProps<T = unknown> extends Omit<PopoverProps, "children" | "classNames" | "autoFocus">, CollectionSelectionProps {
1154
+ label?: string;
1155
+ items?: Iterable<T>;
1156
+ children?: ReactNode | ((item: T) => ReactNode);
1157
+ classNames?: PopoverProps["classNames"] & Partial<Record<"list" | "emptyContent", string>>;
1158
+ itemClasses?: MenuItemProps["classNames"];
1159
+ variant?: ControlVariant;
1160
+ isDisabled?: boolean;
1161
+ closeOnSelect?: boolean;
1162
+ topContent?: ReactNode;
1163
+ bottomContent?: ReactNode;
1164
+ emptyContent?: ReactNode;
1165
+ hideEmptyContent?: boolean;
1166
+ hideSelectedIcon?: boolean;
1167
+ shouldFocusWrap?: boolean;
1168
+ autoFocus?: boolean | "first" | "last";
1169
+ onAction?: (key: Key) => void;
1170
+ }
1171
+ declare const Menu: <T>(props: MenuProps<T> & React.RefAttributes<HTMLDivElement>) => ReactElement | null;
1172
+ interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title">, ComponentCustomizationProps<"root" | "base" | "wrapper" | "title" | "description" | "shortcut" | "selectedIcon" | "startContent" | "endContent">, PressProps<HTMLButtonElement> {
1173
+ leading?: ReactNode;
1174
+ trailing?: ReactNode;
1175
+ selected?: boolean;
1176
+ destructive?: boolean;
1177
+ itemKey?: Key;
1178
+ title?: ReactNode;
1179
+ textValue?: string;
1180
+ description?: ReactNode;
1181
+ shortcut?: ReactNode;
1182
+ startContent?: ReactNode;
1183
+ endContent?: ReactNode;
1184
+ selectedIcon?: ReactNode;
1185
+ isSelected?: boolean;
1186
+ isDisabled?: boolean;
1187
+ isReadOnly?: boolean;
1188
+ hideSelectedIcon?: boolean;
1189
+ showDivider?: boolean;
1190
+ closeOnSelect?: boolean;
1191
+ onAction?: (key: Key) => void;
1192
+ onClose?: () => void;
1193
+ }
1194
+ declare const MenuItem: react.ForwardRefExoticComponent<MenuItemProps & react.RefAttributes<HTMLButtonElement>>;
1195
+ declare const MenuDivider: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1196
+ declare const Menubar: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1197
+ interface PaginationItemState {
1198
+ value: number | "prev" | "next" | "ellipsis";
1199
+ isActive: boolean;
1200
+ isDisabled: boolean;
1201
+ onPress: () => void;
1202
+ className?: string;
1203
+ "aria-label"?: string;
1204
+ }
1205
+ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">, ComponentCustomizationProps<"root" | "base" | "wrapper" | "item" | "cursor" | "prev" | "next" | "ellipsis" | "chevronNext"> {
1206
+ count?: number;
1207
+ page?: number;
1208
+ defaultPage?: number;
1209
+ onPageChange?: (page: number) => void;
1210
+ siblingCount?: number;
1211
+ boundaryCount?: number;
1212
+ showFirstButton?: boolean;
1213
+ showLastButton?: boolean;
1214
+ disabled?: boolean;
1215
+ total?: number;
1216
+ initialPage?: number;
1217
+ onChange?: (page: number) => void;
1218
+ siblings?: number;
1219
+ boundaries?: number;
1220
+ dotsJump?: number;
1221
+ loop?: boolean;
1222
+ isCompact?: boolean;
1223
+ isDisabled?: boolean;
1224
+ showShadow?: boolean;
1225
+ showControls?: boolean;
1226
+ disableCursorAnimation?: boolean;
1227
+ disableAnimation?: boolean;
1228
+ variant?: "flat" | "bordered" | "light" | "faded";
1229
+ color?: ComponentColor;
1230
+ size?: "sm" | "md" | "lg";
1231
+ radius?: number | string;
1232
+ getItemAriaLabel?: (page: string) => string;
1233
+ renderItem?: (item: PaginationItemState) => ReactNode;
1234
+ }
1235
+ declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & react.RefAttributes<HTMLElement>>;
1236
+ interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1237
+ open?: boolean;
1238
+ defaultOpen?: boolean;
1239
+ onOpenChange?: (open: boolean) => void;
1240
+ icon: ReactNode;
1241
+ openIcon?: ReactNode;
1242
+ label: string;
1243
+ direction?: "up" | "down" | "left" | "right";
1244
+ }
1245
+ declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & react.RefAttributes<HTMLDivElement>>;
1246
+ interface SpeedDialActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1247
+ icon: ReactNode;
1248
+ label: string;
1249
+ }
1250
+ declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & react.RefAttributes<HTMLButtonElement>>;
1251
+ interface StepperProps extends HTMLAttributes<HTMLDivElement> {
1252
+ activeStep?: number;
1253
+ orientation?: "horizontal" | "vertical";
1254
+ }
1255
+ declare const Stepper: react.ForwardRefExoticComponent<StepperProps & react.RefAttributes<HTMLDivElement>>;
1256
+ interface StepProps extends HTMLAttributes<HTMLDivElement> {
1257
+ index?: number;
1258
+ completed?: boolean;
1259
+ disabled?: boolean;
1260
+ optional?: ReactNode;
1261
+ }
1262
+ declare const Step: react.ForwardRefExoticComponent<StepProps & react.RefAttributes<HTMLDivElement>>;
1263
+ declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
1264
+ interface TabsProps<T = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children">, ComponentCustomizationProps<"root" | "base" | "tabList" | "tab" | "tabContent" | "cursor" | "panel" | "tabWrapper"> {
1265
+ value?: string;
1266
+ defaultValue?: string;
1267
+ onValueChange?: (value: string) => void;
1268
+ variant?: "standard" | "segmented" | "scrollable" | "solid" | "underlined" | "bordered" | "light";
1269
+ label?: string;
1270
+ color?: ComponentColor;
1271
+ size?: GlassSize;
1272
+ radius?: number | string;
1273
+ fullWidth?: boolean;
1274
+ items?: Iterable<T>;
1275
+ children?: ReactNode | ((item: T) => ReactNode);
1276
+ disabledKeys?: Iterable<Key>;
1277
+ selectedKey?: Key | null;
1278
+ defaultSelectedKey?: Key;
1279
+ onSelectionChange?: (key: Key) => void;
1280
+ keyboardActivation?: "manual" | "automatic";
1281
+ isDisabled?: boolean;
1282
+ disableAnimation?: boolean;
1283
+ disableCursorAnimation?: boolean;
1284
+ isVertical?: boolean;
1285
+ placement?: "top" | "bottom" | "start" | "end";
1286
+ shouldSelectOnPressUp?: boolean;
1287
+ destroyInactiveTabPanel?: boolean;
1288
+ }
1289
+ declare const Tabs: <T>(props: TabsProps<T> & React.RefAttributes<HTMLDivElement>) => ReactElement | null;
1290
+ interface TabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
1291
+ value?: string;
1292
+ icon?: ReactNode;
1293
+ tabRef?: Ref<HTMLButtonElement>;
1294
+ title?: ReactNode;
1295
+ titleValue?: string;
1296
+ shouldSelectOnPressUp?: boolean;
1297
+ }
1298
+ declare const Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
1299
+ interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1300
+ value: string;
1301
+ keepMounted?: boolean;
1302
+ }
1303
+ declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & react.RefAttributes<HTMLDivElement>>;
1304
+
1305
+ type BottomSheetCloseReason = "escape" | "backdrop" | "swipe";
1306
+ interface BottomSheetProps extends HTMLAttributes<HTMLDivElement> {
1307
+ open: boolean;
1308
+ onClose?: (reason: BottomSheetCloseReason) => void;
1309
+ label?: string;
1310
+ labelledBy?: string;
1311
+ describedBy?: string;
1312
+ maxHeight?: number | string;
1313
+ swipeToDismiss?: boolean;
1314
+ closeOnEscape?: boolean;
1315
+ closeOnBackdrop?: boolean;
1316
+ motionDuration?: number;
1317
+ container?: ModalProps["container"];
1318
+ }
1319
+ declare const BottomSheet: react.ForwardRefExoticComponent<BottomSheetProps & react.RefAttributes<HTMLDivElement>>;
1320
+
1321
+ interface BoxProps extends HTMLAttributes<HTMLElement> {
1322
+ as?: ElementType;
1323
+ }
1324
+ declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLElement>>;
1325
+ interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
1326
+ maxWidth?: "sm" | "md" | "lg" | "xl" | "full";
1327
+ gutters?: boolean;
1328
+ }
1329
+ declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLDivElement>>;
1330
+ interface GridProps extends HTMLAttributes<HTMLDivElement> {
1331
+ columns?: number | string;
1332
+ gap?: number | string;
1333
+ minItemWidth?: number | string;
1334
+ align?: CSSProperties["alignItems"];
1335
+ justify?: CSSProperties["justifyItems"];
1336
+ }
1337
+ declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>>;
1338
+ interface GridItemProps extends HTMLAttributes<HTMLDivElement> {
1339
+ span?: number | "full";
1340
+ rowSpan?: number;
1341
+ }
1342
+ declare const GridItem: react.ForwardRefExoticComponent<GridItemProps & react.RefAttributes<HTMLDivElement>>;
1343
+ interface StackProps extends HTMLAttributes<HTMLDivElement> {
1344
+ direction?: "row" | "column";
1345
+ gap?: number | string;
1346
+ align?: CSSProperties["alignItems"];
1347
+ justify?: CSSProperties["justifyContent"];
1348
+ wrap?: boolean;
1349
+ divider?: ReactNode;
1350
+ }
1351
+ declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
1352
+ interface ImageListProps extends HTMLAttributes<HTMLUListElement> {
1353
+ columns?: number;
1354
+ gap?: number | string;
1355
+ rowHeight?: number | string;
1356
+ variant?: "standard" | "quilted" | "woven";
1357
+ }
1358
+ declare const ImageList: react.ForwardRefExoticComponent<ImageListProps & react.RefAttributes<HTMLUListElement>>;
1359
+ interface ImageListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, "title"> {
1360
+ cols?: number;
1361
+ rows?: number;
1362
+ title?: ReactNode;
1363
+ subtitle?: ReactNode;
1364
+ action?: ReactNode;
1365
+ }
1366
+ declare const ImageListItem: react.ForwardRefExoticComponent<ImageListItemProps & react.RefAttributes<HTMLLIElement>>;
1367
+ interface MasonryProps extends HTMLAttributes<HTMLDivElement> {
1368
+ columns?: number;
1369
+ gap?: number | string;
1370
+ }
1371
+ declare const Masonry: react.ForwardRefExoticComponent<MasonryProps & react.RefAttributes<HTMLDivElement>>;
1372
+ interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
1373
+ position?: "left" | "right" | "alternate";
1374
+ }
1375
+ declare const Timeline: react.ForwardRefExoticComponent<TimelineProps & react.RefAttributes<HTMLOListElement>>;
1376
+ interface TimelineItemProps extends HTMLAttributes<HTMLLIElement> {
1377
+ dot?: ReactNode;
1378
+ opposite?: ReactNode;
1379
+ connector?: boolean;
1380
+ }
1381
+ declare const TimelineItem: react.ForwardRefExoticComponent<TimelineItemProps & react.RefAttributes<HTMLLIElement>>;
1382
+
1383
+ interface DataGridColumn<Row> {
1384
+ field: keyof Row & string;
1385
+ header: ReactNode;
1386
+ width?: number | string;
1387
+ sortable?: boolean;
1388
+ align?: "left" | "center" | "right";
1389
+ render?: (value: Row[keyof Row], row: Row) => ReactNode;
1390
+ }
1391
+ interface DataGridProps<Row extends {
1392
+ id: string | number;
1393
+ }> extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
1394
+ rows: readonly Row[];
1395
+ columns: readonly DataGridColumn<Row>[];
1396
+ selectedRows?: readonly Row["id"][];
1397
+ onSelectedRowsChange?: (ids: Row["id"][]) => void;
1398
+ emptyText?: ReactNode;
1399
+ striped?: boolean;
1400
+ }
1401
+ declare function DataGrid<Row extends {
1402
+ id: string | number;
1403
+ }>({ rows, columns, selectedRows, onSelectedRowsChange, emptyText, striped, className, ...props }: DataGridProps<Row>): react.JSX.Element;
1404
+ type PickerSlot = FieldSlot | "selectorButton" | "selectorIcon" | "popoverContent" | "calendar" | "calendarContent" | "timeInputLabel" | "timeInput" | "segment";
1405
+ type Weekday = "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
1406
+ 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"> {
1407
+ value?: string;
1408
+ defaultValue?: string;
1409
+ onValueChange?: (value: string) => void;
1410
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
1411
+ open?: boolean;
1412
+ defaultOpen?: boolean;
1413
+ onOpenChange?: (open: boolean) => void;
1414
+ locale?: string;
1415
+ firstDayOfWeek?: 0 | 1 | Weekday;
1416
+ minuteStep?: number;
1417
+ formatValue?: (value: string) => ReactNode;
1418
+ minValue?: string;
1419
+ maxValue?: string;
1420
+ placeholderValue?: string;
1421
+ visibleMonths?: number;
1422
+ selectionAlignment?: "start" | "center" | "end";
1423
+ pageBehavior?: "single" | "visible";
1424
+ calendarWidth?: number | string;
1425
+ isDateUnavailable?: (value: string) => boolean;
1426
+ selectorIcon?: ReactNode;
1427
+ selectorButtonProps?: ButtonProps;
1428
+ popoverProps?: Partial<PopoverProps>;
1429
+ calendarProps?: HTMLAttributes<HTMLDivElement>;
1430
+ timeInputProps?: HTMLAttributes<HTMLDivElement>;
1431
+ CalendarBottomContent?: ReactNode;
1432
+ showMonthAndYearPickers?: boolean;
1433
+ hourCycle?: 12 | 24;
1434
+ granularity?: "day" | "hour" | "minute";
1435
+ shouldForceLeadingZeros?: boolean;
1436
+ onFocusChange?: (focused: boolean) => void;
1437
+ }
1438
+ declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
1439
+ declare const TimePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
1440
+ declare const DateTimePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<HTMLInputElement>>;
1441
+ interface ChartSeries {
1442
+ label: string;
1443
+ data: readonly number[];
1444
+ color?: string;
1445
+ }
1446
+ interface ChartProps extends HTMLAttributes<HTMLDivElement> {
1447
+ labels?: readonly string[];
1448
+ series: readonly ChartSeries[];
1449
+ type?: "line" | "bar";
1450
+ width?: number;
1451
+ height?: number;
1452
+ showLegend?: boolean;
1453
+ ariaLabel?: string;
1454
+ }
1455
+ declare const Chart: react.ForwardRefExoticComponent<ChartProps & react.RefAttributes<HTMLDivElement>>;
1456
+ interface TreeViewProps extends Omit<HTMLAttributes<HTMLUListElement>, "onSelect"> {
1457
+ expanded?: readonly string[];
1458
+ defaultExpanded?: readonly string[];
1459
+ onExpandedChange?: (ids: string[]) => void;
1460
+ selected?: string;
1461
+ defaultSelected?: string;
1462
+ onSelectedChange?: (id: string) => void;
1463
+ label?: string;
1464
+ }
1465
+ declare const TreeView: react.ForwardRefExoticComponent<TreeViewProps & react.RefAttributes<HTMLUListElement>>;
1466
+ interface TreeItemProps extends HTMLAttributes<HTMLLIElement> {
1467
+ itemId: string;
1468
+ label: ReactNode;
1469
+ icon?: ReactNode;
1470
+ disabled?: boolean;
1471
+ }
1472
+ declare const TreeItem: react.ForwardRefExoticComponent<TreeItemProps & react.RefAttributes<HTMLLIElement>>;
1473
+
1474
+ 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 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 };