@wandelbots/wandelbots-js-react-components 2.27.0 → 2.27.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/dist/components/safetyBar/OperationModeIndicator.d.ts +1 -1
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/safetyBar/OperationModeIndicator.tsx +2 -2
- package/src/components/safetyBar/SafetyStateIndicator.tsx +7 -4
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export const OperationModeIndicator = observer(
|
|
|
19
19
|
operationMode,
|
|
20
20
|
anchorOrigin,
|
|
21
21
|
transformOrigin,
|
|
22
|
-
compact
|
|
22
|
+
compact,
|
|
23
23
|
}: OperationModeIndicatorProps) => {
|
|
24
24
|
const { t } = useTranslation()
|
|
25
25
|
const theme = useTheme()
|
|
@@ -33,7 +33,7 @@ export const OperationModeIndicator = observer(
|
|
|
33
33
|
title={t("SafetyBar.OperationMode.ti")}
|
|
34
34
|
name={t("SafetyBar.OperationMode.Automatic.ti")}
|
|
35
35
|
label={compact ? null : t("SafetyBar.OperationMode.Automatic.ti")}
|
|
36
|
-
color={
|
|
36
|
+
color={theme.palette.text.secondary}
|
|
37
37
|
explanation={
|
|
38
38
|
<Trans i18nKey="SafetyBar.OperationMode.Auto.Explanation.lb">
|
|
39
39
|
The robot controller is in automatic operation mode. Automated
|
|
@@ -35,16 +35,15 @@ export const SafetyStateIndicator = observer(
|
|
|
35
35
|
id="safety-state-normal"
|
|
36
36
|
title={t("SafetyBar.SafetyState.ti")}
|
|
37
37
|
name={t("SafetyBar.SafetyState.Normal.lb")}
|
|
38
|
-
label={compact ? null :
|
|
38
|
+
label={compact ? null : t("SafetyBar.SafetyState.Normal.lb")}
|
|
39
39
|
icon={SafetyStateNormalIcon}
|
|
40
|
-
color={
|
|
40
|
+
color={theme.palette.text.secondary}
|
|
41
41
|
explanation={
|
|
42
42
|
<Trans i18nKey="SafetyBar.SafetyState.Normal.Explanation.lb">
|
|
43
43
|
The robot controller is in a normal safety state. Movement is
|
|
44
44
|
not prevented by this state.
|
|
45
45
|
</Trans>
|
|
46
46
|
}
|
|
47
|
-
|
|
48
47
|
anchorOrigin={anchorOrigin}
|
|
49
48
|
transformOrigin={transformOrigin}
|
|
50
49
|
/>
|
|
@@ -114,7 +113,11 @@ export const SafetyStateIndicator = observer(
|
|
|
114
113
|
color={theme.palette.warning.main}
|
|
115
114
|
title={t("SafetyBar.SafetyState.ti")}
|
|
116
115
|
name={t("SafetyBar.SafetyState.ManualActionRequired.lb")}
|
|
117
|
-
label={
|
|
116
|
+
label={
|
|
117
|
+
compact
|
|
118
|
+
? null
|
|
119
|
+
: t("SafetyBar.SafetyState.ManualActionRequired.lb")
|
|
120
|
+
}
|
|
118
121
|
explanation={
|
|
119
122
|
<Trans i18nKey="SafetyBar.SafetyState.ManualActionRequired.Explanation.lb">
|
|
120
123
|
The robot controller has entered a safety state requiring manual
|