@useloops/design-system 1.4.177 → 1.4.178

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;
@@ -1221,8 +1229,32 @@ declare const LoopsAiButton: FunctionComponent<LoopsAiButtonProps>;
1221
1229
 
1222
1230
  declare const Markdown: (props: any) => react_jsx_runtime.JSX.Element;
1223
1231
 
1224
- type MenuButtonSizing = 'sm' | 'md' | 'lg';
1225
- interface MenuButtonProps {
1232
+ interface MenuItemProps {
1233
+ active?: boolean;
1234
+ children?: MenuItemProps[];
1235
+ closeOnClick?: boolean;
1236
+ danger?: boolean;
1237
+ divider?: boolean;
1238
+ heading?: boolean;
1239
+ label?: string;
1240
+ onClick?: () => void;
1241
+ selected?: boolean;
1242
+ selectOne?: boolean;
1243
+ width?: number;
1244
+ }
1245
+
1246
+ interface MenuProps extends PropsWithChildren {
1247
+ menuItems?: MenuItemProps[];
1248
+ offset?: number[];
1249
+ placement?: PopperProps$1['placement'];
1250
+ state?: PopupState;
1251
+ trigger: ReactElement;
1252
+ width?: number;
1253
+ }
1254
+ declare const Menu: FunctionComponent<MenuProps>;
1255
+
1256
+ type NavigationButtonSizing = 'sm' | 'md' | 'lg';
1257
+ interface NavigationButtonProps {
1226
1258
  active?: boolean;
1227
1259
  danger?: boolean;
1228
1260
  fullWidth?: boolean;
@@ -1231,9 +1263,9 @@ interface MenuButtonProps {
1231
1263
  label: string;
1232
1264
  navigationSizing: NavigationSizing;
1233
1265
  onClick?: () => void;
1234
- sizing?: MenuButtonSizing;
1266
+ sizing?: NavigationButtonSizing;
1235
1267
  }
1236
- declare const MenuButton: FunctionComponent<MenuButtonProps>;
1268
+ declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
1237
1269
 
1238
1270
  interface NudgeProps extends PropsWithChildren {
1239
1271
  description: string;
@@ -1276,14 +1308,11 @@ interface PopperProps {
1276
1308
  transitionFadeProps?: Pick<FadeProps, 'easing' | 'timeout' | 'appear' | 'enter' | 'exit'>;
1277
1309
  surfaceProps?: SurfaceProps;
1278
1310
  bindOn?: BindOn[];
1279
- trigger: (state: PopupState) => ReactNode;
1311
+ trigger: ReactElement;
1280
1312
  children: ReactElement;
1313
+ state?: PopupState;
1281
1314
  }
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>;
1315
+ declare const Popper: ({ bindOn, trigger, children, state, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
1287
1316
 
1288
1317
  declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
1289
1318
 
@@ -1361,7 +1390,7 @@ type SelectProps = {
1361
1390
  readOnly?: boolean;
1362
1391
  ref?: SelectProps$1['ref'];
1363
1392
  required?: boolean;
1364
- selectOptionProps?: MenuItemProps$1;
1393
+ selectOptionProps?: MenuItemProps$2;
1365
1394
  sizing?: 'xs' | 'md' | 'lg';
1366
1395
  sx?: SelectProps$1['sx'];
1367
1396
  value?: SelectProps$1['value'];
@@ -1512,7 +1541,10 @@ interface UserMenuProps extends PropsWithChildren {
1512
1541
  email: string;
1513
1542
  menuItems?: MenuItem[];
1514
1543
  name: string;
1515
- navigationSizing: NavigationSizing;
1544
+ offset?: number[];
1545
+ placement?: PopperProps$1['placement'];
1546
+ rounded?: boolean;
1547
+ width?: number;
1516
1548
  }
1517
1549
  interface MenuItem {
1518
1550
  children?: MenuItem[];
@@ -1946,4 +1978,4 @@ declare module '@mui/system' {
1946
1978
  }
1947
1979
  }
1948
1980
 
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 };
1981
+ 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, 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 };