@useloops/design-system 1.4.200 → 1.4.202
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 +3 -3
- package/dist/index.d.ts +31 -32
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
|
-
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$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, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1,
|
|
2
|
+
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$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, TooltipProps as TooltipProps$1, CSSObject, IconButtonProps as IconButtonProps$1, 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 react, { FunctionComponent, PropsWithChildren, FC, ReactNode, ReactElement, ChangeEvent, Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
|
5
5
|
import { SubmitHandler } from 'react-hook-form';
|
|
@@ -1157,36 +1157,6 @@ type IconButtonSizing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1157
1157
|
type IconButtonShapeMap = 'default' | 'round';
|
|
1158
1158
|
type IconButtonVariation = 'default' | 'toggle' | 'outlined' | 'raised';
|
|
1159
1159
|
|
|
1160
|
-
interface StyledIconButtonProps extends IconButtonProps$1 {
|
|
1161
|
-
variation?: IconButtonVariation;
|
|
1162
|
-
shape?: IconButtonShapeMap;
|
|
1163
|
-
sizing?: IconButtonSizing;
|
|
1164
|
-
loading?: boolean;
|
|
1165
|
-
sx?: IconButtonProps$1['sx'];
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
interface IconButtonProps {
|
|
1169
|
-
variation?: IconButtonVariation;
|
|
1170
|
-
shape?: IconButtonShapeMap;
|
|
1171
|
-
sizing?: IconButtonSizing;
|
|
1172
|
-
icon: ReactElement;
|
|
1173
|
-
loading?: boolean;
|
|
1174
|
-
edge?: 'start' | 'end' | false;
|
|
1175
|
-
children?: StyledIconButtonProps['children'];
|
|
1176
|
-
onClick?: StyledIconButtonProps['onClick'];
|
|
1177
|
-
disabled?: boolean;
|
|
1178
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
1179
|
-
id?: string;
|
|
1180
|
-
type?: 'button' | 'submit' | 'reset';
|
|
1181
|
-
className?: string;
|
|
1182
|
-
tooltipMessage?: TooltipProps['message'];
|
|
1183
|
-
slotProps?: {
|
|
1184
|
-
tooltip?: Omit<TooltipProps, 'message'>;
|
|
1185
|
-
};
|
|
1186
|
-
sx?: StyledIconButtonProps['sx'];
|
|
1187
|
-
}
|
|
1188
|
-
declare const IconButton: ({ icon, loading, tooltipMessage, sizing, slotProps, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1189
|
-
|
|
1190
1160
|
declare const defaultStyle: (theme: Theme) => CSSObject;
|
|
1191
1161
|
declare const toggle: (theme: Theme) => CSSObject;
|
|
1192
1162
|
declare const outlined: (theme: Theme) => CSSObject;
|
|
@@ -1222,6 +1192,35 @@ declare namespace IconButton_variantHelpers {
|
|
|
1222
1192
|
export { IconButton_variantHelpers_IconSizeMap as IconSizeMap, IconButton_variantHelpers_buttonSizeMap as buttonSizeMap, IconButton_variantHelpers_defaultStyle as defaultStyle, IconButton_variantHelpers_getIconButtonRadius as getIconButtonRadius, IconButton_variantHelpers_getIconButtonSizing as getIconButtonSizing, IconButton_variantHelpers_getIconSizing as getIconSizing, IconButton_variantHelpers_outlined as outlined, IconButton_variantHelpers_raised as raised, IconButton_variantHelpers_toggle as toggle };
|
|
1223
1193
|
}
|
|
1224
1194
|
|
|
1195
|
+
interface IconButtonBaseProps extends IconButtonProps$1 {
|
|
1196
|
+
variation?: 'default' | 'toggle' | 'outlined' | 'raised';
|
|
1197
|
+
shape?: IconButtonShapeMap;
|
|
1198
|
+
sizing?: IconButtonSizing;
|
|
1199
|
+
}
|
|
1200
|
+
declare const IconButtonBase: ({ children, ...rest }: IconButtonBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1201
|
+
|
|
1202
|
+
interface IconButtonProps {
|
|
1203
|
+
variation?: IconButtonVariation;
|
|
1204
|
+
shape?: IconButtonShapeMap;
|
|
1205
|
+
sizing?: IconButtonSizing;
|
|
1206
|
+
icon: ReactElement;
|
|
1207
|
+
loading?: boolean;
|
|
1208
|
+
edge?: 'start' | 'end' | false;
|
|
1209
|
+
children?: IconButtonBaseProps['children'];
|
|
1210
|
+
onClick?: IconButtonBaseProps['onClick'];
|
|
1211
|
+
disabled?: boolean;
|
|
1212
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
1213
|
+
id?: string;
|
|
1214
|
+
type?: 'button' | 'submit' | 'reset';
|
|
1215
|
+
className?: string;
|
|
1216
|
+
tooltipMessage?: TooltipProps['message'];
|
|
1217
|
+
slotProps?: {
|
|
1218
|
+
tooltip?: Omit<TooltipProps, 'message'>;
|
|
1219
|
+
};
|
|
1220
|
+
sx?: IconButtonBaseProps['sx'];
|
|
1221
|
+
}
|
|
1222
|
+
declare const IconButton: ({ icon, loading, tooltipMessage, sizing, slotProps, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1223
|
+
|
|
1225
1224
|
interface IconButtonGroupProps extends PropsWithChildren {
|
|
1226
1225
|
ButtonGroupProps?: ButtonGroupProps;
|
|
1227
1226
|
variation?: 'default' | 'toggle';
|
|
@@ -2027,4 +2026,4 @@ declare module '@mui/system' {
|
|
|
2027
2026
|
}
|
|
2028
2027
|
}
|
|
2029
2028
|
|
|
2030
|
-
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, Button, type ButtonProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, type ColorRange$1 as ColorRange, type ColorRangeAlpha$1 as ColorRangeAlpha, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonGroup, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopsAiButton, type LoopsAiButtonProps, Markdown, type MarkdownProps, Menu, type MenuProps, Navigation, NavigationButton, type NavigationButtonProps, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, OnboardingCard, type OnboardingCardProps, type OnboardingItem, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Popper, type PopperProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, ProjectItemEmpty, type ProjectItemEmptyProps, type ProjectItemProps, Projects, type ProjectsProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, type SemanticColor, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, compareArrayMembers, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, yellow, yellowRamp };
|
|
2029
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, Button, type ButtonProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, type ColorRange$1 as ColorRange, type ColorRangeAlpha$1 as ColorRangeAlpha, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopsAiButton, type LoopsAiButtonProps, Markdown, type MarkdownProps, Menu, type MenuProps, Navigation, NavigationButton, type NavigationButtonProps, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, OnboardingCard, type OnboardingCardProps, type OnboardingItem, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Popper, type PopperProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, ProjectItemEmpty, type ProjectItemEmptyProps, type ProjectItemProps, Projects, type ProjectsProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, type SemanticColor, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, compareArrayMembers, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, yellow, yellowRamp };
|