@useloops/design-system 1.4.145 → 1.4.147

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,16 +1,13 @@
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, SelectProps as SelectProps$1, SelectChangeEvent, TextFieldProps as TextFieldProps$1, 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, 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';
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';
7
- import { InputFieldBaseProps as InputFieldBaseProps$1 } from 'WebCore/InputFieldBase';
8
- import { UniqueIdentifier } from '@dnd-kit/core';
9
- import { InputLabelHelpProps as InputLabelHelpProps$1 } from 'WebCore/InputLabelHelp';
10
7
  import * as _emotion_styled from '@emotion/styled';
11
8
  import * as _mui_system from '@mui/system';
9
+ import { UniqueIdentifier } from '@dnd-kit/core';
12
10
  import { SubmitHandler } from 'react-hook-form';
13
- import { CustomFieldProps as CustomFieldProps$1 } from 'WebCore/CustomField';
14
11
 
15
12
  interface ColorRange {
16
13
  0: string;
@@ -487,7 +484,12 @@ interface NudgeProps extends PropsWithChildren {
487
484
  }
488
485
  declare const Nudge: FunctionComponent<NudgeProps>;
489
486
 
490
- type NumberFieldProps = InputFieldBaseProps$1 & {
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
+ type NumberFieldProps = InputFieldBaseProps & {
491
493
  hideActionButtons?: boolean;
492
494
  max?: number;
493
495
  min?: number;
@@ -636,8 +638,6 @@ interface RankProps extends Omit<SortableListProps<any>, 'renderItem' | 'items'>
636
638
  }
637
639
  declare const Rank: FunctionComponent<RankProps>;
638
640
 
639
- type InputFieldBaseProps = TextFieldProps$1;
640
-
641
641
  type RichTextFieldProps = Omit<InputFieldBaseProps, 'value'> & {
642
642
  internalChange?: () => void;
643
643
  minHeight?: number;
@@ -653,8 +653,8 @@ interface SliderProps {
653
653
  labelMiddle?: string;
654
654
  min?: number;
655
655
  max?: number;
656
- labelRightProps?: InputLabelHelpProps$1;
657
- labelLeftProps?: InputLabelHelpProps$1;
656
+ labelRightProps?: InputLabelHelpProps;
657
+ labelLeftProps?: InputLabelHelpProps;
658
658
  internalChange?: () => void;
659
659
  disabled?: boolean;
660
660
  onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
@@ -837,8 +837,8 @@ type HTMLType = {
837
837
  } & BaseField;
838
838
  type CustomFieldType = {
839
839
  fieldType: 'customfield';
840
- defaultValue?: CustomFieldProps$1['value'];
841
- } & BaseField & CustomFieldProps$1;
840
+ defaultValue?: CustomFieldProps['value'];
841
+ } & BaseField & CustomFieldProps;
842
842
  type DynamicFieldType = 'textfield' | 'numberfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'ranking' | 'richTextfield' | 'customfield';
843
843
  type FieldType = DynamicFieldType | 'html';
844
844
  type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType | CustomFieldType;
@@ -1302,4 +1302,4 @@ declare module '@mui/system' {
1302
1302
  }
1303
1303
  }
1304
1304
 
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, 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 };
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 };