@carbonplan/components 11.1.0 → 11.1.4

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.
@@ -1273,6 +1273,7 @@ const Header = ({
1273
1273
  width: [2]
1274
1274
  }, /*#__PURE__*/React.createElement(Box, {
1275
1275
  sx: {
1276
+ pointerEvents: 'all',
1276
1277
  display: 'block',
1277
1278
  width: 'fit-content'
1278
1279
  }
@@ -1323,10 +1324,12 @@ const Header = ({
1323
1324
  }
1324
1325
  }, /*#__PURE__*/React.createElement(Flex, {
1325
1326
  sx: {
1327
+ pointerEvents: 'all',
1326
1328
  justifyContent: 'flex-end'
1327
1329
  }
1328
- }, /*#__PURE__*/React.createElement(Flex, {
1330
+ }, /*#__PURE__*/React.createElement(Box, {
1329
1331
  sx: {
1332
+ display: [status ? 'none' : 'flex', 'flex', 'flex', 'flex'],
1330
1333
  mr: '18px',
1331
1334
  gap: '18px',
1332
1335
  opacity: expanded ? 0 : 1,
@@ -1336,6 +1339,7 @@ const Header = ({
1336
1339
  }
1337
1340
  }, menuItems), /*#__PURE__*/React.createElement(Menu, {
1338
1341
  sx: {
1342
+ flexShrink: 0,
1339
1343
  mr: ['-2px']
1340
1344
  },
1341
1345
  value: expanded,
@@ -2850,7 +2854,7 @@ const formatDateElement = (date, element, option) => {
2850
2854
  [element]: format
2851
2855
  });
2852
2856
 
2853
- if (format === 'numeric' && element === 'day') {
2857
+ if (format === 'numeric' && ['day', 'month'].includes(element)) {
2854
2858
  return result.padStart(2, '0');
2855
2859
  } else {
2856
2860
  return result;