igloo-d2c-components 1.0.36 → 1.0.38

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.
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { SxProps, Theme } from '@mui/material';
6
6
  import * as React from 'react';
7
+ import { HealthQuestionOptionButtonProps } from '../HealthQuestionGroup';
7
8
  export interface HealthInformationField {
8
9
  name: string;
9
10
  label: string;
@@ -82,5 +83,10 @@ export interface HealthInformationFormProps {
82
83
  * Enable desktop grid layout (2 columns for measurements, max-width 938px)
83
84
  */
84
85
  desktopGridLayout?: boolean;
86
+ /**
87
+ * Custom OptionButton component (e.g. from sales-portal) for health Yes/No options.
88
+ * When provided, uses this instead of the default library OptionButton.
89
+ */
90
+ OptionButtonComponent?: React.ComponentType<HealthQuestionOptionButtonProps>;
85
91
  }
86
92
  export declare const HealthInformationForm: React.FC<HealthInformationFormProps>;
@@ -4,6 +4,14 @@
4
4
  */
5
5
  import { SxProps, Theme } from '@mui/material';
6
6
  import * as React from 'react';
7
+ /** Props for custom option button component (e.g. OptionButton from sales-portal) */
8
+ export interface HealthQuestionOptionButtonProps {
9
+ variant?: string;
10
+ selected: boolean;
11
+ onClick: () => void;
12
+ children: React.ReactNode;
13
+ fullWidth?: boolean;
14
+ }
7
15
  export interface HealthQuestionGroupProps {
8
16
  /**
9
17
  * Question text
@@ -37,5 +45,10 @@ export interface HealthQuestionGroupProps {
37
45
  * Optional custom styles
38
46
  */
39
47
  sx?: SxProps<Theme>;
48
+ /**
49
+ * Custom OptionButton component (e.g. from sales-portal) for Yes/No options.
50
+ * When provided, uses this instead of the default library OptionButton.
51
+ */
52
+ OptionButtonComponent?: React.ComponentType<HealthQuestionOptionButtonProps>;
40
53
  }
41
54
  export declare const HealthQuestionGroup: React.FC<HealthQuestionGroupProps>;
@@ -1,2 +1,2 @@
1
1
  export { HealthQuestionGroup } from './HealthQuestionGroup';
2
- export type { HealthQuestionGroupProps } from './HealthQuestionGroup';
2
+ export type { HealthQuestionGroupProps, HealthQuestionOptionButtonProps, } from './HealthQuestionGroup';
@@ -10,9 +10,13 @@ export interface NewHeaderNavigationLink {
10
10
  }
11
11
  export interface NewHeaderProps {
12
12
  /**
13
- * Logo image source (required)
13
+ * Logo image source (e.g. from CMS site-headers partnerLogoUrl)
14
14
  */
15
15
  logo?: string;
16
+ /**
17
+ * Alt text for logo (e.g. from CMS site-headers logoAltText)
18
+ */
19
+ logoAltText?: string;
16
20
  /**
17
21
  * Navigation links for menu
18
22
  */
@@ -57,4 +61,4 @@ export interface NewHeaderProps {
57
61
  * />
58
62
  * ```
59
63
  */
60
- export declare function NewHeader({ logo: propLogo, navigationLinks, isMobile: propIsMobile, onLogoClick, onMenuOpen, onMenuClose, customDrawerContent, formatMessage, }: NewHeaderProps): import("react/jsx-runtime").JSX.Element;
64
+ export declare function NewHeader({ logo: propLogo, logoAltText, navigationLinks, isMobile: propIsMobile, onLogoClick, onMenuOpen, onMenuClose, customDrawerContent, formatMessage, }: NewHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -59,14 +59,10 @@ export interface ProductSelectionDrawerProps {
59
59
  * Optional subtitle text
60
60
  */
61
61
  subtitle?: string;
62
- /**
63
- * Optional custom text for the view plans button
64
- */
65
- viewPlansButtonText?: string;
66
62
  /**
67
63
  * Variant: 'drawer' for mobile bottom sheet, 'dialog' for desktop modal
68
64
  * @default 'drawer'
69
65
  */
70
66
  variant?: 'drawer' | 'dialog';
71
67
  }
72
- export declare function ProductSelectionDrawer({ open, onClose, products, onProductSelect, title, subtitle, viewPlansButtonText, variant, }: ProductSelectionDrawerProps): import("react/jsx-runtime").JSX.Element;
68
+ export declare function ProductSelectionDrawer({ open, onClose, products, onProductSelect, title, subtitle, variant, }: ProductSelectionDrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -48,7 +48,7 @@ export type { CheckoutHeaderProps } from './components/CheckoutHeader';
48
48
  export { CheckoutFormButton } from './components/CheckoutFormButton';
49
49
  export type { CheckoutFormButtonProps } from './components/CheckoutFormButton';
50
50
  export { HealthQuestionGroup } from './components/HealthQuestionGroup';
51
- export type { HealthQuestionGroupProps } from './components/HealthQuestionGroup';
51
+ export type { HealthQuestionGroupProps, HealthQuestionOptionButtonProps, } from './components/HealthQuestionGroup';
52
52
  export { PersonalInformationForm } from './components/PersonalInformationForm';
53
53
  export type { PersonalInformationField, PersonalInformationFormProps } from './components/PersonalInformationForm';
54
54
  export { ContactDetailsForm } from './components/ContactDetailsForm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igloo-d2c-components",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "Reusable component library with tenant-aware theming for B2C applications",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",