@wso2/oxygen-ui 0.2.1 → 0.4.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/PageTitle/PageTitle.d.ts +38 -0
- package/dist/components/PageTitle/PageTitleActions.d.ts +26 -0
- package/dist/components/PageTitle/PageTitleBackButton.d.ts +67 -0
- package/dist/components/PageTitle/index.d.ts +4 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +880 -598
- package/dist/index.js.map +4 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -127,6 +127,123 @@ var __objRest = (source, exclude) => {
|
|
|
127
127
|
}
|
|
128
128
|
})();
|
|
129
129
|
|
|
130
|
+
// package.json
|
|
131
|
+
var package_default = {
|
|
132
|
+
name: "@wso2/oxygen-ui",
|
|
133
|
+
version: "0.4.0",
|
|
134
|
+
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
135
|
+
type: "module",
|
|
136
|
+
main: "./dist/index.js",
|
|
137
|
+
module: "./dist/index.js",
|
|
138
|
+
types: "./dist/index.d.ts",
|
|
139
|
+
exports: {
|
|
140
|
+
".": {
|
|
141
|
+
types: "./dist/index.d.ts",
|
|
142
|
+
import: "./dist/index.js",
|
|
143
|
+
require: "./dist/index.cjs"
|
|
144
|
+
},
|
|
145
|
+
"./*": {
|
|
146
|
+
types: "./dist/*.d.ts",
|
|
147
|
+
import: "./dist/*.js",
|
|
148
|
+
require: "./dist/*.cjs"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
bin: {
|
|
152
|
+
"oxygen-ui": "./bin/cli.js"
|
|
153
|
+
},
|
|
154
|
+
files: [
|
|
155
|
+
"dist",
|
|
156
|
+
"package.json",
|
|
157
|
+
"README.md",
|
|
158
|
+
".claude",
|
|
159
|
+
".ai",
|
|
160
|
+
"bin"
|
|
161
|
+
],
|
|
162
|
+
sideEffects: [
|
|
163
|
+
"src/styles/Themes/theme.css",
|
|
164
|
+
"dist/styles/Themes/theme.css"
|
|
165
|
+
],
|
|
166
|
+
scripts: {
|
|
167
|
+
build: "pnpm clean && tsc -p tsconfig.json && node esbuild.config.js",
|
|
168
|
+
"build:watch": "node esbuild.config.js --watch",
|
|
169
|
+
dev: "node esbuild.config.js --watch",
|
|
170
|
+
typecheck: "tsc --noEmit",
|
|
171
|
+
lint: "eslint src",
|
|
172
|
+
"lint:fix": "eslint src --fix",
|
|
173
|
+
clean: "rimraf dist",
|
|
174
|
+
test: "vitest run --passWithNoTests",
|
|
175
|
+
"test:watch": "vitest"
|
|
176
|
+
},
|
|
177
|
+
keywords: [
|
|
178
|
+
"wso2",
|
|
179
|
+
"oxygen-ui",
|
|
180
|
+
"design-system",
|
|
181
|
+
"material-ui",
|
|
182
|
+
"mui",
|
|
183
|
+
"react",
|
|
184
|
+
"typescript",
|
|
185
|
+
"components",
|
|
186
|
+
"ui-library"
|
|
187
|
+
],
|
|
188
|
+
author: "WSO2 LLC",
|
|
189
|
+
license: "Apache-2.0",
|
|
190
|
+
repository: {
|
|
191
|
+
type: "git",
|
|
192
|
+
url: "https://github.com/wso2/oxygen-ui.git"
|
|
193
|
+
},
|
|
194
|
+
bugs: {
|
|
195
|
+
url: "https://github.com/wso2/oxygen-ui/issues"
|
|
196
|
+
},
|
|
197
|
+
homepage: "https://github.com/wso2/oxygen-ui#readme",
|
|
198
|
+
dependencies: {
|
|
199
|
+
"@fontsource-variable/inter": "5.2.8",
|
|
200
|
+
"@emotion/react": "catalog:",
|
|
201
|
+
"@emotion/styled": "catalog:",
|
|
202
|
+
"@mui/material": "catalog:",
|
|
203
|
+
"@mui/x-data-grid": "catalog:",
|
|
204
|
+
"@mui/x-date-pickers": "catalog:",
|
|
205
|
+
"@mui/x-tree-view": "catalog:",
|
|
206
|
+
"date-fns": "4.1.0",
|
|
207
|
+
prismjs: "^1.30.0"
|
|
208
|
+
},
|
|
209
|
+
peerDependencies: {
|
|
210
|
+
"@wso2/oxygen-ui-icons-react": ">=0.1.0",
|
|
211
|
+
react: "catalog:",
|
|
212
|
+
"react-dom": "catalog:"
|
|
213
|
+
},
|
|
214
|
+
devDependencies: {
|
|
215
|
+
"@eslint/js": "catalog:",
|
|
216
|
+
"@types/prismjs": "^1.26.5",
|
|
217
|
+
"@types/react": "catalog:",
|
|
218
|
+
"@types/react-dom": "catalog:",
|
|
219
|
+
"@typescript-eslint/eslint-plugin": "catalog:",
|
|
220
|
+
"@typescript-eslint/parser": "catalog:",
|
|
221
|
+
"@vitest/ui": "catalog:",
|
|
222
|
+
"@wso2/esbuild-plugin-inline-css-fonts": "workspace:^",
|
|
223
|
+
"@wso2/oxygen-ui-icons-react": "workspace:^",
|
|
224
|
+
esbuild: "catalog:",
|
|
225
|
+
eslint: "catalog:",
|
|
226
|
+
"eslint-plugin-react": "catalog:",
|
|
227
|
+
"eslint-plugin-react-hooks": "catalog:",
|
|
228
|
+
rimraf: "catalog:",
|
|
229
|
+
typescript: "catalog:",
|
|
230
|
+
vite: "catalog:",
|
|
231
|
+
vitest: "catalog:"
|
|
232
|
+
},
|
|
233
|
+
publishConfig: {
|
|
234
|
+
access: "public"
|
|
235
|
+
},
|
|
236
|
+
nx: {
|
|
237
|
+
targets: {
|
|
238
|
+
build: {
|
|
239
|
+
dependsOn: [
|
|
240
|
+
"^build"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
130
247
|
// src/styles/Themes/AcrylicBaseTheme.ts
|
|
131
248
|
import { extendTheme as extendTheme2 } from "@mui/material/styles";
|
|
132
249
|
|
|
@@ -460,16 +577,13 @@ var AcrylicBaseTheme = extendTheme2(OxygenThemeBase_default, {
|
|
|
460
577
|
paper: ({ theme }) => ({
|
|
461
578
|
WebkitBackdropFilter: theme.blur.medium,
|
|
462
579
|
backdropFilter: theme.blur.medium,
|
|
463
|
-
|
|
464
|
-
background: theme.vars.palette.background.paper,
|
|
465
|
-
opacity: 0.7
|
|
580
|
+
background: theme.vars.palette.background.paper
|
|
466
581
|
})
|
|
467
582
|
}
|
|
468
583
|
},
|
|
469
584
|
MuiDrawer: {
|
|
470
585
|
styleOverrides: {
|
|
471
586
|
paper: ({ theme }) => ({
|
|
472
|
-
// Paper background is already set by colorSchemes
|
|
473
587
|
background: theme.vars.palette.background.paper
|
|
474
588
|
})
|
|
475
589
|
}
|
|
@@ -1516,7 +1630,17 @@ import { Box as Box3 } from "@mui/material";
|
|
|
1516
1630
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1517
1631
|
var PageContentRoot = styled7(Box3, {
|
|
1518
1632
|
name: "MuiPageContent",
|
|
1519
|
-
slot: "Root"
|
|
1633
|
+
slot: "Root"
|
|
1634
|
+
})(() => ({
|
|
1635
|
+
width: "100%",
|
|
1636
|
+
overflow: "auto",
|
|
1637
|
+
height: "100%",
|
|
1638
|
+
display: "flex",
|
|
1639
|
+
flexDirection: "column"
|
|
1640
|
+
}));
|
|
1641
|
+
var PageContentInner = styled7(Box3, {
|
|
1642
|
+
name: "MuiPageContent",
|
|
1643
|
+
slot: "Inner",
|
|
1520
1644
|
shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "centered" && prop !== "fullWidth" && prop !== "noPadding"
|
|
1521
1645
|
})(({ theme, maxWidth = "1400px", centered = true, fullWidth = false, noPadding = false }) => __spreadValues(__spreadValues(__spreadValues({
|
|
1522
1646
|
width: "100%"
|
|
@@ -1535,8 +1659,8 @@ var PageContent = (_a) => {
|
|
|
1535
1659
|
"fullWidth",
|
|
1536
1660
|
"noPadding"
|
|
1537
1661
|
]);
|
|
1538
|
-
return /* @__PURE__ */ jsx12(
|
|
1539
|
-
|
|
1662
|
+
return /* @__PURE__ */ jsx12(PageContentRoot, { children: /* @__PURE__ */ jsx12(
|
|
1663
|
+
PageContentInner,
|
|
1540
1664
|
__spreadProps(__spreadValues({
|
|
1541
1665
|
maxWidth,
|
|
1542
1666
|
centered,
|
|
@@ -1545,13 +1669,14 @@ var PageContent = (_a) => {
|
|
|
1545
1669
|
}, props), {
|
|
1546
1670
|
children
|
|
1547
1671
|
})
|
|
1548
|
-
);
|
|
1672
|
+
) });
|
|
1549
1673
|
};
|
|
1674
|
+
PageContent.displayName = "PageContent";
|
|
1550
1675
|
var PageContent_default = PageContent;
|
|
1551
1676
|
|
|
1552
1677
|
// src/components/PageTitle/PageTitle.tsx
|
|
1553
|
-
import
|
|
1554
|
-
import { styled as
|
|
1678
|
+
import React4 from "react";
|
|
1679
|
+
import { styled as styled14 } from "@mui/material/styles";
|
|
1555
1680
|
|
|
1556
1681
|
// src/components/PageTitle/PageTitleHeader.tsx
|
|
1557
1682
|
import { styled as styled8 } from "@mui/material/styles";
|
|
@@ -1649,50 +1774,193 @@ var PageTitleLink = (_a) => {
|
|
|
1649
1774
|
PageTitleLink.displayName = "PageTitle.Link";
|
|
1650
1775
|
var PageTitleLink_default = PageTitleLink;
|
|
1651
1776
|
|
|
1777
|
+
// src/components/PageTitle/PageTitleActions.tsx
|
|
1778
|
+
import { styled as styled12 } from "@mui/material/styles";
|
|
1779
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1780
|
+
var PageTitleActionsRoot = styled12("div", {
|
|
1781
|
+
name: "MuiPageTitle",
|
|
1782
|
+
slot: "Actions"
|
|
1783
|
+
})(({ theme }) => ({
|
|
1784
|
+
display: "flex",
|
|
1785
|
+
alignItems: "center",
|
|
1786
|
+
gap: theme.spacing(2),
|
|
1787
|
+
marginLeft: "auto"
|
|
1788
|
+
}));
|
|
1789
|
+
var PageTitleActions = (_a) => {
|
|
1790
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
1791
|
+
return /* @__PURE__ */ jsx17(PageTitleActionsRoot, __spreadProps(__spreadValues({}, props), { children }));
|
|
1792
|
+
};
|
|
1793
|
+
PageTitleActions.displayName = "PageTitle.Actions";
|
|
1794
|
+
var PageTitleActions_default = PageTitleActions;
|
|
1795
|
+
|
|
1796
|
+
// src/components/PageTitle/PageTitleBackButton.tsx
|
|
1797
|
+
import React3 from "react";
|
|
1798
|
+
import { styled as styled13 } from "@mui/material/styles";
|
|
1799
|
+
import Button from "@mui/material/Button";
|
|
1800
|
+
import Typography3 from "@mui/material/Typography";
|
|
1801
|
+
import { ArrowLeft } from "@wso2/oxygen-ui-icons-react";
|
|
1802
|
+
import { jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1803
|
+
var PageTitleBackButtonRoot = styled13("div", {
|
|
1804
|
+
name: "MuiPageTitle",
|
|
1805
|
+
slot: "BackButton"
|
|
1806
|
+
})();
|
|
1807
|
+
var PageTitleBackButton = (_a) => {
|
|
1808
|
+
var _b = _a, {
|
|
1809
|
+
children = "Back",
|
|
1810
|
+
component: Component
|
|
1811
|
+
} = _b, props = __objRest(_b, [
|
|
1812
|
+
"children",
|
|
1813
|
+
"component"
|
|
1814
|
+
]);
|
|
1815
|
+
const button = /* @__PURE__ */ jsxs4(
|
|
1816
|
+
Button,
|
|
1817
|
+
__spreadProps(__spreadValues({
|
|
1818
|
+
variant: "text",
|
|
1819
|
+
sx: {
|
|
1820
|
+
display: "flex",
|
|
1821
|
+
alignItems: "center",
|
|
1822
|
+
marginLeft: "-10px",
|
|
1823
|
+
textDecoration: "none"
|
|
1824
|
+
}
|
|
1825
|
+
}, props), {
|
|
1826
|
+
children: [
|
|
1827
|
+
/* @__PURE__ */ jsx18(ArrowLeft, { size: 20 }),
|
|
1828
|
+
/* @__PURE__ */ jsx18(Typography3, { variant: "body2", children })
|
|
1829
|
+
]
|
|
1830
|
+
})
|
|
1831
|
+
);
|
|
1832
|
+
if (React3.isValidElement(Component)) {
|
|
1833
|
+
return /* @__PURE__ */ jsx18(PageTitleBackButtonRoot, { children: React3.cloneElement(
|
|
1834
|
+
Component,
|
|
1835
|
+
{ style: { textDecoration: "none" } },
|
|
1836
|
+
button
|
|
1837
|
+
) });
|
|
1838
|
+
}
|
|
1839
|
+
if (Component) {
|
|
1840
|
+
const WrapperComponent = Component;
|
|
1841
|
+
return /* @__PURE__ */ jsx18(PageTitleBackButtonRoot, { children: /* @__PURE__ */ jsx18(WrapperComponent, { style: { textDecoration: "none" }, children: button }) });
|
|
1842
|
+
}
|
|
1843
|
+
return /* @__PURE__ */ jsx18(PageTitleBackButtonRoot, { children: button });
|
|
1844
|
+
};
|
|
1845
|
+
PageTitleBackButton.displayName = "PageTitle.BackButton";
|
|
1846
|
+
var PageTitleBackButton_default = PageTitleBackButton;
|
|
1847
|
+
|
|
1652
1848
|
// src/components/PageTitle/PageTitle.tsx
|
|
1653
|
-
import { jsx as
|
|
1654
|
-
var PageTitleRoot =
|
|
1849
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1850
|
+
var PageTitleRoot = styled14("div", {
|
|
1655
1851
|
name: "MuiPageTitle",
|
|
1656
1852
|
slot: "Root"
|
|
1657
1853
|
})(({ theme }) => ({
|
|
1658
|
-
marginBottom: theme.spacing(
|
|
1854
|
+
marginBottom: theme.spacing(5),
|
|
1659
1855
|
display: "flex",
|
|
1660
|
-
|
|
1661
|
-
gap:
|
|
1856
|
+
flexDirection: "column",
|
|
1857
|
+
gap: theme.spacing(2),
|
|
1858
|
+
width: "100%"
|
|
1662
1859
|
}));
|
|
1663
|
-
var
|
|
1860
|
+
var PageTitleRow1 = styled14("div", {
|
|
1664
1861
|
name: "MuiPageTitle",
|
|
1665
|
-
slot: "
|
|
1862
|
+
slot: "Row1"
|
|
1863
|
+
})();
|
|
1864
|
+
var PageTitleRow2 = styled14("div", {
|
|
1865
|
+
name: "MuiPageTitle",
|
|
1866
|
+
slot: "Row2"
|
|
1867
|
+
})(({ theme }) => ({
|
|
1868
|
+
display: "flex",
|
|
1869
|
+
alignItems: "center",
|
|
1870
|
+
gap: theme.spacing(2),
|
|
1871
|
+
width: "100%"
|
|
1872
|
+
}));
|
|
1873
|
+
var PageTitleColumnLeft = styled14("div", {
|
|
1874
|
+
name: "MuiPageTitle",
|
|
1875
|
+
slot: "ColumnLeft"
|
|
1876
|
+
})(({ theme }) => ({
|
|
1877
|
+
display: "flex",
|
|
1878
|
+
alignItems: "center",
|
|
1879
|
+
flex: 1,
|
|
1880
|
+
'&:has(> [class*="Column1"] > *)': {
|
|
1881
|
+
gap: theme.spacing(2)
|
|
1882
|
+
}
|
|
1883
|
+
}));
|
|
1884
|
+
var PageTitleColumn1 = styled14("div", {
|
|
1885
|
+
name: "MuiPageTitle",
|
|
1886
|
+
slot: "Column1"
|
|
1887
|
+
})();
|
|
1888
|
+
var PageTitleColumn2 = styled14("div", {
|
|
1889
|
+
name: "MuiPageTitle",
|
|
1890
|
+
slot: "Column2"
|
|
1666
1891
|
})(({ theme }) => ({
|
|
1667
1892
|
display: "flex",
|
|
1668
1893
|
flexDirection: "column",
|
|
1669
1894
|
gap: theme.spacing(0.5),
|
|
1670
1895
|
flex: 1
|
|
1671
1896
|
}));
|
|
1897
|
+
var PageTitleColumnRight = styled14("div", {
|
|
1898
|
+
name: "MuiPageTitle",
|
|
1899
|
+
slot: "ColumnRight"
|
|
1900
|
+
})();
|
|
1672
1901
|
var PageTitle = (_a) => {
|
|
1673
|
-
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
1674
|
-
const childrenArray =
|
|
1902
|
+
var _b = _a, { children, sx } = _b, props = __objRest(_b, ["children", "sx"]);
|
|
1903
|
+
const childrenArray = React4.Children.toArray(children);
|
|
1675
1904
|
const avatar = childrenArray.find(
|
|
1676
|
-
(child) =>
|
|
1905
|
+
(child) => React4.isValidElement(child) && child.type === PageTitleAvatar_default
|
|
1906
|
+
);
|
|
1907
|
+
const actions = childrenArray.find(
|
|
1908
|
+
(child) => React4.isValidElement(child) && child.type === PageTitleActions_default
|
|
1677
1909
|
);
|
|
1910
|
+
let backButtonElement = null;
|
|
1911
|
+
childrenArray.forEach((child) => {
|
|
1912
|
+
if (React4.isValidElement(child)) {
|
|
1913
|
+
if (child.type === PageTitleBackButton_default) {
|
|
1914
|
+
backButtonElement = child;
|
|
1915
|
+
}
|
|
1916
|
+
if (child.props && typeof child.props === "object" && "children" in child.props && React4.isValidElement(child.props.children)) {
|
|
1917
|
+
if (child.props.children.type === PageTitleBackButton_default) {
|
|
1918
|
+
backButtonElement = child;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
});
|
|
1678
1923
|
const otherChildren = childrenArray.filter(
|
|
1679
|
-
(child) =>
|
|
1924
|
+
(child) => {
|
|
1925
|
+
if (!React4.isValidElement(child)) {
|
|
1926
|
+
return true;
|
|
1927
|
+
}
|
|
1928
|
+
if (child.type === PageTitleAvatar_default || child.type === PageTitleActions_default || child.type === PageTitleBackButton_default) {
|
|
1929
|
+
return false;
|
|
1930
|
+
}
|
|
1931
|
+
if (child.props && typeof child.props === "object" && "children" in child.props && React4.isValidElement(child.props.children)) {
|
|
1932
|
+
const childrenProp = child.props.children;
|
|
1933
|
+
if (React4.isValidElement(childrenProp) && childrenProp.type === PageTitleBackButton_default) {
|
|
1934
|
+
return false;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
return true;
|
|
1938
|
+
}
|
|
1680
1939
|
);
|
|
1681
|
-
return /* @__PURE__ */
|
|
1682
|
-
|
|
1683
|
-
/* @__PURE__ */
|
|
1940
|
+
return /* @__PURE__ */ jsxs5(PageTitleRoot, __spreadProps(__spreadValues({ sx }, props), { children: [
|
|
1941
|
+
backButtonElement && /* @__PURE__ */ jsx19(PageTitleRow1, { children: backButtonElement }),
|
|
1942
|
+
/* @__PURE__ */ jsxs5(PageTitleRow2, { children: [
|
|
1943
|
+
/* @__PURE__ */ jsxs5(PageTitleColumnLeft, { children: [
|
|
1944
|
+
/* @__PURE__ */ jsx19(PageTitleColumn1, { children: avatar }),
|
|
1945
|
+
/* @__PURE__ */ jsx19(PageTitleColumn2, { children: otherChildren })
|
|
1946
|
+
] }),
|
|
1947
|
+
/* @__PURE__ */ jsx19(PageTitleColumnRight, { children: actions })
|
|
1948
|
+
] })
|
|
1684
1949
|
] }));
|
|
1685
1950
|
};
|
|
1686
1951
|
PageTitle.Avatar = PageTitleAvatar_default;
|
|
1687
1952
|
PageTitle.Header = PageTitleHeader_default;
|
|
1688
1953
|
PageTitle.SubHeader = PageTitleSubHeader_default;
|
|
1689
1954
|
PageTitle.Link = PageTitleLink_default;
|
|
1955
|
+
PageTitle.Actions = PageTitleActions_default;
|
|
1956
|
+
PageTitle.BackButton = PageTitleBackButton_default;
|
|
1957
|
+
PageTitle.Link = PageTitleLink_default;
|
|
1690
1958
|
PageTitle.displayName = "PageTitle";
|
|
1691
1959
|
var PageTitle_default = PageTitle;
|
|
1692
1960
|
|
|
1693
1961
|
// src/components/StatCard/StatCard.tsx
|
|
1694
|
-
import { Card, CardContent, Box as Box5, Typography as
|
|
1695
|
-
import { jsx as
|
|
1962
|
+
import { Card, CardContent, Box as Box5, Typography as Typography4 } from "@mui/material";
|
|
1963
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1696
1964
|
var StatCard = (_a) => {
|
|
1697
1965
|
var _b = _a, {
|
|
1698
1966
|
value,
|
|
@@ -1705,19 +1973,20 @@ var StatCard = (_a) => {
|
|
|
1705
1973
|
"icon",
|
|
1706
1974
|
"iconColor"
|
|
1707
1975
|
]);
|
|
1708
|
-
return /* @__PURE__ */
|
|
1709
|
-
icon && /* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
/* @__PURE__ */
|
|
1976
|
+
return /* @__PURE__ */ jsx20(Card, __spreadProps(__spreadValues({ variant: "outlined" }, props), { children: /* @__PURE__ */ jsx20(CardContent, { children: /* @__PURE__ */ jsxs6(Box5, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
1977
|
+
icon && /* @__PURE__ */ jsx20(Box5, { sx: { color: (theme) => theme.palette[iconColor].main, display: "flex", alignItems: "center" }, children: icon }),
|
|
1978
|
+
/* @__PURE__ */ jsxs6(Box5, { children: [
|
|
1979
|
+
/* @__PURE__ */ jsx20(Typography4, { variant: "h5", children: value }),
|
|
1980
|
+
/* @__PURE__ */ jsx20(Typography4, { variant: "body2", color: "text.secondary", children: label })
|
|
1713
1981
|
] })
|
|
1714
1982
|
] }) }) }));
|
|
1715
1983
|
};
|
|
1984
|
+
StatCard.displayName = "StatCard";
|
|
1716
1985
|
var StatCard_default = StatCard;
|
|
1717
1986
|
|
|
1718
1987
|
// src/components/ThemeSwitcher/ThemeSelect.tsx
|
|
1719
1988
|
import { Select, MenuItem, FormControl, InputLabel } from "@mui/material";
|
|
1720
|
-
import { jsx as
|
|
1989
|
+
import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1721
1990
|
function ThemeSelect({
|
|
1722
1991
|
size = "small",
|
|
1723
1992
|
showLabel = false,
|
|
@@ -1729,23 +1998,23 @@ function ThemeSelect({
|
|
|
1729
1998
|
const handleChange = (event) => {
|
|
1730
1999
|
setTheme(event.target.value);
|
|
1731
2000
|
};
|
|
1732
|
-
return /* @__PURE__ */
|
|
1733
|
-
showLabel && /* @__PURE__ */
|
|
1734
|
-
/* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ jsxs7(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
|
|
2002
|
+
showLabel && /* @__PURE__ */ jsx21(InputLabel, { id: "theme-select-label", children: label }),
|
|
2003
|
+
/* @__PURE__ */ jsx21(
|
|
1735
2004
|
Select,
|
|
1736
2005
|
{
|
|
1737
2006
|
labelId: showLabel ? "theme-select-label" : void 0,
|
|
1738
2007
|
value: currentTheme,
|
|
1739
2008
|
onChange: handleChange,
|
|
1740
2009
|
label: showLabel ? label : void 0,
|
|
1741
|
-
children: themes.map((themeOption) => /* @__PURE__ */
|
|
2010
|
+
children: themes.map((themeOption) => /* @__PURE__ */ jsx21(MenuItem, { value: themeOption.key, children: themeOption.label }, themeOption.key))
|
|
1742
2011
|
}
|
|
1743
2012
|
)
|
|
1744
2013
|
] });
|
|
1745
2014
|
}
|
|
1746
2015
|
|
|
1747
2016
|
// src/components/ThemeSwitcher/ThemeSwitcher.tsx
|
|
1748
|
-
import { Fragment as Fragment2, jsx as
|
|
2017
|
+
import { Fragment as Fragment2, jsx as jsx22 } from "react/jsx-runtime";
|
|
1749
2018
|
function ThemeSwitcher({
|
|
1750
2019
|
children,
|
|
1751
2020
|
size,
|
|
@@ -1756,9 +2025,9 @@ function ThemeSwitcher({
|
|
|
1756
2025
|
}) {
|
|
1757
2026
|
const themeSwitcherContext = useThemeSwitcher();
|
|
1758
2027
|
if (children) {
|
|
1759
|
-
return /* @__PURE__ */
|
|
2028
|
+
return /* @__PURE__ */ jsx22(Fragment2, { children: children(themeSwitcherContext) });
|
|
1760
2029
|
}
|
|
1761
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ jsx22(
|
|
1762
2031
|
ThemeSelect,
|
|
1763
2032
|
{
|
|
1764
2033
|
size,
|
|
@@ -1771,15 +2040,15 @@ function ThemeSwitcher({
|
|
|
1771
2040
|
}
|
|
1772
2041
|
|
|
1773
2042
|
// src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
|
|
1774
|
-
import * as
|
|
2043
|
+
import * as React5 from "react";
|
|
1775
2044
|
import TextField from "@mui/material/TextField";
|
|
1776
2045
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
1777
2046
|
import Box6 from "@mui/material/Box";
|
|
1778
2047
|
import IconButton2 from "@mui/material/IconButton";
|
|
1779
2048
|
import Popover from "@mui/material/Popover";
|
|
1780
|
-
import
|
|
2049
|
+
import Typography5 from "@mui/material/Typography";
|
|
1781
2050
|
import Divider from "@mui/material/Divider";
|
|
1782
|
-
import
|
|
2051
|
+
import Button2 from "@mui/material/Button";
|
|
1783
2052
|
import Stack from "@mui/material/Stack";
|
|
1784
2053
|
import FormControl2 from "@mui/material/FormControl";
|
|
1785
2054
|
import InputLabel2 from "@mui/material/InputLabel";
|
|
@@ -1787,7 +2056,7 @@ import Select2 from "@mui/material/Select";
|
|
|
1787
2056
|
import MenuItem2 from "@mui/material/MenuItem";
|
|
1788
2057
|
import { Search } from "@wso2/oxygen-ui-icons-react";
|
|
1789
2058
|
import { ListFilter } from "@wso2/oxygen-ui-icons-react";
|
|
1790
|
-
import { Fragment as Fragment3, jsx as
|
|
2059
|
+
import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1791
2060
|
function SearchBarWithAdvancedFilter(_a) {
|
|
1792
2061
|
var _b = _a, {
|
|
1793
2062
|
value,
|
|
@@ -1814,7 +2083,7 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1814
2083
|
"popoverWidth",
|
|
1815
2084
|
"sx"
|
|
1816
2085
|
]);
|
|
1817
|
-
const [anchorEl, setAnchorEl] =
|
|
2086
|
+
const [anchorEl, setAnchorEl] = React5.useState(null);
|
|
1818
2087
|
const open = Boolean(anchorEl);
|
|
1819
2088
|
const handleInputChange = (e) => {
|
|
1820
2089
|
onChange(e.target.value);
|
|
@@ -1840,8 +2109,8 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1840
2109
|
handleClose();
|
|
1841
2110
|
};
|
|
1842
2111
|
const popoverId = open ? "advanced-search-popover" : void 0;
|
|
1843
|
-
return /* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
2113
|
+
/* @__PURE__ */ jsx23(
|
|
1845
2114
|
TextField,
|
|
1846
2115
|
__spreadProps(__spreadValues({}, props), {
|
|
1847
2116
|
value,
|
|
@@ -1856,10 +2125,10 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1856
2125
|
}
|
|
1857
2126
|
}, sx),
|
|
1858
2127
|
InputProps: {
|
|
1859
|
-
startAdornment: /* @__PURE__ */
|
|
1860
|
-
endAdornment: /* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
2128
|
+
startAdornment: /* @__PURE__ */ jsx23(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx23(Search, { fontSize: "small" }) }),
|
|
2129
|
+
endAdornment: /* @__PURE__ */ jsx23(InputAdornment, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs8(Box6, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
|
|
2130
|
+
/* @__PURE__ */ jsx23(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
|
|
2131
|
+
/* @__PURE__ */ jsx23(
|
|
1863
2132
|
IconButton2,
|
|
1864
2133
|
{
|
|
1865
2134
|
"aria-describedby": popoverId,
|
|
@@ -1867,14 +2136,14 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1867
2136
|
onClick: handleOpen,
|
|
1868
2137
|
size: "small",
|
|
1869
2138
|
sx: { mx: 0.5 },
|
|
1870
|
-
children: /* @__PURE__ */
|
|
2139
|
+
children: /* @__PURE__ */ jsx23(ListFilter, { fontSize: "tiny" })
|
|
1871
2140
|
}
|
|
1872
2141
|
)
|
|
1873
2142
|
] }) })
|
|
1874
2143
|
}
|
|
1875
2144
|
})
|
|
1876
2145
|
),
|
|
1877
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ jsxs8(
|
|
1878
2147
|
Popover,
|
|
1879
2148
|
{
|
|
1880
2149
|
id: popoverId,
|
|
@@ -1891,45 +2160,45 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1891
2160
|
}
|
|
1892
2161
|
},
|
|
1893
2162
|
children: [
|
|
1894
|
-
/* @__PURE__ */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
/* @__PURE__ */
|
|
2163
|
+
/* @__PURE__ */ jsx23(Typography5, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
|
|
2164
|
+
/* @__PURE__ */ jsx23(Divider, { sx: { my: 1 } }),
|
|
2165
|
+
/* @__PURE__ */ jsxs8(Stack, { spacing: 2, marginTop: 2, children: [
|
|
2166
|
+
/* @__PURE__ */ jsxs8(FormControl2, { fullWidth: true, size: "small", children: [
|
|
2167
|
+
/* @__PURE__ */ jsxs8(InputLabel2, { id: "adv-filter-attribute-label", children: [
|
|
1899
2168
|
"Filter attribute",
|
|
1900
2169
|
" ",
|
|
1901
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ jsx23(Box6, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
1902
2171
|
] }),
|
|
1903
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx23(
|
|
1904
2173
|
Select2,
|
|
1905
2174
|
{
|
|
1906
2175
|
labelId: "adv-filter-attribute-label",
|
|
1907
2176
|
value: advancedFilter.attribute,
|
|
1908
2177
|
label: "Filter attribute *",
|
|
1909
2178
|
onChange: handleAttrChange,
|
|
1910
|
-
children: attributeOptions.map((opt) => /* @__PURE__ */
|
|
2179
|
+
children: attributeOptions.map((opt) => /* @__PURE__ */ jsx23(MenuItem2, { value: opt.value, children: opt.label }, opt.value))
|
|
1911
2180
|
}
|
|
1912
2181
|
)
|
|
1913
2182
|
] }),
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
-
/* @__PURE__ */
|
|
1916
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ jsxs8(Box6, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
|
|
2184
|
+
/* @__PURE__ */ jsxs8(FormControl2, { fullWidth: true, size: "small", children: [
|
|
2185
|
+
/* @__PURE__ */ jsxs8(InputLabel2, { id: "adv-filter-condition-label", children: [
|
|
1917
2186
|
"Filter condition",
|
|
1918
2187
|
" ",
|
|
1919
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ jsx23(Box6, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
1920
2189
|
] }),
|
|
1921
|
-
/* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ jsx23(
|
|
1922
2191
|
Select2,
|
|
1923
2192
|
{
|
|
1924
2193
|
labelId: "adv-filter-condition-label",
|
|
1925
2194
|
value: advancedFilter.condition,
|
|
1926
2195
|
label: "Filter condition *",
|
|
1927
2196
|
onChange: handleCondChange,
|
|
1928
|
-
children: conditionOptions.map((opt) => /* @__PURE__ */
|
|
2197
|
+
children: conditionOptions.map((opt) => /* @__PURE__ */ jsx23(MenuItem2, { value: opt.value, children: opt.label }, opt.value))
|
|
1929
2198
|
}
|
|
1930
2199
|
)
|
|
1931
2200
|
] }),
|
|
1932
|
-
/* @__PURE__ */
|
|
2201
|
+
/* @__PURE__ */ jsx23(
|
|
1933
2202
|
TextField,
|
|
1934
2203
|
{
|
|
1935
2204
|
size: "small",
|
|
@@ -1941,8 +2210,8 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
1941
2210
|
}
|
|
1942
2211
|
)
|
|
1943
2212
|
] }),
|
|
1944
|
-
/* @__PURE__ */
|
|
1945
|
-
|
|
2213
|
+
/* @__PURE__ */ jsx23(Box6, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx23(
|
|
2214
|
+
Button2,
|
|
1946
2215
|
{
|
|
1947
2216
|
variant: "contained",
|
|
1948
2217
|
onClick: handleAdvancedSearch,
|
|
@@ -1963,21 +2232,21 @@ var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
|
|
|
1963
2232
|
import TextField2 from "@mui/material/TextField";
|
|
1964
2233
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
1965
2234
|
import { Search as Search2 } from "@wso2/oxygen-ui-icons-react";
|
|
1966
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1967
2236
|
function SearchBar(_a) {
|
|
1968
2237
|
var _b = _a, {
|
|
1969
2238
|
placeholder = "Search"
|
|
1970
2239
|
} = _b, props = __objRest(_b, [
|
|
1971
2240
|
"placeholder"
|
|
1972
2241
|
]);
|
|
1973
|
-
return /* @__PURE__ */
|
|
2242
|
+
return /* @__PURE__ */ jsx24(
|
|
1974
2243
|
TextField2,
|
|
1975
2244
|
__spreadProps(__spreadValues({}, props), {
|
|
1976
2245
|
placeholder,
|
|
1977
2246
|
variant: "outlined",
|
|
1978
2247
|
slotProps: {
|
|
1979
2248
|
input: {
|
|
1980
|
-
startAdornment: /* @__PURE__ */
|
|
2249
|
+
startAdornment: /* @__PURE__ */ jsx24(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx24(Search2, { fontSize: "small" }) })
|
|
1981
2250
|
}
|
|
1982
2251
|
}
|
|
1983
2252
|
})
|
|
@@ -1986,17 +2255,17 @@ function SearchBar(_a) {
|
|
|
1986
2255
|
var SearchBar_default = SearchBar;
|
|
1987
2256
|
|
|
1988
2257
|
// src/components/Header/Header.tsx
|
|
1989
|
-
import * as
|
|
2258
|
+
import * as React7 from "react";
|
|
1990
2259
|
import AppBar from "@mui/material/AppBar";
|
|
1991
2260
|
import Toolbar from "@mui/material/Toolbar";
|
|
1992
2261
|
import Box11 from "@mui/material/Box";
|
|
1993
|
-
import { styled as
|
|
2262
|
+
import { styled as styled21 } from "@mui/material/styles";
|
|
1994
2263
|
|
|
1995
2264
|
// src/components/Header/context.ts
|
|
1996
|
-
import * as
|
|
1997
|
-
var HeaderContext =
|
|
2265
|
+
import * as React6 from "react";
|
|
2266
|
+
var HeaderContext = React6.createContext(null);
|
|
1998
2267
|
var useHeader = () => {
|
|
1999
|
-
const context =
|
|
2268
|
+
const context = React6.useContext(HeaderContext);
|
|
2000
2269
|
if (!context) {
|
|
2001
2270
|
throw new Error("Header compound components must be used within Header");
|
|
2002
2271
|
}
|
|
@@ -2006,10 +2275,10 @@ var useHeader = () => {
|
|
|
2006
2275
|
// src/components/Header/HeaderToggle.tsx
|
|
2007
2276
|
import IconButton3 from "@mui/material/IconButton";
|
|
2008
2277
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
2009
|
-
import { styled as
|
|
2278
|
+
import { styled as styled15 } from "@mui/material/styles";
|
|
2010
2279
|
import { Menu } from "@wso2/oxygen-ui-icons-react";
|
|
2011
|
-
import { jsx as
|
|
2012
|
-
var HeaderToggleRoot =
|
|
2280
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2281
|
+
var HeaderToggleRoot = styled15(IconButton3, {
|
|
2013
2282
|
name: "MuiHeader",
|
|
2014
2283
|
slot: "Toggle"
|
|
2015
2284
|
})(({ theme }) => ({
|
|
@@ -2024,18 +2293,18 @@ var HeaderToggle = ({
|
|
|
2024
2293
|
collapseIcon,
|
|
2025
2294
|
sx
|
|
2026
2295
|
}) => {
|
|
2027
|
-
return /* @__PURE__ */
|
|
2296
|
+
return /* @__PURE__ */ jsx25(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx25(HeaderToggleRoot, { onClick: onToggle, size: "small", sx, children: collapsed ? expandIcon || /* @__PURE__ */ jsx25(Menu, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx25(Menu, { size: 20 }) }) });
|
|
2028
2297
|
};
|
|
2029
2298
|
|
|
2030
2299
|
// src/components/Header/HeaderBrand.tsx
|
|
2031
2300
|
import Box8 from "@mui/material/Box";
|
|
2032
|
-
import { styled as
|
|
2301
|
+
import { styled as styled18 } from "@mui/material/styles";
|
|
2033
2302
|
|
|
2034
2303
|
// src/components/Header/HeaderBrandLogo.tsx
|
|
2035
2304
|
import Box7 from "@mui/material/Box";
|
|
2036
|
-
import { styled as
|
|
2037
|
-
import { jsx as
|
|
2038
|
-
var HeaderBrandLogoRoot =
|
|
2305
|
+
import { styled as styled16 } from "@mui/material/styles";
|
|
2306
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2307
|
+
var HeaderBrandLogoRoot = styled16(Box7, {
|
|
2039
2308
|
name: "MuiHeader",
|
|
2040
2309
|
slot: "BrandLogo"
|
|
2041
2310
|
})({
|
|
@@ -2046,15 +2315,15 @@ var HeaderBrandLogo = ({
|
|
|
2046
2315
|
children,
|
|
2047
2316
|
sx
|
|
2048
2317
|
}) => {
|
|
2049
|
-
return /* @__PURE__ */
|
|
2318
|
+
return /* @__PURE__ */ jsx26(HeaderBrandLogoRoot, { sx, children });
|
|
2050
2319
|
};
|
|
2051
2320
|
HeaderBrandLogo.displayName = "HeaderBrandLogo";
|
|
2052
2321
|
|
|
2053
2322
|
// src/components/Header/HeaderBrandTitle.tsx
|
|
2054
|
-
import
|
|
2055
|
-
import { styled as
|
|
2056
|
-
import { jsx as
|
|
2057
|
-
var HeaderBrandTitleRoot =
|
|
2323
|
+
import Typography6 from "@mui/material/Typography";
|
|
2324
|
+
import { styled as styled17 } from "@mui/material/styles";
|
|
2325
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2326
|
+
var HeaderBrandTitleRoot = styled17(Typography6, {
|
|
2058
2327
|
name: "MuiHeader",
|
|
2059
2328
|
slot: "BrandTitle"
|
|
2060
2329
|
})(({ theme }) => ({
|
|
@@ -2071,13 +2340,13 @@ var HeaderBrandTitle = ({
|
|
|
2071
2340
|
children,
|
|
2072
2341
|
sx
|
|
2073
2342
|
}) => {
|
|
2074
|
-
return /* @__PURE__ */
|
|
2343
|
+
return /* @__PURE__ */ jsx27(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
|
|
2075
2344
|
};
|
|
2076
2345
|
HeaderBrandTitle.displayName = "HeaderBrandTitle";
|
|
2077
2346
|
|
|
2078
2347
|
// src/components/Header/HeaderBrand.tsx
|
|
2079
|
-
import { jsx as
|
|
2080
|
-
var HeaderBrandRoot =
|
|
2348
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2349
|
+
var HeaderBrandRoot = styled18(Box8, {
|
|
2081
2350
|
name: "MuiHeader",
|
|
2082
2351
|
slot: "Brand",
|
|
2083
2352
|
shouldForwardProp: (prop) => prop !== "clickable"
|
|
@@ -2092,16 +2361,16 @@ var HeaderBrand = ({
|
|
|
2092
2361
|
children,
|
|
2093
2362
|
sx
|
|
2094
2363
|
}) => {
|
|
2095
|
-
return /* @__PURE__ */
|
|
2364
|
+
return /* @__PURE__ */ jsx28(HeaderBrandRoot, { onClick, clickable: !!onClick, sx, children });
|
|
2096
2365
|
};
|
|
2097
2366
|
HeaderBrand.displayName = "HeaderBrand";
|
|
2098
2367
|
|
|
2099
2368
|
// src/components/Header/HeaderSwitchers.tsx
|
|
2100
2369
|
import Box9 from "@mui/material/Box";
|
|
2101
2370
|
import Divider2 from "@mui/material/Divider";
|
|
2102
|
-
import { styled as
|
|
2103
|
-
import { jsx as
|
|
2104
|
-
var HeaderSwitchersRoot =
|
|
2371
|
+
import { styled as styled19 } from "@mui/material/styles";
|
|
2372
|
+
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2373
|
+
var HeaderSwitchersRoot = styled19(Box9, {
|
|
2105
2374
|
name: "MuiHeader",
|
|
2106
2375
|
slot: "Switchers"
|
|
2107
2376
|
})(({ theme }) => ({
|
|
@@ -2113,7 +2382,7 @@ var HeaderSwitchersRoot = styled17(Box9, {
|
|
|
2113
2382
|
display: "flex"
|
|
2114
2383
|
}
|
|
2115
2384
|
}));
|
|
2116
|
-
var HeaderSwitchersDivider =
|
|
2385
|
+
var HeaderSwitchersDivider = styled19(Divider2, {
|
|
2117
2386
|
name: "MuiHeader",
|
|
2118
2387
|
slot: "SwitchersDivider"
|
|
2119
2388
|
})(({ theme }) => ({
|
|
@@ -2129,17 +2398,17 @@ var HeaderSwitchers = ({
|
|
|
2129
2398
|
if (minimal) {
|
|
2130
2399
|
return null;
|
|
2131
2400
|
}
|
|
2132
|
-
return /* @__PURE__ */
|
|
2133
|
-
showDivider && /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsxs9(HeaderSwitchersRoot, { sx, children: [
|
|
2402
|
+
showDivider && /* @__PURE__ */ jsx29(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
|
|
2134
2403
|
children
|
|
2135
2404
|
] });
|
|
2136
2405
|
};
|
|
2137
2406
|
|
|
2138
2407
|
// src/components/Header/HeaderActions.tsx
|
|
2139
2408
|
import Box10 from "@mui/material/Box";
|
|
2140
|
-
import { styled as
|
|
2141
|
-
import { jsx as
|
|
2142
|
-
var HeaderActionsRoot =
|
|
2409
|
+
import { styled as styled20 } from "@mui/material/styles";
|
|
2410
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2411
|
+
var HeaderActionsRoot = styled20(Box10, {
|
|
2143
2412
|
name: "MuiHeader",
|
|
2144
2413
|
slot: "Actions"
|
|
2145
2414
|
})(({ theme }) => ({
|
|
@@ -2151,19 +2420,19 @@ var HeaderActions = ({
|
|
|
2151
2420
|
children,
|
|
2152
2421
|
sx
|
|
2153
2422
|
}) => {
|
|
2154
|
-
return /* @__PURE__ */
|
|
2423
|
+
return /* @__PURE__ */ jsx30(HeaderActionsRoot, { sx, children });
|
|
2155
2424
|
};
|
|
2156
2425
|
|
|
2157
2426
|
// src/components/Header/Header.tsx
|
|
2158
|
-
import { jsx as
|
|
2159
|
-
var HeaderRootStyled =
|
|
2427
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2428
|
+
var HeaderRootStyled = styled21(AppBar, {
|
|
2160
2429
|
name: "MuiHeader",
|
|
2161
2430
|
slot: "Root"
|
|
2162
2431
|
})(({ theme }) => ({
|
|
2163
2432
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
2164
2433
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
2165
2434
|
}));
|
|
2166
|
-
var HeaderToolbar =
|
|
2435
|
+
var HeaderToolbar = styled21(Toolbar, {
|
|
2167
2436
|
name: "MuiHeader",
|
|
2168
2437
|
slot: "Toolbar"
|
|
2169
2438
|
})(({ theme }) => ({
|
|
@@ -2177,7 +2446,7 @@ var HeaderToolbar = styled19(Toolbar, {
|
|
|
2177
2446
|
paddingRight: theme.spacing(2)
|
|
2178
2447
|
}
|
|
2179
2448
|
}));
|
|
2180
|
-
var HeaderSpacerStyled =
|
|
2449
|
+
var HeaderSpacerStyled = styled21(Box11, {
|
|
2181
2450
|
name: "MuiHeader",
|
|
2182
2451
|
slot: "Spacer"
|
|
2183
2452
|
})({
|
|
@@ -2188,10 +2457,10 @@ var Header = ({
|
|
|
2188
2457
|
minimal = false,
|
|
2189
2458
|
sx
|
|
2190
2459
|
}) => {
|
|
2191
|
-
const contextValue =
|
|
2192
|
-
return /* @__PURE__ */
|
|
2460
|
+
const contextValue = React7.useMemo(() => ({ minimal }), [minimal]);
|
|
2461
|
+
return /* @__PURE__ */ jsx31(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx31(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx31(HeaderToolbar, { children }) }) });
|
|
2193
2462
|
};
|
|
2194
|
-
var HeaderSpacer = ({ sx }) => /* @__PURE__ */
|
|
2463
|
+
var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx31(HeaderSpacerStyled, { sx });
|
|
2195
2464
|
Header.Toggle = HeaderToggle;
|
|
2196
2465
|
Header.Brand = HeaderBrand;
|
|
2197
2466
|
Header.BrandLogo = HeaderBrandLogo;
|
|
@@ -2202,15 +2471,15 @@ Header.Spacer = HeaderSpacer;
|
|
|
2202
2471
|
Header.displayName = "Header";
|
|
2203
2472
|
|
|
2204
2473
|
// src/components/Sidebar/Sidebar.tsx
|
|
2205
|
-
import * as
|
|
2474
|
+
import * as React14 from "react";
|
|
2206
2475
|
import Box17 from "@mui/material/Box";
|
|
2207
|
-
import { styled as
|
|
2476
|
+
import { styled as styled34 } from "@mui/material/styles";
|
|
2208
2477
|
|
|
2209
2478
|
// src/components/Sidebar/context.ts
|
|
2210
|
-
import * as
|
|
2211
|
-
var SidebarContext =
|
|
2479
|
+
import * as React8 from "react";
|
|
2480
|
+
var SidebarContext = React8.createContext(null);
|
|
2212
2481
|
var useSidebar = () => {
|
|
2213
|
-
const context =
|
|
2482
|
+
const context = React8.useContext(SidebarContext);
|
|
2214
2483
|
if (!context) {
|
|
2215
2484
|
throw new Error("Sidebar compound components must be used within Sidebar");
|
|
2216
2485
|
}
|
|
@@ -2218,12 +2487,12 @@ var useSidebar = () => {
|
|
|
2218
2487
|
};
|
|
2219
2488
|
|
|
2220
2489
|
// src/components/Sidebar/SidebarNav.tsx
|
|
2221
|
-
import * as
|
|
2490
|
+
import * as React9 from "react";
|
|
2222
2491
|
import Box12 from "@mui/material/Box";
|
|
2223
2492
|
import Divider3 from "@mui/material/Divider";
|
|
2224
|
-
import { styled as
|
|
2225
|
-
import { jsx as
|
|
2226
|
-
var SidebarNavRoot =
|
|
2493
|
+
import { styled as styled22 } from "@mui/material/styles";
|
|
2494
|
+
import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2495
|
+
var SidebarNavRoot = styled22(Box12, {
|
|
2227
2496
|
name: "MuiSidebar",
|
|
2228
2497
|
slot: "Nav"
|
|
2229
2498
|
})(({ theme }) => ({
|
|
@@ -2243,7 +2512,7 @@ var SidebarNavRoot = styled20(Box12, {
|
|
|
2243
2512
|
backgroundColor: (theme.vars || theme).palette.action.active
|
|
2244
2513
|
}
|
|
2245
2514
|
}));
|
|
2246
|
-
var SidebarNavDivider =
|
|
2515
|
+
var SidebarNavDivider = styled22(Divider3, {
|
|
2247
2516
|
name: "MuiSidebar",
|
|
2248
2517
|
slot: "NavDivider"
|
|
2249
2518
|
})(({ theme }) => ({
|
|
@@ -2258,24 +2527,24 @@ var SidebarNav = ({
|
|
|
2258
2527
|
sx
|
|
2259
2528
|
}) => {
|
|
2260
2529
|
const { collapsed } = useSidebar();
|
|
2261
|
-
const childArray =
|
|
2262
|
-
return /* @__PURE__ */
|
|
2263
|
-
index > 0 && showDividers && !collapsed && /* @__PURE__ */
|
|
2530
|
+
const childArray = React9.Children.toArray(children);
|
|
2531
|
+
return /* @__PURE__ */ jsx32(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs10(React9.Fragment, { children: [
|
|
2532
|
+
index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx32(SidebarNavDivider, {}),
|
|
2264
2533
|
child
|
|
2265
2534
|
] }, index)) });
|
|
2266
2535
|
};
|
|
2267
2536
|
|
|
2268
2537
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
2269
|
-
import * as
|
|
2538
|
+
import * as React10 from "react";
|
|
2270
2539
|
import Box13 from "@mui/material/Box";
|
|
2271
2540
|
import List from "@mui/material/List";
|
|
2272
|
-
import { styled as
|
|
2541
|
+
import { styled as styled24 } from "@mui/material/styles";
|
|
2273
2542
|
|
|
2274
2543
|
// src/components/Sidebar/SidebarCategoryLabel.tsx
|
|
2275
|
-
import
|
|
2276
|
-
import { styled as
|
|
2277
|
-
import { jsx as
|
|
2278
|
-
var SidebarCategoryLabelRoot =
|
|
2544
|
+
import Typography7 from "@mui/material/Typography";
|
|
2545
|
+
import { styled as styled23 } from "@mui/material/styles";
|
|
2546
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2547
|
+
var SidebarCategoryLabelRoot = styled23(Typography7, {
|
|
2279
2548
|
name: "MuiSidebar",
|
|
2280
2549
|
slot: "CategoryLabel",
|
|
2281
2550
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -2300,13 +2569,13 @@ var SidebarCategoryLabelRoot = styled21(Typography6, {
|
|
|
2300
2569
|
}));
|
|
2301
2570
|
var SidebarCategoryLabel = ({ children, sx }) => {
|
|
2302
2571
|
const { collapsed } = useSidebar();
|
|
2303
|
-
return /* @__PURE__ */
|
|
2572
|
+
return /* @__PURE__ */ jsx33(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
|
|
2304
2573
|
};
|
|
2305
2574
|
SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
|
|
2306
2575
|
|
|
2307
2576
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
2308
|
-
import { jsx as
|
|
2309
|
-
var SidebarCategoryRoot =
|
|
2577
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2578
|
+
var SidebarCategoryRoot = styled24(Box13, {
|
|
2310
2579
|
name: "MuiSidebar",
|
|
2311
2580
|
slot: "Category"
|
|
2312
2581
|
})(({ theme }) => ({
|
|
@@ -2315,9 +2584,9 @@ var SidebarCategoryRoot = styled22(Box13, {
|
|
|
2315
2584
|
var separateChildren = (children) => {
|
|
2316
2585
|
let labelChild = null;
|
|
2317
2586
|
const otherChildren = [];
|
|
2318
|
-
|
|
2587
|
+
React10.Children.forEach(children, (child) => {
|
|
2319
2588
|
var _a;
|
|
2320
|
-
if (
|
|
2589
|
+
if (React10.isValidElement(child)) {
|
|
2321
2590
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2322
2591
|
if (displayName === "SidebarCategoryLabel") {
|
|
2323
2592
|
labelChild = child;
|
|
@@ -2335,15 +2604,15 @@ var SidebarCategory = ({
|
|
|
2335
2604
|
sx
|
|
2336
2605
|
}) => {
|
|
2337
2606
|
const { labelChild, otherChildren } = separateChildren(children);
|
|
2338
|
-
return /* @__PURE__ */
|
|
2607
|
+
return /* @__PURE__ */ jsxs11(SidebarCategoryRoot, { sx, children: [
|
|
2339
2608
|
labelChild,
|
|
2340
|
-
/* @__PURE__ */
|
|
2609
|
+
/* @__PURE__ */ jsx34(List, { disablePadding: true, children: otherChildren })
|
|
2341
2610
|
] });
|
|
2342
2611
|
};
|
|
2343
2612
|
SidebarCategory.displayName = "SidebarCategory";
|
|
2344
2613
|
|
|
2345
2614
|
// src/components/Sidebar/SidebarItem.tsx
|
|
2346
|
-
import * as
|
|
2615
|
+
import * as React12 from "react";
|
|
2347
2616
|
import Box14 from "@mui/material/Box";
|
|
2348
2617
|
import List2 from "@mui/material/List";
|
|
2349
2618
|
import ListItem from "@mui/material/ListItem";
|
|
@@ -2353,15 +2622,15 @@ import ListItemText2 from "@mui/material/ListItemText";
|
|
|
2353
2622
|
import Collapse from "@mui/material/Collapse";
|
|
2354
2623
|
import Tooltip3 from "@mui/material/Tooltip";
|
|
2355
2624
|
import Popover2 from "@mui/material/Popover";
|
|
2356
|
-
import { styled as
|
|
2625
|
+
import { styled as styled28 } from "@mui/material/styles";
|
|
2357
2626
|
import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
|
|
2358
2627
|
|
|
2359
2628
|
// src/components/Sidebar/SidebarItemContext.tsx
|
|
2360
|
-
import * as
|
|
2361
|
-
import { jsx as
|
|
2362
|
-
var SidebarItemContext =
|
|
2629
|
+
import * as React11 from "react";
|
|
2630
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2631
|
+
var SidebarItemContext = React11.createContext(null);
|
|
2363
2632
|
var useSidebarItemContext = () => {
|
|
2364
|
-
const context =
|
|
2633
|
+
const context = React11.useContext(SidebarItemContext);
|
|
2365
2634
|
if (!context) {
|
|
2366
2635
|
throw new Error(
|
|
2367
2636
|
"useSidebarItemContext must be used within a SidebarItem component"
|
|
@@ -2370,14 +2639,14 @@ var useSidebarItemContext = () => {
|
|
|
2370
2639
|
return context;
|
|
2371
2640
|
};
|
|
2372
2641
|
var SidebarItemProvider = ({ value, children }) => {
|
|
2373
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ jsx35(SidebarItemContext.Provider, { value, children });
|
|
2374
2643
|
};
|
|
2375
2644
|
|
|
2376
2645
|
// src/components/Sidebar/SidebarItemIcon.tsx
|
|
2377
2646
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
2378
|
-
import { styled as
|
|
2379
|
-
import { jsx as
|
|
2380
|
-
var SidebarItemIconRoot =
|
|
2647
|
+
import { styled as styled25 } from "@mui/material/styles";
|
|
2648
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2649
|
+
var SidebarItemIconRoot = styled25(ListItemIcon, {
|
|
2381
2650
|
name: "MuiSidebar",
|
|
2382
2651
|
slot: "ItemIcon",
|
|
2383
2652
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -2393,7 +2662,7 @@ var SidebarItemIcon = ({
|
|
|
2393
2662
|
}) => {
|
|
2394
2663
|
const { collapsed } = useSidebar();
|
|
2395
2664
|
const { isActive } = useSidebarItemContext();
|
|
2396
|
-
return /* @__PURE__ */
|
|
2665
|
+
return /* @__PURE__ */ jsx36(
|
|
2397
2666
|
SidebarItemIconRoot,
|
|
2398
2667
|
{
|
|
2399
2668
|
ownerState: { collapsed, isActive },
|
|
@@ -2406,9 +2675,9 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
|
|
|
2406
2675
|
|
|
2407
2676
|
// src/components/Sidebar/SidebarItemLabel.tsx
|
|
2408
2677
|
import ListItemText from "@mui/material/ListItemText";
|
|
2409
|
-
import { styled as
|
|
2410
|
-
import { jsx as
|
|
2411
|
-
var SidebarItemLabelRoot =
|
|
2678
|
+
import { styled as styled26 } from "@mui/material/styles";
|
|
2679
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2680
|
+
var SidebarItemLabelRoot = styled26(ListItemText, {
|
|
2412
2681
|
name: "MuiSidebar",
|
|
2413
2682
|
slot: "ItemLabel",
|
|
2414
2683
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -2433,15 +2702,15 @@ var SidebarItemLabel = ({
|
|
|
2433
2702
|
}) => {
|
|
2434
2703
|
const { collapsed } = useSidebar();
|
|
2435
2704
|
const { isActive } = useSidebarItemContext();
|
|
2436
|
-
return /* @__PURE__ */
|
|
2705
|
+
return /* @__PURE__ */ jsx37(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
|
|
2437
2706
|
};
|
|
2438
2707
|
SidebarItemLabel.displayName = "SidebarItemLabel";
|
|
2439
2708
|
|
|
2440
2709
|
// src/components/Sidebar/SidebarItemBadge.tsx
|
|
2441
2710
|
import Chip from "@mui/material/Chip";
|
|
2442
|
-
import { styled as
|
|
2443
|
-
import { jsx as
|
|
2444
|
-
var SidebarItemBadgeRoot =
|
|
2711
|
+
import { styled as styled27 } from "@mui/material/styles";
|
|
2712
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2713
|
+
var SidebarItemBadgeRoot = styled27(Chip, {
|
|
2445
2714
|
name: "MuiSidebar",
|
|
2446
2715
|
slot: "ItemBadge"
|
|
2447
2716
|
})({
|
|
@@ -2458,20 +2727,20 @@ var SidebarItemBadge = ({
|
|
|
2458
2727
|
if (collapsed) {
|
|
2459
2728
|
return null;
|
|
2460
2729
|
}
|
|
2461
|
-
return /* @__PURE__ */
|
|
2730
|
+
return /* @__PURE__ */ jsx38(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
|
|
2462
2731
|
};
|
|
2463
2732
|
SidebarItemBadge.displayName = "SidebarItemBadge";
|
|
2464
2733
|
|
|
2465
2734
|
// src/components/Sidebar/SidebarItem.tsx
|
|
2466
|
-
import { Fragment as Fragment5, jsx as
|
|
2467
|
-
var SidebarItemRoot =
|
|
2735
|
+
import { Fragment as Fragment5, jsx as jsx39, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2736
|
+
var SidebarItemRoot = styled28(ListItem, {
|
|
2468
2737
|
name: "MuiSidebar",
|
|
2469
2738
|
slot: "Item"
|
|
2470
2739
|
})({
|
|
2471
2740
|
display: "block",
|
|
2472
2741
|
padding: 0
|
|
2473
2742
|
});
|
|
2474
|
-
var SidebarItemButton =
|
|
2743
|
+
var SidebarItemButton = styled28(ListItemButton, {
|
|
2475
2744
|
name: "MuiSidebar",
|
|
2476
2745
|
slot: "ItemButton",
|
|
2477
2746
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -2494,7 +2763,7 @@ var SidebarItemButton = styled26(ListItemButton, {
|
|
|
2494
2763
|
}
|
|
2495
2764
|
}
|
|
2496
2765
|
}));
|
|
2497
|
-
var SidebarItemChevron =
|
|
2766
|
+
var SidebarItemChevron = styled28(Box14, {
|
|
2498
2767
|
name: "MuiSidebar",
|
|
2499
2768
|
slot: "ItemChevron"
|
|
2500
2769
|
})({
|
|
@@ -2503,20 +2772,20 @@ var SidebarItemChevron = styled26(Box14, {
|
|
|
2503
2772
|
display: "flex",
|
|
2504
2773
|
alignItems: "center"
|
|
2505
2774
|
});
|
|
2506
|
-
var SidebarItemPopover =
|
|
2775
|
+
var SidebarItemPopover = styled28(Popover2, {
|
|
2507
2776
|
name: "MuiSidebar",
|
|
2508
2777
|
slot: "ItemPopover"
|
|
2509
2778
|
})({
|
|
2510
2779
|
pointerEvents: "none"
|
|
2511
2780
|
});
|
|
2512
|
-
var SidebarItemPopoverList =
|
|
2781
|
+
var SidebarItemPopoverList = styled28(List2, {
|
|
2513
2782
|
name: "MuiSidebar",
|
|
2514
2783
|
slot: "ItemPopoverList"
|
|
2515
2784
|
})(({ theme }) => ({
|
|
2516
2785
|
padding: theme.spacing(0.5),
|
|
2517
2786
|
pointerEvents: "auto"
|
|
2518
2787
|
}));
|
|
2519
|
-
var SidebarItemPopoverButton =
|
|
2788
|
+
var SidebarItemPopoverButton = styled28(ListItemButton, {
|
|
2520
2789
|
name: "MuiSidebar",
|
|
2521
2790
|
slot: "ItemPopoverButton"
|
|
2522
2791
|
})(({ theme }) => ({
|
|
@@ -2540,9 +2809,9 @@ var CHILD_DISPLAY_NAMES = [
|
|
|
2540
2809
|
var separateChildren2 = (children) => {
|
|
2541
2810
|
const composableChildren = [];
|
|
2542
2811
|
const nestedItems = [];
|
|
2543
|
-
|
|
2812
|
+
React12.Children.toArray(children).forEach((child) => {
|
|
2544
2813
|
var _a;
|
|
2545
|
-
if (
|
|
2814
|
+
if (React12.isValidElement(child)) {
|
|
2546
2815
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2547
2816
|
if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
|
|
2548
2817
|
composableChildren.push(child);
|
|
@@ -2557,9 +2826,9 @@ var separateChildren2 = (children) => {
|
|
|
2557
2826
|
};
|
|
2558
2827
|
var getTooltipLabel = (children) => {
|
|
2559
2828
|
let tooltipLabel = "";
|
|
2560
|
-
|
|
2829
|
+
React12.Children.forEach(children, (child) => {
|
|
2561
2830
|
var _a;
|
|
2562
|
-
if (
|
|
2831
|
+
if (React12.isValidElement(child)) {
|
|
2563
2832
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2564
2833
|
const props = child.props;
|
|
2565
2834
|
if (displayName === "SidebarItemLabel" && props.children) {
|
|
@@ -2572,9 +2841,9 @@ var getTooltipLabel = (children) => {
|
|
|
2572
2841
|
var extractItemContent = (itemChildren) => {
|
|
2573
2842
|
let icon = null;
|
|
2574
2843
|
let label = "";
|
|
2575
|
-
|
|
2844
|
+
React12.Children.forEach(itemChildren, (child) => {
|
|
2576
2845
|
var _a;
|
|
2577
|
-
if (
|
|
2846
|
+
if (React12.isValidElement(child)) {
|
|
2578
2847
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2579
2848
|
const props = child.props;
|
|
2580
2849
|
if (displayName === "SidebarItemIcon") {
|
|
@@ -2597,16 +2866,16 @@ var SidebarItem = ({
|
|
|
2597
2866
|
const hasNestedItems = nestedItems.length > 0;
|
|
2598
2867
|
const isActive = activeItem === id;
|
|
2599
2868
|
const isExpanded = expandedMenus[id] || false;
|
|
2600
|
-
const hasActiveChild =
|
|
2869
|
+
const hasActiveChild = React12.useMemo(() => {
|
|
2601
2870
|
if (!hasNestedItems || !activeItem) return false;
|
|
2602
2871
|
return nestedItems.some((child) => {
|
|
2603
|
-
if (
|
|
2872
|
+
if (React12.isValidElement(child)) {
|
|
2604
2873
|
return child.props.id === activeItem;
|
|
2605
2874
|
}
|
|
2606
2875
|
return false;
|
|
2607
2876
|
});
|
|
2608
2877
|
}, [hasNestedItems, nestedItems, activeItem]);
|
|
2609
|
-
const [popoverAnchor, setPopoverAnchor] =
|
|
2878
|
+
const [popoverAnchor, setPopoverAnchor] = React12.useState(null);
|
|
2610
2879
|
const popoverOpen = Boolean(popoverAnchor);
|
|
2611
2880
|
const contextValue = {
|
|
2612
2881
|
id,
|
|
@@ -2633,17 +2902,17 @@ var SidebarItem = ({
|
|
|
2633
2902
|
const tooltipLabel = getTooltipLabel(children);
|
|
2634
2903
|
const ownerState = { collapsed, depth };
|
|
2635
2904
|
const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
|
|
2636
|
-
const buttonContent = /* @__PURE__ */
|
|
2905
|
+
const buttonContent = /* @__PURE__ */ jsx39(
|
|
2637
2906
|
SidebarItemButton,
|
|
2638
2907
|
{
|
|
2639
2908
|
selected: shouldShowSelected,
|
|
2640
2909
|
onClick: handleClick,
|
|
2641
2910
|
ownerState,
|
|
2642
2911
|
sx,
|
|
2643
|
-
children: /* @__PURE__ */
|
|
2912
|
+
children: /* @__PURE__ */ jsxs12(SidebarItemProvider, { value: contextValue, children: [
|
|
2644
2913
|
composableChildren,
|
|
2645
|
-
!collapsed && hasNestedItems && /* @__PURE__ */
|
|
2646
|
-
!collapsed && !hasNestedItems && /* @__PURE__ */
|
|
2914
|
+
!collapsed && hasNestedItems && /* @__PURE__ */ jsx39(SidebarItemChevron, { children: isExpanded ? /* @__PURE__ */ jsx39(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx39(ChevronDown2, { size: 16 }) }),
|
|
2915
|
+
!collapsed && !hasNestedItems && /* @__PURE__ */ jsx39(Box14, { sx: { ml: "auto", width: 16, pl: 1 } })
|
|
2647
2916
|
] })
|
|
2648
2917
|
}
|
|
2649
2918
|
);
|
|
@@ -2652,8 +2921,8 @@ var SidebarItem = ({
|
|
|
2652
2921
|
onSelect == null ? void 0 : onSelect(itemId);
|
|
2653
2922
|
setPopoverAnchor(null);
|
|
2654
2923
|
};
|
|
2655
|
-
return /* @__PURE__ */
|
|
2656
|
-
/* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
2925
|
+
/* @__PURE__ */ jsx39(
|
|
2657
2926
|
SidebarItemRoot,
|
|
2658
2927
|
{
|
|
2659
2928
|
disablePadding: true,
|
|
@@ -2661,11 +2930,11 @@ var SidebarItem = ({
|
|
|
2661
2930
|
onMouseLeave: handleMouseLeave,
|
|
2662
2931
|
children: collapsed ? (
|
|
2663
2932
|
// When collapsed: show tooltip only for items without nested children
|
|
2664
|
-
collapsedWithNested ? buttonContent : /* @__PURE__ */
|
|
2933
|
+
collapsedWithNested ? buttonContent : /* @__PURE__ */ jsx39(Tooltip3, { title: tooltipLabel, placement: "right", arrow: true, children: buttonContent })
|
|
2665
2934
|
) : buttonContent
|
|
2666
2935
|
}
|
|
2667
2936
|
),
|
|
2668
|
-
collapsedWithNested && /* @__PURE__ */
|
|
2937
|
+
collapsedWithNested && /* @__PURE__ */ jsx39(
|
|
2669
2938
|
SidebarItemPopover,
|
|
2670
2939
|
{
|
|
2671
2940
|
open: popoverOpen,
|
|
@@ -2680,19 +2949,19 @@ var SidebarItem = ({
|
|
|
2680
2949
|
onMouseLeave: handleMouseLeave
|
|
2681
2950
|
}
|
|
2682
2951
|
},
|
|
2683
|
-
children: /* @__PURE__ */
|
|
2684
|
-
if (
|
|
2952
|
+
children: /* @__PURE__ */ jsx39(SidebarItemPopoverList, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
2953
|
+
if (React12.isValidElement(child)) {
|
|
2685
2954
|
const childProps = child.props;
|
|
2686
2955
|
const { icon, label } = extractItemContent(childProps.children);
|
|
2687
2956
|
const isItemActive = activeItem === childProps.id;
|
|
2688
|
-
return /* @__PURE__ */
|
|
2957
|
+
return /* @__PURE__ */ jsxs12(
|
|
2689
2958
|
SidebarItemPopoverButton,
|
|
2690
2959
|
{
|
|
2691
2960
|
selected: isItemActive,
|
|
2692
2961
|
onClick: () => handlePopoverItemClick(childProps.id),
|
|
2693
2962
|
children: [
|
|
2694
|
-
icon && /* @__PURE__ */
|
|
2695
|
-
/* @__PURE__ */
|
|
2963
|
+
icon && /* @__PURE__ */ jsx39(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
|
|
2964
|
+
/* @__PURE__ */ jsx39(ListItemText2, { primary: label })
|
|
2696
2965
|
]
|
|
2697
2966
|
},
|
|
2698
2967
|
childProps.id || index
|
|
@@ -2702,9 +2971,9 @@ var SidebarItem = ({
|
|
|
2702
2971
|
}) })
|
|
2703
2972
|
}
|
|
2704
2973
|
),
|
|
2705
|
-
hasNestedItems && !collapsed && /* @__PURE__ */
|
|
2706
|
-
if (
|
|
2707
|
-
return
|
|
2974
|
+
hasNestedItems && !collapsed && /* @__PURE__ */ jsx39(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx39(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
2975
|
+
if (React12.isValidElement(child)) {
|
|
2976
|
+
return React12.cloneElement(child, {
|
|
2708
2977
|
key: child.key || index,
|
|
2709
2978
|
depth: depth + 1
|
|
2710
2979
|
});
|
|
@@ -2718,9 +2987,9 @@ SidebarItem.displayName = "SidebarItem";
|
|
|
2718
2987
|
// src/components/Sidebar/SidebarFooter.tsx
|
|
2719
2988
|
import Box15 from "@mui/material/Box";
|
|
2720
2989
|
import Divider4 from "@mui/material/Divider";
|
|
2721
|
-
import { styled as
|
|
2722
|
-
import { Fragment as Fragment6, jsx as
|
|
2723
|
-
var SidebarFooterRoot =
|
|
2990
|
+
import { styled as styled29 } from "@mui/material/styles";
|
|
2991
|
+
import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2992
|
+
var SidebarFooterRoot = styled29(Box15, {
|
|
2724
2993
|
name: "MuiSidebar",
|
|
2725
2994
|
slot: "Footer"
|
|
2726
2995
|
})(({ theme }) => ({
|
|
@@ -2732,25 +3001,25 @@ var SidebarFooter = ({
|
|
|
2732
3001
|
showDivider = true,
|
|
2733
3002
|
sx
|
|
2734
3003
|
}) => {
|
|
2735
|
-
return /* @__PURE__ */
|
|
2736
|
-
showDivider && /* @__PURE__ */
|
|
2737
|
-
/* @__PURE__ */
|
|
3004
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
3005
|
+
showDivider && /* @__PURE__ */ jsx40(Divider4, {}),
|
|
3006
|
+
/* @__PURE__ */ jsx40(SidebarFooterRoot, { sx, children })
|
|
2738
3007
|
] });
|
|
2739
3008
|
};
|
|
2740
3009
|
|
|
2741
3010
|
// src/components/Sidebar/SidebarUser.tsx
|
|
2742
|
-
import * as
|
|
3011
|
+
import * as React13 from "react";
|
|
2743
3012
|
import Box16 from "@mui/material/Box";
|
|
2744
3013
|
import ListItemButton2 from "@mui/material/ListItemButton";
|
|
2745
3014
|
import Tooltip4 from "@mui/material/Tooltip";
|
|
2746
3015
|
import Divider5 from "@mui/material/Divider";
|
|
2747
|
-
import { styled as
|
|
3016
|
+
import { styled as styled33 } from "@mui/material/styles";
|
|
2748
3017
|
|
|
2749
3018
|
// src/components/Sidebar/SidebarUserAvatar.tsx
|
|
2750
3019
|
import Avatar2 from "@mui/material/Avatar";
|
|
2751
|
-
import { styled as
|
|
2752
|
-
import { jsx as
|
|
2753
|
-
var SidebarUserAvatarRoot =
|
|
3020
|
+
import { styled as styled30 } from "@mui/material/styles";
|
|
3021
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3022
|
+
var SidebarUserAvatarRoot = styled30(Avatar2, {
|
|
2754
3023
|
name: "MuiSidebar",
|
|
2755
3024
|
slot: "UserAvatar"
|
|
2756
3025
|
})(({ theme }) => ({
|
|
@@ -2766,15 +3035,15 @@ var SidebarUserAvatar = ({
|
|
|
2766
3035
|
alt,
|
|
2767
3036
|
sx
|
|
2768
3037
|
}) => {
|
|
2769
|
-
return /* @__PURE__ */
|
|
3038
|
+
return /* @__PURE__ */ jsx41(SidebarUserAvatarRoot, { src, alt, sx, children });
|
|
2770
3039
|
};
|
|
2771
3040
|
SidebarUserAvatar.displayName = "SidebarUserAvatar";
|
|
2772
3041
|
|
|
2773
3042
|
// src/components/Sidebar/SidebarUserName.tsx
|
|
2774
|
-
import
|
|
2775
|
-
import { styled as
|
|
2776
|
-
import { jsx as
|
|
2777
|
-
var SidebarUserNameRoot =
|
|
3043
|
+
import Typography8 from "@mui/material/Typography";
|
|
3044
|
+
import { styled as styled31 } from "@mui/material/styles";
|
|
3045
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3046
|
+
var SidebarUserNameRoot = styled31(Typography8, {
|
|
2778
3047
|
name: "MuiSidebar",
|
|
2779
3048
|
slot: "UserName"
|
|
2780
3049
|
})({
|
|
@@ -2791,15 +3060,15 @@ var SidebarUserName = ({
|
|
|
2791
3060
|
if (collapsed) {
|
|
2792
3061
|
return null;
|
|
2793
3062
|
}
|
|
2794
|
-
return /* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ jsx42(SidebarUserNameRoot, { variant: "body2", sx, children });
|
|
2795
3064
|
};
|
|
2796
3065
|
SidebarUserName.displayName = "SidebarUserName";
|
|
2797
3066
|
|
|
2798
3067
|
// src/components/Sidebar/SidebarUserEmail.tsx
|
|
2799
|
-
import
|
|
2800
|
-
import { styled as
|
|
2801
|
-
import { jsx as
|
|
2802
|
-
var SidebarUserEmailRoot =
|
|
3068
|
+
import Typography9 from "@mui/material/Typography";
|
|
3069
|
+
import { styled as styled32 } from "@mui/material/styles";
|
|
3070
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3071
|
+
var SidebarUserEmailRoot = styled32(Typography9, {
|
|
2803
3072
|
name: "MuiSidebar",
|
|
2804
3073
|
slot: "UserEmail"
|
|
2805
3074
|
})(({ theme }) => ({
|
|
@@ -2817,19 +3086,19 @@ var SidebarUserEmail = ({
|
|
|
2817
3086
|
if (collapsed) {
|
|
2818
3087
|
return null;
|
|
2819
3088
|
}
|
|
2820
|
-
return /* @__PURE__ */
|
|
3089
|
+
return /* @__PURE__ */ jsx43(SidebarUserEmailRoot, { variant: "caption", sx, children });
|
|
2821
3090
|
};
|
|
2822
3091
|
SidebarUserEmail.displayName = "SidebarUserEmail";
|
|
2823
3092
|
|
|
2824
3093
|
// src/components/Sidebar/SidebarUser.tsx
|
|
2825
|
-
import { Fragment as Fragment7, jsx as
|
|
2826
|
-
var SidebarUserRoot =
|
|
3094
|
+
import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3095
|
+
var SidebarUserRoot = styled33(Box16, {
|
|
2827
3096
|
name: "MuiSidebar",
|
|
2828
3097
|
slot: "User"
|
|
2829
3098
|
})(({ theme }) => ({
|
|
2830
3099
|
padding: theme.spacing(2)
|
|
2831
3100
|
}));
|
|
2832
|
-
var SidebarUserButton =
|
|
3101
|
+
var SidebarUserButton = styled33(ListItemButton2, {
|
|
2833
3102
|
name: "MuiSidebar",
|
|
2834
3103
|
slot: "UserButton",
|
|
2835
3104
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -2846,7 +3115,7 @@ var SidebarUserButton = styled31(ListItemButton2, {
|
|
|
2846
3115
|
duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
|
|
2847
3116
|
})
|
|
2848
3117
|
}));
|
|
2849
|
-
var SidebarUserTextContainer =
|
|
3118
|
+
var SidebarUserTextContainer = styled33(Box16, {
|
|
2850
3119
|
name: "MuiSidebar",
|
|
2851
3120
|
slot: "UserTextContainer",
|
|
2852
3121
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -2864,9 +3133,9 @@ var SidebarUserTextContainer = styled31(Box16, {
|
|
|
2864
3133
|
var separateChildren3 = (children) => {
|
|
2865
3134
|
let avatarChild = null;
|
|
2866
3135
|
const textChildren = [];
|
|
2867
|
-
|
|
3136
|
+
React13.Children.forEach(children, (child) => {
|
|
2868
3137
|
var _a;
|
|
2869
|
-
if (
|
|
3138
|
+
if (React13.isValidElement(child)) {
|
|
2870
3139
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2871
3140
|
if (displayName === "SidebarUserAvatar") {
|
|
2872
3141
|
avatarChild = child;
|
|
@@ -2879,9 +3148,9 @@ var separateChildren3 = (children) => {
|
|
|
2879
3148
|
};
|
|
2880
3149
|
var getTooltipText = (children) => {
|
|
2881
3150
|
let tooltipText = "";
|
|
2882
|
-
|
|
3151
|
+
React13.Children.forEach(children, (child) => {
|
|
2883
3152
|
var _a;
|
|
2884
|
-
if (
|
|
3153
|
+
if (React13.isValidElement(child)) {
|
|
2885
3154
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
2886
3155
|
const props = child.props;
|
|
2887
3156
|
if (displayName === "SidebarUserName" && props.children) {
|
|
@@ -2901,22 +3170,22 @@ var SidebarUser = ({
|
|
|
2901
3170
|
const { avatarChild, textChildren } = separateChildren3(children);
|
|
2902
3171
|
const tooltipText = getTooltipText(children);
|
|
2903
3172
|
const ownerState = { collapsed };
|
|
2904
|
-
const content = /* @__PURE__ */
|
|
3173
|
+
const content = /* @__PURE__ */ jsxs14(SidebarUserButton, { onClick, ownerState, children: [
|
|
2905
3174
|
avatarChild,
|
|
2906
|
-
/* @__PURE__ */
|
|
3175
|
+
/* @__PURE__ */ jsx44(SidebarUserTextContainer, { collapsed, children: textChildren })
|
|
2907
3176
|
] });
|
|
2908
|
-
return /* @__PURE__ */
|
|
2909
|
-
showDivider && /* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */
|
|
3177
|
+
return /* @__PURE__ */ jsxs14(Fragment7, { children: [
|
|
3178
|
+
showDivider && /* @__PURE__ */ jsx44(Divider5, {}),
|
|
3179
|
+
/* @__PURE__ */ jsx44(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx44(Tooltip4, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
|
|
2911
3180
|
] });
|
|
2912
3181
|
};
|
|
2913
3182
|
SidebarUser.displayName = "SidebarUser";
|
|
2914
3183
|
|
|
2915
3184
|
// src/components/Sidebar/Sidebar.tsx
|
|
2916
|
-
import { jsx as
|
|
3185
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2917
3186
|
var SIDEBAR_WIDTH = 250;
|
|
2918
3187
|
var COLLAPSED_SIDEBAR_WIDTH = 64;
|
|
2919
|
-
var SidebarRootStyled =
|
|
3188
|
+
var SidebarRootStyled = styled34(Box17, {
|
|
2920
3189
|
name: "MuiSidebar",
|
|
2921
3190
|
slot: "Root",
|
|
2922
3191
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -2931,7 +3200,13 @@ var SidebarRootStyled = styled32(Box17, {
|
|
|
2931
3200
|
height: "100%",
|
|
2932
3201
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
2933
3202
|
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
2934
|
-
overflow: "hidden"
|
|
3203
|
+
overflow: "hidden",
|
|
3204
|
+
"& a": {
|
|
3205
|
+
textDecoration: "none",
|
|
3206
|
+
"&:hover": {
|
|
3207
|
+
textDecoration: "none"
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
2935
3210
|
}));
|
|
2936
3211
|
var Sidebar = ({
|
|
2937
3212
|
collapsed = false,
|
|
@@ -2944,7 +3219,7 @@ var Sidebar = ({
|
|
|
2944
3219
|
collapsedWidth = COLLAPSED_SIDEBAR_WIDTH,
|
|
2945
3220
|
sx
|
|
2946
3221
|
}) => {
|
|
2947
|
-
const contextValue =
|
|
3222
|
+
const contextValue = React14.useMemo(
|
|
2948
3223
|
() => ({
|
|
2949
3224
|
collapsed,
|
|
2950
3225
|
activeItem,
|
|
@@ -2955,7 +3230,7 @@ var Sidebar = ({
|
|
|
2955
3230
|
[collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
|
|
2956
3231
|
);
|
|
2957
3232
|
const ownerState = { collapsed, width, collapsedWidth };
|
|
2958
|
-
return /* @__PURE__ */
|
|
3233
|
+
return /* @__PURE__ */ jsx45(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx45(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
|
|
2959
3234
|
};
|
|
2960
3235
|
Sidebar.Nav = SidebarNav;
|
|
2961
3236
|
Sidebar.Category = SidebarCategory;
|
|
@@ -2972,15 +3247,15 @@ Sidebar.UserEmail = SidebarUserEmail;
|
|
|
2972
3247
|
Sidebar.displayName = "Sidebar";
|
|
2973
3248
|
|
|
2974
3249
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
2975
|
-
import * as
|
|
3250
|
+
import * as React20 from "react";
|
|
2976
3251
|
import Drawer from "@mui/material/Drawer";
|
|
2977
|
-
import { styled as
|
|
3252
|
+
import { styled as styled50 } from "@mui/material/styles";
|
|
2978
3253
|
|
|
2979
3254
|
// src/components/NotificationPanel/context.ts
|
|
2980
|
-
import * as
|
|
2981
|
-
var NotificationPanelContext =
|
|
3255
|
+
import * as React15 from "react";
|
|
3256
|
+
var NotificationPanelContext = React15.createContext(null);
|
|
2982
3257
|
var useNotificationPanel = () => {
|
|
2983
|
-
const context =
|
|
3258
|
+
const context = React15.useContext(NotificationPanelContext);
|
|
2984
3259
|
if (!context) {
|
|
2985
3260
|
throw new Error(
|
|
2986
3261
|
"NotificationPanel compound components must be used within NotificationPanel"
|
|
@@ -2990,11 +3265,11 @@ var useNotificationPanel = () => {
|
|
|
2990
3265
|
};
|
|
2991
3266
|
|
|
2992
3267
|
// src/components/NotificationPanel/NotificationHeader.tsx
|
|
2993
|
-
import * as
|
|
3268
|
+
import * as React16 from "react";
|
|
2994
3269
|
import Box18 from "@mui/material/Box";
|
|
2995
|
-
import { styled as
|
|
2996
|
-
import { jsx as
|
|
2997
|
-
var NotificationHeaderRoot =
|
|
3270
|
+
import { styled as styled35 } from "@mui/material/styles";
|
|
3271
|
+
import { jsx as jsx46, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3272
|
+
var NotificationHeaderRoot = styled35(Box18, {
|
|
2998
3273
|
name: "MuiNotificationPanel",
|
|
2999
3274
|
slot: "Header"
|
|
3000
3275
|
})(({ theme }) => ({
|
|
@@ -3004,7 +3279,7 @@ var NotificationHeaderRoot = styled33(Box18, {
|
|
|
3004
3279
|
padding: theme.spacing(2),
|
|
3005
3280
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
3006
3281
|
}));
|
|
3007
|
-
var NotificationHeaderContent =
|
|
3282
|
+
var NotificationHeaderContent = styled35(Box18, {
|
|
3008
3283
|
name: "MuiNotificationPanel",
|
|
3009
3284
|
slot: "HeaderContent"
|
|
3010
3285
|
})(({ theme }) => ({
|
|
@@ -3015,9 +3290,9 @@ var NotificationHeaderContent = styled33(Box18, {
|
|
|
3015
3290
|
var separateChildren4 = (children) => {
|
|
3016
3291
|
const leftChildren = [];
|
|
3017
3292
|
let closeChild = null;
|
|
3018
|
-
|
|
3293
|
+
React16.Children.forEach(children, (child) => {
|
|
3019
3294
|
var _a;
|
|
3020
|
-
if (
|
|
3295
|
+
if (React16.isValidElement(child)) {
|
|
3021
3296
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
3022
3297
|
if (displayName === "NotificationHeaderClose") {
|
|
3023
3298
|
closeChild = child;
|
|
@@ -3035,8 +3310,8 @@ var NotificationHeader = ({
|
|
|
3035
3310
|
sx
|
|
3036
3311
|
}) => {
|
|
3037
3312
|
const { leftChildren, closeChild } = separateChildren4(children);
|
|
3038
|
-
return /* @__PURE__ */
|
|
3039
|
-
/* @__PURE__ */
|
|
3313
|
+
return /* @__PURE__ */ jsxs15(NotificationHeaderRoot, { sx, children: [
|
|
3314
|
+
/* @__PURE__ */ jsx46(NotificationHeaderContent, { children: leftChildren }),
|
|
3040
3315
|
closeChild
|
|
3041
3316
|
] });
|
|
3042
3317
|
};
|
|
@@ -3044,9 +3319,9 @@ NotificationHeader.displayName = "NotificationHeader";
|
|
|
3044
3319
|
|
|
3045
3320
|
// src/components/NotificationPanel/NotificationHeaderIcon.tsx
|
|
3046
3321
|
import Box19 from "@mui/material/Box";
|
|
3047
|
-
import { styled as
|
|
3048
|
-
import { jsx as
|
|
3049
|
-
var NotificationHeaderIconRoot =
|
|
3322
|
+
import { styled as styled36 } from "@mui/material/styles";
|
|
3323
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
3324
|
+
var NotificationHeaderIconRoot = styled36(Box19, {
|
|
3050
3325
|
name: "MuiNotificationPanel",
|
|
3051
3326
|
slot: "HeaderIcon"
|
|
3052
3327
|
})({
|
|
@@ -3057,15 +3332,15 @@ var NotificationHeaderIcon = ({
|
|
|
3057
3332
|
children,
|
|
3058
3333
|
sx
|
|
3059
3334
|
}) => {
|
|
3060
|
-
return /* @__PURE__ */
|
|
3335
|
+
return /* @__PURE__ */ jsx47(NotificationHeaderIconRoot, { sx, children });
|
|
3061
3336
|
};
|
|
3062
3337
|
NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
|
|
3063
3338
|
|
|
3064
3339
|
// src/components/NotificationPanel/NotificationHeaderTitle.tsx
|
|
3065
|
-
import
|
|
3066
|
-
import { styled as
|
|
3067
|
-
import { jsx as
|
|
3068
|
-
var NotificationHeaderTitleRoot =
|
|
3340
|
+
import Typography10 from "@mui/material/Typography";
|
|
3341
|
+
import { styled as styled37 } from "@mui/material/styles";
|
|
3342
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
3343
|
+
var NotificationHeaderTitleRoot = styled37(Typography10, {
|
|
3069
3344
|
name: "MuiNotificationPanel",
|
|
3070
3345
|
slot: "HeaderTitle"
|
|
3071
3346
|
})({
|
|
@@ -3075,15 +3350,15 @@ var NotificationHeaderTitle = ({
|
|
|
3075
3350
|
children,
|
|
3076
3351
|
sx
|
|
3077
3352
|
}) => {
|
|
3078
|
-
return /* @__PURE__ */
|
|
3353
|
+
return /* @__PURE__ */ jsx48(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
|
|
3079
3354
|
};
|
|
3080
3355
|
NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
|
|
3081
3356
|
|
|
3082
3357
|
// src/components/NotificationPanel/NotificationHeaderBadge.tsx
|
|
3083
3358
|
import Chip2 from "@mui/material/Chip";
|
|
3084
|
-
import { styled as
|
|
3085
|
-
import { jsx as
|
|
3086
|
-
var NotificationHeaderBadgeRoot =
|
|
3359
|
+
import { styled as styled38 } from "@mui/material/styles";
|
|
3360
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
3361
|
+
var NotificationHeaderBadgeRoot = styled38(Chip2, {
|
|
3087
3362
|
name: "MuiNotificationPanel",
|
|
3088
3363
|
slot: "HeaderBadge"
|
|
3089
3364
|
})({
|
|
@@ -3098,16 +3373,16 @@ var NotificationHeaderBadge = ({
|
|
|
3098
3373
|
if (!children || children === 0 || children === "0") {
|
|
3099
3374
|
return null;
|
|
3100
3375
|
}
|
|
3101
|
-
return /* @__PURE__ */
|
|
3376
|
+
return /* @__PURE__ */ jsx49(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
|
|
3102
3377
|
};
|
|
3103
3378
|
NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
3104
3379
|
|
|
3105
3380
|
// src/components/NotificationPanel/NotificationHeaderClose.tsx
|
|
3106
3381
|
import IconButton4 from "@mui/material/IconButton";
|
|
3107
|
-
import { styled as
|
|
3382
|
+
import { styled as styled39 } from "@mui/material/styles";
|
|
3108
3383
|
import { X as X2 } from "@wso2/oxygen-ui-icons-react";
|
|
3109
|
-
import { jsx as
|
|
3110
|
-
var NotificationHeaderCloseRoot =
|
|
3384
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
3385
|
+
var NotificationHeaderCloseRoot = styled39(IconButton4, {
|
|
3111
3386
|
name: "MuiNotificationPanel",
|
|
3112
3387
|
slot: "HeaderClose"
|
|
3113
3388
|
})({});
|
|
@@ -3124,7 +3399,7 @@ var NotificationHeaderClose = ({
|
|
|
3124
3399
|
onClose == null ? void 0 : onClose();
|
|
3125
3400
|
}
|
|
3126
3401
|
};
|
|
3127
|
-
return /* @__PURE__ */
|
|
3402
|
+
return /* @__PURE__ */ jsx50(NotificationHeaderCloseRoot, { onClick: handleClick, size: "small", sx, children: children || /* @__PURE__ */ jsx50(X2, { size: 20 }) });
|
|
3128
3403
|
};
|
|
3129
3404
|
NotificationHeaderClose.displayName = "NotificationHeaderClose";
|
|
3130
3405
|
|
|
@@ -3133,15 +3408,15 @@ import Box20 from "@mui/material/Box";
|
|
|
3133
3408
|
import Tabs from "@mui/material/Tabs";
|
|
3134
3409
|
import Tab from "@mui/material/Tab";
|
|
3135
3410
|
import Chip3 from "@mui/material/Chip";
|
|
3136
|
-
import { styled as
|
|
3137
|
-
import { jsx as
|
|
3138
|
-
var NotificationTabsRoot =
|
|
3411
|
+
import { styled as styled40 } from "@mui/material/styles";
|
|
3412
|
+
import { jsx as jsx51, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3413
|
+
var NotificationTabsRoot = styled40(Box20, {
|
|
3139
3414
|
name: "MuiNotificationPanel",
|
|
3140
3415
|
slot: "Tabs"
|
|
3141
3416
|
})(({ theme }) => ({
|
|
3142
3417
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
3143
3418
|
}));
|
|
3144
|
-
var NotificationTabsInner =
|
|
3419
|
+
var NotificationTabsInner = styled40(Tabs, {
|
|
3145
3420
|
name: "MuiNotificationPanel",
|
|
3146
3421
|
slot: "TabsInner"
|
|
3147
3422
|
})({
|
|
@@ -3152,7 +3427,7 @@ var NotificationTabsInner = styled38(Tabs, {
|
|
|
3152
3427
|
fontWeight: 500
|
|
3153
3428
|
}
|
|
3154
3429
|
});
|
|
3155
|
-
var NotificationTabLabel =
|
|
3430
|
+
var NotificationTabLabel = styled40(Box20, {
|
|
3156
3431
|
name: "MuiNotificationPanel",
|
|
3157
3432
|
slot: "TabLabel"
|
|
3158
3433
|
})(({ theme }) => ({
|
|
@@ -3160,7 +3435,7 @@ var NotificationTabLabel = styled38(Box20, {
|
|
|
3160
3435
|
alignItems: "center",
|
|
3161
3436
|
gap: theme.spacing(1)
|
|
3162
3437
|
}));
|
|
3163
|
-
var NotificationTabCount =
|
|
3438
|
+
var NotificationTabCount = styled40(Chip3, {
|
|
3164
3439
|
name: "MuiNotificationPanel",
|
|
3165
3440
|
slot: "TabCount"
|
|
3166
3441
|
})({
|
|
@@ -3173,18 +3448,18 @@ var NotificationTabs = ({
|
|
|
3173
3448
|
onChange,
|
|
3174
3449
|
sx
|
|
3175
3450
|
}) => {
|
|
3176
|
-
return /* @__PURE__ */
|
|
3451
|
+
return /* @__PURE__ */ jsx51(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx51(
|
|
3177
3452
|
NotificationTabsInner,
|
|
3178
3453
|
{
|
|
3179
3454
|
value,
|
|
3180
3455
|
onChange: (_, newValue) => onChange(newValue),
|
|
3181
3456
|
variant: "fullWidth",
|
|
3182
|
-
children: tabs.map((tab, index) => /* @__PURE__ */
|
|
3457
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ jsx51(
|
|
3183
3458
|
Tab,
|
|
3184
3459
|
{
|
|
3185
|
-
label: /* @__PURE__ */
|
|
3460
|
+
label: /* @__PURE__ */ jsxs16(NotificationTabLabel, { children: [
|
|
3186
3461
|
tab.label,
|
|
3187
|
-
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */
|
|
3462
|
+
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx51(
|
|
3188
3463
|
NotificationTabCount,
|
|
3189
3464
|
{
|
|
3190
3465
|
label: tab.count,
|
|
@@ -3203,11 +3478,11 @@ var NotificationTabs = ({
|
|
|
3203
3478
|
|
|
3204
3479
|
// src/components/NotificationPanel/NotificationActions.tsx
|
|
3205
3480
|
import Box21 from "@mui/material/Box";
|
|
3206
|
-
import
|
|
3207
|
-
import { styled as
|
|
3481
|
+
import Button3 from "@mui/material/Button";
|
|
3482
|
+
import { styled as styled41 } from "@mui/material/styles";
|
|
3208
3483
|
import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
|
|
3209
|
-
import { jsx as
|
|
3210
|
-
var NotificationActionsRoot =
|
|
3484
|
+
import { jsx as jsx52, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3485
|
+
var NotificationActionsRoot = styled41(Box21, {
|
|
3211
3486
|
name: "MuiNotificationPanel",
|
|
3212
3487
|
slot: "Actions"
|
|
3213
3488
|
})(({ theme }) => ({
|
|
@@ -3219,7 +3494,7 @@ var NotificationActionsRoot = styled39(Box21, {
|
|
|
3219
3494
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
3220
3495
|
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
3221
3496
|
}));
|
|
3222
|
-
var NotificationActionButton =
|
|
3497
|
+
var NotificationActionButton = styled41(Button3, {
|
|
3223
3498
|
name: "MuiNotificationPanel",
|
|
3224
3499
|
slot: "ActionButton"
|
|
3225
3500
|
})({
|
|
@@ -3232,21 +3507,21 @@ var NotificationActions = ({
|
|
|
3232
3507
|
onClearAll,
|
|
3233
3508
|
sx
|
|
3234
3509
|
}) => {
|
|
3235
|
-
return /* @__PURE__ */
|
|
3236
|
-
hasUnread && onMarkAllRead && /* @__PURE__ */
|
|
3510
|
+
return /* @__PURE__ */ jsxs17(NotificationActionsRoot, { sx, children: [
|
|
3511
|
+
hasUnread && onMarkAllRead && /* @__PURE__ */ jsx52(
|
|
3237
3512
|
NotificationActionButton,
|
|
3238
3513
|
{
|
|
3239
3514
|
size: "small",
|
|
3240
|
-
startIcon: /* @__PURE__ */
|
|
3515
|
+
startIcon: /* @__PURE__ */ jsx52(CheckCheck, { size: 14 }),
|
|
3241
3516
|
onClick: onMarkAllRead,
|
|
3242
3517
|
children: "Mark all read"
|
|
3243
3518
|
}
|
|
3244
3519
|
),
|
|
3245
|
-
onClearAll && /* @__PURE__ */
|
|
3520
|
+
onClearAll && /* @__PURE__ */ jsx52(
|
|
3246
3521
|
NotificationActionButton,
|
|
3247
3522
|
{
|
|
3248
3523
|
size: "small",
|
|
3249
|
-
startIcon: /* @__PURE__ */
|
|
3524
|
+
startIcon: /* @__PURE__ */ jsx52(Trash2, { size: 14 }),
|
|
3250
3525
|
onClick: onClearAll,
|
|
3251
3526
|
color: "error",
|
|
3252
3527
|
children: "Clear all"
|
|
@@ -3256,13 +3531,13 @@ var NotificationActions = ({
|
|
|
3256
3531
|
};
|
|
3257
3532
|
|
|
3258
3533
|
// src/components/NotificationPanel/NotificationList.tsx
|
|
3259
|
-
import * as
|
|
3534
|
+
import * as React17 from "react";
|
|
3260
3535
|
import Box22 from "@mui/material/Box";
|
|
3261
3536
|
import List3 from "@mui/material/List";
|
|
3262
3537
|
import Divider6 from "@mui/material/Divider";
|
|
3263
|
-
import { styled as
|
|
3264
|
-
import { jsx as
|
|
3265
|
-
var NotificationListRoot =
|
|
3538
|
+
import { styled as styled42 } from "@mui/material/styles";
|
|
3539
|
+
import { jsx as jsx53, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3540
|
+
var NotificationListRoot = styled42(Box22, {
|
|
3266
3541
|
name: "MuiNotificationPanel",
|
|
3267
3542
|
slot: "List"
|
|
3268
3543
|
})({
|
|
@@ -3274,21 +3549,21 @@ var NotificationList = ({
|
|
|
3274
3549
|
showDividers = true,
|
|
3275
3550
|
sx
|
|
3276
3551
|
}) => {
|
|
3277
|
-
const childArray =
|
|
3278
|
-
return /* @__PURE__ */
|
|
3552
|
+
const childArray = React17.Children.toArray(children);
|
|
3553
|
+
return /* @__PURE__ */ jsx53(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx53(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs18(React17.Fragment, { children: [
|
|
3279
3554
|
child,
|
|
3280
|
-
showDividers && index < childArray.length - 1 && /* @__PURE__ */
|
|
3555
|
+
showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx53(Divider6, {})
|
|
3281
3556
|
] }, index)) }) });
|
|
3282
3557
|
};
|
|
3283
3558
|
|
|
3284
3559
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
3285
|
-
import * as
|
|
3560
|
+
import * as React19 from "react";
|
|
3286
3561
|
import Box23 from "@mui/material/Box";
|
|
3287
3562
|
import ListItem2 from "@mui/material/ListItem";
|
|
3288
3563
|
import ListItemButton3 from "@mui/material/ListItemButton";
|
|
3289
3564
|
import ListItemText3 from "@mui/material/ListItemText";
|
|
3290
3565
|
import IconButton5 from "@mui/material/IconButton";
|
|
3291
|
-
import { styled as
|
|
3566
|
+
import { styled as styled43 } from "@mui/material/styles";
|
|
3292
3567
|
import { X as X3 } from "@wso2/oxygen-ui-icons-react";
|
|
3293
3568
|
|
|
3294
3569
|
// src/components/NotificationPanel/utils.ts
|
|
@@ -3328,11 +3603,11 @@ var getNotificationTypeProps = (type) => {
|
|
|
3328
3603
|
};
|
|
3329
3604
|
|
|
3330
3605
|
// src/components/NotificationPanel/NotificationItemContext.tsx
|
|
3331
|
-
import * as
|
|
3332
|
-
import { jsx as
|
|
3333
|
-
var NotificationItemContext =
|
|
3606
|
+
import * as React18 from "react";
|
|
3607
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
3608
|
+
var NotificationItemContext = React18.createContext(null);
|
|
3334
3609
|
var useNotificationItemContext = () => {
|
|
3335
|
-
const context =
|
|
3610
|
+
const context = React18.useContext(NotificationItemContext);
|
|
3336
3611
|
if (!context) {
|
|
3337
3612
|
throw new Error(
|
|
3338
3613
|
"useNotificationItemContext must be used within a NotificationItem component"
|
|
@@ -3341,12 +3616,12 @@ var useNotificationItemContext = () => {
|
|
|
3341
3616
|
return context;
|
|
3342
3617
|
};
|
|
3343
3618
|
var NotificationItemProvider = ({ value, children }) => {
|
|
3344
|
-
return /* @__PURE__ */
|
|
3619
|
+
return /* @__PURE__ */ jsx54(NotificationItemContext.Provider, { value, children });
|
|
3345
3620
|
};
|
|
3346
3621
|
|
|
3347
3622
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
3348
|
-
import { jsx as
|
|
3349
|
-
var NotificationItemRoot =
|
|
3623
|
+
import { jsx as jsx55, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3624
|
+
var NotificationItemRoot = styled43(ListItem2, {
|
|
3350
3625
|
name: "MuiNotificationPanel",
|
|
3351
3626
|
slot: "Item",
|
|
3352
3627
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3356,13 +3631,13 @@ var NotificationItemRoot = styled41(ListItem2, {
|
|
|
3356
3631
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
3357
3632
|
}
|
|
3358
3633
|
}));
|
|
3359
|
-
var NotificationItemButton =
|
|
3634
|
+
var NotificationItemButton = styled43(ListItemButton3, {
|
|
3360
3635
|
name: "MuiNotificationPanel",
|
|
3361
3636
|
slot: "ItemButton"
|
|
3362
3637
|
})(({ theme }) => ({
|
|
3363
3638
|
paddingRight: theme.spacing(6)
|
|
3364
3639
|
}));
|
|
3365
|
-
var NotificationItemDismiss =
|
|
3640
|
+
var NotificationItemDismiss = styled43(IconButton5, {
|
|
3366
3641
|
name: "MuiNotificationPanel",
|
|
3367
3642
|
slot: "ItemDismiss"
|
|
3368
3643
|
})({
|
|
@@ -3371,7 +3646,7 @@ var NotificationItemDismiss = styled41(IconButton5, {
|
|
|
3371
3646
|
opacity: 1
|
|
3372
3647
|
}
|
|
3373
3648
|
});
|
|
3374
|
-
var NotificationItemFooter =
|
|
3649
|
+
var NotificationItemFooter = styled43(Box23, {
|
|
3375
3650
|
name: "MuiNotificationPanel",
|
|
3376
3651
|
slot: "ItemFooter"
|
|
3377
3652
|
})(({ theme }) => ({
|
|
@@ -3386,9 +3661,9 @@ var separateChildren5 = (children) => {
|
|
|
3386
3661
|
let messageChild = null;
|
|
3387
3662
|
let timestampChild = null;
|
|
3388
3663
|
let actionChild = null;
|
|
3389
|
-
|
|
3664
|
+
React19.Children.forEach(children, (child) => {
|
|
3390
3665
|
var _a;
|
|
3391
|
-
if (
|
|
3666
|
+
if (React19.isValidElement(child)) {
|
|
3392
3667
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
3393
3668
|
switch (displayName) {
|
|
3394
3669
|
case "NotificationItemAvatar":
|
|
@@ -3438,12 +3713,12 @@ var NotificationItem = ({
|
|
|
3438
3713
|
onAction == null ? void 0 : onAction();
|
|
3439
3714
|
};
|
|
3440
3715
|
const ownerState = { read };
|
|
3441
|
-
return /* @__PURE__ */
|
|
3716
|
+
return /* @__PURE__ */ jsx55(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx55(
|
|
3442
3717
|
NotificationItemRoot,
|
|
3443
3718
|
{
|
|
3444
3719
|
disablePadding: true,
|
|
3445
3720
|
ownerState,
|
|
3446
|
-
secondaryAction: onDismiss && /* @__PURE__ */
|
|
3721
|
+
secondaryAction: onDismiss && /* @__PURE__ */ jsx55(
|
|
3447
3722
|
NotificationItemDismiss,
|
|
3448
3723
|
{
|
|
3449
3724
|
size: "small",
|
|
@@ -3451,19 +3726,19 @@ var NotificationItem = ({
|
|
|
3451
3726
|
e.stopPropagation();
|
|
3452
3727
|
onDismiss(id);
|
|
3453
3728
|
},
|
|
3454
|
-
children: /* @__PURE__ */
|
|
3729
|
+
children: /* @__PURE__ */ jsx55(X3, { size: 16 })
|
|
3455
3730
|
}
|
|
3456
3731
|
),
|
|
3457
3732
|
sx,
|
|
3458
|
-
children: /* @__PURE__ */
|
|
3733
|
+
children: /* @__PURE__ */ jsxs19(NotificationItemButton, { onClick: handleClick, children: [
|
|
3459
3734
|
avatarChild,
|
|
3460
|
-
/* @__PURE__ */
|
|
3735
|
+
/* @__PURE__ */ jsx55(
|
|
3461
3736
|
ListItemText3,
|
|
3462
3737
|
{
|
|
3463
3738
|
primary: titleChild,
|
|
3464
|
-
secondary: /* @__PURE__ */
|
|
3739
|
+
secondary: /* @__PURE__ */ jsxs19(Box23, { component: "span", children: [
|
|
3465
3740
|
messageChild,
|
|
3466
|
-
/* @__PURE__ */
|
|
3741
|
+
/* @__PURE__ */ jsxs19(NotificationItemFooter, { children: [
|
|
3467
3742
|
timestampChild,
|
|
3468
3743
|
actionChild
|
|
3469
3744
|
] })
|
|
@@ -3479,9 +3754,9 @@ NotificationItem.displayName = "NotificationItem";
|
|
|
3479
3754
|
// src/components/NotificationPanel/NotificationItemAvatar.tsx
|
|
3480
3755
|
import ListItemAvatar from "@mui/material/ListItemAvatar";
|
|
3481
3756
|
import Avatar3 from "@mui/material/Avatar";
|
|
3482
|
-
import { styled as
|
|
3483
|
-
import { jsx as
|
|
3484
|
-
var NotificationItemAvatarStyled =
|
|
3757
|
+
import { styled as styled44 } from "@mui/material/styles";
|
|
3758
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
3759
|
+
var NotificationItemAvatarStyled = styled44(Avatar3, {
|
|
3485
3760
|
name: "MuiNotificationPanel",
|
|
3486
3761
|
slot: "ItemAvatar",
|
|
3487
3762
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3504,16 +3779,16 @@ var NotificationItemAvatar = ({
|
|
|
3504
3779
|
color: typeProps.color,
|
|
3505
3780
|
hasChildren: !!children
|
|
3506
3781
|
};
|
|
3507
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ jsx56(ListItemAvatar, { children: /* @__PURE__ */ jsx56(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx56(Icon, { size: 20 }) }) });
|
|
3508
3783
|
};
|
|
3509
3784
|
NotificationItemAvatar.displayName = "NotificationItemAvatar";
|
|
3510
3785
|
|
|
3511
3786
|
// src/components/NotificationPanel/NotificationItemTitle.tsx
|
|
3512
3787
|
import Box24 from "@mui/material/Box";
|
|
3513
|
-
import
|
|
3514
|
-
import { styled as
|
|
3515
|
-
import { jsx as
|
|
3516
|
-
var NotificationItemTitleRoot =
|
|
3788
|
+
import Typography11 from "@mui/material/Typography";
|
|
3789
|
+
import { styled as styled45 } from "@mui/material/styles";
|
|
3790
|
+
import { jsx as jsx57, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3791
|
+
var NotificationItemTitleRoot = styled45(Box24, {
|
|
3517
3792
|
name: "MuiNotificationPanel",
|
|
3518
3793
|
slot: "ItemTitle"
|
|
3519
3794
|
})(({ theme }) => ({
|
|
@@ -3521,7 +3796,7 @@ var NotificationItemTitleRoot = styled43(Box24, {
|
|
|
3521
3796
|
alignItems: "center",
|
|
3522
3797
|
gap: theme.spacing(1)
|
|
3523
3798
|
}));
|
|
3524
|
-
var NotificationItemTitleText =
|
|
3799
|
+
var NotificationItemTitleText = styled45(Typography11, {
|
|
3525
3800
|
name: "MuiNotificationPanel",
|
|
3526
3801
|
slot: "ItemTitleText",
|
|
3527
3802
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3529,7 +3804,7 @@ var NotificationItemTitleText = styled43(Typography10, {
|
|
|
3529
3804
|
fontWeight: ownerState.read ? 400 : 600,
|
|
3530
3805
|
flex: 1
|
|
3531
3806
|
}));
|
|
3532
|
-
var NotificationItemUnreadDot =
|
|
3807
|
+
var NotificationItemUnreadDot = styled45(Box24, {
|
|
3533
3808
|
name: "MuiNotificationPanel",
|
|
3534
3809
|
slot: "ItemUnreadDot"
|
|
3535
3810
|
})(({ theme }) => ({
|
|
@@ -3545,18 +3820,18 @@ var NotificationItemTitle = ({
|
|
|
3545
3820
|
sx
|
|
3546
3821
|
}) => {
|
|
3547
3822
|
const { read } = useNotificationItemContext();
|
|
3548
|
-
return /* @__PURE__ */
|
|
3549
|
-
/* @__PURE__ */
|
|
3550
|
-
showUnreadIndicator && !read && /* @__PURE__ */
|
|
3823
|
+
return /* @__PURE__ */ jsxs20(NotificationItemTitleRoot, { sx, children: [
|
|
3824
|
+
/* @__PURE__ */ jsx57(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
|
|
3825
|
+
showUnreadIndicator && !read && /* @__PURE__ */ jsx57(NotificationItemUnreadDot, {})
|
|
3551
3826
|
] });
|
|
3552
3827
|
};
|
|
3553
3828
|
NotificationItemTitle.displayName = "NotificationItemTitle";
|
|
3554
3829
|
|
|
3555
3830
|
// src/components/NotificationPanel/NotificationItemMessage.tsx
|
|
3556
|
-
import
|
|
3557
|
-
import { styled as
|
|
3558
|
-
import { jsx as
|
|
3559
|
-
var NotificationItemMessageRoot =
|
|
3831
|
+
import Typography12 from "@mui/material/Typography";
|
|
3832
|
+
import { styled as styled46 } from "@mui/material/styles";
|
|
3833
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
3834
|
+
var NotificationItemMessageRoot = styled46(Typography12, {
|
|
3560
3835
|
name: "MuiNotificationPanel",
|
|
3561
3836
|
slot: "ItemMessage"
|
|
3562
3837
|
})(({ theme }) => ({
|
|
@@ -3568,15 +3843,15 @@ var NotificationItemMessage = ({
|
|
|
3568
3843
|
children,
|
|
3569
3844
|
sx
|
|
3570
3845
|
}) => {
|
|
3571
|
-
return /* @__PURE__ */
|
|
3846
|
+
return /* @__PURE__ */ jsx58(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
|
|
3572
3847
|
};
|
|
3573
3848
|
NotificationItemMessage.displayName = "NotificationItemMessage";
|
|
3574
3849
|
|
|
3575
3850
|
// src/components/NotificationPanel/NotificationItemTimestamp.tsx
|
|
3576
|
-
import
|
|
3577
|
-
import { styled as
|
|
3578
|
-
import { jsx as
|
|
3579
|
-
var NotificationItemTimestampRoot =
|
|
3851
|
+
import Typography13 from "@mui/material/Typography";
|
|
3852
|
+
import { styled as styled47 } from "@mui/material/styles";
|
|
3853
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
3854
|
+
var NotificationItemTimestampRoot = styled47(Typography13, {
|
|
3580
3855
|
name: "MuiNotificationPanel",
|
|
3581
3856
|
slot: "ItemTimestamp"
|
|
3582
3857
|
})(({ theme }) => ({
|
|
@@ -3587,15 +3862,15 @@ var NotificationItemTimestamp = ({
|
|
|
3587
3862
|
children,
|
|
3588
3863
|
sx
|
|
3589
3864
|
}) => {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3865
|
+
return /* @__PURE__ */ jsx59(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
|
|
3591
3866
|
};
|
|
3592
3867
|
NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
|
|
3593
3868
|
|
|
3594
3869
|
// src/components/NotificationPanel/NotificationItemAction.tsx
|
|
3595
3870
|
import Chip4 from "@mui/material/Chip";
|
|
3596
|
-
import { styled as
|
|
3597
|
-
import { jsx as
|
|
3598
|
-
var NotificationItemActionRoot =
|
|
3871
|
+
import { styled as styled48 } from "@mui/material/styles";
|
|
3872
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
3873
|
+
var NotificationItemActionRoot = styled48(Chip4, {
|
|
3599
3874
|
name: "MuiNotificationPanel",
|
|
3600
3875
|
slot: "ItemAction"
|
|
3601
3876
|
})({
|
|
@@ -3617,7 +3892,7 @@ var NotificationItemAction = ({
|
|
|
3617
3892
|
onAction == null ? void 0 : onAction();
|
|
3618
3893
|
}
|
|
3619
3894
|
};
|
|
3620
|
-
return /* @__PURE__ */
|
|
3895
|
+
return /* @__PURE__ */ jsx60(
|
|
3621
3896
|
NotificationItemActionRoot,
|
|
3622
3897
|
{
|
|
3623
3898
|
label: children,
|
|
@@ -3632,11 +3907,11 @@ NotificationItemAction.displayName = "NotificationItemAction";
|
|
|
3632
3907
|
|
|
3633
3908
|
// src/components/NotificationPanel/NotificationEmptyState.tsx
|
|
3634
3909
|
import Box25 from "@mui/material/Box";
|
|
3635
|
-
import
|
|
3636
|
-
import { styled as
|
|
3910
|
+
import Typography14 from "@mui/material/Typography";
|
|
3911
|
+
import { styled as styled49 } from "@mui/material/styles";
|
|
3637
3912
|
import { BellOff } from "@wso2/oxygen-ui-icons-react";
|
|
3638
|
-
import { jsx as
|
|
3639
|
-
var NotificationEmptyStateRoot =
|
|
3913
|
+
import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3914
|
+
var NotificationEmptyStateRoot = styled49(Box25, {
|
|
3640
3915
|
name: "MuiNotificationPanel",
|
|
3641
3916
|
slot: "EmptyState"
|
|
3642
3917
|
})(({ theme }) => ({
|
|
@@ -3650,7 +3925,7 @@ var NotificationEmptyStateRoot = styled47(Box25, {
|
|
|
3650
3925
|
paddingRight: theme.spacing(3),
|
|
3651
3926
|
textAlign: "center"
|
|
3652
3927
|
}));
|
|
3653
|
-
var NotificationEmptyStateMessage =
|
|
3928
|
+
var NotificationEmptyStateMessage = styled49(Typography14, {
|
|
3654
3929
|
name: "MuiNotificationPanel",
|
|
3655
3930
|
slot: "EmptyStateMessage"
|
|
3656
3931
|
})(({ theme }) => ({
|
|
@@ -3661,15 +3936,15 @@ var NotificationEmptyState = ({
|
|
|
3661
3936
|
icon,
|
|
3662
3937
|
sx
|
|
3663
3938
|
}) => {
|
|
3664
|
-
return /* @__PURE__ */
|
|
3665
|
-
icon || /* @__PURE__ */
|
|
3666
|
-
/* @__PURE__ */
|
|
3939
|
+
return /* @__PURE__ */ jsxs21(NotificationEmptyStateRoot, { sx, children: [
|
|
3940
|
+
icon || /* @__PURE__ */ jsx61(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
|
|
3941
|
+
/* @__PURE__ */ jsx61(NotificationEmptyStateMessage, { variant: "body2", children: message })
|
|
3667
3942
|
] });
|
|
3668
3943
|
};
|
|
3669
3944
|
|
|
3670
3945
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
3671
|
-
import { jsx as
|
|
3672
|
-
var NotificationPanelRoot =
|
|
3946
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
3947
|
+
var NotificationPanelRoot = styled50(Drawer, {
|
|
3673
3948
|
name: "MuiNotificationPanel",
|
|
3674
3949
|
slot: "Root",
|
|
3675
3950
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -3693,9 +3968,9 @@ var NotificationPanel = ({
|
|
|
3693
3968
|
variant = "temporary",
|
|
3694
3969
|
sx
|
|
3695
3970
|
}) => {
|
|
3696
|
-
const contextValue =
|
|
3971
|
+
const contextValue = React20.useMemo(() => ({ onClose }), [onClose]);
|
|
3697
3972
|
const ownerState = { width };
|
|
3698
|
-
return /* @__PURE__ */
|
|
3973
|
+
return /* @__PURE__ */ jsx62(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx62(
|
|
3699
3974
|
NotificationPanelRoot,
|
|
3700
3975
|
{
|
|
3701
3976
|
anchor,
|
|
@@ -3727,12 +4002,12 @@ NotificationPanel.displayName = "NotificationPanel";
|
|
|
3727
4002
|
|
|
3728
4003
|
// src/components/Footer/Footer.tsx
|
|
3729
4004
|
import Box26 from "@mui/material/Box";
|
|
3730
|
-
import
|
|
4005
|
+
import Typography15 from "@mui/material/Typography";
|
|
3731
4006
|
import Link2 from "@mui/material/Link";
|
|
3732
4007
|
import Divider7 from "@mui/material/Divider";
|
|
3733
|
-
import { styled as
|
|
3734
|
-
import { Fragment as Fragment9, jsx as
|
|
3735
|
-
var FooterRoot =
|
|
4008
|
+
import { styled as styled51 } from "@mui/material/styles";
|
|
4009
|
+
import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4010
|
+
var FooterRoot = styled51(Box26, {
|
|
3736
4011
|
name: "MuiFooter",
|
|
3737
4012
|
slot: "Root"
|
|
3738
4013
|
})(({ theme }) => ({
|
|
@@ -3745,7 +4020,7 @@ var FooterRoot = styled49(Box26, {
|
|
|
3745
4020
|
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
3746
4021
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
3747
4022
|
}));
|
|
3748
|
-
var FooterContent =
|
|
4023
|
+
var FooterContent = styled51(Box26, {
|
|
3749
4024
|
name: "MuiFooter",
|
|
3750
4025
|
slot: "Content"
|
|
3751
4026
|
})(({ theme }) => ({
|
|
@@ -3759,7 +4034,7 @@ var FooterContent = styled49(Box26, {
|
|
|
3759
4034
|
alignItems: "center"
|
|
3760
4035
|
}
|
|
3761
4036
|
}));
|
|
3762
|
-
var FooterCopyright =
|
|
4037
|
+
var FooterCopyright = styled51(Box26, {
|
|
3763
4038
|
name: "MuiFooter",
|
|
3764
4039
|
slot: "Copyright"
|
|
3765
4040
|
})(({ theme }) => ({
|
|
@@ -3768,13 +4043,13 @@ var FooterCopyright = styled49(Box26, {
|
|
|
3768
4043
|
gap: theme.spacing(2),
|
|
3769
4044
|
flexWrap: "wrap"
|
|
3770
4045
|
}));
|
|
3771
|
-
var FooterCopyrightText =
|
|
4046
|
+
var FooterCopyrightText = styled51(Typography15, {
|
|
3772
4047
|
name: "MuiFooter",
|
|
3773
4048
|
slot: "CopyrightText"
|
|
3774
4049
|
})(({ theme }) => ({
|
|
3775
4050
|
color: (theme.vars || theme).palette.text.secondary
|
|
3776
4051
|
}));
|
|
3777
|
-
var FooterVersion =
|
|
4052
|
+
var FooterVersion = styled51(Typography15, {
|
|
3778
4053
|
name: "MuiFooter",
|
|
3779
4054
|
slot: "Version"
|
|
3780
4055
|
})(({ theme }) => ({
|
|
@@ -3782,7 +4057,7 @@ var FooterVersion = styled49(Typography14, {
|
|
|
3782
4057
|
fontFamily: "monospace",
|
|
3783
4058
|
fontSize: 11
|
|
3784
4059
|
}));
|
|
3785
|
-
var FooterLinks =
|
|
4060
|
+
var FooterLinks = styled51(Box26, {
|
|
3786
4061
|
name: "MuiFooter",
|
|
3787
4062
|
slot: "Links"
|
|
3788
4063
|
})(({ theme }) => ({
|
|
@@ -3791,7 +4066,7 @@ var FooterLinks = styled49(Box26, {
|
|
|
3791
4066
|
gap: theme.spacing(2),
|
|
3792
4067
|
flexWrap: "wrap"
|
|
3793
4068
|
}));
|
|
3794
|
-
var FooterLink =
|
|
4069
|
+
var FooterLink = styled51(Link2, {
|
|
3795
4070
|
name: "MuiFooter",
|
|
3796
4071
|
slot: "Link"
|
|
3797
4072
|
})(({ theme }) => ({
|
|
@@ -3806,17 +4081,17 @@ var Footer = ({
|
|
|
3806
4081
|
companyName = "Your Company",
|
|
3807
4082
|
termsUrl = "#",
|
|
3808
4083
|
privacyUrl = "#",
|
|
3809
|
-
version,
|
|
4084
|
+
version: version2,
|
|
3810
4085
|
links = [],
|
|
3811
4086
|
sx
|
|
3812
4087
|
}) => {
|
|
3813
4088
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
3814
4089
|
const copyrightText = copyright || `\xA9 ${currentYear} ${companyName}. All rights reserved.`;
|
|
3815
|
-
return /* @__PURE__ */
|
|
3816
|
-
/* @__PURE__ */
|
|
3817
|
-
/* @__PURE__ */
|
|
3818
|
-
|
|
3819
|
-
/* @__PURE__ */
|
|
4090
|
+
return /* @__PURE__ */ jsx63(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs22(FooterContent, { children: [
|
|
4091
|
+
/* @__PURE__ */ jsxs22(FooterCopyright, { children: [
|
|
4092
|
+
/* @__PURE__ */ jsx63(FooterCopyrightText, { variant: "caption", children: copyrightText }),
|
|
4093
|
+
version2 && /* @__PURE__ */ jsxs22(Fragment9, { children: [
|
|
4094
|
+
/* @__PURE__ */ jsx63(
|
|
3820
4095
|
Divider7,
|
|
3821
4096
|
{
|
|
3822
4097
|
orientation: "vertical",
|
|
@@ -3824,19 +4099,19 @@ var Footer = ({
|
|
|
3824
4099
|
sx: { display: { xs: "none", sm: "block" } }
|
|
3825
4100
|
}
|
|
3826
4101
|
),
|
|
3827
|
-
/* @__PURE__ */
|
|
4102
|
+
/* @__PURE__ */ jsx63(FooterVersion, { variant: "caption", children: version2 })
|
|
3828
4103
|
] })
|
|
3829
4104
|
] }),
|
|
3830
|
-
/* @__PURE__ */
|
|
3831
|
-
/* @__PURE__ */
|
|
3832
|
-
/* @__PURE__ */
|
|
3833
|
-
links.map((link, index) => /* @__PURE__ */
|
|
4105
|
+
/* @__PURE__ */ jsxs22(FooterLinks, { children: [
|
|
4106
|
+
/* @__PURE__ */ jsx63(FooterLink, { href: termsUrl, underline: "hover", children: "Terms & Conditions" }),
|
|
4107
|
+
/* @__PURE__ */ jsx63(FooterLink, { href: privacyUrl, underline: "hover", children: "Privacy Policy" }),
|
|
4108
|
+
links.map((link, index) => /* @__PURE__ */ jsx63(FooterLink, { href: link.url, underline: "hover", children: link.label }, index))
|
|
3834
4109
|
] })
|
|
3835
4110
|
] }) });
|
|
3836
4111
|
};
|
|
3837
4112
|
|
|
3838
4113
|
// src/components/UserMenu/UserMenu.tsx
|
|
3839
|
-
import * as
|
|
4114
|
+
import * as React21 from "react";
|
|
3840
4115
|
import IconButton6 from "@mui/material/IconButton";
|
|
3841
4116
|
import Menu2 from "@mui/material/Menu";
|
|
3842
4117
|
import MenuItem3 from "@mui/material/MenuItem";
|
|
@@ -3844,11 +4119,11 @@ import ListItemIcon3 from "@mui/material/ListItemIcon";
|
|
|
3844
4119
|
import ListItemText4 from "@mui/material/ListItemText";
|
|
3845
4120
|
import Avatar4 from "@mui/material/Avatar";
|
|
3846
4121
|
import Box27 from "@mui/material/Box";
|
|
3847
|
-
import
|
|
4122
|
+
import Typography16 from "@mui/material/Typography";
|
|
3848
4123
|
import Divider8 from "@mui/material/Divider";
|
|
3849
4124
|
import Chip5 from "@mui/material/Chip";
|
|
3850
4125
|
import Tooltip5 from "@mui/material/Tooltip";
|
|
3851
|
-
import { styled as
|
|
4126
|
+
import { styled as styled52 } from "@mui/material/styles";
|
|
3852
4127
|
import {
|
|
3853
4128
|
User as UserIcon,
|
|
3854
4129
|
Settings,
|
|
@@ -3856,14 +4131,14 @@ import {
|
|
|
3856
4131
|
LogOut,
|
|
3857
4132
|
ChevronRight
|
|
3858
4133
|
} from "@wso2/oxygen-ui-icons-react";
|
|
3859
|
-
import { Fragment as Fragment10, jsx as
|
|
3860
|
-
var UserMenuTrigger =
|
|
4134
|
+
import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4135
|
+
var UserMenuTrigger = styled52(IconButton6, {
|
|
3861
4136
|
name: "MuiUserMenu",
|
|
3862
4137
|
slot: "Trigger"
|
|
3863
4138
|
})(({ theme }) => ({
|
|
3864
4139
|
padding: theme.spacing(0.5)
|
|
3865
4140
|
}));
|
|
3866
|
-
var UserMenuAvatar =
|
|
4141
|
+
var UserMenuAvatar = styled52(Avatar4, {
|
|
3867
4142
|
name: "MuiUserMenu",
|
|
3868
4143
|
slot: "Avatar"
|
|
3869
4144
|
})(({ theme }) => ({
|
|
@@ -3874,7 +4149,7 @@ var UserMenuAvatar = styled50(Avatar4, {
|
|
|
3874
4149
|
fontSize: 14,
|
|
3875
4150
|
fontWeight: 600
|
|
3876
4151
|
}));
|
|
3877
|
-
var UserMenuHeaderAvatar =
|
|
4152
|
+
var UserMenuHeaderAvatar = styled52(Avatar4, {
|
|
3878
4153
|
name: "MuiUserMenu",
|
|
3879
4154
|
slot: "HeaderAvatar"
|
|
3880
4155
|
})(({ theme }) => ({
|
|
@@ -3885,7 +4160,7 @@ var UserMenuHeaderAvatar = styled50(Avatar4, {
|
|
|
3885
4160
|
fontSize: 16,
|
|
3886
4161
|
fontWeight: 600
|
|
3887
4162
|
}));
|
|
3888
|
-
var UserMenuHeader =
|
|
4163
|
+
var UserMenuHeader = styled52(Box27, {
|
|
3889
4164
|
name: "MuiUserMenu",
|
|
3890
4165
|
slot: "Header"
|
|
3891
4166
|
})(({ theme }) => ({
|
|
@@ -3894,7 +4169,7 @@ var UserMenuHeader = styled50(Box27, {
|
|
|
3894
4169
|
paddingTop: theme.spacing(1.5),
|
|
3895
4170
|
paddingBottom: theme.spacing(1.5)
|
|
3896
4171
|
}));
|
|
3897
|
-
var UserMenuHeaderContent =
|
|
4172
|
+
var UserMenuHeaderContent = styled52(Box27, {
|
|
3898
4173
|
name: "MuiUserMenu",
|
|
3899
4174
|
slot: "HeaderContent"
|
|
3900
4175
|
})(({ theme }) => ({
|
|
@@ -3902,14 +4177,14 @@ var UserMenuHeaderContent = styled50(Box27, {
|
|
|
3902
4177
|
alignItems: "center",
|
|
3903
4178
|
gap: theme.spacing(1.5)
|
|
3904
4179
|
}));
|
|
3905
|
-
var UserMenuUserInfo =
|
|
4180
|
+
var UserMenuUserInfo = styled52(Box27, {
|
|
3906
4181
|
name: "MuiUserMenu",
|
|
3907
4182
|
slot: "UserInfo"
|
|
3908
4183
|
})({
|
|
3909
4184
|
flex: 1,
|
|
3910
4185
|
minWidth: 0
|
|
3911
4186
|
});
|
|
3912
|
-
var UserMenuNameRow =
|
|
4187
|
+
var UserMenuNameRow = styled52(Box27, {
|
|
3913
4188
|
name: "MuiUserMenu",
|
|
3914
4189
|
slot: "NameRow"
|
|
3915
4190
|
})(({ theme }) => ({
|
|
@@ -3917,7 +4192,7 @@ var UserMenuNameRow = styled50(Box27, {
|
|
|
3917
4192
|
alignItems: "center",
|
|
3918
4193
|
gap: theme.spacing(1)
|
|
3919
4194
|
}));
|
|
3920
|
-
var UserMenuName =
|
|
4195
|
+
var UserMenuName = styled52(Typography16, {
|
|
3921
4196
|
name: "MuiUserMenu",
|
|
3922
4197
|
slot: "Name"
|
|
3923
4198
|
})({
|
|
@@ -3926,7 +4201,7 @@ var UserMenuName = styled50(Typography15, {
|
|
|
3926
4201
|
overflow: "hidden",
|
|
3927
4202
|
textOverflow: "ellipsis"
|
|
3928
4203
|
});
|
|
3929
|
-
var UserMenuRoleChip =
|
|
4204
|
+
var UserMenuRoleChip = styled52(Chip5, {
|
|
3930
4205
|
name: "MuiUserMenu",
|
|
3931
4206
|
slot: "RoleChip"
|
|
3932
4207
|
})({
|
|
@@ -3934,7 +4209,7 @@ var UserMenuRoleChip = styled50(Chip5, {
|
|
|
3934
4209
|
fontSize: 11,
|
|
3935
4210
|
fontWeight: 600
|
|
3936
4211
|
});
|
|
3937
|
-
var UserMenuEmail =
|
|
4212
|
+
var UserMenuEmail = styled52(Typography16, {
|
|
3938
4213
|
name: "MuiUserMenu",
|
|
3939
4214
|
slot: "Email"
|
|
3940
4215
|
})(({ theme }) => ({
|
|
@@ -3944,14 +4219,14 @@ var UserMenuEmail = styled50(Typography15, {
|
|
|
3944
4219
|
overflow: "hidden",
|
|
3945
4220
|
textOverflow: "ellipsis"
|
|
3946
4221
|
}));
|
|
3947
|
-
var UserMenuMenuItem =
|
|
4222
|
+
var UserMenuMenuItem = styled52(MenuItem3, {
|
|
3948
4223
|
name: "MuiUserMenu",
|
|
3949
4224
|
slot: "MenuItem"
|
|
3950
4225
|
})(({ theme }) => ({
|
|
3951
4226
|
paddingTop: theme.spacing(1.5),
|
|
3952
4227
|
paddingBottom: theme.spacing(1.5)
|
|
3953
4228
|
}));
|
|
3954
|
-
var UserMenuLogoutItem =
|
|
4229
|
+
var UserMenuLogoutItem = styled52(MenuItem3, {
|
|
3955
4230
|
name: "MuiUserMenu",
|
|
3956
4231
|
slot: "LogoutItem"
|
|
3957
4232
|
})(({ theme }) => ({
|
|
@@ -3966,13 +4241,13 @@ var UserMenuLogoutItem = styled50(MenuItem3, {
|
|
|
3966
4241
|
}
|
|
3967
4242
|
}
|
|
3968
4243
|
}));
|
|
3969
|
-
var UserMenuLogoutIcon =
|
|
4244
|
+
var UserMenuLogoutIcon = styled52(ListItemIcon3, {
|
|
3970
4245
|
name: "MuiUserMenu",
|
|
3971
4246
|
slot: "LogoutIcon"
|
|
3972
4247
|
})(({ theme }) => ({
|
|
3973
4248
|
color: (theme.vars || theme).palette.error.main
|
|
3974
4249
|
}));
|
|
3975
|
-
var UserMenuBillingChip =
|
|
4250
|
+
var UserMenuBillingChip = styled52(Chip5, {
|
|
3976
4251
|
name: "MuiUserMenu",
|
|
3977
4252
|
slot: "BillingChip"
|
|
3978
4253
|
})({
|
|
@@ -3986,7 +4261,7 @@ var UserMenu = ({
|
|
|
3986
4261
|
onBillingClick,
|
|
3987
4262
|
onLogout
|
|
3988
4263
|
}) => {
|
|
3989
|
-
const [anchorEl, setAnchorEl] =
|
|
4264
|
+
const [anchorEl, setAnchorEl] = React21.useState(null);
|
|
3990
4265
|
const open = Boolean(anchorEl);
|
|
3991
4266
|
const handleClick = (event) => {
|
|
3992
4267
|
setAnchorEl(event.currentTarget);
|
|
@@ -3998,8 +4273,8 @@ var UserMenu = ({
|
|
|
3998
4273
|
handleClose();
|
|
3999
4274
|
callback == null ? void 0 : callback();
|
|
4000
4275
|
};
|
|
4001
|
-
return /* @__PURE__ */
|
|
4002
|
-
/* @__PURE__ */
|
|
4276
|
+
return /* @__PURE__ */ jsxs23(Fragment10, { children: [
|
|
4277
|
+
/* @__PURE__ */ jsx64(Tooltip5, { title: "Account", children: /* @__PURE__ */ jsx64(
|
|
4003
4278
|
UserMenuTrigger,
|
|
4004
4279
|
{
|
|
4005
4280
|
onClick: handleClick,
|
|
@@ -4007,10 +4282,10 @@ var UserMenu = ({
|
|
|
4007
4282
|
"aria-controls": open ? "user-menu" : void 0,
|
|
4008
4283
|
"aria-haspopup": "true",
|
|
4009
4284
|
"aria-expanded": open ? "true" : void 0,
|
|
4010
|
-
children: /* @__PURE__ */
|
|
4285
|
+
children: /* @__PURE__ */ jsx64(UserMenuAvatar, { children: user.avatar || user.name.charAt(0) })
|
|
4011
4286
|
}
|
|
4012
4287
|
) }),
|
|
4013
|
-
/* @__PURE__ */
|
|
4288
|
+
/* @__PURE__ */ jsxs23(
|
|
4014
4289
|
Menu2,
|
|
4015
4290
|
{
|
|
4016
4291
|
id: "user-menu",
|
|
@@ -4028,12 +4303,12 @@ var UserMenu = ({
|
|
|
4028
4303
|
}
|
|
4029
4304
|
},
|
|
4030
4305
|
children: [
|
|
4031
|
-
/* @__PURE__ */
|
|
4032
|
-
/* @__PURE__ */
|
|
4033
|
-
/* @__PURE__ */
|
|
4034
|
-
/* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */
|
|
4036
|
-
user.role && /* @__PURE__ */
|
|
4306
|
+
/* @__PURE__ */ jsx64(UserMenuHeader, { children: /* @__PURE__ */ jsxs23(UserMenuHeaderContent, { children: [
|
|
4307
|
+
/* @__PURE__ */ jsx64(UserMenuHeaderAvatar, { children: user.avatar || user.name.charAt(0) }),
|
|
4308
|
+
/* @__PURE__ */ jsxs23(UserMenuUserInfo, { children: [
|
|
4309
|
+
/* @__PURE__ */ jsxs23(UserMenuNameRow, { children: [
|
|
4310
|
+
/* @__PURE__ */ jsx64(UserMenuName, { variant: "subtitle2", children: user.name }),
|
|
4311
|
+
user.role && /* @__PURE__ */ jsx64(
|
|
4037
4312
|
UserMenuRoleChip,
|
|
4038
4313
|
{
|
|
4039
4314
|
label: user.role,
|
|
@@ -4042,25 +4317,25 @@ var UserMenu = ({
|
|
|
4042
4317
|
}
|
|
4043
4318
|
)
|
|
4044
4319
|
] }),
|
|
4045
|
-
/* @__PURE__ */
|
|
4320
|
+
/* @__PURE__ */ jsx64(UserMenuEmail, { variant: "caption", children: user.email })
|
|
4046
4321
|
] })
|
|
4047
4322
|
] }) }),
|
|
4048
|
-
/* @__PURE__ */
|
|
4049
|
-
/* @__PURE__ */
|
|
4050
|
-
/* @__PURE__ */
|
|
4051
|
-
/* @__PURE__ */
|
|
4052
|
-
/* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ jsx64(Divider8, {}),
|
|
4324
|
+
/* @__PURE__ */ jsxs23(UserMenuMenuItem, { onClick: () => handleMenuAction(onProfileClick), children: [
|
|
4325
|
+
/* @__PURE__ */ jsx64(ListItemIcon3, { children: /* @__PURE__ */ jsx64(UserIcon, { size: 18 }) }),
|
|
4326
|
+
/* @__PURE__ */ jsx64(ListItemText4, { primary: "Profile" }),
|
|
4327
|
+
/* @__PURE__ */ jsx64(ChevronRight, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
4053
4328
|
] }),
|
|
4054
|
-
/* @__PURE__ */
|
|
4055
|
-
/* @__PURE__ */
|
|
4056
|
-
/* @__PURE__ */
|
|
4057
|
-
/* @__PURE__ */
|
|
4329
|
+
/* @__PURE__ */ jsxs23(UserMenuMenuItem, { onClick: () => handleMenuAction(onSettingsClick), children: [
|
|
4330
|
+
/* @__PURE__ */ jsx64(ListItemIcon3, { children: /* @__PURE__ */ jsx64(Settings, { size: 18 }) }),
|
|
4331
|
+
/* @__PURE__ */ jsx64(ListItemText4, { primary: "Settings" }),
|
|
4332
|
+
/* @__PURE__ */ jsx64(ChevronRight, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
4058
4333
|
] }),
|
|
4059
|
-
/* @__PURE__ */
|
|
4060
|
-
/* @__PURE__ */
|
|
4061
|
-
/* @__PURE__ */
|
|
4062
|
-
/* @__PURE__ */
|
|
4063
|
-
user.role && /* @__PURE__ */
|
|
4334
|
+
/* @__PURE__ */ jsxs23(UserMenuMenuItem, { onClick: () => handleMenuAction(onBillingClick), children: [
|
|
4335
|
+
/* @__PURE__ */ jsx64(ListItemIcon3, { children: /* @__PURE__ */ jsx64(CreditCard, { size: 18 }) }),
|
|
4336
|
+
/* @__PURE__ */ jsx64(ListItemText4, { primary: "Billing" }),
|
|
4337
|
+
/* @__PURE__ */ jsxs23(Box27, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4338
|
+
user.role && /* @__PURE__ */ jsx64(
|
|
4064
4339
|
UserMenuBillingChip,
|
|
4065
4340
|
{
|
|
4066
4341
|
label: user.role,
|
|
@@ -4068,13 +4343,13 @@ var UserMenu = ({
|
|
|
4068
4343
|
variant: "outlined"
|
|
4069
4344
|
}
|
|
4070
4345
|
),
|
|
4071
|
-
/* @__PURE__ */
|
|
4346
|
+
/* @__PURE__ */ jsx64(ChevronRight, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
4072
4347
|
] })
|
|
4073
4348
|
] }),
|
|
4074
|
-
/* @__PURE__ */
|
|
4075
|
-
/* @__PURE__ */
|
|
4076
|
-
/* @__PURE__ */
|
|
4077
|
-
/* @__PURE__ */
|
|
4349
|
+
/* @__PURE__ */ jsx64(Divider8, {}),
|
|
4350
|
+
/* @__PURE__ */ jsxs23(UserMenuLogoutItem, { onClick: () => handleMenuAction(onLogout), children: [
|
|
4351
|
+
/* @__PURE__ */ jsx64(UserMenuLogoutIcon, { children: /* @__PURE__ */ jsx64(LogOut, { size: 18 }) }),
|
|
4352
|
+
/* @__PURE__ */ jsx64(ListItemText4, { primary: "Log out" })
|
|
4078
4353
|
] })
|
|
4079
4354
|
]
|
|
4080
4355
|
}
|
|
@@ -4083,15 +4358,15 @@ var UserMenu = ({
|
|
|
4083
4358
|
};
|
|
4084
4359
|
|
|
4085
4360
|
// src/components/NotificationBanner/NotificationBanner.tsx
|
|
4086
|
-
import * as
|
|
4361
|
+
import * as React22 from "react";
|
|
4087
4362
|
import Alert from "@mui/material/Alert";
|
|
4088
4363
|
import AlertTitle from "@mui/material/AlertTitle";
|
|
4089
4364
|
import Collapse2 from "@mui/material/Collapse";
|
|
4090
|
-
import
|
|
4365
|
+
import Button4 from "@mui/material/Button";
|
|
4091
4366
|
import Box28 from "@mui/material/Box";
|
|
4092
|
-
import { styled as
|
|
4093
|
-
import { jsx as
|
|
4094
|
-
var NotificationBannerAlert =
|
|
4367
|
+
import { styled as styled53 } from "@mui/material/styles";
|
|
4368
|
+
import { jsx as jsx65, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4369
|
+
var NotificationBannerAlert = styled53(Alert, {
|
|
4095
4370
|
name: "MuiNotificationBanner",
|
|
4096
4371
|
slot: "Root"
|
|
4097
4372
|
})({
|
|
@@ -4109,7 +4384,7 @@ var NotificationBannerAlert = styled51(Alert, {
|
|
|
4109
4384
|
alignItems: "center"
|
|
4110
4385
|
}
|
|
4111
4386
|
});
|
|
4112
|
-
var NotificationBannerContent =
|
|
4387
|
+
var NotificationBannerContent = styled53(Box28, {
|
|
4113
4388
|
name: "MuiNotificationBanner",
|
|
4114
4389
|
slot: "Content"
|
|
4115
4390
|
})({
|
|
@@ -4118,7 +4393,7 @@ var NotificationBannerContent = styled51(Box28, {
|
|
|
4118
4393
|
gap: 2,
|
|
4119
4394
|
flex: 1
|
|
4120
4395
|
});
|
|
4121
|
-
var NotificationBannerAction =
|
|
4396
|
+
var NotificationBannerAction = styled53(Button4, {
|
|
4122
4397
|
name: "MuiNotificationBanner",
|
|
4123
4398
|
slot: "Action"
|
|
4124
4399
|
})({
|
|
@@ -4139,22 +4414,22 @@ var NotificationBanner = ({
|
|
|
4139
4414
|
onDismiss,
|
|
4140
4415
|
sx
|
|
4141
4416
|
}) => {
|
|
4142
|
-
const [isVisible, setIsVisible] =
|
|
4143
|
-
|
|
4417
|
+
const [isVisible, setIsVisible] = React22.useState(visible);
|
|
4418
|
+
React22.useEffect(() => {
|
|
4144
4419
|
setIsVisible(visible);
|
|
4145
4420
|
}, [visible]);
|
|
4146
4421
|
const handleDismiss = () => {
|
|
4147
4422
|
setIsVisible(false);
|
|
4148
4423
|
onDismiss == null ? void 0 : onDismiss();
|
|
4149
4424
|
};
|
|
4150
|
-
return /* @__PURE__ */
|
|
4425
|
+
return /* @__PURE__ */ jsx65(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx65(
|
|
4151
4426
|
NotificationBannerAlert,
|
|
4152
4427
|
{
|
|
4153
4428
|
severity,
|
|
4154
4429
|
variant: "filled",
|
|
4155
4430
|
onClose: handleDismiss,
|
|
4156
4431
|
sx,
|
|
4157
|
-
action: actionLabel && onAction ? /* @__PURE__ */
|
|
4432
|
+
action: actionLabel && onAction ? /* @__PURE__ */ jsx65(
|
|
4158
4433
|
NotificationBannerAction,
|
|
4159
4434
|
{
|
|
4160
4435
|
color: "inherit",
|
|
@@ -4163,19 +4438,19 @@ var NotificationBanner = ({
|
|
|
4163
4438
|
children: actionLabel
|
|
4164
4439
|
}
|
|
4165
4440
|
) : void 0,
|
|
4166
|
-
children: /* @__PURE__ */
|
|
4167
|
-
title && /* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4441
|
+
children: /* @__PURE__ */ jsxs24(NotificationBannerContent, { children: [
|
|
4442
|
+
title && /* @__PURE__ */ jsx65(AlertTitle, { sx: { mb: 0 }, children: title }),
|
|
4443
|
+
/* @__PURE__ */ jsx65(Box28, { component: "span", children: message })
|
|
4169
4444
|
] })
|
|
4170
4445
|
}
|
|
4171
4446
|
) });
|
|
4172
4447
|
};
|
|
4173
4448
|
|
|
4174
4449
|
// src/components/Form/CardButton.tsx
|
|
4175
|
-
import { Card as Card2, ButtonBase, Box as Box29, styled as
|
|
4450
|
+
import { Card as Card2, ButtonBase, Box as Box29, styled as styled54 } from "@mui/material";
|
|
4176
4451
|
import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
|
|
4177
|
-
import { jsx as
|
|
4178
|
-
var StyledCardButton =
|
|
4452
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
4453
|
+
var StyledCardButton = styled54(Card2, {
|
|
4179
4454
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
4180
4455
|
})(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
|
|
4181
4456
|
flexDirection: "column",
|
|
@@ -4203,7 +4478,7 @@ var StyledCardButton = styled52(Card2, {
|
|
|
4203
4478
|
}));
|
|
4204
4479
|
var CardButton = (props) => {
|
|
4205
4480
|
const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
|
|
4206
|
-
return /* @__PURE__ */
|
|
4481
|
+
return /* @__PURE__ */ jsx66(
|
|
4207
4482
|
StyledCardButton,
|
|
4208
4483
|
__spreadValues({
|
|
4209
4484
|
alignItems,
|
|
@@ -4213,36 +4488,36 @@ var CardButton = (props) => {
|
|
|
4213
4488
|
}, rest)
|
|
4214
4489
|
);
|
|
4215
4490
|
};
|
|
4216
|
-
var DisappearingCardButtonContent = (props) => /* @__PURE__ */
|
|
4491
|
+
var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx66(Box29, __spreadValues({ className: "creation-flow-card-actions" }, props));
|
|
4217
4492
|
|
|
4218
4493
|
// src/components/Form/Stack.tsx
|
|
4219
4494
|
import { Stack as OxygenStack } from "@mui/material";
|
|
4220
|
-
import { jsx as
|
|
4495
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
4221
4496
|
var Stack2 = (props) => {
|
|
4222
|
-
return /* @__PURE__ */
|
|
4497
|
+
return /* @__PURE__ */ jsx67(OxygenStack, __spreadValues({ spacing: 2 }, props));
|
|
4223
4498
|
};
|
|
4224
4499
|
|
|
4225
4500
|
// src/components/Form/Typography.tsx
|
|
4226
|
-
import { Typography as
|
|
4227
|
-
import { jsx as
|
|
4501
|
+
import { Typography as Typography17 } from "@mui/material";
|
|
4502
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
4228
4503
|
var Header2 = (props) => {
|
|
4229
4504
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
4230
|
-
return /* @__PURE__ */
|
|
4505
|
+
return /* @__PURE__ */ jsx68(Typography17, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
|
|
4231
4506
|
};
|
|
4232
4507
|
var Subheader = (props) => {
|
|
4233
4508
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
4234
|
-
return /* @__PURE__ */
|
|
4509
|
+
return /* @__PURE__ */ jsx68(Typography17, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
|
|
4235
4510
|
};
|
|
4236
4511
|
var Body = (props) => {
|
|
4237
4512
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
4238
|
-
return /* @__PURE__ */
|
|
4513
|
+
return /* @__PURE__ */ jsx68(Typography17, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
|
|
4239
4514
|
};
|
|
4240
4515
|
|
|
4241
4516
|
// src/components/Form/Section.tsx
|
|
4242
4517
|
import { Card as Card3, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
|
|
4243
|
-
import { jsx as
|
|
4518
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
4244
4519
|
var Section = ({ children }) => {
|
|
4245
|
-
return /* @__PURE__ */
|
|
4520
|
+
return /* @__PURE__ */ jsx69(Card3, { children: /* @__PURE__ */ jsx69(CardContent3, { children: /* @__PURE__ */ jsx69(Stack3, { direction: "column", spacing: 2, children }) }) });
|
|
4246
4521
|
};
|
|
4247
4522
|
|
|
4248
4523
|
// src/components/Form/Wizard.tsx
|
|
@@ -4254,30 +4529,30 @@ import {
|
|
|
4254
4529
|
Stepper,
|
|
4255
4530
|
Divider as Divider9
|
|
4256
4531
|
} from "@mui/material";
|
|
4257
|
-
import { styled as
|
|
4532
|
+
import { styled as styled55 } from "@mui/material/styles";
|
|
4258
4533
|
import { useMemo as useMemo5 } from "react";
|
|
4259
|
-
import { jsx as
|
|
4260
|
-
var StyledWizardActionsStack =
|
|
4534
|
+
import { jsx as jsx70, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4535
|
+
var StyledWizardActionsStack = styled55(Stack2)(() => ({
|
|
4261
4536
|
justifyContent: "space-between",
|
|
4262
4537
|
flexGrow: 1
|
|
4263
4538
|
}));
|
|
4264
4539
|
function Wizard({ steps, activeStep, actions }) {
|
|
4265
4540
|
const step = useMemo5(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
|
|
4266
|
-
return /* @__PURE__ */
|
|
4267
|
-
/* @__PURE__ */
|
|
4268
|
-
/* @__PURE__ */
|
|
4269
|
-
/* @__PURE__ */
|
|
4270
|
-
/* @__PURE__ */
|
|
4541
|
+
return /* @__PURE__ */ jsx70(Card4, { children: /* @__PURE__ */ jsx70(CardContent4, { children: /* @__PURE__ */ jsxs25(Stack2, { children: [
|
|
4542
|
+
/* @__PURE__ */ jsx70(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx70(Step, { children: /* @__PURE__ */ jsx70(StepLabel, { children: step2.label }) }, step2.label)) }),
|
|
4543
|
+
/* @__PURE__ */ jsx70(Divider9, {}),
|
|
4544
|
+
/* @__PURE__ */ jsx70(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
|
|
4545
|
+
/* @__PURE__ */ jsx70(StyledWizardActionsStack, { direction: "row", children: actions })
|
|
4271
4546
|
] }) }) });
|
|
4272
4547
|
}
|
|
4273
4548
|
|
|
4274
4549
|
// src/components/Form/ElementWrapper.tsx
|
|
4275
4550
|
import { FormControl as FormControl3, FormLabel } from "@mui/material";
|
|
4276
|
-
import { jsx as
|
|
4551
|
+
import { jsx as jsx71, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4277
4552
|
var ElementWrapper = (props) => {
|
|
4278
4553
|
const { label, name, children } = props;
|
|
4279
|
-
return /* @__PURE__ */
|
|
4280
|
-
/* @__PURE__ */
|
|
4554
|
+
return /* @__PURE__ */ jsxs26(FormControl3, { fullWidth: true, children: [
|
|
4555
|
+
/* @__PURE__ */ jsx71(FormLabel, { htmlFor: name, children: label }),
|
|
4281
4556
|
children
|
|
4282
4557
|
] });
|
|
4283
4558
|
};
|
|
@@ -4301,15 +4576,15 @@ var Form = {
|
|
|
4301
4576
|
};
|
|
4302
4577
|
|
|
4303
4578
|
// src/components/AppShell/AppShell.tsx
|
|
4304
|
-
import * as
|
|
4579
|
+
import * as React23 from "react";
|
|
4305
4580
|
import Box34 from "@mui/material/Box";
|
|
4306
4581
|
|
|
4307
4582
|
// src/layouts/Layout.tsx
|
|
4308
4583
|
import Box30 from "@mui/material/Box";
|
|
4309
|
-
import { jsx as
|
|
4584
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
4310
4585
|
function Layout(_a) {
|
|
4311
4586
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
4312
|
-
return /* @__PURE__ */
|
|
4587
|
+
return /* @__PURE__ */ jsx72(
|
|
4313
4588
|
Box30,
|
|
4314
4589
|
__spreadProps(__spreadValues({
|
|
4315
4590
|
sx: __spreadValues({
|
|
@@ -4326,10 +4601,10 @@ var Layout_default = Layout;
|
|
|
4326
4601
|
|
|
4327
4602
|
// src/layouts/LayoutSidebar.tsx
|
|
4328
4603
|
import Box31 from "@mui/material/Box";
|
|
4329
|
-
import { jsx as
|
|
4604
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
4330
4605
|
function LayoutSidebar(_a) {
|
|
4331
4606
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
4332
|
-
return /* @__PURE__ */
|
|
4607
|
+
return /* @__PURE__ */ jsx73(
|
|
4333
4608
|
Box31,
|
|
4334
4609
|
__spreadProps(__spreadValues({
|
|
4335
4610
|
sx: __spreadValues({
|
|
@@ -4353,10 +4628,10 @@ var LayoutNavbar_default = LayoutNavbar;
|
|
|
4353
4628
|
|
|
4354
4629
|
// src/layouts/LayoutContent.tsx
|
|
4355
4630
|
import Box32 from "@mui/material/Box";
|
|
4356
|
-
import { jsx as
|
|
4631
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
4357
4632
|
function LayoutContent(_a) {
|
|
4358
4633
|
var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
|
|
4359
|
-
return /* @__PURE__ */
|
|
4634
|
+
return /* @__PURE__ */ jsx74(
|
|
4360
4635
|
Box32,
|
|
4361
4636
|
__spreadProps(__spreadValues({
|
|
4362
4637
|
component: "main",
|
|
@@ -4376,10 +4651,10 @@ var LayoutContent_default = LayoutContent;
|
|
|
4376
4651
|
|
|
4377
4652
|
// src/layouts/LayoutHeader.tsx
|
|
4378
4653
|
import Box33 from "@mui/material/Box";
|
|
4379
|
-
import { jsx as
|
|
4654
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
4380
4655
|
function LayoutHeader(_a) {
|
|
4381
4656
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
4382
|
-
return /* @__PURE__ */
|
|
4657
|
+
return /* @__PURE__ */ jsx75(
|
|
4383
4658
|
Box33,
|
|
4384
4659
|
__spreadProps(__spreadValues({
|
|
4385
4660
|
sx: __spreadValues({
|
|
@@ -4403,42 +4678,42 @@ var Layout2 = Object.assign(Layout_default, {
|
|
|
4403
4678
|
var layouts_default = Layout2;
|
|
4404
4679
|
|
|
4405
4680
|
// src/components/AppShell/AppShellNavbar.tsx
|
|
4406
|
-
import { Fragment as Fragment11, jsx as
|
|
4681
|
+
import { Fragment as Fragment11, jsx as jsx76 } from "react/jsx-runtime";
|
|
4407
4682
|
var AppShellNavbar = ({ children }) => {
|
|
4408
|
-
return /* @__PURE__ */
|
|
4683
|
+
return /* @__PURE__ */ jsx76(Fragment11, { children });
|
|
4409
4684
|
};
|
|
4410
4685
|
AppShellNavbar.displayName = "AppShellNavbar";
|
|
4411
4686
|
|
|
4412
4687
|
// src/components/AppShell/AppShellSidebar.tsx
|
|
4413
|
-
import { Fragment as Fragment12, jsx as
|
|
4688
|
+
import { Fragment as Fragment12, jsx as jsx77 } from "react/jsx-runtime";
|
|
4414
4689
|
var AppShellSidebar = ({ children }) => {
|
|
4415
|
-
return /* @__PURE__ */
|
|
4690
|
+
return /* @__PURE__ */ jsx77(Fragment12, { children });
|
|
4416
4691
|
};
|
|
4417
4692
|
AppShellSidebar.displayName = "AppShellSidebar";
|
|
4418
4693
|
|
|
4419
4694
|
// src/components/AppShell/AppShellMain.tsx
|
|
4420
|
-
import { Fragment as Fragment13, jsx as
|
|
4695
|
+
import { Fragment as Fragment13, jsx as jsx78 } from "react/jsx-runtime";
|
|
4421
4696
|
var AppShellMain = ({ children }) => {
|
|
4422
|
-
return /* @__PURE__ */
|
|
4697
|
+
return /* @__PURE__ */ jsx78(Fragment13, { children });
|
|
4423
4698
|
};
|
|
4424
4699
|
AppShellMain.displayName = "AppShellMain";
|
|
4425
4700
|
|
|
4426
4701
|
// src/components/AppShell/AppShellFooter.tsx
|
|
4427
|
-
import { Fragment as Fragment14, jsx as
|
|
4702
|
+
import { Fragment as Fragment14, jsx as jsx79 } from "react/jsx-runtime";
|
|
4428
4703
|
var AppShellFooter = ({ children }) => {
|
|
4429
|
-
return /* @__PURE__ */
|
|
4704
|
+
return /* @__PURE__ */ jsx79(Fragment14, { children });
|
|
4430
4705
|
};
|
|
4431
4706
|
AppShellFooter.displayName = "AppShellFooter";
|
|
4432
4707
|
|
|
4433
4708
|
// src/components/AppShell/AppShellNotificationPanel.tsx
|
|
4434
|
-
import { Fragment as Fragment15, jsx as
|
|
4709
|
+
import { Fragment as Fragment15, jsx as jsx80 } from "react/jsx-runtime";
|
|
4435
4710
|
var AppShellNotificationPanel = ({ children }) => {
|
|
4436
|
-
return /* @__PURE__ */
|
|
4711
|
+
return /* @__PURE__ */ jsx80(Fragment15, { children });
|
|
4437
4712
|
};
|
|
4438
4713
|
AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
|
|
4439
4714
|
|
|
4440
4715
|
// src/components/AppShell/AppShell.tsx
|
|
4441
|
-
import { jsx as
|
|
4716
|
+
import { jsx as jsx81, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4442
4717
|
var SLOT_DISPLAY_NAMES = {
|
|
4443
4718
|
Navbar: "AppShellNavbar",
|
|
4444
4719
|
Sidebar: "AppShellSidebar",
|
|
@@ -4454,9 +4729,9 @@ var extractSlots = (children) => {
|
|
|
4454
4729
|
footer: null,
|
|
4455
4730
|
notificationPanel: null
|
|
4456
4731
|
};
|
|
4457
|
-
|
|
4732
|
+
React23.Children.forEach(children, (child) => {
|
|
4458
4733
|
var _a;
|
|
4459
|
-
if (
|
|
4734
|
+
if (React23.isValidElement(child)) {
|
|
4460
4735
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
4461
4736
|
const childProps = child.props;
|
|
4462
4737
|
switch (displayName) {
|
|
@@ -4486,12 +4761,12 @@ var extractSlots = (children) => {
|
|
|
4486
4761
|
};
|
|
4487
4762
|
var AppShell = ({ children, sx }) => {
|
|
4488
4763
|
const slots = extractSlots(children);
|
|
4489
|
-
return /* @__PURE__ */
|
|
4490
|
-
slots.navbar && /* @__PURE__ */
|
|
4491
|
-
/* @__PURE__ */
|
|
4492
|
-
slots.sidebar && /* @__PURE__ */
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
/* @__PURE__ */
|
|
4764
|
+
return /* @__PURE__ */ jsxs27(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
|
|
4765
|
+
slots.navbar && /* @__PURE__ */ jsx81(layouts_default.Navbar, { children: slots.navbar }),
|
|
4766
|
+
/* @__PURE__ */ jsxs27(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
|
|
4767
|
+
slots.sidebar && /* @__PURE__ */ jsx81(layouts_default.Sidebar, { children: slots.sidebar }),
|
|
4768
|
+
/* @__PURE__ */ jsxs27(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column" }, children: [
|
|
4769
|
+
/* @__PURE__ */ jsx81(Box34, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
|
|
4495
4770
|
slots.footer
|
|
4496
4771
|
] })
|
|
4497
4772
|
] }),
|
|
@@ -4507,7 +4782,7 @@ AppShell.displayName = "AppShell";
|
|
|
4507
4782
|
|
|
4508
4783
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
4509
4784
|
import MuiTable from "@mui/material/Table";
|
|
4510
|
-
import { styled as
|
|
4785
|
+
import { styled as styled60 } from "@mui/material/styles";
|
|
4511
4786
|
|
|
4512
4787
|
// src/components/ListingTable/shared/types.ts
|
|
4513
4788
|
var densityStyles = {
|
|
@@ -4519,7 +4794,7 @@ var densityStyles = {
|
|
|
4519
4794
|
// src/components/ListingTable/ListingTable/ListingTableContainer.tsx
|
|
4520
4795
|
import MuiTableContainer from "@mui/material/TableContainer";
|
|
4521
4796
|
import Paper from "@mui/material/Paper";
|
|
4522
|
-
import { jsx as
|
|
4797
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
4523
4798
|
function ListingTableContainer(_a) {
|
|
4524
4799
|
var _b = _a, {
|
|
4525
4800
|
elevation = 1,
|
|
@@ -4531,17 +4806,17 @@ function ListingTableContainer(_a) {
|
|
|
4531
4806
|
"children"
|
|
4532
4807
|
]);
|
|
4533
4808
|
if (disablePaper) {
|
|
4534
|
-
return /* @__PURE__ */
|
|
4809
|
+
return /* @__PURE__ */ jsx82(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
4535
4810
|
}
|
|
4536
|
-
return /* @__PURE__ */
|
|
4811
|
+
return /* @__PURE__ */ jsx82(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
4537
4812
|
}
|
|
4538
4813
|
var ListingTableContainer_default = ListingTableContainer;
|
|
4539
4814
|
|
|
4540
4815
|
// src/components/ListingTable/ListingTable/ListingTableHead.tsx
|
|
4541
4816
|
import MuiTableHead from "@mui/material/TableHead";
|
|
4542
|
-
import { styled as
|
|
4543
|
-
import { jsx as
|
|
4544
|
-
var StyledTableHead =
|
|
4817
|
+
import { styled as styled56 } from "@mui/material/styles";
|
|
4818
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
4819
|
+
var StyledTableHead = styled56(MuiTableHead)(({ theme }) => ({
|
|
4545
4820
|
"& .MuiTableCell-head": __spreadValues(__spreadValues({
|
|
4546
4821
|
fontWeight: 600
|
|
4547
4822
|
}, theme.applyStyles("light", {
|
|
@@ -4552,68 +4827,75 @@ var StyledTableHead = styled54(MuiTableHead)(({ theme }) => ({
|
|
|
4552
4827
|
}));
|
|
4553
4828
|
function ListingTableHead(_a) {
|
|
4554
4829
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4555
|
-
return /* @__PURE__ */
|
|
4830
|
+
return /* @__PURE__ */ jsx83(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
|
|
4556
4831
|
}
|
|
4557
4832
|
var ListingTableHead_default = ListingTableHead;
|
|
4558
4833
|
|
|
4559
4834
|
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
4560
4835
|
import MuiTableBody from "@mui/material/TableBody";
|
|
4561
|
-
import { jsx as
|
|
4836
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
4562
4837
|
function ListingTableBody(_a) {
|
|
4563
4838
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4564
|
-
return /* @__PURE__ */
|
|
4839
|
+
return /* @__PURE__ */ jsx84(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
|
|
4565
4840
|
}
|
|
4566
4841
|
var ListingTableBody_default = ListingTableBody;
|
|
4567
4842
|
|
|
4568
4843
|
// src/components/ListingTable/ListingTable/ListingTableFooter.tsx
|
|
4569
4844
|
import MuiTableFooter from "@mui/material/TableFooter";
|
|
4570
|
-
import { jsx as
|
|
4845
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
4571
4846
|
function ListingTableFooter(_a) {
|
|
4572
4847
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
4573
|
-
return /* @__PURE__ */
|
|
4848
|
+
return /* @__PURE__ */ jsx85(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
|
|
4574
4849
|
}
|
|
4575
4850
|
var ListingTableFooter_default = ListingTableFooter;
|
|
4576
4851
|
|
|
4577
4852
|
// src/components/ListingTable/ListingTable/ListingTableRow.tsx
|
|
4578
4853
|
import MuiTableRow from "@mui/material/TableRow";
|
|
4579
|
-
import { styled as
|
|
4580
|
-
import { jsx as
|
|
4581
|
-
var StyledTableRow =
|
|
4854
|
+
import { styled as styled57, alpha } from "@mui/material/styles";
|
|
4855
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
4856
|
+
var StyledTableRow = styled57(MuiTableRow, {
|
|
4582
4857
|
shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
|
|
4583
4858
|
})(({ theme: muiTheme, clickable, variant = "table" }) => {
|
|
4584
|
-
var _a, _b, _c, _d;
|
|
4585
4859
|
const theme = muiTheme;
|
|
4586
|
-
const borderRadius =
|
|
4860
|
+
const borderRadius = 8;
|
|
4587
4861
|
const isDarkMode = theme.palette.mode === "dark";
|
|
4588
4862
|
return __spreadValues(__spreadValues(__spreadValues({}, clickable && {
|
|
4589
4863
|
cursor: "pointer"
|
|
4590
|
-
}), variant === "card" && {
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
backgroundColor:
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4864
|
+
}), variant === "card" && (() => {
|
|
4865
|
+
var _a, _b, _c, _d;
|
|
4866
|
+
const borderColor = alpha(
|
|
4867
|
+
isDarkMode ? theme.palette.common.white : theme.palette.common.black,
|
|
4868
|
+
isDarkMode ? 0.3 : 0.12
|
|
4869
|
+
);
|
|
4870
|
+
return {
|
|
4871
|
+
// Use acrylic background for glassmorphism effect, consistent with MuiCard/MuiPaper
|
|
4872
|
+
backgroundColor: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.background.acrylic) != null ? _b : (theme.vars || theme).palette.background.paper,
|
|
4873
|
+
backdropFilter: (_c = theme.blur) == null ? void 0 : _c.light,
|
|
4874
|
+
WebkitBackdropFilter: (_d = theme.blur) == null ? void 0 : _d.light,
|
|
4875
|
+
borderRadius,
|
|
4876
|
+
"& .MuiTableCell-root": {
|
|
4877
|
+
backgroundColor: "transparent",
|
|
4878
|
+
// Apply top and bottom borders to all cells
|
|
4879
|
+
borderTop: `1px solid ${borderColor}`,
|
|
4880
|
+
borderBottom: `1px solid ${borderColor}`,
|
|
4881
|
+
"&:first-of-type": {
|
|
4882
|
+
borderTopLeftRadius: borderRadius,
|
|
4883
|
+
borderBottomLeftRadius: borderRadius,
|
|
4884
|
+
// Left border on first cell
|
|
4885
|
+
borderLeft: `1px solid ${borderColor}`
|
|
4886
|
+
},
|
|
4887
|
+
"&:last-of-type": {
|
|
4888
|
+
borderTopRightRadius: borderRadius,
|
|
4889
|
+
borderBottomRightRadius: borderRadius,
|
|
4890
|
+
// Right border on last cell
|
|
4891
|
+
borderRight: `1px solid ${borderColor}`
|
|
4892
|
+
}
|
|
4602
4893
|
},
|
|
4603
|
-
"&:
|
|
4604
|
-
|
|
4605
|
-
borderBottomRightRadius: borderRadius
|
|
4894
|
+
"&:hover": {
|
|
4895
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
4606
4896
|
}
|
|
4607
|
-
}
|
|
4608
|
-
|
|
4609
|
-
boxShadow: `inset 0 0 0 1px ${alpha(
|
|
4610
|
-
isDarkMode ? theme.palette.common.white : theme.palette.common.black,
|
|
4611
|
-
isDarkMode ? 0.1 : 0.06
|
|
4612
|
-
)}`,
|
|
4613
|
-
"&:hover": {
|
|
4614
|
-
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
4615
|
-
}
|
|
4616
|
-
}), variant === "table" && {
|
|
4897
|
+
};
|
|
4898
|
+
})()), variant === "table" && {
|
|
4617
4899
|
"&:last-child td, &:last-child th": {
|
|
4618
4900
|
border: 0
|
|
4619
4901
|
}
|
|
@@ -4629,15 +4911,15 @@ function ListingTableRow(_a) {
|
|
|
4629
4911
|
"variant",
|
|
4630
4912
|
"children"
|
|
4631
4913
|
]);
|
|
4632
|
-
return /* @__PURE__ */
|
|
4914
|
+
return /* @__PURE__ */ jsx86(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
|
|
4633
4915
|
}
|
|
4634
4916
|
var ListingTableRow_default = ListingTableRow;
|
|
4635
4917
|
|
|
4636
4918
|
// src/components/ListingTable/ListingTable/ListingTableCell.tsx
|
|
4637
4919
|
import MuiTableCell from "@mui/material/TableCell";
|
|
4638
|
-
import { styled as
|
|
4639
|
-
import { jsx as
|
|
4640
|
-
var StyledTableCell =
|
|
4920
|
+
import { styled as styled58 } from "@mui/material/styles";
|
|
4921
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
4922
|
+
var StyledTableCell = styled58(MuiTableCell, {
|
|
4641
4923
|
shouldForwardProp: (prop) => {
|
|
4642
4924
|
const excludedProps = ["truncate", "maxWidth"];
|
|
4643
4925
|
return !excludedProps.some((excluded) => excluded === prop);
|
|
@@ -4659,7 +4941,7 @@ function ListingTableCell(_a) {
|
|
|
4659
4941
|
"maxWidth",
|
|
4660
4942
|
"children"
|
|
4661
4943
|
]);
|
|
4662
|
-
return /* @__PURE__ */
|
|
4944
|
+
return /* @__PURE__ */ jsx87(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
|
|
4663
4945
|
}
|
|
4664
4946
|
var ListingTableCell_default = ListingTableCell;
|
|
4665
4947
|
|
|
@@ -4672,14 +4954,14 @@ import IconButton7 from "@mui/material/IconButton";
|
|
|
4672
4954
|
import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
|
|
4673
4955
|
|
|
4674
4956
|
// src/components/ListingTable/context.ts
|
|
4675
|
-
import * as
|
|
4676
|
-
var ListingTableContext =
|
|
4957
|
+
import * as React24 from "react";
|
|
4958
|
+
var ListingTableContext = React24.createContext(null);
|
|
4677
4959
|
ListingTableContext.displayName = "ListingTableContext";
|
|
4678
4960
|
var useListingTable = () => {
|
|
4679
|
-
return
|
|
4961
|
+
return React24.useContext(ListingTableContext);
|
|
4680
4962
|
};
|
|
4681
4963
|
var useListingTableRequired = () => {
|
|
4682
|
-
const context =
|
|
4964
|
+
const context = React24.useContext(ListingTableContext);
|
|
4683
4965
|
if (!context) {
|
|
4684
4966
|
throw new Error(
|
|
4685
4967
|
"useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
|
|
@@ -4689,7 +4971,7 @@ var useListingTableRequired = () => {
|
|
|
4689
4971
|
};
|
|
4690
4972
|
|
|
4691
4973
|
// src/components/ListingTable/shared/ListingTableToolbar.tsx
|
|
4692
|
-
import { Fragment as Fragment16, jsx as
|
|
4974
|
+
import { Fragment as Fragment16, jsx as jsx88, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4693
4975
|
function ListingTableToolbar({
|
|
4694
4976
|
showSearch = false,
|
|
4695
4977
|
searchSlot,
|
|
@@ -4730,7 +5012,7 @@ function ListingTableToolbar({
|
|
|
4730
5012
|
return searchSlot;
|
|
4731
5013
|
}
|
|
4732
5014
|
if (showSearch) {
|
|
4733
|
-
return /* @__PURE__ */
|
|
5015
|
+
return /* @__PURE__ */ jsx88(
|
|
4734
5016
|
TextField3,
|
|
4735
5017
|
{
|
|
4736
5018
|
size: "small",
|
|
@@ -4742,15 +5024,15 @@ function ListingTableToolbar({
|
|
|
4742
5024
|
maxWidth: searchMaxWidth
|
|
4743
5025
|
},
|
|
4744
5026
|
InputProps: {
|
|
4745
|
-
startAdornment: /* @__PURE__ */
|
|
4746
|
-
endAdornment: searchValue ? /* @__PURE__ */
|
|
5027
|
+
startAdornment: /* @__PURE__ */ jsx88(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx88(Search3, { size: 18 }) }),
|
|
5028
|
+
endAdornment: searchValue ? /* @__PURE__ */ jsx88(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx88(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", children: /* @__PURE__ */ jsx88(X4, { size: 16 }) }) }) : null
|
|
4747
5029
|
}
|
|
4748
5030
|
}
|
|
4749
5031
|
);
|
|
4750
5032
|
}
|
|
4751
5033
|
return null;
|
|
4752
5034
|
};
|
|
4753
|
-
return /* @__PURE__ */
|
|
5035
|
+
return /* @__PURE__ */ jsxs28(
|
|
4754
5036
|
Box35,
|
|
4755
5037
|
{
|
|
4756
5038
|
sx: __spreadValues({
|
|
@@ -4764,9 +5046,9 @@ function ListingTableToolbar({
|
|
|
4764
5046
|
children: [
|
|
4765
5047
|
renderSearch(),
|
|
4766
5048
|
children,
|
|
4767
|
-
actions && /* @__PURE__ */
|
|
4768
|
-
/* @__PURE__ */
|
|
4769
|
-
/* @__PURE__ */
|
|
5049
|
+
actions && /* @__PURE__ */ jsxs28(Fragment16, { children: [
|
|
5050
|
+
/* @__PURE__ */ jsx88(Box35, { sx: { flex: 1 } }),
|
|
5051
|
+
/* @__PURE__ */ jsx88(Box35, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
|
|
4770
5052
|
] })
|
|
4771
5053
|
]
|
|
4772
5054
|
}
|
|
@@ -4776,8 +5058,8 @@ var ListingTableToolbar_default = ListingTableToolbar;
|
|
|
4776
5058
|
|
|
4777
5059
|
// src/components/ListingTable/shared/ListingTableEmptyState.tsx
|
|
4778
5060
|
import Box36 from "@mui/material/Box";
|
|
4779
|
-
import
|
|
4780
|
-
import { jsx as
|
|
5061
|
+
import Typography18 from "@mui/material/Typography";
|
|
5062
|
+
import { jsx as jsx89, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4781
5063
|
function ListingTableEmptyState({
|
|
4782
5064
|
title = "No data available",
|
|
4783
5065
|
description,
|
|
@@ -4786,7 +5068,7 @@ function ListingTableEmptyState({
|
|
|
4786
5068
|
minHeight = 300,
|
|
4787
5069
|
sx
|
|
4788
5070
|
}) {
|
|
4789
|
-
return /* @__PURE__ */
|
|
5071
|
+
return /* @__PURE__ */ jsxs29(
|
|
4790
5072
|
Box36,
|
|
4791
5073
|
{
|
|
4792
5074
|
sx: __spreadValues({
|
|
@@ -4799,7 +5081,7 @@ function ListingTableEmptyState({
|
|
|
4799
5081
|
textAlign: "center"
|
|
4800
5082
|
}, sx),
|
|
4801
5083
|
children: [
|
|
4802
|
-
illustration && /* @__PURE__ */
|
|
5084
|
+
illustration && /* @__PURE__ */ jsx89(
|
|
4803
5085
|
Box36,
|
|
4804
5086
|
{
|
|
4805
5087
|
sx: {
|
|
@@ -4813,9 +5095,9 @@ function ListingTableEmptyState({
|
|
|
4813
5095
|
children: illustration
|
|
4814
5096
|
}
|
|
4815
5097
|
),
|
|
4816
|
-
/* @__PURE__ */
|
|
4817
|
-
description && /* @__PURE__ */
|
|
4818
|
-
action && /* @__PURE__ */
|
|
5098
|
+
/* @__PURE__ */ jsx89(Typography18, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
|
|
5099
|
+
description && /* @__PURE__ */ jsx89(Typography18, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
|
|
5100
|
+
action && /* @__PURE__ */ jsx89(Box36, { children: action })
|
|
4819
5101
|
]
|
|
4820
5102
|
}
|
|
4821
5103
|
);
|
|
@@ -4828,11 +5110,11 @@ import ToggleButton from "@mui/material/ToggleButton";
|
|
|
4828
5110
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
4829
5111
|
import Tooltip6 from "@mui/material/Tooltip";
|
|
4830
5112
|
import { AlignJustify, Menu as Menu3, List as List4 } from "@wso2/oxygen-ui-icons-react";
|
|
4831
|
-
import { jsx as
|
|
5113
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
4832
5114
|
var densityOptions = [
|
|
4833
|
-
{ value: "compact", label: "Compact", icon: /* @__PURE__ */
|
|
4834
|
-
{ value: "standard", label: "Standard", icon: /* @__PURE__ */
|
|
4835
|
-
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */
|
|
5115
|
+
{ value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx90(AlignJustify, { size: 18 }) },
|
|
5116
|
+
{ value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx90(Menu3, { size: 18 }) },
|
|
5117
|
+
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx90(List4, { size: 18 }) }
|
|
4836
5118
|
];
|
|
4837
5119
|
function ListingTableDensityControl({
|
|
4838
5120
|
value: valueProp,
|
|
@@ -4852,16 +5134,16 @@ function ListingTableDensityControl({
|
|
|
4852
5134
|
},
|
|
4853
5135
|
[effectiveOnChange]
|
|
4854
5136
|
);
|
|
4855
|
-
return /* @__PURE__ */
|
|
5137
|
+
return /* @__PURE__ */ jsx90(ToggleButtonGroup, { value, exclusive: true, onChange: handleChange, size, sx, children: densityOptions.map((option) => /* @__PURE__ */ jsx90(ToggleButton, { value: option.value, children: /* @__PURE__ */ jsx90(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx90("span", { style: { display: "flex", alignItems: "center" }, children: option.icon }) }) }, option.value)) });
|
|
4856
5138
|
}
|
|
4857
5139
|
var ListingTableDensityControl_default = ListingTableDensityControl;
|
|
4858
5140
|
|
|
4859
5141
|
// src/components/ListingTable/shared/ListingTableSortLabel.tsx
|
|
4860
5142
|
import { useCallback as useCallback3 } from "react";
|
|
4861
5143
|
import MuiTableSortLabel from "@mui/material/TableSortLabel";
|
|
4862
|
-
import { styled as
|
|
4863
|
-
import { jsx as
|
|
4864
|
-
var StyledTableSortLabel =
|
|
5144
|
+
import { styled as styled59 } from "@mui/material/styles";
|
|
5145
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
5146
|
+
var StyledTableSortLabel = styled59(MuiTableSortLabel)(({ theme }) => ({
|
|
4865
5147
|
color: "inherit !important",
|
|
4866
5148
|
"&.Mui-active": {
|
|
4867
5149
|
color: "inherit !important",
|
|
@@ -4904,13 +5186,13 @@ function ListingTableSortLabel(_a) {
|
|
|
4904
5186
|
},
|
|
4905
5187
|
[onClickProp, field, tableContext, active, direction]
|
|
4906
5188
|
);
|
|
4907
|
-
return /* @__PURE__ */
|
|
5189
|
+
return /* @__PURE__ */ jsx91(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
|
|
4908
5190
|
}
|
|
4909
5191
|
var ListingTableSortLabel_default = ListingTableSortLabel;
|
|
4910
5192
|
|
|
4911
5193
|
// src/components/ListingTable/shared/ListingTableRowActions.tsx
|
|
4912
5194
|
import Box37 from "@mui/material/Box";
|
|
4913
|
-
import { jsx as
|
|
5195
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
4914
5196
|
var alignmentMap = {
|
|
4915
5197
|
left: "flex-start",
|
|
4916
5198
|
center: "center",
|
|
@@ -4922,7 +5204,7 @@ function ListingTableRowActions({
|
|
|
4922
5204
|
align = "right",
|
|
4923
5205
|
sx
|
|
4924
5206
|
}) {
|
|
4925
|
-
return /* @__PURE__ */
|
|
5207
|
+
return /* @__PURE__ */ jsx92(
|
|
4926
5208
|
Box37,
|
|
4927
5209
|
{
|
|
4928
5210
|
className: "table-row-actions",
|
|
@@ -4947,8 +5229,8 @@ var ListingTableRowActions_default = ListingTableRowActions;
|
|
|
4947
5229
|
|
|
4948
5230
|
// src/components/ListingTable/shared/ListingTableCellIcon.tsx
|
|
4949
5231
|
import Box38 from "@mui/material/Box";
|
|
4950
|
-
import
|
|
4951
|
-
import { Fragment as Fragment17, jsx as
|
|
5232
|
+
import Typography19 from "@mui/material/Typography";
|
|
5233
|
+
import { Fragment as Fragment17, jsx as jsx93, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4952
5234
|
function ListingTableCellIcon({
|
|
4953
5235
|
icon,
|
|
4954
5236
|
primary,
|
|
@@ -4957,7 +5239,7 @@ function ListingTableCellIcon({
|
|
|
4957
5239
|
iconSx,
|
|
4958
5240
|
sx
|
|
4959
5241
|
}) {
|
|
4960
|
-
const iconElement = /* @__PURE__ */
|
|
5242
|
+
const iconElement = /* @__PURE__ */ jsx93(
|
|
4961
5243
|
Box38,
|
|
4962
5244
|
{
|
|
4963
5245
|
sx: __spreadValues({
|
|
@@ -4970,9 +5252,9 @@ function ListingTableCellIcon({
|
|
|
4970
5252
|
children: icon
|
|
4971
5253
|
}
|
|
4972
5254
|
);
|
|
4973
|
-
const textContent = /* @__PURE__ */
|
|
4974
|
-
/* @__PURE__ */
|
|
4975
|
-
|
|
5255
|
+
const textContent = /* @__PURE__ */ jsxs30(Box38, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
5256
|
+
/* @__PURE__ */ jsx93(
|
|
5257
|
+
Typography19,
|
|
4976
5258
|
{
|
|
4977
5259
|
variant: "body2",
|
|
4978
5260
|
component: "div",
|
|
@@ -4985,8 +5267,8 @@ function ListingTableCellIcon({
|
|
|
4985
5267
|
children: primary
|
|
4986
5268
|
}
|
|
4987
5269
|
),
|
|
4988
|
-
secondary && /* @__PURE__ */
|
|
4989
|
-
|
|
5270
|
+
secondary && /* @__PURE__ */ jsx93(
|
|
5271
|
+
Typography19,
|
|
4990
5272
|
{
|
|
4991
5273
|
variant: "caption",
|
|
4992
5274
|
component: "div",
|
|
@@ -5000,7 +5282,7 @@ function ListingTableCellIcon({
|
|
|
5000
5282
|
}
|
|
5001
5283
|
)
|
|
5002
5284
|
] });
|
|
5003
|
-
return /* @__PURE__ */
|
|
5285
|
+
return /* @__PURE__ */ jsx93(
|
|
5004
5286
|
Box38,
|
|
5005
5287
|
{
|
|
5006
5288
|
sx: __spreadValues({
|
|
@@ -5009,10 +5291,10 @@ function ListingTableCellIcon({
|
|
|
5009
5291
|
gap: 1.5,
|
|
5010
5292
|
minWidth: 0
|
|
5011
5293
|
}, sx),
|
|
5012
|
-
children: iconPosition === "left" ? /* @__PURE__ */
|
|
5294
|
+
children: iconPosition === "left" ? /* @__PURE__ */ jsxs30(Fragment17, { children: [
|
|
5013
5295
|
iconElement,
|
|
5014
5296
|
textContent
|
|
5015
|
-
] }) : /* @__PURE__ */
|
|
5297
|
+
] }) : /* @__PURE__ */ jsxs30(Fragment17, { children: [
|
|
5016
5298
|
textContent,
|
|
5017
5299
|
iconElement
|
|
5018
5300
|
] })
|
|
@@ -5023,7 +5305,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
|
|
|
5023
5305
|
|
|
5024
5306
|
// src/components/ListingTable/ListingTableProvider.tsx
|
|
5025
5307
|
import { useMemo as useMemo6 } from "react";
|
|
5026
|
-
import { jsx as
|
|
5308
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
5027
5309
|
function ListingTableProvider({
|
|
5028
5310
|
children,
|
|
5029
5311
|
// Search
|
|
@@ -5126,12 +5408,12 @@ function ListingTableProvider({
|
|
|
5126
5408
|
loading
|
|
5127
5409
|
]
|
|
5128
5410
|
);
|
|
5129
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ jsx94(ListingTableContext.Provider, { value: contextValue, children });
|
|
5130
5412
|
}
|
|
5131
5413
|
|
|
5132
5414
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
5133
|
-
import { jsx as
|
|
5134
|
-
var StyledTable =
|
|
5415
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
5416
|
+
var StyledTable = styled60(MuiTable, {
|
|
5135
5417
|
shouldForwardProp: (prop) => {
|
|
5136
5418
|
const excludedProps = ["variant", "density", "striped", "bordered"];
|
|
5137
5419
|
return !excludedProps.some((excluded) => excluded === prop);
|
|
@@ -5184,7 +5466,7 @@ function ListingTable(_a) {
|
|
|
5184
5466
|
"children",
|
|
5185
5467
|
"sx"
|
|
5186
5468
|
]);
|
|
5187
|
-
return /* @__PURE__ */
|
|
5469
|
+
return /* @__PURE__ */ jsx95(
|
|
5188
5470
|
StyledTable,
|
|
5189
5471
|
__spreadProps(__spreadValues({
|
|
5190
5472
|
variant,
|
|
@@ -5217,7 +5499,7 @@ var ListingTable_default = ListingTableCompound;
|
|
|
5217
5499
|
// src/animations/ParticleBackground/ParticleBackground.tsx
|
|
5218
5500
|
import { useEffect as useEffect4, useRef } from "react";
|
|
5219
5501
|
import { useColorScheme as useColorScheme3 } from "@mui/material/styles";
|
|
5220
|
-
import { jsx as
|
|
5502
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
5221
5503
|
var ParticleBackground = ({
|
|
5222
5504
|
opacity = 0.5,
|
|
5223
5505
|
baseDensity = 0.12,
|
|
@@ -5402,7 +5684,7 @@ var ParticleBackground = ({
|
|
|
5402
5684
|
cancelAnimationFrame(animationFrameId);
|
|
5403
5685
|
};
|
|
5404
5686
|
}, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
|
|
5405
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ jsx96(
|
|
5406
5688
|
"canvas",
|
|
5407
5689
|
{
|
|
5408
5690
|
ref: canvasRef,
|
|
@@ -5430,37 +5712,37 @@ function useThemeContent(contentMap, fallback) {
|
|
|
5430
5712
|
var useThemeContent_default = useThemeContent;
|
|
5431
5713
|
|
|
5432
5714
|
// src/hooks/useAppShell/useAppShell.ts
|
|
5433
|
-
import * as
|
|
5715
|
+
import * as React25 from "react";
|
|
5434
5716
|
var useAppShell = (options = {}) => {
|
|
5435
5717
|
const {
|
|
5436
5718
|
initialCollapsed = false,
|
|
5437
5719
|
initialActiveItem = "dashboard"
|
|
5438
5720
|
} = options;
|
|
5439
|
-
const [state, setState] =
|
|
5721
|
+
const [state, setState] = React25.useState({
|
|
5440
5722
|
sidebarCollapsed: initialCollapsed,
|
|
5441
5723
|
notificationPanelOpen: false,
|
|
5442
5724
|
activeMenuItem: initialActiveItem,
|
|
5443
5725
|
expandedMenus: {}
|
|
5444
5726
|
});
|
|
5445
|
-
const toggleSidebar =
|
|
5727
|
+
const toggleSidebar = React25.useCallback(() => {
|
|
5446
5728
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
|
|
5447
5729
|
}, []);
|
|
5448
|
-
const toggleNotificationPanel =
|
|
5730
|
+
const toggleNotificationPanel = React25.useCallback(() => {
|
|
5449
5731
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
5450
5732
|
notificationPanelOpen: !prev.notificationPanelOpen
|
|
5451
5733
|
}));
|
|
5452
5734
|
}, []);
|
|
5453
|
-
const setActiveMenuItem =
|
|
5735
|
+
const setActiveMenuItem = React25.useCallback((id) => {
|
|
5454
5736
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { activeMenuItem: id }));
|
|
5455
5737
|
}, []);
|
|
5456
|
-
const toggleMenu =
|
|
5738
|
+
const toggleMenu = React25.useCallback((id) => {
|
|
5457
5739
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
5458
5740
|
expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
|
|
5459
5741
|
[id]: !prev.expandedMenus[id]
|
|
5460
5742
|
})
|
|
5461
5743
|
}));
|
|
5462
5744
|
}, []);
|
|
5463
|
-
const actions =
|
|
5745
|
+
const actions = React25.useMemo(
|
|
5464
5746
|
() => ({
|
|
5465
5747
|
toggleSidebar,
|
|
5466
5748
|
toggleNotificationPanel,
|
|
@@ -5481,44 +5763,44 @@ var useAppShell = (options = {}) => {
|
|
|
5481
5763
|
};
|
|
5482
5764
|
|
|
5483
5765
|
// src/hooks/useNotifications/useNotifications.ts
|
|
5484
|
-
import * as
|
|
5766
|
+
import * as React26 from "react";
|
|
5485
5767
|
var generateId = () => {
|
|
5486
5768
|
return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
5487
5769
|
};
|
|
5488
5770
|
var useNotifications = (options = {}) => {
|
|
5489
5771
|
const { initialNotifications = [] } = options;
|
|
5490
|
-
const [notifications, setNotifications] =
|
|
5772
|
+
const [notifications, setNotifications] = React26.useState(
|
|
5491
5773
|
initialNotifications
|
|
5492
5774
|
);
|
|
5493
|
-
const markRead =
|
|
5775
|
+
const markRead = React26.useCallback((id) => {
|
|
5494
5776
|
setNotifications(
|
|
5495
5777
|
(prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
|
|
5496
5778
|
);
|
|
5497
5779
|
}, []);
|
|
5498
|
-
const dismiss =
|
|
5780
|
+
const dismiss = React26.useCallback((id) => {
|
|
5499
5781
|
setNotifications((prev) => prev.filter((n) => n.id !== id));
|
|
5500
5782
|
}, []);
|
|
5501
|
-
const markAllRead =
|
|
5783
|
+
const markAllRead = React26.useCallback(() => {
|
|
5502
5784
|
setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
|
|
5503
5785
|
}, []);
|
|
5504
|
-
const clearAll =
|
|
5786
|
+
const clearAll = React26.useCallback(() => {
|
|
5505
5787
|
setNotifications([]);
|
|
5506
5788
|
}, []);
|
|
5507
|
-
const add =
|
|
5789
|
+
const add = React26.useCallback((notification) => {
|
|
5508
5790
|
const newNotification = __spreadProps(__spreadValues({}, notification), {
|
|
5509
5791
|
id: generateId()
|
|
5510
5792
|
});
|
|
5511
5793
|
setNotifications((prev) => [newNotification, ...prev]);
|
|
5512
5794
|
}, []);
|
|
5513
|
-
const unreadCount =
|
|
5795
|
+
const unreadCount = React26.useMemo(
|
|
5514
5796
|
() => notifications.filter((n) => !n.read).length,
|
|
5515
5797
|
[notifications]
|
|
5516
5798
|
);
|
|
5517
|
-
const unreadNotifications =
|
|
5799
|
+
const unreadNotifications = React26.useMemo(
|
|
5518
5800
|
() => notifications.filter((n) => !n.read),
|
|
5519
5801
|
[notifications]
|
|
5520
5802
|
);
|
|
5521
|
-
const actions =
|
|
5803
|
+
const actions = React26.useMemo(
|
|
5522
5804
|
() => ({
|
|
5523
5805
|
markRead,
|
|
5524
5806
|
dismiss,
|
|
@@ -5539,17 +5821,16 @@ var useNotifications = (options = {}) => {
|
|
|
5539
5821
|
// src/index.ts
|
|
5540
5822
|
export * from "@mui/material";
|
|
5541
5823
|
import * as colors from "@mui/material/colors";
|
|
5542
|
-
import * as Charts from "@mui/x-charts";
|
|
5543
5824
|
import * as DataGrid from "@mui/x-data-grid";
|
|
5544
5825
|
import * as DatePickers from "@mui/x-date-pickers";
|
|
5545
5826
|
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
5546
5827
|
import * as TreeView from "@mui/x-tree-view";
|
|
5828
|
+
var version = package_default.version;
|
|
5547
5829
|
export {
|
|
5548
5830
|
AcrylicOrangeTheme_default as AcrylicOrangeTheme,
|
|
5549
5831
|
AcrylicPurpleTheme_default as AcrylicPurpleTheme,
|
|
5550
5832
|
AdapterDateFns,
|
|
5551
5833
|
AppShell,
|
|
5552
|
-
Charts,
|
|
5553
5834
|
ClassicTheme_default as ClassicTheme,
|
|
5554
5835
|
CodeBlock_default as CodeBlock,
|
|
5555
5836
|
ColorSchemeImage,
|
|
@@ -5590,6 +5871,7 @@ export {
|
|
|
5590
5871
|
useNotifications,
|
|
5591
5872
|
useThemeContent,
|
|
5592
5873
|
useThemeContent_default as useThemeContentDefault,
|
|
5593
|
-
useThemeSwitcher
|
|
5874
|
+
useThemeSwitcher,
|
|
5875
|
+
version
|
|
5594
5876
|
};
|
|
5595
5877
|
//# sourceMappingURL=index.js.map
|