@wandelbots/wandelbots-js-react-components 2.36.0 → 2.37.0

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": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -85,7 +85,7 @@ export const AppHeader = externalizeComponent(
85
85
  ...sx,
86
86
  }}
87
87
  >
88
- <Toolbar sx={{ minHeight: "64px !important" }}>
88
+ <Toolbar sx={{ minHeight: "62px !important" }}>
89
89
  {/* App Icon */}
90
90
  <Box sx={{ mr: 2, display: "flex", alignItems: "center" }}>
91
91
  {appIcon}
@@ -173,9 +173,9 @@ export const ProgramControl = externalizeComponent(
173
173
  }
174
174
  onClick={config.onClick}
175
175
  sx={{
176
- width: "110px",
177
- height: "110px",
178
- borderRadius: "110px",
176
+ width: "88px",
177
+ height: "88px",
178
+ borderRadius: "88px",
179
179
  backgroundColor: config.color,
180
180
  opacity:
181
181
  config.enabled &&
@@ -197,7 +197,7 @@ export const ProgramControl = externalizeComponent(
197
197
  backgroundColor: config.color,
198
198
  opacity: 0.3,
199
199
  },
200
- minWidth: "110px",
200
+ minWidth: "88px",
201
201
  flexShrink: 0,
202
202
  }}
203
203
  >
@@ -74,14 +74,13 @@ export const TabBar = externalizeComponent(
74
74
  sx={{ height: "100%", display: "flex", flexDirection: "column", ...sx }}
75
75
  >
76
76
  {/* Tabs */}
77
- <Box sx={{ px: 3, pt: 3, pb: 3 }}>
77
+ <Box sx={{ px: 0, py: 0 }}>
78
78
  <Tabs
79
79
  value={activeTab}
80
80
  onChange={handleTabChange}
81
81
  sx={{
82
- minHeight: "auto",
82
+ minHeight: "32px",
83
83
  backgroundColor: "transparent",
84
- mt: 3,
85
84
  "& .MuiTabs-indicator": {
86
85
  display: "none", // Hide the default indicator
87
86
  },
@@ -98,16 +97,15 @@ export const TabBar = externalizeComponent(
98
97
  iconPosition="start"
99
98
  disableRipple
100
99
  sx={{
101
- minHeight: "auto",
102
- minWidth: "auto",
103
- padding: "4px 8px",
104
- borderRadius: "10px",
100
+ minHeight: "32px",
101
+ height: "32px",
102
+ padding: "0px 10px",
103
+ borderRadius: "12px",
105
104
  backgroundColor: (theme) =>
106
105
  theme.palette.backgroundPaperElevation?.[11] || "#32344B",
107
106
  color: "text.primary",
108
107
  opacity: activeTab === index ? 1 : 0.38,
109
- textTransform: "none",
110
- fontWeight: 500,
108
+ fontSize: "13px",
111
109
  transition: "all 0.2s ease-in-out",
112
110
  "&:hover": {
113
111
  opacity: activeTab === index ? 1 : 0.6,
@@ -131,7 +129,7 @@ export const TabBar = externalizeComponent(
131
129
  </Box>
132
130
 
133
131
  {/* Border line */}
134
- <Box sx={{ mx: 3, borderBottom: 1, borderColor: "divider" }} />
132
+ <Box sx={{ mt: "32px", borderBottom: 1, borderColor: "divider" }} />
135
133
 
136
134
  {/* Tab Content */}
137
135
  <Box sx={{ flex: 1, overflow: "auto" }}>