@useloops/design-system 1.4.117 → 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/esm/index.js +1 -1
- package/dist/index.d.ts +12 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
307
|
+
handleClick: (event: react.MouseEvent<HTMLButtonElement>) => void;
|
|
310
308
|
handleClose: () => void;
|
|
311
309
|
anchorEl: HTMLElement | null;
|
|
312
310
|
};
|
|
@@ -633,13 +631,16 @@ interface StarRatingProps {
|
|
|
633
631
|
}
|
|
634
632
|
declare const StarRating: FunctionComponent<StarRatingProps>;
|
|
635
633
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
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:
|
|
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
|
|