@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.
package/dst/index.esm.js CHANGED
@@ -1309,6 +1309,7 @@ var Header = function Header(_ref3) {
1309
1309
  width: [2]
1310
1310
  }, /*#__PURE__*/React.createElement(Box, {
1311
1311
  sx: {
1312
+ pointerEvents: 'all',
1312
1313
  display: 'block',
1313
1314
  width: 'fit-content'
1314
1315
  }
@@ -1359,10 +1360,12 @@ var Header = function Header(_ref3) {
1359
1360
  }
1360
1361
  }, /*#__PURE__*/React.createElement(Flex, {
1361
1362
  sx: {
1363
+ pointerEvents: 'all',
1362
1364
  justifyContent: 'flex-end'
1363
1365
  }
1364
- }, /*#__PURE__*/React.createElement(Flex, {
1366
+ }, /*#__PURE__*/React.createElement(Box, {
1365
1367
  sx: {
1368
+ display: [status ? 'none' : 'flex', 'flex', 'flex', 'flex'],
1366
1369
  mr: '18px',
1367
1370
  gap: '18px',
1368
1371
  opacity: expanded ? 0 : 1,
@@ -1372,6 +1375,7 @@ var Header = function Header(_ref3) {
1372
1375
  }
1373
1376
  }, menuItems), /*#__PURE__*/React.createElement(Menu, {
1374
1377
  sx: {
1378
+ flexShrink: 0,
1375
1379
  mr: ['-2px']
1376
1380
  },
1377
1381
  value: expanded,
@@ -2897,7 +2901,7 @@ var formatDateElement = function formatDateElement(date, element, option) {
2897
2901
  var format = typeof option === 'string' ? option : defaultOptions[element];
2898
2902
  var result = date.toLocaleString('default', (_date$toLocaleString = {}, _date$toLocaleString[element] = format, _date$toLocaleString));
2899
2903
 
2900
- if (format === 'numeric' && element === 'day') {
2904
+ if (format === 'numeric' && ['day', 'month'].includes(element)) {
2901
2905
  return result.padStart(2, '0');
2902
2906
  } else {
2903
2907
  return result;