igloo-d2c-components 1.0.16 → 1.0.18

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 CHANGED
@@ -1140,11 +1140,12 @@ const LogoContainer$1 = styled('div')(({ theme }) => ({
1140
1140
  display: 'flex',
1141
1141
  alignItems: 'center',
1142
1142
  cursor: 'pointer',
1143
- height: '32px',
1143
+ height: '16px',
1144
+ width: '116px',
1144
1145
  }));
1145
1146
  const LogoImage = styled('img')(({ theme }) => ({
1146
- height: '32px',
1147
- width: 'auto',
1147
+ height: '16px',
1148
+ width: '116px',
1148
1149
  objectFit: 'contain',
1149
1150
  }));
1150
1151
  const MenuIconButton = styled(IconButton)(({ theme }) => ({
@@ -1233,10 +1234,7 @@ function NewHeader({ logo: propLogo, navigationLinks = [], additionalMenuSection
1233
1234
  (_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);
1234
1235
  handleDrawerClose();
1235
1236
  };
1236
- return (jsxs(Fragment, { children: [jsx(StyledAppBar, Object.assign({ position: "fixed" }, { children: jsxs(StyledToolbar, Object.assign({ disableGutters: true }, { children: [jsx(LogoContainer$1, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(MenuIconButton, Object.assign({ size: "large", edge: "end", "aria-label": "menu", onClick: handleDrawerOpen }, { children: jsx(MenuIcon, {}) }))] })) })), jsx(StyledDrawer$2, Object.assign({ anchor: "right", open: drawerOpen, onClose: handleDrawerClose }, { children: customDrawerContent ? (jsx(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: customDrawerContent }))) : (jsxs(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: [jsxs(DrawerHeader$2, { children: [jsx(DrawerLogoContainer, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(CloseIconButton, Object.assign({ onClick: handleDrawerClose, "aria-label": "close" }, { children: jsx(CloseIcon, {}) }))] }), jsx(Divider, {}), jsxs(DrawerContent$2, { children: [navigationLinks.length > 0 && (jsx(List, { children: navigationLinks.map((item) => (jsx(ListItem, Object.assign({ disablePadding: true }, { children: jsx(ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsx(ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })), additionalMenuSections.map((section, index) => (jsxs(React.Fragment, { children: [section.title && (jsxs(Fragment, { children: [jsx(Divider, {}), jsx(Box, Object.assign({ sx: { px: 2, py: 1 } }, { children: jsx(ListItemText, { primary: formatMessage({ id: section.title }), primaryTypographyProps: {
1237
- variant: 'caption',
1238
- color: 'text.secondary',
1239
- } }) }))] })), jsx(List, { children: section.items.map((item) => (jsx(ListItem, Object.assign({ disablePadding: true }, { children: jsx(ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsx(ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })] }, index)))] })] }))) }))] }));
1237
+ return (jsxs(Fragment, { children: [jsx(StyledAppBar, Object.assign({ position: "fixed" }, { children: jsxs(StyledToolbar, Object.assign({ disableGutters: true }, { children: [jsx(LogoContainer$1, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(MenuIconButton, Object.assign({ size: "large", edge: "end", "aria-label": "menu", onClick: handleDrawerOpen }, { children: jsx(MenuIcon, {}) }))] })) })), jsx(StyledDrawer$2, Object.assign({ anchor: "right", open: drawerOpen, onClose: handleDrawerClose }, { children: customDrawerContent ? (jsx(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: customDrawerContent }))) : (jsxs(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: [jsxs(DrawerHeader$2, { children: [jsx(DrawerLogoContainer, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(CloseIconButton, Object.assign({ onClick: handleDrawerClose, "aria-label": "close" }, { children: jsx(CloseIcon, {}) }))] }), jsx(Divider, {}), jsx(DrawerContent$2, { children: navigationLinks.length > 0 && (jsx(List, { children: navigationLinks.map((item) => (jsx(ListItem, Object.assign({ disablePadding: true }, { children: jsx(ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsx(ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })) })] }))) }))] }));
1240
1238
  }
1241
1239
 
1242
1240
  const DivFooter = styled('div')(({ theme }) => ({
@@ -2727,7 +2725,7 @@ const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error,
2727
2725
  };
2728
2726
 
2729
2727
  const FormContainer$3 = styled(Box)({
2730
- padding: '0 16px 100px',
2728
+ padding: '0 16px 24px',
2731
2729
  });
2732
2730
  const CheckboxContainer$1 = styled(Box)({
2733
2731
  marginTop: '12px',
@@ -2767,7 +2765,7 @@ const PersonalInformationForm = ({ renderField, fields, consents, onSubmit, form
2767
2765
  };
2768
2766
 
2769
2767
  const FormContainer$2 = styled(Box)({
2770
- padding: '0 16px 100px',
2768
+ padding: '0 16px 24px',
2771
2769
  });
2772
2770
  const CheckboxContainer = styled(Box)({
2773
2771
  marginTop: '12px',
@@ -2840,7 +2838,7 @@ const ContactDetailsForm = ({ renderField, fields, mailingFields, mailingAddress
2840
2838
  };
2841
2839
 
2842
2840
  const FormContainer$1 = styled(Box)({
2843
- padding: '0 16px 100px',
2841
+ padding: '0 16px 24px',
2844
2842
  });
2845
2843
 
2846
2844
  const HealthInformationForm = ({ renderField, measurementFields, healthQuestions, onSubmit, formRef, sx, }) => {
@@ -2848,7 +2846,7 @@ const HealthInformationForm = ({ renderField, measurementFields, healthQuestions
2848
2846
  };
2849
2847
 
2850
2848
  const FormContainer = styled(Box)({
2851
- padding: '0 16px 100px',
2849
+ padding: '0 16px 24px',
2852
2850
  });
2853
2851
 
2854
2852
  const ChildInformationForm = ({ renderField, fields, onSubmit, formRef, sx, }) => {