@wandelbots/wandelbots-js-react-components 1.17.5 → 1.17.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.17.5",
3
+ "version": "1.17.6",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,4 +1,5 @@
1
1
  import { Stack } from "@mui/material"
2
+ import { omit } from "lodash-es"
2
3
  import React from "react"
3
4
 
4
5
  export const TransparentOverlay = (
@@ -17,8 +18,9 @@ export const TransparentOverlay = (
17
18
  backgroundColor: "rgba(0, 0, 0, 0.6)",
18
19
  backdropFilter: "blur(1px)",
19
20
  zIndex: 100,
21
+ ...(props.sx || {}),
20
22
  }}
21
- {...props}
23
+ {...omit(props, "sx")}
22
24
  />
23
25
  )
24
26
  }
@@ -13,7 +13,11 @@ export const JoggingActivationRequired = observer(
13
13
  function renderOverlay() {
14
14
  if (store.activationState === "inactive" && !store.activationError) {
15
15
  return (
16
- <TransparentOverlay>
16
+ <TransparentOverlay
17
+ sx={{
18
+ borderRadius: "6px",
19
+ }}
20
+ >
17
21
  <Button
18
22
  color="primary"
19
23
  variant="contained"
@@ -37,7 +41,7 @@ export const JoggingActivationRequired = observer(
37
41
  }
38
42
 
39
43
  return (
40
- <Stack sx={{ position: "relative" }}>
44
+ <Stack sx={{ position: "relative", padding: "6px" }}>
41
45
  {renderOverlay()}
42
46
  {children}
43
47
  </Stack>
@@ -1,16 +1,16 @@
1
1
  import {
2
- Stack,
3
- MenuItem,
4
2
  InputLabel,
3
+ MenuItem,
5
4
  Select,
6
- ToggleButtonGroup,
5
+ Stack,
7
6
  ToggleButton,
7
+ ToggleButtonGroup,
8
8
  } from "@mui/material"
9
9
  import { observer } from "mobx-react-lite"
10
- import type { IncrementOptionId, JoggingStore } from "./JoggingStore"
11
10
  import { useTranslation } from "react-i18next"
12
11
  import OrientationCoordSysIcon from "../../icons/orientation-coord-system.svg"
13
12
  import OrientationToolIcon from "../../icons/orientation-tool.svg"
13
+ import type { IncrementOptionId, JoggingStore } from "./JoggingStore"
14
14
 
15
15
  export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
16
16
  const { t } = useTranslation()
@@ -30,7 +30,7 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
30
30
  alignItems={"center"}
31
31
  spacing={2}
32
32
  sx={{
33
- padding: "8px 16px",
33
+ padding: "6px 16px",
34
34
  "& label": {
35
35
  opacity: 0.7,
36
36
  fontSize: "12px",
@@ -83,7 +83,7 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
83
83
  alignItems={"center"}
84
84
  spacing={2}
85
85
  sx={{
86
- padding: "8px 16px",
86
+ padding: "6px 16px",
87
87
  "& label": {
88
88
  opacity: 0.7,
89
89
  fontSize: "12px",