@useloops/design-system 1.4.155 → 1.4.157
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 +2 -2
- package/dist/index.d.ts +38 -4
- package/dist/index.js +2 -2
- package/package.json +1 -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, 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';
|
|
3
|
+
import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps as MenuItemProps$1, 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';
|
|
@@ -303,7 +303,7 @@ interface DropdownMenuItemProps {
|
|
|
303
303
|
icon?: ReactElement;
|
|
304
304
|
label: string;
|
|
305
305
|
onClick: () => void;
|
|
306
|
-
menuItemProps?: MenuItemProps;
|
|
306
|
+
menuItemProps?: MenuItemProps$1;
|
|
307
307
|
}
|
|
308
308
|
interface DropdownMenuProps extends MenuProps {
|
|
309
309
|
open: boolean;
|
|
@@ -475,6 +475,40 @@ declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
|
475
475
|
declare const Markdown: (props: any) => react_jsx_runtime.JSX.Element;
|
|
476
476
|
|
|
477
477
|
type NavigationSizing = 'sm' | 'lg';
|
|
478
|
+
interface NavigationProps {
|
|
479
|
+
isMobile?: boolean;
|
|
480
|
+
nudgeProps: NudgeProps$1;
|
|
481
|
+
primaryMenuItemProps: MenuItemProps[];
|
|
482
|
+
secondaryMenuItemProps: MenuItemProps[];
|
|
483
|
+
sizing?: NavigationSizing;
|
|
484
|
+
tertiaryMenuItemProps: MenuItemProps[];
|
|
485
|
+
toggleSizing?: () => void;
|
|
486
|
+
userMenuProps: UserMenuProps$1;
|
|
487
|
+
}
|
|
488
|
+
interface MenuItemProps {
|
|
489
|
+
active?: boolean;
|
|
490
|
+
children?: MenuItemProps[];
|
|
491
|
+
danger?: boolean;
|
|
492
|
+
fullWidth?: boolean;
|
|
493
|
+
href?: string;
|
|
494
|
+
icon?: string;
|
|
495
|
+
label: string;
|
|
496
|
+
onClick?: () => void;
|
|
497
|
+
selected?: boolean;
|
|
498
|
+
sizing?: NavigationSizing;
|
|
499
|
+
}
|
|
500
|
+
interface UserMenuProps$1 {
|
|
501
|
+
avatar: string;
|
|
502
|
+
email: string;
|
|
503
|
+
menuItems: MenuItemProps[];
|
|
504
|
+
name: string;
|
|
505
|
+
}
|
|
506
|
+
interface NudgeProps$1 extends PropsWithChildren {
|
|
507
|
+
description: string;
|
|
508
|
+
notification: boolean;
|
|
509
|
+
title: string;
|
|
510
|
+
}
|
|
511
|
+
declare const Navigation: FunctionComponent<NavigationProps>;
|
|
478
512
|
|
|
479
513
|
type MenuButtonSizing = 'sm' | 'md' | 'lg';
|
|
480
514
|
interface MenuButtonProps {
|
|
@@ -596,7 +630,7 @@ type SelectProps = {
|
|
|
596
630
|
readOnly?: boolean;
|
|
597
631
|
ref?: SelectProps$1['ref'];
|
|
598
632
|
required?: boolean;
|
|
599
|
-
selectOptionProps?: MenuItemProps;
|
|
633
|
+
selectOptionProps?: MenuItemProps$1;
|
|
600
634
|
sizing?: 'xs' | 'md' | 'lg';
|
|
601
635
|
sx?: SelectProps$1['sx'];
|
|
602
636
|
value?: SelectProps$1['value'];
|
|
@@ -1299,4 +1333,4 @@ declare module '@mui/system' {
|
|
|
1299
1333
|
}
|
|
1300
1334
|
}
|
|
1301
1335
|
|
|
1302
|
-
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 };
|
|
1336
|
+
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, Navigation, type NavigationProps, 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 };
|