@wso2/oxygen-ui 0.20.0 → 0.22.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/.claude/skills/oxygen-form/SKILL.md +162 -98
- package/dist/components/AppSwitcher/AppSwitcher.d.ts +6 -6
- package/dist/components/AppSwitcher/AppSwitcherFooter.d.ts +14 -6
- package/dist/components/AppSwitcher/AppSwitcherSection.d.ts +8 -3
- package/dist/components/TrialBadge/TrialBadge.d.ts +39 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/index.js +438 -115
- package/dist/index.js.map +3 -3
- package/dist/styles/Themes/ChoreoLabsTheme.d.ts +21 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -265,6 +265,26 @@ var init_OxygenThemeBase = __esm({
|
|
|
265
265
|
clearIcon: React.createElement(X)
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
|
+
MuiFormLabel: {
|
|
269
|
+
styleOverrides: {
|
|
270
|
+
// Required marker. Red signals "required" faster than grey, but the "*" glyph
|
|
271
|
+
// carries the meaning, so color is not the only cue (WCAG 1.4.1). Dark mode
|
|
272
|
+
// uses error.light because error.main often drops below 4.5:1 on dark surfaces.
|
|
273
|
+
// `&.Mui-error` matches MUI's error rule so the dark color also holds in error state;
|
|
274
|
+
// the disabled rule comes last so a disabled field's marker is muted like its label.
|
|
275
|
+
asterisk: ({ theme }) => __spreadProps(__spreadValues({
|
|
276
|
+
color: (theme.vars || theme).palette.error.main
|
|
277
|
+
}, theme.applyStyles("dark", {
|
|
278
|
+
"&, &.Mui-error": {
|
|
279
|
+
color: (theme.vars || theme).palette.error.light
|
|
280
|
+
}
|
|
281
|
+
})), {
|
|
282
|
+
".Mui-disabled > &": {
|
|
283
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
284
|
+
}
|
|
285
|
+
})
|
|
286
|
+
}
|
|
287
|
+
},
|
|
268
288
|
MuiInputLabel: {
|
|
269
289
|
styleOverrides: {
|
|
270
290
|
root: {
|
|
@@ -585,7 +605,7 @@ var init_createOxygenTheme = __esm({
|
|
|
585
605
|
// package.json
|
|
586
606
|
var package_default = {
|
|
587
607
|
name: "@wso2/oxygen-ui",
|
|
588
|
-
version: "0.
|
|
608
|
+
version: "0.22.0",
|
|
589
609
|
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
590
610
|
type: "module",
|
|
591
611
|
main: "./dist/index.js",
|
|
@@ -1131,18 +1151,56 @@ var AcrylicPurpleTheme_default = AcrylicPurpleTheme;
|
|
|
1131
1151
|
init_OxygenThemeBase();
|
|
1132
1152
|
init_createOxygenTheme();
|
|
1133
1153
|
import { extendTheme as extendTheme3 } from "@mui/material/styles";
|
|
1154
|
+
var tagColors = ["primary", "secondary", "success", "error", "warning", "info"];
|
|
1155
|
+
var tagStyle = (backgroundColor, color) => ({
|
|
1156
|
+
backgroundColor,
|
|
1157
|
+
color,
|
|
1158
|
+
"&.MuiChip-clickable:hover, &.MuiChip-clickable.Mui-focusVisible, &.MuiChip-deletable.Mui-focusVisible": {
|
|
1159
|
+
backgroundColor,
|
|
1160
|
+
opacity: 0.85
|
|
1161
|
+
},
|
|
1162
|
+
"& .MuiChip-deleteIcon, & .MuiChip-deleteIcon:hover": {
|
|
1163
|
+
color
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1134
1166
|
var ChoreoLabsColors = {
|
|
1135
1167
|
signal: "#FF4600",
|
|
1168
|
+
flare: "#FF6E33",
|
|
1169
|
+
ember: "#8F2400",
|
|
1136
1170
|
// Signal is below 4.5:1 as text on light surfaces, so orange text there uses Burn.
|
|
1137
1171
|
burn: "#C43300",
|
|
1138
1172
|
midnightInk: "#0B1633",
|
|
1173
|
+
deepNavy: "#17223A",
|
|
1139
1174
|
blackout: "#050A1C",
|
|
1140
1175
|
cobalt: "#1F4FFF",
|
|
1176
|
+
mist: "#EAF6FF",
|
|
1141
1177
|
slate: "#5A6072",
|
|
1178
|
+
fog: "#D7DBE4",
|
|
1142
1179
|
paper: "#F4F6FA",
|
|
1180
|
+
graphite: "#1E222C",
|
|
1143
1181
|
white: "#FFFFFF"
|
|
1144
1182
|
};
|
|
1183
|
+
var ChoreoLabsStatusColors = {
|
|
1184
|
+
light: {
|
|
1185
|
+
info: { main: ChoreoLabsColors.midnightInk, contrastText: ChoreoLabsColors.white },
|
|
1186
|
+
success: { main: "#16A34A", dark: "#15803D", contrastText: ChoreoLabsColors.white },
|
|
1187
|
+
warning: { main: "#F5B300", dark: "#8A5A00", contrastText: ChoreoLabsColors.midnightInk },
|
|
1188
|
+
error: { main: "#E5484D", dark: "#B42318", contrastText: ChoreoLabsColors.white }
|
|
1189
|
+
},
|
|
1190
|
+
dark: {
|
|
1191
|
+
info: { main: ChoreoLabsColors.white, contrastText: ChoreoLabsColors.midnightInk },
|
|
1192
|
+
success: { main: "#4ADE80", contrastText: ChoreoLabsColors.midnightInk },
|
|
1193
|
+
warning: { main: "#FCD34D", contrastText: ChoreoLabsColors.midnightInk },
|
|
1194
|
+
error: { main: "#FF7A7F", contrastText: ChoreoLabsColors.midnightInk }
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1145
1197
|
var fontFamily = "'Sora Variable', sans-serif";
|
|
1198
|
+
var fieldHeight = { small: 40, medium: 48 };
|
|
1199
|
+
var fieldPadding = (height, inner = "0px") => `calc((${height}px - 1.4375em - ${inner}) / 2)`;
|
|
1200
|
+
var lightAvatar = ({ theme }) => ({
|
|
1201
|
+
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 12%, transparent)`,
|
|
1202
|
+
color: theme.vars.palette.primary.main
|
|
1203
|
+
});
|
|
1146
1204
|
var typographyVariants = [
|
|
1147
1205
|
"h1",
|
|
1148
1206
|
"h2",
|
|
@@ -1160,59 +1218,104 @@ var typographyVariants = [
|
|
|
1160
1218
|
];
|
|
1161
1219
|
var ChoreoLabsColorSchemes = {
|
|
1162
1220
|
light: {
|
|
1163
|
-
palette: {
|
|
1221
|
+
palette: __spreadProps(__spreadValues({
|
|
1164
1222
|
primary: {
|
|
1165
1223
|
main: ChoreoLabsColors.signal,
|
|
1166
1224
|
dark: ChoreoLabsColors.burn,
|
|
1167
1225
|
contrastText: ChoreoLabsColors.midnightInk
|
|
1168
|
-
// Text on Signal is Midnight Ink
|
|
1169
1226
|
},
|
|
1170
1227
|
secondary: {
|
|
1171
|
-
main:
|
|
1228
|
+
main: ChoreoLabsColors.midnightInk,
|
|
1229
|
+
contrastText: ChoreoLabsColors.white
|
|
1172
1230
|
},
|
|
1173
|
-
|
|
1174
|
-
main: ChoreoLabsColors.
|
|
1231
|
+
accent: {
|
|
1232
|
+
main: ChoreoLabsColors.burn,
|
|
1233
|
+
light: ChoreoLabsColors.signal,
|
|
1234
|
+
dark: ChoreoLabsColors.ember,
|
|
1175
1235
|
contrastText: ChoreoLabsColors.white
|
|
1176
1236
|
},
|
|
1177
1237
|
background: {
|
|
1178
1238
|
default: ChoreoLabsColors.paper,
|
|
1179
1239
|
paper: "#ffffffc5",
|
|
1180
|
-
acrylic:
|
|
1181
|
-
// More transparent version for Paper and Card components
|
|
1240
|
+
acrylic: ChoreoLabsColors.white
|
|
1182
1241
|
},
|
|
1183
1242
|
text: {
|
|
1184
1243
|
primary: ChoreoLabsColors.midnightInk,
|
|
1185
1244
|
secondary: ChoreoLabsColors.slate
|
|
1186
1245
|
},
|
|
1187
|
-
divider:
|
|
1188
|
-
}
|
|
1246
|
+
divider: ChoreoLabsColors.fog
|
|
1247
|
+
}, ChoreoLabsStatusColors.light), {
|
|
1248
|
+
Avatar: {
|
|
1249
|
+
defaultBg: ChoreoLabsColors.fog
|
|
1250
|
+
},
|
|
1251
|
+
Alert: {
|
|
1252
|
+
infoColor: ChoreoLabsColors.midnightInk,
|
|
1253
|
+
infoIconColor: ChoreoLabsColors.midnightInk,
|
|
1254
|
+
infoStandardBg: ChoreoLabsColors.mist,
|
|
1255
|
+
successColor: "#15803D",
|
|
1256
|
+
successStandardBg: "#DCFCE7",
|
|
1257
|
+
warningColor: "#8A5A00",
|
|
1258
|
+
warningStandardBg: "#FEF6D8",
|
|
1259
|
+
warningFilledColor: ChoreoLabsColors.midnightInk,
|
|
1260
|
+
errorColor: "#B42318",
|
|
1261
|
+
errorStandardBg: "#FDE7E7"
|
|
1262
|
+
}
|
|
1263
|
+
})
|
|
1189
1264
|
},
|
|
1190
1265
|
dark: {
|
|
1191
|
-
palette: {
|
|
1266
|
+
palette: __spreadProps(__spreadValues({
|
|
1192
1267
|
primary: {
|
|
1193
1268
|
main: ChoreoLabsColors.signal,
|
|
1194
1269
|
dark: ChoreoLabsColors.burn,
|
|
1195
1270
|
contrastText: ChoreoLabsColors.midnightInk
|
|
1196
1271
|
},
|
|
1272
|
+
// Midnight Ink disappears on the dark ground, so dark mode inverts the secondary colour
|
|
1197
1273
|
secondary: {
|
|
1198
|
-
main:
|
|
1274
|
+
main: ChoreoLabsColors.white,
|
|
1275
|
+
contrastText: ChoreoLabsColors.midnightInk
|
|
1199
1276
|
},
|
|
1200
|
-
|
|
1201
|
-
main: ChoreoLabsColors.
|
|
1277
|
+
accent: {
|
|
1278
|
+
main: ChoreoLabsColors.burn,
|
|
1279
|
+
light: ChoreoLabsColors.signal,
|
|
1280
|
+
dark: ChoreoLabsColors.ember,
|
|
1202
1281
|
contrastText: ChoreoLabsColors.white
|
|
1203
1282
|
},
|
|
1204
1283
|
background: {
|
|
1205
1284
|
default: ChoreoLabsColors.blackout,
|
|
1206
|
-
paper: `${ChoreoLabsColors.
|
|
1285
|
+
paper: `${ChoreoLabsColors.deepNavy}c5`,
|
|
1207
1286
|
acrylic: `${ChoreoLabsColors.midnightInk}40`
|
|
1208
|
-
// More transparent version for Paper and Card components
|
|
1209
1287
|
},
|
|
1210
1288
|
text: {
|
|
1211
1289
|
primary: ChoreoLabsColors.white,
|
|
1212
1290
|
secondary: "#D0D3E2"
|
|
1213
1291
|
},
|
|
1214
1292
|
divider: "#ffffff16"
|
|
1215
|
-
}
|
|
1293
|
+
}, ChoreoLabsStatusColors.dark), {
|
|
1294
|
+
Avatar: {
|
|
1295
|
+
defaultBg: ChoreoLabsColors.graphite
|
|
1296
|
+
},
|
|
1297
|
+
Alert: {
|
|
1298
|
+
infoColor: ChoreoLabsColors.white,
|
|
1299
|
+
infoIconColor: ChoreoLabsColors.white,
|
|
1300
|
+
infoStandardBg: ChoreoLabsColors.midnightInk,
|
|
1301
|
+
// The derived filled colour would be grey
|
|
1302
|
+
infoFilledBg: ChoreoLabsColors.deepNavy,
|
|
1303
|
+
infoFilledColor: ChoreoLabsColors.white,
|
|
1304
|
+
// Status text in dark mode is the light shade on Ink; filled alerts keep the base colours
|
|
1305
|
+
successColor: "#4ADE80",
|
|
1306
|
+
successStandardBg: ChoreoLabsColors.midnightInk,
|
|
1307
|
+
successFilledBg: "#16A34A",
|
|
1308
|
+
successFilledColor: ChoreoLabsColors.white,
|
|
1309
|
+
warningColor: "#FCD34D",
|
|
1310
|
+
warningStandardBg: ChoreoLabsColors.midnightInk,
|
|
1311
|
+
warningFilledBg: "#F5B300",
|
|
1312
|
+
warningFilledColor: ChoreoLabsColors.midnightInk,
|
|
1313
|
+
errorColor: "#FF7A7F",
|
|
1314
|
+
errorStandardBg: ChoreoLabsColors.midnightInk,
|
|
1315
|
+
errorFilledBg: "#E5484D",
|
|
1316
|
+
errorFilledColor: ChoreoLabsColors.white
|
|
1317
|
+
}
|
|
1318
|
+
})
|
|
1216
1319
|
}
|
|
1217
1320
|
};
|
|
1218
1321
|
var { colorSchemes } = extendTheme3({
|
|
@@ -1230,35 +1333,55 @@ var ChoreoLabsThemeConfig = {
|
|
|
1230
1333
|
borderRadius: 12
|
|
1231
1334
|
},
|
|
1232
1335
|
gradient: {
|
|
1233
|
-
//
|
|
1234
|
-
// apps that read theme.gradient.primary.
|
|
1336
|
+
// Unused by the theme; kept flat for apps that read theme.gradient.primary
|
|
1235
1337
|
primary: `linear-gradient(${ChoreoLabsColors.signal}, ${ChoreoLabsColors.signal})`
|
|
1236
1338
|
},
|
|
1237
1339
|
components: {
|
|
1238
1340
|
MuiAvatar: {
|
|
1239
1341
|
styleOverrides: {
|
|
1240
1342
|
root: ({ theme }) => ({
|
|
1241
|
-
backgroundColor: theme.vars.palette.
|
|
1343
|
+
backgroundColor: theme.vars.palette.Avatar.defaultBg,
|
|
1242
1344
|
color: theme.vars.palette.text.primary
|
|
1243
1345
|
})
|
|
1244
1346
|
}
|
|
1245
1347
|
},
|
|
1348
|
+
MuiUserMenu: {
|
|
1349
|
+
styleOverrides: {
|
|
1350
|
+
avatar: lightAvatar,
|
|
1351
|
+
headerAvatar: lightAvatar
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
MuiButtonBase: {
|
|
1355
|
+
styleOverrides: {
|
|
1356
|
+
root: {
|
|
1357
|
+
"&.Mui-focusVisible": {
|
|
1358
|
+
outline: `2px solid ${ChoreoLabsColors.cobalt}`,
|
|
1359
|
+
outlineOffset: 2
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1246
1364
|
MuiButton: {
|
|
1247
1365
|
styleOverrides: {
|
|
1248
1366
|
root: {
|
|
1249
1367
|
borderRadius: 20,
|
|
1250
1368
|
textTransform: "none",
|
|
1251
|
-
fontWeight:
|
|
1369
|
+
fontWeight: 500
|
|
1252
1370
|
},
|
|
1371
|
+
sizeSmall: { minHeight: 32 },
|
|
1372
|
+
sizeMedium: { minHeight: 40 },
|
|
1373
|
+
sizeLarge: { minHeight: 48 },
|
|
1253
1374
|
containedPrimary: ({ theme }) => ({
|
|
1254
1375
|
"&:not(:disabled)": {
|
|
1255
1376
|
background: `${theme.vars.palette.primary.main} !important`,
|
|
1256
1377
|
color: `${theme.vars.palette.primary.contrastText} !important`,
|
|
1257
|
-
// The default hover darkens to Burn, which is below 4.5:1 against Midnight Ink text.
|
|
1258
1378
|
"&:hover": {
|
|
1259
|
-
background: `${
|
|
1260
|
-
|
|
1261
|
-
|
|
1379
|
+
background: `${ChoreoLabsColors.flare} !important`
|
|
1380
|
+
},
|
|
1381
|
+
// Midnight Ink doesn't read on Ember, so the pressed label is white
|
|
1382
|
+
"&:active": {
|
|
1383
|
+
background: `${ChoreoLabsColors.ember} !important`,
|
|
1384
|
+
color: `${ChoreoLabsColors.white} !important`
|
|
1262
1385
|
}
|
|
1263
1386
|
}
|
|
1264
1387
|
}),
|
|
@@ -1277,21 +1400,37 @@ var ChoreoLabsThemeConfig = {
|
|
|
1277
1400
|
}),
|
|
1278
1401
|
containedSecondary: ({ theme }) => ({
|
|
1279
1402
|
backgroundColor: theme.vars.palette.secondary.main,
|
|
1280
|
-
color: theme.vars.palette.
|
|
1403
|
+
color: theme.vars.palette.secondary.contrastText,
|
|
1281
1404
|
"&:hover": {
|
|
1282
1405
|
backgroundColor: theme.vars.palette.secondary.main,
|
|
1283
1406
|
opacity: 0.8
|
|
1284
1407
|
}
|
|
1285
1408
|
}),
|
|
1286
1409
|
outlinedSecondary: ({ theme }) => ({
|
|
1287
|
-
borderColor: theme.vars.palette.
|
|
1288
|
-
color: theme.vars.palette.
|
|
1410
|
+
borderColor: theme.vars.palette.secondary.main,
|
|
1411
|
+
color: theme.vars.palette.secondary.main,
|
|
1289
1412
|
"&:hover": {
|
|
1290
|
-
borderColor: theme.vars.palette.
|
|
1413
|
+
borderColor: theme.vars.palette.secondary.main,
|
|
1291
1414
|
backgroundColor: theme.vars.palette.action.hover
|
|
1292
1415
|
}
|
|
1293
1416
|
})
|
|
1294
|
-
}
|
|
1417
|
+
},
|
|
1418
|
+
variants: [
|
|
1419
|
+
{
|
|
1420
|
+
props: { variant: "subtle" },
|
|
1421
|
+
style: ({ theme }) => ({
|
|
1422
|
+
backgroundColor: theme.vars.palette.accent.main,
|
|
1423
|
+
color: theme.vars.palette.accent.contrastText,
|
|
1424
|
+
"&:hover": {
|
|
1425
|
+
backgroundColor: theme.vars.palette.accent.dark
|
|
1426
|
+
},
|
|
1427
|
+
"&.Mui-disabled": {
|
|
1428
|
+
backgroundColor: theme.vars.palette.action.disabledBackground,
|
|
1429
|
+
color: theme.vars.palette.action.disabled
|
|
1430
|
+
}
|
|
1431
|
+
})
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1295
1434
|
},
|
|
1296
1435
|
MuiFab: {
|
|
1297
1436
|
styleOverrides: {
|
|
@@ -1299,8 +1438,11 @@ var ChoreoLabsThemeConfig = {
|
|
|
1299
1438
|
backgroundColor: theme.vars.palette.primary.main,
|
|
1300
1439
|
color: theme.vars.palette.primary.contrastText,
|
|
1301
1440
|
"&:hover": {
|
|
1302
|
-
backgroundColor:
|
|
1303
|
-
|
|
1441
|
+
backgroundColor: ChoreoLabsColors.flare
|
|
1442
|
+
},
|
|
1443
|
+
"&:active": {
|
|
1444
|
+
backgroundColor: ChoreoLabsColors.ember,
|
|
1445
|
+
color: ChoreoLabsColors.white
|
|
1304
1446
|
}
|
|
1305
1447
|
})
|
|
1306
1448
|
}
|
|
@@ -1323,21 +1465,26 @@ var ChoreoLabsThemeConfig = {
|
|
|
1323
1465
|
},
|
|
1324
1466
|
MuiSidebar: {
|
|
1325
1467
|
styleOverrides: {
|
|
1326
|
-
|
|
1468
|
+
userAvatar: lightAvatar,
|
|
1469
|
+
root: ({ theme }) => __spreadValues({
|
|
1327
1470
|
backgroundColor: theme.vars.palette.background.acrylic,
|
|
1328
1471
|
WebkitBackdropFilter: theme.blur.light,
|
|
1329
1472
|
backdropFilter: theme.blur.light
|
|
1330
|
-
}
|
|
1473
|
+
}, theme.applyStyles("light", {
|
|
1474
|
+
backgroundColor: ChoreoLabsColors.white
|
|
1475
|
+
}))
|
|
1331
1476
|
}
|
|
1332
1477
|
},
|
|
1333
1478
|
MuiAppBar: {
|
|
1334
1479
|
styleOverrides: {
|
|
1335
|
-
root: ({ theme }) => ({
|
|
1480
|
+
root: ({ theme }) => __spreadValues({
|
|
1336
1481
|
backgroundColor: `${theme.vars.palette.background.acrylic} !important`,
|
|
1337
1482
|
WebkitBackdropFilter: theme.blur.medium,
|
|
1338
1483
|
backdropFilter: theme.blur.medium,
|
|
1339
1484
|
borderRadius: 0
|
|
1340
|
-
}
|
|
1485
|
+
}, theme.applyStyles("light", {
|
|
1486
|
+
backgroundColor: `${ChoreoLabsColors.white} !important`
|
|
1487
|
+
}))
|
|
1341
1488
|
},
|
|
1342
1489
|
defaultProps: {
|
|
1343
1490
|
color: "transparent"
|
|
@@ -1358,9 +1505,8 @@ var ChoreoLabsThemeConfig = {
|
|
|
1358
1505
|
WebkitBackdropFilter: theme.blur.light,
|
|
1359
1506
|
backdropFilter: theme.blur.light,
|
|
1360
1507
|
border: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
|
|
1361
|
-
// More transparent for direct Paper component usage
|
|
1362
1508
|
backgroundColor: theme.vars.palette.background.acrylic,
|
|
1363
|
-
//
|
|
1509
|
+
// Drop MUI's dark-mode elevation overlay gradient
|
|
1364
1510
|
backgroundImage: "none",
|
|
1365
1511
|
boxShadow: theme.shadows[1]
|
|
1366
1512
|
})
|
|
@@ -1378,6 +1524,17 @@ var ChoreoLabsThemeConfig = {
|
|
|
1378
1524
|
},
|
|
1379
1525
|
MuiAutocomplete: {
|
|
1380
1526
|
styleOverrides: {
|
|
1527
|
+
// The Autocomplete input keeps MUI's own vertical padding (7.5px, or 2.5px when small)
|
|
1528
|
+
root: {
|
|
1529
|
+
"& .MuiOutlinedInput-root:not(.MuiInputBase-sizeSmall)": {
|
|
1530
|
+
paddingTop: fieldPadding(fieldHeight.medium, "15px"),
|
|
1531
|
+
paddingBottom: fieldPadding(fieldHeight.medium, "15px")
|
|
1532
|
+
},
|
|
1533
|
+
"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall": {
|
|
1534
|
+
paddingTop: fieldPadding(fieldHeight.small, "5px"),
|
|
1535
|
+
paddingBottom: fieldPadding(fieldHeight.small, "5px")
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1381
1538
|
paper: ({ theme }) => ({
|
|
1382
1539
|
backgroundColor: theme.vars.palette.background.paper,
|
|
1383
1540
|
WebkitBackdropFilter: theme.blur.medium,
|
|
@@ -1386,10 +1543,27 @@ var ChoreoLabsThemeConfig = {
|
|
|
1386
1543
|
})
|
|
1387
1544
|
}
|
|
1388
1545
|
},
|
|
1546
|
+
MuiChip: {
|
|
1547
|
+
variants: [
|
|
1548
|
+
// `tag`: a filled, square-cornered uppercase label. Dark blue unless a colour is set.
|
|
1549
|
+
{
|
|
1550
|
+
props: { variant: "tag" },
|
|
1551
|
+
style: ({ theme }) => __spreadValues({
|
|
1552
|
+
borderRadius: 4,
|
|
1553
|
+
fontWeight: 700,
|
|
1554
|
+
textTransform: "uppercase",
|
|
1555
|
+
letterSpacing: "0.04em"
|
|
1556
|
+
}, tagStyle(theme.vars.palette.secondary.main, theme.vars.palette.secondary.contrastText))
|
|
1557
|
+
},
|
|
1558
|
+
...tagColors.map((color) => ({
|
|
1559
|
+
props: { variant: "tag", color },
|
|
1560
|
+
style: ({ theme }) => tagStyle(theme.vars.palette[color].main, theme.vars.palette[color].contrastText)
|
|
1561
|
+
}))
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1389
1564
|
MuiCard: {
|
|
1390
1565
|
styleOverrides: {
|
|
1391
1566
|
root: ({ theme }) => ({
|
|
1392
|
-
// More transparent for Card component
|
|
1393
1567
|
backgroundColor: theme.vars.palette.background.acrylic
|
|
1394
1568
|
})
|
|
1395
1569
|
}
|
|
@@ -1406,12 +1580,60 @@ var ChoreoLabsThemeConfig = {
|
|
|
1406
1580
|
MuiTextField: {
|
|
1407
1581
|
defaultProps: { size: "small" }
|
|
1408
1582
|
},
|
|
1583
|
+
MuiSelect: {
|
|
1584
|
+
styleOverrides: {
|
|
1585
|
+
select: {
|
|
1586
|
+
"&.MuiOutlinedInput-input": {
|
|
1587
|
+
paddingTop: fieldPadding(fieldHeight.medium),
|
|
1588
|
+
paddingBottom: fieldPadding(fieldHeight.medium)
|
|
1589
|
+
},
|
|
1590
|
+
"&.MuiOutlinedInput-input.MuiInputBase-inputSizeSmall": {
|
|
1591
|
+
paddingTop: fieldPadding(fieldHeight.small),
|
|
1592
|
+
paddingBottom: fieldPadding(fieldHeight.small)
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
MuiInputLabel: {
|
|
1598
|
+
styleOverrides: {
|
|
1599
|
+
root: {
|
|
1600
|
+
// Replaces the base theme's offset for select labels, which was tuned to the old field heights
|
|
1601
|
+
".MuiFormControl-root:has(.MuiSelect-select) &:not(.MuiInputLabel-shrink)": {
|
|
1602
|
+
top: 0
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
outlined: {
|
|
1606
|
+
"&:not(.MuiInputLabel-shrink)": {
|
|
1607
|
+
transform: `translate(14px, ${fieldPadding(fieldHeight.medium)}) scale(1)`
|
|
1608
|
+
},
|
|
1609
|
+
// A label outside a sized FormControl stays medium, so follow the field's size instead
|
|
1610
|
+
"&.MuiInputLabel-sizeSmall:not(.MuiInputLabel-shrink), .MuiFormControl-root:has(.MuiInputBase-sizeSmall) &:not(.MuiInputLabel-shrink)": {
|
|
1611
|
+
transform: `translate(14px, ${fieldPadding(fieldHeight.small)}) scale(1)`
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1409
1616
|
MuiOutlinedInput: {
|
|
1410
1617
|
styleOverrides: {
|
|
1618
|
+
// Multiline fields pad the root instead
|
|
1619
|
+
input: ({ ownerState }) => {
|
|
1620
|
+
if (ownerState.multiline) {
|
|
1621
|
+
return {};
|
|
1622
|
+
}
|
|
1623
|
+
const padding = fieldPadding(ownerState.size === "small" ? fieldHeight.small : fieldHeight.medium);
|
|
1624
|
+
return { paddingTop: padding, paddingBottom: padding };
|
|
1625
|
+
},
|
|
1626
|
+
multiline: ({ ownerState }) => {
|
|
1627
|
+
const padding = fieldPadding(ownerState.size === "small" ? fieldHeight.small : fieldHeight.medium);
|
|
1628
|
+
return { paddingTop: padding, paddingBottom: padding };
|
|
1629
|
+
},
|
|
1411
1630
|
root: ({ theme }) => ({
|
|
1412
|
-
fontSize: theme.typography.
|
|
1631
|
+
fontSize: theme.typography.pxToRem(14),
|
|
1413
1632
|
borderRadius: 8,
|
|
1414
|
-
backgroundColor: theme.vars.palette.background.acrylic
|
|
1633
|
+
backgroundColor: theme.vars.palette.background.acrylic,
|
|
1634
|
+
"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline": {
|
|
1635
|
+
borderColor: ChoreoLabsColors.cobalt
|
|
1636
|
+
}
|
|
1415
1637
|
}),
|
|
1416
1638
|
notchedOutline: ({ theme }) => ({
|
|
1417
1639
|
borderWidth: 1,
|
|
@@ -1419,6 +1641,24 @@ var ChoreoLabsThemeConfig = {
|
|
|
1419
1641
|
})
|
|
1420
1642
|
}
|
|
1421
1643
|
},
|
|
1644
|
+
MuiInput: {
|
|
1645
|
+
styleOverrides: {
|
|
1646
|
+
root: {
|
|
1647
|
+
"&:not(.Mui-error)::after": {
|
|
1648
|
+
borderBottomColor: ChoreoLabsColors.cobalt
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
MuiFilledInput: {
|
|
1654
|
+
styleOverrides: {
|
|
1655
|
+
root: {
|
|
1656
|
+
"&:not(.Mui-error)::after": {
|
|
1657
|
+
borderBottomColor: ChoreoLabsColors.cobalt
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1422
1662
|
MuiMenuItem: {
|
|
1423
1663
|
styleOverrides: {
|
|
1424
1664
|
root: ({ theme }) => ({
|
|
@@ -1434,6 +1674,10 @@ var ChoreoLabsThemeConfig = {
|
|
|
1434
1674
|
"&:hover": {
|
|
1435
1675
|
color: theme.vars.palette.primary.dark,
|
|
1436
1676
|
textDecoration: "underline"
|
|
1677
|
+
},
|
|
1678
|
+
"&.Mui-focusVisible, &:focus-visible": {
|
|
1679
|
+
outline: `2px solid ${ChoreoLabsColors.cobalt}`,
|
|
1680
|
+
outlineOffset: 2
|
|
1437
1681
|
}
|
|
1438
1682
|
}, theme.applyStyles("light", {
|
|
1439
1683
|
color: theme.vars.palette.primary.dark
|
|
@@ -1445,9 +1689,7 @@ var ChoreoLabsThemeConfig = {
|
|
|
1445
1689
|
root: ({ theme }) => ({
|
|
1446
1690
|
borderRadius: 8,
|
|
1447
1691
|
"&.Mui-selected": {
|
|
1448
|
-
// Use CSS variable - automatically adapts to color scheme
|
|
1449
1692
|
backgroundColor: theme.vars.palette.action.selected,
|
|
1450
|
-
// Keep the selected background on hover so the item still reads as selected
|
|
1451
1693
|
"&:hover": {
|
|
1452
1694
|
backgroundColor: theme.vars.palette.action.selected
|
|
1453
1695
|
}
|
|
@@ -2423,6 +2665,26 @@ var WSO2ThemeConfig = {
|
|
|
2423
2665
|
}))
|
|
2424
2666
|
}
|
|
2425
2667
|
},
|
|
2668
|
+
MuiFormLabel: {
|
|
2669
|
+
styleOverrides: {
|
|
2670
|
+
// error.main (#E60000) is 3.56:1 on the washed light page and 3.35:1 on navy, so the
|
|
2671
|
+
// marker uses brand reds that pass: orange 700 in light (5.45:1), orange 400 in dark (5.82:1).
|
|
2672
|
+
// `&.Mui-error` overrides MUI's error rule; the disabled rule mutes the marker with its label.
|
|
2673
|
+
asterisk: ({ theme }) => __spreadProps(__spreadValues({
|
|
2674
|
+
"&, &.Mui-error": {
|
|
2675
|
+
color: orange[700]
|
|
2676
|
+
}
|
|
2677
|
+
}, theme.applyStyles("dark", {
|
|
2678
|
+
"&, &.Mui-error": {
|
|
2679
|
+
color: orange[400]
|
|
2680
|
+
}
|
|
2681
|
+
})), {
|
|
2682
|
+
".Mui-disabled > &": {
|
|
2683
|
+
color: theme.vars.palette.text.disabled
|
|
2684
|
+
}
|
|
2685
|
+
})
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2426
2688
|
MuiPaper: {
|
|
2427
2689
|
styleOverrides: {
|
|
2428
2690
|
root: ({ theme }) => ({
|
|
@@ -3866,14 +4128,18 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3866
4128
|
endAdornment
|
|
3867
4129
|
})
|
|
3868
4130
|
}),
|
|
3869
|
-
sx:
|
|
3870
|
-
|
|
3871
|
-
|
|
4131
|
+
sx: [
|
|
4132
|
+
{
|
|
4133
|
+
"& .MuiOutlinedInput-root": {
|
|
4134
|
+
height: 40
|
|
4135
|
+
},
|
|
4136
|
+
"& .MuiInputBase-input": {
|
|
4137
|
+
padding: "8.5px 14px"
|
|
4138
|
+
}
|
|
3872
4139
|
},
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
}, sx)
|
|
4140
|
+
// Spreading `sx` would turn an array of styles into numbered keys and lose them all.
|
|
4141
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
4142
|
+
]
|
|
3877
4143
|
})
|
|
3878
4144
|
);
|
|
3879
4145
|
});
|
|
@@ -5335,7 +5601,12 @@ var LogRow = ({
|
|
|
5335
5601
|
const { columns, timeZone, onCopy, levelLabels, getEntryLink, onCopyLink } = useLogViewerRequired();
|
|
5336
5602
|
const time = formatDisplay(entry.timestamp, timeZone);
|
|
5337
5603
|
const expandable = Boolean(entry.details || renderDetails);
|
|
5338
|
-
const
|
|
5604
|
+
const [detailsMounted, setDetailsMounted] = React13.useState(open);
|
|
5605
|
+
React13.useEffect(() => {
|
|
5606
|
+
if (open) setDetailsMounted(true);
|
|
5607
|
+
}, [open]);
|
|
5608
|
+
const showingDetails = open || detailsMounted;
|
|
5609
|
+
const copyText = showingDetails ? entryText(entry, columns, timeZone, levelLabels) : void 0;
|
|
5339
5610
|
const [copied, setCopied] = React13.useState(null);
|
|
5340
5611
|
const copiedTimer = React13.useRef(void 0);
|
|
5341
5612
|
React13.useEffect(() => () => clearTimeout(copiedTimer.current), []);
|
|
@@ -5353,6 +5624,12 @@ var LogRow = ({
|
|
|
5353
5624
|
onCopy == null ? void 0 : onCopy(entry, false);
|
|
5354
5625
|
}
|
|
5355
5626
|
};
|
|
5627
|
+
const detailsRef = React13.useRef(null);
|
|
5628
|
+
const toggleRef = React13.useRef(null);
|
|
5629
|
+
React13.useLayoutEffect(() => {
|
|
5630
|
+
var _a, _b;
|
|
5631
|
+
if (!open && ((_a = detailsRef.current) == null ? void 0 : _a.contains(document.activeElement))) (_b = toggleRef.current) == null ? void 0 : _b.focus();
|
|
5632
|
+
}, [open]);
|
|
5356
5633
|
const link = getEntryLink == null ? void 0 : getEntryLink(entry);
|
|
5357
5634
|
const copyLink = async () => {
|
|
5358
5635
|
try {
|
|
@@ -5440,6 +5717,7 @@ var LogRow = ({
|
|
|
5440
5717
|
index === 0 && expandable && /* @__PURE__ */ jsx32(
|
|
5441
5718
|
ButtonBase,
|
|
5442
5719
|
{
|
|
5720
|
+
ref: toggleRef,
|
|
5443
5721
|
onClick: (event) => {
|
|
5444
5722
|
event.stopPropagation();
|
|
5445
5723
|
onToggle();
|
|
@@ -5477,12 +5755,14 @@ var LogRow = ({
|
|
|
5477
5755
|
})
|
|
5478
5756
|
}
|
|
5479
5757
|
),
|
|
5480
|
-
expandable &&
|
|
5758
|
+
expandable && showingDetails && /* @__PURE__ */ jsx32(FullRow, { columnCount: columns.length, children: /* @__PURE__ */ jsx32(Collapse, { in: open, appear: true, timeout: "auto", onExited: () => setDetailsMounted(false), children: /* @__PURE__ */ jsx32(
|
|
5481
5759
|
Box11,
|
|
5482
5760
|
{
|
|
5761
|
+
ref: detailsRef,
|
|
5483
5762
|
id: detailsId,
|
|
5484
5763
|
role: "region",
|
|
5485
5764
|
"aria-label": detailsLabel(entry),
|
|
5765
|
+
inert: !open,
|
|
5486
5766
|
sx: { bgcolor: "action.hover" },
|
|
5487
5767
|
children: /* @__PURE__ */ jsxs12(
|
|
5488
5768
|
Box11,
|
|
@@ -6015,7 +6295,7 @@ var LogFilterChip_default = LogFilterChip;
|
|
|
6015
6295
|
// src/components/LogViewer/LogViewerToolbar.tsx
|
|
6016
6296
|
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6017
6297
|
var FILTER_BUTTON_SX = {
|
|
6018
|
-
height:
|
|
6298
|
+
height: 32,
|
|
6019
6299
|
// A border that can be seen (3:1 against the page), as the edge of a control must be.
|
|
6020
6300
|
borderColor: "text.secondary",
|
|
6021
6301
|
"&:hover, &:focus-visible": { borderColor: "text.primary" },
|
|
@@ -7086,16 +7366,15 @@ var TextField3 = React19.forwardRef(function TextField4(_a, ref) {
|
|
|
7086
7366
|
labelProp,
|
|
7087
7367
|
" (Optional)"
|
|
7088
7368
|
] }) : labelProp;
|
|
7089
|
-
const _a2 = fieldProps, { id: idProp, sx, className, style, fullWidth, margin, required, error, disabled, color, focused
|
|
7369
|
+
const _a2 = fieldProps, { id: idProp, sx, className, style, fullWidth, margin, required, error, disabled, color, focused, slotProps, helperText: helperProp } = _a2, rest = __objRest(_a2, ["id", "sx", "className", "style", "fullWidth", "margin", "required", "error", "disabled", "color", "focused", "slotProps", "helperText"]);
|
|
7090
7370
|
const generatedId = React19.useId();
|
|
7091
|
-
const [hasFocus, setHasFocus] = React19.useState(false);
|
|
7092
7371
|
if (labelPlacement !== "top" || !hasLabel) return /* @__PURE__ */ jsx46(MuiTextField, __spreadProps(__spreadValues({ ref }, fieldProps), { label }));
|
|
7093
7372
|
const helperText = error !== void 0 && (helperProp == null || helperProp === "" || typeof helperProp === "boolean") ? " " : helperProp;
|
|
7094
7373
|
const id = idProp != null ? idProp : generatedId;
|
|
7095
7374
|
const labelId = `${id}-label`;
|
|
7096
7375
|
const selectProps = slotProps == null ? void 0 : slotProps.select;
|
|
7097
7376
|
const selectSlot = rest.select ? { select: typeof selectProps === "function" ? (ownerState) => __spreadProps(__spreadValues({}, selectProps(ownerState)), { labelId }) : __spreadProps(__spreadValues({}, selectProps), { labelId }) } : {};
|
|
7098
|
-
return /* @__PURE__ */ jsxs20(FormControl, { ref, sx, className, style, fullWidth, margin, required, error, disabled, color,
|
|
7377
|
+
return /* @__PURE__ */ jsxs20(FormControl, { ref, sx, className, style, fullWidth, margin, required, error, disabled, color, children: [
|
|
7099
7378
|
/* @__PURE__ */ jsx46(FormLabel, { id: labelId, htmlFor: id, children: label }),
|
|
7100
7379
|
/* @__PURE__ */ jsx46(
|
|
7101
7380
|
MuiTextField,
|
|
@@ -7107,17 +7386,9 @@ var TextField3 = React19.forwardRef(function TextField4(_a, ref) {
|
|
|
7107
7386
|
error,
|
|
7108
7387
|
disabled,
|
|
7109
7388
|
color,
|
|
7110
|
-
focused
|
|
7389
|
+
focused,
|
|
7111
7390
|
helperText,
|
|
7112
|
-
slotProps: __spreadValues(__spreadValues({}, slotProps), selectSlot)
|
|
7113
|
-
onFocus: (e) => {
|
|
7114
|
-
setHasFocus(true);
|
|
7115
|
-
onFocus == null ? void 0 : onFocus(e);
|
|
7116
|
-
},
|
|
7117
|
-
onBlur: (e) => {
|
|
7118
|
-
setHasFocus(false);
|
|
7119
|
-
onBlur == null ? void 0 : onBlur(e);
|
|
7120
|
-
}
|
|
7391
|
+
slotProps: __spreadValues(__spreadValues({}, slotProps), selectSlot)
|
|
7121
7392
|
})
|
|
7122
7393
|
)
|
|
7123
7394
|
] });
|
|
@@ -7188,6 +7459,46 @@ var getUsageTone = (count, limit, warningThreshold, criticalThreshold) => {
|
|
|
7188
7459
|
return "success";
|
|
7189
7460
|
};
|
|
7190
7461
|
var sumOf = (items, pick) => items.reduce((sum, item) => sum + Math.max(0, pick(item)), 0);
|
|
7462
|
+
var itemsOf = (section) => {
|
|
7463
|
+
var _a, _b;
|
|
7464
|
+
return [].concat((_a = section.items) != null ? _a : [], ...((_b = section.groups) != null ? _b : []).map((group) => group.items));
|
|
7465
|
+
};
|
|
7466
|
+
var TrialBadgeUsageRow = ({ item, warningThreshold, criticalThreshold }) => {
|
|
7467
|
+
const count = Math.max(0, item.count);
|
|
7468
|
+
const tone = getUsageTone(count, item.limit, warningThreshold, criticalThreshold);
|
|
7469
|
+
const value = item.limit > 0 ? Math.min(100, count / item.limit * 100) : 0;
|
|
7470
|
+
const label = typeof item.label === "string" ? item.label : void 0;
|
|
7471
|
+
return /* @__PURE__ */ jsxs22(
|
|
7472
|
+
Box19,
|
|
7473
|
+
{
|
|
7474
|
+
"data-tone": tone,
|
|
7475
|
+
sx: {
|
|
7476
|
+
display: "grid",
|
|
7477
|
+
gridTemplateColumns: "1fr 80px 32px",
|
|
7478
|
+
alignItems: "center",
|
|
7479
|
+
columnGap: 1.5
|
|
7480
|
+
},
|
|
7481
|
+
children: [
|
|
7482
|
+
/* @__PURE__ */ jsx48(Typography14, { variant: "caption", color: "text.secondary", noWrap: true, sx: { fontSize: "0.75rem" }, children: item.label }),
|
|
7483
|
+
/* @__PURE__ */ jsx48(
|
|
7484
|
+
LinearProgress,
|
|
7485
|
+
{
|
|
7486
|
+
variant: "determinate",
|
|
7487
|
+
value,
|
|
7488
|
+
color: tone,
|
|
7489
|
+
"aria-label": label != null ? label : "Usage",
|
|
7490
|
+
sx: { height: 4, borderRadius: 999, bgcolor: "action.hover" }
|
|
7491
|
+
}
|
|
7492
|
+
),
|
|
7493
|
+
/* @__PURE__ */ jsxs22(Typography14, { variant: "caption", color: "text.secondary", sx: { textAlign: "right", fontSize: "0.75rem" }, children: [
|
|
7494
|
+
/* @__PURE__ */ jsx48(Box19, { component: "span", sx: { fontWeight: 700, color: "text.primary" }, children: count }),
|
|
7495
|
+
"/",
|
|
7496
|
+
item.limit
|
|
7497
|
+
] })
|
|
7498
|
+
]
|
|
7499
|
+
}
|
|
7500
|
+
);
|
|
7501
|
+
};
|
|
7191
7502
|
var TrialBadgeUsagePanel = ({ usage }) => {
|
|
7192
7503
|
var _a, _b, _c, _d, _e;
|
|
7193
7504
|
const {
|
|
@@ -7201,7 +7512,7 @@ var TrialBadgeUsagePanel = ({ usage }) => {
|
|
|
7201
7512
|
const sections = (_c = usage.sections) != null ? _c : [
|
|
7202
7513
|
{ title: (_a = usage.title) != null ? _a : "Components left", items: (_b = usage.items) != null ? _b : [], totalSuffix: usage.totalSuffix }
|
|
7203
7514
|
];
|
|
7204
|
-
const allItems = [].concat(...sections.map(
|
|
7515
|
+
const allItems = [].concat(...sections.map(itemsOf));
|
|
7205
7516
|
const totalTone = getUsageTone(
|
|
7206
7517
|
sumOf(allItems, (item) => item.count),
|
|
7207
7518
|
sumOf(allItems, (item) => item.limit),
|
|
@@ -7257,9 +7568,10 @@ var TrialBadgeUsagePanel = ({ usage }) => {
|
|
|
7257
7568
|
}
|
|
7258
7569
|
),
|
|
7259
7570
|
sections.map((section, index) => {
|
|
7260
|
-
var _a2, _b2;
|
|
7261
|
-
const
|
|
7262
|
-
const
|
|
7571
|
+
var _a2, _b2, _c2, _d2;
|
|
7572
|
+
const sectionItems = itemsOf(section);
|
|
7573
|
+
const sectionCount = sumOf(sectionItems, (item) => item.count);
|
|
7574
|
+
const sectionLimit = sumOf(sectionItems, (item) => item.limit);
|
|
7263
7575
|
return /* @__PURE__ */ jsxs22(
|
|
7264
7576
|
CardContent3,
|
|
7265
7577
|
{
|
|
@@ -7284,51 +7596,58 @@ var TrialBadgeUsagePanel = ({ usage }) => {
|
|
|
7284
7596
|
section.totalSuffix
|
|
7285
7597
|
] }) : null
|
|
7286
7598
|
] }),
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
sx: {
|
|
7297
|
-
display: "grid",
|
|
7298
|
-
gridTemplateColumns: "1fr 80px 32px",
|
|
7299
|
-
alignItems: "center",
|
|
7300
|
-
columnGap: 1.5
|
|
7599
|
+
/* @__PURE__ */ jsxs22(Box19, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
7600
|
+
((_c2 = section.items) != null ? _c2 : []).map((item, itemIndex) => {
|
|
7601
|
+
var _a3, _b3;
|
|
7602
|
+
return /* @__PURE__ */ jsx48(
|
|
7603
|
+
TrialBadgeUsageRow,
|
|
7604
|
+
{
|
|
7605
|
+
item,
|
|
7606
|
+
warningThreshold,
|
|
7607
|
+
criticalThreshold
|
|
7301
7608
|
},
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
)
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7609
|
+
(_b3 = (_a3 = item.key) != null ? _a3 : textOf(item.label)) != null ? _b3 : itemIndex
|
|
7610
|
+
);
|
|
7611
|
+
}),
|
|
7612
|
+
((_d2 = section.groups) != null ? _d2 : []).map((group, groupIndex) => {
|
|
7613
|
+
var _a3, _b3, _c3;
|
|
7614
|
+
const rows = group.items.map((item, itemIndex) => {
|
|
7615
|
+
var _a4, _b4;
|
|
7616
|
+
return /* @__PURE__ */ jsx48(
|
|
7617
|
+
TrialBadgeUsageRow,
|
|
7618
|
+
{
|
|
7619
|
+
item,
|
|
7620
|
+
warningThreshold,
|
|
7621
|
+
criticalThreshold
|
|
7622
|
+
},
|
|
7623
|
+
(_b4 = (_a4 = item.key) != null ? _a4 : textOf(item.label)) != null ? _b4 : itemIndex
|
|
7624
|
+
);
|
|
7625
|
+
});
|
|
7626
|
+
if (group.title == null) {
|
|
7627
|
+
return /* @__PURE__ */ jsx48(React20.Fragment, { children: rows }, (_a3 = group.key) != null ? _a3 : groupIndex);
|
|
7628
|
+
}
|
|
7629
|
+
return /* @__PURE__ */ jsxs22(
|
|
7630
|
+
Box19,
|
|
7631
|
+
{
|
|
7632
|
+
role: "group",
|
|
7633
|
+
"aria-label": textOf(group.title),
|
|
7634
|
+
children: [
|
|
7635
|
+
/* @__PURE__ */ jsx48(
|
|
7636
|
+
Typography14,
|
|
7637
|
+
{
|
|
7638
|
+
variant: "caption",
|
|
7639
|
+
color: "text.secondary",
|
|
7640
|
+
sx: { display: "block", fontSize: "0.75rem", mb: 1 },
|
|
7641
|
+
children: group.title
|
|
7642
|
+
}
|
|
7643
|
+
),
|
|
7644
|
+
/* @__PURE__ */ jsx48(Box19, { sx: { display: "flex", flexDirection: "column", gap: 1, pl: 1.5 }, children: rows })
|
|
7645
|
+
]
|
|
7646
|
+
},
|
|
7647
|
+
(_c3 = (_b3 = group.key) != null ? _b3 : textOf(group.title)) != null ? _c3 : groupIndex
|
|
7648
|
+
);
|
|
7649
|
+
})
|
|
7650
|
+
] })
|
|
7332
7651
|
]
|
|
7333
7652
|
},
|
|
7334
7653
|
(_b2 = (_a2 = section.key) != null ? _a2 : textOf(section.title)) != null ? _b2 : index
|
|
@@ -9060,6 +9379,7 @@ var AppSwitcherSection = ({
|
|
|
9060
9379
|
children,
|
|
9061
9380
|
apps,
|
|
9062
9381
|
label,
|
|
9382
|
+
"aria-label": ariaLabel,
|
|
9063
9383
|
columns = 3,
|
|
9064
9384
|
loading = false,
|
|
9065
9385
|
loadingCount
|
|
@@ -9137,6 +9457,7 @@ var AppSwitcherSection = ({
|
|
|
9137
9457
|
ownerState: { columns },
|
|
9138
9458
|
role: "list",
|
|
9139
9459
|
"aria-labelledby": label ? labelId : void 0,
|
|
9460
|
+
"aria-label": label ? void 0 : ariaLabel,
|
|
9140
9461
|
"aria-busy": loading ? "true" : void 0,
|
|
9141
9462
|
onKeyDown: handleKeyDown,
|
|
9142
9463
|
children: React36.Children.map(
|
|
@@ -9167,7 +9488,8 @@ var AppSwitcherFooterRoot = styled32(Box30, {
|
|
|
9167
9488
|
var AppSwitcherFooter = ({
|
|
9168
9489
|
children,
|
|
9169
9490
|
links,
|
|
9170
|
-
label
|
|
9491
|
+
label,
|
|
9492
|
+
"aria-label": ariaLabel = "Manage",
|
|
9171
9493
|
columns = 3,
|
|
9172
9494
|
loading = false,
|
|
9173
9495
|
loadingCount
|
|
@@ -9180,6 +9502,7 @@ var AppSwitcherFooter = ({
|
|
|
9180
9502
|
AppSwitcherSection,
|
|
9181
9503
|
{
|
|
9182
9504
|
label,
|
|
9505
|
+
"aria-label": ariaLabel,
|
|
9183
9506
|
columns,
|
|
9184
9507
|
loading,
|
|
9185
9508
|
loadingCount,
|