@vention/machine-apps-components 1.31.6 → 1.31.8
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/index.esm.js +30 -7
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -6709,6 +6709,9 @@ const BottomNavBarItem = function BottomNavBarItem(props) {
|
|
|
6709
6709
|
const {
|
|
6710
6710
|
t
|
|
6711
6711
|
} = useI18n();
|
|
6712
|
+
const text = t(label, {
|
|
6713
|
+
defaultValue: label
|
|
6714
|
+
});
|
|
6712
6715
|
return jsxs(Button, {
|
|
6713
6716
|
disableRipple: true,
|
|
6714
6717
|
disabled: disabled,
|
|
@@ -6724,13 +6727,23 @@ const BottomNavBarItem = function BottomNavBarItem(props) {
|
|
|
6724
6727
|
width: 28,
|
|
6725
6728
|
height: 28,
|
|
6726
6729
|
children: icon
|
|
6727
|
-
}),
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6730
|
+
}), jsxs("span", {
|
|
6731
|
+
className: classes.label,
|
|
6732
|
+
children: [jsx(Typography, {
|
|
6733
|
+
variant: "hmiText20SemiBold",
|
|
6734
|
+
fontWeight: selected ? 600 : 500,
|
|
6735
|
+
noWrap: true,
|
|
6736
|
+
className: classes.labelText,
|
|
6737
|
+
children: text
|
|
6738
|
+
}), jsx(Typography, {
|
|
6739
|
+
variant: "hmiText20SemiBold",
|
|
6740
|
+
fontWeight: 600,
|
|
6741
|
+
noWrap: true,
|
|
6742
|
+
"aria-hidden": true,
|
|
6743
|
+
className: cx(classes.labelText, classes.labelWidthReserve),
|
|
6744
|
+
"data-testid": "bottom-nav-bar-item-label-width-reserve",
|
|
6745
|
+
children: text
|
|
6746
|
+
})]
|
|
6734
6747
|
})]
|
|
6735
6748
|
});
|
|
6736
6749
|
};
|
|
@@ -6762,6 +6775,16 @@ const useStyles$f = tss.create(({
|
|
|
6762
6775
|
disabled: {
|
|
6763
6776
|
opacity: 0.5,
|
|
6764
6777
|
cursor: "not-allowed"
|
|
6778
|
+
},
|
|
6779
|
+
label: {
|
|
6780
|
+
display: "grid",
|
|
6781
|
+
minWidth: 0
|
|
6782
|
+
},
|
|
6783
|
+
labelText: {
|
|
6784
|
+
gridArea: "1 / 1"
|
|
6785
|
+
},
|
|
6786
|
+
labelWidthReserve: {
|
|
6787
|
+
visibility: "hidden"
|
|
6765
6788
|
}
|
|
6766
6789
|
}));
|
|
6767
6790
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vention/machine-apps-components",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/VentionCo/machine-cloud.git"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react": "17.0.2",
|
|
23
23
|
"react-router-dom": "^6.0.0",
|
|
24
24
|
"@mui/material": "^5.0.0",
|
|
25
|
-
"@vention/machine-ui": "^6.
|
|
25
|
+
"@vention/machine-ui": "^6.9.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|
|
28
28
|
"type": "module",
|