@useloops/design-system 1.4.512 → 1.4.514

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
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
- import react__default, { FunctionComponent, PropsWithChildren, Dispatch, SetStateAction, ReactNode, ReactElement, ChangeEvent, FC, MouseEventHandler, ComponentProps } from 'react';
2
+ import react__default, { FunctionComponent, PropsWithChildren, ReactElement, Dispatch, SetStateAction, ReactNode, ChangeEvent, FC, MouseEventHandler, ComponentProps } from 'react';
3
3
  import * as _mui_material from '@mui/material';
4
4
  import { SxProps, Theme, BoxProps, 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, FormControlLabelProps as FormControlLabelProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, PaperProps, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, CircularProgressProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, SvgIconProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, Breakpoint, PaletteMode, Direction } from '@mui/material';
5
- import { PopupState } from 'material-ui-popup-state/hooks';
6
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import { PopupState } from 'material-ui-popup-state/hooks';
7
7
  import { Theme as Theme$1, SxProps as SxProps$1 } from '@mui/material/styles';
8
8
  import { MotionProps } from 'framer-motion';
9
9
  import { SemanticColor as SemanticColor$1 } from 'systems/BrandCore';
@@ -818,6 +818,18 @@ interface AiContentContainerProps extends PropsWithChildren {
818
818
  }
819
819
  declare const AiContentContainer: FunctionComponent<AiContentContainerProps>;
820
820
 
821
+ interface AIInsightProps {
822
+ themeDescription: string;
823
+ comments: ReactElement[];
824
+ slotProps?: {
825
+ aiContentContainer: AiContentContainerProps;
826
+ };
827
+ suggestions?: string[];
828
+ activeCommentIndex?: number;
829
+ onActiveCommentIndexChange?: (index: number) => void;
830
+ }
831
+ declare const AIInsight: FunctionComponent<AIInsightProps>;
832
+
821
833
  declare const emailValidation: {
822
834
  pattern: {
823
835
  value: RegExp;
@@ -1977,47 +1989,6 @@ interface VideoModalProps {
1977
1989
  }
1978
1990
  declare const VideoModal: FunctionComponent<VideoModalProps>;
1979
1991
 
1980
- interface CommentCardProps {
1981
- author: string;
1982
- copyLoading?: boolean;
1983
- demographicString?: string;
1984
- onClickSeeMore?: () => void;
1985
- timeStamp?: string;
1986
- onTimeStampClick?: () => void;
1987
- favouriteLoading?: boolean;
1988
- isActive?: boolean;
1989
- isHovered?: boolean;
1990
- isStarred?: boolean;
1991
- moreMenuItems?: MenuProps['menuItems'];
1992
- moreMenuState?: MenuProps['state'];
1993
- onClick?: () => void;
1994
- onFavouritePress?: () => void;
1995
- onMorePress?: () => void;
1996
- original: string;
1997
- sentimentScore: number;
1998
- translation?: string;
1999
- translationError?: string;
2000
- slotProps?: {
2001
- menu?: MenuProps['slotProps'];
2002
- };
2003
- }
2004
-
2005
- declare const CommentCard: react.ForwardRefExoticComponent<CommentCardProps & react.RefAttributes<HTMLDivElement>>;
2006
-
2007
- interface AIInsightProps {
2008
- themeDescription: string;
2009
- comments: Array<CommentCardProps & {
2010
- id: string;
2011
- }>;
2012
- slotProps?: {
2013
- aiContentContainer: AiContentContainerProps;
2014
- };
2015
- suggestions?: string[];
2016
- activeCommentIndex?: number;
2017
- onActiveCommentIndexChange?: (index: number) => void;
2018
- }
2019
- declare const AIInsight: FunctionComponent<AIInsightProps>;
2020
-
2021
1992
  type AISummaryProps = {
2022
1993
  heading?: string;
2023
1994
  body?: string;
@@ -2069,6 +2040,33 @@ interface ClipboardCopyingOverlayProps {
2069
2040
  }
2070
2041
  declare const ClipboardCopyingOverlay: FunctionComponent<ClipboardCopyingOverlayProps>;
2071
2042
 
2043
+ interface CommentCardProps {
2044
+ author: string;
2045
+ copyLoading?: boolean;
2046
+ demographicString?: string;
2047
+ onClickSeeMore?: () => void;
2048
+ timeStamp?: string;
2049
+ onTimeStampClick?: () => void;
2050
+ favouriteLoading?: boolean;
2051
+ isActive?: boolean;
2052
+ isHovered?: boolean;
2053
+ isStarred?: boolean;
2054
+ moreMenuItems?: MenuProps['menuItems'];
2055
+ moreMenuState?: MenuProps['state'];
2056
+ onClick?: () => void;
2057
+ onFavouritePress?: () => void;
2058
+ onMorePress?: () => void;
2059
+ original: string;
2060
+ sentimentScore: number;
2061
+ translation?: string;
2062
+ translationError?: string;
2063
+ slotProps?: {
2064
+ menu?: MenuProps['slotProps'];
2065
+ };
2066
+ }
2067
+
2068
+ declare const CommentCard: react.ForwardRefExoticComponent<CommentCardProps & react.RefAttributes<HTMLDivElement>>;
2069
+
2072
2070
  type SentimentColor = keyof SemanticColor$1['light']['data'] | undefined;
2073
2071
  interface DataPointSource {
2074
2072
  id?: string;
@@ -2255,7 +2253,7 @@ interface GraphBarSlotProps {
2255
2253
  graphBar?: StyledLinearProgressProps;
2256
2254
  graphBarTypography?: Omit<TypographyProps, 'component' | 'variation'>;
2257
2255
  checkbox?: CheckboxProps;
2258
- icon?: IconProps$1;
2256
+ icon?: Omit<IconProps$1, 'name'>;
2259
2257
  emojiIcon?: BoxProps$1;
2260
2258
  tooltip?: TooltipProps$2;
2261
2259
  unitText1?: UnitTextProps;