@useloops/design-system 1.4.326 → 1.4.328

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
@@ -4,6 +4,8 @@ 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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { SemanticColor as SemanticColor$1 } from 'systems/BrandCore';
8
+ import { KpiIndicatorProps as KpiIndicatorProps$1 } from 'systems/Platform/KpiIndicator';
7
9
  import { ChipProps } from '@mui/material/Chip';
8
10
  import { SubmitHandler } from 'react-hook-form';
9
11
  import { Theme as Theme$1 } from '@mui/material/styles';
@@ -99,6 +101,13 @@ interface SemanticColor {
99
101
  default: string | undefined;
100
102
  disabled: string | undefined;
101
103
  };
104
+ data: {
105
+ sentimentVeryPositive: string | undefined;
106
+ sentimentPositive: string | undefined;
107
+ sentimentNegative: string | undefined;
108
+ sentimentVeryNegative: string | undefined;
109
+ sentimentNeutral: string | undefined;
110
+ };
102
111
  };
103
112
  dark: {
104
113
  surface: {
@@ -155,6 +164,13 @@ interface SemanticColor {
155
164
  default: string | undefined;
156
165
  disabled: string | undefined;
157
166
  };
167
+ data: {
168
+ sentimentVeryPositive: string | undefined;
169
+ sentimentPositive: string | undefined;
170
+ sentimentNegative: string | undefined;
171
+ sentimentVeryNegative: string | undefined;
172
+ sentimentNeutral: string | undefined;
173
+ };
158
174
  };
159
175
  }
160
176
 
@@ -577,6 +593,13 @@ interface CustomTheme {
577
593
  default: string;
578
594
  disabled: string;
579
595
  };
596
+ data: {
597
+ sentimentVeryPositive: string;
598
+ sentimentPositive: string;
599
+ sentimentNeutral: string;
600
+ sentimentNegative: string;
601
+ sentimentVeryNegative: string;
602
+ };
580
603
  body: string;
581
604
  };
582
605
  margin: {
@@ -1788,6 +1811,33 @@ interface AuthContainerSurfaceProps extends SurfaceProps {
1788
1811
  }
1789
1812
  declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
1790
1813
 
1814
+ type SentimentColor = keyof SemanticColor$1['light']['data'] | undefined;
1815
+ interface DataPointSource {
1816
+ id?: string;
1817
+ content: string | null;
1818
+ cta: (() => void) | ((e: any) => void) | undefined;
1819
+ loading?: boolean;
1820
+ }
1821
+ interface StatValueProps {
1822
+ value: number | string | undefined;
1823
+ color?: SentimentColor;
1824
+ keyText: string;
1825
+ }
1826
+ interface DataPointInfoProps {
1827
+ title: string;
1828
+ inidicatorColor?: KpiIndicatorProps$1['colorScheme'] | undefined;
1829
+ subTitle?: string | undefined;
1830
+ averageValue?: Omit<StatValueProps, 'keyText'>;
1831
+ minValue?: Omit<StatValueProps, 'keyText'>;
1832
+ maxValue?: Omit<StatValueProps, 'keyText'>;
1833
+ dataSourcesTitle?: string;
1834
+ dataSources?: DataPointSource[];
1835
+ dataSourcesLoading?: boolean;
1836
+ sx?: SxProps<Theme>;
1837
+ }
1838
+
1839
+ declare const DataPointInfo: FunctionComponent<DataPointInfoProps>;
1840
+
1791
1841
  type EmptyStateCardProps = {
1792
1842
  onClickCta: () => void;
1793
1843
  ctaText?: string;
@@ -1819,6 +1869,33 @@ interface HeaderProps {
1819
1869
  }
1820
1870
  declare const Header: FunctionComponent<HeaderProps>;
1821
1871
 
1872
+ interface TestKPICardProps extends Omit<SurfaceProps, 'variation'> {
1873
+ colorScheme?: 'purple' | 'peach' | 'blue' | 'yellow' | 'green' | 'red';
1874
+ variation?: 'dimmed' | 'default';
1875
+ title: string;
1876
+ description: string;
1877
+ loading?: boolean;
1878
+ onShowMoreClick?: () => void;
1879
+ menuItems?: MenuProps['menuItems'];
1880
+ }
1881
+ declare const TestKPICard: react.ForwardRefExoticComponent<Omit<TestKPICardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1882
+
1883
+ interface KpiIndicatorProps extends PropsWithChildren {
1884
+ disabled?: boolean;
1885
+ colorScheme: TestKPICardProps['colorScheme'];
1886
+ }
1887
+ declare const KpiIndicator: FunctionComponent<KpiIndicatorProps>;
1888
+
1889
+ declare const mapKpiColorSchemeByInteger: (index: number) => TestKPICardProps["colorScheme"];
1890
+ declare const getKpiIndicatorColor: (theme: Theme) => {
1891
+ purple: ColorRange;
1892
+ peach: ColorRange;
1893
+ blue: ColorRange;
1894
+ yellow: ColorRange;
1895
+ green: ColorRange;
1896
+ red: ColorRange;
1897
+ };
1898
+
1822
1899
  interface LoopItemProps extends PropsWithChildren {
1823
1900
  onClick: () => void;
1824
1901
  id: string;
@@ -1956,23 +2033,6 @@ interface TestItemProps extends SurfaceProps {
1956
2033
  }
1957
2034
  declare const TestItem: react__default.FC<TestItemProps>;
1958
2035
 
1959
- interface TestKPICardProps extends Omit<SurfaceProps, 'variation'> {
1960
- colorScheme?: 'purple' | 'peach' | 'blue' | 'yellow' | 'green' | 'red';
1961
- variation?: 'dimmed' | 'default';
1962
- title: string;
1963
- description: string;
1964
- loading?: boolean;
1965
- onShowMoreClick?: () => void;
1966
- menuItems?: MenuProps['menuItems'];
1967
- }
1968
- declare const TestKPICard: react.ForwardRefExoticComponent<Omit<TestKPICardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1969
-
1970
- interface KpiIndicatorProps extends PropsWithChildren {
1971
- disabled?: boolean;
1972
- colorScheme: TestKPICardProps['colorScheme'];
1973
- }
1974
- declare const KpiIndicator: FunctionComponent<KpiIndicatorProps>;
1975
-
1976
2036
  type BreakpointOrNull = Breakpoint | null;
1977
2037
  declare const useBreakpoint: () => Breakpoint;
1978
2038
 
@@ -2103,6 +2163,13 @@ declare module '@mui/material/styles' {
2103
2163
  default?: string;
2104
2164
  disabled?: string;
2105
2165
  };
2166
+ data: {
2167
+ sentimentVeryPositive?: string;
2168
+ sentimentPositive?: string;
2169
+ sentimentNeutral?: string;
2170
+ sentimentNegative?: string;
2171
+ sentimentVeryNegative?: string;
2172
+ };
2106
2173
  body?: string;
2107
2174
  };
2108
2175
  margin?: {
@@ -2225,4 +2292,4 @@ declare module '@mui/system' {
2225
2292
  }
2226
2293
  }
2227
2294
 
2228
- 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, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, 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, green, greenRamp, IconButton_variantHelpers as iconButtonHelpers, iconSizeMap, isButton, 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 };
2295
+ 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, 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 };