@wso2/oxygen-ui 0.10.1 → 0.11.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/AppBreadcrumbs/AppBreadcrumbs.d.ts +44 -0
- package/dist/{styles/Themes/ChoreoTheme.d.ts → components/AppBreadcrumbs/index.d.ts} +3 -4
- package/dist/components/ColorSchemeSVG/ColorSchemeSVG.d.ts +19 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +789 -842
- package/dist/index.js.map +4 -4
- package/dist/styles/Themes/index.d.ts +0 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -419,7 +419,7 @@ var init_createOxygenTheme = __esm({
|
|
|
419
419
|
// package.json
|
|
420
420
|
var package_default = {
|
|
421
421
|
name: "@wso2/oxygen-ui",
|
|
422
|
-
version: "0.
|
|
422
|
+
version: "0.11.0",
|
|
423
423
|
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
424
424
|
type: "module",
|
|
425
425
|
main: "./dist/index.js",
|
|
@@ -955,250 +955,6 @@ if (AcrylicPurpleTheme.vars) {
|
|
|
955
955
|
}
|
|
956
956
|
var AcrylicPurpleTheme_default = AcrylicPurpleTheme;
|
|
957
957
|
|
|
958
|
-
// src/styles/Themes/ChoreoTheme.ts
|
|
959
|
-
init_OxygenThemeBase();
|
|
960
|
-
init_createOxygenTheme();
|
|
961
|
-
var ChoreoThemeConfig = {
|
|
962
|
-
shape: {
|
|
963
|
-
borderRadius: 8
|
|
964
|
-
},
|
|
965
|
-
colorSchemes: {
|
|
966
|
-
light: {
|
|
967
|
-
palette: {
|
|
968
|
-
primary: {
|
|
969
|
-
main: "#5567d5",
|
|
970
|
-
mainChannel: "85 103 213",
|
|
971
|
-
light: "#7a8aef",
|
|
972
|
-
dark: "#3d4db0",
|
|
973
|
-
contrastText: "#ffffff"
|
|
974
|
-
},
|
|
975
|
-
secondary: {
|
|
976
|
-
main: "#8d91a3",
|
|
977
|
-
light: "#f7f8fb",
|
|
978
|
-
dark: "#40404b"
|
|
979
|
-
},
|
|
980
|
-
error: {
|
|
981
|
-
main: "#ef4444",
|
|
982
|
-
light: "#f87171",
|
|
983
|
-
dark: "#dc2626"
|
|
984
|
-
},
|
|
985
|
-
warning: {
|
|
986
|
-
main: "#f59e0b",
|
|
987
|
-
light: "#fbbf24",
|
|
988
|
-
dark: "#d97706"
|
|
989
|
-
},
|
|
990
|
-
success: {
|
|
991
|
-
main: "#22c55e",
|
|
992
|
-
light: "#4ade80",
|
|
993
|
-
dark: "#16a34a"
|
|
994
|
-
},
|
|
995
|
-
info: {
|
|
996
|
-
main: "#5567d5",
|
|
997
|
-
light: "#7a8aef",
|
|
998
|
-
dark: "#3d4db0"
|
|
999
|
-
},
|
|
1000
|
-
background: {
|
|
1001
|
-
default: "#f7f8fb",
|
|
1002
|
-
paper: "#ffffff"
|
|
1003
|
-
},
|
|
1004
|
-
text: {
|
|
1005
|
-
primary: "#1d2028",
|
|
1006
|
-
secondary: "#4a4a5a",
|
|
1007
|
-
disabled: "#9ca3af"
|
|
1008
|
-
},
|
|
1009
|
-
divider: "#e6e7ec",
|
|
1010
|
-
action: {
|
|
1011
|
-
active: "rgba(85, 103, 213, 0.56)",
|
|
1012
|
-
hover: "rgba(85, 103, 213, 0.08)",
|
|
1013
|
-
selected: "rgba(85, 103, 213, 0.16)",
|
|
1014
|
-
selectedOpacity: 0.16,
|
|
1015
|
-
focus: "rgba(85, 103, 213, 0.24)"
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
},
|
|
1019
|
-
dark: {
|
|
1020
|
-
palette: {
|
|
1021
|
-
primary: {
|
|
1022
|
-
main: "#6b7de0",
|
|
1023
|
-
mainChannel: "107 125 224",
|
|
1024
|
-
light: "#8b9aef",
|
|
1025
|
-
dark: "#5567d5",
|
|
1026
|
-
contrastText: "#ffffff"
|
|
1027
|
-
},
|
|
1028
|
-
secondary: {
|
|
1029
|
-
main: "#4a4e5e",
|
|
1030
|
-
light: "#6b7280",
|
|
1031
|
-
dark: "#2d2d35"
|
|
1032
|
-
},
|
|
1033
|
-
error: {
|
|
1034
|
-
main: "#f87171",
|
|
1035
|
-
light: "#fca5a5",
|
|
1036
|
-
dark: "#ef4444"
|
|
1037
|
-
},
|
|
1038
|
-
warning: {
|
|
1039
|
-
main: "#fbbf24",
|
|
1040
|
-
light: "#fcd34d",
|
|
1041
|
-
dark: "#f59e0b"
|
|
1042
|
-
},
|
|
1043
|
-
success: {
|
|
1044
|
-
main: "#4ade80",
|
|
1045
|
-
light: "#86efac",
|
|
1046
|
-
dark: "#22c55e"
|
|
1047
|
-
},
|
|
1048
|
-
info: {
|
|
1049
|
-
main: "#6b7de0",
|
|
1050
|
-
light: "#8b9aef",
|
|
1051
|
-
dark: "#5567d5"
|
|
1052
|
-
},
|
|
1053
|
-
background: {
|
|
1054
|
-
default: "#0d0d14",
|
|
1055
|
-
paper: "#1a1a24"
|
|
1056
|
-
},
|
|
1057
|
-
text: {
|
|
1058
|
-
primary: "#efefef",
|
|
1059
|
-
secondary: "#d0d3e2",
|
|
1060
|
-
disabled: "#6b7280"
|
|
1061
|
-
},
|
|
1062
|
-
divider: "#ffffff16",
|
|
1063
|
-
action: {
|
|
1064
|
-
active: "rgba(107, 125, 224, 0.56)",
|
|
1065
|
-
hover: "rgba(107, 125, 224, 0.12)",
|
|
1066
|
-
selected: "rgba(107, 125, 224, 0.24)",
|
|
1067
|
-
selectedOpacity: 0.24,
|
|
1068
|
-
focus: "rgba(107, 125, 224, 0.32)"
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
components: {
|
|
1074
|
-
MuiButton: {
|
|
1075
|
-
styleOverrides: {
|
|
1076
|
-
root: {
|
|
1077
|
-
textTransform: "none",
|
|
1078
|
-
fontWeight: 400
|
|
1079
|
-
},
|
|
1080
|
-
containedPrimary: () => ({
|
|
1081
|
-
"&:not(:disabled)": {
|
|
1082
|
-
background: "linear-gradient(77.74deg, #4a5bc8 11.16%, #745bcc 99.55%) !important",
|
|
1083
|
-
color: "#fff !important",
|
|
1084
|
-
"&:hover": {
|
|
1085
|
-
background: "linear-gradient(77.74deg, #4a5bc8 11.16%, #745bcc 99.55%) !important",
|
|
1086
|
-
opacity: 0.9,
|
|
1087
|
-
color: "#fff !important"
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
})
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
MuiButtonBase: {
|
|
1094
|
-
styleOverrides: {
|
|
1095
|
-
root: {
|
|
1096
|
-
"&.Mui-focusVisible": {
|
|
1097
|
-
outline: "2px solid currentColor",
|
|
1098
|
-
outlineOffset: "2px"
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
MuiPaper: {
|
|
1104
|
-
styleOverrides: {
|
|
1105
|
-
root: ({ theme }) => ({
|
|
1106
|
-
borderRadius: theme.shape.borderRadius,
|
|
1107
|
-
border: `1px solid ${theme.vars.palette.divider}`,
|
|
1108
|
-
boxShadow: "0 0 1px rgba(141,145,163,0.4), 0 1px 2px rgba(203,206,219,0.3)"
|
|
1109
|
-
})
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
MuiAppBar: {
|
|
1113
|
-
styleOverrides: {
|
|
1114
|
-
root: ({ theme }) => ({
|
|
1115
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
1116
|
-
borderBottom: `1px solid ${theme.vars.palette.divider}`,
|
|
1117
|
-
boxShadow: "none"
|
|
1118
|
-
})
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
MuiTextField: {
|
|
1122
|
-
defaultProps: {
|
|
1123
|
-
size: "small"
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
MuiOutlinedInput: {
|
|
1127
|
-
styleOverrides: {
|
|
1128
|
-
root: ({ theme }) => ({
|
|
1129
|
-
fontSize: theme.typography.body2.fontSize
|
|
1130
|
-
}),
|
|
1131
|
-
notchedOutline: ({ theme }) => ({
|
|
1132
|
-
borderColor: theme.vars.palette.divider
|
|
1133
|
-
})
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
|
-
MuiTableRow: {
|
|
1137
|
-
styleOverrides: {
|
|
1138
|
-
root: {
|
|
1139
|
-
"&.Mui-selected": {
|
|
1140
|
-
backgroundColor: "rgba(85, 103, 213, 0.16)",
|
|
1141
|
-
"&:hover": {
|
|
1142
|
-
backgroundColor: "rgba(85, 103, 213, 0.24)"
|
|
1143
|
-
}
|
|
1144
|
-
},
|
|
1145
|
-
"[data-color-scheme='dark'] &.Mui-selected": {
|
|
1146
|
-
backgroundColor: "rgba(107, 125, 224, 0.24)",
|
|
1147
|
-
"&:hover": {
|
|
1148
|
-
backgroundColor: "rgba(107, 125, 224, 0.32)"
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
MuiTooltip: {
|
|
1155
|
-
styleOverrides: {
|
|
1156
|
-
tooltip: ({ theme }) => ({
|
|
1157
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
1158
|
-
color: theme.vars.palette.text.primary,
|
|
1159
|
-
border: `1px solid ${theme.vars.palette.divider}`,
|
|
1160
|
-
fontSize: theme.typography.caption.fontSize
|
|
1161
|
-
})
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
var choreoGradient = {
|
|
1167
|
-
gradient: {
|
|
1168
|
-
primary: "linear-gradient(77.74deg, #4a5bc8 11.16%, #745bcc 99.55%)"
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
var choreoSyntax = {
|
|
1172
|
-
syntax: {
|
|
1173
|
-
light: {
|
|
1174
|
-
background: "#f8f9fc",
|
|
1175
|
-
text: "#1d2028",
|
|
1176
|
-
comment: "#8d91a3",
|
|
1177
|
-
keyword: "#5567d5",
|
|
1178
|
-
string: "#16a34a",
|
|
1179
|
-
function: "#745bcc",
|
|
1180
|
-
number: "#ea580c",
|
|
1181
|
-
operator: "#40404b"
|
|
1182
|
-
},
|
|
1183
|
-
dark: {
|
|
1184
|
-
background: "#0d0d14",
|
|
1185
|
-
text: "#e4e4ef",
|
|
1186
|
-
comment: "#6b7280",
|
|
1187
|
-
keyword: "#6b7de0",
|
|
1188
|
-
string: "#4ade80",
|
|
1189
|
-
function: "#a78bfa",
|
|
1190
|
-
number: "#fb923c",
|
|
1191
|
-
operator: "#d0d3e2"
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
};
|
|
1195
|
-
var ChoreoTheme = createOxygenTheme(ChoreoThemeConfig, OxygenThemeBase_default);
|
|
1196
|
-
Object.assign(ChoreoTheme, choreoGradient, choreoSyntax);
|
|
1197
|
-
if (ChoreoTheme.vars) {
|
|
1198
|
-
Object.assign(ChoreoTheme.vars, choreoGradient, choreoSyntax);
|
|
1199
|
-
}
|
|
1200
|
-
var ChoreoTheme_default = ChoreoTheme;
|
|
1201
|
-
|
|
1202
958
|
// src/styles/Themes/ClassicTheme.ts
|
|
1203
959
|
init_OxygenThemeBase();
|
|
1204
960
|
init_createOxygenTheme();
|
|
@@ -2303,8 +2059,154 @@ function OxygenUIThemeProvider({
|
|
|
2303
2059
|
return content;
|
|
2304
2060
|
}
|
|
2305
2061
|
|
|
2062
|
+
// src/components/AppBreadcrumbs/AppBreadcrumbs.tsx
|
|
2063
|
+
import Breadcrumbs from "@mui/material/Breadcrumbs";
|
|
2064
|
+
import MenuItem from "@mui/material/MenuItem";
|
|
2065
|
+
import MenuList from "@mui/material/MenuList";
|
|
2066
|
+
import Paper from "@mui/material/Paper";
|
|
2067
|
+
import Popper from "@mui/material/Popper";
|
|
2068
|
+
import Typography from "@mui/material/Typography";
|
|
2069
|
+
import { styled } from "@mui/material/styles";
|
|
2070
|
+
import { ChevronRight } from "@wso2/oxygen-ui-icons-react";
|
|
2071
|
+
import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
|
|
2072
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2073
|
+
var AppBreadcrumbsRoot = styled("div", {
|
|
2074
|
+
name: "MuiAppBreadcrumbs",
|
|
2075
|
+
slot: "Root"
|
|
2076
|
+
})({
|
|
2077
|
+
display: "inline-flex",
|
|
2078
|
+
alignItems: "center"
|
|
2079
|
+
});
|
|
2080
|
+
var AppBreadcrumbsItem = styled(Typography, {
|
|
2081
|
+
name: "MuiAppBreadcrumbs",
|
|
2082
|
+
slot: "Item"
|
|
2083
|
+
})(
|
|
2084
|
+
({ theme, ownerState }) => {
|
|
2085
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2086
|
+
return ownerState.isLast ? {
|
|
2087
|
+
whiteSpace: "nowrap",
|
|
2088
|
+
color: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.text.primary) != null ? _b : theme.palette.text.primary
|
|
2089
|
+
} : {
|
|
2090
|
+
cursor: "pointer",
|
|
2091
|
+
whiteSpace: "nowrap",
|
|
2092
|
+
color: (_d = (_c = theme.vars) == null ? void 0 : _c.palette.text.secondary) != null ? _d : theme.palette.text.secondary,
|
|
2093
|
+
"&:hover": {
|
|
2094
|
+
textDecoration: "underline",
|
|
2095
|
+
color: (_f = (_e = theme.vars) == null ? void 0 : _e.palette.text.primary) != null ? _f : theme.palette.text.primary
|
|
2096
|
+
}
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
);
|
|
2100
|
+
var AppBreadcrumbsEllipsis = styled(Typography, {
|
|
2101
|
+
name: "MuiAppBreadcrumbs",
|
|
2102
|
+
slot: "Ellipsis"
|
|
2103
|
+
})(({ theme, ownerState }) => {
|
|
2104
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2105
|
+
return {
|
|
2106
|
+
cursor: "pointer",
|
|
2107
|
+
whiteSpace: "nowrap",
|
|
2108
|
+
userSelect: "none",
|
|
2109
|
+
px: 0.5,
|
|
2110
|
+
borderRadius: theme.shape.borderRadius,
|
|
2111
|
+
color: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.text.secondary) != null ? _b : theme.palette.text.secondary,
|
|
2112
|
+
backgroundColor: ownerState.active ? (_d = (_c = theme.vars) == null ? void 0 : _c.palette.action.hover) != null ? _d : theme.palette.action.hover : "transparent",
|
|
2113
|
+
"&:hover": {
|
|
2114
|
+
backgroundColor: (_f = (_e = theme.vars) == null ? void 0 : _e.palette.action.hover) != null ? _f : theme.palette.action.hover
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
});
|
|
2118
|
+
function AppBreadcrumbs(_a) {
|
|
2119
|
+
var _b = _a, { items, maxItems = 4, sx } = _b, props = __objRest(_b, ["items", "maxItems", "sx"]);
|
|
2120
|
+
const [anchorEl, setAnchorEl] = useState2(null);
|
|
2121
|
+
const [ellipsisHovered, setEllipsisHovered] = useState2(false);
|
|
2122
|
+
const ellipsisRef = useRef(null);
|
|
2123
|
+
const popperRef = useRef(null);
|
|
2124
|
+
const open = Boolean(anchorEl);
|
|
2125
|
+
useEffect2(() => {
|
|
2126
|
+
if (!open) return void 0;
|
|
2127
|
+
const handleDocumentClick = (e) => {
|
|
2128
|
+
var _a2, _b2;
|
|
2129
|
+
const target = e.target;
|
|
2130
|
+
if (((_a2 = ellipsisRef.current) == null ? void 0 : _a2.contains(target)) || ((_b2 = popperRef.current) == null ? void 0 : _b2.contains(target))) {
|
|
2131
|
+
return;
|
|
2132
|
+
}
|
|
2133
|
+
setAnchorEl(null);
|
|
2134
|
+
};
|
|
2135
|
+
document.addEventListener("click", handleDocumentClick);
|
|
2136
|
+
return () => document.removeEventListener("click", handleDocumentClick);
|
|
2137
|
+
}, [open]);
|
|
2138
|
+
const handleEllipsisClick = (e) => {
|
|
2139
|
+
ellipsisRef.current = e.currentTarget;
|
|
2140
|
+
setAnchorEl(open ? null : e.currentTarget);
|
|
2141
|
+
};
|
|
2142
|
+
const handleMenuItemClick = (item) => {
|
|
2143
|
+
var _a2;
|
|
2144
|
+
setAnchorEl(null);
|
|
2145
|
+
(_a2 = item.onClick) == null ? void 0 : _a2.call(item);
|
|
2146
|
+
};
|
|
2147
|
+
const shouldTruncate = items.length > maxItems;
|
|
2148
|
+
const visibleItems = shouldTruncate ? [items[0], ...items.slice(items.length - 2)] : items;
|
|
2149
|
+
const hiddenItems = shouldTruncate ? items.slice(1, items.length - 2) : [];
|
|
2150
|
+
const renderItem = (item, isLast) => /* @__PURE__ */ jsx2(
|
|
2151
|
+
AppBreadcrumbsItem,
|
|
2152
|
+
{
|
|
2153
|
+
variant: "h5",
|
|
2154
|
+
ownerState: { isLast },
|
|
2155
|
+
role: isLast ? void 0 : "button",
|
|
2156
|
+
tabIndex: isLast ? void 0 : 0,
|
|
2157
|
+
onClick: isLast ? void 0 : item.onClick,
|
|
2158
|
+
onKeyDown: isLast ? void 0 : (e) => {
|
|
2159
|
+
var _a2;
|
|
2160
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
2161
|
+
e.preventDefault();
|
|
2162
|
+
(_a2 = item.onClick) == null ? void 0 : _a2.call(item);
|
|
2163
|
+
}
|
|
2164
|
+
},
|
|
2165
|
+
children: item.label
|
|
2166
|
+
},
|
|
2167
|
+
item.key
|
|
2168
|
+
);
|
|
2169
|
+
const breadcrumbChildren = [];
|
|
2170
|
+
if (shouldTruncate) {
|
|
2171
|
+
breadcrumbChildren.push(renderItem(visibleItems[0], false));
|
|
2172
|
+
breadcrumbChildren.push(
|
|
2173
|
+
/* @__PURE__ */ jsx2(
|
|
2174
|
+
AppBreadcrumbsEllipsis,
|
|
2175
|
+
{
|
|
2176
|
+
variant: "h5",
|
|
2177
|
+
ownerState: { active: ellipsisHovered || open },
|
|
2178
|
+
onClick: handleEllipsisClick,
|
|
2179
|
+
onMouseEnter: () => setEllipsisHovered(true),
|
|
2180
|
+
onMouseLeave: () => setEllipsisHovered(false),
|
|
2181
|
+
children: "..."
|
|
2182
|
+
},
|
|
2183
|
+
"__ellipsis__"
|
|
2184
|
+
)
|
|
2185
|
+
);
|
|
2186
|
+
breadcrumbChildren.push(renderItem(visibleItems[1], false));
|
|
2187
|
+
breadcrumbChildren.push(renderItem(visibleItems[2], true));
|
|
2188
|
+
} else {
|
|
2189
|
+
items.forEach((item, index) => {
|
|
2190
|
+
breadcrumbChildren.push(renderItem(item, index === items.length - 1));
|
|
2191
|
+
});
|
|
2192
|
+
}
|
|
2193
|
+
return /* @__PURE__ */ jsxs2(AppBreadcrumbsRoot, __spreadProps(__spreadValues({ sx }, props), { children: [
|
|
2194
|
+
/* @__PURE__ */ jsx2(
|
|
2195
|
+
Breadcrumbs,
|
|
2196
|
+
{
|
|
2197
|
+
separator: /* @__PURE__ */ jsx2(ChevronRight, { size: 16 }),
|
|
2198
|
+
"aria-label": "breadcrumb",
|
|
2199
|
+
sx: { "& ol": { flexWrap: "nowrap", alignItems: "center" } },
|
|
2200
|
+
children: breadcrumbChildren
|
|
2201
|
+
}
|
|
2202
|
+
),
|
|
2203
|
+
/* @__PURE__ */ jsx2(Popper, { open, anchorEl, placement: "bottom-start", sx: { zIndex: 1400 }, children: /* @__PURE__ */ jsx2(Paper, { ref: popperRef, elevation: 3, sx: { minWidth: 160, mt: 0.5 }, children: /* @__PURE__ */ jsx2(MenuList, { dense: true, children: hiddenItems.map((item) => /* @__PURE__ */ jsx2(MenuItem, { onClick: () => handleMenuItemClick(item), children: /* @__PURE__ */ jsx2(Typography, { variant: "body2", children: item.label }) }, item.key)) }) }) })
|
|
2204
|
+
] }));
|
|
2205
|
+
}
|
|
2206
|
+
AppBreadcrumbs.displayName = "AppBreadcrumbs";
|
|
2207
|
+
|
|
2306
2208
|
// src/components/CodeBlock/CodeBlock.tsx
|
|
2307
|
-
import React2, { useEffect as
|
|
2209
|
+
import React2, { useEffect as useEffect3 } from "react";
|
|
2308
2210
|
import { Box, useTheme } from "@mui/material";
|
|
2309
2211
|
import Prism from "prismjs";
|
|
2310
2212
|
import "prismjs/components/prism-javascript";
|
|
@@ -2315,7 +2217,7 @@ import "prismjs/components/prism-css";
|
|
|
2315
2217
|
import "prismjs/components/prism-bash";
|
|
2316
2218
|
import "prismjs/components/prism-json";
|
|
2317
2219
|
import "prismjs/components/prism-markup";
|
|
2318
|
-
import { jsx as
|
|
2220
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
2319
2221
|
var CodeBlock = ({
|
|
2320
2222
|
code,
|
|
2321
2223
|
language = "tsx",
|
|
@@ -2338,7 +2240,7 @@ var CodeBlock = ({
|
|
|
2338
2240
|
});
|
|
2339
2241
|
return () => observer.disconnect();
|
|
2340
2242
|
}, [theme.palette.mode]);
|
|
2341
|
-
|
|
2243
|
+
useEffect3(() => {
|
|
2342
2244
|
Prism.highlightAll();
|
|
2343
2245
|
}, [code, language]);
|
|
2344
2246
|
const defaultColors = {
|
|
@@ -2352,7 +2254,7 @@ var CodeBlock = ({
|
|
|
2352
2254
|
operator: isDark ? "#d4d4d4" : "#d73a49"
|
|
2353
2255
|
};
|
|
2354
2256
|
const colors2 = (isDark ? (_b = (_a = theme.vars) == null ? void 0 : _a.syntax) == null ? void 0 : _b.dark : (_d = (_c = theme.vars) == null ? void 0 : _c.syntax) == null ? void 0 : _d.light) || defaultColors;
|
|
2355
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx3(
|
|
2356
2258
|
Box,
|
|
2357
2259
|
{
|
|
2358
2260
|
sx: __spreadValues({
|
|
@@ -2409,12 +2311,12 @@ var CodeBlock = ({
|
|
|
2409
2311
|
borderRight: `1px solid ${((_f = theme.vars) == null ? void 0 : _f.palette.divider) || theme.palette.divider}`
|
|
2410
2312
|
}
|
|
2411
2313
|
}),
|
|
2412
|
-
children: /* @__PURE__ */
|
|
2314
|
+
children: /* @__PURE__ */ jsx3(
|
|
2413
2315
|
Box,
|
|
2414
2316
|
{
|
|
2415
2317
|
component: "pre",
|
|
2416
2318
|
className: showLineNumbers ? "line-numbers" : "",
|
|
2417
|
-
children: /* @__PURE__ */
|
|
2319
|
+
children: /* @__PURE__ */ jsx3("code", { className: `language-${language}`, children: code })
|
|
2418
2320
|
}
|
|
2419
2321
|
)
|
|
2420
2322
|
}
|
|
@@ -2427,7 +2329,7 @@ var CodeBlock_default = CodeBlock;
|
|
|
2427
2329
|
import Box2 from "@mui/material/Box";
|
|
2428
2330
|
import { useColorScheme } from "@mui/material/styles";
|
|
2429
2331
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
2430
|
-
import { jsx as
|
|
2332
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
2431
2333
|
function ColorSchemeImage(_a) {
|
|
2432
2334
|
var _b = _a, { src, alt, width = 16, height = 16 } = _b, rest = __objRest(_b, ["src", "alt", "width", "height"]);
|
|
2433
2335
|
const { mode } = useColorScheme();
|
|
@@ -2445,12 +2347,14 @@ function ColorSchemeImage(_a) {
|
|
|
2445
2347
|
} else {
|
|
2446
2348
|
imageAlt = actualMode === "dark" ? alt.dark : alt.light;
|
|
2447
2349
|
}
|
|
2448
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsx4(Box2, __spreadValues({ component: "img", src: imageSrc, alt: imageAlt, width, height }, rest));
|
|
2449
2351
|
}
|
|
2450
2352
|
|
|
2451
2353
|
// src/components/ColorSchemeSVG/ColorSchemeSVG.tsx
|
|
2452
2354
|
import Box3 from "@mui/material/Box";
|
|
2453
|
-
import {
|
|
2355
|
+
import { useColorScheme as useColorScheme2 } from "@mui/material/styles";
|
|
2356
|
+
import useMediaQuery2 from "@mui/material/useMediaQuery";
|
|
2357
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2454
2358
|
function ColorSchemeSVG(_a) {
|
|
2455
2359
|
var _b = _a, {
|
|
2456
2360
|
children,
|
|
@@ -2465,16 +2369,34 @@ function ColorSchemeSVG(_a) {
|
|
|
2465
2369
|
"height",
|
|
2466
2370
|
"sx"
|
|
2467
2371
|
]);
|
|
2372
|
+
const wrapperRest = rest;
|
|
2373
|
+
const svgRest = rest;
|
|
2374
|
+
const { mode } = useColorScheme2();
|
|
2375
|
+
const prefersDark = useMediaQuery2("(prefers-color-scheme: dark)");
|
|
2376
|
+
const actualMode = mode === "system" ? prefersDark ? "dark" : "light" : mode != null ? mode : "light";
|
|
2377
|
+
const SelectedSvgComponent = SvgComponent && typeof SvgComponent === "object" && "light" in SvgComponent && "dark" in SvgComponent ? actualMode === "dark" ? SvgComponent.dark : SvgComponent.light : SvgComponent;
|
|
2468
2378
|
const colorSchemeStyles = {
|
|
2469
2379
|
color: "text.primary",
|
|
2470
2380
|
// Primary theme colors
|
|
2471
2381
|
'& [fill="primary"]': (theme) => ({ fill: theme.palette.primary.main }),
|
|
2382
|
+
'& [fill="primary.dark"]': (theme) => ({ fill: theme.palette.primary.dark }),
|
|
2383
|
+
'& [fill="primary.light"]': (theme) => ({ fill: theme.palette.primary.light }),
|
|
2384
|
+
'& [fill="primary.contrastText"]': (theme) => ({ fill: theme.palette.primary.contrastText }),
|
|
2472
2385
|
'& [fill="secondary"]': (theme) => ({ fill: theme.palette.secondary.main }),
|
|
2386
|
+
'& [fill="secondary.dark"]': (theme) => ({ fill: theme.palette.secondary.dark }),
|
|
2387
|
+
'& [fill="secondary.light"]': (theme) => ({ fill: theme.palette.secondary.light }),
|
|
2388
|
+
'& [fill="secondary.contrastText"]': (theme) => ({ fill: theme.palette.secondary.contrastText }),
|
|
2473
2389
|
'& [fill="accent"]': (theme) => ({ fill: theme.palette.success.main }),
|
|
2474
2390
|
'& [fill="muted"]': (theme) => ({ fill: theme.palette.grey[500] }),
|
|
2475
2391
|
// Stroke colors
|
|
2476
2392
|
'& [stroke="primary"]': (theme) => ({ stroke: theme.palette.primary.main }),
|
|
2393
|
+
'& [stroke="primary.dark"]': (theme) => ({ stroke: theme.palette.primary.dark }),
|
|
2394
|
+
'& [stroke="primary.light"]': (theme) => ({ stroke: theme.palette.primary.light }),
|
|
2395
|
+
'& [stroke="primary.contrastText"]': (theme) => ({ stroke: theme.palette.primary.contrastText }),
|
|
2477
2396
|
'& [stroke="secondary"]': (theme) => ({ stroke: theme.palette.secondary.main }),
|
|
2397
|
+
'& [stroke="secondary.dark"]': (theme) => ({ stroke: theme.palette.secondary.dark }),
|
|
2398
|
+
'& [stroke="secondary.light"]': (theme) => ({ stroke: theme.palette.secondary.light }),
|
|
2399
|
+
'& [stroke="secondary.contrastText"]': (theme) => ({ stroke: theme.palette.secondary.contrastText }),
|
|
2478
2400
|
'& [stroke="accent"]': (theme) => ({ stroke: theme.palette.success.main }),
|
|
2479
2401
|
'& [stroke="muted"]': (theme) => ({ stroke: theme.palette.grey[500] }),
|
|
2480
2402
|
// Text colors
|
|
@@ -2486,50 +2408,75 @@ function ColorSchemeSVG(_a) {
|
|
|
2486
2408
|
'& [fill="surface"]': (theme) => ({ fill: theme.palette.background.paper }),
|
|
2487
2409
|
// Status colors
|
|
2488
2410
|
'& [fill="error"]': (theme) => ({ fill: theme.palette.error.main }),
|
|
2411
|
+
'& [fill="error.dark"]': (theme) => ({ fill: theme.palette.error.dark }),
|
|
2412
|
+
'& [fill="error.light"]': (theme) => ({ fill: theme.palette.error.light }),
|
|
2413
|
+
'& [fill="error.contrastText"]': (theme) => ({ fill: theme.palette.error.contrastText }),
|
|
2489
2414
|
'& [fill="warning"]': (theme) => ({ fill: theme.palette.warning.main }),
|
|
2415
|
+
'& [fill="warning.dark"]': (theme) => ({ fill: theme.palette.warning.dark }),
|
|
2416
|
+
'& [fill="warning.light"]': (theme) => ({ fill: theme.palette.warning.light }),
|
|
2417
|
+
'& [fill="warning.contrastText"]': (theme) => ({ fill: theme.palette.warning.contrastText }),
|
|
2490
2418
|
'& [fill="info"]': (theme) => ({ fill: theme.palette.info.main }),
|
|
2419
|
+
'& [fill="info.dark"]': (theme) => ({ fill: theme.palette.info.dark }),
|
|
2420
|
+
'& [fill="info.light"]': (theme) => ({ fill: theme.palette.info.light }),
|
|
2421
|
+
'& [fill="info.contrastText"]': (theme) => ({ fill: theme.palette.info.contrastText }),
|
|
2491
2422
|
'& [fill="success"]': (theme) => ({ fill: theme.palette.success.main }),
|
|
2423
|
+
'& [fill="success.dark"]': (theme) => ({ fill: theme.palette.success.dark }),
|
|
2424
|
+
'& [fill="success.light"]': (theme) => ({ fill: theme.palette.success.light }),
|
|
2425
|
+
'& [fill="success.contrastText"]': (theme) => ({ fill: theme.palette.success.contrastText }),
|
|
2426
|
+
// Status colors for stroke
|
|
2492
2427
|
'& [stroke="error"]': (theme) => ({ stroke: theme.palette.error.main }),
|
|
2428
|
+
'& [stroke="error.dark"]': (theme) => ({ stroke: theme.palette.error.dark }),
|
|
2429
|
+
'& [stroke="error.light"]': (theme) => ({ stroke: theme.palette.error.light }),
|
|
2430
|
+
'& [stroke="error.contrastText"]': (theme) => ({ stroke: theme.palette.error.contrastText }),
|
|
2493
2431
|
'& [stroke="warning"]': (theme) => ({ stroke: theme.palette.warning.main }),
|
|
2432
|
+
'& [stroke="warning.dark"]': (theme) => ({ stroke: theme.palette.warning.dark }),
|
|
2433
|
+
'& [stroke="warning.light"]': (theme) => ({ stroke: theme.palette.warning.light }),
|
|
2434
|
+
'& [stroke="warning.contrastText"]': (theme) => ({ stroke: theme.palette.warning.contrastText }),
|
|
2494
2435
|
'& [stroke="info"]': (theme) => ({ stroke: theme.palette.info.main }),
|
|
2436
|
+
'& [stroke="info.dark"]': (theme) => ({ stroke: theme.palette.info.dark }),
|
|
2437
|
+
'& [stroke="info.light"]': (theme) => ({ stroke: theme.palette.info.light }),
|
|
2438
|
+
'& [stroke="info.contrastText"]': (theme) => ({ stroke: theme.palette.info.contrastText }),
|
|
2495
2439
|
'& [stroke="success"]': (theme) => ({ stroke: theme.palette.success.main }),
|
|
2440
|
+
'& [stroke="success.dark"]': (theme) => ({ stroke: theme.palette.success.dark }),
|
|
2441
|
+
'& [stroke="success.light"]': (theme) => ({ stroke: theme.palette.success.light }),
|
|
2442
|
+
'& [stroke="success.contrastText"]': (theme) => ({ stroke: theme.palette.success.contrastText }),
|
|
2496
2443
|
// Additional utility colors
|
|
2497
2444
|
'& [stroke="border"]': (theme) => ({ stroke: theme.palette.divider }),
|
|
2498
2445
|
'& [fill="highlight"]': (theme) => ({ fill: theme.palette.action.selected }),
|
|
2499
2446
|
'& [fill="hover"]': (theme) => ({ fill: theme.palette.action.hover })
|
|
2500
2447
|
};
|
|
2501
|
-
if (
|
|
2502
|
-
return /* @__PURE__ */
|
|
2448
|
+
if (SelectedSvgComponent) {
|
|
2449
|
+
return /* @__PURE__ */ jsx5(
|
|
2503
2450
|
Box3,
|
|
2504
2451
|
__spreadProps(__spreadValues({
|
|
2505
2452
|
sx: __spreadValues({
|
|
2506
2453
|
display: "inline-flex",
|
|
2507
2454
|
"& > svg": colorSchemeStyles
|
|
2508
2455
|
}, sx)
|
|
2509
|
-
},
|
|
2510
|
-
children: /* @__PURE__ */
|
|
2456
|
+
}, wrapperRest), {
|
|
2457
|
+
children: /* @__PURE__ */ jsx5(SelectedSvgComponent, { width, height })
|
|
2511
2458
|
})
|
|
2512
2459
|
);
|
|
2513
2460
|
}
|
|
2514
|
-
return /* @__PURE__ */
|
|
2461
|
+
return /* @__PURE__ */ jsx5(
|
|
2515
2462
|
Box3,
|
|
2516
2463
|
__spreadProps(__spreadValues({
|
|
2517
2464
|
component: "svg",
|
|
2518
2465
|
width,
|
|
2519
2466
|
height,
|
|
2520
2467
|
sx: __spreadValues(__spreadValues({}, colorSchemeStyles), sx)
|
|
2521
|
-
},
|
|
2468
|
+
}, svgRest), {
|
|
2522
2469
|
children
|
|
2523
2470
|
})
|
|
2524
2471
|
);
|
|
2525
2472
|
}
|
|
2526
2473
|
|
|
2527
2474
|
// src/components/ColorSchemeToggle/ColorSchemeToggle.tsx
|
|
2528
|
-
import { useColorScheme as
|
|
2475
|
+
import { useColorScheme as useColorScheme3 } from "@mui/material/styles";
|
|
2529
2476
|
import IconButton from "@mui/material/IconButton";
|
|
2530
2477
|
import { Moon, Monitor, Sun } from "@wso2/oxygen-ui-icons-react";
|
|
2531
2478
|
import { Tooltip } from "@mui/material";
|
|
2532
|
-
import { jsx as
|
|
2479
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
2533
2480
|
var ColorSchemeToggle = (_a) => {
|
|
2534
2481
|
var _b = _a, {
|
|
2535
2482
|
darkModeIcon,
|
|
@@ -2540,7 +2487,7 @@ var ColorSchemeToggle = (_a) => {
|
|
|
2540
2487
|
"lightModeIcon",
|
|
2541
2488
|
"systemModeIcon"
|
|
2542
2489
|
]);
|
|
2543
|
-
const { mode, setMode } =
|
|
2490
|
+
const { mode, setMode } = useColorScheme3();
|
|
2544
2491
|
if (!mode) {
|
|
2545
2492
|
return null;
|
|
2546
2493
|
}
|
|
@@ -2553,14 +2500,14 @@ var ColorSchemeToggle = (_a) => {
|
|
|
2553
2500
|
const ColorSchemeIcon = () => {
|
|
2554
2501
|
switch (currentMode) {
|
|
2555
2502
|
case "light":
|
|
2556
|
-
return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */
|
|
2503
|
+
return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx6(Sun, {});
|
|
2557
2504
|
case "dark":
|
|
2558
|
-
return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */
|
|
2505
|
+
return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx6(Moon, {});
|
|
2559
2506
|
default:
|
|
2560
|
-
return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */
|
|
2507
|
+
return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx6(Monitor, {});
|
|
2561
2508
|
}
|
|
2562
2509
|
};
|
|
2563
|
-
return /* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ jsx6(Tooltip, { title: `${currentMode.charAt(0).toUpperCase()}${currentMode.slice(1)} Mode`, children: /* @__PURE__ */ jsx6(IconButton, __spreadProps(__spreadValues({}, buttonProps), { onClick: () => setMode(nextMode(currentMode)), children: /* @__PURE__ */ jsx6(ColorSchemeIcon, {}) })) });
|
|
2564
2511
|
};
|
|
2565
2512
|
var ColorSchemeToggle_default = ColorSchemeToggle;
|
|
2566
2513
|
|
|
@@ -2570,13 +2517,13 @@ import MuiSelect, { selectClasses } from "@mui/material/Select";
|
|
|
2570
2517
|
import MuiFormControl from "@mui/material/FormControl";
|
|
2571
2518
|
import MuiInputLabel from "@mui/material/InputLabel";
|
|
2572
2519
|
import MuiTypography from "@mui/material/Typography";
|
|
2573
|
-
import { styled as
|
|
2520
|
+
import { styled as styled7 } from "@mui/material/styles";
|
|
2574
2521
|
|
|
2575
2522
|
// src/components/ComplexSelect/ComplexSelectListHeader.tsx
|
|
2576
2523
|
import MuiListSubheader from "@mui/material/ListSubheader";
|
|
2577
|
-
import { styled } from "@mui/material/styles";
|
|
2578
|
-
import { jsx as
|
|
2579
|
-
var StyledListSubheader =
|
|
2524
|
+
import { styled as styled2 } from "@mui/material/styles";
|
|
2525
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2526
|
+
var StyledListSubheader = styled2(MuiListSubheader, {
|
|
2580
2527
|
name: "MuiComplexSelectListHeader",
|
|
2581
2528
|
slot: "Root"
|
|
2582
2529
|
})(() => ({
|
|
@@ -2584,21 +2531,21 @@ var StyledListSubheader = styled(MuiListSubheader, {
|
|
|
2584
2531
|
}));
|
|
2585
2532
|
function ComplexSelectListHeader(_a) {
|
|
2586
2533
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2587
|
-
return /* @__PURE__ */
|
|
2534
|
+
return /* @__PURE__ */ jsx7(StyledListSubheader, __spreadProps(__spreadValues({}, props), { children }));
|
|
2588
2535
|
}
|
|
2589
2536
|
ComplexSelectListHeader.displayName = "ComplexSelect.ListHeader";
|
|
2590
2537
|
var ComplexSelectListHeader_default = ComplexSelectListHeader;
|
|
2591
2538
|
|
|
2592
2539
|
// src/components/ComplexSelect/ComplexSelectMenuItem.tsx
|
|
2593
2540
|
import MuiMenuItem from "@mui/material/MenuItem";
|
|
2594
|
-
import { styled as
|
|
2541
|
+
import { styled as styled5 } from "@mui/material/styles";
|
|
2595
2542
|
|
|
2596
2543
|
// src/components/ComplexSelect/ComplexSelectMenuItemAvatar.tsx
|
|
2597
|
-
import { styled as
|
|
2544
|
+
import { styled as styled3 } from "@mui/material/styles";
|
|
2598
2545
|
import MuiListItemAvatar from "@mui/material/ListItemAvatar";
|
|
2599
2546
|
import MuiAvatar from "@mui/material/Avatar";
|
|
2600
|
-
import { jsx as
|
|
2601
|
-
var StyledAvatar =
|
|
2547
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2548
|
+
var StyledAvatar = styled3(MuiAvatar, {
|
|
2602
2549
|
name: "MuiComplexSelectMenuItemAvatar",
|
|
2603
2550
|
slot: "Avatar"
|
|
2604
2551
|
})(({ theme }) => ({
|
|
@@ -2609,7 +2556,7 @@ var StyledAvatar = styled2(MuiAvatar, {
|
|
|
2609
2556
|
color: (theme.vars || theme).palette.text.secondary,
|
|
2610
2557
|
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
2611
2558
|
}));
|
|
2612
|
-
var StyledListItemAvatar =
|
|
2559
|
+
var StyledListItemAvatar = styled3(MuiListItemAvatar, {
|
|
2613
2560
|
name: "MuiComplexSelectMenuItemAvatar",
|
|
2614
2561
|
slot: "Root"
|
|
2615
2562
|
})({
|
|
@@ -2618,17 +2565,17 @@ var StyledListItemAvatar = styled2(MuiListItemAvatar, {
|
|
|
2618
2565
|
});
|
|
2619
2566
|
function ComplexSelectMenuItemAvatar(_a) {
|
|
2620
2567
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2621
|
-
return /* @__PURE__ */
|
|
2568
|
+
return /* @__PURE__ */ jsx8(StyledListItemAvatar, { children: /* @__PURE__ */ jsx8(StyledAvatar, __spreadProps(__spreadValues({}, props), { children })) });
|
|
2622
2569
|
}
|
|
2623
2570
|
ComplexSelectMenuItemAvatar.displayName = "ComplexSelect.MenuItemAvatar";
|
|
2624
2571
|
var ComplexSelectMenuItemAvatar_default = ComplexSelectMenuItemAvatar;
|
|
2625
2572
|
|
|
2626
2573
|
// src/components/ComplexSelect/ComplexSelectMenuItemText.tsx
|
|
2627
2574
|
import MuiListItemText from "@mui/material/ListItemText";
|
|
2628
|
-
import { jsx as
|
|
2575
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
2629
2576
|
function ComplexSelectMenuItemText(_a) {
|
|
2630
2577
|
var _b = _a, { primary, secondary } = _b, props = __objRest(_b, ["primary", "secondary"]);
|
|
2631
|
-
return /* @__PURE__ */
|
|
2578
|
+
return /* @__PURE__ */ jsx9(
|
|
2632
2579
|
MuiListItemText,
|
|
2633
2580
|
__spreadValues({
|
|
2634
2581
|
primary,
|
|
@@ -2642,9 +2589,9 @@ var ComplexSelectMenuItemText_default = ComplexSelectMenuItemText;
|
|
|
2642
2589
|
|
|
2643
2590
|
// src/components/ComplexSelect/ComplexSelectMenuItemIcon.tsx
|
|
2644
2591
|
import MuiListItemIcon from "@mui/material/ListItemIcon";
|
|
2645
|
-
import { styled as
|
|
2646
|
-
import { jsx as
|
|
2647
|
-
var StyledListItemIcon =
|
|
2592
|
+
import { styled as styled4 } from "@mui/material/styles";
|
|
2593
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
2594
|
+
var StyledListItemIcon = styled4(MuiListItemIcon, {
|
|
2648
2595
|
name: "MuiComplexSelectMenuItemIcon",
|
|
2649
2596
|
slot: "Root"
|
|
2650
2597
|
})(() => ({
|
|
@@ -2652,14 +2599,14 @@ var StyledListItemIcon = styled3(MuiListItemIcon, {
|
|
|
2652
2599
|
}));
|
|
2653
2600
|
function ComplexSelectMenuItemIcon(_a) {
|
|
2654
2601
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2655
|
-
return /* @__PURE__ */
|
|
2602
|
+
return /* @__PURE__ */ jsx10(StyledListItemIcon, __spreadProps(__spreadValues({}, props), { children }));
|
|
2656
2603
|
}
|
|
2657
2604
|
ComplexSelectMenuItemIcon.displayName = "ComplexSelect.MenuItemIcon";
|
|
2658
2605
|
var ComplexSelectMenuItemIcon_default = ComplexSelectMenuItemIcon;
|
|
2659
2606
|
|
|
2660
2607
|
// src/components/ComplexSelect/ComplexSelectMenuItem.tsx
|
|
2661
|
-
import { jsx as
|
|
2662
|
-
var StyledMenuItem =
|
|
2608
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
2609
|
+
var StyledMenuItem = styled5(MuiMenuItem, {
|
|
2663
2610
|
name: "MuiComplexSelectMenuItem",
|
|
2664
2611
|
slot: "Root"
|
|
2665
2612
|
})(({ theme }) => ({
|
|
@@ -2676,7 +2623,7 @@ var StyledMenuItem = styled4(MuiMenuItem, {
|
|
|
2676
2623
|
var ComplexSelectMenuItem = Object.assign(
|
|
2677
2624
|
(_a) => {
|
|
2678
2625
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2679
|
-
return /* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ jsx11(StyledMenuItem, __spreadProps(__spreadValues({}, props), { children }));
|
|
2680
2627
|
},
|
|
2681
2628
|
{
|
|
2682
2629
|
Avatar: ComplexSelectMenuItemAvatar_default,
|
|
@@ -2689,9 +2636,9 @@ var ComplexSelectMenuItem_default = ComplexSelectMenuItem;
|
|
|
2689
2636
|
|
|
2690
2637
|
// src/components/ComplexSelect/ComplexSelectDivider.tsx
|
|
2691
2638
|
import MuiDivider from "@mui/material/Divider";
|
|
2692
|
-
import { styled as
|
|
2693
|
-
import { jsx as
|
|
2694
|
-
var StyledDivider =
|
|
2639
|
+
import { styled as styled6 } from "@mui/material/styles";
|
|
2640
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2641
|
+
var StyledDivider = styled6(MuiDivider, {
|
|
2695
2642
|
name: "MuiComplexSelectDivider",
|
|
2696
2643
|
slot: "Root"
|
|
2697
2644
|
})(({ theme }) => ({
|
|
@@ -2700,14 +2647,14 @@ var StyledDivider = styled5(MuiDivider, {
|
|
|
2700
2647
|
}));
|
|
2701
2648
|
function ComplexSelectDivider(_a) {
|
|
2702
2649
|
var props = __objRest(_a, []);
|
|
2703
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ jsx12(StyledDivider, __spreadValues({}, props));
|
|
2704
2651
|
}
|
|
2705
2652
|
ComplexSelectDivider.displayName = "ComplexSelect.Divider";
|
|
2706
2653
|
var ComplexSelectDivider_default = ComplexSelectDivider;
|
|
2707
2654
|
|
|
2708
2655
|
// src/components/ComplexSelect/ComplexSelect.tsx
|
|
2709
|
-
import { Fragment, jsx as
|
|
2710
|
-
var StyledSelect =
|
|
2656
|
+
import { Fragment, jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2657
|
+
var StyledSelect = styled7(MuiSelect, {
|
|
2711
2658
|
name: "MuiComplexSelect",
|
|
2712
2659
|
slot: "Root",
|
|
2713
2660
|
shouldForwardProp: (prop) => prop !== "labelAnchor"
|
|
@@ -2726,7 +2673,7 @@ var StyledSelect = styled6(MuiSelect, {
|
|
|
2726
2673
|
marginLeft: theme.spacing(1)
|
|
2727
2674
|
}
|
|
2728
2675
|
}));
|
|
2729
|
-
var InsideLabelText =
|
|
2676
|
+
var InsideLabelText = styled7(MuiTypography, {
|
|
2730
2677
|
name: "MuiComplexSelect",
|
|
2731
2678
|
slot: "InsideLabel"
|
|
2732
2679
|
})(({ theme }) => {
|
|
@@ -2740,13 +2687,13 @@ var InsideLabelText = styled6(MuiTypography, {
|
|
|
2740
2687
|
marginBottom: theme.spacing(0.125)
|
|
2741
2688
|
};
|
|
2742
2689
|
});
|
|
2743
|
-
var StyledFormControl =
|
|
2690
|
+
var StyledFormControl = styled7(MuiFormControl, {
|
|
2744
2691
|
name: "MuiComplexSelect",
|
|
2745
2692
|
slot: "FormControl"
|
|
2746
2693
|
})(() => ({
|
|
2747
2694
|
minWidth: 120
|
|
2748
2695
|
}));
|
|
2749
|
-
var StyledInputLabel =
|
|
2696
|
+
var StyledInputLabel = styled7(MuiInputLabel, {
|
|
2750
2697
|
name: "MuiComplexSelect",
|
|
2751
2698
|
slot: "InputLabel",
|
|
2752
2699
|
shouldForwardProp: (prop) => prop !== "labelAnchor"
|
|
@@ -2775,8 +2722,8 @@ function ComplexSelect(_a) {
|
|
|
2775
2722
|
if (nodeProps2.primary) {
|
|
2776
2723
|
return __spreadProps(__spreadValues({}, node), {
|
|
2777
2724
|
props: __spreadProps(__spreadValues({}, nodeProps2), {
|
|
2778
|
-
primary: /* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2725
|
+
primary: /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
2726
|
+
/* @__PURE__ */ jsx13(InsideLabelText, { children: label }),
|
|
2780
2727
|
nodeProps2.primary
|
|
2781
2728
|
] }),
|
|
2782
2729
|
// Remove secondary text when label is inside
|
|
@@ -2825,7 +2772,7 @@ function ComplexSelect(_a) {
|
|
|
2825
2772
|
horizontal: "left"
|
|
2826
2773
|
}
|
|
2827
2774
|
}, props.MenuProps);
|
|
2828
|
-
const selectContent = /* @__PURE__ */
|
|
2775
|
+
const selectContent = /* @__PURE__ */ jsx13(
|
|
2829
2776
|
StyledSelect,
|
|
2830
2777
|
__spreadProps(__spreadValues({}, props), {
|
|
2831
2778
|
label,
|
|
@@ -2839,8 +2786,8 @@ function ComplexSelect(_a) {
|
|
|
2839
2786
|
);
|
|
2840
2787
|
if (label) {
|
|
2841
2788
|
const generatedLabelId = labelId || `complex-select-label-${Math.random().toString(36).substr(2, 9)}`;
|
|
2842
|
-
return /* @__PURE__ */
|
|
2843
|
-
labelAnchor !== "inside" && /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ jsxs3(StyledFormControl, { fullWidth: props.fullWidth, children: [
|
|
2790
|
+
labelAnchor !== "inside" && /* @__PURE__ */ jsx13(
|
|
2844
2791
|
StyledInputLabel,
|
|
2845
2792
|
{
|
|
2846
2793
|
id: generatedLabelId,
|
|
@@ -2848,7 +2795,7 @@ function ComplexSelect(_a) {
|
|
|
2848
2795
|
children: label
|
|
2849
2796
|
}
|
|
2850
2797
|
),
|
|
2851
|
-
/* @__PURE__ */
|
|
2798
|
+
/* @__PURE__ */ jsx13(
|
|
2852
2799
|
StyledSelect,
|
|
2853
2800
|
__spreadProps(__spreadValues({}, props), {
|
|
2854
2801
|
label: labelAnchor === "border" ? label : void 0,
|
|
@@ -2872,10 +2819,10 @@ var ComplexSelectCompound = Object.assign(ComplexSelect, {
|
|
|
2872
2819
|
var ComplexSelect_default = ComplexSelectCompound;
|
|
2873
2820
|
|
|
2874
2821
|
// src/components/PageContent/PageContent.tsx
|
|
2875
|
-
import { styled as
|
|
2822
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
2876
2823
|
import { Box as Box4 } from "@mui/material";
|
|
2877
|
-
import { jsx as
|
|
2878
|
-
var PageContentRoot =
|
|
2824
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
2825
|
+
var PageContentRoot = styled8(Box4, {
|
|
2879
2826
|
name: "MuiPageContent",
|
|
2880
2827
|
slot: "Root"
|
|
2881
2828
|
})(() => ({
|
|
@@ -2885,7 +2832,7 @@ var PageContentRoot = styled7(Box4, {
|
|
|
2885
2832
|
display: "flex",
|
|
2886
2833
|
flexDirection: "column"
|
|
2887
2834
|
}));
|
|
2888
|
-
var PageContentInner =
|
|
2835
|
+
var PageContentInner = styled8(Box4, {
|
|
2889
2836
|
name: "MuiPageContent",
|
|
2890
2837
|
slot: "Inner",
|
|
2891
2838
|
shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "centered" && prop !== "fullWidth" && prop !== "noPadding"
|
|
@@ -2906,7 +2853,7 @@ var PageContent = (_a) => {
|
|
|
2906
2853
|
"fullWidth",
|
|
2907
2854
|
"noPadding"
|
|
2908
2855
|
]);
|
|
2909
|
-
return /* @__PURE__ */
|
|
2856
|
+
return /* @__PURE__ */ jsx14(PageContentRoot, { children: /* @__PURE__ */ jsx14(
|
|
2910
2857
|
PageContentInner,
|
|
2911
2858
|
__spreadProps(__spreadValues({
|
|
2912
2859
|
maxWidth,
|
|
@@ -2923,13 +2870,13 @@ var PageContent_default = PageContent;
|
|
|
2923
2870
|
|
|
2924
2871
|
// src/components/PageTitle/PageTitle.tsx
|
|
2925
2872
|
import React4 from "react";
|
|
2926
|
-
import { styled as
|
|
2873
|
+
import { styled as styled15 } from "@mui/material/styles";
|
|
2927
2874
|
|
|
2928
2875
|
// src/components/PageTitle/PageTitleHeader.tsx
|
|
2929
|
-
import { styled as
|
|
2930
|
-
import
|
|
2931
|
-
import { jsx as
|
|
2932
|
-
var PageTitleHeaderStyled =
|
|
2876
|
+
import { styled as styled9 } from "@mui/material/styles";
|
|
2877
|
+
import Typography2 from "@mui/material/Typography";
|
|
2878
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2879
|
+
var PageTitleHeaderStyled = styled9(Typography2, {
|
|
2933
2880
|
name: "MuiPageTitle",
|
|
2934
2881
|
slot: "Header"
|
|
2935
2882
|
})(({ theme }) => {
|
|
@@ -2940,16 +2887,16 @@ var PageTitleHeaderStyled = styled8(Typography, {
|
|
|
2940
2887
|
});
|
|
2941
2888
|
var PageTitleHeader = (_a) => {
|
|
2942
2889
|
var _b = _a, { children, variant = "h1" } = _b, props = __objRest(_b, ["children", "variant"]);
|
|
2943
|
-
return /* @__PURE__ */
|
|
2890
|
+
return /* @__PURE__ */ jsx15(PageTitleHeaderStyled, __spreadProps(__spreadValues({ variant }, props), { children }));
|
|
2944
2891
|
};
|
|
2945
2892
|
PageTitleHeader.displayName = "PageTitle.Header";
|
|
2946
2893
|
var PageTitleHeader_default = PageTitleHeader;
|
|
2947
2894
|
|
|
2948
2895
|
// src/components/PageTitle/PageTitleSubHeader.tsx
|
|
2949
|
-
import { styled as
|
|
2950
|
-
import
|
|
2951
|
-
import { jsx as
|
|
2952
|
-
var PageTitleSubHeaderStyled =
|
|
2896
|
+
import { styled as styled10 } from "@mui/material/styles";
|
|
2897
|
+
import Typography3 from "@mui/material/Typography";
|
|
2898
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2899
|
+
var PageTitleSubHeaderStyled = styled10(Typography3, {
|
|
2953
2900
|
name: "MuiPageTitle",
|
|
2954
2901
|
slot: "SubHeader"
|
|
2955
2902
|
})(({ theme }) => {
|
|
@@ -2963,16 +2910,16 @@ var PageTitleSubHeaderStyled = styled9(Typography2, {
|
|
|
2963
2910
|
});
|
|
2964
2911
|
var PageTitleSubHeader = (_a) => {
|
|
2965
2912
|
var _b = _a, { children, variant = "body2" } = _b, props = __objRest(_b, ["children", "variant"]);
|
|
2966
|
-
return /* @__PURE__ */
|
|
2913
|
+
return /* @__PURE__ */ jsx16(PageTitleSubHeaderStyled, __spreadProps(__spreadValues({ variant }, props), { children }));
|
|
2967
2914
|
};
|
|
2968
2915
|
PageTitleSubHeader.displayName = "PageTitle.SubHeader";
|
|
2969
2916
|
var PageTitleSubHeader_default = PageTitleSubHeader;
|
|
2970
2917
|
|
|
2971
2918
|
// src/components/PageTitle/PageTitleAvatar.tsx
|
|
2972
|
-
import { styled as
|
|
2919
|
+
import { styled as styled11 } from "@mui/material/styles";
|
|
2973
2920
|
import Avatar from "@mui/material/Avatar";
|
|
2974
|
-
import { jsx as
|
|
2975
|
-
var PageTitleAvatarStyled =
|
|
2921
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2922
|
+
var PageTitleAvatarStyled = styled11(Avatar, {
|
|
2976
2923
|
name: "MuiPageTitle",
|
|
2977
2924
|
slot: "Avatar"
|
|
2978
2925
|
})(({ theme }) => ({
|
|
@@ -2982,17 +2929,17 @@ var PageTitleAvatarStyled = styled10(Avatar, {
|
|
|
2982
2929
|
}));
|
|
2983
2930
|
var PageTitleAvatar = (_a) => {
|
|
2984
2931
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2985
|
-
return /* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ jsx17(PageTitleAvatarStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2986
2933
|
};
|
|
2987
2934
|
PageTitleAvatar.displayName = "PageTitle.Avatar";
|
|
2988
2935
|
var PageTitleAvatar_default = PageTitleAvatar;
|
|
2989
2936
|
|
|
2990
2937
|
// src/components/PageTitle/PageTitleLink.tsx
|
|
2991
|
-
import { styled as
|
|
2938
|
+
import { styled as styled12 } from "@mui/material/styles";
|
|
2992
2939
|
import Link from "@mui/material/Link";
|
|
2993
2940
|
import Box5 from "@mui/material/Box";
|
|
2994
|
-
import { jsx as
|
|
2995
|
-
var PageTitleLinkStyled =
|
|
2941
|
+
import { jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2942
|
+
var PageTitleLinkStyled = styled12(Link, {
|
|
2996
2943
|
name: "MuiPageTitle",
|
|
2997
2944
|
slot: "Link"
|
|
2998
2945
|
})(({ theme }) => ({
|
|
@@ -3009,8 +2956,8 @@ var PageTitleLinkStyled = styled11(Link, {
|
|
|
3009
2956
|
}));
|
|
3010
2957
|
var PageTitleLink = (_a) => {
|
|
3011
2958
|
var _b = _a, { children, icon } = _b, props = __objRest(_b, ["children", "icon"]);
|
|
3012
|
-
return /* @__PURE__ */
|
|
3013
|
-
icon && /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ jsxs4(PageTitleLinkStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
2960
|
+
icon && /* @__PURE__ */ jsx18(Box5, { component: "span", sx: { display: "inline-flex", alignItems: "center", fontSize: "1rem" }, children: icon }),
|
|
3014
2961
|
children
|
|
3015
2962
|
] }));
|
|
3016
2963
|
};
|
|
@@ -3018,9 +2965,9 @@ PageTitleLink.displayName = "PageTitle.Link";
|
|
|
3018
2965
|
var PageTitleLink_default = PageTitleLink;
|
|
3019
2966
|
|
|
3020
2967
|
// src/components/PageTitle/PageTitleActions.tsx
|
|
3021
|
-
import { styled as
|
|
3022
|
-
import { jsx as
|
|
3023
|
-
var PageTitleActionsRoot =
|
|
2968
|
+
import { styled as styled13 } from "@mui/material/styles";
|
|
2969
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2970
|
+
var PageTitleActionsRoot = styled13("div", {
|
|
3024
2971
|
name: "MuiPageTitle",
|
|
3025
2972
|
slot: "Actions"
|
|
3026
2973
|
})(({ theme }) => ({
|
|
@@ -3031,19 +2978,19 @@ var PageTitleActionsRoot = styled12("div", {
|
|
|
3031
2978
|
}));
|
|
3032
2979
|
var PageTitleActions = (_a) => {
|
|
3033
2980
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3034
|
-
return /* @__PURE__ */
|
|
2981
|
+
return /* @__PURE__ */ jsx19(PageTitleActionsRoot, __spreadProps(__spreadValues({}, props), { children }));
|
|
3035
2982
|
};
|
|
3036
2983
|
PageTitleActions.displayName = "PageTitle.Actions";
|
|
3037
2984
|
var PageTitleActions_default = PageTitleActions;
|
|
3038
2985
|
|
|
3039
2986
|
// src/components/PageTitle/PageTitleBackButton.tsx
|
|
3040
2987
|
import React3 from "react";
|
|
3041
|
-
import { styled as
|
|
2988
|
+
import { styled as styled14 } from "@mui/material/styles";
|
|
3042
2989
|
import Button from "@mui/material/Button";
|
|
3043
|
-
import
|
|
2990
|
+
import Typography4 from "@mui/material/Typography";
|
|
3044
2991
|
import { ArrowLeft } from "@wso2/oxygen-ui-icons-react";
|
|
3045
|
-
import { jsx as
|
|
3046
|
-
var PageTitleBackButtonRoot =
|
|
2992
|
+
import { jsx as jsx20, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2993
|
+
var PageTitleBackButtonRoot = styled14("div", {
|
|
3047
2994
|
name: "MuiPageTitle",
|
|
3048
2995
|
slot: "BackButton"
|
|
3049
2996
|
})();
|
|
@@ -3055,7 +3002,7 @@ var PageTitleBackButton = (_a) => {
|
|
|
3055
3002
|
"children",
|
|
3056
3003
|
"component"
|
|
3057
3004
|
]);
|
|
3058
|
-
const button = /* @__PURE__ */
|
|
3005
|
+
const button = /* @__PURE__ */ jsxs5(
|
|
3059
3006
|
Button,
|
|
3060
3007
|
__spreadProps(__spreadValues({
|
|
3061
3008
|
variant: "text",
|
|
@@ -3067,13 +3014,13 @@ var PageTitleBackButton = (_a) => {
|
|
|
3067
3014
|
}
|
|
3068
3015
|
}, props), {
|
|
3069
3016
|
children: [
|
|
3070
|
-
/* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ jsx20(ArrowLeft, { size: 20 }),
|
|
3018
|
+
/* @__PURE__ */ jsx20(Typography4, { variant: "body2", children })
|
|
3072
3019
|
]
|
|
3073
3020
|
})
|
|
3074
3021
|
);
|
|
3075
3022
|
if (React3.isValidElement(Component)) {
|
|
3076
|
-
return /* @__PURE__ */
|
|
3023
|
+
return /* @__PURE__ */ jsx20(PageTitleBackButtonRoot, { children: React3.cloneElement(
|
|
3077
3024
|
Component,
|
|
3078
3025
|
{ style: { textDecoration: "none" } },
|
|
3079
3026
|
button
|
|
@@ -3081,16 +3028,16 @@ var PageTitleBackButton = (_a) => {
|
|
|
3081
3028
|
}
|
|
3082
3029
|
if (Component) {
|
|
3083
3030
|
const WrapperComponent = Component;
|
|
3084
|
-
return /* @__PURE__ */
|
|
3031
|
+
return /* @__PURE__ */ jsx20(PageTitleBackButtonRoot, { children: /* @__PURE__ */ jsx20(WrapperComponent, { style: { textDecoration: "none" }, children: button }) });
|
|
3085
3032
|
}
|
|
3086
|
-
return /* @__PURE__ */
|
|
3033
|
+
return /* @__PURE__ */ jsx20(PageTitleBackButtonRoot, { children: button });
|
|
3087
3034
|
};
|
|
3088
3035
|
PageTitleBackButton.displayName = "PageTitle.BackButton";
|
|
3089
3036
|
var PageTitleBackButton_default = PageTitleBackButton;
|
|
3090
3037
|
|
|
3091
3038
|
// src/components/PageTitle/PageTitle.tsx
|
|
3092
|
-
import { jsx as
|
|
3093
|
-
var PageTitleRoot =
|
|
3039
|
+
import { jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
3040
|
+
var PageTitleRoot = styled15("div", {
|
|
3094
3041
|
name: "MuiPageTitle",
|
|
3095
3042
|
slot: "Root"
|
|
3096
3043
|
})(({ theme }) => ({
|
|
@@ -3100,11 +3047,11 @@ var PageTitleRoot = styled14("div", {
|
|
|
3100
3047
|
gap: theme.spacing(2),
|
|
3101
3048
|
width: "100%"
|
|
3102
3049
|
}));
|
|
3103
|
-
var PageTitleRow1 =
|
|
3050
|
+
var PageTitleRow1 = styled15("div", {
|
|
3104
3051
|
name: "MuiPageTitle",
|
|
3105
3052
|
slot: "Row1"
|
|
3106
3053
|
})();
|
|
3107
|
-
var PageTitleRow2 =
|
|
3054
|
+
var PageTitleRow2 = styled15("div", {
|
|
3108
3055
|
name: "MuiPageTitle",
|
|
3109
3056
|
slot: "Row2"
|
|
3110
3057
|
})(({ theme }) => ({
|
|
@@ -3113,7 +3060,7 @@ var PageTitleRow2 = styled14("div", {
|
|
|
3113
3060
|
gap: theme.spacing(2),
|
|
3114
3061
|
width: "100%"
|
|
3115
3062
|
}));
|
|
3116
|
-
var PageTitleColumnLeft =
|
|
3063
|
+
var PageTitleColumnLeft = styled15("div", {
|
|
3117
3064
|
name: "MuiPageTitle",
|
|
3118
3065
|
slot: "ColumnLeft"
|
|
3119
3066
|
})(({ theme }) => ({
|
|
@@ -3124,11 +3071,11 @@ var PageTitleColumnLeft = styled14("div", {
|
|
|
3124
3071
|
gap: theme.spacing(2)
|
|
3125
3072
|
}
|
|
3126
3073
|
}));
|
|
3127
|
-
var PageTitleColumn1 =
|
|
3074
|
+
var PageTitleColumn1 = styled15("div", {
|
|
3128
3075
|
name: "MuiPageTitle",
|
|
3129
3076
|
slot: "Column1"
|
|
3130
3077
|
})();
|
|
3131
|
-
var PageTitleColumn2 =
|
|
3078
|
+
var PageTitleColumn2 = styled15("div", {
|
|
3132
3079
|
name: "MuiPageTitle",
|
|
3133
3080
|
slot: "Column2"
|
|
3134
3081
|
})(({ theme }) => ({
|
|
@@ -3137,7 +3084,7 @@ var PageTitleColumn2 = styled14("div", {
|
|
|
3137
3084
|
gap: theme.spacing(0.5),
|
|
3138
3085
|
flex: 1
|
|
3139
3086
|
}));
|
|
3140
|
-
var PageTitleColumnRight =
|
|
3087
|
+
var PageTitleColumnRight = styled15("div", {
|
|
3141
3088
|
name: "MuiPageTitle",
|
|
3142
3089
|
slot: "ColumnRight"
|
|
3143
3090
|
})();
|
|
@@ -3180,14 +3127,14 @@ var PageTitle = (_a) => {
|
|
|
3180
3127
|
return true;
|
|
3181
3128
|
}
|
|
3182
3129
|
);
|
|
3183
|
-
return /* @__PURE__ */
|
|
3184
|
-
backButtonElement && /* @__PURE__ */
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
/* @__PURE__ */
|
|
3187
|
-
/* @__PURE__ */
|
|
3188
|
-
/* @__PURE__ */
|
|
3130
|
+
return /* @__PURE__ */ jsxs6(PageTitleRoot, __spreadProps(__spreadValues({ sx }, props), { children: [
|
|
3131
|
+
backButtonElement && /* @__PURE__ */ jsx21(PageTitleRow1, { children: backButtonElement }),
|
|
3132
|
+
/* @__PURE__ */ jsxs6(PageTitleRow2, { children: [
|
|
3133
|
+
/* @__PURE__ */ jsxs6(PageTitleColumnLeft, { children: [
|
|
3134
|
+
/* @__PURE__ */ jsx21(PageTitleColumn1, { children: avatar }),
|
|
3135
|
+
/* @__PURE__ */ jsx21(PageTitleColumn2, { children: otherChildren })
|
|
3189
3136
|
] }),
|
|
3190
|
-
/* @__PURE__ */
|
|
3137
|
+
/* @__PURE__ */ jsx21(PageTitleColumnRight, { children: actions })
|
|
3191
3138
|
] })
|
|
3192
3139
|
] }));
|
|
3193
3140
|
};
|
|
@@ -3202,8 +3149,8 @@ PageTitle.displayName = "PageTitle";
|
|
|
3202
3149
|
var PageTitle_default = PageTitle;
|
|
3203
3150
|
|
|
3204
3151
|
// src/components/StatCard/StatCard.tsx
|
|
3205
|
-
import { Card, CardContent, Box as Box6, Typography as
|
|
3206
|
-
import { jsx as
|
|
3152
|
+
import { Card, CardContent, Box as Box6, Typography as Typography5 } from "@mui/material";
|
|
3153
|
+
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3207
3154
|
var StatCard = (_a) => {
|
|
3208
3155
|
var _b = _a, {
|
|
3209
3156
|
value,
|
|
@@ -3216,11 +3163,11 @@ var StatCard = (_a) => {
|
|
|
3216
3163
|
"icon",
|
|
3217
3164
|
"iconColor"
|
|
3218
3165
|
]);
|
|
3219
|
-
return /* @__PURE__ */
|
|
3220
|
-
icon && /* @__PURE__ */
|
|
3221
|
-
/* @__PURE__ */
|
|
3222
|
-
/* @__PURE__ */
|
|
3223
|
-
/* @__PURE__ */
|
|
3166
|
+
return /* @__PURE__ */ jsx22(Card, __spreadProps(__spreadValues({ variant: "outlined" }, props), { children: /* @__PURE__ */ jsx22(CardContent, { children: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
3167
|
+
icon && /* @__PURE__ */ jsx22(Box6, { sx: { color: (theme) => theme.palette[iconColor].main, display: "flex", alignItems: "center" }, children: icon }),
|
|
3168
|
+
/* @__PURE__ */ jsxs7(Box6, { children: [
|
|
3169
|
+
/* @__PURE__ */ jsx22(Typography5, { variant: "h5", children: value }),
|
|
3170
|
+
/* @__PURE__ */ jsx22(Typography5, { variant: "body2", color: "text.secondary", children: label })
|
|
3224
3171
|
] })
|
|
3225
3172
|
] }) }) }));
|
|
3226
3173
|
};
|
|
@@ -3228,8 +3175,8 @@ StatCard.displayName = "StatCard";
|
|
|
3228
3175
|
var StatCard_default = StatCard;
|
|
3229
3176
|
|
|
3230
3177
|
// src/components/ThemeSwitcher/ThemeSelect.tsx
|
|
3231
|
-
import { Select, MenuItem, FormControl, InputLabel } from "@mui/material";
|
|
3232
|
-
import { jsx as
|
|
3178
|
+
import { Select, MenuItem as MenuItem2, FormControl, InputLabel } from "@mui/material";
|
|
3179
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3233
3180
|
function ThemeSelect({
|
|
3234
3181
|
size = "small",
|
|
3235
3182
|
showLabel = false,
|
|
@@ -3241,23 +3188,23 @@ function ThemeSelect({
|
|
|
3241
3188
|
const handleChange = (event) => {
|
|
3242
3189
|
setTheme(event.target.value);
|
|
3243
3190
|
};
|
|
3244
|
-
return /* @__PURE__ */
|
|
3245
|
-
showLabel && /* @__PURE__ */
|
|
3246
|
-
/* @__PURE__ */
|
|
3191
|
+
return /* @__PURE__ */ jsxs8(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
|
|
3192
|
+
showLabel && /* @__PURE__ */ jsx23(InputLabel, { id: "theme-select-label", children: label }),
|
|
3193
|
+
/* @__PURE__ */ jsx23(
|
|
3247
3194
|
Select,
|
|
3248
3195
|
{
|
|
3249
3196
|
labelId: showLabel ? "theme-select-label" : void 0,
|
|
3250
3197
|
value: currentTheme,
|
|
3251
3198
|
onChange: handleChange,
|
|
3252
3199
|
label: showLabel ? label : void 0,
|
|
3253
|
-
children: themes.map((themeOption) => /* @__PURE__ */
|
|
3200
|
+
children: themes.map((themeOption) => /* @__PURE__ */ jsx23(MenuItem2, { value: themeOption.key, children: themeOption.label }, themeOption.key))
|
|
3254
3201
|
}
|
|
3255
3202
|
)
|
|
3256
3203
|
] });
|
|
3257
3204
|
}
|
|
3258
3205
|
|
|
3259
3206
|
// src/components/ThemeSwitcher/ThemeSwitcher.tsx
|
|
3260
|
-
import { Fragment as Fragment2, jsx as
|
|
3207
|
+
import { Fragment as Fragment2, jsx as jsx24 } from "react/jsx-runtime";
|
|
3261
3208
|
function ThemeSwitcher({
|
|
3262
3209
|
children,
|
|
3263
3210
|
size,
|
|
@@ -3268,9 +3215,9 @@ function ThemeSwitcher({
|
|
|
3268
3215
|
}) {
|
|
3269
3216
|
const themeSwitcherContext = useThemeSwitcher();
|
|
3270
3217
|
if (children) {
|
|
3271
|
-
return /* @__PURE__ */
|
|
3218
|
+
return /* @__PURE__ */ jsx24(Fragment2, { children: children(themeSwitcherContext) });
|
|
3272
3219
|
}
|
|
3273
|
-
return /* @__PURE__ */
|
|
3220
|
+
return /* @__PURE__ */ jsx24(
|
|
3274
3221
|
ThemeSelect,
|
|
3275
3222
|
{
|
|
3276
3223
|
size,
|
|
@@ -3289,21 +3236,21 @@ import InputAdornment2 from "@mui/material/InputAdornment";
|
|
|
3289
3236
|
import Box7 from "@mui/material/Box";
|
|
3290
3237
|
import IconButton2 from "@mui/material/IconButton";
|
|
3291
3238
|
import Popover from "@mui/material/Popover";
|
|
3292
|
-
import
|
|
3239
|
+
import Typography6 from "@mui/material/Typography";
|
|
3293
3240
|
import Divider from "@mui/material/Divider";
|
|
3294
3241
|
import Button2 from "@mui/material/Button";
|
|
3295
3242
|
import Stack from "@mui/material/Stack";
|
|
3296
3243
|
import FormControl2 from "@mui/material/FormControl";
|
|
3297
3244
|
import InputLabel2 from "@mui/material/InputLabel";
|
|
3298
3245
|
import Select2 from "@mui/material/Select";
|
|
3299
|
-
import
|
|
3246
|
+
import MenuItem3 from "@mui/material/MenuItem";
|
|
3300
3247
|
import { ListFilter } from "@wso2/oxygen-ui-icons-react";
|
|
3301
3248
|
|
|
3302
3249
|
// src/components/SearchBar/SearchBarBase.tsx
|
|
3303
3250
|
import TextField from "@mui/material/TextField";
|
|
3304
3251
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
3305
3252
|
import { Search } from "@wso2/oxygen-ui-icons-react";
|
|
3306
|
-
import { jsx as
|
|
3253
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
3307
3254
|
function SearchBarBase(_a) {
|
|
3308
3255
|
var _b = _a, {
|
|
3309
3256
|
placeholder = "Search",
|
|
@@ -3316,7 +3263,7 @@ function SearchBarBase(_a) {
|
|
|
3316
3263
|
"slotProps",
|
|
3317
3264
|
"sx"
|
|
3318
3265
|
]);
|
|
3319
|
-
return /* @__PURE__ */
|
|
3266
|
+
return /* @__PURE__ */ jsx25(
|
|
3320
3267
|
TextField,
|
|
3321
3268
|
__spreadProps(__spreadValues({}, props), {
|
|
3322
3269
|
placeholder,
|
|
@@ -3324,7 +3271,7 @@ function SearchBarBase(_a) {
|
|
|
3324
3271
|
size: "small",
|
|
3325
3272
|
slotProps: __spreadProps(__spreadValues({}, slotProps), {
|
|
3326
3273
|
input: __spreadProps(__spreadValues({}, slotProps == null ? void 0 : slotProps.input), {
|
|
3327
|
-
startAdornment: /* @__PURE__ */
|
|
3274
|
+
startAdornment: /* @__PURE__ */ jsx25(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx25(Search, { fontSize: "small" }) }),
|
|
3328
3275
|
endAdornment
|
|
3329
3276
|
})
|
|
3330
3277
|
}),
|
|
@@ -3341,7 +3288,7 @@ function SearchBarBase(_a) {
|
|
|
3341
3288
|
}
|
|
3342
3289
|
|
|
3343
3290
|
// src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
|
|
3344
|
-
import { Fragment as Fragment3, jsx as
|
|
3291
|
+
import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3345
3292
|
function SearchBarWithAdvancedFilter(_a) {
|
|
3346
3293
|
var _b = _a, {
|
|
3347
3294
|
value,
|
|
@@ -3394,17 +3341,17 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3394
3341
|
handleClose();
|
|
3395
3342
|
};
|
|
3396
3343
|
const popoverId = open ? "advanced-search-popover" : void 0;
|
|
3397
|
-
return /* @__PURE__ */
|
|
3398
|
-
/* @__PURE__ */
|
|
3344
|
+
return /* @__PURE__ */ jsxs9(Fragment3, { children: [
|
|
3345
|
+
/* @__PURE__ */ jsx26(
|
|
3399
3346
|
SearchBarBase,
|
|
3400
3347
|
__spreadProps(__spreadValues({}, props), {
|
|
3401
3348
|
value,
|
|
3402
3349
|
onChange: handleInputChange,
|
|
3403
3350
|
placeholder,
|
|
3404
3351
|
sx,
|
|
3405
|
-
endAdornment: /* @__PURE__ */
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3352
|
+
endAdornment: /* @__PURE__ */ jsx26(InputAdornment2, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs9(Box7, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
|
|
3353
|
+
/* @__PURE__ */ jsx26(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
|
|
3354
|
+
/* @__PURE__ */ jsx26(
|
|
3408
3355
|
IconButton2,
|
|
3409
3356
|
{
|
|
3410
3357
|
"aria-describedby": popoverId,
|
|
@@ -3412,13 +3359,13 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3412
3359
|
onClick: handleOpen,
|
|
3413
3360
|
size: "small",
|
|
3414
3361
|
sx: { mx: 0.5 },
|
|
3415
|
-
children: /* @__PURE__ */
|
|
3362
|
+
children: /* @__PURE__ */ jsx26(ListFilter, { fontSize: "tiny" })
|
|
3416
3363
|
}
|
|
3417
3364
|
)
|
|
3418
3365
|
] }) })
|
|
3419
3366
|
})
|
|
3420
3367
|
),
|
|
3421
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsxs9(
|
|
3422
3369
|
Popover,
|
|
3423
3370
|
{
|
|
3424
3371
|
id: popoverId,
|
|
@@ -3435,45 +3382,45 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3435
3382
|
}
|
|
3436
3383
|
},
|
|
3437
3384
|
children: [
|
|
3438
|
-
/* @__PURE__ */
|
|
3439
|
-
/* @__PURE__ */
|
|
3440
|
-
/* @__PURE__ */
|
|
3441
|
-
/* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3385
|
+
/* @__PURE__ */ jsx26(Typography6, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
|
|
3386
|
+
/* @__PURE__ */ jsx26(Divider, { sx: { my: 1 } }),
|
|
3387
|
+
/* @__PURE__ */ jsxs9(Stack, { spacing: 2, marginTop: 2, children: [
|
|
3388
|
+
/* @__PURE__ */ jsxs9(FormControl2, { fullWidth: true, size: "small", children: [
|
|
3389
|
+
/* @__PURE__ */ jsxs9(InputLabel2, { id: "adv-filter-attribute-label", children: [
|
|
3443
3390
|
"Filter attribute",
|
|
3444
3391
|
" ",
|
|
3445
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx26(Box7, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3446
3393
|
] }),
|
|
3447
|
-
/* @__PURE__ */
|
|
3394
|
+
/* @__PURE__ */ jsx26(
|
|
3448
3395
|
Select2,
|
|
3449
3396
|
{
|
|
3450
3397
|
labelId: "adv-filter-attribute-label",
|
|
3451
3398
|
value: advancedFilter.attribute,
|
|
3452
3399
|
label: "Filter attribute *",
|
|
3453
3400
|
onChange: handleAttrChange,
|
|
3454
|
-
children: attributeOptions.map((opt) => /* @__PURE__ */
|
|
3401
|
+
children: attributeOptions.map((opt) => /* @__PURE__ */ jsx26(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
|
|
3455
3402
|
}
|
|
3456
3403
|
)
|
|
3457
3404
|
] }),
|
|
3458
|
-
/* @__PURE__ */
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__PURE__ */ jsxs9(Box7, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
|
|
3406
|
+
/* @__PURE__ */ jsxs9(FormControl2, { fullWidth: true, size: "small", children: [
|
|
3407
|
+
/* @__PURE__ */ jsxs9(InputLabel2, { id: "adv-filter-condition-label", children: [
|
|
3461
3408
|
"Filter condition",
|
|
3462
3409
|
" ",
|
|
3463
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ jsx26(Box7, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3464
3411
|
] }),
|
|
3465
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx26(
|
|
3466
3413
|
Select2,
|
|
3467
3414
|
{
|
|
3468
3415
|
labelId: "adv-filter-condition-label",
|
|
3469
3416
|
value: advancedFilter.condition,
|
|
3470
3417
|
label: "Filter condition *",
|
|
3471
3418
|
onChange: handleCondChange,
|
|
3472
|
-
children: conditionOptions.map((opt) => /* @__PURE__ */
|
|
3419
|
+
children: conditionOptions.map((opt) => /* @__PURE__ */ jsx26(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
|
|
3473
3420
|
}
|
|
3474
3421
|
)
|
|
3475
3422
|
] }),
|
|
3476
|
-
/* @__PURE__ */
|
|
3423
|
+
/* @__PURE__ */ jsx26(
|
|
3477
3424
|
TextField2,
|
|
3478
3425
|
{
|
|
3479
3426
|
size: "small",
|
|
@@ -3485,7 +3432,7 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3485
3432
|
}
|
|
3486
3433
|
)
|
|
3487
3434
|
] }),
|
|
3488
|
-
/* @__PURE__ */
|
|
3435
|
+
/* @__PURE__ */ jsx26(Box7, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx26(
|
|
3489
3436
|
Button2,
|
|
3490
3437
|
{
|
|
3491
3438
|
variant: "contained",
|
|
@@ -3504,14 +3451,14 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3504
3451
|
var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
|
|
3505
3452
|
|
|
3506
3453
|
// src/components/SearchBar/SearchBar.tsx
|
|
3507
|
-
import { jsx as
|
|
3454
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3508
3455
|
function SearchBar(_a) {
|
|
3509
3456
|
var _b = _a, {
|
|
3510
3457
|
placeholder = "Search"
|
|
3511
3458
|
} = _b, props = __objRest(_b, [
|
|
3512
3459
|
"placeholder"
|
|
3513
3460
|
]);
|
|
3514
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ jsx27(
|
|
3515
3462
|
SearchBarBase,
|
|
3516
3463
|
__spreadProps(__spreadValues({}, props), {
|
|
3517
3464
|
placeholder
|
|
@@ -3525,7 +3472,7 @@ import * as React9 from "react";
|
|
|
3525
3472
|
import AppBar from "@mui/material/AppBar";
|
|
3526
3473
|
import Toolbar from "@mui/material/Toolbar";
|
|
3527
3474
|
import Box12 from "@mui/material/Box";
|
|
3528
|
-
import { styled as
|
|
3475
|
+
import { styled as styled22 } from "@mui/material/styles";
|
|
3529
3476
|
|
|
3530
3477
|
// src/components/Header/context.ts
|
|
3531
3478
|
import * as React6 from "react";
|
|
@@ -3542,24 +3489,24 @@ var useHeader = () => {
|
|
|
3542
3489
|
import * as React8 from "react";
|
|
3543
3490
|
import IconButton3 from "@mui/material/IconButton";
|
|
3544
3491
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
3545
|
-
import { styled as
|
|
3492
|
+
import { styled as styled16 } from "@mui/material/styles";
|
|
3546
3493
|
import { Menu } from "@wso2/oxygen-ui-icons-react";
|
|
3547
3494
|
|
|
3548
3495
|
// src/components/AppShell/context.tsx
|
|
3549
3496
|
import * as React7 from "react";
|
|
3550
|
-
import { jsx as
|
|
3497
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3551
3498
|
var AppShellContext = React7.createContext(void 0);
|
|
3552
3499
|
var AppShellProvider = ({
|
|
3553
3500
|
children,
|
|
3554
3501
|
value
|
|
3555
3502
|
}) => {
|
|
3556
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ jsx28(AppShellContext.Provider, { value, children });
|
|
3557
3504
|
};
|
|
3558
3505
|
AppShellProvider.displayName = "AppShellProvider";
|
|
3559
3506
|
|
|
3560
3507
|
// src/components/Header/HeaderToggle.tsx
|
|
3561
|
-
import { jsx as
|
|
3562
|
-
var HeaderToggleRoot =
|
|
3508
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3509
|
+
var HeaderToggleRoot = styled16(IconButton3, {
|
|
3563
3510
|
name: "MuiHeader",
|
|
3564
3511
|
slot: "Toggle"
|
|
3565
3512
|
})(({ theme }) => ({
|
|
@@ -3579,18 +3526,18 @@ var HeaderToggle = ({
|
|
|
3579
3526
|
const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
|
|
3580
3527
|
const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
|
|
3581
3528
|
});
|
|
3582
|
-
return /* @__PURE__ */
|
|
3529
|
+
return /* @__PURE__ */ jsx29(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx29(HeaderToggleRoot, { onClick: onToggle, size: "small", sx, children: collapsed ? expandIcon || /* @__PURE__ */ jsx29(Menu, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx29(Menu, { size: 20 }) }) });
|
|
3583
3530
|
};
|
|
3584
3531
|
|
|
3585
3532
|
// src/components/Header/HeaderBrand.tsx
|
|
3586
3533
|
import Box9 from "@mui/material/Box";
|
|
3587
|
-
import { styled as
|
|
3534
|
+
import { styled as styled19 } from "@mui/material/styles";
|
|
3588
3535
|
|
|
3589
3536
|
// src/components/Header/HeaderBrandLogo.tsx
|
|
3590
3537
|
import Box8 from "@mui/material/Box";
|
|
3591
|
-
import { styled as
|
|
3592
|
-
import { jsx as
|
|
3593
|
-
var HeaderBrandLogoRoot =
|
|
3538
|
+
import { styled as styled17 } from "@mui/material/styles";
|
|
3539
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3540
|
+
var HeaderBrandLogoRoot = styled17(Box8, {
|
|
3594
3541
|
name: "MuiHeader",
|
|
3595
3542
|
slot: "BrandLogo"
|
|
3596
3543
|
})({
|
|
@@ -3601,15 +3548,15 @@ var HeaderBrandLogo = ({
|
|
|
3601
3548
|
children,
|
|
3602
3549
|
sx
|
|
3603
3550
|
}) => {
|
|
3604
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsx30(HeaderBrandLogoRoot, { sx, children });
|
|
3605
3552
|
};
|
|
3606
3553
|
HeaderBrandLogo.displayName = "HeaderBrandLogo";
|
|
3607
3554
|
|
|
3608
3555
|
// src/components/Header/HeaderBrandTitle.tsx
|
|
3609
|
-
import
|
|
3610
|
-
import { styled as
|
|
3611
|
-
import { jsx as
|
|
3612
|
-
var HeaderBrandTitleRoot =
|
|
3556
|
+
import Typography7 from "@mui/material/Typography";
|
|
3557
|
+
import { styled as styled18 } from "@mui/material/styles";
|
|
3558
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3559
|
+
var HeaderBrandTitleRoot = styled18(Typography7, {
|
|
3613
3560
|
name: "MuiHeader",
|
|
3614
3561
|
slot: "BrandTitle"
|
|
3615
3562
|
})(({ theme }) => ({
|
|
@@ -3626,13 +3573,13 @@ var HeaderBrandTitle = ({
|
|
|
3626
3573
|
children,
|
|
3627
3574
|
sx
|
|
3628
3575
|
}) => {
|
|
3629
|
-
return /* @__PURE__ */
|
|
3576
|
+
return /* @__PURE__ */ jsx31(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
|
|
3630
3577
|
};
|
|
3631
3578
|
HeaderBrandTitle.displayName = "HeaderBrandTitle";
|
|
3632
3579
|
|
|
3633
3580
|
// src/components/Header/HeaderBrand.tsx
|
|
3634
|
-
import { jsx as
|
|
3635
|
-
var HeaderBrandRoot =
|
|
3581
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3582
|
+
var HeaderBrandRoot = styled19(Box9, {
|
|
3636
3583
|
name: "MuiHeader",
|
|
3637
3584
|
slot: "Brand",
|
|
3638
3585
|
shouldForwardProp: (prop) => prop !== "clickable"
|
|
@@ -3647,16 +3594,16 @@ var HeaderBrand = ({
|
|
|
3647
3594
|
children,
|
|
3648
3595
|
sx
|
|
3649
3596
|
}) => {
|
|
3650
|
-
return /* @__PURE__ */
|
|
3597
|
+
return /* @__PURE__ */ jsx32(HeaderBrandRoot, { onClick, clickable: !!onClick, sx, children });
|
|
3651
3598
|
};
|
|
3652
3599
|
HeaderBrand.displayName = "HeaderBrand";
|
|
3653
3600
|
|
|
3654
3601
|
// src/components/Header/HeaderSwitchers.tsx
|
|
3655
3602
|
import Box10 from "@mui/material/Box";
|
|
3656
3603
|
import Divider2 from "@mui/material/Divider";
|
|
3657
|
-
import { styled as
|
|
3658
|
-
import { jsx as
|
|
3659
|
-
var HeaderSwitchersRoot =
|
|
3604
|
+
import { styled as styled20 } from "@mui/material/styles";
|
|
3605
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3606
|
+
var HeaderSwitchersRoot = styled20(Box10, {
|
|
3660
3607
|
name: "MuiHeader",
|
|
3661
3608
|
slot: "Switchers"
|
|
3662
3609
|
})(({ theme }) => ({
|
|
@@ -3668,7 +3615,7 @@ var HeaderSwitchersRoot = styled19(Box10, {
|
|
|
3668
3615
|
display: "flex"
|
|
3669
3616
|
}
|
|
3670
3617
|
}));
|
|
3671
|
-
var HeaderSwitchersDivider =
|
|
3618
|
+
var HeaderSwitchersDivider = styled20(Divider2, {
|
|
3672
3619
|
name: "MuiHeader",
|
|
3673
3620
|
slot: "SwitchersDivider"
|
|
3674
3621
|
})(({ theme }) => ({
|
|
@@ -3684,17 +3631,17 @@ var HeaderSwitchers = ({
|
|
|
3684
3631
|
if (minimal) {
|
|
3685
3632
|
return null;
|
|
3686
3633
|
}
|
|
3687
|
-
return /* @__PURE__ */
|
|
3688
|
-
showDivider && /* @__PURE__ */
|
|
3634
|
+
return /* @__PURE__ */ jsxs10(HeaderSwitchersRoot, { sx, children: [
|
|
3635
|
+
showDivider && /* @__PURE__ */ jsx33(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
|
|
3689
3636
|
children
|
|
3690
3637
|
] });
|
|
3691
3638
|
};
|
|
3692
3639
|
|
|
3693
3640
|
// src/components/Header/HeaderActions.tsx
|
|
3694
3641
|
import Box11 from "@mui/material/Box";
|
|
3695
|
-
import { styled as
|
|
3696
|
-
import { jsx as
|
|
3697
|
-
var HeaderActionsRoot =
|
|
3642
|
+
import { styled as styled21 } from "@mui/material/styles";
|
|
3643
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3644
|
+
var HeaderActionsRoot = styled21(Box11, {
|
|
3698
3645
|
name: "MuiHeader",
|
|
3699
3646
|
slot: "Actions"
|
|
3700
3647
|
})(({ theme }) => ({
|
|
@@ -3706,19 +3653,19 @@ var HeaderActions = ({
|
|
|
3706
3653
|
children,
|
|
3707
3654
|
sx
|
|
3708
3655
|
}) => {
|
|
3709
|
-
return /* @__PURE__ */
|
|
3656
|
+
return /* @__PURE__ */ jsx34(HeaderActionsRoot, { sx, children });
|
|
3710
3657
|
};
|
|
3711
3658
|
|
|
3712
3659
|
// src/components/Header/Header.tsx
|
|
3713
|
-
import { jsx as
|
|
3714
|
-
var HeaderRootStyled =
|
|
3660
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3661
|
+
var HeaderRootStyled = styled22(AppBar, {
|
|
3715
3662
|
name: "MuiHeader",
|
|
3716
3663
|
slot: "Root"
|
|
3717
3664
|
})(({ theme }) => ({
|
|
3718
3665
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
3719
3666
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
3720
3667
|
}));
|
|
3721
|
-
var HeaderToolbar =
|
|
3668
|
+
var HeaderToolbar = styled22(Toolbar, {
|
|
3722
3669
|
name: "MuiHeader",
|
|
3723
3670
|
slot: "Toolbar"
|
|
3724
3671
|
})(({ theme }) => ({
|
|
@@ -3731,7 +3678,7 @@ var HeaderToolbar = styled21(Toolbar, {
|
|
|
3731
3678
|
paddingRight: theme.spacing(2)
|
|
3732
3679
|
}
|
|
3733
3680
|
}));
|
|
3734
|
-
var HeaderSpacerStyled =
|
|
3681
|
+
var HeaderSpacerStyled = styled22(Box12, {
|
|
3735
3682
|
name: "MuiHeader",
|
|
3736
3683
|
slot: "Spacer"
|
|
3737
3684
|
})({
|
|
@@ -3743,9 +3690,9 @@ var Header = ({
|
|
|
3743
3690
|
sx
|
|
3744
3691
|
}) => {
|
|
3745
3692
|
const contextValue = React9.useMemo(() => ({ minimal }), [minimal]);
|
|
3746
|
-
return /* @__PURE__ */
|
|
3693
|
+
return /* @__PURE__ */ jsx35(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx35(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx35(HeaderToolbar, { children }) }) });
|
|
3747
3694
|
};
|
|
3748
|
-
var HeaderSpacer = ({ sx }) => /* @__PURE__ */
|
|
3695
|
+
var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx35(HeaderSpacerStyled, { sx });
|
|
3749
3696
|
Header.Toggle = HeaderToggle;
|
|
3750
3697
|
Header.Brand = HeaderBrand;
|
|
3751
3698
|
Header.BrandLogo = HeaderBrandLogo;
|
|
@@ -3758,7 +3705,7 @@ Header.displayName = "Header";
|
|
|
3758
3705
|
// src/components/Sidebar/Sidebar.tsx
|
|
3759
3706
|
import * as React17 from "react";
|
|
3760
3707
|
import Box18 from "@mui/material/Box";
|
|
3761
|
-
import { styled as
|
|
3708
|
+
import { styled as styled35 } from "@mui/material/styles";
|
|
3762
3709
|
|
|
3763
3710
|
// src/components/Sidebar/context.ts
|
|
3764
3711
|
import * as React10 from "react";
|
|
@@ -3775,9 +3722,9 @@ var useSidebar = () => {
|
|
|
3775
3722
|
import * as React11 from "react";
|
|
3776
3723
|
import Box13 from "@mui/material/Box";
|
|
3777
3724
|
import Divider3 from "@mui/material/Divider";
|
|
3778
|
-
import { styled as
|
|
3779
|
-
import { jsx as
|
|
3780
|
-
var SidebarNavRoot =
|
|
3725
|
+
import { styled as styled23 } from "@mui/material/styles";
|
|
3726
|
+
import { jsx as jsx36, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3727
|
+
var SidebarNavRoot = styled23(Box13, {
|
|
3781
3728
|
name: "MuiSidebar",
|
|
3782
3729
|
slot: "Nav"
|
|
3783
3730
|
})(({ theme }) => ({
|
|
@@ -3797,7 +3744,7 @@ var SidebarNavRoot = styled22(Box13, {
|
|
|
3797
3744
|
backgroundColor: (theme.vars || theme).palette.action.active
|
|
3798
3745
|
}
|
|
3799
3746
|
}));
|
|
3800
|
-
var SidebarNavDivider =
|
|
3747
|
+
var SidebarNavDivider = styled23(Divider3, {
|
|
3801
3748
|
name: "MuiSidebar",
|
|
3802
3749
|
slot: "NavDivider"
|
|
3803
3750
|
})(({ theme }) => ({
|
|
@@ -3813,8 +3760,8 @@ var SidebarNav = ({
|
|
|
3813
3760
|
}) => {
|
|
3814
3761
|
const { collapsed } = useSidebar();
|
|
3815
3762
|
const childArray = React11.Children.toArray(children);
|
|
3816
|
-
return /* @__PURE__ */
|
|
3817
|
-
index > 0 && showDividers && !collapsed && /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx36(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs11(React11.Fragment, { children: [
|
|
3764
|
+
index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx36(SidebarNavDivider, {}),
|
|
3818
3765
|
child
|
|
3819
3766
|
] }, index)) });
|
|
3820
3767
|
};
|
|
@@ -3823,13 +3770,13 @@ var SidebarNav = ({
|
|
|
3823
3770
|
import * as React12 from "react";
|
|
3824
3771
|
import Box14 from "@mui/material/Box";
|
|
3825
3772
|
import List from "@mui/material/List";
|
|
3826
|
-
import { styled as
|
|
3773
|
+
import { styled as styled25 } from "@mui/material/styles";
|
|
3827
3774
|
|
|
3828
3775
|
// src/components/Sidebar/SidebarCategoryLabel.tsx
|
|
3829
|
-
import
|
|
3830
|
-
import { styled as
|
|
3831
|
-
import { jsx as
|
|
3832
|
-
var SidebarCategoryLabelRoot =
|
|
3776
|
+
import Typography8 from "@mui/material/Typography";
|
|
3777
|
+
import { styled as styled24 } from "@mui/material/styles";
|
|
3778
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3779
|
+
var SidebarCategoryLabelRoot = styled24(Typography8, {
|
|
3833
3780
|
name: "MuiSidebar",
|
|
3834
3781
|
slot: "CategoryLabel",
|
|
3835
3782
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -3854,13 +3801,13 @@ var SidebarCategoryLabelRoot = styled23(Typography7, {
|
|
|
3854
3801
|
}));
|
|
3855
3802
|
var SidebarCategoryLabel = ({ children, sx }) => {
|
|
3856
3803
|
const { collapsed } = useSidebar();
|
|
3857
|
-
return /* @__PURE__ */
|
|
3804
|
+
return /* @__PURE__ */ jsx37(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
|
|
3858
3805
|
};
|
|
3859
3806
|
SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
|
|
3860
3807
|
|
|
3861
3808
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
3862
|
-
import { jsx as
|
|
3863
|
-
var SidebarCategoryRoot =
|
|
3809
|
+
import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3810
|
+
var SidebarCategoryRoot = styled25(Box14, {
|
|
3864
3811
|
name: "MuiSidebar",
|
|
3865
3812
|
slot: "Category"
|
|
3866
3813
|
})(({ theme }) => ({
|
|
@@ -3889,9 +3836,9 @@ var SidebarCategory = ({
|
|
|
3889
3836
|
sx
|
|
3890
3837
|
}) => {
|
|
3891
3838
|
const { labelChild, otherChildren } = separateChildren(children);
|
|
3892
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsxs12(SidebarCategoryRoot, { sx, children: [
|
|
3893
3840
|
labelChild,
|
|
3894
|
-
/* @__PURE__ */
|
|
3841
|
+
/* @__PURE__ */ jsx38(List, { disablePadding: true, children: otherChildren })
|
|
3895
3842
|
] });
|
|
3896
3843
|
};
|
|
3897
3844
|
SidebarCategory.displayName = "SidebarCategory";
|
|
@@ -3907,12 +3854,12 @@ import ListItemText2 from "@mui/material/ListItemText";
|
|
|
3907
3854
|
import Collapse from "@mui/material/Collapse";
|
|
3908
3855
|
import Tooltip3 from "@mui/material/Tooltip";
|
|
3909
3856
|
import Popover2 from "@mui/material/Popover";
|
|
3910
|
-
import { styled as
|
|
3857
|
+
import { styled as styled29 } from "@mui/material/styles";
|
|
3911
3858
|
import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
|
|
3912
3859
|
|
|
3913
3860
|
// src/components/Sidebar/SidebarItemContext.tsx
|
|
3914
3861
|
import * as React13 from "react";
|
|
3915
|
-
import { jsx as
|
|
3862
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3916
3863
|
var SidebarItemContext = React13.createContext(null);
|
|
3917
3864
|
var useSidebarItemContext = () => {
|
|
3918
3865
|
const context = React13.useContext(SidebarItemContext);
|
|
@@ -3924,15 +3871,15 @@ var useSidebarItemContext = () => {
|
|
|
3924
3871
|
return context;
|
|
3925
3872
|
};
|
|
3926
3873
|
var SidebarItemProvider = ({ value, children }) => {
|
|
3927
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ jsx39(SidebarItemContext.Provider, { value, children });
|
|
3928
3875
|
};
|
|
3929
3876
|
|
|
3930
3877
|
// src/components/Sidebar/SidebarItemIcon.tsx
|
|
3931
3878
|
import * as React14 from "react";
|
|
3932
3879
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
3933
|
-
import { styled as
|
|
3934
|
-
import { jsx as
|
|
3935
|
-
var SidebarItemIconRoot =
|
|
3880
|
+
import { styled as styled26 } from "@mui/material/styles";
|
|
3881
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3882
|
+
var SidebarItemIconRoot = styled26(ListItemIcon, {
|
|
3936
3883
|
name: "MuiSidebar",
|
|
3937
3884
|
slot: "ItemIcon",
|
|
3938
3885
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3952,7 +3899,7 @@ var SidebarItemIcon = ({
|
|
|
3952
3899
|
const iconWithSize = React14.isValidElement(children) ? React14.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
|
|
3953
3900
|
size: (_a = children.props.size) != null ? _a : 20
|
|
3954
3901
|
})) : children;
|
|
3955
|
-
return /* @__PURE__ */
|
|
3902
|
+
return /* @__PURE__ */ jsx40(
|
|
3956
3903
|
SidebarItemIconRoot,
|
|
3957
3904
|
{
|
|
3958
3905
|
ownerState: { collapsed, isActive },
|
|
@@ -3965,9 +3912,9 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
|
|
|
3965
3912
|
|
|
3966
3913
|
// src/components/Sidebar/SidebarItemLabel.tsx
|
|
3967
3914
|
import ListItemText from "@mui/material/ListItemText";
|
|
3968
|
-
import { styled as
|
|
3969
|
-
import { jsx as
|
|
3970
|
-
var SidebarItemLabelRoot =
|
|
3915
|
+
import { styled as styled27 } from "@mui/material/styles";
|
|
3916
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3917
|
+
var SidebarItemLabelRoot = styled27(ListItemText, {
|
|
3971
3918
|
name: "MuiSidebar",
|
|
3972
3919
|
slot: "ItemLabel",
|
|
3973
3920
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3992,15 +3939,15 @@ var SidebarItemLabel = ({
|
|
|
3992
3939
|
}) => {
|
|
3993
3940
|
const { collapsed } = useSidebar();
|
|
3994
3941
|
const { isActive } = useSidebarItemContext();
|
|
3995
|
-
return /* @__PURE__ */
|
|
3942
|
+
return /* @__PURE__ */ jsx41(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
|
|
3996
3943
|
};
|
|
3997
3944
|
SidebarItemLabel.displayName = "SidebarItemLabel";
|
|
3998
3945
|
|
|
3999
3946
|
// src/components/Sidebar/SidebarItemBadge.tsx
|
|
4000
3947
|
import Chip from "@mui/material/Chip";
|
|
4001
|
-
import { styled as
|
|
4002
|
-
import { jsx as
|
|
4003
|
-
var SidebarItemBadgeRoot =
|
|
3948
|
+
import { styled as styled28 } from "@mui/material/styles";
|
|
3949
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3950
|
+
var SidebarItemBadgeRoot = styled28(Chip, {
|
|
4004
3951
|
name: "MuiSidebar",
|
|
4005
3952
|
slot: "ItemBadge"
|
|
4006
3953
|
})({
|
|
@@ -4017,20 +3964,20 @@ var SidebarItemBadge = ({
|
|
|
4017
3964
|
if (collapsed) {
|
|
4018
3965
|
return null;
|
|
4019
3966
|
}
|
|
4020
|
-
return /* @__PURE__ */
|
|
3967
|
+
return /* @__PURE__ */ jsx42(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
|
|
4021
3968
|
};
|
|
4022
3969
|
SidebarItemBadge.displayName = "SidebarItemBadge";
|
|
4023
3970
|
|
|
4024
3971
|
// src/components/Sidebar/SidebarItem.tsx
|
|
4025
|
-
import { Fragment as Fragment5, jsx as
|
|
4026
|
-
var SidebarItemRoot =
|
|
3972
|
+
import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3973
|
+
var SidebarItemRoot = styled29(ListItem, {
|
|
4027
3974
|
name: "MuiSidebar",
|
|
4028
3975
|
slot: "Item"
|
|
4029
3976
|
})({
|
|
4030
3977
|
display: "block",
|
|
4031
3978
|
padding: 0
|
|
4032
3979
|
});
|
|
4033
|
-
var SidebarItemButton =
|
|
3980
|
+
var SidebarItemButton = styled29(ListItemButton, {
|
|
4034
3981
|
name: "MuiSidebar",
|
|
4035
3982
|
slot: "ItemButton",
|
|
4036
3983
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4054,7 +4001,7 @@ var SidebarItemButton = styled28(ListItemButton, {
|
|
|
4054
4001
|
}
|
|
4055
4002
|
}
|
|
4056
4003
|
}));
|
|
4057
|
-
var SidebarItemChevron =
|
|
4004
|
+
var SidebarItemChevron = styled29(Box15, {
|
|
4058
4005
|
name: "MuiSidebar",
|
|
4059
4006
|
slot: "ItemChevron"
|
|
4060
4007
|
})({
|
|
@@ -4063,20 +4010,20 @@ var SidebarItemChevron = styled28(Box15, {
|
|
|
4063
4010
|
display: "flex",
|
|
4064
4011
|
alignItems: "center"
|
|
4065
4012
|
});
|
|
4066
|
-
var SidebarItemPopover =
|
|
4013
|
+
var SidebarItemPopover = styled29(Popover2, {
|
|
4067
4014
|
name: "MuiSidebar",
|
|
4068
4015
|
slot: "ItemPopover"
|
|
4069
4016
|
})({
|
|
4070
4017
|
pointerEvents: "none"
|
|
4071
4018
|
});
|
|
4072
|
-
var SidebarItemPopoverList =
|
|
4019
|
+
var SidebarItemPopoverList = styled29(List2, {
|
|
4073
4020
|
name: "MuiSidebar",
|
|
4074
4021
|
slot: "ItemPopoverList"
|
|
4075
4022
|
})(({ theme }) => ({
|
|
4076
4023
|
padding: theme.spacing(0.5),
|
|
4077
4024
|
pointerEvents: "auto"
|
|
4078
4025
|
}));
|
|
4079
|
-
var SidebarItemPopoverButton =
|
|
4026
|
+
var SidebarItemPopoverButton = styled29(ListItemButton, {
|
|
4080
4027
|
name: "MuiSidebar",
|
|
4081
4028
|
slot: "ItemPopoverButton"
|
|
4082
4029
|
})(({ theme }) => ({
|
|
@@ -4194,28 +4141,28 @@ var SidebarItem = ({
|
|
|
4194
4141
|
const tooltipLabel = getTooltipLabel(children);
|
|
4195
4142
|
const ownerState = { collapsed, depth };
|
|
4196
4143
|
const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
|
|
4197
|
-
const buttonContent = /* @__PURE__ */
|
|
4144
|
+
const buttonContent = /* @__PURE__ */ jsx43(
|
|
4198
4145
|
SidebarItemButton,
|
|
4199
4146
|
{
|
|
4200
4147
|
selected: shouldShowSelected,
|
|
4201
4148
|
onClick: handleClick,
|
|
4202
4149
|
ownerState,
|
|
4203
4150
|
sx,
|
|
4204
|
-
children: /* @__PURE__ */
|
|
4151
|
+
children: /* @__PURE__ */ jsxs13(SidebarItemProvider, { value: contextValue, children: [
|
|
4205
4152
|
composableChildren,
|
|
4206
|
-
!collapsed && hasNestedItems && /* @__PURE__ */
|
|
4207
|
-
!collapsed && !hasNestedItems && /* @__PURE__ */
|
|
4153
|
+
!collapsed && hasNestedItems && /* @__PURE__ */ jsx43(SidebarItemChevron, { children: isExpanded ? /* @__PURE__ */ jsx43(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx43(ChevronDown2, { size: 16 }) }),
|
|
4154
|
+
!collapsed && !hasNestedItems && /* @__PURE__ */ jsx43(Box15, { sx: { ml: "auto", width: 16, pl: 1 } })
|
|
4208
4155
|
] })
|
|
4209
4156
|
}
|
|
4210
4157
|
);
|
|
4211
|
-
const wrappedContent = link ? /* @__PURE__ */
|
|
4158
|
+
const wrappedContent = link ? /* @__PURE__ */ jsx43(Fragment5, { children: React15.cloneElement(link, {}, buttonContent) }) : buttonContent;
|
|
4212
4159
|
const collapsedWithNested = collapsed && hasNestedItems;
|
|
4213
4160
|
const handlePopoverItemClick = (itemId) => {
|
|
4214
4161
|
onSelect == null ? void 0 : onSelect(itemId);
|
|
4215
4162
|
setPopoverAnchor(null);
|
|
4216
4163
|
};
|
|
4217
|
-
return /* @__PURE__ */
|
|
4218
|
-
/* @__PURE__ */
|
|
4164
|
+
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
4165
|
+
/* @__PURE__ */ jsx43(
|
|
4219
4166
|
SidebarItemRoot,
|
|
4220
4167
|
{
|
|
4221
4168
|
disablePadding: true,
|
|
@@ -4223,11 +4170,11 @@ var SidebarItem = ({
|
|
|
4223
4170
|
onMouseLeave: handleMouseLeave,
|
|
4224
4171
|
children: collapsed ? (
|
|
4225
4172
|
// When collapsed: show tooltip only for items without nested children
|
|
4226
|
-
collapsedWithNested ? wrappedContent : /* @__PURE__ */
|
|
4173
|
+
collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx43(Tooltip3, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
|
|
4227
4174
|
) : wrappedContent
|
|
4228
4175
|
}
|
|
4229
4176
|
),
|
|
4230
|
-
collapsedWithNested && /* @__PURE__ */
|
|
4177
|
+
collapsedWithNested && /* @__PURE__ */ jsx43(
|
|
4231
4178
|
SidebarItemPopover,
|
|
4232
4179
|
{
|
|
4233
4180
|
open: popoverOpen,
|
|
@@ -4242,19 +4189,19 @@ var SidebarItem = ({
|
|
|
4242
4189
|
onMouseLeave: handleMouseLeave
|
|
4243
4190
|
}
|
|
4244
4191
|
},
|
|
4245
|
-
children: /* @__PURE__ */
|
|
4192
|
+
children: /* @__PURE__ */ jsx43(SidebarItemPopoverList, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
4246
4193
|
if (React15.isValidElement(child)) {
|
|
4247
4194
|
const childProps = child.props;
|
|
4248
4195
|
const { icon, label } = extractItemContent(childProps.children);
|
|
4249
4196
|
const isItemActive = activeItem === childProps.id;
|
|
4250
|
-
return /* @__PURE__ */
|
|
4197
|
+
return /* @__PURE__ */ jsxs13(
|
|
4251
4198
|
SidebarItemPopoverButton,
|
|
4252
4199
|
{
|
|
4253
4200
|
selected: isItemActive,
|
|
4254
4201
|
onClick: () => handlePopoverItemClick(childProps.id),
|
|
4255
4202
|
children: [
|
|
4256
|
-
icon && /* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */
|
|
4203
|
+
icon && /* @__PURE__ */ jsx43(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
|
|
4204
|
+
/* @__PURE__ */ jsx43(ListItemText2, { primary: label })
|
|
4258
4205
|
]
|
|
4259
4206
|
},
|
|
4260
4207
|
childProps.id || index
|
|
@@ -4264,7 +4211,7 @@ var SidebarItem = ({
|
|
|
4264
4211
|
}) })
|
|
4265
4212
|
}
|
|
4266
4213
|
),
|
|
4267
|
-
hasNestedItems && !collapsed && /* @__PURE__ */
|
|
4214
|
+
hasNestedItems && !collapsed && /* @__PURE__ */ jsx43(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx43(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
4268
4215
|
if (React15.isValidElement(child)) {
|
|
4269
4216
|
return React15.cloneElement(child, {
|
|
4270
4217
|
key: child.key || index,
|
|
@@ -4280,9 +4227,9 @@ SidebarItem.displayName = "SidebarItem";
|
|
|
4280
4227
|
// src/components/Sidebar/SidebarFooter.tsx
|
|
4281
4228
|
import Box16 from "@mui/material/Box";
|
|
4282
4229
|
import Divider4 from "@mui/material/Divider";
|
|
4283
|
-
import { styled as
|
|
4284
|
-
import { Fragment as Fragment6, jsx as
|
|
4285
|
-
var SidebarFooterRoot =
|
|
4230
|
+
import { styled as styled30 } from "@mui/material/styles";
|
|
4231
|
+
import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4232
|
+
var SidebarFooterRoot = styled30(Box16, {
|
|
4286
4233
|
name: "MuiSidebar",
|
|
4287
4234
|
slot: "Footer"
|
|
4288
4235
|
})(({ theme }) => ({
|
|
@@ -4294,9 +4241,9 @@ var SidebarFooter = ({
|
|
|
4294
4241
|
showDivider = true,
|
|
4295
4242
|
sx
|
|
4296
4243
|
}) => {
|
|
4297
|
-
return /* @__PURE__ */
|
|
4298
|
-
showDivider && /* @__PURE__ */
|
|
4299
|
-
/* @__PURE__ */
|
|
4244
|
+
return /* @__PURE__ */ jsxs14(Fragment6, { children: [
|
|
4245
|
+
showDivider && /* @__PURE__ */ jsx44(Divider4, {}),
|
|
4246
|
+
/* @__PURE__ */ jsx44(SidebarFooterRoot, { sx, children })
|
|
4300
4247
|
] });
|
|
4301
4248
|
};
|
|
4302
4249
|
|
|
@@ -4306,13 +4253,13 @@ import Box17 from "@mui/material/Box";
|
|
|
4306
4253
|
import ListItemButton2 from "@mui/material/ListItemButton";
|
|
4307
4254
|
import Tooltip4 from "@mui/material/Tooltip";
|
|
4308
4255
|
import Divider5 from "@mui/material/Divider";
|
|
4309
|
-
import { styled as
|
|
4256
|
+
import { styled as styled34 } from "@mui/material/styles";
|
|
4310
4257
|
|
|
4311
4258
|
// src/components/Sidebar/SidebarUserAvatar.tsx
|
|
4312
4259
|
import Avatar2 from "@mui/material/Avatar";
|
|
4313
|
-
import { styled as
|
|
4314
|
-
import { jsx as
|
|
4315
|
-
var SidebarUserAvatarRoot =
|
|
4260
|
+
import { styled as styled31 } from "@mui/material/styles";
|
|
4261
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4262
|
+
var SidebarUserAvatarRoot = styled31(Avatar2, {
|
|
4316
4263
|
name: "MuiSidebar",
|
|
4317
4264
|
slot: "UserAvatar"
|
|
4318
4265
|
})(({ theme }) => ({
|
|
@@ -4328,15 +4275,15 @@ var SidebarUserAvatar = ({
|
|
|
4328
4275
|
alt,
|
|
4329
4276
|
sx
|
|
4330
4277
|
}) => {
|
|
4331
|
-
return /* @__PURE__ */
|
|
4278
|
+
return /* @__PURE__ */ jsx45(SidebarUserAvatarRoot, { src, alt, sx, children });
|
|
4332
4279
|
};
|
|
4333
4280
|
SidebarUserAvatar.displayName = "SidebarUserAvatar";
|
|
4334
4281
|
|
|
4335
4282
|
// src/components/Sidebar/SidebarUserName.tsx
|
|
4336
|
-
import
|
|
4337
|
-
import { styled as
|
|
4338
|
-
import { jsx as
|
|
4339
|
-
var SidebarUserNameRoot =
|
|
4283
|
+
import Typography9 from "@mui/material/Typography";
|
|
4284
|
+
import { styled as styled32 } from "@mui/material/styles";
|
|
4285
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4286
|
+
var SidebarUserNameRoot = styled32(Typography9, {
|
|
4340
4287
|
name: "MuiSidebar",
|
|
4341
4288
|
slot: "UserName"
|
|
4342
4289
|
})({
|
|
@@ -4353,15 +4300,15 @@ var SidebarUserName = ({
|
|
|
4353
4300
|
if (collapsed) {
|
|
4354
4301
|
return null;
|
|
4355
4302
|
}
|
|
4356
|
-
return /* @__PURE__ */
|
|
4303
|
+
return /* @__PURE__ */ jsx46(SidebarUserNameRoot, { variant: "body2", sx, children });
|
|
4357
4304
|
};
|
|
4358
4305
|
SidebarUserName.displayName = "SidebarUserName";
|
|
4359
4306
|
|
|
4360
4307
|
// src/components/Sidebar/SidebarUserEmail.tsx
|
|
4361
|
-
import
|
|
4362
|
-
import { styled as
|
|
4363
|
-
import { jsx as
|
|
4364
|
-
var SidebarUserEmailRoot =
|
|
4308
|
+
import Typography10 from "@mui/material/Typography";
|
|
4309
|
+
import { styled as styled33 } from "@mui/material/styles";
|
|
4310
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4311
|
+
var SidebarUserEmailRoot = styled33(Typography10, {
|
|
4365
4312
|
name: "MuiSidebar",
|
|
4366
4313
|
slot: "UserEmail"
|
|
4367
4314
|
})(({ theme }) => ({
|
|
@@ -4379,19 +4326,19 @@ var SidebarUserEmail = ({
|
|
|
4379
4326
|
if (collapsed) {
|
|
4380
4327
|
return null;
|
|
4381
4328
|
}
|
|
4382
|
-
return /* @__PURE__ */
|
|
4329
|
+
return /* @__PURE__ */ jsx47(SidebarUserEmailRoot, { variant: "caption", sx, children });
|
|
4383
4330
|
};
|
|
4384
4331
|
SidebarUserEmail.displayName = "SidebarUserEmail";
|
|
4385
4332
|
|
|
4386
4333
|
// src/components/Sidebar/SidebarUser.tsx
|
|
4387
|
-
import { Fragment as Fragment7, jsx as
|
|
4388
|
-
var SidebarUserRoot =
|
|
4334
|
+
import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4335
|
+
var SidebarUserRoot = styled34(Box17, {
|
|
4389
4336
|
name: "MuiSidebar",
|
|
4390
4337
|
slot: "User"
|
|
4391
4338
|
})(({ theme }) => ({
|
|
4392
4339
|
padding: theme.spacing(2)
|
|
4393
4340
|
}));
|
|
4394
|
-
var SidebarUserButton =
|
|
4341
|
+
var SidebarUserButton = styled34(ListItemButton2, {
|
|
4395
4342
|
name: "MuiSidebar",
|
|
4396
4343
|
slot: "UserButton",
|
|
4397
4344
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4408,7 +4355,7 @@ var SidebarUserButton = styled33(ListItemButton2, {
|
|
|
4408
4355
|
duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
|
|
4409
4356
|
})
|
|
4410
4357
|
}));
|
|
4411
|
-
var SidebarUserTextContainer =
|
|
4358
|
+
var SidebarUserTextContainer = styled34(Box17, {
|
|
4412
4359
|
name: "MuiSidebar",
|
|
4413
4360
|
slot: "UserTextContainer",
|
|
4414
4361
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -4463,22 +4410,22 @@ var SidebarUser = ({
|
|
|
4463
4410
|
const { avatarChild, textChildren } = separateChildren3(children);
|
|
4464
4411
|
const tooltipText = getTooltipText(children);
|
|
4465
4412
|
const ownerState = { collapsed };
|
|
4466
|
-
const content = /* @__PURE__ */
|
|
4413
|
+
const content = /* @__PURE__ */ jsxs15(SidebarUserButton, { onClick, ownerState, children: [
|
|
4467
4414
|
avatarChild,
|
|
4468
|
-
/* @__PURE__ */
|
|
4415
|
+
/* @__PURE__ */ jsx48(SidebarUserTextContainer, { collapsed, children: textChildren })
|
|
4469
4416
|
] });
|
|
4470
|
-
return /* @__PURE__ */
|
|
4471
|
-
showDivider && /* @__PURE__ */
|
|
4472
|
-
/* @__PURE__ */
|
|
4417
|
+
return /* @__PURE__ */ jsxs15(Fragment7, { children: [
|
|
4418
|
+
showDivider && /* @__PURE__ */ jsx48(Divider5, {}),
|
|
4419
|
+
/* @__PURE__ */ jsx48(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx48(Tooltip4, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
|
|
4473
4420
|
] });
|
|
4474
4421
|
};
|
|
4475
4422
|
SidebarUser.displayName = "SidebarUser";
|
|
4476
4423
|
|
|
4477
4424
|
// src/components/Sidebar/Sidebar.tsx
|
|
4478
|
-
import { jsx as
|
|
4425
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4479
4426
|
var SIDEBAR_WIDTH = 250;
|
|
4480
4427
|
var COLLAPSED_SIDEBAR_WIDTH = 64;
|
|
4481
|
-
var SidebarRootStyled =
|
|
4428
|
+
var SidebarRootStyled = styled35(Box18, {
|
|
4482
4429
|
name: "MuiSidebar",
|
|
4483
4430
|
slot: "Root",
|
|
4484
4431
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4538,7 +4485,7 @@ var Sidebar = ({
|
|
|
4538
4485
|
[collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
|
|
4539
4486
|
);
|
|
4540
4487
|
const ownerState = { collapsed, width, collapsedWidth };
|
|
4541
|
-
return /* @__PURE__ */
|
|
4488
|
+
return /* @__PURE__ */ jsx49(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx49(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
|
|
4542
4489
|
};
|
|
4543
4490
|
Sidebar.Nav = SidebarNav;
|
|
4544
4491
|
Sidebar.Category = SidebarCategory;
|
|
@@ -4557,7 +4504,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
4557
4504
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
4558
4505
|
import * as React23 from "react";
|
|
4559
4506
|
import Drawer from "@mui/material/Drawer";
|
|
4560
|
-
import { styled as
|
|
4507
|
+
import { styled as styled51 } from "@mui/material/styles";
|
|
4561
4508
|
|
|
4562
4509
|
// src/components/NotificationPanel/context.ts
|
|
4563
4510
|
import * as React18 from "react";
|
|
@@ -4575,9 +4522,9 @@ var useNotificationPanel = () => {
|
|
|
4575
4522
|
// src/components/NotificationPanel/NotificationHeader.tsx
|
|
4576
4523
|
import * as React19 from "react";
|
|
4577
4524
|
import Box19 from "@mui/material/Box";
|
|
4578
|
-
import { styled as
|
|
4579
|
-
import { jsx as
|
|
4580
|
-
var NotificationHeaderRoot =
|
|
4525
|
+
import { styled as styled36 } from "@mui/material/styles";
|
|
4526
|
+
import { jsx as jsx50, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4527
|
+
var NotificationHeaderRoot = styled36(Box19, {
|
|
4581
4528
|
name: "MuiNotificationPanel",
|
|
4582
4529
|
slot: "Header"
|
|
4583
4530
|
})(({ theme }) => ({
|
|
@@ -4587,7 +4534,7 @@ var NotificationHeaderRoot = styled35(Box19, {
|
|
|
4587
4534
|
padding: theme.spacing(2),
|
|
4588
4535
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
4589
4536
|
}));
|
|
4590
|
-
var NotificationHeaderContent =
|
|
4537
|
+
var NotificationHeaderContent = styled36(Box19, {
|
|
4591
4538
|
name: "MuiNotificationPanel",
|
|
4592
4539
|
slot: "HeaderContent"
|
|
4593
4540
|
})(({ theme }) => ({
|
|
@@ -4618,8 +4565,8 @@ var NotificationHeader = ({
|
|
|
4618
4565
|
sx
|
|
4619
4566
|
}) => {
|
|
4620
4567
|
const { leftChildren, closeChild } = separateChildren4(children);
|
|
4621
|
-
return /* @__PURE__ */
|
|
4622
|
-
/* @__PURE__ */
|
|
4568
|
+
return /* @__PURE__ */ jsxs16(NotificationHeaderRoot, { sx, children: [
|
|
4569
|
+
/* @__PURE__ */ jsx50(NotificationHeaderContent, { children: leftChildren }),
|
|
4623
4570
|
closeChild
|
|
4624
4571
|
] });
|
|
4625
4572
|
};
|
|
@@ -4627,9 +4574,9 @@ NotificationHeader.displayName = "NotificationHeader";
|
|
|
4627
4574
|
|
|
4628
4575
|
// src/components/NotificationPanel/NotificationHeaderIcon.tsx
|
|
4629
4576
|
import Box20 from "@mui/material/Box";
|
|
4630
|
-
import { styled as
|
|
4631
|
-
import { jsx as
|
|
4632
|
-
var NotificationHeaderIconRoot =
|
|
4577
|
+
import { styled as styled37 } from "@mui/material/styles";
|
|
4578
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4579
|
+
var NotificationHeaderIconRoot = styled37(Box20, {
|
|
4633
4580
|
name: "MuiNotificationPanel",
|
|
4634
4581
|
slot: "HeaderIcon"
|
|
4635
4582
|
})({
|
|
@@ -4640,15 +4587,15 @@ var NotificationHeaderIcon = ({
|
|
|
4640
4587
|
children,
|
|
4641
4588
|
sx
|
|
4642
4589
|
}) => {
|
|
4643
|
-
return /* @__PURE__ */
|
|
4590
|
+
return /* @__PURE__ */ jsx51(NotificationHeaderIconRoot, { sx, children });
|
|
4644
4591
|
};
|
|
4645
4592
|
NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
|
|
4646
4593
|
|
|
4647
4594
|
// src/components/NotificationPanel/NotificationHeaderTitle.tsx
|
|
4648
|
-
import
|
|
4649
|
-
import { styled as
|
|
4650
|
-
import { jsx as
|
|
4651
|
-
var NotificationHeaderTitleRoot =
|
|
4595
|
+
import Typography11 from "@mui/material/Typography";
|
|
4596
|
+
import { styled as styled38 } from "@mui/material/styles";
|
|
4597
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4598
|
+
var NotificationHeaderTitleRoot = styled38(Typography11, {
|
|
4652
4599
|
name: "MuiNotificationPanel",
|
|
4653
4600
|
slot: "HeaderTitle"
|
|
4654
4601
|
})({
|
|
@@ -4658,15 +4605,15 @@ var NotificationHeaderTitle = ({
|
|
|
4658
4605
|
children,
|
|
4659
4606
|
sx
|
|
4660
4607
|
}) => {
|
|
4661
|
-
return /* @__PURE__ */
|
|
4608
|
+
return /* @__PURE__ */ jsx52(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
|
|
4662
4609
|
};
|
|
4663
4610
|
NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
|
|
4664
4611
|
|
|
4665
4612
|
// src/components/NotificationPanel/NotificationHeaderBadge.tsx
|
|
4666
4613
|
import Chip2 from "@mui/material/Chip";
|
|
4667
|
-
import { styled as
|
|
4668
|
-
import { jsx as
|
|
4669
|
-
var NotificationHeaderBadgeRoot =
|
|
4614
|
+
import { styled as styled39 } from "@mui/material/styles";
|
|
4615
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4616
|
+
var NotificationHeaderBadgeRoot = styled39(Chip2, {
|
|
4670
4617
|
name: "MuiNotificationPanel",
|
|
4671
4618
|
slot: "HeaderBadge"
|
|
4672
4619
|
})({
|
|
@@ -4681,16 +4628,16 @@ var NotificationHeaderBadge = ({
|
|
|
4681
4628
|
if (!children || children === 0 || children === "0") {
|
|
4682
4629
|
return null;
|
|
4683
4630
|
}
|
|
4684
|
-
return /* @__PURE__ */
|
|
4631
|
+
return /* @__PURE__ */ jsx53(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
|
|
4685
4632
|
};
|
|
4686
4633
|
NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
4687
4634
|
|
|
4688
4635
|
// src/components/NotificationPanel/NotificationHeaderClose.tsx
|
|
4689
4636
|
import IconButton4 from "@mui/material/IconButton";
|
|
4690
|
-
import { styled as
|
|
4637
|
+
import { styled as styled40 } from "@mui/material/styles";
|
|
4691
4638
|
import { X as X2 } from "@wso2/oxygen-ui-icons-react";
|
|
4692
|
-
import { jsx as
|
|
4693
|
-
var NotificationHeaderCloseRoot =
|
|
4639
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
4640
|
+
var NotificationHeaderCloseRoot = styled40(IconButton4, {
|
|
4694
4641
|
name: "MuiNotificationPanel",
|
|
4695
4642
|
slot: "HeaderClose"
|
|
4696
4643
|
})({});
|
|
@@ -4707,7 +4654,7 @@ var NotificationHeaderClose = ({
|
|
|
4707
4654
|
onClose == null ? void 0 : onClose();
|
|
4708
4655
|
}
|
|
4709
4656
|
};
|
|
4710
|
-
return /* @__PURE__ */
|
|
4657
|
+
return /* @__PURE__ */ jsx54(NotificationHeaderCloseRoot, { onClick: handleClick, size: "small", sx, children: children || /* @__PURE__ */ jsx54(X2, { size: 20 }) });
|
|
4711
4658
|
};
|
|
4712
4659
|
NotificationHeaderClose.displayName = "NotificationHeaderClose";
|
|
4713
4660
|
|
|
@@ -4716,15 +4663,15 @@ import Box21 from "@mui/material/Box";
|
|
|
4716
4663
|
import Tabs from "@mui/material/Tabs";
|
|
4717
4664
|
import Tab from "@mui/material/Tab";
|
|
4718
4665
|
import Chip3 from "@mui/material/Chip";
|
|
4719
|
-
import { styled as
|
|
4720
|
-
import { jsx as
|
|
4721
|
-
var NotificationTabsRoot =
|
|
4666
|
+
import { styled as styled41 } from "@mui/material/styles";
|
|
4667
|
+
import { jsx as jsx55, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4668
|
+
var NotificationTabsRoot = styled41(Box21, {
|
|
4722
4669
|
name: "MuiNotificationPanel",
|
|
4723
4670
|
slot: "Tabs"
|
|
4724
4671
|
})(({ theme }) => ({
|
|
4725
4672
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
4726
4673
|
}));
|
|
4727
|
-
var NotificationTabsInner =
|
|
4674
|
+
var NotificationTabsInner = styled41(Tabs, {
|
|
4728
4675
|
name: "MuiNotificationPanel",
|
|
4729
4676
|
slot: "TabsInner"
|
|
4730
4677
|
})({
|
|
@@ -4735,7 +4682,7 @@ var NotificationTabsInner = styled40(Tabs, {
|
|
|
4735
4682
|
fontWeight: 500
|
|
4736
4683
|
}
|
|
4737
4684
|
});
|
|
4738
|
-
var NotificationTabLabel =
|
|
4685
|
+
var NotificationTabLabel = styled41(Box21, {
|
|
4739
4686
|
name: "MuiNotificationPanel",
|
|
4740
4687
|
slot: "TabLabel"
|
|
4741
4688
|
})(({ theme }) => ({
|
|
@@ -4743,7 +4690,7 @@ var NotificationTabLabel = styled40(Box21, {
|
|
|
4743
4690
|
alignItems: "center",
|
|
4744
4691
|
gap: theme.spacing(1)
|
|
4745
4692
|
}));
|
|
4746
|
-
var NotificationTabCount =
|
|
4693
|
+
var NotificationTabCount = styled41(Chip3, {
|
|
4747
4694
|
name: "MuiNotificationPanel",
|
|
4748
4695
|
slot: "TabCount"
|
|
4749
4696
|
})({
|
|
@@ -4756,18 +4703,18 @@ var NotificationTabs = ({
|
|
|
4756
4703
|
onChange,
|
|
4757
4704
|
sx
|
|
4758
4705
|
}) => {
|
|
4759
|
-
return /* @__PURE__ */
|
|
4706
|
+
return /* @__PURE__ */ jsx55(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx55(
|
|
4760
4707
|
NotificationTabsInner,
|
|
4761
4708
|
{
|
|
4762
4709
|
value,
|
|
4763
4710
|
onChange: (_, newValue) => onChange(newValue),
|
|
4764
4711
|
variant: "fullWidth",
|
|
4765
|
-
children: tabs.map((tab, index) => /* @__PURE__ */
|
|
4712
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ jsx55(
|
|
4766
4713
|
Tab,
|
|
4767
4714
|
{
|
|
4768
|
-
label: /* @__PURE__ */
|
|
4715
|
+
label: /* @__PURE__ */ jsxs17(NotificationTabLabel, { children: [
|
|
4769
4716
|
tab.label,
|
|
4770
|
-
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */
|
|
4717
|
+
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx55(
|
|
4771
4718
|
NotificationTabCount,
|
|
4772
4719
|
{
|
|
4773
4720
|
label: tab.count,
|
|
@@ -4787,10 +4734,10 @@ var NotificationTabs = ({
|
|
|
4787
4734
|
// src/components/NotificationPanel/NotificationActions.tsx
|
|
4788
4735
|
import Box22 from "@mui/material/Box";
|
|
4789
4736
|
import Button3 from "@mui/material/Button";
|
|
4790
|
-
import { styled as
|
|
4737
|
+
import { styled as styled42 } from "@mui/material/styles";
|
|
4791
4738
|
import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
|
|
4792
|
-
import { jsx as
|
|
4793
|
-
var NotificationActionsRoot =
|
|
4739
|
+
import { jsx as jsx56, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4740
|
+
var NotificationActionsRoot = styled42(Box22, {
|
|
4794
4741
|
name: "MuiNotificationPanel",
|
|
4795
4742
|
slot: "Actions"
|
|
4796
4743
|
})(({ theme }) => ({
|
|
@@ -4802,7 +4749,7 @@ var NotificationActionsRoot = styled41(Box22, {
|
|
|
4802
4749
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
4803
4750
|
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
4804
4751
|
}));
|
|
4805
|
-
var NotificationActionButton =
|
|
4752
|
+
var NotificationActionButton = styled42(Button3, {
|
|
4806
4753
|
name: "MuiNotificationPanel",
|
|
4807
4754
|
slot: "ActionButton"
|
|
4808
4755
|
})({
|
|
@@ -4815,21 +4762,21 @@ var NotificationActions = ({
|
|
|
4815
4762
|
onClearAll,
|
|
4816
4763
|
sx
|
|
4817
4764
|
}) => {
|
|
4818
|
-
return /* @__PURE__ */
|
|
4819
|
-
hasUnread && onMarkAllRead && /* @__PURE__ */
|
|
4765
|
+
return /* @__PURE__ */ jsxs18(NotificationActionsRoot, { sx, children: [
|
|
4766
|
+
hasUnread && onMarkAllRead && /* @__PURE__ */ jsx56(
|
|
4820
4767
|
NotificationActionButton,
|
|
4821
4768
|
{
|
|
4822
4769
|
size: "small",
|
|
4823
|
-
startIcon: /* @__PURE__ */
|
|
4770
|
+
startIcon: /* @__PURE__ */ jsx56(CheckCheck, { size: 14 }),
|
|
4824
4771
|
onClick: onMarkAllRead,
|
|
4825
4772
|
children: "Mark all read"
|
|
4826
4773
|
}
|
|
4827
4774
|
),
|
|
4828
|
-
onClearAll && /* @__PURE__ */
|
|
4775
|
+
onClearAll && /* @__PURE__ */ jsx56(
|
|
4829
4776
|
NotificationActionButton,
|
|
4830
4777
|
{
|
|
4831
4778
|
size: "small",
|
|
4832
|
-
startIcon: /* @__PURE__ */
|
|
4779
|
+
startIcon: /* @__PURE__ */ jsx56(Trash2, { size: 14 }),
|
|
4833
4780
|
onClick: onClearAll,
|
|
4834
4781
|
color: "error",
|
|
4835
4782
|
children: "Clear all"
|
|
@@ -4843,9 +4790,9 @@ import * as React20 from "react";
|
|
|
4843
4790
|
import Box23 from "@mui/material/Box";
|
|
4844
4791
|
import List3 from "@mui/material/List";
|
|
4845
4792
|
import Divider6 from "@mui/material/Divider";
|
|
4846
|
-
import { styled as
|
|
4847
|
-
import { jsx as
|
|
4848
|
-
var NotificationListRoot =
|
|
4793
|
+
import { styled as styled43 } from "@mui/material/styles";
|
|
4794
|
+
import { jsx as jsx57, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4795
|
+
var NotificationListRoot = styled43(Box23, {
|
|
4849
4796
|
name: "MuiNotificationPanel",
|
|
4850
4797
|
slot: "List"
|
|
4851
4798
|
})({
|
|
@@ -4858,9 +4805,9 @@ var NotificationList = ({
|
|
|
4858
4805
|
sx
|
|
4859
4806
|
}) => {
|
|
4860
4807
|
const childArray = React20.Children.toArray(children);
|
|
4861
|
-
return /* @__PURE__ */
|
|
4808
|
+
return /* @__PURE__ */ jsx57(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx57(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs19(React20.Fragment, { children: [
|
|
4862
4809
|
child,
|
|
4863
|
-
showDividers && index < childArray.length - 1 && /* @__PURE__ */
|
|
4810
|
+
showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx57(Divider6, {})
|
|
4864
4811
|
] }, index)) }) });
|
|
4865
4812
|
};
|
|
4866
4813
|
|
|
@@ -4871,7 +4818,7 @@ import ListItem2 from "@mui/material/ListItem";
|
|
|
4871
4818
|
import ListItemButton3 from "@mui/material/ListItemButton";
|
|
4872
4819
|
import ListItemText3 from "@mui/material/ListItemText";
|
|
4873
4820
|
import IconButton5 from "@mui/material/IconButton";
|
|
4874
|
-
import { styled as
|
|
4821
|
+
import { styled as styled44 } from "@mui/material/styles";
|
|
4875
4822
|
import { X as X3 } from "@wso2/oxygen-ui-icons-react";
|
|
4876
4823
|
|
|
4877
4824
|
// src/components/NotificationPanel/utils.ts
|
|
@@ -4912,7 +4859,7 @@ var getNotificationTypeProps = (type) => {
|
|
|
4912
4859
|
|
|
4913
4860
|
// src/components/NotificationPanel/NotificationItemContext.tsx
|
|
4914
4861
|
import * as React21 from "react";
|
|
4915
|
-
import { jsx as
|
|
4862
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
4916
4863
|
var NotificationItemContext = React21.createContext(null);
|
|
4917
4864
|
var useNotificationItemContext = () => {
|
|
4918
4865
|
const context = React21.useContext(NotificationItemContext);
|
|
@@ -4924,12 +4871,12 @@ var useNotificationItemContext = () => {
|
|
|
4924
4871
|
return context;
|
|
4925
4872
|
};
|
|
4926
4873
|
var NotificationItemProvider = ({ value, children }) => {
|
|
4927
|
-
return /* @__PURE__ */
|
|
4874
|
+
return /* @__PURE__ */ jsx58(NotificationItemContext.Provider, { value, children });
|
|
4928
4875
|
};
|
|
4929
4876
|
|
|
4930
4877
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
4931
|
-
import { jsx as
|
|
4932
|
-
var NotificationItemRoot =
|
|
4878
|
+
import { jsx as jsx59, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4879
|
+
var NotificationItemRoot = styled44(ListItem2, {
|
|
4933
4880
|
name: "MuiNotificationPanel",
|
|
4934
4881
|
slot: "Item",
|
|
4935
4882
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4939,13 +4886,13 @@ var NotificationItemRoot = styled43(ListItem2, {
|
|
|
4939
4886
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
4940
4887
|
}
|
|
4941
4888
|
}));
|
|
4942
|
-
var NotificationItemButton =
|
|
4889
|
+
var NotificationItemButton = styled44(ListItemButton3, {
|
|
4943
4890
|
name: "MuiNotificationPanel",
|
|
4944
4891
|
slot: "ItemButton"
|
|
4945
4892
|
})(({ theme }) => ({
|
|
4946
4893
|
paddingRight: theme.spacing(6)
|
|
4947
4894
|
}));
|
|
4948
|
-
var NotificationItemDismiss =
|
|
4895
|
+
var NotificationItemDismiss = styled44(IconButton5, {
|
|
4949
4896
|
name: "MuiNotificationPanel",
|
|
4950
4897
|
slot: "ItemDismiss"
|
|
4951
4898
|
})({
|
|
@@ -4954,7 +4901,7 @@ var NotificationItemDismiss = styled43(IconButton5, {
|
|
|
4954
4901
|
opacity: 1
|
|
4955
4902
|
}
|
|
4956
4903
|
});
|
|
4957
|
-
var NotificationItemFooter =
|
|
4904
|
+
var NotificationItemFooter = styled44(Box24, {
|
|
4958
4905
|
name: "MuiNotificationPanel",
|
|
4959
4906
|
slot: "ItemFooter"
|
|
4960
4907
|
})(({ theme }) => ({
|
|
@@ -5021,12 +4968,12 @@ var NotificationItem = ({
|
|
|
5021
4968
|
onAction == null ? void 0 : onAction();
|
|
5022
4969
|
};
|
|
5023
4970
|
const ownerState = { read };
|
|
5024
|
-
return /* @__PURE__ */
|
|
4971
|
+
return /* @__PURE__ */ jsx59(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx59(
|
|
5025
4972
|
NotificationItemRoot,
|
|
5026
4973
|
{
|
|
5027
4974
|
disablePadding: true,
|
|
5028
4975
|
ownerState,
|
|
5029
|
-
secondaryAction: onDismiss && /* @__PURE__ */
|
|
4976
|
+
secondaryAction: onDismiss && /* @__PURE__ */ jsx59(
|
|
5030
4977
|
NotificationItemDismiss,
|
|
5031
4978
|
{
|
|
5032
4979
|
size: "small",
|
|
@@ -5034,19 +4981,19 @@ var NotificationItem = ({
|
|
|
5034
4981
|
e.stopPropagation();
|
|
5035
4982
|
onDismiss(id);
|
|
5036
4983
|
},
|
|
5037
|
-
children: /* @__PURE__ */
|
|
4984
|
+
children: /* @__PURE__ */ jsx59(X3, { size: 16 })
|
|
5038
4985
|
}
|
|
5039
4986
|
),
|
|
5040
4987
|
sx,
|
|
5041
|
-
children: /* @__PURE__ */
|
|
4988
|
+
children: /* @__PURE__ */ jsxs20(NotificationItemButton, { onClick: handleClick, children: [
|
|
5042
4989
|
avatarChild,
|
|
5043
|
-
/* @__PURE__ */
|
|
4990
|
+
/* @__PURE__ */ jsx59(
|
|
5044
4991
|
ListItemText3,
|
|
5045
4992
|
{
|
|
5046
4993
|
primary: titleChild,
|
|
5047
|
-
secondary: /* @__PURE__ */
|
|
4994
|
+
secondary: /* @__PURE__ */ jsxs20(Box24, { component: "span", children: [
|
|
5048
4995
|
messageChild,
|
|
5049
|
-
/* @__PURE__ */
|
|
4996
|
+
/* @__PURE__ */ jsxs20(NotificationItemFooter, { children: [
|
|
5050
4997
|
timestampChild,
|
|
5051
4998
|
actionChild
|
|
5052
4999
|
] })
|
|
@@ -5062,9 +5009,9 @@ NotificationItem.displayName = "NotificationItem";
|
|
|
5062
5009
|
// src/components/NotificationPanel/NotificationItemAvatar.tsx
|
|
5063
5010
|
import ListItemAvatar from "@mui/material/ListItemAvatar";
|
|
5064
5011
|
import Avatar3 from "@mui/material/Avatar";
|
|
5065
|
-
import { styled as
|
|
5066
|
-
import { jsx as
|
|
5067
|
-
var NotificationItemAvatarStyled =
|
|
5012
|
+
import { styled as styled45 } from "@mui/material/styles";
|
|
5013
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
5014
|
+
var NotificationItemAvatarStyled = styled45(Avatar3, {
|
|
5068
5015
|
name: "MuiNotificationPanel",
|
|
5069
5016
|
slot: "ItemAvatar",
|
|
5070
5017
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5087,16 +5034,16 @@ var NotificationItemAvatar = ({
|
|
|
5087
5034
|
color: typeProps.color,
|
|
5088
5035
|
hasChildren: !!children
|
|
5089
5036
|
};
|
|
5090
|
-
return /* @__PURE__ */
|
|
5037
|
+
return /* @__PURE__ */ jsx60(ListItemAvatar, { children: /* @__PURE__ */ jsx60(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx60(Icon, { size: 20 }) }) });
|
|
5091
5038
|
};
|
|
5092
5039
|
NotificationItemAvatar.displayName = "NotificationItemAvatar";
|
|
5093
5040
|
|
|
5094
5041
|
// src/components/NotificationPanel/NotificationItemTitle.tsx
|
|
5095
5042
|
import Box25 from "@mui/material/Box";
|
|
5096
|
-
import
|
|
5097
|
-
import { styled as
|
|
5098
|
-
import { jsx as
|
|
5099
|
-
var NotificationItemTitleRoot =
|
|
5043
|
+
import Typography12 from "@mui/material/Typography";
|
|
5044
|
+
import { styled as styled46 } from "@mui/material/styles";
|
|
5045
|
+
import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5046
|
+
var NotificationItemTitleRoot = styled46(Box25, {
|
|
5100
5047
|
name: "MuiNotificationPanel",
|
|
5101
5048
|
slot: "ItemTitle"
|
|
5102
5049
|
})(({ theme }) => ({
|
|
@@ -5104,7 +5051,7 @@ var NotificationItemTitleRoot = styled45(Box25, {
|
|
|
5104
5051
|
alignItems: "center",
|
|
5105
5052
|
gap: theme.spacing(1)
|
|
5106
5053
|
}));
|
|
5107
|
-
var NotificationItemTitleText =
|
|
5054
|
+
var NotificationItemTitleText = styled46(Typography12, {
|
|
5108
5055
|
name: "MuiNotificationPanel",
|
|
5109
5056
|
slot: "ItemTitleText",
|
|
5110
5057
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5112,7 +5059,7 @@ var NotificationItemTitleText = styled45(Typography11, {
|
|
|
5112
5059
|
fontWeight: ownerState.read ? 400 : 600,
|
|
5113
5060
|
flex: 1
|
|
5114
5061
|
}));
|
|
5115
|
-
var NotificationItemUnreadDot =
|
|
5062
|
+
var NotificationItemUnreadDot = styled46(Box25, {
|
|
5116
5063
|
name: "MuiNotificationPanel",
|
|
5117
5064
|
slot: "ItemUnreadDot"
|
|
5118
5065
|
})(({ theme }) => ({
|
|
@@ -5128,18 +5075,18 @@ var NotificationItemTitle = ({
|
|
|
5128
5075
|
sx
|
|
5129
5076
|
}) => {
|
|
5130
5077
|
const { read } = useNotificationItemContext();
|
|
5131
|
-
return /* @__PURE__ */
|
|
5132
|
-
/* @__PURE__ */
|
|
5133
|
-
showUnreadIndicator && !read && /* @__PURE__ */
|
|
5078
|
+
return /* @__PURE__ */ jsxs21(NotificationItemTitleRoot, { sx, children: [
|
|
5079
|
+
/* @__PURE__ */ jsx61(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
|
|
5080
|
+
showUnreadIndicator && !read && /* @__PURE__ */ jsx61(NotificationItemUnreadDot, {})
|
|
5134
5081
|
] });
|
|
5135
5082
|
};
|
|
5136
5083
|
NotificationItemTitle.displayName = "NotificationItemTitle";
|
|
5137
5084
|
|
|
5138
5085
|
// src/components/NotificationPanel/NotificationItemMessage.tsx
|
|
5139
|
-
import
|
|
5140
|
-
import { styled as
|
|
5141
|
-
import { jsx as
|
|
5142
|
-
var NotificationItemMessageRoot =
|
|
5086
|
+
import Typography13 from "@mui/material/Typography";
|
|
5087
|
+
import { styled as styled47 } from "@mui/material/styles";
|
|
5088
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5089
|
+
var NotificationItemMessageRoot = styled47(Typography13, {
|
|
5143
5090
|
name: "MuiNotificationPanel",
|
|
5144
5091
|
slot: "ItemMessage"
|
|
5145
5092
|
})(({ theme }) => ({
|
|
@@ -5151,15 +5098,15 @@ var NotificationItemMessage = ({
|
|
|
5151
5098
|
children,
|
|
5152
5099
|
sx
|
|
5153
5100
|
}) => {
|
|
5154
|
-
return /* @__PURE__ */
|
|
5101
|
+
return /* @__PURE__ */ jsx62(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
|
|
5155
5102
|
};
|
|
5156
5103
|
NotificationItemMessage.displayName = "NotificationItemMessage";
|
|
5157
5104
|
|
|
5158
5105
|
// src/components/NotificationPanel/NotificationItemTimestamp.tsx
|
|
5159
|
-
import
|
|
5160
|
-
import { styled as
|
|
5161
|
-
import { jsx as
|
|
5162
|
-
var NotificationItemTimestampRoot =
|
|
5106
|
+
import Typography14 from "@mui/material/Typography";
|
|
5107
|
+
import { styled as styled48 } from "@mui/material/styles";
|
|
5108
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5109
|
+
var NotificationItemTimestampRoot = styled48(Typography14, {
|
|
5163
5110
|
name: "MuiNotificationPanel",
|
|
5164
5111
|
slot: "ItemTimestamp"
|
|
5165
5112
|
})(({ theme }) => ({
|
|
@@ -5170,15 +5117,15 @@ var NotificationItemTimestamp = ({
|
|
|
5170
5117
|
children,
|
|
5171
5118
|
sx
|
|
5172
5119
|
}) => {
|
|
5173
|
-
return /* @__PURE__ */
|
|
5120
|
+
return /* @__PURE__ */ jsx63(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
|
|
5174
5121
|
};
|
|
5175
5122
|
NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
|
|
5176
5123
|
|
|
5177
5124
|
// src/components/NotificationPanel/NotificationItemAction.tsx
|
|
5178
5125
|
import Chip4 from "@mui/material/Chip";
|
|
5179
|
-
import { styled as
|
|
5180
|
-
import { jsx as
|
|
5181
|
-
var NotificationItemActionRoot =
|
|
5126
|
+
import { styled as styled49 } from "@mui/material/styles";
|
|
5127
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
5128
|
+
var NotificationItemActionRoot = styled49(Chip4, {
|
|
5182
5129
|
name: "MuiNotificationPanel",
|
|
5183
5130
|
slot: "ItemAction"
|
|
5184
5131
|
})({
|
|
@@ -5200,7 +5147,7 @@ var NotificationItemAction = ({
|
|
|
5200
5147
|
onAction == null ? void 0 : onAction();
|
|
5201
5148
|
}
|
|
5202
5149
|
};
|
|
5203
|
-
return /* @__PURE__ */
|
|
5150
|
+
return /* @__PURE__ */ jsx64(
|
|
5204
5151
|
NotificationItemActionRoot,
|
|
5205
5152
|
{
|
|
5206
5153
|
label: children,
|
|
@@ -5215,11 +5162,11 @@ NotificationItemAction.displayName = "NotificationItemAction";
|
|
|
5215
5162
|
|
|
5216
5163
|
// src/components/NotificationPanel/NotificationEmptyState.tsx
|
|
5217
5164
|
import Box26 from "@mui/material/Box";
|
|
5218
|
-
import
|
|
5219
|
-
import { styled as
|
|
5165
|
+
import Typography15 from "@mui/material/Typography";
|
|
5166
|
+
import { styled as styled50 } from "@mui/material/styles";
|
|
5220
5167
|
import { BellOff } from "@wso2/oxygen-ui-icons-react";
|
|
5221
|
-
import { jsx as
|
|
5222
|
-
var NotificationEmptyStateRoot =
|
|
5168
|
+
import { jsx as jsx65, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5169
|
+
var NotificationEmptyStateRoot = styled50(Box26, {
|
|
5223
5170
|
name: "MuiNotificationPanel",
|
|
5224
5171
|
slot: "EmptyState"
|
|
5225
5172
|
})(({ theme }) => ({
|
|
@@ -5233,7 +5180,7 @@ var NotificationEmptyStateRoot = styled49(Box26, {
|
|
|
5233
5180
|
paddingRight: theme.spacing(3),
|
|
5234
5181
|
textAlign: "center"
|
|
5235
5182
|
}));
|
|
5236
|
-
var NotificationEmptyStateMessage =
|
|
5183
|
+
var NotificationEmptyStateMessage = styled50(Typography15, {
|
|
5237
5184
|
name: "MuiNotificationPanel",
|
|
5238
5185
|
slot: "EmptyStateMessage"
|
|
5239
5186
|
})(({ theme }) => ({
|
|
@@ -5244,15 +5191,15 @@ var NotificationEmptyState = ({
|
|
|
5244
5191
|
icon,
|
|
5245
5192
|
sx
|
|
5246
5193
|
}) => {
|
|
5247
|
-
return /* @__PURE__ */
|
|
5248
|
-
icon || /* @__PURE__ */
|
|
5249
|
-
/* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsxs22(NotificationEmptyStateRoot, { sx, children: [
|
|
5195
|
+
icon || /* @__PURE__ */ jsx65(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
|
|
5196
|
+
/* @__PURE__ */ jsx65(NotificationEmptyStateMessage, { variant: "body2", children: message })
|
|
5250
5197
|
] });
|
|
5251
5198
|
};
|
|
5252
5199
|
|
|
5253
5200
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
5254
|
-
import { jsx as
|
|
5255
|
-
var NotificationPanelRoot =
|
|
5201
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5202
|
+
var NotificationPanelRoot = styled51(Drawer, {
|
|
5256
5203
|
name: "MuiNotificationPanel",
|
|
5257
5204
|
slot: "Root",
|
|
5258
5205
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5289,7 +5236,7 @@ var NotificationPanel = ({
|
|
|
5289
5236
|
);
|
|
5290
5237
|
const contextValue = React23.useMemo(() => ({ onClose }), [onClose]);
|
|
5291
5238
|
const ownerState = { width };
|
|
5292
|
-
return /* @__PURE__ */
|
|
5239
|
+
return /* @__PURE__ */ jsx66(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx66(
|
|
5293
5240
|
NotificationPanelRoot,
|
|
5294
5241
|
{
|
|
5295
5242
|
anchor,
|
|
@@ -5322,28 +5269,28 @@ NotificationPanel.displayName = "NotificationPanel";
|
|
|
5322
5269
|
// src/components/Footer/Footer.tsx
|
|
5323
5270
|
import * as React24 from "react";
|
|
5324
5271
|
import Box27 from "@mui/material/Box";
|
|
5325
|
-
import { styled as
|
|
5272
|
+
import { styled as styled55 } from "@mui/material/styles";
|
|
5326
5273
|
|
|
5327
5274
|
// src/components/Footer/FooterCopyright.tsx
|
|
5328
|
-
import
|
|
5329
|
-
import { styled as
|
|
5330
|
-
import { jsx as
|
|
5331
|
-
var StyledCopyrightText =
|
|
5275
|
+
import Typography16 from "@mui/material/Typography";
|
|
5276
|
+
import { styled as styled52 } from "@mui/material/styles";
|
|
5277
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
5278
|
+
var StyledCopyrightText = styled52(Typography16, {
|
|
5332
5279
|
name: "MuiFooter",
|
|
5333
5280
|
slot: "CopyrightText"
|
|
5334
5281
|
})(({ theme }) => ({
|
|
5335
5282
|
color: (theme.vars || theme).palette.text.secondary
|
|
5336
5283
|
}));
|
|
5337
5284
|
var FooterCopyright = ({ children }) => {
|
|
5338
|
-
return /* @__PURE__ */
|
|
5285
|
+
return /* @__PURE__ */ jsx67(StyledCopyrightText, { variant: "caption", children });
|
|
5339
5286
|
};
|
|
5340
5287
|
FooterCopyright.displayName = "Footer.Copyright";
|
|
5341
5288
|
|
|
5342
5289
|
// src/components/Footer/FooterVersion.tsx
|
|
5343
|
-
import
|
|
5344
|
-
import { styled as
|
|
5345
|
-
import { jsx as
|
|
5346
|
-
var StyledVersion =
|
|
5290
|
+
import Typography17 from "@mui/material/Typography";
|
|
5291
|
+
import { styled as styled53 } from "@mui/material/styles";
|
|
5292
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5293
|
+
var StyledVersion = styled53(Typography17, {
|
|
5347
5294
|
name: "MuiFooter",
|
|
5348
5295
|
slot: "Version"
|
|
5349
5296
|
})(({ theme }) => ({
|
|
@@ -5352,15 +5299,15 @@ var StyledVersion = styled52(Typography16, {
|
|
|
5352
5299
|
fontSize: 11
|
|
5353
5300
|
}));
|
|
5354
5301
|
var FooterVersion = ({ children }) => {
|
|
5355
|
-
return /* @__PURE__ */
|
|
5302
|
+
return /* @__PURE__ */ jsx68(StyledVersion, { variant: "caption", children });
|
|
5356
5303
|
};
|
|
5357
5304
|
FooterVersion.displayName = "Footer.Version";
|
|
5358
5305
|
|
|
5359
5306
|
// src/components/Footer/FooterLink.tsx
|
|
5360
5307
|
import Link2 from "@mui/material/Link";
|
|
5361
|
-
import { styled as
|
|
5362
|
-
import { jsx as
|
|
5363
|
-
var StyledLink =
|
|
5308
|
+
import { styled as styled54 } from "@mui/material/styles";
|
|
5309
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5310
|
+
var StyledLink = styled54(Link2, {
|
|
5364
5311
|
name: "MuiFooter",
|
|
5365
5312
|
slot: "Link"
|
|
5366
5313
|
})(({ theme }) => ({
|
|
@@ -5372,15 +5319,15 @@ var StyledLink = styled53(Link2, {
|
|
|
5372
5319
|
}));
|
|
5373
5320
|
var FooterLink = (_a) => {
|
|
5374
5321
|
var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
|
|
5375
|
-
return /* @__PURE__ */
|
|
5322
|
+
return /* @__PURE__ */ jsx69(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
|
|
5376
5323
|
};
|
|
5377
5324
|
FooterLink.displayName = "Footer.Link";
|
|
5378
5325
|
|
|
5379
5326
|
// src/components/Footer/FooterDivider.tsx
|
|
5380
5327
|
import Divider7 from "@mui/material/Divider";
|
|
5381
|
-
import { jsx as
|
|
5328
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
5382
5329
|
var FooterDivider = () => {
|
|
5383
|
-
return /* @__PURE__ */
|
|
5330
|
+
return /* @__PURE__ */ jsx70(
|
|
5384
5331
|
Divider7,
|
|
5385
5332
|
{
|
|
5386
5333
|
orientation: "vertical",
|
|
@@ -5392,8 +5339,8 @@ var FooterDivider = () => {
|
|
|
5392
5339
|
FooterDivider.displayName = "Footer.Divider";
|
|
5393
5340
|
|
|
5394
5341
|
// src/components/Footer/Footer.tsx
|
|
5395
|
-
import { jsx as
|
|
5396
|
-
var FooterRoot =
|
|
5342
|
+
import { jsx as jsx71, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5343
|
+
var FooterRoot = styled55(Box27, {
|
|
5397
5344
|
name: "MuiFooter",
|
|
5398
5345
|
slot: "Root"
|
|
5399
5346
|
})(({ theme }) => ({
|
|
@@ -5406,7 +5353,7 @@ var FooterRoot = styled54(Box27, {
|
|
|
5406
5353
|
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
5407
5354
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
5408
5355
|
}));
|
|
5409
|
-
var FooterContent =
|
|
5356
|
+
var FooterContent = styled55(Box27, {
|
|
5410
5357
|
name: "MuiFooter",
|
|
5411
5358
|
slot: "Content"
|
|
5412
5359
|
})(({ theme }) => ({
|
|
@@ -5420,7 +5367,7 @@ var FooterContent = styled54(Box27, {
|
|
|
5420
5367
|
alignItems: "center"
|
|
5421
5368
|
}
|
|
5422
5369
|
}));
|
|
5423
|
-
var FooterLeft =
|
|
5370
|
+
var FooterLeft = styled55(Box27, {
|
|
5424
5371
|
name: "MuiFooter",
|
|
5425
5372
|
slot: "Left"
|
|
5426
5373
|
})(({ theme }) => ({
|
|
@@ -5429,7 +5376,7 @@ var FooterLeft = styled54(Box27, {
|
|
|
5429
5376
|
gap: theme.spacing(2),
|
|
5430
5377
|
flexWrap: "wrap"
|
|
5431
5378
|
}));
|
|
5432
|
-
var FooterRight =
|
|
5379
|
+
var FooterRight = styled55(Box27, {
|
|
5433
5380
|
name: "MuiFooter",
|
|
5434
5381
|
slot: "Right"
|
|
5435
5382
|
})(({ theme }) => ({
|
|
@@ -5451,9 +5398,9 @@ var Footer = ({ children, sx }) => {
|
|
|
5451
5398
|
}
|
|
5452
5399
|
}
|
|
5453
5400
|
});
|
|
5454
|
-
return /* @__PURE__ */
|
|
5455
|
-
leftChildren.length > 0 && /* @__PURE__ */
|
|
5456
|
-
rightChildren.length > 0 && /* @__PURE__ */
|
|
5401
|
+
return /* @__PURE__ */ jsx71(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs23(FooterContent, { children: [
|
|
5402
|
+
leftChildren.length > 0 && /* @__PURE__ */ jsx71(FooterLeft, { children: leftChildren }),
|
|
5403
|
+
rightChildren.length > 0 && /* @__PURE__ */ jsx71(FooterRight, { children: rightChildren })
|
|
5457
5404
|
] }) });
|
|
5458
5405
|
};
|
|
5459
5406
|
Footer.Copyright = FooterCopyright;
|
|
@@ -5482,9 +5429,9 @@ UserMenuContext.displayName = "UserMenu.Context";
|
|
|
5482
5429
|
import Tooltip5 from "@mui/material/Tooltip";
|
|
5483
5430
|
import IconButton6 from "@mui/material/IconButton";
|
|
5484
5431
|
import Avatar4 from "@mui/material/Avatar";
|
|
5485
|
-
import { styled as
|
|
5486
|
-
import { jsx as
|
|
5487
|
-
var StyledTrigger =
|
|
5432
|
+
import { styled as styled56 } from "@mui/material/styles";
|
|
5433
|
+
import { jsx as jsx72, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5434
|
+
var StyledTrigger = styled56(IconButton6, {
|
|
5488
5435
|
name: "MuiUserMenu",
|
|
5489
5436
|
slot: "Trigger"
|
|
5490
5437
|
})(({ theme, showName }) => __spreadValues({
|
|
@@ -5494,7 +5441,7 @@ var StyledTrigger = styled55(IconButton6, {
|
|
|
5494
5441
|
paddingRight: theme.spacing(1.5),
|
|
5495
5442
|
borderRadius: typeof theme.shape.borderRadius === "number" ? theme.shape.borderRadius * 2 : theme.spacing(2)
|
|
5496
5443
|
}));
|
|
5497
|
-
var StyledAvatar2 =
|
|
5444
|
+
var StyledAvatar2 = styled56(Avatar4, {
|
|
5498
5445
|
name: "MuiUserMenu",
|
|
5499
5446
|
slot: "Avatar"
|
|
5500
5447
|
})(({ theme }) => ({
|
|
@@ -5505,7 +5452,7 @@ var StyledAvatar2 = styled55(Avatar4, {
|
|
|
5505
5452
|
fontSize: 14,
|
|
5506
5453
|
fontWeight: 600
|
|
5507
5454
|
}));
|
|
5508
|
-
var StyledNameText =
|
|
5455
|
+
var StyledNameText = styled56("span", {
|
|
5509
5456
|
name: "MuiUserMenu",
|
|
5510
5457
|
slot: "NameText"
|
|
5511
5458
|
})(({ theme }) => ({
|
|
@@ -5519,7 +5466,7 @@ var StyledNameText = styled55("span", {
|
|
|
5519
5466
|
}));
|
|
5520
5467
|
var UserMenuTrigger = ({ name, avatar, showName = false }) => {
|
|
5521
5468
|
const { open, handleOpen } = useUserMenu();
|
|
5522
|
-
return /* @__PURE__ */
|
|
5469
|
+
return /* @__PURE__ */ jsx72(Tooltip5, { title: "Account", children: /* @__PURE__ */ jsxs24(
|
|
5523
5470
|
StyledTrigger,
|
|
5524
5471
|
{
|
|
5525
5472
|
onClick: handleOpen,
|
|
@@ -5530,8 +5477,8 @@ var UserMenuTrigger = ({ name, avatar, showName = false }) => {
|
|
|
5530
5477
|
"aria-haspopup": "true",
|
|
5531
5478
|
"aria-expanded": open ? "true" : void 0,
|
|
5532
5479
|
children: [
|
|
5533
|
-
/* @__PURE__ */
|
|
5534
|
-
showName && /* @__PURE__ */
|
|
5480
|
+
/* @__PURE__ */ jsx72(StyledAvatar2, { src: avatar || void 0, alt: name, children: !avatar && name.charAt(0) }),
|
|
5481
|
+
showName && /* @__PURE__ */ jsx72(StyledNameText, { children: name })
|
|
5535
5482
|
]
|
|
5536
5483
|
}
|
|
5537
5484
|
) });
|
|
@@ -5542,18 +5489,18 @@ UserMenuTrigger.displayName = "UserMenu.Trigger";
|
|
|
5542
5489
|
import Divider8 from "@mui/material/Divider";
|
|
5543
5490
|
import Box28 from "@mui/material/Box";
|
|
5544
5491
|
import Avatar5 from "@mui/material/Avatar";
|
|
5545
|
-
import
|
|
5492
|
+
import Typography18 from "@mui/material/Typography";
|
|
5546
5493
|
import Chip5 from "@mui/material/Chip";
|
|
5547
|
-
import { styled as
|
|
5548
|
-
import { Fragment as Fragment9, jsx as
|
|
5549
|
-
var StyledHeaderBox =
|
|
5494
|
+
import { styled as styled57 } from "@mui/material/styles";
|
|
5495
|
+
import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5496
|
+
var StyledHeaderBox = styled57(Box28, {
|
|
5550
5497
|
name: "MuiUserMenu",
|
|
5551
5498
|
slot: "HeaderBox"
|
|
5552
5499
|
})(({ theme }) => ({
|
|
5553
5500
|
padding: theme.spacing(2),
|
|
5554
5501
|
paddingBottom: theme.spacing(1.5)
|
|
5555
5502
|
}));
|
|
5556
|
-
var StyledHeaderContent =
|
|
5503
|
+
var StyledHeaderContent = styled57(Box28, {
|
|
5557
5504
|
name: "MuiUserMenu",
|
|
5558
5505
|
slot: "HeaderContent"
|
|
5559
5506
|
})(({ theme }) => ({
|
|
@@ -5561,7 +5508,7 @@ var StyledHeaderContent = styled56(Box28, {
|
|
|
5561
5508
|
alignItems: "center",
|
|
5562
5509
|
gap: theme.spacing(2)
|
|
5563
5510
|
}));
|
|
5564
|
-
var StyledHeaderAvatar =
|
|
5511
|
+
var StyledHeaderAvatar = styled57(Avatar5, {
|
|
5565
5512
|
name: "MuiUserMenu",
|
|
5566
5513
|
slot: "HeaderAvatar"
|
|
5567
5514
|
})(({ theme }) => ({
|
|
@@ -5572,7 +5519,7 @@ var StyledHeaderAvatar = styled56(Avatar5, {
|
|
|
5572
5519
|
fontSize: 16,
|
|
5573
5520
|
fontWeight: 600
|
|
5574
5521
|
}));
|
|
5575
|
-
var StyledUserInfo =
|
|
5522
|
+
var StyledUserInfo = styled57(Box28, {
|
|
5576
5523
|
name: "MuiUserMenu",
|
|
5577
5524
|
slot: "UserInfo"
|
|
5578
5525
|
})(({ theme }) => ({
|
|
@@ -5582,7 +5529,7 @@ var StyledUserInfo = styled56(Box28, {
|
|
|
5582
5529
|
flex: 1,
|
|
5583
5530
|
minWidth: 0
|
|
5584
5531
|
}));
|
|
5585
|
-
var StyledNameRow =
|
|
5532
|
+
var StyledNameRow = styled57(Box28, {
|
|
5586
5533
|
name: "MuiUserMenu",
|
|
5587
5534
|
slot: "NameRow"
|
|
5588
5535
|
})(({ theme }) => ({
|
|
@@ -5590,7 +5537,7 @@ var StyledNameRow = styled56(Box28, {
|
|
|
5590
5537
|
alignItems: "center",
|
|
5591
5538
|
gap: theme.spacing(1)
|
|
5592
5539
|
}));
|
|
5593
|
-
var StyledName =
|
|
5540
|
+
var StyledName = styled57(Typography18, {
|
|
5594
5541
|
name: "MuiUserMenu",
|
|
5595
5542
|
slot: "Name"
|
|
5596
5543
|
})({
|
|
@@ -5599,7 +5546,7 @@ var StyledName = styled56(Typography17, {
|
|
|
5599
5546
|
overflow: "hidden",
|
|
5600
5547
|
textOverflow: "ellipsis"
|
|
5601
5548
|
});
|
|
5602
|
-
var StyledRoleChip =
|
|
5549
|
+
var StyledRoleChip = styled57(Chip5, {
|
|
5603
5550
|
name: "MuiUserMenu",
|
|
5604
5551
|
slot: "RoleChip"
|
|
5605
5552
|
})({
|
|
@@ -5607,7 +5554,7 @@ var StyledRoleChip = styled56(Chip5, {
|
|
|
5607
5554
|
fontSize: 11,
|
|
5608
5555
|
fontWeight: 600
|
|
5609
5556
|
});
|
|
5610
|
-
var StyledEmail =
|
|
5557
|
+
var StyledEmail = styled57(Typography18, {
|
|
5611
5558
|
name: "MuiUserMenu",
|
|
5612
5559
|
slot: "Email"
|
|
5613
5560
|
})(({ theme }) => ({
|
|
@@ -5618,13 +5565,13 @@ var StyledEmail = styled56(Typography17, {
|
|
|
5618
5565
|
textOverflow: "ellipsis"
|
|
5619
5566
|
}));
|
|
5620
5567
|
var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
5621
|
-
return /* @__PURE__ */
|
|
5622
|
-
/* @__PURE__ */
|
|
5623
|
-
/* @__PURE__ */
|
|
5624
|
-
/* @__PURE__ */
|
|
5625
|
-
/* @__PURE__ */
|
|
5626
|
-
/* @__PURE__ */
|
|
5627
|
-
role && /* @__PURE__ */
|
|
5568
|
+
return /* @__PURE__ */ jsxs25(Fragment9, { children: [
|
|
5569
|
+
/* @__PURE__ */ jsx73(StyledHeaderBox, { children: /* @__PURE__ */ jsxs25(StyledHeaderContent, { children: [
|
|
5570
|
+
/* @__PURE__ */ jsx73(StyledHeaderAvatar, { src: avatar || void 0, alt: name, children: !avatar && name.charAt(0) }),
|
|
5571
|
+
/* @__PURE__ */ jsxs25(StyledUserInfo, { children: [
|
|
5572
|
+
/* @__PURE__ */ jsxs25(StyledNameRow, { children: [
|
|
5573
|
+
/* @__PURE__ */ jsx73(StyledName, { variant: "subtitle2", children: name }),
|
|
5574
|
+
role && /* @__PURE__ */ jsx73(
|
|
5628
5575
|
StyledRoleChip,
|
|
5629
5576
|
{
|
|
5630
5577
|
label: role,
|
|
@@ -5633,32 +5580,32 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
|
5633
5580
|
}
|
|
5634
5581
|
)
|
|
5635
5582
|
] }),
|
|
5636
|
-
/* @__PURE__ */
|
|
5583
|
+
/* @__PURE__ */ jsx73(StyledEmail, { variant: "caption", children: email })
|
|
5637
5584
|
] })
|
|
5638
5585
|
] }) }),
|
|
5639
|
-
/* @__PURE__ */
|
|
5586
|
+
/* @__PURE__ */ jsx73(Divider8, {})
|
|
5640
5587
|
] });
|
|
5641
5588
|
};
|
|
5642
5589
|
UserMenuHeader.displayName = "UserMenu.Header";
|
|
5643
5590
|
|
|
5644
5591
|
// src/components/UserMenu/UserMenuItem.tsx
|
|
5645
5592
|
import * as React26 from "react";
|
|
5646
|
-
import
|
|
5593
|
+
import MenuItem4 from "@mui/material/MenuItem";
|
|
5647
5594
|
import ListItemIcon3 from "@mui/material/ListItemIcon";
|
|
5648
5595
|
import ListItemText4 from "@mui/material/ListItemText";
|
|
5649
5596
|
import Box29 from "@mui/material/Box";
|
|
5650
5597
|
import Chip6 from "@mui/material/Chip";
|
|
5651
|
-
import { styled as
|
|
5652
|
-
import { ChevronRight } from "@wso2/oxygen-ui-icons-react";
|
|
5653
|
-
import { jsx as
|
|
5654
|
-
var StyledMenuItem2 =
|
|
5598
|
+
import { styled as styled58 } from "@mui/material/styles";
|
|
5599
|
+
import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
|
|
5600
|
+
import { jsx as jsx74, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5601
|
+
var StyledMenuItem2 = styled58(MenuItem4, {
|
|
5655
5602
|
name: "MuiUserMenu",
|
|
5656
5603
|
slot: "MenuItem"
|
|
5657
5604
|
})(({ theme }) => ({
|
|
5658
5605
|
paddingTop: theme.spacing(1.5),
|
|
5659
5606
|
paddingBottom: theme.spacing(1.5)
|
|
5660
5607
|
}));
|
|
5661
|
-
var StyledBillingChip =
|
|
5608
|
+
var StyledBillingChip = styled58(Chip6, {
|
|
5662
5609
|
name: "MuiUserMenu",
|
|
5663
5610
|
slot: "BillingChip"
|
|
5664
5611
|
})(() => ({
|
|
@@ -5678,13 +5625,13 @@ var UserMenuItem = ({
|
|
|
5678
5625
|
handleClose();
|
|
5679
5626
|
onClick == null ? void 0 : onClick();
|
|
5680
5627
|
};
|
|
5681
|
-
return /* @__PURE__ */
|
|
5682
|
-
icon && /* @__PURE__ */
|
|
5628
|
+
return /* @__PURE__ */ jsxs26(StyledMenuItem2, { onClick: handleClick, children: [
|
|
5629
|
+
icon && /* @__PURE__ */ jsx74(ListItemIcon3, { children: React26.isValidElement(icon) ? React26.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
5683
5630
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
5684
5631
|
})) : icon }),
|
|
5685
|
-
/* @__PURE__ */
|
|
5686
|
-
/* @__PURE__ */
|
|
5687
|
-
badge && /* @__PURE__ */
|
|
5632
|
+
/* @__PURE__ */ jsx74(ListItemText4, { primary: label }),
|
|
5633
|
+
/* @__PURE__ */ jsxs26(Box29, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
5634
|
+
badge && /* @__PURE__ */ jsx74(
|
|
5688
5635
|
StyledBillingChip,
|
|
5689
5636
|
{
|
|
5690
5637
|
label: badge,
|
|
@@ -5692,7 +5639,7 @@ var UserMenuItem = ({
|
|
|
5692
5639
|
variant: "outlined"
|
|
5693
5640
|
}
|
|
5694
5641
|
),
|
|
5695
|
-
/* @__PURE__ */
|
|
5642
|
+
/* @__PURE__ */ jsx74(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
5696
5643
|
] })
|
|
5697
5644
|
] });
|
|
5698
5645
|
};
|
|
@@ -5700,12 +5647,12 @@ UserMenuItem.displayName = "UserMenu.Item";
|
|
|
5700
5647
|
|
|
5701
5648
|
// src/components/UserMenu/UserMenuLogout.tsx
|
|
5702
5649
|
import * as React27 from "react";
|
|
5703
|
-
import
|
|
5650
|
+
import MenuItem5 from "@mui/material/MenuItem";
|
|
5704
5651
|
import ListItemIcon4 from "@mui/material/ListItemIcon";
|
|
5705
5652
|
import ListItemText5 from "@mui/material/ListItemText";
|
|
5706
|
-
import { styled as
|
|
5707
|
-
import { jsx as
|
|
5708
|
-
var StyledLogoutItem =
|
|
5653
|
+
import { styled as styled59 } from "@mui/material/styles";
|
|
5654
|
+
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5655
|
+
var StyledLogoutItem = styled59(MenuItem5, {
|
|
5709
5656
|
name: "MuiUserMenu",
|
|
5710
5657
|
slot: "LogoutItem"
|
|
5711
5658
|
})(({ theme }) => ({
|
|
@@ -5731,23 +5678,23 @@ var UserMenuLogout = ({
|
|
|
5731
5678
|
handleClose();
|
|
5732
5679
|
onClick == null ? void 0 : onClick();
|
|
5733
5680
|
};
|
|
5734
|
-
return /* @__PURE__ */
|
|
5735
|
-
icon && /* @__PURE__ */
|
|
5681
|
+
return /* @__PURE__ */ jsxs27(StyledLogoutItem, { onClick: handleClick, children: [
|
|
5682
|
+
icon && /* @__PURE__ */ jsx75(ListItemIcon4, { children: React27.isValidElement(icon) ? React27.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
5736
5683
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
5737
5684
|
})) : icon }),
|
|
5738
|
-
/* @__PURE__ */
|
|
5685
|
+
/* @__PURE__ */ jsx75(ListItemText5, { primary: label })
|
|
5739
5686
|
] });
|
|
5740
5687
|
};
|
|
5741
5688
|
UserMenuLogout.displayName = "UserMenu.Logout";
|
|
5742
5689
|
|
|
5743
5690
|
// src/components/UserMenu/UserMenuDivider.tsx
|
|
5744
5691
|
import Divider9 from "@mui/material/Divider";
|
|
5745
|
-
import { jsx as
|
|
5746
|
-
var UserMenuDivider = () => /* @__PURE__ */
|
|
5692
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
5693
|
+
var UserMenuDivider = () => /* @__PURE__ */ jsx76(Divider9, {});
|
|
5747
5694
|
UserMenuDivider.displayName = "UserMenu.Divider";
|
|
5748
5695
|
|
|
5749
5696
|
// src/components/UserMenu/UserMenu.tsx
|
|
5750
|
-
import { jsx as
|
|
5697
|
+
import { jsx as jsx77, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5751
5698
|
var UserMenu = ({ children }) => {
|
|
5752
5699
|
const [anchorEl, setAnchorEl] = React28.useState(null);
|
|
5753
5700
|
const open = Boolean(anchorEl);
|
|
@@ -5764,9 +5711,9 @@ var UserMenu = ({ children }) => {
|
|
|
5764
5711
|
const menuChildren = childrenArray.filter(
|
|
5765
5712
|
(child) => React28.isValidElement(child) && child.type !== UserMenuTrigger
|
|
5766
5713
|
);
|
|
5767
|
-
return /* @__PURE__ */
|
|
5714
|
+
return /* @__PURE__ */ jsxs28(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
|
|
5768
5715
|
triggerChild,
|
|
5769
|
-
/* @__PURE__ */
|
|
5716
|
+
/* @__PURE__ */ jsx77(
|
|
5770
5717
|
Menu2,
|
|
5771
5718
|
{
|
|
5772
5719
|
id: "user-menu",
|
|
@@ -5802,9 +5749,9 @@ import AlertTitle from "@mui/material/AlertTitle";
|
|
|
5802
5749
|
import Collapse2 from "@mui/material/Collapse";
|
|
5803
5750
|
import Button4 from "@mui/material/Button";
|
|
5804
5751
|
import Box30 from "@mui/material/Box";
|
|
5805
|
-
import { styled as
|
|
5806
|
-
import { jsx as
|
|
5807
|
-
var NotificationBannerAlert =
|
|
5752
|
+
import { styled as styled60 } from "@mui/material/styles";
|
|
5753
|
+
import { jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5754
|
+
var NotificationBannerAlert = styled60(Alert, {
|
|
5808
5755
|
name: "MuiNotificationBanner",
|
|
5809
5756
|
slot: "Root"
|
|
5810
5757
|
})({
|
|
@@ -5822,7 +5769,7 @@ var NotificationBannerAlert = styled59(Alert, {
|
|
|
5822
5769
|
alignItems: "center"
|
|
5823
5770
|
}
|
|
5824
5771
|
});
|
|
5825
|
-
var NotificationBannerContent =
|
|
5772
|
+
var NotificationBannerContent = styled60(Box30, {
|
|
5826
5773
|
name: "MuiNotificationBanner",
|
|
5827
5774
|
slot: "Content"
|
|
5828
5775
|
})({
|
|
@@ -5831,7 +5778,7 @@ var NotificationBannerContent = styled59(Box30, {
|
|
|
5831
5778
|
gap: 2,
|
|
5832
5779
|
flex: 1
|
|
5833
5780
|
});
|
|
5834
|
-
var NotificationBannerAction =
|
|
5781
|
+
var NotificationBannerAction = styled60(Button4, {
|
|
5835
5782
|
name: "MuiNotificationBanner",
|
|
5836
5783
|
slot: "Action"
|
|
5837
5784
|
})({
|
|
@@ -5860,14 +5807,14 @@ var NotificationBanner = ({
|
|
|
5860
5807
|
setIsVisible(false);
|
|
5861
5808
|
onDismiss == null ? void 0 : onDismiss();
|
|
5862
5809
|
};
|
|
5863
|
-
return /* @__PURE__ */
|
|
5810
|
+
return /* @__PURE__ */ jsx78(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx78(
|
|
5864
5811
|
NotificationBannerAlert,
|
|
5865
5812
|
{
|
|
5866
5813
|
severity,
|
|
5867
5814
|
variant: "filled",
|
|
5868
5815
|
onClose: handleDismiss,
|
|
5869
5816
|
sx,
|
|
5870
|
-
action: actionLabel && onAction ? /* @__PURE__ */
|
|
5817
|
+
action: actionLabel && onAction ? /* @__PURE__ */ jsx78(
|
|
5871
5818
|
NotificationBannerAction,
|
|
5872
5819
|
{
|
|
5873
5820
|
color: "inherit",
|
|
@@ -5876,19 +5823,19 @@ var NotificationBanner = ({
|
|
|
5876
5823
|
children: actionLabel
|
|
5877
5824
|
}
|
|
5878
5825
|
) : void 0,
|
|
5879
|
-
children: /* @__PURE__ */
|
|
5880
|
-
title && /* @__PURE__ */
|
|
5881
|
-
/* @__PURE__ */
|
|
5826
|
+
children: /* @__PURE__ */ jsxs29(NotificationBannerContent, { children: [
|
|
5827
|
+
title && /* @__PURE__ */ jsx78(AlertTitle, { sx: { mb: 0 }, children: title }),
|
|
5828
|
+
/* @__PURE__ */ jsx78(Box30, { component: "span", children: message })
|
|
5882
5829
|
] })
|
|
5883
5830
|
}
|
|
5884
5831
|
) });
|
|
5885
5832
|
};
|
|
5886
5833
|
|
|
5887
5834
|
// src/components/Form/CardButton.tsx
|
|
5888
|
-
import { Card as Card2, ButtonBase, Box as Box31, styled as
|
|
5835
|
+
import { Card as Card2, ButtonBase, Box as Box31, styled as styled61 } from "@mui/material";
|
|
5889
5836
|
import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
|
|
5890
|
-
import { jsx as
|
|
5891
|
-
var StyledCardButton =
|
|
5837
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
5838
|
+
var StyledCardButton = styled61(Card2, {
|
|
5892
5839
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
5893
5840
|
})(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
|
|
5894
5841
|
flexDirection: "column",
|
|
@@ -5916,7 +5863,7 @@ var StyledCardButton = styled60(Card2, {
|
|
|
5916
5863
|
}));
|
|
5917
5864
|
var CardButton = (props) => {
|
|
5918
5865
|
const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
|
|
5919
|
-
return /* @__PURE__ */
|
|
5866
|
+
return /* @__PURE__ */ jsx79(
|
|
5920
5867
|
StyledCardButton,
|
|
5921
5868
|
__spreadValues({
|
|
5922
5869
|
alignItems,
|
|
@@ -5926,36 +5873,36 @@ var CardButton = (props) => {
|
|
|
5926
5873
|
}, rest)
|
|
5927
5874
|
);
|
|
5928
5875
|
};
|
|
5929
|
-
var DisappearingCardButtonContent = (props) => /* @__PURE__ */
|
|
5876
|
+
var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx79(Box31, __spreadValues({ className: "creation-flow-card-actions" }, props));
|
|
5930
5877
|
|
|
5931
5878
|
// src/components/Form/Stack.tsx
|
|
5932
5879
|
import { Stack as OxygenStack } from "@mui/material";
|
|
5933
|
-
import { jsx as
|
|
5880
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
5934
5881
|
var Stack2 = (props) => {
|
|
5935
|
-
return /* @__PURE__ */
|
|
5882
|
+
return /* @__PURE__ */ jsx80(OxygenStack, __spreadValues({ spacing: 2 }, props));
|
|
5936
5883
|
};
|
|
5937
5884
|
|
|
5938
5885
|
// src/components/Form/Typography.tsx
|
|
5939
|
-
import { Typography as
|
|
5940
|
-
import { jsx as
|
|
5886
|
+
import { Typography as Typography19 } from "@mui/material";
|
|
5887
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
5941
5888
|
var Header2 = (props) => {
|
|
5942
5889
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
5943
|
-
return /* @__PURE__ */
|
|
5890
|
+
return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
|
|
5944
5891
|
};
|
|
5945
5892
|
var Subheader = (props) => {
|
|
5946
5893
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
5947
|
-
return /* @__PURE__ */
|
|
5894
|
+
return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
|
|
5948
5895
|
};
|
|
5949
5896
|
var Body = (props) => {
|
|
5950
5897
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
5951
|
-
return /* @__PURE__ */
|
|
5898
|
+
return /* @__PURE__ */ jsx81(Typography19, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
|
|
5952
5899
|
};
|
|
5953
5900
|
|
|
5954
5901
|
// src/components/Form/Section.tsx
|
|
5955
5902
|
import { Card as Card3, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
|
|
5956
|
-
import { jsx as
|
|
5903
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
5957
5904
|
var Section = ({ children }) => {
|
|
5958
|
-
return /* @__PURE__ */
|
|
5905
|
+
return /* @__PURE__ */ jsx82(Card3, { children: /* @__PURE__ */ jsx82(CardContent3, { children: /* @__PURE__ */ jsx82(Stack3, { direction: "column", spacing: 2, children }) }) });
|
|
5959
5906
|
};
|
|
5960
5907
|
|
|
5961
5908
|
// src/components/Form/Wizard.tsx
|
|
@@ -5967,30 +5914,30 @@ import {
|
|
|
5967
5914
|
Stepper,
|
|
5968
5915
|
Divider as Divider10
|
|
5969
5916
|
} from "@mui/material";
|
|
5970
|
-
import { styled as
|
|
5917
|
+
import { styled as styled62 } from "@mui/material/styles";
|
|
5971
5918
|
import { useMemo as useMemo5 } from "react";
|
|
5972
|
-
import { jsx as
|
|
5973
|
-
var StyledWizardActionsStack =
|
|
5919
|
+
import { jsx as jsx83, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5920
|
+
var StyledWizardActionsStack = styled62(Stack2)(() => ({
|
|
5974
5921
|
justifyContent: "space-between",
|
|
5975
5922
|
flexGrow: 1
|
|
5976
5923
|
}));
|
|
5977
5924
|
function Wizard({ steps, activeStep, actions }) {
|
|
5978
5925
|
const step = useMemo5(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
|
|
5979
|
-
return /* @__PURE__ */
|
|
5980
|
-
/* @__PURE__ */
|
|
5981
|
-
/* @__PURE__ */
|
|
5982
|
-
/* @__PURE__ */
|
|
5983
|
-
/* @__PURE__ */
|
|
5926
|
+
return /* @__PURE__ */ jsx83(Card4, { children: /* @__PURE__ */ jsx83(CardContent4, { children: /* @__PURE__ */ jsxs30(Stack2, { children: [
|
|
5927
|
+
/* @__PURE__ */ jsx83(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx83(Step, { children: /* @__PURE__ */ jsx83(StepLabel, { children: step2.label }) }, step2.label)) }),
|
|
5928
|
+
/* @__PURE__ */ jsx83(Divider10, {}),
|
|
5929
|
+
/* @__PURE__ */ jsx83(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
|
|
5930
|
+
/* @__PURE__ */ jsx83(StyledWizardActionsStack, { direction: "row", children: actions })
|
|
5984
5931
|
] }) }) });
|
|
5985
5932
|
}
|
|
5986
5933
|
|
|
5987
5934
|
// src/components/Form/ElementWrapper.tsx
|
|
5988
5935
|
import { FormControl as FormControl3, FormLabel } from "@mui/material";
|
|
5989
|
-
import { jsx as
|
|
5936
|
+
import { jsx as jsx84, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5990
5937
|
var ElementWrapper = (props) => {
|
|
5991
5938
|
const { label, name, children } = props;
|
|
5992
|
-
return /* @__PURE__ */
|
|
5993
|
-
/* @__PURE__ */
|
|
5939
|
+
return /* @__PURE__ */ jsxs31(FormControl3, { fullWidth: true, children: [
|
|
5940
|
+
/* @__PURE__ */ jsx84(FormLabel, { htmlFor: name, children: label }),
|
|
5994
5941
|
children
|
|
5995
5942
|
] });
|
|
5996
5943
|
};
|
|
@@ -6019,10 +5966,10 @@ import Box36 from "@mui/material/Box";
|
|
|
6019
5966
|
|
|
6020
5967
|
// src/layouts/Layout.tsx
|
|
6021
5968
|
import Box32 from "@mui/material/Box";
|
|
6022
|
-
import { jsx as
|
|
5969
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6023
5970
|
function Layout(_a) {
|
|
6024
5971
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6025
|
-
return /* @__PURE__ */
|
|
5972
|
+
return /* @__PURE__ */ jsx85(
|
|
6026
5973
|
Box32,
|
|
6027
5974
|
__spreadProps(__spreadValues({
|
|
6028
5975
|
sx: __spreadValues({
|
|
@@ -6039,10 +5986,10 @@ var Layout_default = Layout;
|
|
|
6039
5986
|
|
|
6040
5987
|
// src/layouts/LayoutSidebar.tsx
|
|
6041
5988
|
import Box33 from "@mui/material/Box";
|
|
6042
|
-
import { jsx as
|
|
5989
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
6043
5990
|
function LayoutSidebar(_a) {
|
|
6044
5991
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6045
|
-
return /* @__PURE__ */
|
|
5992
|
+
return /* @__PURE__ */ jsx86(
|
|
6046
5993
|
Box33,
|
|
6047
5994
|
__spreadProps(__spreadValues({
|
|
6048
5995
|
sx: __spreadValues({
|
|
@@ -6066,10 +6013,10 @@ var LayoutNavbar_default = LayoutNavbar;
|
|
|
6066
6013
|
|
|
6067
6014
|
// src/layouts/LayoutContent.tsx
|
|
6068
6015
|
import Box34 from "@mui/material/Box";
|
|
6069
|
-
import { jsx as
|
|
6016
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
6070
6017
|
function LayoutContent(_a) {
|
|
6071
6018
|
var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
|
|
6072
|
-
return /* @__PURE__ */
|
|
6019
|
+
return /* @__PURE__ */ jsx87(
|
|
6073
6020
|
Box34,
|
|
6074
6021
|
__spreadProps(__spreadValues({
|
|
6075
6022
|
component: "main",
|
|
@@ -6089,10 +6036,10 @@ var LayoutContent_default = LayoutContent;
|
|
|
6089
6036
|
|
|
6090
6037
|
// src/layouts/LayoutHeader.tsx
|
|
6091
6038
|
import Box35 from "@mui/material/Box";
|
|
6092
|
-
import { jsx as
|
|
6039
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6093
6040
|
function LayoutHeader(_a) {
|
|
6094
6041
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6095
|
-
return /* @__PURE__ */
|
|
6042
|
+
return /* @__PURE__ */ jsx88(
|
|
6096
6043
|
Box35,
|
|
6097
6044
|
__spreadProps(__spreadValues({
|
|
6098
6045
|
sx: __spreadValues({
|
|
@@ -6116,43 +6063,43 @@ var Layout2 = Object.assign(Layout_default, {
|
|
|
6116
6063
|
var layouts_default = Layout2;
|
|
6117
6064
|
|
|
6118
6065
|
// src/components/AppShell/AppShellNavbar.tsx
|
|
6119
|
-
import { Fragment as Fragment10, jsx as
|
|
6066
|
+
import { Fragment as Fragment10, jsx as jsx89 } from "react/jsx-runtime";
|
|
6120
6067
|
var AppShellNavbar = ({ children }) => {
|
|
6121
|
-
return /* @__PURE__ */
|
|
6068
|
+
return /* @__PURE__ */ jsx89(Fragment10, { children });
|
|
6122
6069
|
};
|
|
6123
6070
|
AppShellNavbar.displayName = "AppShellNavbar";
|
|
6124
6071
|
|
|
6125
6072
|
// src/components/AppShell/AppShellSidebar.tsx
|
|
6126
|
-
import { Fragment as Fragment11, jsx as
|
|
6073
|
+
import { Fragment as Fragment11, jsx as jsx90 } from "react/jsx-runtime";
|
|
6127
6074
|
var AppShellSidebar = ({ children }) => {
|
|
6128
|
-
return /* @__PURE__ */
|
|
6075
|
+
return /* @__PURE__ */ jsx90(Fragment11, { children });
|
|
6129
6076
|
};
|
|
6130
6077
|
AppShellSidebar.displayName = "AppShellSidebar";
|
|
6131
6078
|
|
|
6132
6079
|
// src/components/AppShell/AppShellMain.tsx
|
|
6133
|
-
import { Fragment as Fragment12, jsx as
|
|
6080
|
+
import { Fragment as Fragment12, jsx as jsx91 } from "react/jsx-runtime";
|
|
6134
6081
|
var AppShellMain = ({ children }) => {
|
|
6135
|
-
return /* @__PURE__ */
|
|
6082
|
+
return /* @__PURE__ */ jsx91(Fragment12, { children });
|
|
6136
6083
|
};
|
|
6137
6084
|
AppShellMain.displayName = "AppShellMain";
|
|
6138
6085
|
|
|
6139
6086
|
// src/components/AppShell/AppShellFooter.tsx
|
|
6140
|
-
import { Fragment as Fragment13, jsx as
|
|
6087
|
+
import { Fragment as Fragment13, jsx as jsx92 } from "react/jsx-runtime";
|
|
6141
6088
|
var AppShellFooter = ({ children }) => {
|
|
6142
|
-
return /* @__PURE__ */
|
|
6089
|
+
return /* @__PURE__ */ jsx92(Fragment13, { children });
|
|
6143
6090
|
};
|
|
6144
6091
|
AppShellFooter.displayName = "AppShellFooter";
|
|
6145
6092
|
|
|
6146
6093
|
// src/components/AppShell/AppShellNotificationPanel.tsx
|
|
6147
|
-
import { Fragment as Fragment14, jsx as
|
|
6094
|
+
import { Fragment as Fragment14, jsx as jsx93 } from "react/jsx-runtime";
|
|
6148
6095
|
var AppShellNotificationPanel = ({ children }) => {
|
|
6149
|
-
return /* @__PURE__ */
|
|
6096
|
+
return /* @__PURE__ */ jsx93(Fragment14, { children });
|
|
6150
6097
|
};
|
|
6151
6098
|
AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
|
|
6152
6099
|
|
|
6153
6100
|
// src/hooks/useAppShell/useAppShell.ts
|
|
6154
6101
|
import * as React30 from "react";
|
|
6155
|
-
import
|
|
6102
|
+
import useMediaQuery3 from "@mui/material/useMediaQuery";
|
|
6156
6103
|
var useAppShell = (options) => {
|
|
6157
6104
|
const contextValue = React30.useContext(AppShellContext);
|
|
6158
6105
|
const {
|
|
@@ -6163,7 +6110,7 @@ var useAppShell = (options) => {
|
|
|
6163
6110
|
sidebarWidth = 250,
|
|
6164
6111
|
sidebarCollapsedWidth = 64
|
|
6165
6112
|
} = options || {};
|
|
6166
|
-
const isMobile =
|
|
6113
|
+
const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
|
|
6167
6114
|
const isCreateMode = options !== void 0;
|
|
6168
6115
|
const [state, setState] = React30.useState({
|
|
6169
6116
|
sidebarCollapsed: initialCollapsed,
|
|
@@ -6250,7 +6197,7 @@ var useAppShell = (options) => {
|
|
|
6250
6197
|
};
|
|
6251
6198
|
|
|
6252
6199
|
// src/components/AppShell/AppShell.tsx
|
|
6253
|
-
import { jsx as
|
|
6200
|
+
import { jsx as jsx94, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6254
6201
|
var SLOT_DISPLAY_NAMES = {
|
|
6255
6202
|
Navbar: "AppShellNavbar",
|
|
6256
6203
|
Sidebar: "AppShellSidebar",
|
|
@@ -6300,12 +6247,12 @@ var AppShell = (_a) => {
|
|
|
6300
6247
|
var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
|
|
6301
6248
|
const shell = useAppShell(shellOptions);
|
|
6302
6249
|
const slots = extractSlots(children);
|
|
6303
|
-
return /* @__PURE__ */
|
|
6304
|
-
slots.navbar && /* @__PURE__ */
|
|
6305
|
-
/* @__PURE__ */
|
|
6306
|
-
slots.sidebar && /* @__PURE__ */
|
|
6307
|
-
/* @__PURE__ */
|
|
6308
|
-
/* @__PURE__ */
|
|
6250
|
+
return /* @__PURE__ */ jsx94(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs32(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
|
|
6251
|
+
slots.navbar && /* @__PURE__ */ jsx94(layouts_default.Navbar, { children: slots.navbar }),
|
|
6252
|
+
/* @__PURE__ */ jsxs32(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
|
|
6253
|
+
slots.sidebar && /* @__PURE__ */ jsx94(layouts_default.Sidebar, { children: slots.sidebar }),
|
|
6254
|
+
/* @__PURE__ */ jsxs32(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
|
|
6255
|
+
/* @__PURE__ */ jsx94(Box36, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
|
|
6309
6256
|
slots.footer
|
|
6310
6257
|
] })
|
|
6311
6258
|
] }),
|
|
@@ -6321,7 +6268,7 @@ AppShell.displayName = "AppShell";
|
|
|
6321
6268
|
|
|
6322
6269
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
6323
6270
|
import MuiTable from "@mui/material/Table";
|
|
6324
|
-
import { styled as
|
|
6271
|
+
import { styled as styled68 } from "@mui/material/styles";
|
|
6325
6272
|
|
|
6326
6273
|
// src/components/ListingTable/shared/types.ts
|
|
6327
6274
|
var densityStyles = {
|
|
@@ -6332,8 +6279,8 @@ var densityStyles = {
|
|
|
6332
6279
|
|
|
6333
6280
|
// src/components/ListingTable/ListingTable/ListingTableContainer.tsx
|
|
6334
6281
|
import MuiTableContainer from "@mui/material/TableContainer";
|
|
6335
|
-
import
|
|
6336
|
-
import { jsx as
|
|
6282
|
+
import Paper2 from "@mui/material/Paper";
|
|
6283
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
6337
6284
|
function ListingTableContainer(_a) {
|
|
6338
6285
|
var _b = _a, {
|
|
6339
6286
|
elevation = 1,
|
|
@@ -6345,17 +6292,17 @@ function ListingTableContainer(_a) {
|
|
|
6345
6292
|
"children"
|
|
6346
6293
|
]);
|
|
6347
6294
|
if (disablePaper) {
|
|
6348
|
-
return /* @__PURE__ */
|
|
6295
|
+
return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
6349
6296
|
}
|
|
6350
|
-
return /* @__PURE__ */
|
|
6297
|
+
return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper2, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
6351
6298
|
}
|
|
6352
6299
|
var ListingTableContainer_default = ListingTableContainer;
|
|
6353
6300
|
|
|
6354
6301
|
// src/components/ListingTable/ListingTable/ListingTableHead.tsx
|
|
6355
6302
|
import MuiTableHead from "@mui/material/TableHead";
|
|
6356
|
-
import { styled as
|
|
6357
|
-
import { jsx as
|
|
6358
|
-
var StyledTableHead =
|
|
6303
|
+
import { styled as styled63 } from "@mui/material/styles";
|
|
6304
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
6305
|
+
var StyledTableHead = styled63(MuiTableHead)(({ theme }) => ({
|
|
6359
6306
|
"& .MuiTableCell-head": __spreadValues(__spreadValues({
|
|
6360
6307
|
fontWeight: 600
|
|
6361
6308
|
}, theme.applyStyles("light", {
|
|
@@ -6366,33 +6313,33 @@ var StyledTableHead = styled62(MuiTableHead)(({ theme }) => ({
|
|
|
6366
6313
|
}));
|
|
6367
6314
|
function ListingTableHead(_a) {
|
|
6368
6315
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
6369
|
-
return /* @__PURE__ */
|
|
6316
|
+
return /* @__PURE__ */ jsx96(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
|
|
6370
6317
|
}
|
|
6371
6318
|
var ListingTableHead_default = ListingTableHead;
|
|
6372
6319
|
|
|
6373
6320
|
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
6374
6321
|
import MuiTableBody from "@mui/material/TableBody";
|
|
6375
|
-
import { jsx as
|
|
6322
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
6376
6323
|
function ListingTableBody(_a) {
|
|
6377
6324
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
6378
|
-
return /* @__PURE__ */
|
|
6325
|
+
return /* @__PURE__ */ jsx97(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
|
|
6379
6326
|
}
|
|
6380
6327
|
var ListingTableBody_default = ListingTableBody;
|
|
6381
6328
|
|
|
6382
6329
|
// src/components/ListingTable/ListingTable/ListingTableFooter.tsx
|
|
6383
6330
|
import MuiTableFooter from "@mui/material/TableFooter";
|
|
6384
|
-
import { jsx as
|
|
6331
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
6385
6332
|
function ListingTableFooter(_a) {
|
|
6386
6333
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
6387
|
-
return /* @__PURE__ */
|
|
6334
|
+
return /* @__PURE__ */ jsx98(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
|
|
6388
6335
|
}
|
|
6389
6336
|
var ListingTableFooter_default = ListingTableFooter;
|
|
6390
6337
|
|
|
6391
6338
|
// src/components/ListingTable/ListingTable/ListingTableRow.tsx
|
|
6392
6339
|
import MuiTableRow from "@mui/material/TableRow";
|
|
6393
|
-
import { styled as
|
|
6394
|
-
import { jsx as
|
|
6395
|
-
var StyledTableRow =
|
|
6340
|
+
import { styled as styled64, alpha } from "@mui/material/styles";
|
|
6341
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
6342
|
+
var StyledTableRow = styled64(MuiTableRow, {
|
|
6396
6343
|
shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
|
|
6397
6344
|
})(({ theme: muiTheme, clickable, variant = "table" }) => {
|
|
6398
6345
|
const theme = muiTheme;
|
|
@@ -6450,15 +6397,15 @@ function ListingTableRow(_a) {
|
|
|
6450
6397
|
"variant",
|
|
6451
6398
|
"children"
|
|
6452
6399
|
]);
|
|
6453
|
-
return /* @__PURE__ */
|
|
6400
|
+
return /* @__PURE__ */ jsx99(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
|
|
6454
6401
|
}
|
|
6455
6402
|
var ListingTableRow_default = ListingTableRow;
|
|
6456
6403
|
|
|
6457
6404
|
// src/components/ListingTable/ListingTable/ListingTableCell.tsx
|
|
6458
6405
|
import MuiTableCell from "@mui/material/TableCell";
|
|
6459
|
-
import { styled as
|
|
6460
|
-
import { jsx as
|
|
6461
|
-
var StyledTableCell =
|
|
6406
|
+
import { styled as styled65 } from "@mui/material/styles";
|
|
6407
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
6408
|
+
var StyledTableCell = styled65(MuiTableCell, {
|
|
6462
6409
|
shouldForwardProp: (prop) => {
|
|
6463
6410
|
const excludedProps = ["truncate", "maxWidth"];
|
|
6464
6411
|
return !excludedProps.some((excluded) => excluded === prop);
|
|
@@ -6480,14 +6427,14 @@ function ListingTableCell(_a) {
|
|
|
6480
6427
|
"maxWidth",
|
|
6481
6428
|
"children"
|
|
6482
6429
|
]);
|
|
6483
|
-
return /* @__PURE__ */
|
|
6430
|
+
return /* @__PURE__ */ jsx100(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
|
|
6484
6431
|
}
|
|
6485
6432
|
var ListingTableCell_default = ListingTableCell;
|
|
6486
6433
|
|
|
6487
6434
|
// src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
|
|
6488
6435
|
import { useCallback as useCallback2 } from "react";
|
|
6489
6436
|
import { DataGrid } from "@mui/x-data-grid";
|
|
6490
|
-
import { styled as
|
|
6437
|
+
import { styled as styled66, alpha as alpha2 } from "@mui/material/styles";
|
|
6491
6438
|
|
|
6492
6439
|
// src/components/ListingTable/context.ts
|
|
6493
6440
|
import * as React32 from "react";
|
|
@@ -6507,8 +6454,8 @@ var useListingTableRequired = () => {
|
|
|
6507
6454
|
};
|
|
6508
6455
|
|
|
6509
6456
|
// src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
|
|
6510
|
-
import { jsx as
|
|
6511
|
-
var StyledDataGrid =
|
|
6457
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
6458
|
+
var StyledDataGrid = styled66(DataGrid)(({ theme }) => ({
|
|
6512
6459
|
// Remove outer border for seamless integration within ListingTable.Container
|
|
6513
6460
|
border: "none",
|
|
6514
6461
|
// Ensure the grid fills its container
|
|
@@ -6660,7 +6607,7 @@ function ListingTableDataGrid(_a) {
|
|
|
6660
6607
|
"& .MuiDataGrid-cell": { padding: cellPadding }
|
|
6661
6608
|
};
|
|
6662
6609
|
const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
|
|
6663
|
-
return /* @__PURE__ */
|
|
6610
|
+
return /* @__PURE__ */ jsx101(
|
|
6664
6611
|
StyledDataGrid,
|
|
6665
6612
|
__spreadValues({
|
|
6666
6613
|
density,
|
|
@@ -6675,13 +6622,13 @@ function ListingTableDataGrid(_a) {
|
|
|
6675
6622
|
var ListingTableDataGrid_default = ListingTableDataGrid;
|
|
6676
6623
|
|
|
6677
6624
|
// src/components/ListingTable/shared/ListingTableToolbar.tsx
|
|
6678
|
-
import { useState as
|
|
6625
|
+
import { useState as useState8, useCallback as useCallback3 } from "react";
|
|
6679
6626
|
import Box37 from "@mui/material/Box";
|
|
6680
6627
|
import TextField3 from "@mui/material/TextField";
|
|
6681
6628
|
import InputAdornment3 from "@mui/material/InputAdornment";
|
|
6682
6629
|
import IconButton7 from "@mui/material/IconButton";
|
|
6683
6630
|
import { Search as Search2, X as X4 } from "@wso2/oxygen-ui-icons-react";
|
|
6684
|
-
import { Fragment as Fragment15, jsx as
|
|
6631
|
+
import { Fragment as Fragment15, jsx as jsx102, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6685
6632
|
function ListingTableToolbar({
|
|
6686
6633
|
showSearch = false,
|
|
6687
6634
|
searchSlot,
|
|
@@ -6695,7 +6642,7 @@ function ListingTableToolbar({
|
|
|
6695
6642
|
sx
|
|
6696
6643
|
}) {
|
|
6697
6644
|
const tableContext = useListingTable();
|
|
6698
|
-
const [internalSearchValue, setInternalSearchValue] =
|
|
6645
|
+
const [internalSearchValue, setInternalSearchValue] = useState8("");
|
|
6699
6646
|
const isControlledByProp = controlledSearchValue !== void 0;
|
|
6700
6647
|
const isControlledByContext = !isControlledByProp && (tableContext == null ? void 0 : tableContext.searchValue) !== void 0;
|
|
6701
6648
|
const isControlled = isControlledByProp || isControlledByContext;
|
|
@@ -6722,7 +6669,7 @@ function ListingTableToolbar({
|
|
|
6722
6669
|
return searchSlot;
|
|
6723
6670
|
}
|
|
6724
6671
|
if (showSearch) {
|
|
6725
|
-
return /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsx102(
|
|
6726
6673
|
TextField3,
|
|
6727
6674
|
{
|
|
6728
6675
|
size: "small",
|
|
@@ -6734,15 +6681,15 @@ function ListingTableToolbar({
|
|
|
6734
6681
|
maxWidth: searchMaxWidth
|
|
6735
6682
|
},
|
|
6736
6683
|
InputProps: {
|
|
6737
|
-
startAdornment: /* @__PURE__ */
|
|
6738
|
-
endAdornment: searchValue ? /* @__PURE__ */
|
|
6684
|
+
startAdornment: /* @__PURE__ */ jsx102(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx102(Search2, { size: 18 }) }),
|
|
6685
|
+
endAdornment: searchValue ? /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", children: /* @__PURE__ */ jsx102(X4, { size: 16 }) }) }) : null
|
|
6739
6686
|
}
|
|
6740
6687
|
}
|
|
6741
6688
|
);
|
|
6742
6689
|
}
|
|
6743
6690
|
return null;
|
|
6744
6691
|
};
|
|
6745
|
-
return /* @__PURE__ */
|
|
6692
|
+
return /* @__PURE__ */ jsxs33(
|
|
6746
6693
|
Box37,
|
|
6747
6694
|
{
|
|
6748
6695
|
sx: __spreadValues({
|
|
@@ -6756,9 +6703,9 @@ function ListingTableToolbar({
|
|
|
6756
6703
|
children: [
|
|
6757
6704
|
renderSearch(),
|
|
6758
6705
|
children,
|
|
6759
|
-
actions && /* @__PURE__ */
|
|
6760
|
-
/* @__PURE__ */
|
|
6761
|
-
/* @__PURE__ */
|
|
6706
|
+
actions && /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
6707
|
+
/* @__PURE__ */ jsx102(Box37, { sx: { flex: 1 } }),
|
|
6708
|
+
/* @__PURE__ */ jsx102(Box37, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
|
|
6762
6709
|
] })
|
|
6763
6710
|
]
|
|
6764
6711
|
}
|
|
@@ -6768,8 +6715,8 @@ var ListingTableToolbar_default = ListingTableToolbar;
|
|
|
6768
6715
|
|
|
6769
6716
|
// src/components/ListingTable/shared/ListingTableEmptyState.tsx
|
|
6770
6717
|
import Box38 from "@mui/material/Box";
|
|
6771
|
-
import
|
|
6772
|
-
import { jsx as
|
|
6718
|
+
import Typography20 from "@mui/material/Typography";
|
|
6719
|
+
import { jsx as jsx103, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6773
6720
|
function ListingTableEmptyState({
|
|
6774
6721
|
title = "No data available",
|
|
6775
6722
|
description,
|
|
@@ -6778,7 +6725,7 @@ function ListingTableEmptyState({
|
|
|
6778
6725
|
minHeight = 300,
|
|
6779
6726
|
sx
|
|
6780
6727
|
}) {
|
|
6781
|
-
return /* @__PURE__ */
|
|
6728
|
+
return /* @__PURE__ */ jsxs34(
|
|
6782
6729
|
Box38,
|
|
6783
6730
|
{
|
|
6784
6731
|
sx: __spreadValues({
|
|
@@ -6791,7 +6738,7 @@ function ListingTableEmptyState({
|
|
|
6791
6738
|
textAlign: "center"
|
|
6792
6739
|
}, sx),
|
|
6793
6740
|
children: [
|
|
6794
|
-
illustration && /* @__PURE__ */
|
|
6741
|
+
illustration && /* @__PURE__ */ jsx103(
|
|
6795
6742
|
Box38,
|
|
6796
6743
|
{
|
|
6797
6744
|
sx: {
|
|
@@ -6805,9 +6752,9 @@ function ListingTableEmptyState({
|
|
|
6805
6752
|
children: illustration
|
|
6806
6753
|
}
|
|
6807
6754
|
),
|
|
6808
|
-
/* @__PURE__ */
|
|
6809
|
-
description && /* @__PURE__ */
|
|
6810
|
-
action && /* @__PURE__ */
|
|
6755
|
+
/* @__PURE__ */ jsx103(Typography20, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
|
|
6756
|
+
description && /* @__PURE__ */ jsx103(Typography20, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
|
|
6757
|
+
action && /* @__PURE__ */ jsx103(Box38, { children: action })
|
|
6811
6758
|
]
|
|
6812
6759
|
}
|
|
6813
6760
|
);
|
|
@@ -6820,11 +6767,11 @@ import ToggleButton from "@mui/material/ToggleButton";
|
|
|
6820
6767
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
6821
6768
|
import Tooltip6 from "@mui/material/Tooltip";
|
|
6822
6769
|
import { AlignJustify, Menu as Menu3, List as List4 } from "@wso2/oxygen-ui-icons-react";
|
|
6823
|
-
import { jsx as
|
|
6770
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
6824
6771
|
var densityOptions = [
|
|
6825
|
-
{ value: "compact", label: "Compact", icon: /* @__PURE__ */
|
|
6826
|
-
{ value: "standard", label: "Standard", icon: /* @__PURE__ */
|
|
6827
|
-
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */
|
|
6772
|
+
{ value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx104(AlignJustify, { size: 18 }) },
|
|
6773
|
+
{ value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx104(Menu3, { size: 18 }) },
|
|
6774
|
+
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx104(List4, { size: 18 }) }
|
|
6828
6775
|
];
|
|
6829
6776
|
function ListingTableDensityControl({
|
|
6830
6777
|
value: valueProp,
|
|
@@ -6844,16 +6791,16 @@ function ListingTableDensityControl({
|
|
|
6844
6791
|
},
|
|
6845
6792
|
[effectiveOnChange]
|
|
6846
6793
|
);
|
|
6847
|
-
return /* @__PURE__ */
|
|
6794
|
+
return /* @__PURE__ */ jsx104(ToggleButtonGroup, { value, exclusive: true, onChange: handleChange, size, sx, children: densityOptions.map((option) => /* @__PURE__ */ jsx104(ToggleButton, { value: option.value, children: /* @__PURE__ */ jsx104(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx104("span", { style: { display: "flex", alignItems: "center" }, children: option.icon }) }) }, option.value)) });
|
|
6848
6795
|
}
|
|
6849
6796
|
var ListingTableDensityControl_default = ListingTableDensityControl;
|
|
6850
6797
|
|
|
6851
6798
|
// src/components/ListingTable/shared/ListingTableSortLabel.tsx
|
|
6852
6799
|
import { useCallback as useCallback5 } from "react";
|
|
6853
6800
|
import MuiTableSortLabel from "@mui/material/TableSortLabel";
|
|
6854
|
-
import { styled as
|
|
6855
|
-
import { jsx as
|
|
6856
|
-
var StyledTableSortLabel =
|
|
6801
|
+
import { styled as styled67 } from "@mui/material/styles";
|
|
6802
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
6803
|
+
var StyledTableSortLabel = styled67(MuiTableSortLabel)(({ theme }) => ({
|
|
6857
6804
|
color: "inherit !important",
|
|
6858
6805
|
"&.Mui-active": {
|
|
6859
6806
|
color: "inherit !important",
|
|
@@ -6896,13 +6843,13 @@ function ListingTableSortLabel(_a) {
|
|
|
6896
6843
|
},
|
|
6897
6844
|
[onClickProp, field, tableContext, active, direction]
|
|
6898
6845
|
);
|
|
6899
|
-
return /* @__PURE__ */
|
|
6846
|
+
return /* @__PURE__ */ jsx105(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
|
|
6900
6847
|
}
|
|
6901
6848
|
var ListingTableSortLabel_default = ListingTableSortLabel;
|
|
6902
6849
|
|
|
6903
6850
|
// src/components/ListingTable/shared/ListingTableRowActions.tsx
|
|
6904
6851
|
import Box39 from "@mui/material/Box";
|
|
6905
|
-
import { jsx as
|
|
6852
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
6906
6853
|
var alignmentMap = {
|
|
6907
6854
|
left: "flex-start",
|
|
6908
6855
|
center: "center",
|
|
@@ -6914,7 +6861,7 @@ function ListingTableRowActions({
|
|
|
6914
6861
|
align = "right",
|
|
6915
6862
|
sx
|
|
6916
6863
|
}) {
|
|
6917
|
-
return /* @__PURE__ */
|
|
6864
|
+
return /* @__PURE__ */ jsx106(
|
|
6918
6865
|
Box39,
|
|
6919
6866
|
{
|
|
6920
6867
|
className: "table-row-actions",
|
|
@@ -6939,8 +6886,8 @@ var ListingTableRowActions_default = ListingTableRowActions;
|
|
|
6939
6886
|
|
|
6940
6887
|
// src/components/ListingTable/shared/ListingTableCellIcon.tsx
|
|
6941
6888
|
import Box40 from "@mui/material/Box";
|
|
6942
|
-
import
|
|
6943
|
-
import { Fragment as Fragment16, jsx as
|
|
6889
|
+
import Typography21 from "@mui/material/Typography";
|
|
6890
|
+
import { Fragment as Fragment16, jsx as jsx107, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6944
6891
|
function ListingTableCellIcon({
|
|
6945
6892
|
icon,
|
|
6946
6893
|
primary,
|
|
@@ -6949,7 +6896,7 @@ function ListingTableCellIcon({
|
|
|
6949
6896
|
iconSx,
|
|
6950
6897
|
sx
|
|
6951
6898
|
}) {
|
|
6952
|
-
const iconElement = /* @__PURE__ */
|
|
6899
|
+
const iconElement = /* @__PURE__ */ jsx107(
|
|
6953
6900
|
Box40,
|
|
6954
6901
|
{
|
|
6955
6902
|
sx: __spreadValues({
|
|
@@ -6962,9 +6909,9 @@ function ListingTableCellIcon({
|
|
|
6962
6909
|
children: icon
|
|
6963
6910
|
}
|
|
6964
6911
|
);
|
|
6965
|
-
const textContent = /* @__PURE__ */
|
|
6966
|
-
/* @__PURE__ */
|
|
6967
|
-
|
|
6912
|
+
const textContent = /* @__PURE__ */ jsxs35(Box40, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
6913
|
+
/* @__PURE__ */ jsx107(
|
|
6914
|
+
Typography21,
|
|
6968
6915
|
{
|
|
6969
6916
|
variant: "body2",
|
|
6970
6917
|
component: "div",
|
|
@@ -6977,8 +6924,8 @@ function ListingTableCellIcon({
|
|
|
6977
6924
|
children: primary
|
|
6978
6925
|
}
|
|
6979
6926
|
),
|
|
6980
|
-
secondary && /* @__PURE__ */
|
|
6981
|
-
|
|
6927
|
+
secondary && /* @__PURE__ */ jsx107(
|
|
6928
|
+
Typography21,
|
|
6982
6929
|
{
|
|
6983
6930
|
variant: "caption",
|
|
6984
6931
|
component: "div",
|
|
@@ -6992,7 +6939,7 @@ function ListingTableCellIcon({
|
|
|
6992
6939
|
}
|
|
6993
6940
|
)
|
|
6994
6941
|
] });
|
|
6995
|
-
return /* @__PURE__ */
|
|
6942
|
+
return /* @__PURE__ */ jsx107(
|
|
6996
6943
|
Box40,
|
|
6997
6944
|
{
|
|
6998
6945
|
sx: __spreadValues({
|
|
@@ -7001,10 +6948,10 @@ function ListingTableCellIcon({
|
|
|
7001
6948
|
gap: 1.5,
|
|
7002
6949
|
minWidth: 0
|
|
7003
6950
|
}, sx),
|
|
7004
|
-
children: iconPosition === "left" ? /* @__PURE__ */
|
|
6951
|
+
children: iconPosition === "left" ? /* @__PURE__ */ jsxs35(Fragment16, { children: [
|
|
7005
6952
|
iconElement,
|
|
7006
6953
|
textContent
|
|
7007
|
-
] }) : /* @__PURE__ */
|
|
6954
|
+
] }) : /* @__PURE__ */ jsxs35(Fragment16, { children: [
|
|
7008
6955
|
textContent,
|
|
7009
6956
|
iconElement
|
|
7010
6957
|
] })
|
|
@@ -7015,7 +6962,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
|
|
|
7015
6962
|
|
|
7016
6963
|
// src/components/ListingTable/ListingTableProvider.tsx
|
|
7017
6964
|
import { useMemo as useMemo7 } from "react";
|
|
7018
|
-
import { jsx as
|
|
6965
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
7019
6966
|
function ListingTableProvider({
|
|
7020
6967
|
children,
|
|
7021
6968
|
// Search
|
|
@@ -7118,12 +7065,12 @@ function ListingTableProvider({
|
|
|
7118
7065
|
loading
|
|
7119
7066
|
]
|
|
7120
7067
|
);
|
|
7121
|
-
return /* @__PURE__ */
|
|
7068
|
+
return /* @__PURE__ */ jsx108(ListingTableContext.Provider, { value: contextValue, children });
|
|
7122
7069
|
}
|
|
7123
7070
|
|
|
7124
7071
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
7125
|
-
import { jsx as
|
|
7126
|
-
var StyledTable =
|
|
7072
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
7073
|
+
var StyledTable = styled68(MuiTable, {
|
|
7127
7074
|
shouldForwardProp: (prop) => {
|
|
7128
7075
|
const excludedProps = ["variant", "density", "striped", "bordered"];
|
|
7129
7076
|
return !excludedProps.some((excluded) => excluded === prop);
|
|
@@ -7176,7 +7123,7 @@ function ListingTable(_a) {
|
|
|
7176
7123
|
"children",
|
|
7177
7124
|
"sx"
|
|
7178
7125
|
]);
|
|
7179
|
-
return /* @__PURE__ */
|
|
7126
|
+
return /* @__PURE__ */ jsx109(
|
|
7180
7127
|
StyledTable,
|
|
7181
7128
|
__spreadProps(__spreadValues({
|
|
7182
7129
|
variant,
|
|
@@ -7208,9 +7155,9 @@ var ListingTableCompound = Object.assign(ListingTable, {
|
|
|
7208
7155
|
var ListingTable_default = ListingTableCompound;
|
|
7209
7156
|
|
|
7210
7157
|
// src/animations/ParticleBackground/ParticleBackground.tsx
|
|
7211
|
-
import { useEffect as
|
|
7212
|
-
import { useColorScheme as
|
|
7213
|
-
import { jsx as
|
|
7158
|
+
import { useEffect as useEffect6, useRef as useRef2 } from "react";
|
|
7159
|
+
import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
|
|
7160
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
7214
7161
|
var ParticleBackground = ({
|
|
7215
7162
|
opacity = 0.5,
|
|
7216
7163
|
baseDensity = 0.12,
|
|
@@ -7222,9 +7169,9 @@ var ParticleBackground = ({
|
|
|
7222
7169
|
repelStrength = 0.35,
|
|
7223
7170
|
clickBurst = 120
|
|
7224
7171
|
}) => {
|
|
7225
|
-
const canvasRef =
|
|
7226
|
-
const { mode } =
|
|
7227
|
-
|
|
7172
|
+
const canvasRef = useRef2(null);
|
|
7173
|
+
const { mode } = useColorScheme4();
|
|
7174
|
+
useEffect6(() => {
|
|
7228
7175
|
const canvas = canvasRef.current;
|
|
7229
7176
|
if (!canvas) return;
|
|
7230
7177
|
const ctx = canvas.getContext("2d", { alpha: true });
|
|
@@ -7395,7 +7342,7 @@ var ParticleBackground = ({
|
|
|
7395
7342
|
cancelAnimationFrame(animationFrameId);
|
|
7396
7343
|
};
|
|
7397
7344
|
}, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
|
|
7398
|
-
return /* @__PURE__ */
|
|
7345
|
+
return /* @__PURE__ */ jsx110(
|
|
7399
7346
|
"canvas",
|
|
7400
7347
|
{
|
|
7401
7348
|
ref: canvasRef,
|
|
@@ -7491,8 +7438,8 @@ export {
|
|
|
7491
7438
|
AcrylicOrangeTheme_default as AcrylicOrangeTheme,
|
|
7492
7439
|
AcrylicPurpleTheme_default as AcrylicPurpleTheme,
|
|
7493
7440
|
AdapterDateFns,
|
|
7441
|
+
AppBreadcrumbs,
|
|
7494
7442
|
AppShell,
|
|
7495
|
-
ChoreoTheme_default as ChoreoTheme,
|
|
7496
7443
|
ClassicTheme_default as ClassicTheme,
|
|
7497
7444
|
CodeBlock_default as CodeBlock,
|
|
7498
7445
|
ColorSchemeImage,
|