igloo-d2c-components 1.0.25 → 1.0.26

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
@@ -2341,19 +2341,21 @@ const StyledOptionButton = styled(ButtonBase, {
2341
2341
  const colors = variantColors[colorVariant];
2342
2342
  return {
2343
2343
  height: heights[size],
2344
- // On desktop: auto width (inline), on mobile: full width
2344
+ // Allow flex to control width when in flex container, otherwise auto or full
2345
2345
  width: fullWidth ? '100%' : 'auto',
2346
+ minWidth: 0,
2346
2347
  borderRadius: '24px',
2347
2348
  border: selected
2348
2349
  ? '2px solid #0090DA'
2349
2350
  : `1px solid ${colors.unselectedBorder}`,
2350
2351
  backgroundColor: selected ? colors.selectedBg : colors.unselectedBg,
2351
- padding: '10px 24px',
2352
+ padding: '12px 24px',
2352
2353
  display: 'flex',
2353
2354
  alignItems: 'center',
2354
2355
  justifyContent: 'center',
2355
2356
  cursor: 'pointer',
2356
2357
  transition: 'all 0.2s ease',
2358
+ boxSizing: 'border-box',
2357
2359
  '&:hover': {
2358
2360
  backgroundColor: selected ? colors.selectedBg : colors.hoverBg,
2359
2361
  borderColor: selected ? '#0090DA' : colors.hoverBorder,
@@ -2386,12 +2388,12 @@ const OptionLabel = styled(Typography)(({ theme, selected, colorVariant = 'defau
2386
2388
  const colors = variantColors[colorVariant];
2387
2389
  return {
2388
2390
  fontWeight: selected ? 700 : 500,
2389
- fontSize: '16px',
2390
- lineHeight: '24px',
2391
+ fontSize: '14px',
2392
+ lineHeight: '20px',
2391
2393
  color: selected ? '#0090DA' : colors.unselectedText,
2392
2394
  textAlign: 'center',
2395
+ fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
2393
2396
  [theme.breakpoints.down('md')]: {
2394
- lineHeight: '20px',
2395
2397
  fontWeight: 500,
2396
2398
  },
2397
2399
  };
@@ -3255,18 +3257,22 @@ const CheckoutFormButton = ({ text = 'Next', disabled = false, onClick, fixed =
3255
3257
  const QuestionContainer = styled(Box)({
3256
3258
  display: 'flex',
3257
3259
  flexDirection: 'column',
3258
- gap: '8px',
3260
+ gap: '16px',
3259
3261
  });
3260
3262
  const QuestionText = styled(Typography)({
3261
- fontSize: '14px',
3263
+ fontSize: '16px',
3262
3264
  fontWeight: 400,
3263
3265
  color: '#13131B',
3264
- lineHeight: '20px',
3266
+ lineHeight: '24px',
3267
+ fontFamily: '"MetLifeCircular", "Montserrat", sans-serif',
3265
3268
  });
3266
3269
  const OptionsContainer = styled(Box)({
3267
3270
  display: 'flex',
3268
3271
  gap: '16px',
3269
- marginTop: '12px',
3272
+ // Make children fill equal width
3273
+ '& > *': {
3274
+ flex: 1,
3275
+ },
3270
3276
  });
3271
3277
  styled(Box)(({ selected }) => ({
3272
3278
  flex: 1,
@@ -3291,7 +3297,7 @@ styled(Typography)(({ selected }) => ({
3291
3297
  }));
3292
3298
 
3293
3299
  const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error, labels = { yes: 'Yes', no: 'No' }, sx, }) => {
3294
- return (jsxs(QuestionContainer, Object.assign({ sx: sx }, { children: [jsxs(QuestionText, { children: [questionNumber && `${questionNumber}. `, question] }), jsxs(OptionsContainer, { children: [jsx(OptionButton, { value: "yes", label: labels.yes || 'Yes', selected: value === 'yes', onClick: () => onChange('yes'), variant: "form" }), jsx(OptionButton, { value: "no", label: labels.no || 'No', selected: value === 'no', onClick: () => onChange('no'), variant: "form" })] }), error && (jsx(Typography, Object.assign({ sx: {
3300
+ return (jsxs(QuestionContainer, Object.assign({ sx: sx }, { children: [jsxs(QuestionText, { children: [questionNumber && `${questionNumber}. `, question] }), jsxs(OptionsContainer, { children: [jsx(OptionButton, { value: "yes", label: labels.yes || 'Yes', selected: value === 'yes', onClick: () => onChange('yes'), variant: "form", size: "large" }), jsx(OptionButton, { value: "no", label: labels.no || 'No', selected: value === 'no', onClick: () => onChange('no'), variant: "form", size: "large" })] }), error && (jsx(Typography, Object.assign({ sx: {
3295
3301
  color: 'error.main',
3296
3302
  fontSize: '12px',
3297
3303
  mt: 0.5,