igloo-d2c-components 1.0.8 → 1.0.10
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/README.md +8 -0
- package/dist/assets/icons/alert.svg +5 -0
- package/dist/assets/icons/arrow-down.svg +3 -0
- package/dist/assets/icons/arrow.svg +9 -0
- package/dist/assets/icons/close.svg +4 -0
- package/dist/assets/icons/facebook.svg +3 -0
- package/dist/assets/icons/index.ts +26 -0
- package/dist/assets/icons/instagram.svg +11 -0
- package/dist/assets/icons/youtube.svg +11 -0
- package/dist/assets/index.ts +13 -0
- package/dist/assets/tenants/ammetlife/logo.svg +10 -0
- package/dist/assets/tenants/cimb/logo-white.png +0 -0
- package/dist/assets/tenants/cimb/logo.svg +62 -0
- package/dist/assets/tenants/igloo/logo.svg +22 -0
- package/dist/cjs/index.js +2125 -38
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.js +2084 -38
- package/dist/esm/index.js.map +1 -0
- package/dist/types/assets/icons/index.d.ts +21 -0
- package/dist/types/assets/index.d.ts +9 -0
- package/dist/types/components/BillingToggle/BillingToggle.d.ts +34 -0
- package/dist/types/components/BillingToggle/index.d.ts +3 -0
- package/dist/types/components/BillingToggle/styled.d.ts +12 -0
- package/dist/types/components/CoverageAmountSlider/CoverageAmountSlider.d.ts +53 -0
- package/dist/types/components/CoverageAmountSlider/index.d.ts +3 -0
- package/dist/types/components/CoverageAmountSlider/styled.d.ts +41 -0
- package/dist/types/components/Footer/Footer.d.ts +94 -0
- package/dist/types/components/Footer/index.d.ts +3 -0
- package/dist/types/components/Footer/styled.d.ts +38 -0
- package/dist/types/components/Header/Header.d.ts +159 -0
- package/dist/types/components/Header/index.d.ts +3 -0
- package/dist/types/components/Header/styled.d.ts +80 -0
- package/dist/types/components/InfoCallout/InfoCallout.d.ts +34 -0
- package/dist/types/components/InfoCallout/index.d.ts +3 -0
- package/dist/types/components/InfoCallout/styled.d.ts +16 -0
- package/dist/types/components/NewHeader/NewHeader.d.ts +60 -0
- package/dist/types/components/NewHeader/index.d.ts +3 -0
- package/dist/types/components/NewHeader/styled.d.ts +26 -0
- package/dist/types/components/OptionButton/OptionButton.d.ts +59 -0
- package/dist/types/components/OptionButton/index.d.ts +3 -0
- package/dist/types/components/OptionButton/styled.d.ts +18 -0
- package/dist/types/components/ProductSelectionDrawer/ProductSelectionDrawer.d.ts +54 -0
- package/dist/types/components/ProductSelectionDrawer/index.d.ts +3 -0
- package/dist/types/components/ProductSelectionDrawer/styled.d.ts +44 -0
- package/dist/types/components/QuestionSection/QuestionSection.d.ts +71 -0
- package/dist/types/components/QuestionSection/index.d.ts +3 -0
- package/dist/types/components/QuestionSection/styled.d.ts +16 -0
- package/dist/types/components/RecommendationsDrawer/RecommendationsDrawer.d.ts +92 -0
- package/dist/types/components/RecommendationsDrawer/index.d.ts +3 -0
- package/dist/types/components/RecommendationsDrawer/styled.d.ts +35 -0
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +45 -0
- package/dist/types/components/ToggleGroup/index.d.ts +3 -0
- package/dist/types/components/ToggleGroup/styled.d.ts +17 -0
- package/dist/types/context/TenantThemeContext.d.ts +3 -2
- package/dist/types/index.d.ts +30 -4
- package/dist/types/{components/Banner → storybook-components}/Banner.stories.d.ts +1 -1
- package/dist/types/storybook-components/BillingToggle.stories.d.ts +10 -0
- package/dist/types/{components/Button → storybook-components}/Button.stories.d.ts +1 -1
- package/dist/types/{components/Card → storybook-components}/Card.stories.d.ts +1 -1
- package/dist/types/storybook-components/CoverageAmountSlider.stories.d.ts +14 -0
- package/dist/types/storybook-components/Footer.stories.d.ts +10 -0
- package/dist/types/storybook-components/Header.stories.d.ts +9 -0
- package/dist/types/storybook-components/InfoCallout.stories.d.ts +11 -0
- package/dist/types/storybook-components/NewHeader.stories.d.ts +82 -0
- package/dist/types/storybook-components/OptionButton.stories.d.ts +12 -0
- package/dist/types/storybook-components/ProductSelectionDrawer.stories.d.ts +24 -0
- package/dist/types/storybook-components/QuestionSection.stories.d.ts +11 -0
- package/dist/types/storybook-components/RecommendationsDrawer.stories.d.ts +36 -0
- package/dist/types/storybook-components/ToggleGroup.stories.d.ts +10 -0
- package/dist/types/themes/index.d.ts +1 -1
- package/dist/types/themes/typography.d.ts +69 -0
- package/dist/types/types/tenant.d.ts +23 -2
- package/dist/types/utils/assets.d.ts +54 -0
- package/dist/types/utils/theme.d.ts +3 -2
- package/package.json +4 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const QuestionContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const QuestionHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
+
export declare const QuestionTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
10
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "border" | "className" | "classes" | "sx" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
+
export declare const QuestionSubtext: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
13
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "border" | "className" | "classes" | "sx" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
|
+
export declare const OptionsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recommendations Drawer Component
|
|
3
|
+
* Mobile drawer for collecting user preferences and recommendations
|
|
4
|
+
* Based on Figma design (node-id: 98-22220)
|
|
5
|
+
*/
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
export interface RecommendationsDrawerProps {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the drawer is open
|
|
10
|
+
*/
|
|
11
|
+
open: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when drawer should close
|
|
14
|
+
*/
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Drawer content (form, questions, etc.)
|
|
18
|
+
*/
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Optional header icon
|
|
22
|
+
*/
|
|
23
|
+
headerIcon?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Header title
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Header subtitle/description
|
|
30
|
+
*/
|
|
31
|
+
subtitle?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Show back button instead of close
|
|
34
|
+
*/
|
|
35
|
+
showBackButton?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Back button callback
|
|
38
|
+
*/
|
|
39
|
+
onBack?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Primary action button text
|
|
42
|
+
*/
|
|
43
|
+
primaryButtonText?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Primary action callback
|
|
46
|
+
*/
|
|
47
|
+
onPrimaryAction?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Primary button disabled state
|
|
50
|
+
*/
|
|
51
|
+
primaryButtonDisabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Secondary action button text
|
|
54
|
+
*/
|
|
55
|
+
secondaryButtonText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Secondary action callback
|
|
58
|
+
*/
|
|
59
|
+
onSecondaryAction?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Show footer buttons
|
|
62
|
+
*/
|
|
63
|
+
showFooter?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Custom footer content
|
|
66
|
+
*/
|
|
67
|
+
customFooter?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Format message function for i18n
|
|
70
|
+
*/
|
|
71
|
+
formatMessage?: (descriptor: {
|
|
72
|
+
id: string;
|
|
73
|
+
}) => string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* RecommendationsDrawer - Mobile drawer for recommendations and forms
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <RecommendationsDrawer
|
|
81
|
+
* open={isOpen}
|
|
82
|
+
* onClose={handleClose}
|
|
83
|
+
* title="Personalize Your Plan"
|
|
84
|
+
* subtitle="Answer a few questions"
|
|
85
|
+
* primaryButtonText="Next"
|
|
86
|
+
* onPrimaryAction={handleNext}
|
|
87
|
+
* >
|
|
88
|
+
* <QuestionSection question="What is your budget?" />
|
|
89
|
+
* </RecommendationsDrawer>
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function RecommendationsDrawer({ open, onClose, children, headerIcon, title, subtitle, showBackButton, onBack, primaryButtonText, onPrimaryAction, primaryButtonDisabled, secondaryButtonText, onSecondaryAction, showFooter, customFooter, formatMessage, }: RecommendationsDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledDrawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
+
export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export declare const DrawerContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
9
|
+
export declare const DrawerFooter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
12
|
+
export declare const CloseButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
14
|
+
}, "children" | "style" | "className" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
15
|
+
export declare const HeaderSection: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
|
+
export declare const CategoryIcon: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
+
export declare const TitleText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
22
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
23
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "border" | "className" | "classes" | "sx" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
24
|
+
export declare const SubtitleText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
26
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "border" | "className" | "classes" | "sx" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
27
|
+
export declare const FooterButtons: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
29
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
|
+
export declare const PrimaryButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
31
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
32
|
+
}, "children" | "style" | "className" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
33
|
+
export declare const SecondaryButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
34
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
35
|
+
}, "children" | "style" | "className" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ToggleGroup Component
|
|
3
|
+
* Toggle button group for selecting between options (e.g., Domestic/International)
|
|
4
|
+
*/
|
|
5
|
+
export interface ToggleOption {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ToggleGroupProps {
|
|
11
|
+
/**
|
|
12
|
+
* Available options
|
|
13
|
+
*/
|
|
14
|
+
options: ToggleOption[];
|
|
15
|
+
/**
|
|
16
|
+
* Currently selected value
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
/**
|
|
20
|
+
* Callback when value changes
|
|
21
|
+
*/
|
|
22
|
+
onChange: (value: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Format message function for i18n
|
|
25
|
+
*/
|
|
26
|
+
formatMessage?: (descriptor: {
|
|
27
|
+
id: string;
|
|
28
|
+
}) => string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* ToggleGroup - Segmented control for switching between options
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <ToggleGroup
|
|
36
|
+
* options={[
|
|
37
|
+
* { value: 'domestic', label: 'Domestic', icon: '🏠' },
|
|
38
|
+
* { value: 'international', label: 'International', icon: '✈️' }
|
|
39
|
+
* ]}
|
|
40
|
+
* value={selectedType}
|
|
41
|
+
* onChange={setSelectedType}
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function ToggleGroup({ options, value, onChange, formatMessage, }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ToggleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const ToggleButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
7
|
+
}, "children" | "style" | "className" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
8
|
+
selected?: boolean | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const ToggleIcon: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
|
+
export declare const ToggleLabel: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
15
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "border" | "className" | "classes" | "sx" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
16
|
+
selected?: boolean | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
@@ -26,9 +26,10 @@ export interface TenantThemeProviderProps {
|
|
|
26
26
|
export declare function TenantThemeProvider({ children, tenantId, theme, }: TenantThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
/**
|
|
28
28
|
* Hook to access tenant theme configuration
|
|
29
|
-
*
|
|
29
|
+
* Returns undefined during SSR if context is not available
|
|
30
|
+
* @returns TenantContextValue or undefined during SSR
|
|
30
31
|
*/
|
|
31
|
-
export declare function useTenantTheme(): TenantContextValue;
|
|
32
|
+
export declare function useTenantTheme(): TenantContextValue | undefined;
|
|
32
33
|
/**
|
|
33
34
|
* Hook to get tenant ID
|
|
34
35
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,14 +2,40 @@
|
|
|
2
2
|
* D2C Component Library
|
|
3
3
|
* Reusable components with tenant-aware theming
|
|
4
4
|
*/
|
|
5
|
-
export { TenantThemeProvider,
|
|
5
|
+
export { TenantThemeProvider, useIsTenant, useTenantId, useTenantTheme } from './context/TenantThemeContext';
|
|
6
6
|
export type { TenantThemeProviderProps } from './context/TenantThemeContext';
|
|
7
|
-
export type { ColorShade,
|
|
8
|
-
export {
|
|
7
|
+
export type { ColorShade, TenantContextValue, TenantId, TenantPalette, TenantThemeConfig, TenantTypography } from './types/tenant';
|
|
8
|
+
export { ammetlifeTheme, cimbTheme, getAvailableTenants, getTenantTheme, iglooTheme, isValidTenantId, tenantThemes } from './themes';
|
|
9
|
+
export { ammetlifeTypography, cimbTypography, getTenantTypography, iglooTypography, tenantTypography, } from './themes/typography';
|
|
10
|
+
export type { TenantTypographyConfig, TypographyVariant, } from './themes/typography';
|
|
9
11
|
export { Button } from './components/Button';
|
|
10
12
|
export type { ButtonProps } from './components/Button';
|
|
11
13
|
export { Card } from './components/Card';
|
|
12
14
|
export type { CardProps } from './components/Card';
|
|
13
15
|
export { Banner } from './components/Banner';
|
|
14
16
|
export type { BannerProps } from './components/Banner';
|
|
15
|
-
export {
|
|
17
|
+
export { Header } from './components/Header';
|
|
18
|
+
export type { HeaderProps, LanguageOption, NavigationLink } from './components/Header';
|
|
19
|
+
export { NewHeader } from './components/NewHeader';
|
|
20
|
+
export type { NewHeaderNavigationLink, NewHeaderProps } from './components/NewHeader';
|
|
21
|
+
export { Footer } from './components/Footer';
|
|
22
|
+
export type { FooterLicenseImage, FooterNavigationLink, FooterProps, SocialLink } from './components/Footer';
|
|
23
|
+
export { RecommendationsDrawer } from './components/RecommendationsDrawer';
|
|
24
|
+
export type { RecommendationsDrawerProps } from './components/RecommendationsDrawer';
|
|
25
|
+
export { ProductSelectionDrawer } from './components/ProductSelectionDrawer';
|
|
26
|
+
export type { Product, ProductSelectionDrawerProps } from './components/ProductSelectionDrawer';
|
|
27
|
+
export { QuestionSection } from './components/QuestionSection';
|
|
28
|
+
export type { QuestionOption, QuestionSectionProps } from './components/QuestionSection';
|
|
29
|
+
export { OptionButton } from './components/OptionButton';
|
|
30
|
+
export type { OptionButtonProps } from './components/OptionButton';
|
|
31
|
+
export { ToggleGroup } from './components/ToggleGroup';
|
|
32
|
+
export type { ToggleGroupProps, ToggleOption } from './components/ToggleGroup';
|
|
33
|
+
export { BillingToggle } from './components/BillingToggle';
|
|
34
|
+
export type { BillingToggleProps } from './components/BillingToggle';
|
|
35
|
+
export { InfoCallout } from './components/InfoCallout';
|
|
36
|
+
export type { InfoCalloutProps } from './components/InfoCallout';
|
|
37
|
+
export { CoverageAmountSlider } from './components/CoverageAmountSlider';
|
|
38
|
+
export type { CoverageAmountSliderProps } from './components/CoverageAmountSlider';
|
|
39
|
+
export { getTenantAssetPath, getTenantLogoPath, useTenantAsset, useTenantFavicon, useTenantLogo } from './utils/assets';
|
|
40
|
+
export { createThemeCSSVariables, getThemeColor, mergeTenantTheme } from './utils/theme';
|
|
41
|
+
export * from './assets';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import { Banner } from '
|
|
2
|
+
import { Banner } from '../components/Banner';
|
|
3
3
|
declare const _default: ComponentMeta<typeof Banner>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: ComponentStory<typeof Banner>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { BillingToggle } from '../components/BillingToggle';
|
|
3
|
+
declare const _default: ComponentMeta<typeof BillingToggle>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof BillingToggle>;
|
|
6
|
+
export declare const AnnuallySelected: ComponentStory<typeof BillingToggle>;
|
|
7
|
+
export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const WithCustomFormatMessage: ComponentStory<typeof BillingToggle>;
|
|
9
|
+
export declare const WithCIMBTheme: ComponentStory<typeof BillingToggle>;
|
|
10
|
+
export declare const WithAmmetLifeTheme: ComponentStory<typeof BillingToggle>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import { Button } from '
|
|
2
|
+
import { Button } from '../components/Button';
|
|
3
3
|
declare const _default: ComponentMeta<typeof Button>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: ComponentStory<typeof Button>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import { Card } from '
|
|
2
|
+
import { Card } from '../components/Card';
|
|
3
3
|
declare const _default: ComponentMeta<typeof Card>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: ComponentStory<typeof Card>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { CoverageAmountSlider } from '../components/CoverageAmountSlider';
|
|
3
|
+
declare const _default: ComponentMeta<typeof CoverageAmountSlider>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof CoverageAmountSlider>;
|
|
6
|
+
export declare const MidRange: ComponentStory<typeof CoverageAmountSlider>;
|
|
7
|
+
export declare const Maximum: ComponentStory<typeof CoverageAmountSlider>;
|
|
8
|
+
export declare const CustomSegments: ComponentStory<typeof CoverageAmountSlider>;
|
|
9
|
+
export declare const CustomCurrency: ComponentStory<typeof CoverageAmountSlider>;
|
|
10
|
+
export declare const LargeRange: ComponentStory<typeof CoverageAmountSlider>;
|
|
11
|
+
export declare const SmallRange: ComponentStory<typeof CoverageAmountSlider>;
|
|
12
|
+
export declare const WithCIMBTheme: ComponentStory<typeof CoverageAmountSlider>;
|
|
13
|
+
export declare const WithAmmetLifeTheme: ComponentStory<typeof CoverageAmountSlider>;
|
|
14
|
+
export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { Footer } from '../components/Footer';
|
|
3
|
+
declare const _default: ComponentMeta<typeof Footer>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof Footer>;
|
|
6
|
+
export declare const SimplifiedLayout: ComponentStory<typeof Footer>;
|
|
7
|
+
export declare const MobileView: ComponentStory<typeof Footer>;
|
|
8
|
+
export declare const WithPoweredBy: ComponentStory<typeof Footer>;
|
|
9
|
+
export declare const WithCIMBTheme: ComponentStory<typeof Footer>;
|
|
10
|
+
export declare const WithAmmetLifeTheme: ComponentStory<typeof Footer>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { Header } from '../components/Header';
|
|
3
|
+
declare const _default: ComponentMeta<typeof Header>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof Header>;
|
|
6
|
+
export declare const WithUser: ComponentStory<typeof Header>;
|
|
7
|
+
export declare const MobileView: ComponentStory<typeof Header>;
|
|
8
|
+
export declare const WithCIMBTheme: ComponentStory<typeof Header>;
|
|
9
|
+
export declare const WithAmmetLifeTheme: ComponentStory<typeof Header>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { InfoCallout } from '../components/InfoCallout';
|
|
3
|
+
declare const _default: ComponentMeta<typeof InfoCallout>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof InfoCallout>;
|
|
6
|
+
export declare const CustomTitle: ComponentStory<typeof InfoCallout>;
|
|
7
|
+
export declare const LongContent: ComponentStory<typeof InfoCallout>;
|
|
8
|
+
export declare const ShortContent: ComponentStory<typeof InfoCallout>;
|
|
9
|
+
export declare const WithCustomFormatMessage: ComponentStory<typeof InfoCallout>;
|
|
10
|
+
export declare const WithCIMBTheme: ComponentStory<typeof InfoCallout>;
|
|
11
|
+
export declare const WithAmmetLifeTheme: ComponentStory<typeof InfoCallout>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NewHeader Storybook Stories
|
|
3
|
+
* Interactive documentation and testing for the NewHeader component
|
|
4
|
+
*/
|
|
5
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
6
|
+
import { NewHeader } from '../components/NewHeader';
|
|
7
|
+
declare const _default: ComponentMeta<typeof NewHeader>;
|
|
8
|
+
export default _default;
|
|
9
|
+
/**
|
|
10
|
+
* Default story - Basic header with Igloo branding
|
|
11
|
+
*/
|
|
12
|
+
export declare const Default: ComponentStory<typeof NewHeader>;
|
|
13
|
+
/**
|
|
14
|
+
* Authenticated User story
|
|
15
|
+
*/
|
|
16
|
+
export declare const AuthenticatedUser: ComponentStory<typeof NewHeader>;
|
|
17
|
+
/**
|
|
18
|
+
* Mobile View story
|
|
19
|
+
*/
|
|
20
|
+
export declare const MobileView: ComponentStory<typeof NewHeader>;
|
|
21
|
+
/**
|
|
22
|
+
* CIMB Tenant story
|
|
23
|
+
*/
|
|
24
|
+
export declare const CIMBTenant: ComponentStory<typeof NewHeader>;
|
|
25
|
+
/**
|
|
26
|
+
* AmMetLife Tenant story
|
|
27
|
+
*/
|
|
28
|
+
export declare const AmMetLifeTenant: ComponentStory<typeof NewHeader>;
|
|
29
|
+
/**
|
|
30
|
+
* Minimal story - No navigation links
|
|
31
|
+
*/
|
|
32
|
+
export declare const MinimalHeader: ComponentStory<typeof NewHeader>;
|
|
33
|
+
/**
|
|
34
|
+
* Custom Drawer Content story
|
|
35
|
+
*/
|
|
36
|
+
export declare const CustomDrawerContent: ComponentStory<typeof NewHeader>;
|
|
37
|
+
/**
|
|
38
|
+
* Many Menu Items story - Testing overflow
|
|
39
|
+
*/
|
|
40
|
+
export declare const ManyMenuItems: ComponentStory<typeof NewHeader>;
|
|
41
|
+
/**
|
|
42
|
+
* Without Logo story - Edge case testing
|
|
43
|
+
*/
|
|
44
|
+
export declare const WithoutLogo: ComponentStory<typeof NewHeader>;
|
|
45
|
+
/**
|
|
46
|
+
* Internationalization story
|
|
47
|
+
*/
|
|
48
|
+
export declare const WithInternationalization: ComponentStory<typeof NewHeader>;
|
|
49
|
+
/**
|
|
50
|
+
* Interactive Demo story
|
|
51
|
+
*/
|
|
52
|
+
export declare const InteractiveDemo: ComponentStory<typeof NewHeader>;
|
|
53
|
+
/**
|
|
54
|
+
* All Tenants Comparison
|
|
55
|
+
*/
|
|
56
|
+
export declare const AllTenants: {
|
|
57
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
parameters: {
|
|
59
|
+
docs: {
|
|
60
|
+
description: {
|
|
61
|
+
story: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Responsive Demo story
|
|
68
|
+
*/
|
|
69
|
+
export declare const ResponsiveDemo: {
|
|
70
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
parameters: {
|
|
72
|
+
docs: {
|
|
73
|
+
description: {
|
|
74
|
+
story: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Kitchen Sink story - All features
|
|
81
|
+
*/
|
|
82
|
+
export declare const KitchenSink: ComponentStory<typeof NewHeader>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { OptionButton } from '../components/OptionButton';
|
|
3
|
+
declare const _default: ComponentMeta<typeof OptionButton>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof OptionButton>;
|
|
6
|
+
export declare const Selected: ComponentStory<typeof OptionButton>;
|
|
7
|
+
export declare const WithIcon: ComponentStory<typeof OptionButton>;
|
|
8
|
+
export declare const Disabled: ComponentStory<typeof OptionButton>;
|
|
9
|
+
export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MultipleOptions: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const WithCIMBTheme: ComponentStory<typeof OptionButton>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Selection Drawer Stories
|
|
3
|
+
*/
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
+
import { ProductSelectionDrawer } from '../components/ProductSelectionDrawer';
|
|
6
|
+
declare const meta: Meta<typeof ProductSelectionDrawer>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof ProductSelectionDrawer>;
|
|
9
|
+
/**
|
|
10
|
+
* Default story showing the product selection drawer
|
|
11
|
+
*/
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Story with custom text
|
|
15
|
+
*/
|
|
16
|
+
export declare const CustomText: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Story with fewer products
|
|
19
|
+
*/
|
|
20
|
+
export declare const TwoProducts: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Interactive story with button to open drawer
|
|
23
|
+
*/
|
|
24
|
+
export declare const Interactive: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { QuestionSection } from '../components/QuestionSection';
|
|
3
|
+
declare const _default: ComponentMeta<typeof QuestionSection>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof QuestionSection>;
|
|
6
|
+
export declare const WithSelection: ComponentStory<typeof QuestionSection>;
|
|
7
|
+
export declare const WithoutNumber: ComponentStory<typeof QuestionSection>;
|
|
8
|
+
export declare const MultipleSelection: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const WithCustomRenderer: ComponentStory<typeof QuestionSection>;
|
|
10
|
+
export declare const LongQuestion: ComponentStory<typeof QuestionSection>;
|
|
11
|
+
export declare const WithCIMBTheme: ComponentStory<typeof QuestionSection>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RecommendationsDrawer Storybook Stories
|
|
3
|
+
* Interactive testing for recommendations drawer and form components
|
|
4
|
+
*/
|
|
5
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
6
|
+
import { RecommendationsDrawer } from '../components/RecommendationsDrawer';
|
|
7
|
+
declare const _default: ComponentMeta<typeof RecommendationsDrawer>;
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: ComponentStory<typeof RecommendationsDrawer>;
|
|
10
|
+
export declare const CompleteQuestionnaire: {
|
|
11
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
story: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const SingleQuestion: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const WithBackButton: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const WithToggleGroup: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const OptionButtonsShowcase: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const CustomFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const WithoutFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const TravelInsuranceExample: {
|
|
27
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
parameters: {
|
|
29
|
+
docs: {
|
|
30
|
+
description: {
|
|
31
|
+
story: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const MobileViewport: ComponentStory<typeof RecommendationsDrawer>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { ToggleGroup } from '../components/ToggleGroup';
|
|
3
|
+
declare const _default: ComponentMeta<typeof ToggleGroup>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<typeof ToggleGroup>;
|
|
6
|
+
export declare const ThreeOptions: ComponentStory<typeof ToggleGroup>;
|
|
7
|
+
export declare const WithoutIcons: ComponentStory<typeof ToggleGroup>;
|
|
8
|
+
export declare const WithImageIcons: ComponentStory<typeof ToggleGroup>;
|
|
9
|
+
export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const WithCIMBTheme: ComponentStory<typeof ToggleGroup>;
|