@useloops/design-system 1.4.279 → 1.4.280

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _mui_material from '@mui/material';
2
2
  import { SxProps, Theme, PaperProps, PopperProps as PopperProps$1, CSSObject, AvatarProps as AvatarProps$1, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TypographyProps as TypographyProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, BoxProps, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, PaletteMode, Direction } from '@mui/material';
3
3
  import * as react from 'react';
4
- import react__default, { PropsWithChildren, FC, FunctionComponent, ReactNode, Dispatch, SetStateAction, ReactElement, ChangeEvent } from 'react';
4
+ import react__default, { FC, FunctionComponent, ReactNode, PropsWithChildren, Dispatch, SetStateAction, ReactElement, ChangeEvent } from 'react';
5
5
  import { PopupState } from 'material-ui-popup-state/hooks';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { SubmitHandler } from 'react-hook-form';
@@ -657,12 +657,9 @@ interface CustomTheme {
657
657
  type SurfaceVariation = 'default' | 'sunken' | 'raised' | 'overlay';
658
658
  type BorderRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
659
659
 
660
- interface SurfaceProps extends PropsWithChildren {
660
+ interface SurfaceProps extends PaperProps {
661
661
  variation?: SurfaceVariation;
662
662
  borderradius?: BorderRadius;
663
- sx?: SxProps<Theme>;
664
- ref?: PaperProps['ref'];
665
- component?: PaperProps['component'];
666
663
  }
667
664
  declare const Surface: FC<SurfaceProps>;
668
665
 
@@ -1023,26 +1020,16 @@ declare const Badge: FunctionComponent<BadgeProps>;
1023
1020
 
1024
1021
  interface ButtonBaseProps extends ButtonProps$1 {
1025
1022
  loading?: boolean;
1026
- sizing: any;
1023
+ sizing: ButtonSizing;
1027
1024
  }
1028
1025
  declare const ButtonBase: ({ children, loading, sizing, ...rest }: ButtonBaseProps) => react_jsx_runtime.JSX.Element;
1029
1026
 
1030
- interface ButtonProps {
1031
- loading?: boolean;
1027
+ interface ButtonProps extends Partial<ButtonBaseProps> {
1032
1028
  variation?: 'primary' | 'secondary' | 'outlined' | 'subtle';
1033
- sizing?: ButtonSizing;
1034
- fullWidth?: boolean;
1035
- className?: string;
1036
- disabled?: boolean;
1037
- tabIndex?: number;
1038
1029
  href?: string;
1030
+ fullWidth?: boolean;
1039
1031
  endIcon?: ReactElement;
1040
1032
  startIcon?: ReactElement;
1041
- children: ButtonBaseProps['children'];
1042
- onClick?: ButtonBaseProps['onClick'];
1043
- onMouseDown?: ButtonBaseProps['onMouseDown'];
1044
- onMouseUp?: ButtonBaseProps['onMouseUp'];
1045
- type?: 'button' | 'submit' | 'reset';
1046
1033
  }
1047
1034
  declare const Button: FunctionComponent<ButtonProps>;
1048
1035
 
@@ -1274,7 +1261,7 @@ interface TypographyProps extends Omit<TypographyProps$1, 'ref'> {
1274
1261
  weight?: 'default' | 'bold';
1275
1262
  sx?: SxProps<Theme>;
1276
1263
  }
1277
- declare const Typography: FunctionComponent<TypographyProps>;
1264
+ declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLHeadingElement | HTMLParagraphElement>>;
1278
1265
 
1279
1266
  type HtmlParserProps = {
1280
1267
  children: string;
@@ -1328,7 +1315,7 @@ interface IconButtonBaseProps extends IconButtonProps$1 {
1328
1315
  }
1329
1316
  declare const IconButtonBase: ({ children, ...rest }: IconButtonBaseProps) => react_jsx_runtime.JSX.Element;
1330
1317
 
1331
- interface TooltipProps extends Omit<TooltipProps$1, 'title' | 'slotProps'> {
1318
+ interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'title' | 'slotProps'> {
1332
1319
  message: TooltipProps$1['title'];
1333
1320
  variation?: 'primary';
1334
1321
  slotProps?: TooltipProps$1['slotProps'] & {
@@ -1470,6 +1457,9 @@ interface MenuProps extends PropsWithChildren {
1470
1457
  bindOn?: PopperProps['bindOn'];
1471
1458
  trigger: ReactElement;
1472
1459
  width?: number;
1460
+ slotProps?: {
1461
+ popper?: PopperProps['popperProps'];
1462
+ };
1473
1463
  }
1474
1464
  declare const Menu: FunctionComponent<MenuProps>;
1475
1465