@useloops/design-system 1.4.327 → 1.4.329
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 +59 -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: {
|
|
@@ -1609,6 +1632,7 @@ type SelectProps = {
|
|
|
1609
1632
|
onOpen?: SelectProps$1['onOpen'];
|
|
1610
1633
|
value?: SelectProps$1['value'];
|
|
1611
1634
|
renderListItem?: (value: string, label: string) => ReactElement;
|
|
1635
|
+
renderSelectedItem?: (value: string, label?: string) => ReactElement;
|
|
1612
1636
|
};
|
|
1613
1637
|
declare const Select: FunctionComponent<SelectProps>;
|
|
1614
1638
|
|
|
@@ -1788,6 +1812,33 @@ interface AuthContainerSurfaceProps extends SurfaceProps {
|
|
|
1788
1812
|
}
|
|
1789
1813
|
declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
|
|
1790
1814
|
|
|
1815
|
+
type SentimentColor = keyof SemanticColor$1['light']['data'] | undefined;
|
|
1816
|
+
interface DataPointSource {
|
|
1817
|
+
id?: string;
|
|
1818
|
+
content: string | null;
|
|
1819
|
+
cta: (() => void) | ((e: any) => void) | undefined;
|
|
1820
|
+
loading?: boolean;
|
|
1821
|
+
}
|
|
1822
|
+
interface StatValueProps {
|
|
1823
|
+
value: number | string | undefined;
|
|
1824
|
+
color?: SentimentColor;
|
|
1825
|
+
keyText: string;
|
|
1826
|
+
}
|
|
1827
|
+
interface DataPointInfoProps {
|
|
1828
|
+
title: string;
|
|
1829
|
+
inidicatorColor?: KpiIndicatorProps$1['colorScheme'] | undefined;
|
|
1830
|
+
subTitle?: string | undefined;
|
|
1831
|
+
averageValue?: Omit<StatValueProps, 'keyText'>;
|
|
1832
|
+
minValue?: Omit<StatValueProps, 'keyText'>;
|
|
1833
|
+
maxValue?: Omit<StatValueProps, 'keyText'>;
|
|
1834
|
+
dataSourcesTitle?: string;
|
|
1835
|
+
dataSources?: DataPointSource[];
|
|
1836
|
+
dataSourcesLoading?: boolean;
|
|
1837
|
+
sx?: SxProps<Theme>;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
declare const DataPointInfo: FunctionComponent<DataPointInfoProps>;
|
|
1841
|
+
|
|
1791
1842
|
type EmptyStateCardProps = {
|
|
1792
1843
|
onClickCta: () => void;
|
|
1793
1844
|
ctaText?: string;
|
|
@@ -1983,21 +2034,6 @@ interface TestItemProps extends SurfaceProps {
|
|
|
1983
2034
|
}
|
|
1984
2035
|
declare const TestItem: react__default.FC<TestItemProps>;
|
|
1985
2036
|
|
|
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
2037
|
type BreakpointOrNull = Breakpoint | null;
|
|
2002
2038
|
declare const useBreakpoint: () => Breakpoint;
|
|
2003
2039
|
|
|
@@ -2128,6 +2164,13 @@ declare module '@mui/material/styles' {
|
|
|
2128
2164
|
default?: string;
|
|
2129
2165
|
disabled?: string;
|
|
2130
2166
|
};
|
|
2167
|
+
data: {
|
|
2168
|
+
sentimentVeryPositive?: string;
|
|
2169
|
+
sentimentPositive?: string;
|
|
2170
|
+
sentimentNeutral?: string;
|
|
2171
|
+
sentimentNegative?: string;
|
|
2172
|
+
sentimentVeryNegative?: string;
|
|
2173
|
+
};
|
|
2131
2174
|
body?: string;
|
|
2132
2175
|
};
|
|
2133
2176
|
margin?: {
|
|
@@ -2250,4 +2293,4 @@ declare module '@mui/system' {
|
|
|
2250
2293
|
}
|
|
2251
2294
|
}
|
|
2252
2295
|
|
|
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,
|
|
2296
|
+
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 };
|