@useloops/design-system 1.4.147 → 1.4.149

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
@@ -1,11 +1,12 @@
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, TooltipProps as TooltipProps$1, ButtonGroupProps, LinkProps as LinkProps$1, TextFieldProps as TextFieldProps$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, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$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
- import { Theme as Theme$1 } from '@mui/material/styles';
6
- import { NumericFormatProps } from 'react-number-format';
7
5
  import * as _emotion_styled from '@emotion/styled';
8
6
  import * as _mui_system from '@mui/system';
7
+ import { Theme as Theme$1 } from '@mui/material/styles';
8
+ import { MuiMarkdownProps } from 'mui-markdown';
9
+ import { NumericFormatProps } from 'react-number-format';
9
10
  import { UniqueIdentifier } from '@dnd-kit/core';
10
11
  import { SubmitHandler } from 'react-hook-form';
11
12
 
@@ -402,6 +403,11 @@ interface IconButtonGroupProps extends PropsWithChildren {
402
403
  }
403
404
  declare const IconButtonGroup: FunctionComponent<IconButtonGroupProps>;
404
405
 
406
+ type InputFieldBaseProps = TextFieldProps$1;
407
+ declare const InputFieldBase: _emotion_styled.StyledComponent<{
408
+ variant?: _mui_material.TextFieldVariants | undefined;
409
+ } & Omit<_mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
410
+
405
411
  type InputVariation = 'default' | 'help';
406
412
 
407
413
  interface InputLabelProps {
@@ -465,6 +471,8 @@ declare const Loader: FunctionComponent<LoaderProps>;
465
471
 
466
472
  declare const Logo: FunctionComponent<React.SVGProps<SVGSVGElement>>;
467
473
 
474
+ declare const Markdown: (props: MuiMarkdownProps) => react_jsx_runtime.JSX.Element;
475
+
468
476
  interface NavButtonProps {
469
477
  active?: boolean;
470
478
  href?: string;
@@ -484,11 +492,6 @@ interface NudgeProps extends PropsWithChildren {
484
492
  }
485
493
  declare const Nudge: FunctionComponent<NudgeProps>;
486
494
 
487
- type InputFieldBaseProps = TextFieldProps$1;
488
- declare const InputFieldBase: _emotion_styled.StyledComponent<{
489
- variant?: _mui_material.TextFieldVariants | undefined;
490
- } & Omit<_mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
491
-
492
495
  type NumberFieldProps = InputFieldBaseProps & {
493
496
  hideActionButtons?: boolean;
494
497
  max?: number;
@@ -638,7 +641,8 @@ interface RankProps extends Omit<SortableListProps<any>, 'renderItem' | 'items'>
638
641
  }
639
642
  declare const Rank: FunctionComponent<RankProps>;
640
643
 
641
- type RichTextFieldProps = Omit<InputFieldBaseProps, 'value'> & {
644
+ type RichTextFieldProps = Omit<InputFieldBaseProps, 'value' | 'onChange'> & {
645
+ onChange?: (content: string) => void;
642
646
  internalChange?: () => void;
643
647
  minHeight?: number;
644
648
  minWidth?: number;
@@ -1094,8 +1098,7 @@ declare const TickGroup: FunctionComponent<TickGroupProps>;
1094
1098
 
1095
1099
  type ScreenSize = 'sm' | 'lg';
1096
1100
 
1097
- interface Props {
1098
- children: any;
1101
+ interface Props extends PropsWithChildren {
1099
1102
  mode?: PaletteMode;
1100
1103
  screenSize?: ScreenSize;
1101
1104
  direction?: Direction;
@@ -1302,4 +1305,4 @@ declare module '@mui/system' {
1302
1305
  }
1303
1306
  }
1304
1307
 
1305
- 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, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, NavButton, type NavButtonProps, 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 };
1308
+ 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, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, Markdown, NavButton, type NavButtonProps, 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 };