@useloops/design-system 1.4.129 → 1.4.130

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
@@ -468,6 +468,16 @@ declare const Loader: FunctionComponent<LoaderProps>;
468
468
 
469
469
  declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
470
470
 
471
+ interface NavButtonProps {
472
+ active?: boolean;
473
+ href?: string;
474
+ icon?: string;
475
+ label: string;
476
+ onClick?: () => void;
477
+ variation?: 'sm' | 'lg';
478
+ }
479
+ declare const NavButton: FunctionComponent<NavButtonProps>;
480
+
471
481
  type NumberFieldProps = InputFieldBaseProps$1 & {
472
482
  hideActionButtons?: boolean;
473
483
  max?: number;
@@ -680,7 +690,7 @@ type TextareaProps = InputFieldBaseProps & {
680
690
  declare const Textarea: FunctionComponent<TextareaProps>;
681
691
 
682
692
  interface TypographyProps {
683
- variation: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
693
+ variation: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
684
694
  component: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
685
695
  weight?: 'default' | 'bold';
686
696
  clamp?: number;
@@ -711,6 +721,22 @@ interface ToastProps {
711
721
  }
712
722
  declare const Toast: FunctionComponent<ToastProps>;
713
723
 
724
+ interface MenuItem {
725
+ children?: MenuItem[];
726
+ danger?: boolean;
727
+ onClick?: () => void;
728
+ selected?: boolean;
729
+ title: string;
730
+ }
731
+ interface UserMenuProps extends PropsWithChildren {
732
+ avatar?: string;
733
+ email: string;
734
+ menuItems?: MenuItem[];
735
+ name: string;
736
+ variation?: 'sm' | 'lg';
737
+ }
738
+ declare const UserMenu: FunctionComponent<UserMenuProps>;
739
+
714
740
  interface BackgroundOptions {
715
741
  texture?: 'none' | 'noise1';
716
742
  gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
@@ -1267,4 +1293,4 @@ declare module '@mui/system' {
1267
1293
  }
1268
1294
  }
1269
1295
 
1270
- 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, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, 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, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
1296
+ 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, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, NavButton, type NavButtonProps, 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 };