@useloops/design-system 1.4.46 → 1.4.48
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 +4 -86
- package/dist/index.d.ts +13 -16
- package/dist/index.js +4 -86
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode,
|
|
2
|
+
import react__default, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
|
-
import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, ButtonGroupProps, LinkProps as LinkProps$1, MenuItemProps, SelectProps as SelectProps$1, PaperProps, SwitchProps as SwitchProps$1, TextFieldProps as TextFieldProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
|
|
4
|
+
import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, ButtonGroupProps, LinkProps as LinkProps$1, MenuItemProps, SelectProps as SelectProps$1, PaperProps, SwitchProps as SwitchProps$1, TextFieldProps as TextFieldProps$1, TypographyProps as TypographyProps$1, MenuProps, PaletteMode, Direction } from '@mui/material';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
7
7
|
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
@@ -9,7 +9,6 @@ import * as _mui_system from '@mui/system';
|
|
|
9
9
|
import { SxProps as SxProps$1, Theme as Theme$2 } from '@mui/system';
|
|
10
10
|
import * as _emotion_styled from '@emotion/styled';
|
|
11
11
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
12
|
-
import { MenuItemProps as MenuItemProps$1 } from '@mui/material/MenuItem';
|
|
13
12
|
import { SubmitHandler } from 'react-hook-form';
|
|
14
13
|
|
|
15
14
|
interface ColorRange {
|
|
@@ -621,26 +620,24 @@ declare const Tooltip: FunctionComponent<TooltipProps>;
|
|
|
621
620
|
|
|
622
621
|
interface DropdownMenuItemProps {
|
|
623
622
|
icon?: ReactElement;
|
|
624
|
-
|
|
623
|
+
label: string;
|
|
625
624
|
onClick: () => void;
|
|
626
|
-
menuItemProps?: MenuItemProps
|
|
625
|
+
menuItemProps?: MenuItemProps;
|
|
627
626
|
}
|
|
628
|
-
interface DropdownMenuProps {
|
|
629
|
-
children?: ReactNode;
|
|
630
|
-
handleClose: () => void;
|
|
631
|
-
handleClick: (event: MouseEvent<HTMLElement>) => void;
|
|
627
|
+
interface DropdownMenuProps extends MenuProps {
|
|
632
628
|
open: boolean;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
629
|
+
anchorEl: HTMLElement | null;
|
|
630
|
+
handleClose: () => void;
|
|
631
|
+
handleClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
632
|
+
items?: DropdownMenuItemProps[];
|
|
636
633
|
}
|
|
637
634
|
declare const DropdownMenu: FunctionComponent<DropdownMenuProps>;
|
|
638
635
|
|
|
639
|
-
declare const
|
|
640
|
-
anchorElement: HTMLElement | null;
|
|
636
|
+
declare const useDropdownMenu: () => {
|
|
641
637
|
open: boolean;
|
|
642
|
-
handleClick: (event: MouseEvent<
|
|
638
|
+
handleClick: (event: react__default.MouseEvent<HTMLButtonElement>) => void;
|
|
643
639
|
handleClose: () => void;
|
|
640
|
+
anchorEl: HTMLElement | null;
|
|
644
641
|
};
|
|
645
642
|
|
|
646
643
|
interface FormGeneratorHandler {
|
|
@@ -1145,4 +1142,4 @@ declare module '@mui/system' {
|
|
|
1145
1142
|
}
|
|
1146
1143
|
}
|
|
1147
1144
|
|
|
1148
|
-
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Icon, IconButton, IconButtonGroup, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, chooseArticle, defaultInputValidation, emailValidation, passwordValidation,
|
|
1145
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Icon, IconButton, IconButtonGroup, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
|