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/cjs/index.js CHANGED
@@ -1160,11 +1160,12 @@ const LogoContainer$1 = styles.styled('div')(({ theme }) => ({
1160
1160
  display: 'flex',
1161
1161
  alignItems: 'center',
1162
1162
  cursor: 'pointer',
1163
- height: '32px',
1163
+ height: '16px',
1164
+ width: '116px',
1164
1165
  }));
1165
1166
  const LogoImage = styles.styled('img')(({ theme }) => ({
1166
- height: '32px',
1167
- width: 'auto',
1167
+ height: '16px',
1168
+ width: '116px',
1168
1169
  objectFit: 'contain',
1169
1170
  }));
1170
1171
  const MenuIconButton = styles.styled(material.IconButton)(({ theme }) => ({
@@ -1253,10 +1254,7 @@ function NewHeader({ logo: propLogo, navigationLinks = [], additionalMenuSection
1253
1254
  (_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);
1254
1255
  handleDrawerClose();
1255
1256
  };
1256
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(StyledAppBar, Object.assign({ position: "fixed" }, { children: jsxRuntime.jsxs(StyledToolbar, Object.assign({ disableGutters: true }, { children: [jsxRuntime.jsx(LogoContainer$1, Object.assign({ onClick: handleLogoClick }, { children: jsxRuntime.jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsxRuntime.jsx(MenuIconButton, Object.assign({ size: "large", edge: "end", "aria-label": "menu", onClick: handleDrawerOpen }, { children: jsxRuntime.jsx(MenuIcon, {}) }))] })) })), jsxRuntime.jsx(StyledDrawer$2, Object.assign({ anchor: "right", open: drawerOpen, onClose: handleDrawerClose }, { children: customDrawerContent ? (jsxRuntime.jsx(material.Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: customDrawerContent }))) : (jsxRuntime.jsxs(material.Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: [jsxRuntime.jsxs(DrawerHeader$2, { children: [jsxRuntime.jsx(DrawerLogoContainer, Object.assign({ onClick: handleLogoClick }, { children: jsxRuntime.jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsxRuntime.jsx(CloseIconButton, Object.assign({ onClick: handleDrawerClose, "aria-label": "close" }, { children: jsxRuntime.jsx(CloseIcon, {}) }))] }), jsxRuntime.jsx(material.Divider, {}), jsxRuntime.jsxs(DrawerContent$2, { children: [navigationLinks.length > 0 && (jsxRuntime.jsx(material.List, { children: navigationLinks.map((item) => (jsxRuntime.jsx(material.ListItem, Object.assign({ disablePadding: true }, { children: jsxRuntime.jsx(material.ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsxRuntime.jsx(material.ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })), additionalMenuSections.map((section, index) => (jsxRuntime.jsxs(React__namespace.Fragment, { children: [section.title && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(material.Divider, {}), jsxRuntime.jsx(material.Box, Object.assign({ sx: { px: 2, py: 1 } }, { children: jsxRuntime.jsx(material.ListItemText, { primary: formatMessage({ id: section.title }), primaryTypographyProps: {
1257
- variant: 'caption',
1258
- color: 'text.secondary',
1259
- } }) }))] })), jsxRuntime.jsx(material.List, { children: section.items.map((item) => (jsxRuntime.jsx(material.ListItem, Object.assign({ disablePadding: true }, { children: jsxRuntime.jsx(material.ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsxRuntime.jsx(material.ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })] }, index)))] })] }))) }))] }));
1257
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(StyledAppBar, Object.assign({ position: "fixed" }, { children: jsxRuntime.jsxs(StyledToolbar, Object.assign({ disableGutters: true }, { children: [jsxRuntime.jsx(LogoContainer$1, Object.assign({ onClick: handleLogoClick }, { children: jsxRuntime.jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsxRuntime.jsx(MenuIconButton, Object.assign({ size: "large", edge: "end", "aria-label": "menu", onClick: handleDrawerOpen }, { children: jsxRuntime.jsx(MenuIcon, {}) }))] })) })), jsxRuntime.jsx(StyledDrawer$2, Object.assign({ anchor: "right", open: drawerOpen, onClose: handleDrawerClose }, { children: customDrawerContent ? (jsxRuntime.jsx(material.Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: customDrawerContent }))) : (jsxRuntime.jsxs(material.Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: [jsxRuntime.jsxs(DrawerHeader$2, { children: [jsxRuntime.jsx(DrawerLogoContainer, Object.assign({ onClick: handleLogoClick }, { children: jsxRuntime.jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsxRuntime.jsx(CloseIconButton, Object.assign({ onClick: handleDrawerClose, "aria-label": "close" }, { children: jsxRuntime.jsx(CloseIcon, {}) }))] }), jsxRuntime.jsx(material.Divider, {}), jsxRuntime.jsx(DrawerContent$2, { children: navigationLinks.length > 0 && (jsxRuntime.jsx(material.List, { children: navigationLinks.map((item) => (jsxRuntime.jsx(material.ListItem, Object.assign({ disablePadding: true }, { children: jsxRuntime.jsx(material.ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsxRuntime.jsx(material.ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })) })] }))) }))] }));
1260
1258
  }
1261
1259
 
1262
1260
  const DivFooter = styles.styled('div')(({ theme }) => ({
@@ -2747,7 +2745,7 @@ const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error,
2747
2745
  };
2748
2746
 
2749
2747
  const FormContainer$3 = styles.styled(material.Box)({
2750
- padding: '0 16px 100px',
2748
+ padding: '0 16px 24px',
2751
2749
  });
2752
2750
  const CheckboxContainer$1 = styles.styled(material.Box)({
2753
2751
  marginTop: '12px',
@@ -2787,7 +2785,7 @@ const PersonalInformationForm = ({ renderField, fields, consents, onSubmit, form
2787
2785
  };
2788
2786
 
2789
2787
  const FormContainer$2 = styles.styled(material.Box)({
2790
- padding: '0 16px 100px',
2788
+ padding: '0 16px 24px',
2791
2789
  });
2792
2790
  const CheckboxContainer = styles.styled(material.Box)({
2793
2791
  marginTop: '12px',
@@ -2860,7 +2858,7 @@ const ContactDetailsForm = ({ renderField, fields, mailingFields, mailingAddress
2860
2858
  };
2861
2859
 
2862
2860
  const FormContainer$1 = styles.styled(material.Box)({
2863
- padding: '0 16px 100px',
2861
+ padding: '0 16px 24px',
2864
2862
  });
2865
2863
 
2866
2864
  const HealthInformationForm = ({ renderField, measurementFields, healthQuestions, onSubmit, formRef, sx, }) => {
@@ -2868,7 +2866,7 @@ const HealthInformationForm = ({ renderField, measurementFields, healthQuestions
2868
2866
  };
2869
2867
 
2870
2868
  const FormContainer = styles.styled(material.Box)({
2871
- padding: '0 16px 100px',
2869
+ padding: '0 16px 24px',
2872
2870
  });
2873
2871
 
2874
2872
  const ChildInformationForm = ({ renderField, fields, onSubmit, formRef, sx, }) => {