liquid-glass-for-react 0.2.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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
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';
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";
@@ -1098,13 +1098,13 @@ interface BottomNavigationProps extends Omit<GlassSurfaceProps, "onChange" | "de
1098
1098
  expandedContent?: ReactNode;
1099
1099
  accessory?: ReactNode;
1100
1100
  }
1101
- declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & react.RefAttributes<HTMLDivElement>>;
1101
+ declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & RefAttributes<HTMLDivElement>>;
1102
1102
  interface BottomNavigationActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1103
1103
  value: string;
1104
1104
  label: ReactNode;
1105
1105
  icon?: ReactNode;
1106
1106
  }
1107
- declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & react.RefAttributes<HTMLButtonElement>>;
1107
+ declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & RefAttributes<HTMLButtonElement>>;
1108
1108
  interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomizationProps<"root" | "base" | "list" | "ellipsis" | "separator"> {
1109
1109
  separator?: ReactNode;
1110
1110
  maxItems?: number;
@@ -1121,7 +1121,7 @@ interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomi
1121
1121
  itemClasses?: Partial<Record<"base" | "item" | "separator", string>>;
1122
1122
  onAction?: (key: Key) => void;
1123
1123
  }
1124
- declare const Breadcrumbs: react.ForwardRefExoticComponent<BreadcrumbsProps & react.RefAttributes<HTMLElement>>;
1124
+ declare const Breadcrumbs: react.ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLElement>>;
1125
1125
  interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, Omit<ComponentCustomizationProps<OverlaySlot>, "motionDuration">, OverlayStateProps {
1126
1126
  open?: boolean;
1127
1127
  onClose?: () => void;
@@ -1137,8 +1137,8 @@ interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">,
1137
1137
  closeButton?: ReactNode;
1138
1138
  children?: ModalProps["children"];
1139
1139
  }
1140
- declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>>;
1141
- interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, PressProps<HTMLAnchorElement> {
1140
+ declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDivElement>>;
1141
+ interface LinkOptions extends PressProps<HTMLAnchorElement> {
1142
1142
  underline?: "always" | "hover" | "none" | "active" | "focus";
1143
1143
  color?: ComponentColor;
1144
1144
  size?: "sm" | "md" | "lg";
@@ -1149,7 +1149,17 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, PressProps<
1149
1149
  isDisabled?: boolean;
1150
1150
  disableAnimation?: boolean;
1151
1151
  }
1152
- declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
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
+ };
1153
1163
  interface MenuProps<T = unknown> extends Omit<PopoverProps, "children" | "classNames" | "autoFocus">, CollectionSelectionProps {
1154
1164
  label?: string;
1155
1165
  items?: Iterable<T>;
@@ -1191,9 +1201,9 @@ interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "t
1191
1201
  onAction?: (key: Key) => void;
1192
1202
  onClose?: () => void;
1193
1203
  }
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>>;
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>>;
1197
1207
  interface PaginationItemState {
1198
1208
  value: number | "prev" | "next" | "ellipsis";
1199
1209
  isActive: boolean;
@@ -1232,7 +1242,7 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">,
1232
1242
  getItemAriaLabel?: (page: string) => string;
1233
1243
  renderItem?: (item: PaginationItemState) => ReactNode;
1234
1244
  }
1235
- declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & react.RefAttributes<HTMLElement>>;
1245
+ declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
1236
1246
  interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1237
1247
  open?: boolean;
1238
1248
  defaultOpen?: boolean;
@@ -1242,25 +1252,25 @@ interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"
1242
1252
  label: string;
1243
1253
  direction?: "up" | "down" | "left" | "right";
1244
1254
  }
1245
- declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & react.RefAttributes<HTMLDivElement>>;
1255
+ declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & RefAttributes<HTMLDivElement>>;
1246
1256
  interface SpeedDialActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1247
1257
  icon: ReactNode;
1248
1258
  label: string;
1249
1259
  }
1250
- declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & react.RefAttributes<HTMLButtonElement>>;
1260
+ declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & RefAttributes<HTMLButtonElement>>;
1251
1261
  interface StepperProps extends HTMLAttributes<HTMLDivElement> {
1252
1262
  activeStep?: number;
1253
1263
  orientation?: "horizontal" | "vertical";
1254
1264
  }
1255
- declare const Stepper: react.ForwardRefExoticComponent<StepperProps & react.RefAttributes<HTMLDivElement>>;
1265
+ declare const Stepper: react.ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLDivElement>>;
1256
1266
  interface StepProps extends HTMLAttributes<HTMLDivElement> {
1257
1267
  index?: number;
1258
1268
  completed?: boolean;
1259
1269
  disabled?: boolean;
1260
1270
  optional?: ReactNode;
1261
1271
  }
1262
- declare const Step: react.ForwardRefExoticComponent<StepProps & react.RefAttributes<HTMLDivElement>>;
1263
- declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
1272
+ declare const Step: react.ForwardRefExoticComponent<StepProps & RefAttributes<HTMLDivElement>>;
1273
+ declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
1264
1274
  interface TabsProps<T = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children">, ComponentCustomizationProps<"root" | "base" | "tabList" | "tab" | "tabContent" | "cursor" | "panel" | "tabWrapper"> {
1265
1275
  value?: string;
1266
1276
  defaultValue?: string;
@@ -1295,12 +1305,12 @@ interface TabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"
1295
1305
  titleValue?: string;
1296
1306
  shouldSelectOnPressUp?: boolean;
1297
1307
  }
1298
- declare const Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
1308
+ declare const Tab: react.ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
1299
1309
  interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1300
1310
  value: string;
1301
1311
  keepMounted?: boolean;
1302
1312
  }
1303
- declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & react.RefAttributes<HTMLDivElement>>;
1313
+ declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
1304
1314
 
1305
1315
  type BottomSheetCloseReason = "escape" | "backdrop" | "swipe";
1306
1316
  interface BottomSheetProps extends HTMLAttributes<HTMLDivElement> {
@@ -1471,4 +1481,4 @@ interface TreeItemProps extends HTMLAttributes<HTMLLIElement> {
1471
1481
  }
1472
1482
  declare const TreeItem: react.ForwardRefExoticComponent<TreeItemProps & react.RefAttributes<HTMLLIElement>>;
1473
1483
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
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';
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";
@@ -1098,13 +1098,13 @@ interface BottomNavigationProps extends Omit<GlassSurfaceProps, "onChange" | "de
1098
1098
  expandedContent?: ReactNode;
1099
1099
  accessory?: ReactNode;
1100
1100
  }
1101
- declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & react.RefAttributes<HTMLDivElement>>;
1101
+ declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigationProps & RefAttributes<HTMLDivElement>>;
1102
1102
  interface BottomNavigationActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1103
1103
  value: string;
1104
1104
  label: ReactNode;
1105
1105
  icon?: ReactNode;
1106
1106
  }
1107
- declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & react.RefAttributes<HTMLButtonElement>>;
1107
+ declare const BottomNavigationAction: react.ForwardRefExoticComponent<BottomNavigationActionProps & RefAttributes<HTMLButtonElement>>;
1108
1108
  interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomizationProps<"root" | "base" | "list" | "ellipsis" | "separator"> {
1109
1109
  separator?: ReactNode;
1110
1110
  maxItems?: number;
@@ -1121,7 +1121,7 @@ interface BreadcrumbsProps extends HTMLAttributes<HTMLElement>, ComponentCustomi
1121
1121
  itemClasses?: Partial<Record<"base" | "item" | "separator", string>>;
1122
1122
  onAction?: (key: Key) => void;
1123
1123
  }
1124
- declare const Breadcrumbs: react.ForwardRefExoticComponent<BreadcrumbsProps & react.RefAttributes<HTMLElement>>;
1124
+ declare const Breadcrumbs: react.ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLElement>>;
1125
1125
  interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, Omit<ComponentCustomizationProps<OverlaySlot>, "motionDuration">, OverlayStateProps {
1126
1126
  open?: boolean;
1127
1127
  onClose?: () => void;
@@ -1137,8 +1137,8 @@ interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">,
1137
1137
  closeButton?: ReactNode;
1138
1138
  children?: ModalProps["children"];
1139
1139
  }
1140
- declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & react.RefAttributes<HTMLDivElement>>;
1141
- interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, PressProps<HTMLAnchorElement> {
1140
+ declare const Drawer: react.ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDivElement>>;
1141
+ interface LinkOptions extends PressProps<HTMLAnchorElement> {
1142
1142
  underline?: "always" | "hover" | "none" | "active" | "focus";
1143
1143
  color?: ComponentColor;
1144
1144
  size?: "sm" | "md" | "lg";
@@ -1149,7 +1149,17 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, PressProps<
1149
1149
  isDisabled?: boolean;
1150
1150
  disableAnimation?: boolean;
1151
1151
  }
1152
- declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
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
+ };
1153
1163
  interface MenuProps<T = unknown> extends Omit<PopoverProps, "children" | "classNames" | "autoFocus">, CollectionSelectionProps {
1154
1164
  label?: string;
1155
1165
  items?: Iterable<T>;
@@ -1191,9 +1201,9 @@ interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "t
1191
1201
  onAction?: (key: Key) => void;
1192
1202
  onClose?: () => void;
1193
1203
  }
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>>;
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>>;
1197
1207
  interface PaginationItemState {
1198
1208
  value: number | "prev" | "next" | "ellipsis";
1199
1209
  isActive: boolean;
@@ -1232,7 +1242,7 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">,
1232
1242
  getItemAriaLabel?: (page: string) => string;
1233
1243
  renderItem?: (item: PaginationItemState) => ReactNode;
1234
1244
  }
1235
- declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & react.RefAttributes<HTMLElement>>;
1245
+ declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
1236
1246
  interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1237
1247
  open?: boolean;
1238
1248
  defaultOpen?: boolean;
@@ -1242,25 +1252,25 @@ interface SpeedDialProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"
1242
1252
  label: string;
1243
1253
  direction?: "up" | "down" | "left" | "right";
1244
1254
  }
1245
- declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & react.RefAttributes<HTMLDivElement>>;
1255
+ declare const SpeedDial: react.ForwardRefExoticComponent<SpeedDialProps & RefAttributes<HTMLDivElement>>;
1246
1256
  interface SpeedDialActionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1247
1257
  icon: ReactNode;
1248
1258
  label: string;
1249
1259
  }
1250
- declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & react.RefAttributes<HTMLButtonElement>>;
1260
+ declare const SpeedDialAction: react.ForwardRefExoticComponent<SpeedDialActionProps & RefAttributes<HTMLButtonElement>>;
1251
1261
  interface StepperProps extends HTMLAttributes<HTMLDivElement> {
1252
1262
  activeStep?: number;
1253
1263
  orientation?: "horizontal" | "vertical";
1254
1264
  }
1255
- declare const Stepper: react.ForwardRefExoticComponent<StepperProps & react.RefAttributes<HTMLDivElement>>;
1265
+ declare const Stepper: react.ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLDivElement>>;
1256
1266
  interface StepProps extends HTMLAttributes<HTMLDivElement> {
1257
1267
  index?: number;
1258
1268
  completed?: boolean;
1259
1269
  disabled?: boolean;
1260
1270
  optional?: ReactNode;
1261
1271
  }
1262
- declare const Step: react.ForwardRefExoticComponent<StepProps & react.RefAttributes<HTMLDivElement>>;
1263
- declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
1272
+ declare const Step: react.ForwardRefExoticComponent<StepProps & RefAttributes<HTMLDivElement>>;
1273
+ declare const StepLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;
1264
1274
  interface TabsProps<T = unknown> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children">, ComponentCustomizationProps<"root" | "base" | "tabList" | "tab" | "tabContent" | "cursor" | "panel" | "tabWrapper"> {
1265
1275
  value?: string;
1266
1276
  defaultValue?: string;
@@ -1295,12 +1305,12 @@ interface TabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"
1295
1305
  titleValue?: string;
1296
1306
  shouldSelectOnPressUp?: boolean;
1297
1307
  }
1298
- declare const Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
1308
+ declare const Tab: react.ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
1299
1309
  interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1300
1310
  value: string;
1301
1311
  keepMounted?: boolean;
1302
1312
  }
1303
- declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & react.RefAttributes<HTMLDivElement>>;
1313
+ declare const TabPanel: react.ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
1304
1314
 
1305
1315
  type BottomSheetCloseReason = "escape" | "backdrop" | "swipe";
1306
1316
  interface BottomSheetProps extends HTMLAttributes<HTMLDivElement> {
@@ -1471,4 +1481,4 @@ interface TreeItemProps extends HTMLAttributes<HTMLLIElement> {
1471
1481
  }
1472
1482
  declare const TreeItem: react.ForwardRefExoticComponent<TreeItemProps & react.RefAttributes<HTMLLIElement>>;
1473
1483
 
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 };
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 };