@useloops/design-system 1.4.290 → 1.4.292

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,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { Dispatch, SetStateAction, FunctionComponent, ReactElement, PropsWithChildren, ChangeEvent, FC, ReactNode } from 'react';
2
+ import react__default, { FunctionComponent, Dispatch, SetStateAction, ReactElement, PropsWithChildren, ChangeEvent, FC, ReactNode } from 'react';
3
3
  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, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TypographyProps as TypographyProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, BoxProps, 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';
@@ -577,6 +577,7 @@ interface CustomTheme {
577
577
  default: string;
578
578
  disabled: string;
579
579
  };
580
+ body: string;
580
581
  };
581
582
  margin: {
582
583
  none: number;
@@ -654,6 +655,91 @@ interface CustomTheme {
654
655
  };
655
656
  }
656
657
 
658
+ interface PlanHeading {
659
+ heading: string;
660
+ pricing: string;
661
+ }
662
+ interface PlanRow {
663
+ heading: string;
664
+ description: string;
665
+ tier1: string;
666
+ tier2: string;
667
+ tier3: string;
668
+ tier4: string;
669
+ }
670
+ interface PlanFeatureTableData {
671
+ headings: {
672
+ '01-tier1': PlanHeading;
673
+ '02-tier2': PlanHeading;
674
+ '03-tier3': PlanHeading;
675
+ '04-tier4': PlanHeading;
676
+ };
677
+ rows: {
678
+ '01-servicing': PlanRow;
679
+ '02-respondents': PlanRow;
680
+ '03-questions': PlanRow;
681
+ '04-ai': PlanRow;
682
+ '05-demographics': PlanRow;
683
+ '06-training': PlanRow;
684
+ '07-invite': PlanRow;
685
+ '08-email': PlanRow;
686
+ '09-beta': PlanRow;
687
+ '10-sso': PlanRow;
688
+ '11-minimum': PlanRow;
689
+ };
690
+ }
691
+
692
+ interface PlanFeatureTableProps {
693
+ currencySymbol: string;
694
+ data?: PlanFeatureTableData;
695
+ loading?: boolean;
696
+ tier1Price: number | string;
697
+ tier1RespondentPrice: number | string;
698
+ tier1QuestionLimit: number | string;
699
+ tier2Price: number | string;
700
+ tier2RespondentPrice: number | string;
701
+ tier2QuestionLimit: number | string;
702
+ tier3Price: number | string;
703
+ tier3RespondentPrice: number | string;
704
+ tier3QuestionLimit: number | string;
705
+ tier4Price: number | string;
706
+ tier4RespondentPrice: number | string;
707
+ tier4QuestionLimit: number | string;
708
+ variation?: 'default' | 'platform';
709
+ }
710
+ declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
711
+
712
+ type Section = 'headerHeight' | 'bodyHeight' | 'respondentCardHeight' | 'bottomHeight';
713
+ interface PlanTierCardProps {
714
+ amount: string;
715
+ billingType?: string;
716
+ body: string;
717
+ ctaEvent?: (heading: string) => void;
718
+ ctaLink?: string;
719
+ ctaTarget?: string;
720
+ ctaText: string;
721
+ ctaVariation?: 'primary' | 'secondary' | 'outlined';
722
+ currencySymbol: string;
723
+ currentPlan?: boolean;
724
+ features?: string[];
725
+ heading: string;
726
+ label?: string;
727
+ loading?: boolean;
728
+ perMonth: string;
729
+ respondentsTitle?: string;
730
+ respondentsFeatures?: string[];
731
+ saving?: string;
732
+ sectionHeights: Record<Section, number>;
733
+ updateSectionHeight?: (section: Section, height: number) => void;
734
+ }
735
+ declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
736
+
737
+ interface TickGroupProps {
738
+ heading: string;
739
+ ticks: string[];
740
+ }
741
+ declare const TickGroup: FunctionComponent<TickGroupProps>;
742
+
657
743
  declare const emailValidation: {
658
744
  pattern: {
659
745
  value: RegExp;
@@ -1690,6 +1776,7 @@ interface HeaderProps {
1690
1776
  sx?: SxProps<Theme>;
1691
1777
  slotProps?: {
1692
1778
  titleIconButton?: Omit<IconButtonProps, 'icon'>;
1779
+ container?: ContainerProps;
1693
1780
  };
1694
1781
  }
1695
1782
  declare const Header: FunctionComponent<HeaderProps>;
@@ -1831,91 +1918,6 @@ interface TestItemProps extends SurfaceProps {
1831
1918
  }
1832
1919
  declare const TestItem: react__default.FC<TestItemProps>;
1833
1920
 
1834
- interface PlanHeading {
1835
- heading: string;
1836
- pricing: string;
1837
- }
1838
- interface PlanRow {
1839
- heading: string;
1840
- description: string;
1841
- tier1: string;
1842
- tier2: string;
1843
- tier3: string;
1844
- tier4: string;
1845
- }
1846
- interface PlanFeatureTableData {
1847
- headings: {
1848
- '01-tier1': PlanHeading;
1849
- '02-tier2': PlanHeading;
1850
- '03-tier3': PlanHeading;
1851
- '04-tier4': PlanHeading;
1852
- };
1853
- rows: {
1854
- '01-servicing': PlanRow;
1855
- '02-respondents': PlanRow;
1856
- '03-questions': PlanRow;
1857
- '04-ai': PlanRow;
1858
- '05-demographics': PlanRow;
1859
- '06-training': PlanRow;
1860
- '07-invite': PlanRow;
1861
- '08-email': PlanRow;
1862
- '09-beta': PlanRow;
1863
- '10-sso': PlanRow;
1864
- '11-minimum': PlanRow;
1865
- };
1866
- }
1867
-
1868
- interface PlanFeatureTableProps {
1869
- currencySymbol: string;
1870
- data?: PlanFeatureTableData;
1871
- loading?: boolean;
1872
- tier1Price: number | string;
1873
- tier1RespondentPrice: number | string;
1874
- tier1QuestionLimit: number | string;
1875
- tier2Price: number | string;
1876
- tier2RespondentPrice: number | string;
1877
- tier2QuestionLimit: number | string;
1878
- tier3Price: number | string;
1879
- tier3RespondentPrice: number | string;
1880
- tier3QuestionLimit: number | string;
1881
- tier4Price: number | string;
1882
- tier4RespondentPrice: number | string;
1883
- tier4QuestionLimit: number | string;
1884
- variation?: 'default' | 'platform';
1885
- }
1886
- declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
1887
-
1888
- type Section = 'headerHeight' | 'bodyHeight' | 'respondentCardHeight' | 'bottomHeight';
1889
- interface PlanTierCardProps {
1890
- amount: string;
1891
- billingType?: string;
1892
- body: string;
1893
- ctaEvent?: (heading: string) => void;
1894
- ctaLink?: string;
1895
- ctaTarget?: string;
1896
- ctaText: string;
1897
- ctaVariation?: 'primary' | 'secondary' | 'outlined';
1898
- currencySymbol: string;
1899
- currentPlan?: boolean;
1900
- features?: string[];
1901
- heading: string;
1902
- label?: string;
1903
- loading?: boolean;
1904
- perMonth: string;
1905
- respondentsTitle?: string;
1906
- respondentsFeatures?: string[];
1907
- saving?: string;
1908
- sectionHeights: Record<Section, number>;
1909
- updateSectionHeight?: (section: Section, height: number) => void;
1910
- }
1911
- declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
1912
-
1913
- interface TickGroupProps {
1914
- heading: string;
1915
- ticks: string[];
1916
- }
1917
- declare const TickGroup: FunctionComponent<TickGroupProps>;
1918
-
1919
1921
  type BreakpointOrNull = Breakpoint | null;
1920
1922
  declare const useBreakpoint: () => Breakpoint;
1921
1923
 
@@ -2044,6 +2046,7 @@ declare module '@mui/material/styles' {
2044
2046
  default?: string;
2045
2047
  disabled?: string;
2046
2048
  };
2049
+ body?: string;
2047
2050
  };
2048
2051
  margin?: {
2049
2052
  none?: number;