@useloops/design-system 1.4.176 → 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/esm/index.js +4 -4
- package/dist/index.d.ts +62 -23
- package/dist/index.js +4 -4
- package/package.json +13 -12
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$
|
|
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
|
|
694
|
-
primaryMenuItemProps
|
|
695
|
-
secondaryMenuItemProps
|
|
693
|
+
nudgeProps?: NudgeProps$1;
|
|
694
|
+
primaryMenuItemProps?: MenuItemProps$1[];
|
|
695
|
+
secondaryMenuItemProps?: MenuItemProps$1[];
|
|
696
696
|
sizing?: NavigationSizing;
|
|
697
|
-
tertiaryMenuItemProps
|
|
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 {
|
|
@@ -777,9 +777,20 @@ interface ProjectItemDataProps {
|
|
|
777
777
|
}
|
|
778
778
|
interface ProjectItemProps extends ProjectItemDataProps, ProjectItemViewType {
|
|
779
779
|
}
|
|
780
|
+
interface ProjectItemEmptyProps {
|
|
781
|
+
onClick?: () => void;
|
|
782
|
+
viewType?: 'grid' | 'list';
|
|
783
|
+
title: string;
|
|
784
|
+
}
|
|
780
785
|
|
|
781
786
|
declare const ProjectItem: FunctionComponent<ProjectItemProps>;
|
|
782
787
|
|
|
788
|
+
declare const ProjectItemEmpty: FunctionComponent<ProjectItemEmptyProps>;
|
|
789
|
+
|
|
790
|
+
interface ProjectsProps {
|
|
791
|
+
}
|
|
792
|
+
declare const Projects: FunctionComponent<ProjectsProps>;
|
|
793
|
+
|
|
783
794
|
interface SectionHeaderProps {
|
|
784
795
|
buttons?: ReactNode;
|
|
785
796
|
subtitle?: string;
|
|
@@ -844,6 +855,10 @@ interface AvatarGroupProps extends AvatarGroupProps$1 {
|
|
|
844
855
|
}
|
|
845
856
|
declare const AvatarGroup: FunctionComponent<AvatarGroupProps>;
|
|
846
857
|
|
|
858
|
+
interface BadgeProps extends PropsWithChildren {
|
|
859
|
+
}
|
|
860
|
+
declare const Badge: FunctionComponent<BadgeProps>;
|
|
861
|
+
|
|
847
862
|
type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
|
|
848
863
|
|
|
849
864
|
interface ButtonBaseProps extends ButtonProps$1 {
|
|
@@ -950,9 +965,9 @@ interface DropdownMenuItemProps {
|
|
|
950
965
|
icon?: ReactElement;
|
|
951
966
|
label: string;
|
|
952
967
|
onClick: () => void;
|
|
953
|
-
menuItemProps?: MenuItemProps$
|
|
968
|
+
menuItemProps?: MenuItemProps$2;
|
|
954
969
|
}
|
|
955
|
-
interface DropdownMenuProps extends MenuProps {
|
|
970
|
+
interface DropdownMenuProps extends MenuProps$1 {
|
|
956
971
|
open: boolean;
|
|
957
972
|
anchorEl: HTMLElement | null;
|
|
958
973
|
handleClose: () => void;
|
|
@@ -1214,8 +1229,32 @@ declare const LoopsAiButton: FunctionComponent<LoopsAiButtonProps>;
|
|
|
1214
1229
|
|
|
1215
1230
|
declare const Markdown: (props: any) => react_jsx_runtime.JSX.Element;
|
|
1216
1231
|
|
|
1217
|
-
|
|
1218
|
-
|
|
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 {
|
|
1219
1258
|
active?: boolean;
|
|
1220
1259
|
danger?: boolean;
|
|
1221
1260
|
fullWidth?: boolean;
|
|
@@ -1224,9 +1263,9 @@ interface MenuButtonProps {
|
|
|
1224
1263
|
label: string;
|
|
1225
1264
|
navigationSizing: NavigationSizing;
|
|
1226
1265
|
onClick?: () => void;
|
|
1227
|
-
sizing?:
|
|
1266
|
+
sizing?: NavigationButtonSizing;
|
|
1228
1267
|
}
|
|
1229
|
-
declare const
|
|
1268
|
+
declare const NavigationButton: FunctionComponent<NavigationButtonProps>;
|
|
1230
1269
|
|
|
1231
1270
|
interface NudgeProps extends PropsWithChildren {
|
|
1232
1271
|
description: string;
|
|
@@ -1269,14 +1308,11 @@ interface PopperProps {
|
|
|
1269
1308
|
transitionFadeProps?: Pick<FadeProps, 'easing' | 'timeout' | 'appear' | 'enter' | 'exit'>;
|
|
1270
1309
|
surfaceProps?: SurfaceProps;
|
|
1271
1310
|
bindOn?: BindOn[];
|
|
1272
|
-
trigger:
|
|
1311
|
+
trigger: ReactElement;
|
|
1273
1312
|
children: ReactElement;
|
|
1313
|
+
state?: PopupState;
|
|
1274
1314
|
}
|
|
1275
|
-
declare const Popper: ({ bindOn, trigger, children, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
|
|
1276
|
-
|
|
1277
|
-
interface PortalProps extends PropsWithChildren {
|
|
1278
|
-
}
|
|
1279
|
-
declare const Portal: FunctionComponent<PortalProps>;
|
|
1315
|
+
declare const Popper: ({ bindOn, trigger, children, state, ...props }: PopperProps) => react_jsx_runtime.JSX.Element;
|
|
1280
1316
|
|
|
1281
1317
|
declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
|
|
1282
1318
|
|
|
@@ -1354,7 +1390,7 @@ type SelectProps = {
|
|
|
1354
1390
|
readOnly?: boolean;
|
|
1355
1391
|
ref?: SelectProps$1['ref'];
|
|
1356
1392
|
required?: boolean;
|
|
1357
|
-
selectOptionProps?: MenuItemProps$
|
|
1393
|
+
selectOptionProps?: MenuItemProps$2;
|
|
1358
1394
|
sizing?: 'xs' | 'md' | 'lg';
|
|
1359
1395
|
sx?: SelectProps$1['sx'];
|
|
1360
1396
|
value?: SelectProps$1['value'];
|
|
@@ -1505,7 +1541,10 @@ interface UserMenuProps extends PropsWithChildren {
|
|
|
1505
1541
|
email: string;
|
|
1506
1542
|
menuItems?: MenuItem[];
|
|
1507
1543
|
name: string;
|
|
1508
|
-
|
|
1544
|
+
offset?: number[];
|
|
1545
|
+
placement?: PopperProps$1['placement'];
|
|
1546
|
+
rounded?: boolean;
|
|
1547
|
+
width?: number;
|
|
1509
1548
|
}
|
|
1510
1549
|
interface MenuItem {
|
|
1511
1550
|
children?: MenuItem[];
|
|
@@ -1939,4 +1978,4 @@ declare module '@mui/system' {
|
|
|
1939
1978
|
}
|
|
1940
1979
|
}
|
|
1941
1980
|
|
|
1942
|
-
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,
|
|
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 };
|