@useloops/design-system 1.4.289 → 1.4.291
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 +90 -86
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { Dispatch, SetStateAction,
|
|
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;
|
|
@@ -1195,6 +1281,7 @@ interface IconButtonGroupProps {
|
|
|
1195
1281
|
declare const IconButtonGroup: FunctionComponent<IconButtonGroupProps>;
|
|
1196
1282
|
|
|
1197
1283
|
interface ImageProps extends LazyLoadImageProps {
|
|
1284
|
+
containerSx: SxProps<Theme>;
|
|
1198
1285
|
}
|
|
1199
1286
|
declare const Image: FunctionComponent<ImageProps>;
|
|
1200
1287
|
|
|
@@ -1689,6 +1776,7 @@ interface HeaderProps {
|
|
|
1689
1776
|
sx?: SxProps<Theme>;
|
|
1690
1777
|
slotProps?: {
|
|
1691
1778
|
titleIconButton?: Omit<IconButtonProps, 'icon'>;
|
|
1779
|
+
container?: ContainerProps;
|
|
1692
1780
|
};
|
|
1693
1781
|
}
|
|
1694
1782
|
declare const Header: FunctionComponent<HeaderProps>;
|
|
@@ -1830,91 +1918,6 @@ interface TestItemProps extends SurfaceProps {
|
|
|
1830
1918
|
}
|
|
1831
1919
|
declare const TestItem: react__default.FC<TestItemProps>;
|
|
1832
1920
|
|
|
1833
|
-
interface PlanHeading {
|
|
1834
|
-
heading: string;
|
|
1835
|
-
pricing: string;
|
|
1836
|
-
}
|
|
1837
|
-
interface PlanRow {
|
|
1838
|
-
heading: string;
|
|
1839
|
-
description: string;
|
|
1840
|
-
tier1: string;
|
|
1841
|
-
tier2: string;
|
|
1842
|
-
tier3: string;
|
|
1843
|
-
tier4: string;
|
|
1844
|
-
}
|
|
1845
|
-
interface PlanFeatureTableData {
|
|
1846
|
-
headings: {
|
|
1847
|
-
'01-tier1': PlanHeading;
|
|
1848
|
-
'02-tier2': PlanHeading;
|
|
1849
|
-
'03-tier3': PlanHeading;
|
|
1850
|
-
'04-tier4': PlanHeading;
|
|
1851
|
-
};
|
|
1852
|
-
rows: {
|
|
1853
|
-
'01-servicing': PlanRow;
|
|
1854
|
-
'02-respondents': PlanRow;
|
|
1855
|
-
'03-questions': PlanRow;
|
|
1856
|
-
'04-ai': PlanRow;
|
|
1857
|
-
'05-demographics': PlanRow;
|
|
1858
|
-
'06-training': PlanRow;
|
|
1859
|
-
'07-invite': PlanRow;
|
|
1860
|
-
'08-email': PlanRow;
|
|
1861
|
-
'09-beta': PlanRow;
|
|
1862
|
-
'10-sso': PlanRow;
|
|
1863
|
-
'11-minimum': PlanRow;
|
|
1864
|
-
};
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
interface PlanFeatureTableProps {
|
|
1868
|
-
currencySymbol: string;
|
|
1869
|
-
data?: PlanFeatureTableData;
|
|
1870
|
-
loading?: boolean;
|
|
1871
|
-
tier1Price: number | string;
|
|
1872
|
-
tier1RespondentPrice: number | string;
|
|
1873
|
-
tier1QuestionLimit: number | string;
|
|
1874
|
-
tier2Price: number | string;
|
|
1875
|
-
tier2RespondentPrice: number | string;
|
|
1876
|
-
tier2QuestionLimit: number | string;
|
|
1877
|
-
tier3Price: number | string;
|
|
1878
|
-
tier3RespondentPrice: number | string;
|
|
1879
|
-
tier3QuestionLimit: number | string;
|
|
1880
|
-
tier4Price: number | string;
|
|
1881
|
-
tier4RespondentPrice: number | string;
|
|
1882
|
-
tier4QuestionLimit: number | string;
|
|
1883
|
-
variation?: 'default' | 'platform';
|
|
1884
|
-
}
|
|
1885
|
-
declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
|
|
1886
|
-
|
|
1887
|
-
type Section = 'headerHeight' | 'bodyHeight' | 'respondentCardHeight' | 'bottomHeight';
|
|
1888
|
-
interface PlanTierCardProps {
|
|
1889
|
-
amount: string;
|
|
1890
|
-
billingType?: string;
|
|
1891
|
-
body: string;
|
|
1892
|
-
ctaEvent?: (heading: string) => void;
|
|
1893
|
-
ctaLink?: string;
|
|
1894
|
-
ctaTarget?: string;
|
|
1895
|
-
ctaText: string;
|
|
1896
|
-
ctaVariation?: 'primary' | 'secondary' | 'outlined';
|
|
1897
|
-
currencySymbol: string;
|
|
1898
|
-
currentPlan?: boolean;
|
|
1899
|
-
features?: string[];
|
|
1900
|
-
heading: string;
|
|
1901
|
-
label?: string;
|
|
1902
|
-
loading?: boolean;
|
|
1903
|
-
perMonth: string;
|
|
1904
|
-
respondentsTitle?: string;
|
|
1905
|
-
respondentsFeatures?: string[];
|
|
1906
|
-
saving?: string;
|
|
1907
|
-
sectionHeights: Record<Section, number>;
|
|
1908
|
-
updateSectionHeight?: (section: Section, height: number) => void;
|
|
1909
|
-
}
|
|
1910
|
-
declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
|
|
1911
|
-
|
|
1912
|
-
interface TickGroupProps {
|
|
1913
|
-
heading: string;
|
|
1914
|
-
ticks: string[];
|
|
1915
|
-
}
|
|
1916
|
-
declare const TickGroup: FunctionComponent<TickGroupProps>;
|
|
1917
|
-
|
|
1918
1921
|
type BreakpointOrNull = Breakpoint | null;
|
|
1919
1922
|
declare const useBreakpoint: () => Breakpoint;
|
|
1920
1923
|
|
|
@@ -2043,6 +2046,7 @@ declare module '@mui/material/styles' {
|
|
|
2043
2046
|
default?: string;
|
|
2044
2047
|
disabled?: string;
|
|
2045
2048
|
};
|
|
2049
|
+
body?: string;
|
|
2046
2050
|
};
|
|
2047
2051
|
margin?: {
|
|
2048
2052
|
none?: number;
|