@useloops/design-system 1.4.171 → 1.4.173
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 +211 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _mui_material from '@mui/material';
|
|
2
2
|
import { SxProps, Theme, PaperProps, AvatarGroupProps as AvatarGroupProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps, MenuItemProps as MenuItemProps$1, FormControlLabelProps as FormControlLabelProps$1, Breakpoint, TooltipProps as TooltipProps$1, IconButtonProps as IconButtonProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, LinkProps as LinkProps$1, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SwitchProps as SwitchProps$1, TypographyProps as TypographyProps$1, PaletteMode, Direction } from '@mui/material';
|
|
3
|
-
import react, { FunctionComponent, PropsWithChildren, FC, ReactNode, ReactElement, ChangeEvent } from 'react';
|
|
3
|
+
import react, { FunctionComponent, PropsWithChildren, FC, ReactNode, ReactElement, ChangeEvent, Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { SubmitHandler } from 'react-hook-form';
|
|
5
5
|
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
6
6
|
import { NumericFormatProps } from 'react-number-format';
|
|
@@ -1513,6 +1513,215 @@ interface MenuItem {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
declare const UserMenu: FunctionComponent<UserMenuProps>;
|
|
1515
1515
|
|
|
1516
|
+
type SupportedCurrency = 'gbp' | 'eur' | 'usd';
|
|
1517
|
+
type SupportedFrequency = 'monthly' | 'annual';
|
|
1518
|
+
interface AnnualControllerProps {
|
|
1519
|
+
body: string;
|
|
1520
|
+
currency: string;
|
|
1521
|
+
changeCurrencyEvent?: (value: string) => void;
|
|
1522
|
+
frequency: string;
|
|
1523
|
+
heading: string;
|
|
1524
|
+
setCurrency?: Dispatch<SetStateAction<SupportedCurrency>>;
|
|
1525
|
+
setFrequency?: Dispatch<SetStateAction<SupportedFrequency>>;
|
|
1526
|
+
togglePayAnnuallyEvent?: () => void;
|
|
1527
|
+
sizing?: 'sm' | 'lg';
|
|
1528
|
+
selections?: {
|
|
1529
|
+
value: SupportedCurrency;
|
|
1530
|
+
label: string;
|
|
1531
|
+
}[];
|
|
1532
|
+
}
|
|
1533
|
+
declare const AnnualController: FunctionComponent<AnnualControllerProps>;
|
|
1534
|
+
|
|
1535
|
+
declare const _default: {
|
|
1536
|
+
headings: {
|
|
1537
|
+
"01-starter": {
|
|
1538
|
+
heading: string;
|
|
1539
|
+
pricing: string;
|
|
1540
|
+
};
|
|
1541
|
+
"02-team": {
|
|
1542
|
+
heading: string;
|
|
1543
|
+
pricing: string;
|
|
1544
|
+
};
|
|
1545
|
+
"03-plus": {
|
|
1546
|
+
heading: string;
|
|
1547
|
+
pricing: string;
|
|
1548
|
+
};
|
|
1549
|
+
"04-scale": {
|
|
1550
|
+
heading: string;
|
|
1551
|
+
pricing: string;
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
rows: {
|
|
1555
|
+
"01-seats": {
|
|
1556
|
+
heading: string;
|
|
1557
|
+
description: string;
|
|
1558
|
+
starter: string;
|
|
1559
|
+
team: string;
|
|
1560
|
+
plus: string;
|
|
1561
|
+
scale: string;
|
|
1562
|
+
};
|
|
1563
|
+
"02-servicing": {
|
|
1564
|
+
heading: string;
|
|
1565
|
+
description: string;
|
|
1566
|
+
starter: string;
|
|
1567
|
+
team: string;
|
|
1568
|
+
plus: string;
|
|
1569
|
+
scale: string;
|
|
1570
|
+
};
|
|
1571
|
+
"03-respondents": {
|
|
1572
|
+
heading: string;
|
|
1573
|
+
description: string;
|
|
1574
|
+
starter: string;
|
|
1575
|
+
team: string;
|
|
1576
|
+
plus: string;
|
|
1577
|
+
scale: string;
|
|
1578
|
+
};
|
|
1579
|
+
"04-questions": {
|
|
1580
|
+
heading: string;
|
|
1581
|
+
description: string;
|
|
1582
|
+
starter: string;
|
|
1583
|
+
team: string;
|
|
1584
|
+
plus: string;
|
|
1585
|
+
scale: string;
|
|
1586
|
+
};
|
|
1587
|
+
"05-ai": {
|
|
1588
|
+
heading: string;
|
|
1589
|
+
description: string;
|
|
1590
|
+
starter: string;
|
|
1591
|
+
team: string;
|
|
1592
|
+
plus: string;
|
|
1593
|
+
scale: string;
|
|
1594
|
+
};
|
|
1595
|
+
"06-demographics": {
|
|
1596
|
+
heading: string;
|
|
1597
|
+
description: string;
|
|
1598
|
+
starter: string;
|
|
1599
|
+
team: string;
|
|
1600
|
+
plus: string;
|
|
1601
|
+
scale: string;
|
|
1602
|
+
};
|
|
1603
|
+
"07-training": {
|
|
1604
|
+
heading: string;
|
|
1605
|
+
description: string;
|
|
1606
|
+
starter: string;
|
|
1607
|
+
team: string;
|
|
1608
|
+
plus: string;
|
|
1609
|
+
scale: string;
|
|
1610
|
+
};
|
|
1611
|
+
"08-invite": {
|
|
1612
|
+
heading: string;
|
|
1613
|
+
description: string;
|
|
1614
|
+
starter: string;
|
|
1615
|
+
team: string;
|
|
1616
|
+
plus: string;
|
|
1617
|
+
scale: string;
|
|
1618
|
+
};
|
|
1619
|
+
"09-email": {
|
|
1620
|
+
heading: string;
|
|
1621
|
+
description: string;
|
|
1622
|
+
starter: string;
|
|
1623
|
+
team: string;
|
|
1624
|
+
plus: string;
|
|
1625
|
+
scale: string;
|
|
1626
|
+
};
|
|
1627
|
+
"10-beta": {
|
|
1628
|
+
heading: string;
|
|
1629
|
+
description: string;
|
|
1630
|
+
starter: string;
|
|
1631
|
+
team: string;
|
|
1632
|
+
plus: string;
|
|
1633
|
+
scale: string;
|
|
1634
|
+
};
|
|
1635
|
+
"11-sso": {
|
|
1636
|
+
heading: string;
|
|
1637
|
+
description: string;
|
|
1638
|
+
starter: string;
|
|
1639
|
+
team: string;
|
|
1640
|
+
plus: string;
|
|
1641
|
+
scale: string;
|
|
1642
|
+
};
|
|
1643
|
+
"12-minimum": {
|
|
1644
|
+
heading: string;
|
|
1645
|
+
description: string;
|
|
1646
|
+
starter: string;
|
|
1647
|
+
team: string;
|
|
1648
|
+
plus: string;
|
|
1649
|
+
scale: string;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
interface PlanFeatureTableProps {
|
|
1655
|
+
currencySymbol: string;
|
|
1656
|
+
data: typeof _default;
|
|
1657
|
+
starterPrice: string;
|
|
1658
|
+
starterRespondentPrice: string;
|
|
1659
|
+
teamPrice: string;
|
|
1660
|
+
teamRespondentPrice: string;
|
|
1661
|
+
plusPrice: string;
|
|
1662
|
+
plusRespondentPrice: string;
|
|
1663
|
+
scalePrice: string;
|
|
1664
|
+
scaleRespondentPrice: string;
|
|
1665
|
+
variation?: 'default' | 'platform';
|
|
1666
|
+
}
|
|
1667
|
+
declare const PlanFeatureTable: FunctionComponent<PlanFeatureTableProps>;
|
|
1668
|
+
|
|
1669
|
+
interface PlanTierCardProps {
|
|
1670
|
+
amount: string;
|
|
1671
|
+
billingType?: string;
|
|
1672
|
+
body: string;
|
|
1673
|
+
ctaEvent?: (heading: string) => void;
|
|
1674
|
+
ctaLink?: string;
|
|
1675
|
+
ctaTarget?: string;
|
|
1676
|
+
ctaText: string;
|
|
1677
|
+
ctaVariation?: 'primary' | 'secondary' | 'outlined';
|
|
1678
|
+
currencySymbol: string;
|
|
1679
|
+
currentPlan?: boolean;
|
|
1680
|
+
features?: string[];
|
|
1681
|
+
freeTrialLength?: string;
|
|
1682
|
+
freeTrialText?: string;
|
|
1683
|
+
frequency: string;
|
|
1684
|
+
heading: string;
|
|
1685
|
+
label?: string;
|
|
1686
|
+
largestHeaderHeight?: number;
|
|
1687
|
+
perMonth: string;
|
|
1688
|
+
setLargestHeaderHeight?: (height: number) => void;
|
|
1689
|
+
variation?: 'default' | 'platform';
|
|
1690
|
+
}
|
|
1691
|
+
declare const PlanTierCard: FunctionComponent<PlanTierCardProps>;
|
|
1692
|
+
|
|
1693
|
+
interface PlanTierCardScaleProps {
|
|
1694
|
+
amount: string;
|
|
1695
|
+
body: string;
|
|
1696
|
+
ctaEvent?: (heading: string) => void;
|
|
1697
|
+
ctaLink?: string;
|
|
1698
|
+
ctaTarget?: string;
|
|
1699
|
+
ctaText: string;
|
|
1700
|
+
currencySymbol: string;
|
|
1701
|
+
heading: string;
|
|
1702
|
+
preText: string;
|
|
1703
|
+
postText: string;
|
|
1704
|
+
}
|
|
1705
|
+
declare const PlanTierCardScale: FunctionComponent<PlanTierCardScaleProps>;
|
|
1706
|
+
|
|
1707
|
+
interface TickGroupProps {
|
|
1708
|
+
heading: string;
|
|
1709
|
+
ticks: string[];
|
|
1710
|
+
}
|
|
1711
|
+
declare const TickGroup: FunctionComponent<TickGroupProps>;
|
|
1712
|
+
|
|
1713
|
+
type BreakpointOrNull = Breakpoint | null;
|
|
1714
|
+
declare const useBreakpoint: () => Breakpoint;
|
|
1715
|
+
|
|
1716
|
+
declare function compareArrayMembers(arr1: string[], arr2: string[]): boolean;
|
|
1717
|
+
|
|
1718
|
+
declare const useScreenSize: () => {
|
|
1719
|
+
width: number | undefined;
|
|
1720
|
+
height: number | undefined;
|
|
1721
|
+
};
|
|
1722
|
+
|
|
1723
|
+
declare const usePrevious: <TValue>(value: TValue) => TValue | undefined;
|
|
1724
|
+
|
|
1516
1725
|
type ScreenSize = 'sm' | 'lg';
|
|
1517
1726
|
|
|
1518
1727
|
interface Props extends PropsWithChildren {
|
|
@@ -1727,4 +1936,4 @@ declare module '@mui/system' {
|
|
|
1727
1936
|
}
|
|
1728
1937
|
}
|
|
1729
1938
|
|
|
1730
|
-
export { AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, 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, type FieldType, type FieldTypes, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, Header, type HeaderProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopsAiButton, type LoopsAiButtonProps, Markdown, MenuButton, type MenuButtonProps, Navigation, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, OnboardingCard, type OnboardingCardProps, Pill, type PillProps, Popper, type PopperProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, type ProjectItemProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, type SemanticColor, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeProvider, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useDropdownMenu, yellow, yellowRamp };
|
|
1939
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbProps, type BreakpointOrNull, Button, type ButtonProps, 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, type FieldType, type FieldTypes, FontWeight, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, type GenericSizeMap, GridOverlay, type GridOverlayProps, Header, type HeaderProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, type IconButtonProps, type IconName, Image, type ImageProps, InputFieldBase, type InputFieldBaseProps, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, LoopsAiButton, type LoopsAiButtonProps, Markdown, MenuButton, type MenuButtonProps, Navigation, type NavigationProps, type NavigationSizing, Nudge, type NudgeProps, NumberField, type NumberFieldProps, OnboardingCard, type OnboardingCardProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Popper, type PopperProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, ProgressBar, type ProgressBarProps, type ProgressProps, ProjectItem, type ProjectItemProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, type SemanticColor, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, UserMenu, type UserMenuProps, backgroundCreator, base, blue, blueRamp, boxShadow, breakpoints, chooseArticle, compareArrayMembers, darkNeutral, darkNeutralAlpha, defaultInputValidation, easing, elevation, elevationFilter, emailValidation, fonts, generateRamp, green, greenRamp, iconSizeMap, margin, neutral, neutralAlpha, neutralRamp, padding, passwordValidation, peach, peachRamp, purple, purpleRamp, radius, red, redRamp, semantic, space, useBreakpoint, useDropdownMenu, usePrevious, useScreenSize, yellow, yellowRamp };
|