@useloops/design-system 1.4.390 → 1.4.392

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,7 +4,13 @@ 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, 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, Breakpoint, 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';
7
+ import { BoxProps as BoxProps$1 } from '@mui/material/Box';
8
+ import { IconName as IconName$2, SemanticColor as SemanticColor$1 } from 'systems/BrandCore';
9
+ import { IconProps as IconProps$1 } from 'systems/BrandCore/Icon/Icon';
10
+ import { CheckboxProps as CheckboxProps$2 } from 'systems/WebCore';
11
+ import { TooltipProps as TooltipProps$2 } from 'systems/WebCore/Tooltip';
12
+ import { CommentEmotion } from 'utils/EmojiCommentList';
13
+ import { KpiIndicatorColor as KpiIndicatorColor$1 } from 'systems/Platform/KpiIndicator/utils';
8
14
  import { IconName as IconName$1 } from 'systems/BrandCore/Icon';
9
15
  import { KpiIndicatorProps as KpiIndicatorProps$1 } from 'systems/Platform/KpiIndicator';
10
16
  import { ChipProps } from '@mui/material/Chip';
@@ -1931,6 +1937,82 @@ interface AuthContainerSurfaceProps extends SurfaceProps {
1931
1937
  }
1932
1938
  declare const AuthContainerSurface: FunctionComponent<AuthContainerSurfaceProps>;
1933
1939
 
1940
+ interface StyledLinearProgressProps extends LinearProgressProps {
1941
+ checked?: boolean;
1942
+ barColor?: KpiIndicatorColor$1;
1943
+ }
1944
+
1945
+ /**
1946
+ * Renders a customizable bar graph item with optional icon, label, value, respondent count, and checkbox.
1947
+ *
1948
+ * @component
1949
+ * @param {GraphBarProps} props - The props for the GraphBar component.
1950
+ * @param {string} props.label - The label displayed for the bar.
1951
+ * @param {number | null | undefined} props.value - The value represented by the bar (used for progress).
1952
+ * @param {React.ReactNode} [props.tooltipContent] - Optional tooltip content shown on hover.
1953
+ * @param {number | null | undefined} [props.respondentCount] - Optional count of respondents displayed in a column.
1954
+ * @param {object} [props.icon] - Optional icon configuration (emoji or standard icon).
1955
+ * @param {boolean} [props.hideIcon] - If true, hides the icon.
1956
+ * @param {boolean} [props.hideCheckbox] - If true, hides the checkbox.
1957
+ * @param {boolean} [props.hideUnitColumn1] - If true, hides the first unit column (value).
1958
+ * @param {boolean} [props.hideUnitColumn2] - If true, hides the second unit column (respondent count).
1959
+ * @param {object} [props.checkboxProps] - Additional props for the checkbox.
1960
+ * @param {object} [props.slotProps] - Additional slot props for customizing subcomponents.
1961
+ * @param {boolean} [props.percentageSymbol] - If true, appends a percentage symbol to the value.
1962
+ * @param {boolean} [props.checkedDefaultValue] - The initial checked state of the checkbox.
1963
+ *
1964
+ * @returns {JSX.Element} The rendered GraphBar component.
1965
+ */
1966
+ interface GraphBarProps {
1967
+ hideIcon?: boolean;
1968
+ hideCheckbox?: boolean;
1969
+ hideUnitColumn1?: boolean;
1970
+ hideUnitColumn2?: boolean;
1971
+ checkedDefaultValue?: boolean;
1972
+ icon?: {
1973
+ type: 'emoji' | 'icon';
1974
+ name: CommentEmotion | IconName$2;
1975
+ };
1976
+ label: string;
1977
+ value: number;
1978
+ tooltipContent?: ReactNode;
1979
+ respondentCount?: number;
1980
+ maxValue?: number;
1981
+ slotProps?: {
1982
+ graphBar?: StyledLinearProgressProps;
1983
+ checkbox?: CheckboxProps$2;
1984
+ icon?: IconProps$1;
1985
+ emojiIcon?: BoxProps$1;
1986
+ tooltip?: TooltipProps$2;
1987
+ };
1988
+ percentageSymbol?: boolean;
1989
+ }
1990
+
1991
+ interface BarGraphProps {
1992
+ graphData: GraphBarProps[];
1993
+ hideIcons?: boolean;
1994
+ hideCheckboxes?: boolean;
1995
+ hideUnitColumn1?: boolean;
1996
+ hideUnitColumn2?: boolean;
1997
+ }
1998
+ declare const BarGraph: FunctionComponent<BarGraphProps>;
1999
+
2000
+ interface CommentCardProps {
2001
+ comment: string;
2002
+ sentimentScore: number;
2003
+ commentAuthor: string;
2004
+ isStarred?: boolean;
2005
+ isActive?: boolean;
2006
+ isTranslatable?: boolean;
2007
+ translationStatus?: 'original' | 'translated' | 'error';
2008
+ onFavouritePress?: () => void;
2009
+ onCopyPress?: () => void;
2010
+ onMorePress?: () => void;
2011
+ onTranslatePress?: () => void;
2012
+ onClick?: () => void;
2013
+ }
2014
+ declare const CommentCard: FunctionComponent<CommentCardProps>;
2015
+
1934
2016
  type SentimentColor = keyof SemanticColor$1['light']['data'] | undefined;
1935
2017
  interface DataPointSource {
1936
2018
  id?: string;
@@ -2140,6 +2222,21 @@ interface ProjectsProps {
2140
2222
  }
2141
2223
  declare const Projects: FunctionComponent<ProjectsProps>;
2142
2224
 
2225
+ interface QuestionTypeProps {
2226
+ variation: QuestionType;
2227
+ }
2228
+ interface QuestionBlockProps {
2229
+ questionType: QuestionType;
2230
+ questionNumber: number;
2231
+ totalQuestions: number;
2232
+ preQuestionText?: string;
2233
+ questionText: string;
2234
+ supportText?: string;
2235
+ }
2236
+ type QuestionType = 'single-punch' | 'multi-punch' | 'slider' | 'likert' | 'rank' | 'open-question' | 'emoji' | 'focus';
2237
+ declare const QuestionType: FunctionComponent<QuestionTypeProps>;
2238
+ declare const QuestionBlock: FunctionComponent<QuestionBlockProps>;
2239
+
2143
2240
  interface SectionHeaderProps {
2144
2241
  buttons?: ReactNode;
2145
2242
  loading?: boolean;
@@ -2241,22 +2338,6 @@ type VideoControlsProps = {
2241
2338
  };
2242
2339
  declare const _default: react.MemoExoticComponent<react.ForwardRefExoticComponent<VideoControlsProps & react.RefAttributes<any>>>;
2243
2340
 
2244
- interface CommentCardProps {
2245
- comment: string;
2246
- sentimentScore: number;
2247
- commentAuthor: string;
2248
- isStarred?: boolean;
2249
- isActive?: boolean;
2250
- isTranslatable?: boolean;
2251
- translationStatus?: 'original' | 'translated' | 'error';
2252
- onFavouritePress?: () => void;
2253
- onCopyPress?: () => void;
2254
- onMorePress?: () => void;
2255
- onTranslatePress?: () => void;
2256
- onClick?: () => void;
2257
- }
2258
- declare const CommentCard: FunctionComponent<CommentCardProps>;
2259
-
2260
2341
  type BreakpointOrNull = Breakpoint | null;
2261
2342
  declare const useBreakpoint: () => Breakpoint;
2262
2343
 
@@ -2527,4 +2608,4 @@ declare module '@mui/system' {
2527
2608
  }
2528
2609
  }
2529
2610
 
2530
- 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, CommentCard, type CommentCardProps, CreatableAutocomplete, type CreatableAutocompleteOption, 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, Flag, type FlagProps, 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, KpiDataPopover, type KpiDataPopoverProps, 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, type MarkerComponentProps, Menu, type MenuProps, ModalActionsWrapper, ModalContentWrapper, ModalLayout, type ModalLayoutProps, 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, type QuestionStats, 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, _default as VideoControls, type VideoControlsProps, 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, useKeyCombo, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };
2611
+ 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, BarGraph, type BarGraphProps, 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, CommentCard, type CommentCardProps, CreatableAutocomplete, type CreatableAutocompleteOption, 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, Flag, type FlagProps, 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, KpiDataPopover, type KpiDataPopoverProps, 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, type MarkerComponentProps, Menu, type MenuProps, ModalActionsWrapper, ModalContentWrapper, ModalLayout, type ModalLayoutProps, 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, QuestionBlock, type QuestionBlockProps, type QuestionStats, 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, _default as VideoControls, type VideoControlsProps, 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, useKeyCombo, usePrevious, useScreenSize, useTheme, useThemeBuilder, yellow, yellowRamp };