@useloops/design-system 1.4.186 → 1.4.187
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 +45 -69
- package/dist/index.js +2 -2
- package/package.json +1 -1
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 as MenuProps$1, MenuItemProps as MenuItemProps$
|
|
2
|
+
import { SxProps, Theme, PaperProps, PopperProps as PopperProps$1, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TypographyProps as TypographyProps$1, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SwitchProps as SwitchProps$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';
|
|
@@ -686,35 +686,57 @@ interface HeaderProps {
|
|
|
686
686
|
}
|
|
687
687
|
declare const Header: FunctionComponent<HeaderProps>;
|
|
688
688
|
|
|
689
|
-
type
|
|
690
|
-
interface
|
|
691
|
-
isMobile?: boolean;
|
|
692
|
-
logoLink?: string;
|
|
693
|
-
nudgeProps?: NudgeProps$1;
|
|
694
|
-
primaryMenuItemProps?: MenuItemProps$1[];
|
|
695
|
-
secondaryMenuItemProps?: MenuItemProps$1[];
|
|
696
|
-
sizing?: NavigationSizing;
|
|
697
|
-
tertiaryMenuItemProps?: MenuItemProps$1[];
|
|
698
|
-
toggleMenuOnClick?: () => void;
|
|
699
|
-
userMenuProps: UserMenuProps$1;
|
|
700
|
-
}
|
|
701
|
-
interface MenuItemProps$1 {
|
|
689
|
+
type NavigationButtonSizing = 'sm' | 'md' | 'lg';
|
|
690
|
+
interface NavigationButtonProps {
|
|
702
691
|
active?: boolean;
|
|
703
|
-
children?: MenuItemProps$1[];
|
|
704
692
|
danger?: boolean;
|
|
705
693
|
fullWidth?: boolean;
|
|
706
694
|
href?: string;
|
|
707
695
|
icon?: IconName;
|
|
708
|
-
label
|
|
696
|
+
label?: string;
|
|
697
|
+
navigationSizing?: NavigationSizing;
|
|
698
|
+
onClick?: () => void;
|
|
699
|
+
sizing?: NavigationButtonSizing;
|
|
700
|
+
}
|
|
701
|
+
declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
|
|
702
|
+
|
|
703
|
+
interface MenuItemProps {
|
|
704
|
+
active?: boolean;
|
|
705
|
+
children?: MenuItemProps[];
|
|
706
|
+
closeOnClick?: boolean;
|
|
707
|
+
danger?: boolean;
|
|
708
|
+
divider?: boolean;
|
|
709
|
+
heading?: boolean;
|
|
710
|
+
label?: string;
|
|
709
711
|
onClick?: () => void;
|
|
710
712
|
selected?: boolean;
|
|
711
|
-
|
|
713
|
+
selectOne?: boolean;
|
|
714
|
+
width?: number;
|
|
712
715
|
}
|
|
713
|
-
|
|
714
|
-
|
|
716
|
+
|
|
717
|
+
interface UserMenuProps extends PropsWithChildren {
|
|
718
|
+
avatar?: string;
|
|
715
719
|
email: string;
|
|
716
|
-
menuItems
|
|
720
|
+
menuItems?: MenuItemProps[];
|
|
717
721
|
name: string;
|
|
722
|
+
offset?: number[];
|
|
723
|
+
placement?: PopperProps$1['placement'];
|
|
724
|
+
rounded?: boolean;
|
|
725
|
+
width?: number;
|
|
726
|
+
}
|
|
727
|
+
declare const UserMenu: FunctionComponent<UserMenuProps>;
|
|
728
|
+
|
|
729
|
+
type NavigationSizing = 'sm' | 'lg';
|
|
730
|
+
interface NavigationProps {
|
|
731
|
+
isMobile?: boolean;
|
|
732
|
+
logoLink?: string;
|
|
733
|
+
nudgeProps?: NudgeProps$1;
|
|
734
|
+
primaryMenuItemProps?: NavigationButtonProps[];
|
|
735
|
+
secondaryMenuItemProps?: NavigationButtonProps[];
|
|
736
|
+
sizing?: NavigationSizing;
|
|
737
|
+
tertiaryMenuItemProps?: NavigationButtonProps[];
|
|
738
|
+
toggleMenuOnClick?: () => void;
|
|
739
|
+
userMenuProps: UserMenuProps;
|
|
718
740
|
}
|
|
719
741
|
interface NudgeProps$1 extends PropsWithChildren {
|
|
720
742
|
description: string;
|
|
@@ -965,7 +987,7 @@ interface DropdownMenuItemProps {
|
|
|
965
987
|
icon?: ReactElement;
|
|
966
988
|
label: string;
|
|
967
989
|
onClick: () => void;
|
|
968
|
-
menuItemProps?: MenuItemProps$
|
|
990
|
+
menuItemProps?: MenuItemProps$1;
|
|
969
991
|
}
|
|
970
992
|
interface DropdownMenuProps extends MenuProps$1 {
|
|
971
993
|
open: boolean;
|
|
@@ -1240,6 +1262,7 @@ declare const Loader: FunctionComponent<LoaderProps>;
|
|
|
1240
1262
|
declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
1241
1263
|
|
|
1242
1264
|
interface LoopsAiButtonProps {
|
|
1265
|
+
disabled?: boolean;
|
|
1243
1266
|
}
|
|
1244
1267
|
declare const LoopsAiButton: FunctionComponent<LoopsAiButtonProps>;
|
|
1245
1268
|
|
|
@@ -1249,20 +1272,6 @@ type MarkdownProps = {
|
|
|
1249
1272
|
};
|
|
1250
1273
|
declare const Markdown: FC<MarkdownProps>;
|
|
1251
1274
|
|
|
1252
|
-
interface MenuItemProps {
|
|
1253
|
-
active?: boolean;
|
|
1254
|
-
children?: MenuItemProps[];
|
|
1255
|
-
closeOnClick?: boolean;
|
|
1256
|
-
danger?: boolean;
|
|
1257
|
-
divider?: boolean;
|
|
1258
|
-
heading?: boolean;
|
|
1259
|
-
label?: string;
|
|
1260
|
-
onClick?: () => void;
|
|
1261
|
-
selected?: boolean;
|
|
1262
|
-
selectOne?: boolean;
|
|
1263
|
-
width?: number;
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
1275
|
interface MenuProps extends PropsWithChildren {
|
|
1267
1276
|
menuItems?: MenuItemProps[];
|
|
1268
1277
|
offset?: number[];
|
|
@@ -1273,20 +1282,6 @@ interface MenuProps extends PropsWithChildren {
|
|
|
1273
1282
|
}
|
|
1274
1283
|
declare const Menu: FunctionComponent<MenuProps>;
|
|
1275
1284
|
|
|
1276
|
-
type NavigationButtonSizing = 'sm' | 'md' | 'lg';
|
|
1277
|
-
interface NavigationButtonProps {
|
|
1278
|
-
active?: boolean;
|
|
1279
|
-
danger?: boolean;
|
|
1280
|
-
fullWidth?: boolean;
|
|
1281
|
-
href?: string;
|
|
1282
|
-
icon?: IconName;
|
|
1283
|
-
label: string;
|
|
1284
|
-
navigationSizing: NavigationSizing;
|
|
1285
|
-
onClick?: () => void;
|
|
1286
|
-
sizing?: NavigationButtonSizing;
|
|
1287
|
-
}
|
|
1288
|
-
declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
|
|
1289
|
-
|
|
1290
1285
|
interface NudgeProps extends PropsWithChildren {
|
|
1291
1286
|
description: string;
|
|
1292
1287
|
notification?: boolean;
|
|
@@ -1410,7 +1405,7 @@ type SelectProps = {
|
|
|
1410
1405
|
readOnly?: boolean;
|
|
1411
1406
|
ref?: SelectProps$1['ref'];
|
|
1412
1407
|
required?: boolean;
|
|
1413
|
-
selectOptionProps?: MenuItemProps$
|
|
1408
|
+
selectOptionProps?: MenuItemProps$1;
|
|
1414
1409
|
sizing?: 'xs' | 'md' | 'lg';
|
|
1415
1410
|
sx?: SelectProps$1['sx'];
|
|
1416
1411
|
value?: SelectProps$1['value'];
|
|
@@ -1547,25 +1542,6 @@ interface ToastProps {
|
|
|
1547
1542
|
}
|
|
1548
1543
|
declare const Toast: FunctionComponent<ToastProps>;
|
|
1549
1544
|
|
|
1550
|
-
interface UserMenuProps extends PropsWithChildren {
|
|
1551
|
-
avatar?: string;
|
|
1552
|
-
email: string;
|
|
1553
|
-
menuItems?: MenuItem[];
|
|
1554
|
-
name: string;
|
|
1555
|
-
offset?: number[];
|
|
1556
|
-
placement?: PopperProps$1['placement'];
|
|
1557
|
-
rounded?: boolean;
|
|
1558
|
-
width?: number;
|
|
1559
|
-
}
|
|
1560
|
-
interface MenuItem {
|
|
1561
|
-
children?: MenuItem[];
|
|
1562
|
-
danger?: boolean;
|
|
1563
|
-
label: string;
|
|
1564
|
-
onClick?: () => void;
|
|
1565
|
-
selected?: boolean;
|
|
1566
|
-
}
|
|
1567
|
-
declare const UserMenu: FunctionComponent<UserMenuProps>;
|
|
1568
|
-
|
|
1569
1545
|
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
1570
1546
|
type SupportedFrequency = 'monthly' | 'annual';
|
|
1571
1547
|
interface AnnualControllerProps {
|