@useloops/design-system 1.4.278 → 1.4.280
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 +16 -21
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
2
|
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$1, CSSObject, AvatarProps as AvatarProps$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, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, BoxProps, 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 * as react from 'react';
|
|
4
|
-
import react__default, {
|
|
4
|
+
import react__default, { FC, FunctionComponent, ReactNode, PropsWithChildren, Dispatch, SetStateAction, ReactElement, ChangeEvent } from 'react';
|
|
5
5
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { SubmitHandler } from 'react-hook-form';
|
|
@@ -657,12 +657,9 @@ interface CustomTheme {
|
|
|
657
657
|
type SurfaceVariation = 'default' | 'sunken' | 'raised' | 'overlay';
|
|
658
658
|
type BorderRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
659
659
|
|
|
660
|
-
interface SurfaceProps extends
|
|
660
|
+
interface SurfaceProps extends PaperProps {
|
|
661
661
|
variation?: SurfaceVariation;
|
|
662
662
|
borderradius?: BorderRadius;
|
|
663
|
-
sx?: SxProps<Theme>;
|
|
664
|
-
ref?: PaperProps['ref'];
|
|
665
|
-
component?: PaperProps['component'];
|
|
666
663
|
}
|
|
667
664
|
declare const Surface: FC<SurfaceProps>;
|
|
668
665
|
|
|
@@ -829,6 +826,11 @@ interface SectionHeaderProps {
|
|
|
829
826
|
}
|
|
830
827
|
declare const SectionHeader: FunctionComponent<SectionHeaderProps>;
|
|
831
828
|
|
|
829
|
+
interface LoopItemEmptyProps extends PropsWithChildren {
|
|
830
|
+
onClick: () => void;
|
|
831
|
+
}
|
|
832
|
+
declare const LoopItemEmpty: FunctionComponent<LoopItemEmptyProps>;
|
|
833
|
+
|
|
832
834
|
interface LoopItemProps extends PropsWithChildren {
|
|
833
835
|
onClick: () => void;
|
|
834
836
|
id: string;
|
|
@@ -1018,26 +1020,16 @@ declare const Badge: FunctionComponent<BadgeProps>;
|
|
|
1018
1020
|
|
|
1019
1021
|
interface ButtonBaseProps extends ButtonProps$1 {
|
|
1020
1022
|
loading?: boolean;
|
|
1021
|
-
sizing:
|
|
1023
|
+
sizing: ButtonSizing;
|
|
1022
1024
|
}
|
|
1023
1025
|
declare const ButtonBase: ({ children, loading, sizing, ...rest }: ButtonBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1024
1026
|
|
|
1025
|
-
interface ButtonProps {
|
|
1026
|
-
loading?: boolean;
|
|
1027
|
+
interface ButtonProps extends Partial<ButtonBaseProps> {
|
|
1027
1028
|
variation?: 'primary' | 'secondary' | 'outlined' | 'subtle';
|
|
1028
|
-
sizing?: ButtonSizing;
|
|
1029
|
-
fullWidth?: boolean;
|
|
1030
|
-
className?: string;
|
|
1031
|
-
disabled?: boolean;
|
|
1032
|
-
tabIndex?: number;
|
|
1033
1029
|
href?: string;
|
|
1030
|
+
fullWidth?: boolean;
|
|
1034
1031
|
endIcon?: ReactElement;
|
|
1035
1032
|
startIcon?: ReactElement;
|
|
1036
|
-
children: ButtonBaseProps['children'];
|
|
1037
|
-
onClick?: ButtonBaseProps['onClick'];
|
|
1038
|
-
onMouseDown?: ButtonBaseProps['onMouseDown'];
|
|
1039
|
-
onMouseUp?: ButtonBaseProps['onMouseUp'];
|
|
1040
|
-
type?: 'button' | 'submit' | 'reset';
|
|
1041
1033
|
}
|
|
1042
1034
|
declare const Button: FunctionComponent<ButtonProps>;
|
|
1043
1035
|
|
|
@@ -1269,7 +1261,7 @@ interface TypographyProps extends Omit<TypographyProps$1, 'ref'> {
|
|
|
1269
1261
|
weight?: 'default' | 'bold';
|
|
1270
1262
|
sx?: SxProps<Theme>;
|
|
1271
1263
|
}
|
|
1272
|
-
declare const Typography:
|
|
1264
|
+
declare const Typography: react.ForwardRefExoticComponent<TypographyProps & react.RefAttributes<HTMLHeadingElement | HTMLParagraphElement>>;
|
|
1273
1265
|
|
|
1274
1266
|
type HtmlParserProps = {
|
|
1275
1267
|
children: string;
|
|
@@ -1323,7 +1315,7 @@ interface IconButtonBaseProps extends IconButtonProps$1 {
|
|
|
1323
1315
|
}
|
|
1324
1316
|
declare const IconButtonBase: ({ children, ...rest }: IconButtonBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1325
1317
|
|
|
1326
|
-
interface TooltipProps extends Omit<TooltipProps$1
|
|
1318
|
+
interface TooltipProps extends Omit<Partial<TooltipProps$1>, 'title' | 'slotProps'> {
|
|
1327
1319
|
message: TooltipProps$1['title'];
|
|
1328
1320
|
variation?: 'primary';
|
|
1329
1321
|
slotProps?: TooltipProps$1['slotProps'] & {
|
|
@@ -1465,6 +1457,9 @@ interface MenuProps extends PropsWithChildren {
|
|
|
1465
1457
|
bindOn?: PopperProps['bindOn'];
|
|
1466
1458
|
trigger: ReactElement;
|
|
1467
1459
|
width?: number;
|
|
1460
|
+
slotProps?: {
|
|
1461
|
+
popper?: PopperProps['popperProps'];
|
|
1462
|
+
};
|
|
1468
1463
|
}
|
|
1469
1464
|
declare const Menu: FunctionComponent<MenuProps>;
|
|
1470
1465
|
|
|
@@ -2102,4 +2097,4 @@ declare module '@mui/system' {
|
|
|
2102
2097
|
}
|
|
2103
2098
|
}
|
|
2104
2099
|
|
|
2105
|
-
export { Accordion, type AccordionProps, AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BrandBadge, type BrandBadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, BulletGraphic, type BulletGraphicProps, Button, ButtonBase, type ButtonBaseProps, type ButtonProps, type ButtonSizing, 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, type GroupSelectOption, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonGroupProps, 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, LoopItem, type LoopItemProps, 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 PlanFeatureTableData, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, 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, type Section, SectionHeader, type SectionHeaderProps, Select, type SelectOption, 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, ThemeContext, type ThemeCtx, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, TrialCard, type TrialCardProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, buttonInteraction, chooseArticle, compareArrayMembers, customTheme, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, getButtonSizing, getButtonTypography, getIconSizing$1 as getIconSizing, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, outlined$1 as outlined, padding, passwordValidation, peach, peachRamp, primary, purple, purpleRamp, radius, red, redRamp, secondary, semantic, space, subtle, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };
|
|
2100
|
+
export { Accordion, type AccordionProps, AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BrandBadge, type BrandBadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, BulletGraphic, type BulletGraphicProps, Button, ButtonBase, type ButtonBaseProps, type ButtonProps, type ButtonSizing, 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, type GroupSelectOption, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonGroupProps, 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, LoopItem, LoopItemEmpty, type LoopItemEmptyProps, type LoopItemProps, 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 PlanFeatureTableData, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, 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, type Section, SectionHeader, type SectionHeaderProps, Select, type SelectOption, 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, ThemeContext, type ThemeCtx, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, TrialCard, type TrialCardProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, buttonInteraction, chooseArticle, compareArrayMembers, customTheme, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, getButtonSizing, getButtonTypography, getIconSizing$1 as getIconSizing, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, outlined$1 as outlined, padding, passwordValidation, peach, peachRamp, primary, purple, purpleRamp, radius, red, redRamp, secondary, semantic, space, subtle, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };
|