@vention/machine-ui 4.0.0 → 4.1.1
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 +27 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -8148,7 +8148,8 @@ const useStyles$m = tss.withNestedSelectors().create(({
|
|
|
8148
8148
|
}) => {
|
|
8149
8149
|
return {
|
|
8150
8150
|
root: {
|
|
8151
|
-
width: "
|
|
8151
|
+
width: "100%",
|
|
8152
|
+
minWidth: 0,
|
|
8152
8153
|
height: theme.spacing(11),
|
|
8153
8154
|
display: "flex",
|
|
8154
8155
|
justifyContent: "center",
|
|
@@ -8157,11 +8158,13 @@ const useStyles$m = tss.withNestedSelectors().create(({
|
|
|
8157
8158
|
},
|
|
8158
8159
|
inputPaper: {
|
|
8159
8160
|
display: "flex",
|
|
8161
|
+
minWidth: 0,
|
|
8162
|
+
overflow: "visible",
|
|
8160
8163
|
height: `calc(${theme.spacing(11)} - 4px)`,
|
|
8161
8164
|
justifyContent: "space-between",
|
|
8162
8165
|
alignItems: "center",
|
|
8163
8166
|
gap: theme.spacing(5),
|
|
8164
|
-
flex: 1,
|
|
8167
|
+
flex: "1 1 0%",
|
|
8165
8168
|
borderRadius: 0,
|
|
8166
8169
|
border: `2px solid ${theme.palette.misc.stepper.border}`,
|
|
8167
8170
|
padding: `0 ${theme.spacing(4)}`,
|
|
@@ -8176,9 +8179,12 @@ const useStyles$m = tss.withNestedSelectors().create(({
|
|
|
8176
8179
|
color: theme.palette.misc.stepper.text
|
|
8177
8180
|
},
|
|
8178
8181
|
value: {
|
|
8179
|
-
flex: "1 1",
|
|
8182
|
+
flex: "1 1 0%",
|
|
8183
|
+
minWidth: 0,
|
|
8180
8184
|
textAlign: "center",
|
|
8181
|
-
|
|
8185
|
+
whiteSpace: "nowrap",
|
|
8186
|
+
overflow: "visible",
|
|
8187
|
+
fontVariantNumeric: "tabular-nums",
|
|
8182
8188
|
color: theme.palette.misc.stepper.text
|
|
8183
8189
|
},
|
|
8184
8190
|
buttonStep: {
|
|
@@ -8506,9 +8512,13 @@ const VentionSwitch = props => {
|
|
|
8506
8512
|
}
|
|
8507
8513
|
};
|
|
8508
8514
|
return jsxs("div", {
|
|
8515
|
+
role: "switch",
|
|
8516
|
+
"aria-busy": checked === "loading" ? true : undefined,
|
|
8517
|
+
"aria-checked": getAriaChecked(checked),
|
|
8518
|
+
"aria-disabled": disabled ? true : undefined,
|
|
8509
8519
|
className: classes.root,
|
|
8510
|
-
onClick: handleOnchange,
|
|
8511
8520
|
"data-testid": "vention-switch-root",
|
|
8521
|
+
onClick: handleOnchange,
|
|
8512
8522
|
children: [checked === "mixed" ? jsx(IconMinus, {
|
|
8513
8523
|
"data-testid": "vention-switch-minus",
|
|
8514
8524
|
className: classes.iconMinus
|
|
@@ -8671,6 +8681,18 @@ function getRootBorderColor(theme, checked) {
|
|
|
8671
8681
|
return theme.palette.icon.tertiary;
|
|
8672
8682
|
}
|
|
8673
8683
|
}
|
|
8684
|
+
function getAriaChecked(checked) {
|
|
8685
|
+
switch (checked) {
|
|
8686
|
+
case "on":
|
|
8687
|
+
return true;
|
|
8688
|
+
case "off":
|
|
8689
|
+
return false;
|
|
8690
|
+
case "mixed":
|
|
8691
|
+
return "mixed";
|
|
8692
|
+
case "loading":
|
|
8693
|
+
return false;
|
|
8694
|
+
}
|
|
8695
|
+
}
|
|
8674
8696
|
|
|
8675
8697
|
const ventionPopoverArrowSize = 10;
|
|
8676
8698
|
const VentionPopover = props => {
|