@useloops/design-system 1.4.327 → 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/esm/index.js +4 -4
- package/dist/index.d.ts +58 -16
- package/dist/index.js +4 -4
- package/package.json +1 -1
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;
|
|
@@ -1983,21 +2033,6 @@ interface TestItemProps extends SurfaceProps {
|
|
|
1983
2033
|
}
|
|
1984
2034
|
declare const TestItem: react__default.FC<TestItemProps>;
|
|
1985
2035
|
|
|
1986
|
-
interface KpiDataPointSource {
|
|
1987
|
-
testName: string;
|
|
1988
|
-
url: string;
|
|
1989
|
-
}
|
|
1990
|
-
interface KpiDataPointInfoProps {
|
|
1991
|
-
title: string;
|
|
1992
|
-
colorScheme: KpiIndicatorProps['colorScheme'];
|
|
1993
|
-
subTitle?: string;
|
|
1994
|
-
averageValue?: number;
|
|
1995
|
-
minValue?: number;
|
|
1996
|
-
maxValue?: number;
|
|
1997
|
-
dataSources?: KpiDataPointSource[];
|
|
1998
|
-
}
|
|
1999
|
-
declare const KpiDataPointInfo: FunctionComponent<KpiDataPointInfoProps>;
|
|
2000
|
-
|
|
2001
2036
|
type BreakpointOrNull = Breakpoint | null;
|
|
2002
2037
|
declare const useBreakpoint: () => Breakpoint;
|
|
2003
2038
|
|
|
@@ -2128,6 +2163,13 @@ declare module '@mui/material/styles' {
|
|
|
2128
2163
|
default?: string;
|
|
2129
2164
|
disabled?: string;
|
|
2130
2165
|
};
|
|
2166
|
+
data: {
|
|
2167
|
+
sentimentVeryPositive?: string;
|
|
2168
|
+
sentimentPositive?: string;
|
|
2169
|
+
sentimentNeutral?: string;
|
|
2170
|
+
sentimentNegative?: string;
|
|
2171
|
+
sentimentVeryNegative?: string;
|
|
2172
|
+
};
|
|
2131
2173
|
body?: string;
|
|
2132
2174
|
};
|
|
2133
2175
|
margin?: {
|
|
@@ -2250,4 +2292,4 @@ declare module '@mui/system' {
|
|
|
2250
2292
|
}
|
|
2251
2293
|
}
|
|
2252
2294
|
|
|
2253
|
-
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,
|
|
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 };
|