@useloops/design-system 1.4.116 → 1.4.118

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,5 +1,4 @@
1
- import * as react from 'react';
2
- import react__default, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
1
+ import react, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, FC, Dispatch, SetStateAction } from 'react';
3
2
  import * as _mui_material from '@mui/material';
4
3
  import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, ButtonGroupProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SelectChangeEvent, TextFieldProps as TextFieldProps$1, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
5
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -10,7 +9,6 @@ import { NumericFormatProps } from 'react-number-format';
10
9
  import { InputFieldBaseProps as InputFieldBaseProps$1 } from 'WebCore/InputFieldBase';
11
10
  import { UniqueIdentifier } from '@dnd-kit/core';
12
11
  import * as _emotion_styled from '@emotion/styled';
13
- import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
14
12
  import { SubmitHandler } from 'react-hook-form';
15
13
 
16
14
  interface ColorRange {
@@ -306,7 +304,7 @@ declare const DropdownMenu: FunctionComponent<DropdownMenuProps>;
306
304
 
307
305
  declare const useDropdownMenu: () => {
308
306
  open: boolean;
309
- handleClick: (event: react__default.MouseEvent<HTMLButtonElement>) => void;
307
+ handleClick: (event: react.MouseEvent<HTMLButtonElement>) => void;
310
308
  handleClose: () => void;
311
309
  anchorEl: HTMLElement | null;
312
310
  };
@@ -547,7 +545,7 @@ type SelectProps = {
547
545
  sizing?: 'xs' | 'md' | 'lg';
548
546
  sx?: SelectProps$1['sx'];
549
547
  value?: SelectProps$1['value'];
550
- renderListItem?: (label: string) => ReactElement;
548
+ renderListItem?: (value: string, label: string) => ReactElement;
551
549
  };
552
550
  declare const Select: FunctionComponent<SelectProps>;
553
551
 
@@ -633,13 +631,16 @@ interface StarRatingProps {
633
631
  }
634
632
  declare const StarRating: FunctionComponent<StarRatingProps>;
635
633
 
636
- interface SurfaceProps extends PaperProps {
637
- variation: 'default' | 'sunken' | 'raised' | 'overlay';
638
- borderradius?: GenericSizeMap;
634
+ type SurfaceVariation = 'default' | 'sunken' | 'raised' | 'overlay';
635
+ type BorderRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
636
+
637
+ interface SurfaceProps extends PropsWithChildren {
638
+ variation?: SurfaceVariation;
639
+ borderradius?: BorderRadius;
640
+ sx?: SxProps<Theme>;
641
+ ref?: PaperProps['ref'];
639
642
  }
640
- declare const Surface: _emotion_styled.StyledComponent<_mui_material.PaperOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
641
- ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
642
- }, "sx" | "className" | "style" | "classes" | "children" | "elevation" | "square" | "variant"> & _mui_system.MUIStyledCommonProps<Theme> & SurfaceProps, {}, {}>;
643
+ declare const Surface: FC<SurfaceProps>;
643
644
 
644
645
  interface SwitchProps extends SwitchProps$1 {
645
646
  }
@@ -836,6 +837,7 @@ declare const passwordValidation: (min?: number) => {
836
837
 
837
838
  interface AuthContainerSurfaceProps extends SurfaceProps {
838
839
  headContent?: ReactNode;
840
+ sx?: SxProps<Theme>;
839
841
  }
840
842
  declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
841
843