@useloops/design-system 1.4.331 → 1.4.333

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,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { FunctionComponent, Dispatch, SetStateAction, ReactNode, ReactElement, PropsWithChildren, ChangeEvent, FC } from 'react';
2
+ import react__default, { FunctionComponent, PropsWithChildren, Dispatch, SetStateAction, ReactNode, ReactElement, ChangeEvent, FC } from 'react';
3
3
  import * as _mui_material from '@mui/material';
4
4
  import { SxProps, Theme, CSSObject, AvatarProps as AvatarProps$1, AvatarGroupProps as AvatarGroupProps$1, LinkProps as LinkProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, TypographyProps as TypographyProps$1, BoxProps, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, PaperProps, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, ChipProps as ChipProps$1, PaletteMode, Direction } from '@mui/material';
5
5
  import { PopupState } from 'material-ui-popup-state/hooks';
@@ -9,7 +9,7 @@ import { IconName as IconName$1 } from 'systems/BrandCore/Icon';
9
9
  import { KpiIndicatorProps as KpiIndicatorProps$1 } from 'systems/Platform/KpiIndicator';
10
10
  import { ChipProps } from '@mui/material/Chip';
11
11
  import { SubmitHandler } from 'react-hook-form';
12
- import { Theme as Theme$1 } from '@mui/material/styles';
12
+ import { Theme as Theme$1, SxProps as SxProps$1 } from '@mui/material/styles';
13
13
  import { NumericFormatProps } from 'react-number-format';
14
14
  import * as _emotion_styled from '@emotion/styled';
15
15
  import * as _mui_system from '@mui/system';
@@ -768,6 +768,17 @@ interface TickGroupProps {
768
768
  }
769
769
  declare const TickGroup: FunctionComponent<TickGroupProps>;
770
770
 
771
+ interface AiContentContainerProps extends PropsWithChildren {
772
+ sx?: SxProps<Theme>;
773
+ widthLockUp?: boolean;
774
+ }
775
+ declare const AiContentContainer: FunctionComponent<AiContentContainerProps>;
776
+
777
+ interface AiWrittenByLockUpProps {
778
+ sx?: SxProps<Theme>;
779
+ }
780
+ declare const AiWrittenByLockUp: FunctionComponent<AiWrittenByLockUpProps>;
781
+
771
782
  declare const emailValidation: {
772
783
  pattern: {
773
784
  value: RegExp;
@@ -892,13 +903,22 @@ declare const buttonInteraction: (theme: Theme, active?: boolean) => {
892
903
  };
893
904
  };
894
905
  type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
906
+ declare const buttonHeightMap: {
907
+ xs: number;
908
+ sm: number;
909
+ md: number;
910
+ lg: number;
911
+ xl: number;
912
+ xxl: number;
913
+ xxxl: number;
914
+ };
895
915
  declare const getIconSizing$1: (sizing: ButtonSizing) => CSSObject;
896
916
  declare const getButtonTypography: (sizing: ButtonSizing) => CSSObject;
897
917
  declare const getButtonSizing: (sizing: ButtonSizing) => CSSObject;
898
918
 
899
919
  interface BackgroundOptions {
900
920
  texture?: 'none' | 'noise1';
901
- gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
921
+ gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone3_lowOpacity' | 'tone4';
902
922
  }
903
923
  declare const backgroundCreator: (theme: Theme, options: BackgroundOptions) => string;
904
924
 
@@ -1064,7 +1084,7 @@ interface ColorBackgroundContainerProps {
1064
1084
  sx?: SxProps<Theme>;
1065
1085
  children: ContainerProps['children'];
1066
1086
  texture?: 'none' | 'noise1';
1067
- gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone4';
1087
+ gradient?: 'tone1' | 'tone2' | 'tone3' | 'tone3_lowOpacity' | 'tone4';
1068
1088
  }
1069
1089
  declare const ColorBackgroundContainer: FunctionComponent<ColorBackgroundContainerProps>;
1070
1090
 
@@ -1402,6 +1422,16 @@ interface InputLabelHelpProps {
1402
1422
  }
1403
1423
  declare const InputLabelHelp: FunctionComponent<InputLabelHelpProps>;
1404
1424
 
1425
+ interface StyledChipProps extends ChipProps {
1426
+ variation?: 'default' | 'peach' | 'peachDark' | 'purple';
1427
+ weight?: 'heavy' | 'light';
1428
+ }
1429
+
1430
+ interface LabelProps extends Omit<StyledChipProps, 'size' | 'color' | 'label' | 'children'> {
1431
+ body: string;
1432
+ }
1433
+ declare const Label: react.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1434
+
1405
1435
  interface LikertOption {
1406
1436
  label: string;
1407
1437
  value: string;
@@ -1558,15 +1588,19 @@ type NumberFieldProps = InputFieldBaseProps & {
1558
1588
  };
1559
1589
  declare const NumberField: FunctionComponent<NumberFieldProps>;
1560
1590
 
1561
- interface StyledChipProps extends ChipProps {
1562
- variation?: 'default' | 'peach' | 'peachDark' | 'purple';
1563
- weight?: 'heavy' | 'light';
1591
+ interface PillProps {
1592
+ id?: string;
1593
+ label: string;
1594
+ iconLeft?: IconName$1;
1595
+ iconRight?: IconName$1;
1596
+ sizing?: 'sm' | 'md';
1597
+ onDelete?: ((event: any) => void) | undefined;
1598
+ active?: boolean;
1599
+ disabled?: boolean;
1600
+ sx?: SxProps$1<Theme$1>;
1564
1601
  }
1565
1602
 
1566
- interface PillProps extends Omit<StyledChipProps, 'size' | 'color' | 'label' | 'children'> {
1567
- body: string;
1568
- }
1569
- declare const Pill: react.ForwardRefExoticComponent<Omit<PillProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1603
+ declare const Pill: FunctionComponent<PillProps>;
1570
1604
 
1571
1605
  declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
1572
1606
 
@@ -2042,8 +2076,8 @@ interface TestItemProps extends SurfaceProps {
2042
2076
  title?: Partial<Omit<TypographyProps, 'children'>>;
2043
2077
  status?: Partial<Omit<TestStatusProps, 'status'>>;
2044
2078
  menu?: Partial<Omit<MenuProps, 'trigger' | 'menuItems'>>;
2045
- pill?: Partial<Omit<PillProps, 'body'>>;
2046
- tagsExpand?: Partial<Omit<PillProps, 'body'>>;
2079
+ pill?: Partial<Omit<LabelProps, 'body'>>;
2080
+ tagsExpand?: Partial<Omit<LabelProps, 'body'>>;
2047
2081
  tagsCollapse?: Partial<IconButtonProps>;
2048
2082
  };
2049
2083
  loading?: boolean;
@@ -2309,4 +2343,4 @@ declare module '@mui/system' {
2309
2343
  }
2310
2344
  }
2311
2345
 
2312
- export { Accordion, type AccordionProps, AnnualController, type AnnualControllerProps, AssetItem, type AssetItemProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BrandBadge, type BrandBadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, BulletGraphic, type BulletGraphicProps, Button, ButtonBase, type ButtonBaseProps, type ButtonProps, type ButtonSizing, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, type ColorRange$1 as ColorRange, type ColorRangeAlpha$1 as ColorRangeAlpha, CreatableAutocomplete, type CreatableAutocompleteProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, DataPointInfo, type DataPointInfoProps, Differential, type DifferentialProps, DropdownMenu, EmptyStateCard, type EmptyStateCardProps, ExpandableTypographyClamp, type ExpandableTypographyClampProps, type FieldType, type FieldTypes, FilteredItemsCard, type FilteredItemsCardProps, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, type GroupSelectOption, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonGroupProps, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, KpiIndicator, type KpiIndicatorProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopItem, LoopItemEmpty, type LoopItemEmptyProps, type LoopItemProps, LoopsAiButton, type LoopsAiButtonProps, Markdown, type MarkdownProps, 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 PlanFeatureTableData, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, 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, type Section, SectionHeader, type SectionHeaderProps, Select, type SelectOption, type SelectProps, type SemanticColor, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TestItem, type TestItemProps, TestKPICard, type TestKPICardProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeCtx, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, TrialCard, type TrialCardProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, buttonInteraction, chooseArticle, compareArrayMembers, customTheme, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, getButtonSizing, getButtonTypography, getIconSizing$1 as getIconSizing, getKpiIndicatorColor, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, isButton, mapKpiColorSchemeByInteger, margin, neutral, neutralAlpha, neutralRamp, outlined$1 as outlined, padding, passwordValidation, peach, peachRamp, primary, purple, purpleRamp, radius, red, redRamp, secondary, semantic, space, subtle, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };
2346
+ export { AiWrittenByLockUp as AIWrittenByLockUp, Accordion, type AccordionProps, AiContentContainer, type AiContentContainerProps, type AiWrittenByLockUpProps, AnnualController, type AnnualControllerProps, AssetItem, type AssetItemProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BrandBadge, type BrandBadgeProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, BulletGraphic, type BulletGraphicProps, Button, ButtonBase, type ButtonBaseProps, type ButtonProps, type ButtonSizing, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, type ColorRange$1 as ColorRange, type ColorRangeAlpha$1 as ColorRangeAlpha, CreatableAutocomplete, type CreatableAutocompleteProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, DataPointInfo, type DataPointInfoProps, Differential, type DifferentialProps, DropdownMenu, EmptyStateCard, type EmptyStateCardProps, ExpandableTypographyClamp, type ExpandableTypographyClampProps, type FieldType, type FieldTypes, FilteredItemsCard, type FilteredItemsCardProps, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, type GroupSelectOption, Header, type HeaderProps, Html, HtmlParser, type HtmlParserProps, type HtmlProps, Icon, IconButton, IconButtonBase, type IconButtonBaseProps, IconButtonGroup, type IconButtonGroupProps, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, KpiIndicator, type KpiIndicatorProps, Label, type LabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopItem, LoopItemEmpty, type LoopItemEmptyProps, type LoopItemProps, LoopsAiButton, type LoopsAiButtonProps, Markdown, type MarkdownProps, 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 PlanFeatureTableData, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, 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, type Section, SectionHeader, type SectionHeaderProps, Select, type SelectOption, type SelectProps, type SemanticColor, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TestItem, type TestItemProps, TestKPICard, type TestKPICardProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeCtx, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, TrialCard, type TrialCardProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, VideoModal, type VideoModalProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, buttonHeightMap, buttonInteraction, chooseArticle, compareArrayMembers, customTheme, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, getButtonSizing, getButtonTypography, getIconSizing$1 as getIconSizing, getKpiIndicatorColor, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, isButton, mapKpiColorSchemeByInteger, margin, neutral, neutralAlpha, neutralRamp, outlined$1 as outlined, padding, passwordValidation, peach, peachRamp, primary, purple, purpleRamp, radius, red, redRamp, secondary, semantic, space, subtle, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };