@useloops/design-system 1.4.150 → 1.4.152

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,6 +1,6 @@
1
1
  import react, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, FC, Dispatch, SetStateAction } from 'react';
2
2
  import * as _mui_material from '@mui/material';
3
- import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SelectChangeEvent, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
3
+ import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SelectChangeEvent, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as _emotion_styled from '@emotion/styled';
6
6
  import * as _mui_system from '@mui/system';
@@ -181,11 +181,11 @@ interface AuthFormHeaderProps {
181
181
  declare const AuthFormHeader: FunctionComponent<AuthFormHeaderProps>;
182
182
 
183
183
  interface AvatarProps {
184
- variation?: 'sm' | 'lg';
185
- src?: string;
186
184
  alt?: string;
187
- className?: string;
188
185
  children?: ReactElement;
186
+ className?: string;
187
+ sizing?: 'sm' | 'lg';
188
+ src?: string;
189
189
  }
190
190
  declare const Avatar: FunctionComponent<AvatarProps>;
191
191
 
@@ -196,7 +196,7 @@ interface AvatarGroupProps extends AvatarGroupProps$1 {
196
196
  }
197
197
  declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
198
198
 
199
- type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
199
+ type GenericSizeMap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
200
200
 
201
201
  type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
202
202
 
@@ -350,12 +350,19 @@ interface HtmlProps {
350
350
  declare const Html: FunctionComponent<HtmlProps>;
351
351
 
352
352
  interface IconProps {
353
- name: 'arrow-forward' | 'expand-more' | 'close' | 'play' | 'positive' | 'negative' | 'neutral' | 'info' | 'check-circle' | 'error-outline' | 'lightbulb' | 'warning-amber' | 'access-time' | 'linkedin' | 'medium' | 'menu' | 'unfold-more' | 'navigation-arrow' | 'lock' | 'loopsOfficial' | 'google' | 'linkedin-color' | 'check' | 'dash' | 'gift' | 'push-left' | 'push-right' | 'star' | 'open-in-new' | 'notification' | 'chevron-right' | 'check-thin' | 'home' | 'folder' | 'help' | string;
353
+ name: 'access-time' | 'arrow-forward' | 'check-circle' | 'check-thin' | 'check' | 'chevron-right' | 'close' | 'dash' | 'error-outline' | 'expand-more' | 'folder' | 'gift' | 'google' | 'help' | 'home' | 'info' | 'lightbulb' | 'linkedin-color' | 'linkedin' | 'lock' | 'loopsOfficial' | 'medium' | 'menu' | 'navigation-arrow' | 'negative' | 'neutral' | 'notification' | 'open-in-new' | 'play' | 'positive' | 'push-left' | 'push-right' | 'settings' | 'star' | 'unfold-more' | 'warning-amber' | string;
354
354
  size?: number;
355
355
  sx?: SxProps;
356
356
  }
357
357
  declare const Icon: FunctionComponent<IconProps>;
358
358
 
359
+ interface TooltipProps extends PropsWithChildren {
360
+ message: TooltipProps$1['title'];
361
+ variation?: 'primary';
362
+ placement?: TooltipProps$1['placement'];
363
+ }
364
+ declare const Tooltip: FunctionComponent<TooltipProps>;
365
+
359
366
  type IconButtonSizing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
360
367
  type IconButtonShapeMap = 'default' | 'round';
361
368
  type IconButtonVariation = 'default' | 'toggle' | 'outlined' | 'raised';
@@ -367,13 +374,6 @@ interface StyledIconButtonProps extends IconButtonProps$1 {
367
374
  loading?: boolean;
368
375
  }
369
376
 
370
- interface TooltipProps extends PropsWithChildren {
371
- message: TooltipProps$1['title'];
372
- variation?: 'primary';
373
- placement?: TooltipProps$1['placement'];
374
- }
375
- declare const Tooltip: FunctionComponent<TooltipProps>;
376
-
377
377
  interface IconButtonProps {
378
378
  variation?: IconButtonVariation;
379
379
  shape?: IconButtonShapeMap;
@@ -475,22 +475,27 @@ declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
475
475
 
476
476
  declare const Markdown: (props: MuiMarkdownProps) => react_jsx_runtime.JSX.Element;
477
477
 
478
- interface NavButtonProps {
478
+ type NavigationSizing = 'sm' | 'lg';
479
+
480
+ type MenuButtonSizing = 'sm' | 'md' | 'lg';
481
+ interface MenuButtonProps {
479
482
  active?: boolean;
483
+ danger?: boolean;
484
+ fullWidth?: boolean;
480
485
  href?: string;
481
486
  icon?: string;
482
487
  label: string;
488
+ navigationSizing: NavigationSizing;
483
489
  onClick?: () => void;
484
- variation?: 'sm' | 'lg';
490
+ sizing?: MenuButtonSizing;
485
491
  }
486
- declare const NavButton: FunctionComponent<NavButtonProps>;
492
+ declare const MenuButton: FunctionComponent<MenuButtonProps>;
487
493
 
488
- type NudgeVariation = 'sm' | 'lg';
489
494
  interface NudgeProps extends PropsWithChildren {
490
495
  description: string;
491
496
  notification?: boolean;
492
497
  title: string;
493
- variation?: NudgeVariation;
498
+ navigationSizing: NavigationSizing;
494
499
  }
495
500
  declare const Nudge: FunctionComponent<NudgeProps>;
496
501
 
@@ -714,10 +719,11 @@ type TextareaProps = InputFieldBaseProps & {
714
719
  declare const Textarea: FunctionComponent<TextareaProps>;
715
720
 
716
721
  interface TypographyProps {
717
- variation: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
722
+ clamp?: number;
718
723
  component: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
724
+ type?: 'default' | 'button';
725
+ variation: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
719
726
  weight?: 'default' | 'bold';
720
- clamp?: number;
721
727
  }
722
728
  declare const Typography: FunctionComponent<TypographyProps & TypographyProps$1>;
723
729
 
@@ -745,19 +751,19 @@ interface ToastProps {
745
751
  }
746
752
  declare const Toast: FunctionComponent<ToastProps>;
747
753
 
748
- interface MenuItem {
749
- children?: MenuItem[];
750
- danger?: boolean;
751
- onClick?: () => void;
752
- selected?: boolean;
753
- title: string;
754
- }
755
754
  interface UserMenuProps extends PropsWithChildren {
756
755
  avatar?: string;
757
756
  email: string;
758
757
  menuItems?: MenuItem[];
759
758
  name: string;
760
- variation?: 'sm' | 'lg';
759
+ navigationSizing: NavigationSizing;
760
+ }
761
+ interface MenuItem {
762
+ children?: MenuItem[];
763
+ danger?: boolean;
764
+ label: string;
765
+ onClick?: () => void;
766
+ selected?: boolean;
761
767
  }
762
768
  declare const UserMenu: FunctionComponent<UserMenuProps>;
763
769
 
@@ -1294,4 +1300,4 @@ declare module '@mui/system' {
1294
1300
  }
1295
1301
  }
1296
1302
 
1297
- export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Markdown, NavButton, type NavButtonProps, Nudge, type NudgeProps, NumberField, type NumberFieldProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
1303
+ export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, type IconButtonProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Markdown, MenuButton, type MenuButtonProps, Nudge, type NudgeProps, NumberField, type NumberFieldProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };