@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 +6 -2
- package/dst/index.esm.js.map +1 -1
- package/dst/index.js +6 -2
- package/dst/index.js.map +1 -1
- package/dst/index.modern.js +6 -2
- package/dst/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dst/index.modern.js
CHANGED
|
@@ -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(
|
|
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' &&
|
|
2857
|
+
if (format === 'numeric' && ['day', 'month'].includes(element)) {
|
|
2854
2858
|
return result.padStart(2, '0');
|
|
2855
2859
|
} else {
|
|
2856
2860
|
return result;
|