@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/dist/components/TabBar.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AppHeader.tsx +1 -1
- package/src/components/ProgramControl.tsx +4 -4
- package/src/components/TabBar.tsx +8 -10
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@ export const AppHeader = externalizeComponent(
|
|
|
85
85
|
...sx,
|
|
86
86
|
}}
|
|
87
87
|
>
|
|
88
|
-
<Toolbar sx={{ minHeight: "
|
|
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: "
|
|
177
|
-
height: "
|
|
178
|
-
borderRadius: "
|
|
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: "
|
|
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:
|
|
77
|
+
<Box sx={{ px: 0, py: 0 }}>
|
|
78
78
|
<Tabs
|
|
79
79
|
value={activeTab}
|
|
80
80
|
onChange={handleTabChange}
|
|
81
81
|
sx={{
|
|
82
|
-
minHeight: "
|
|
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: "
|
|
102
|
-
|
|
103
|
-
padding: "
|
|
104
|
-
borderRadius: "
|
|
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
|
-
|
|
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={{
|
|
132
|
+
<Box sx={{ mt: "32px", borderBottom: 1, borderColor: "divider" }} />
|
|
135
133
|
|
|
136
134
|
{/* Tab Content */}
|
|
137
135
|
<Box sx={{ flex: 1, overflow: "auto" }}>
|