igloo-d2c-components 1.0.25 → 1.0.27
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 +18 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +18 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -929,8 +929,8 @@ const LogoContainer$2 = styles.styled(material.Box)({
|
|
|
929
929
|
* Width: 126px, height: 16px (per Figma)
|
|
930
930
|
*/
|
|
931
931
|
const LogoImage$1 = styles.styled('img')({
|
|
932
|
-
width: '
|
|
933
|
-
height: '
|
|
932
|
+
width: '94px',
|
|
933
|
+
height: '32px',
|
|
934
934
|
objectFit: 'contain',
|
|
935
935
|
});
|
|
936
936
|
/**
|
|
@@ -2361,19 +2361,21 @@ const StyledOptionButton = styles.styled(material.ButtonBase, {
|
|
|
2361
2361
|
const colors = variantColors[colorVariant];
|
|
2362
2362
|
return {
|
|
2363
2363
|
height: heights[size],
|
|
2364
|
-
//
|
|
2364
|
+
// Allow flex to control width when in flex container, otherwise auto or full
|
|
2365
2365
|
width: fullWidth ? '100%' : 'auto',
|
|
2366
|
+
minWidth: 0,
|
|
2366
2367
|
borderRadius: '24px',
|
|
2367
2368
|
border: selected
|
|
2368
2369
|
? '2px solid #0090DA'
|
|
2369
2370
|
: `1px solid ${colors.unselectedBorder}`,
|
|
2370
2371
|
backgroundColor: selected ? colors.selectedBg : colors.unselectedBg,
|
|
2371
|
-
padding: '
|
|
2372
|
+
padding: '12px 24px',
|
|
2372
2373
|
display: 'flex',
|
|
2373
2374
|
alignItems: 'center',
|
|
2374
2375
|
justifyContent: 'center',
|
|
2375
2376
|
cursor: 'pointer',
|
|
2376
2377
|
transition: 'all 0.2s ease',
|
|
2378
|
+
boxSizing: 'border-box',
|
|
2377
2379
|
'&:hover': {
|
|
2378
2380
|
backgroundColor: selected ? colors.selectedBg : colors.hoverBg,
|
|
2379
2381
|
borderColor: selected ? '#0090DA' : colors.hoverBorder,
|
|
@@ -2406,12 +2408,12 @@ const OptionLabel = styles.styled(material.Typography)(({ theme, selected, color
|
|
|
2406
2408
|
const colors = variantColors[colorVariant];
|
|
2407
2409
|
return {
|
|
2408
2410
|
fontWeight: selected ? 700 : 500,
|
|
2409
|
-
fontSize: '
|
|
2410
|
-
lineHeight: '
|
|
2411
|
+
fontSize: '14px',
|
|
2412
|
+
lineHeight: '20px',
|
|
2411
2413
|
color: selected ? '#0090DA' : colors.unselectedText,
|
|
2412
2414
|
textAlign: 'center',
|
|
2415
|
+
fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
|
|
2413
2416
|
[theme.breakpoints.down('md')]: {
|
|
2414
|
-
lineHeight: '20px',
|
|
2415
2417
|
fontWeight: 500,
|
|
2416
2418
|
},
|
|
2417
2419
|
};
|
|
@@ -3275,18 +3277,22 @@ const CheckoutFormButton = ({ text = 'Next', disabled = false, onClick, fixed =
|
|
|
3275
3277
|
const QuestionContainer = styles.styled(material.Box)({
|
|
3276
3278
|
display: 'flex',
|
|
3277
3279
|
flexDirection: 'column',
|
|
3278
|
-
gap: '
|
|
3280
|
+
gap: '16px',
|
|
3279
3281
|
});
|
|
3280
3282
|
const QuestionText = styles.styled(material.Typography)({
|
|
3281
|
-
fontSize: '
|
|
3283
|
+
fontSize: '16px',
|
|
3282
3284
|
fontWeight: 400,
|
|
3283
3285
|
color: '#13131B',
|
|
3284
|
-
lineHeight: '
|
|
3286
|
+
lineHeight: '24px',
|
|
3287
|
+
fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
|
|
3285
3288
|
});
|
|
3286
3289
|
const OptionsContainer = styles.styled(material.Box)({
|
|
3287
3290
|
display: 'flex',
|
|
3288
3291
|
gap: '16px',
|
|
3289
|
-
|
|
3292
|
+
// Make children fill equal width
|
|
3293
|
+
'& > *': {
|
|
3294
|
+
flex: 1,
|
|
3295
|
+
},
|
|
3290
3296
|
});
|
|
3291
3297
|
styles.styled(material.Box)(({ selected }) => ({
|
|
3292
3298
|
flex: 1,
|
|
@@ -3311,7 +3317,7 @@ styles.styled(material.Typography)(({ selected }) => ({
|
|
|
3311
3317
|
}));
|
|
3312
3318
|
|
|
3313
3319
|
const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error, labels = { yes: 'Yes', no: 'No' }, sx, }) => {
|
|
3314
|
-
return (jsxRuntime.jsxs(QuestionContainer, Object.assign({ sx: sx }, { children: [jsxRuntime.jsxs(QuestionText, { children: [questionNumber && `${questionNumber}. `, question] }), jsxRuntime.jsxs(OptionsContainer, { children: [jsxRuntime.jsx(OptionButton, { value: "yes", label: labels.yes || 'Yes', selected: value === 'yes', onClick: () => onChange('yes'), variant: "form" }), jsxRuntime.jsx(OptionButton, { value: "no", label: labels.no || 'No', selected: value === 'no', onClick: () => onChange('no'), variant: "form" })] }), error && (jsxRuntime.jsx(material.Typography, Object.assign({ sx: {
|
|
3320
|
+
return (jsxRuntime.jsxs(QuestionContainer, Object.assign({ sx: sx }, { children: [jsxRuntime.jsxs(QuestionText, { children: [questionNumber && `${questionNumber}. `, question] }), jsxRuntime.jsxs(OptionsContainer, { children: [jsxRuntime.jsx(OptionButton, { value: "yes", label: labels.yes || 'Yes', selected: value === 'yes', onClick: () => onChange('yes'), variant: "form", size: "large" }), jsxRuntime.jsx(OptionButton, { value: "no", label: labels.no || 'No', selected: value === 'no', onClick: () => onChange('no'), variant: "form", size: "large" })] }), error && (jsxRuntime.jsx(material.Typography, Object.assign({ sx: {
|
|
3315
3321
|
color: 'error.main',
|
|
3316
3322
|
fontSize: '12px',
|
|
3317
3323
|
mt: 0.5,
|