@useloops/design-system 1.4.177 → 1.4.179

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _mui_material from '@mui/material';
2
- import { SxProps, Theme, PaperProps, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
2
+ import { SxProps, Theme, PaperProps, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$2, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
3
3
  import react, { FunctionComponent, PropsWithChildren, FC, ReactNode, ReactElement, ChangeEvent, Dispatch, SetStateAction } from 'react';
4
4
  import { SubmitHandler } from 'react-hook-form';
5
5
  import { Theme as Theme$1 } from '@mui/material/styles';
@@ -690,17 +690,17 @@ type NavigationSizing = 'sm' | 'lg';
690
690
  interface NavigationProps {
691
691
  isMobile?: boolean;
692
692
  logoLink?: string;
693
- nudgeProps: NudgeProps$1;
694
- primaryMenuItemProps: MenuItemProps[];
695
- secondaryMenuItemProps: MenuItemProps[];
693
+ nudgeProps?: NudgeProps$1;
694
+ primaryMenuItemProps?: MenuItemProps$1[];
695
+ secondaryMenuItemProps?: MenuItemProps$1[];
696
696
  sizing?: NavigationSizing;
697
- tertiaryMenuItemProps: MenuItemProps[];
697
+ tertiaryMenuItemProps?: MenuItemProps$1[];
698
698
  toggleMenuOnClick?: () => void;
699
699
  userMenuProps: UserMenuProps$1;
700
700
  }
701
- interface MenuItemProps {
701
+ interface MenuItemProps$1 {
702
702
  active?: boolean;
703
- children?: MenuItemProps[];
703
+ children?: MenuItemProps$1[];
704
704
  danger?: boolean;
705
705
  fullWidth?: boolean;
706
706
  href?: string;
@@ -713,7 +713,7 @@ interface MenuItemProps {
713
713
  interface UserMenuProps$1 {
714
714
  avatar: string;
715
715
  email: string;
716
- menuItems: MenuItemProps[];
716
+ menuItems: MenuItemProps$1[];
717
717
  name: string;
718
718
  }
719
719
  interface NudgeProps$1 extends PropsWithChildren {
@@ -787,6 +787,10 @@ declare const ProjectItem: FunctionComponent<ProjectItemProps>;
787
787
 
788
788
  declare const ProjectItemEmpty: FunctionComponent<ProjectItemEmptyProps>;
789
789
 
790
+ interface ProjectsProps {
791
+ }
792
+ declare const Projects: FunctionComponent<ProjectsProps>;
793
+
790
794
  interface SectionHeaderProps {
791
795
  buttons?: ReactNode;
792
796
  subtitle?: string;
@@ -851,6 +855,10 @@ interface AvatarGroupProps extends AvatarGroupProps$1 {
851
855
  }
852
856
  declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
853
857
 
858
+ interface BadgeProps extends PropsWithChildren {
859
+ }
860
+ declare const Badge: FunctionComponent<BadgeProps>;
861
+
854
862
  type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
855
863
 
856
864
  interface ButtonBaseProps extends ButtonProps$1 {
@@ -957,9 +965,9 @@ interface DropdownMenuItemProps {
957
965
  icon?: ReactElement;
958
966
  label: string;
959
967
  onClick: () => void;
960
- menuItemProps?: MenuItemProps$1;
968
+ menuItemProps?: MenuItemProps$2;
961
969
  }
962
- interface DropdownMenuProps extends MenuProps {
970
+ interface DropdownMenuProps extends MenuProps$1 {
963
971
  open: boolean;
964
972
  anchorEl: HTMLElement | null;
965
973
  handleClose: () => void;
@@ -1018,6 +1026,7 @@ interface FormGeneratorConfig {
1018
1026
  mode?: 'onSubmit' | 'onBlur' | 'onChange';
1019
1027
  formId?: string;
1020
1028
  reValidateMode?: 'onSubmit' | 'onBlur' | 'onChange';
1029
+ validateOnInit?: boolean;
1021
1030
  styleOverrides?: {
1022
1031
  sxForm?: SxProps<Theme>;
1023
1032
  sxButtons?: SxProps<Theme>;
@@ -1094,6 +1103,11 @@ interface HtmlProps {
1094
1103
  }
1095
1104
  declare const Html: FunctionComponent<HtmlProps>;
1096
1105
 
1106
+ type HtmlParserProps = {
1107
+ children: string;
1108
+ };
1109
+ declare const HtmlParser: FC<HtmlParserProps>;
1110
+
1097
1111
  interface TooltipProps extends PropsWithChildren {
1098
1112
  message: TooltipProps$1['title'];
1099
1113
  variation?: 'primary';
@@ -1221,8 +1235,32 @@ declare const LoopsAiButton: FunctionComponent<LoopsAiButtonProps>;
1221
1235
 
1222
1236
  declare const Markdown: (props: any) => react_jsx_runtime.JSX.Element;
1223
1237
 
1224
- type MenuButtonSizing = 'sm' | 'md' | 'lg';
1225
- interface MenuButtonProps {
1238
+ interface MenuItemProps {
1239
+ active?: boolean;
1240
+ children?: MenuItemProps[];
1241
+ closeOnClick?: boolean;
1242
+ danger?: boolean;
1243
+ divider?: boolean;
1244
+ heading?: boolean;
1245
+ label?: string;
1246
+ onClick?: () => void;
1247
+ selected?: boolean;
1248
+ selectOne?: boolean;
1249
+ width?: number;
1250
+ }
1251
+
1252
+ interface MenuProps extends PropsWithChildren {
1253
+ menuItems?: MenuItemProps[];
1254
+ offset?: number[];
1255
+ placement?: PopperProps$1['placement'];
1256
+ state?: PopupState;
1257
+ trigger: ReactElement;
1258
+ width?: number;
1259
+ }
1260
+ declare const Menu: FunctionComponent<MenuProps>;
1261
+
1262
+ type NavigationButtonSizing = 'sm' | 'md' | 'lg';
1263
+ interface NavigationButtonProps {
1226
1264
  active?: boolean;
1227
1265
  danger?: boolean;
1228
1266
  fullWidth?: boolean;
@@ -1231,9 +1269,9 @@ interface MenuButtonProps {
1231
1269
  label: string;
1232
1270
  navigationSizing: NavigationSizing;
1233
1271
  onClick?: () => void;
1234
- sizing?: MenuButtonSizing;
1272
+ sizing?: NavigationButtonSizing;
1235
1273
  }
1236
- declare const MenuButton: FunctionComponent<MenuButtonProps>;
1274
+ declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
1237
1275
 
1238
1276
  interface NudgeProps extends PropsWithChildren {
1239
1277
  description: string;
@@ -1276,14 +1314,11 @@ interface PopperProps {
1276
1314
  transitionFadeProps?: Pick<FadeProps, 'easing' | 'timeout' | 'appear' | 'enter' | 'exit'>;
1277
1315
  surfaceProps?: SurfaceProps;
1278
1316
  bindOn?: BindOn[];
1279
- trigger: (state: PopupState) => ReactNode;
1317
+ trigger: ReactElement;
1280
1318
  children: ReactElement;
1319
+ state?: PopupState;
1281
1320
  }
1282
- declare const Popper: ({ bindOn, trigger, children, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
1283
-
1284
- interface PortalProps extends PropsWithChildren {
1285
- }
1286
- declare const Portal: FunctionComponent<PortalProps>;
1321
+ declare const Popper: ({ bindOn, trigger, children, state, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
1287
1322
 
1288
1323
  declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
1289
1324
 
@@ -1361,7 +1396,7 @@ type SelectProps = {
1361
1396
  readOnly?: boolean;
1362
1397
  ref?: SelectProps$1['ref'];
1363
1398
  required?: boolean;
1364
- selectOptionProps?: MenuItemProps$1;
1399
+ selectOptionProps?: MenuItemProps$2;
1365
1400
  sizing?: 'xs' | 'md' | 'lg';
1366
1401
  sx?: SelectProps$1['sx'];
1367
1402
  value?: SelectProps$1['value'];
@@ -1512,7 +1547,10 @@ interface UserMenuProps extends PropsWithChildren {
1512
1547
  email: string;
1513
1548
  menuItems?: MenuItem[];
1514
1549
  name: string;
1515
- navigationSizing: NavigationSizing;
1550
+ offset?: number[];
1551
+ placement?: PopperProps$1['placement'];
1552
+ rounded?: boolean;
1553
+ width?: number;
1516
1554
  }
1517
1555
  interface MenuItem {
1518
1556
  children?: MenuItem[];
@@ -1946,4 +1984,4 @@ declare module '@mui/system' {
1946
1984
  }
1947
1985
  }
1948
1986
 
1949
- export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, 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, 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, MenuButton, type MenuButtonProps, Navigation, 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, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, ProjectItemEmpty, type ProjectItemEmptyProps, type ProjectItemProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, type SemanticColor, 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, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, compareArrayMembers, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, yellow, yellowRamp };
1987
+ 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, 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, 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, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, compareArrayMembers, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, yellow, yellowRamp };