@useloops/design-system 1.4.128 → 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/esm/index.js +4 -4
- package/dist/index.d.ts +39 -9
- package/dist/index.js +4 -4
- package/package.json +2 -1
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, ButtonGroupProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SelectChangeEvent, TextFieldProps as TextFieldProps$1, PaperProps, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1,
|
|
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, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SelectChangeEvent, TextFieldProps as TextFieldProps$1, 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 { Theme as Theme$1 } from '@mui/material/styles';
|
|
6
6
|
import { NumericFormatProps } from 'react-number-format';
|
|
@@ -367,6 +367,13 @@ interface StyledIconButtonProps extends IconButtonProps$1 {
|
|
|
367
367
|
loading?: boolean;
|
|
368
368
|
}
|
|
369
369
|
|
|
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
|
+
|
|
370
377
|
interface IconButtonProps {
|
|
371
378
|
variation?: IconButtonVariation;
|
|
372
379
|
shape?: IconButtonShapeMap;
|
|
@@ -381,8 +388,12 @@ interface IconButtonProps {
|
|
|
381
388
|
id?: string;
|
|
382
389
|
type?: 'button' | 'submit' | 'reset';
|
|
383
390
|
className?: string;
|
|
391
|
+
tooltipMessage?: TooltipProps['message'];
|
|
392
|
+
slotProps?: {
|
|
393
|
+
tooltip?: Omit<TooltipProps, 'message'>;
|
|
394
|
+
};
|
|
384
395
|
}
|
|
385
|
-
declare const IconButton: ({ icon, loading, sizing, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
396
|
+
declare const IconButton: ({ icon, loading, tooltipMessage, sizing, slotProps, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
386
397
|
|
|
387
398
|
interface IconButtonGroupProps extends PropsWithChildren {
|
|
388
399
|
ButtonGroupProps?: ButtonGroupProps;
|
|
@@ -457,6 +468,16 @@ declare const Loader: FunctionComponent<LoaderProps>;
|
|
|
457
468
|
|
|
458
469
|
declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
459
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
|
+
|
|
460
481
|
type NumberFieldProps = InputFieldBaseProps$1 & {
|
|
461
482
|
hideActionButtons?: boolean;
|
|
462
483
|
max?: number;
|
|
@@ -669,7 +690,7 @@ type TextareaProps = InputFieldBaseProps & {
|
|
|
669
690
|
declare const Textarea: FunctionComponent<TextareaProps>;
|
|
670
691
|
|
|
671
692
|
interface TypographyProps {
|
|
672
|
-
variation: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
693
|
+
variation: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
673
694
|
component: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
674
695
|
weight?: 'default' | 'bold';
|
|
675
696
|
clamp?: number;
|
|
@@ -700,12 +721,21 @@ interface ToastProps {
|
|
|
700
721
|
}
|
|
701
722
|
declare const Toast: FunctionComponent<ToastProps>;
|
|
702
723
|
|
|
703
|
-
interface
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
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';
|
|
707
737
|
}
|
|
708
|
-
declare const
|
|
738
|
+
declare const UserMenu: FunctionComponent<UserMenuProps>;
|
|
709
739
|
|
|
710
740
|
interface BackgroundOptions {
|
|
711
741
|
texture?: 'none' | 'noise1';
|
|
@@ -1263,4 +1293,4 @@ declare module '@mui/system' {
|
|
|
1263
1293
|
}
|
|
1264
1294
|
}
|
|
1265
1295
|
|
|
1266
|
-
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 };
|