@useloops/design-system 1.4.453 → 1.4.455
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 +2 -2
- package/dist/index.d.ts +12 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { FunctionComponent, PropsWithChildren, ReactElement, ComponentProps, Dispatch, SetStateAction, ReactNode, ChangeEvent, FC } from 'react';
|
|
2
|
+
import react__default, { FunctionComponent, PropsWithChildren, ReactElement, MouseEventHandler, ComponentProps, Dispatch, SetStateAction, ReactNode, ChangeEvent, FC } from 'react';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
4
|
import { SxProps, Theme, CSSObject, ButtonProps as ButtonProps$1, TypographyProps as TypographyProps$1, BoxProps, PaperProps, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, SkeletonProps as SkeletonProps$1, AvatarProps as AvatarProps$1, AvatarGroupProps as AvatarGroupProps$1, LinkProps as LinkProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SwitchProps as SwitchProps$1, SvgIconProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, Breakpoint, PaletteMode, Direction } from '@mui/material';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -985,9 +985,13 @@ interface MenuItemProps {
|
|
|
985
985
|
selected?: boolean;
|
|
986
986
|
disabled?: boolean;
|
|
987
987
|
closeOnClick?: boolean;
|
|
988
|
-
onClick?:
|
|
988
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
989
989
|
children?: MenuItemProps[];
|
|
990
990
|
width?: number;
|
|
991
|
+
startIcon?: IconName;
|
|
992
|
+
slotProps?: {
|
|
993
|
+
startIcon?: Partial<Omit<IconProps, 'name'>>;
|
|
994
|
+
};
|
|
991
995
|
}
|
|
992
996
|
|
|
993
997
|
interface MenuProps extends PropsWithChildren {
|
|
@@ -2338,12 +2342,16 @@ declare const QuestionBlock: FunctionComponent<QuestionBlockProps>;
|
|
|
2338
2342
|
|
|
2339
2343
|
interface SearchInputProps {
|
|
2340
2344
|
onChange?: (event: react__default.ChangeEvent<HTMLInputElement>) => void;
|
|
2341
|
-
onFocus?: (event: react__default.FocusEvent<HTMLInputElement>) => void;
|
|
2342
2345
|
onClear?: () => void;
|
|
2343
2346
|
placeholder?: string;
|
|
2344
2347
|
sx?: SxProps<Theme>;
|
|
2348
|
+
value?: string;
|
|
2349
|
+
}
|
|
2350
|
+
interface SearchInputHandle {
|
|
2351
|
+
clear: () => void;
|
|
2352
|
+
focus: () => void;
|
|
2345
2353
|
}
|
|
2346
|
-
declare const SearchInput:
|
|
2354
|
+
declare const SearchInput: react__default.ForwardRefExoticComponent<SearchInputProps & react__default.RefAttributes<SearchInputHandle>>;
|
|
2347
2355
|
|
|
2348
2356
|
interface SectionHeaderProps {
|
|
2349
2357
|
buttons?: ReactNode;
|