@useloops/design-system 1.4.330 → 1.4.332

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
@@ -5,10 +5,11 @@ import { SxProps, Theme, CSSObject, AvatarProps as AvatarProps$1, AvatarGroupPro
5
5
  import { PopupState } from 'material-ui-popup-state/hooks';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { SemanticColor as SemanticColor$1 } from 'systems/BrandCore';
8
+ import { IconName as IconName$1 } from 'systems/BrandCore/Icon';
8
9
  import { KpiIndicatorProps as KpiIndicatorProps$1 } from 'systems/Platform/KpiIndicator';
9
10
  import { ChipProps } from '@mui/material/Chip';
10
11
  import { SubmitHandler } from 'react-hook-form';
11
- import { Theme as Theme$1 } from '@mui/material/styles';
12
+ import { Theme as Theme$1, SxProps as SxProps$1 } from '@mui/material/styles';
12
13
  import { NumericFormatProps } from 'react-number-format';
13
14
  import * as _emotion_styled from '@emotion/styled';
14
15
  import * as _mui_system from '@mui/system';
@@ -891,6 +892,15 @@ declare const buttonInteraction: (theme: Theme, active?: boolean) => {
891
892
  };
892
893
  };
893
894
  type ButtonSizing = Exclude<GenericSizeMap, 'none'>;
895
+ declare const buttonHeightMap: {
896
+ xs: number;
897
+ sm: number;
898
+ md: number;
899
+ lg: number;
900
+ xl: number;
901
+ xxl: number;
902
+ xxxl: number;
903
+ };
894
904
  declare const getIconSizing$1: (sizing: ButtonSizing) => CSSObject;
895
905
  declare const getButtonTypography: (sizing: ButtonSizing) => CSSObject;
896
906
  declare const getButtonSizing: (sizing: ButtonSizing) => CSSObject;
@@ -1401,6 +1411,16 @@ interface InputLabelHelpProps {
1401
1411
  }
1402
1412
  declare const InputLabelHelp: FunctionComponent<InputLabelHelpProps>;
1403
1413
 
1414
+ interface StyledChipProps extends ChipProps {
1415
+ variation?: 'default' | 'peach' | 'peachDark' | 'purple';
1416
+ weight?: 'heavy' | 'light';
1417
+ }
1418
+
1419
+ interface LabelProps extends Omit<StyledChipProps, 'size' | 'color' | 'label' | 'children'> {
1420
+ body: string;
1421
+ }
1422
+ declare const Label: react.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1423
+
1404
1424
  interface LikertOption {
1405
1425
  label: string;
1406
1426
  value: string;
@@ -1557,15 +1577,19 @@ type NumberFieldProps = InputFieldBaseProps & {
1557
1577
  };
1558
1578
  declare const NumberField: FunctionComponent<NumberFieldProps>;
1559
1579
 
1560
- interface StyledChipProps extends ChipProps {
1561
- variation?: 'default' | 'peach' | 'peachDark' | 'purple';
1562
- weight?: 'heavy' | 'light';
1580
+ interface PillProps {
1581
+ id?: string;
1582
+ label: string;
1583
+ iconLeft?: IconName$1;
1584
+ iconRight?: IconName$1;
1585
+ sizing?: 'sm' | 'md';
1586
+ onDelete?: ((event: any) => void) | undefined;
1587
+ active?: boolean;
1588
+ disabled?: boolean;
1589
+ sx?: SxProps$1<Theme$1>;
1563
1590
  }
1564
1591
 
1565
- interface PillProps extends Omit<StyledChipProps, 'size' | 'color' | 'label' | 'children'> {
1566
- body: string;
1567
- }
1568
- declare const Pill: react.ForwardRefExoticComponent<Omit<PillProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1592
+ declare const Pill: FunctionComponent<PillProps>;
1569
1593
 
1570
1594
  declare const PoweredByWatermarkLogo: () => react_jsx_runtime.JSX.Element;
1571
1595
 
@@ -1830,6 +1854,8 @@ interface DataPointSource {
1830
1854
  id?: string;
1831
1855
  content: string | null;
1832
1856
  cta: (() => void) | ((e: any) => void) | undefined;
1857
+ iconName?: IconName$1;
1858
+ iconButtonDisabled?: boolean;
1833
1859
  loading?: boolean;
1834
1860
  }
1835
1861
  interface StatValueProps {
@@ -2039,8 +2065,8 @@ interface TestItemProps extends SurfaceProps {
2039
2065
  title?: Partial<Omit<TypographyProps, 'children'>>;
2040
2066
  status?: Partial<Omit<TestStatusProps, 'status'>>;
2041
2067
  menu?: Partial<Omit<MenuProps, 'trigger' | 'menuItems'>>;
2042
- pill?: Partial<Omit<PillProps, 'body'>>;
2043
- tagsExpand?: Partial<Omit<PillProps, 'body'>>;
2068
+ pill?: Partial<Omit<LabelProps, 'body'>>;
2069
+ tagsExpand?: Partial<Omit<LabelProps, 'body'>>;
2044
2070
  tagsCollapse?: Partial<IconButtonProps>;
2045
2071
  };
2046
2072
  loading?: boolean;
@@ -2306,4 +2332,4 @@ declare module '@mui/system' {
2306
2332
  }
2307
2333
  }
2308
2334
 
2309
- 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 };
2335
+ 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, 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 };