igloo-d2c-components 1.0.30 → 1.0.31
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/cjs/index.js +137 -148
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +137 -148
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/BenefitsSummary/styled.d.ts +3 -3
- package/dist/types/components/BillingToggle/styled.d.ts +6 -5
- package/dist/types/components/CheckoutFormButton/CheckoutFormButton.d.ts +2 -1
- package/dist/types/components/CheckoutHeader/styled.d.ts +2 -2
- package/dist/types/components/CheckoutProgress/styled.d.ts +1 -1
- package/dist/types/components/ChildInformationForm/ChildInformationForm.d.ts +7 -6
- package/dist/types/components/ContactDetailsForm/ContactDetailsForm.d.ts +7 -6
- package/dist/types/components/ContactDetailsForm/styled.d.ts +2 -2
- package/dist/types/components/CoverageAmountSlider/styled.d.ts +25 -24
- package/dist/types/components/DesktopHeaderMenuBar/styled.d.ts +1 -1
- package/dist/types/components/FAQAccordion/styled.d.ts +2 -2
- package/dist/types/components/Footer/styled.d.ts +2 -2
- package/dist/types/components/Header/Header.d.ts +1 -1
- package/dist/types/components/Header/styled.d.ts +7 -7
- package/dist/types/components/HealthInformationForm/HealthInformationForm.d.ts +6 -5
- package/dist/types/components/HealthQuestionGroup/HealthQuestionGroup.d.ts +2 -1
- package/dist/types/components/HealthQuestionGroup/styled.d.ts +2 -2
- package/dist/types/components/InfoCallout/styled.d.ts +8 -7
- package/dist/types/components/NewHeader/NewHeader.d.ts +1 -1
- package/dist/types/components/OptionButton/styled.d.ts +1 -1
- package/dist/types/components/PersonalInformationForm/PersonalInformationForm.d.ts +7 -6
- package/dist/types/components/PersonalInformationForm/styled.d.ts +1 -1
- package/dist/types/components/ProductCard/ProductCard.d.ts +2 -1
- package/dist/types/components/ProductCard/styled.d.ts +4 -4
- package/dist/types/components/ProductSelectionDrawer/styled.d.ts +4 -4
- package/dist/types/components/QuestionSection/QuestionSection.d.ts +1 -1
- package/dist/types/components/QuestionSection/styled.d.ts +2 -2
- package/dist/types/components/RecommendationsDrawer/styled.d.ts +2 -2
- package/dist/types/components/ToggleGroup/styled.d.ts +1 -1
- package/dist/types/themes/typography.d.ts +1 -1
- package/dist/types/types/tenant.d.ts +42 -20
- package/dist/types/utils/theme.d.ts +3 -1
- package/package.json +1 -1
|
@@ -20,10 +20,10 @@ export declare const CategoryIcon: import("@emotion/styled").StyledComponent<imp
|
|
|
20
20
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
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
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" | "
|
|
23
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "letterSpacing" | "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" | "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
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
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" | "
|
|
26
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "letterSpacing" | "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" | "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
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
28
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
29
29
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -12,6 +12,6 @@ export declare const ToggleIcon: import("@emotion/styled").StyledComponent<impor
|
|
|
12
12
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
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
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" | "
|
|
15
|
+
}, "fontFamily" | "children" | "p" | "style" | "fontSize" | "fontStyle" | "fontWeight" | "lineHeight" | "letterSpacing" | "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" | "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
16
|
selected?: boolean | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -46,7 +46,7 @@ export interface TenantTypographyConfig {
|
|
|
46
46
|
bodyMedium?: TypographyVariant;
|
|
47
47
|
bodySmall?: TypographyVariant;
|
|
48
48
|
smallText?: TypographyVariant;
|
|
49
|
-
[key: string]:
|
|
49
|
+
[key: string]: string | number | TypographyVariant | undefined;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Igloo Typography Configuration
|
|
@@ -3,32 +3,54 @@
|
|
|
3
3
|
* These interfaces define the structure for tenant-specific theming
|
|
4
4
|
*/
|
|
5
5
|
export interface ColorShade {
|
|
6
|
-
|
|
6
|
+
dim?: string;
|
|
7
7
|
dark?: string;
|
|
8
|
+
main: string;
|
|
8
9
|
light?: string;
|
|
9
10
|
bright?: string;
|
|
10
11
|
plain?: string;
|
|
11
12
|
border?: string;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
granite?: string;
|
|
14
|
+
contrastText?: string;
|
|
14
15
|
lighter?: string;
|
|
15
16
|
darkAI?: string;
|
|
16
17
|
buttonBg?: string;
|
|
17
|
-
|
|
18
|
+
mediumBright?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UIColors {
|
|
21
|
+
sliderActive?: string;
|
|
22
|
+
sliderInactive?: string;
|
|
23
|
+
sliderBackground?: string;
|
|
24
|
+
toggleActive?: string;
|
|
25
|
+
toggleActiveText?: string;
|
|
26
|
+
toggleInactiveText?: string;
|
|
27
|
+
calloutBackground?: string;
|
|
28
|
+
calloutBorder?: string;
|
|
29
|
+
inputBackground?: string;
|
|
30
|
+
inputBorder?: string;
|
|
18
31
|
}
|
|
19
32
|
export interface TenantPalette {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
secondary?: ColorShade;
|
|
33
|
+
primary: ColorShade;
|
|
34
|
+
secondary: ColorShade;
|
|
23
35
|
tertiary?: ColorShade;
|
|
24
36
|
natural?: ColorShade;
|
|
37
|
+
ui?: UIColors;
|
|
25
38
|
motor?: ColorShade;
|
|
26
39
|
car?: ColorShade;
|
|
27
40
|
travel?: ColorShade;
|
|
28
41
|
health?: ColorShade;
|
|
29
42
|
life?: ColorShade;
|
|
30
43
|
pet?: ColorShade;
|
|
31
|
-
|
|
44
|
+
paCimb?: ColorShade;
|
|
45
|
+
[key: string]: ColorShade | UIColors | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface TypographyVariantStyle {
|
|
48
|
+
fontSize?: string;
|
|
49
|
+
fontStyle?: string;
|
|
50
|
+
fontWeight?: number | string;
|
|
51
|
+
lineHeight?: string;
|
|
52
|
+
wordSpacing?: string;
|
|
53
|
+
letterSpacing?: string | number;
|
|
32
54
|
}
|
|
33
55
|
export interface TenantTypography {
|
|
34
56
|
fontFamily?: string;
|
|
@@ -38,18 +60,18 @@ export interface TenantTypography {
|
|
|
38
60
|
fontWeightBold?: number;
|
|
39
61
|
fontWeightExtraBold?: number;
|
|
40
62
|
fontWeightExtraBlack?: number;
|
|
41
|
-
h1?:
|
|
42
|
-
h2?:
|
|
43
|
-
h3?:
|
|
44
|
-
h4?:
|
|
45
|
-
bodyStrongLarge?:
|
|
46
|
-
bodyStrongMedium?:
|
|
47
|
-
bodyStrongSmall?:
|
|
48
|
-
bodyLarge?:
|
|
49
|
-
bodyMedium?:
|
|
50
|
-
bodySmall?:
|
|
51
|
-
smallText?:
|
|
52
|
-
[key: string]:
|
|
63
|
+
h1?: TypographyVariantStyle;
|
|
64
|
+
h2?: TypographyVariantStyle;
|
|
65
|
+
h3?: TypographyVariantStyle;
|
|
66
|
+
h4?: TypographyVariantStyle;
|
|
67
|
+
bodyStrongLarge?: TypographyVariantStyle;
|
|
68
|
+
bodyStrongMedium?: TypographyVariantStyle;
|
|
69
|
+
bodyStrongSmall?: TypographyVariantStyle;
|
|
70
|
+
bodyLarge?: TypographyVariantStyle;
|
|
71
|
+
bodyMedium?: TypographyVariantStyle;
|
|
72
|
+
bodySmall?: TypographyVariantStyle;
|
|
73
|
+
smallText?: TypographyVariantStyle;
|
|
74
|
+
[key: string]: string | number | TypographyVariantStyle | undefined;
|
|
53
75
|
}
|
|
54
76
|
export interface TenantThemeConfig {
|
|
55
77
|
palette: TenantPalette;
|
|
@@ -19,7 +19,9 @@ export declare function getThemeColor(theme: TenantThemeConfig | undefined | nul
|
|
|
19
19
|
* @param tenantTheme - Tenant-specific theme configuration
|
|
20
20
|
* @returns Merged theme
|
|
21
21
|
*/
|
|
22
|
-
export declare function mergeTenantTheme(baseTheme: Partial<Theme>, tenantTheme: TenantThemeConfig):
|
|
22
|
+
export declare function mergeTenantTheme(baseTheme: Partial<Theme>, tenantTheme: TenantThemeConfig): Theme & {
|
|
23
|
+
tenantTheme: TenantThemeConfig;
|
|
24
|
+
};
|
|
23
25
|
/**
|
|
24
26
|
* Create CSS variables from tenant theme
|
|
25
27
|
* Useful for using theme values in CSS
|
package/package.json
CHANGED