@useloops/design-system 1.4.223 → 1.4.225
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 +45 -23
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
2
|
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$1, CSSObject, 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, 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
|
-
import
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import react__default, { FunctionComponent, PropsWithChildren, FC, ReactNode, Dispatch, SetStateAction, ReactElement, ChangeEvent } from 'react';
|
|
4
5
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { SubmitHandler } from 'react-hook-form';
|
|
@@ -943,6 +944,24 @@ interface BackgroundOptions {
|
|
|
943
944
|
}
|
|
944
945
|
declare const backgroundCreator: (theme: Theme, options: BackgroundOptions) => string;
|
|
945
946
|
|
|
947
|
+
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
948
|
+
type SupportedFrequency = 'monthly' | 'annual';
|
|
949
|
+
interface AnnualControllerProps {
|
|
950
|
+
body: string;
|
|
951
|
+
currency: string;
|
|
952
|
+
changeCurrencyEvent?: (value: string) => void;
|
|
953
|
+
frequency: string;
|
|
954
|
+
heading: string;
|
|
955
|
+
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
956
|
+
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
957
|
+
togglePayAnnuallyEvent?: () => void;
|
|
958
|
+
selections?: {
|
|
959
|
+
value: SupportedCurrency;
|
|
960
|
+
label: string;
|
|
961
|
+
}[];
|
|
962
|
+
}
|
|
963
|
+
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
964
|
+
|
|
946
965
|
interface AuthFormHeaderProps {
|
|
947
966
|
logo?: ReactElement | false | undefined;
|
|
948
967
|
headerText?: string;
|
|
@@ -1048,7 +1067,7 @@ interface ColorBackgroundContainerProps {
|
|
|
1048
1067
|
declare const ColorBackgroundContainer: FunctionComponent<ColorBackgroundContainerProps>;
|
|
1049
1068
|
|
|
1050
1069
|
type CustomFieldProps = {
|
|
1051
|
-
inputField:
|
|
1070
|
+
inputField: react__default.FC<{
|
|
1052
1071
|
onChange: (data: unknown) => void;
|
|
1053
1072
|
}>;
|
|
1054
1073
|
onChange?: (data: unknown) => void;
|
|
@@ -1088,7 +1107,7 @@ declare const DropdownMenu: FunctionComponent<DropdownMenuProps>;
|
|
|
1088
1107
|
|
|
1089
1108
|
declare const useDropdownMenu: () => {
|
|
1090
1109
|
open: boolean;
|
|
1091
|
-
handleClick: (event:
|
|
1110
|
+
handleClick: (event: react__default.MouseEvent<HTMLButtonElement>) => void;
|
|
1092
1111
|
handleClose: () => void;
|
|
1093
1112
|
anchorEl: HTMLElement | null;
|
|
1094
1113
|
};
|
|
@@ -1697,25 +1716,6 @@ interface VideoModalProps {
|
|
|
1697
1716
|
}
|
|
1698
1717
|
declare const VideoModal: FunctionComponent<VideoModalProps>;
|
|
1699
1718
|
|
|
1700
|
-
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
1701
|
-
type SupportedFrequency = 'monthly' | 'annual';
|
|
1702
|
-
interface AnnualControllerProps {
|
|
1703
|
-
body: string;
|
|
1704
|
-
currency: string;
|
|
1705
|
-
changeCurrencyEvent?: (value: string) => void;
|
|
1706
|
-
frequency: string;
|
|
1707
|
-
heading: string;
|
|
1708
|
-
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
1709
|
-
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
1710
|
-
togglePayAnnuallyEvent?: () => void;
|
|
1711
|
-
sizing?: 'sm' | 'lg';
|
|
1712
|
-
selections?: {
|
|
1713
|
-
value: SupportedCurrency;
|
|
1714
|
-
label: string;
|
|
1715
|
-
}[];
|
|
1716
|
-
}
|
|
1717
|
-
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
1718
|
-
|
|
1719
1719
|
declare const _default: {
|
|
1720
1720
|
headings: {
|
|
1721
1721
|
"01-starter": {
|
|
@@ -1908,6 +1908,28 @@ declare const usePrevious: <TValue>(value: TValue) => TValue | undefined;
|
|
|
1908
1908
|
|
|
1909
1909
|
type ScreenSize = 'sm' | 'lg';
|
|
1910
1910
|
|
|
1911
|
+
declare const customTheme: (mode: PaletteMode, size: ScreenSize, direction?: Direction) => Theme;
|
|
1912
|
+
|
|
1913
|
+
interface ThemeCtx {
|
|
1914
|
+
breakpoint: string;
|
|
1915
|
+
gridOverlayVisible: boolean;
|
|
1916
|
+
mode: PaletteMode;
|
|
1917
|
+
theme: Theme;
|
|
1918
|
+
toggleGridOverlay: () => void;
|
|
1919
|
+
toggleMode: (mode?: PaletteMode) => void;
|
|
1920
|
+
}
|
|
1921
|
+
declare const ThemeContext: react.Context<Nullable<ThemeCtx>>;
|
|
1922
|
+
|
|
1923
|
+
declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
|
|
1924
|
+
breakpoint: "" | "sm" | "md" | "lg" | "xl";
|
|
1925
|
+
gridOverlayVisible: boolean;
|
|
1926
|
+
mode: PaletteMode;
|
|
1927
|
+
theme: _mui_material.Theme;
|
|
1928
|
+
toggleGridOverlay: () => void;
|
|
1929
|
+
toggleMode: (mode?: PaletteMode) => void;
|
|
1930
|
+
};
|
|
1931
|
+
declare const useTheme: () => ThemeCtx;
|
|
1932
|
+
|
|
1911
1933
|
interface Props extends PropsWithChildren {
|
|
1912
1934
|
mode?: PaletteMode;
|
|
1913
1935
|
screenSize?: ScreenSize;
|
|
@@ -2120,4 +2142,4 @@ declare module '@mui/system' {
|
|
|
2120
2142
|
}
|
|
2121
2143
|
}
|
|
2122
2144
|
|
|
2123
|
-
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, 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 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 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, 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, buttonInteraction, chooseArticle, compareArrayMembers, 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, yellow, yellowRamp };
|
|
2145
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, 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 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 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, 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 };
|