@wso2/oxygen-ui 0.17.0 → 0.18.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/index.js
CHANGED
|
@@ -491,7 +491,7 @@ var init_createOxygenTheme = __esm({
|
|
|
491
491
|
// package.json
|
|
492
492
|
var package_default = {
|
|
493
493
|
name: "@wso2/oxygen-ui",
|
|
494
|
-
version: "0.
|
|
494
|
+
version: "0.18.0",
|
|
495
495
|
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
496
496
|
type: "module",
|
|
497
497
|
main: "./dist/index.js",
|
|
@@ -1725,87 +1725,176 @@ var PaleIndigo_default = createOxygenTheme(PaleIndigoThemeConfig, PaleBaseTheme_
|
|
|
1725
1725
|
// src/styles/Themes/WSO2Theme.ts
|
|
1726
1726
|
init_OxygenThemeBase();
|
|
1727
1727
|
init_createOxygenTheme();
|
|
1728
|
+
var neutral = {
|
|
1729
|
+
50: "#F7F7F7",
|
|
1730
|
+
100: "#EBEBEB",
|
|
1731
|
+
200: "#D9D9D9",
|
|
1732
|
+
300: "#C2C2C2",
|
|
1733
|
+
400: "#A9A9A9",
|
|
1734
|
+
600: "#767676",
|
|
1735
|
+
700: "#5C5C5C",
|
|
1736
|
+
800: "#444444",
|
|
1737
|
+
900: "#2E2E2E",
|
|
1738
|
+
950: "#161616"
|
|
1739
|
+
};
|
|
1740
|
+
var blue = {
|
|
1741
|
+
50: "#DFF7FF",
|
|
1742
|
+
100: "#C5EAFF",
|
|
1743
|
+
200: "#A6D5FF",
|
|
1744
|
+
300: "#86BBFF",
|
|
1745
|
+
400: "#699FFF",
|
|
1746
|
+
500: "#325FEB",
|
|
1747
|
+
800: "#1432A4",
|
|
1748
|
+
900: "#091E7A",
|
|
1749
|
+
950: "#02074B"
|
|
1750
|
+
};
|
|
1751
|
+
var orange = {
|
|
1752
|
+
50: "#FFE6D6",
|
|
1753
|
+
100: "#FFD0B8",
|
|
1754
|
+
200: "#FFB292",
|
|
1755
|
+
300: "#FF906B",
|
|
1756
|
+
400: "#FF6E47",
|
|
1757
|
+
500: "#F14E23",
|
|
1758
|
+
600: "#D32F00",
|
|
1759
|
+
700: "#AF0700",
|
|
1760
|
+
800: "#890000",
|
|
1761
|
+
900: "#640000",
|
|
1762
|
+
950: "#3B0000"
|
|
1763
|
+
};
|
|
1764
|
+
var navy = {
|
|
1765
|
+
canvas: "#0B142B",
|
|
1766
|
+
// Page, header and sidebar
|
|
1767
|
+
raised: "#12203E",
|
|
1768
|
+
// Cards, menus, list rows and selected items
|
|
1769
|
+
textPrimary: "#E4ECFA",
|
|
1770
|
+
textSecondary: "rgba(228, 236, 250, 0.80)",
|
|
1771
|
+
accentLight: "#B9D8FF",
|
|
1772
|
+
accent: "#6FA8F5",
|
|
1773
|
+
accentDark: "#164C93"
|
|
1774
|
+
};
|
|
1775
|
+
var lightMesh = `radial-gradient(55% 50% at 8% 4%, ${orange[400]} 0%, ${orange[500]}6b 32%, ${orange[500]}00 66%),radial-gradient(50% 55% at 2% 96%, #FFFFFF 0%, #FFFFFF66 40%, #FFFFFF00 74%),radial-gradient(80% 85% at 96% 26%, ${blue[950]} 0%, ${blue[800]} 45%, ${blue[950]}00 88%),linear-gradient(120deg, ${orange[100]} 0%, #8891A8 52%, ${blue[950]} 100%)`;
|
|
1776
|
+
var lightWash = (alpha4) => `linear-gradient(rgba(255, 255, 255, ${alpha4}), rgba(255, 255, 255, ${alpha4})), ${lightMesh}`;
|
|
1777
|
+
var semantic = {
|
|
1778
|
+
error: "#E60000",
|
|
1779
|
+
warning: "#FFB400",
|
|
1780
|
+
success: "#00C853",
|
|
1781
|
+
// Darker shades for text on light surfaces; the base colors fall below 4.5:1 on white
|
|
1782
|
+
warningText: "#8A5A00",
|
|
1783
|
+
successText: "#007A33"
|
|
1784
|
+
};
|
|
1785
|
+
var grey = {
|
|
1786
|
+
50: neutral[50],
|
|
1787
|
+
100: neutral[100],
|
|
1788
|
+
200: neutral[200],
|
|
1789
|
+
300: neutral[300],
|
|
1790
|
+
400: neutral[400],
|
|
1791
|
+
600: neutral[600],
|
|
1792
|
+
700: neutral[700],
|
|
1793
|
+
800: neutral[800],
|
|
1794
|
+
900: neutral[900]
|
|
1795
|
+
};
|
|
1728
1796
|
var WSO2ThemeConfig = {
|
|
1729
1797
|
colorSchemes: {
|
|
1730
1798
|
light: {
|
|
1731
1799
|
palette: {
|
|
1732
1800
|
primary: {
|
|
1733
|
-
|
|
1801
|
+
light: orange[500],
|
|
1802
|
+
main: orange[600],
|
|
1734
1803
|
// WSO2 Orange
|
|
1804
|
+
dark: orange[700],
|
|
1805
|
+
contrastText: "#FFFFFF"
|
|
1735
1806
|
},
|
|
1736
1807
|
secondary: {
|
|
1737
|
-
|
|
1738
|
-
|
|
1808
|
+
light: blue[500],
|
|
1809
|
+
main: blue[800],
|
|
1810
|
+
// WSO2 Blue
|
|
1811
|
+
dark: blue[900],
|
|
1812
|
+
contrastText: "#FFFFFF"
|
|
1739
1813
|
},
|
|
1740
1814
|
success: {
|
|
1741
|
-
main:
|
|
1742
|
-
|
|
1743
|
-
contrastText:
|
|
1815
|
+
main: semantic.success,
|
|
1816
|
+
dark: semantic.successText,
|
|
1817
|
+
contrastText: neutral[950]
|
|
1744
1818
|
},
|
|
1745
1819
|
warning: {
|
|
1746
|
-
main:
|
|
1747
|
-
|
|
1748
|
-
contrastText:
|
|
1820
|
+
main: semantic.warning,
|
|
1821
|
+
dark: semantic.warningText,
|
|
1822
|
+
contrastText: neutral[950]
|
|
1749
1823
|
},
|
|
1750
1824
|
error: {
|
|
1751
|
-
main:
|
|
1752
|
-
|
|
1753
|
-
contrastText: "#ffffff"
|
|
1825
|
+
main: semantic.error,
|
|
1826
|
+
contrastText: "#FFFFFF"
|
|
1754
1827
|
},
|
|
1755
1828
|
info: {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1829
|
+
light: blue[500],
|
|
1830
|
+
main: blue[800],
|
|
1831
|
+
dark: blue[900],
|
|
1832
|
+
contrastText: "#FFFFFF"
|
|
1759
1833
|
},
|
|
1834
|
+
grey,
|
|
1760
1835
|
background: {
|
|
1761
|
-
default: "#
|
|
1762
|
-
paper: "#
|
|
1763
|
-
acrylic: "#
|
|
1836
|
+
default: "#FFFFFF",
|
|
1837
|
+
paper: "#FFFFFF",
|
|
1838
|
+
acrylic: "#FFFFFF"
|
|
1764
1839
|
},
|
|
1765
1840
|
text: {
|
|
1766
|
-
primary:
|
|
1767
|
-
secondary:
|
|
1841
|
+
primary: blue[950],
|
|
1842
|
+
secondary: neutral[800]
|
|
1843
|
+
},
|
|
1844
|
+
divider: `${blue[950]}1f`,
|
|
1845
|
+
action: {
|
|
1846
|
+
selected: "#FFFFFF"
|
|
1768
1847
|
}
|
|
1769
1848
|
}
|
|
1770
1849
|
},
|
|
1771
1850
|
dark: {
|
|
1772
1851
|
palette: {
|
|
1773
1852
|
primary: {
|
|
1774
|
-
|
|
1775
|
-
|
|
1853
|
+
light: orange[500],
|
|
1854
|
+
main: orange[600],
|
|
1855
|
+
// WSO2 Orange, deepened so white text reads on navy
|
|
1856
|
+
dark: orange[700],
|
|
1857
|
+
contrastText: "#FFFFFF"
|
|
1776
1858
|
},
|
|
1777
1859
|
secondary: {
|
|
1778
|
-
|
|
1779
|
-
|
|
1860
|
+
light: navy.accentLight,
|
|
1861
|
+
main: navy.accent,
|
|
1862
|
+
// WSO2 Blue, lifted for contrast on navy
|
|
1863
|
+
dark: navy.accentDark,
|
|
1864
|
+
contrastText: neutral[950]
|
|
1780
1865
|
},
|
|
1781
1866
|
success: {
|
|
1782
|
-
main:
|
|
1783
|
-
|
|
1784
|
-
contrastText: "#ffffff"
|
|
1867
|
+
main: semantic.success,
|
|
1868
|
+
contrastText: neutral[950]
|
|
1785
1869
|
},
|
|
1786
1870
|
warning: {
|
|
1787
|
-
main:
|
|
1788
|
-
|
|
1789
|
-
contrastText: "#ffffff"
|
|
1871
|
+
main: semantic.warning,
|
|
1872
|
+
contrastText: neutral[950]
|
|
1790
1873
|
},
|
|
1791
1874
|
error: {
|
|
1792
|
-
main:
|
|
1793
|
-
|
|
1794
|
-
contrastText: "#ffffff"
|
|
1875
|
+
main: semantic.error,
|
|
1876
|
+
contrastText: "#FFFFFF"
|
|
1795
1877
|
},
|
|
1796
1878
|
info: {
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1879
|
+
light: navy.accentLight,
|
|
1880
|
+
main: navy.accent,
|
|
1881
|
+
dark: navy.accentDark,
|
|
1882
|
+
contrastText: neutral[950]
|
|
1800
1883
|
},
|
|
1884
|
+
grey,
|
|
1801
1885
|
background: {
|
|
1802
|
-
default:
|
|
1803
|
-
|
|
1804
|
-
|
|
1886
|
+
default: navy.canvas,
|
|
1887
|
+
// Navy night
|
|
1888
|
+
paper: navy.raised,
|
|
1889
|
+
acrylic: navy.raised
|
|
1805
1890
|
},
|
|
1806
1891
|
text: {
|
|
1807
|
-
primary:
|
|
1808
|
-
secondary:
|
|
1892
|
+
primary: navy.textPrimary,
|
|
1893
|
+
secondary: navy.textSecondary
|
|
1894
|
+
},
|
|
1895
|
+
divider: "rgba(255, 255, 255, 0.14)",
|
|
1896
|
+
action: {
|
|
1897
|
+
selected: navy.raised
|
|
1809
1898
|
}
|
|
1810
1899
|
}
|
|
1811
1900
|
}
|
|
@@ -1820,6 +1909,10 @@ var WSO2ThemeConfig = {
|
|
|
1820
1909
|
medium: "blur(16px)",
|
|
1821
1910
|
heavy: "blur(24px)"
|
|
1822
1911
|
},
|
|
1912
|
+
gradient: {
|
|
1913
|
+
// Signal: accent bars and 4px rules only
|
|
1914
|
+
primary: `linear-gradient(120deg, ${blue[500]} 0%, ${blue[300]} 50%, ${orange[500]} 100%)`
|
|
1915
|
+
},
|
|
1823
1916
|
syntax: {
|
|
1824
1917
|
light: {
|
|
1825
1918
|
background: "#f5f5f5"
|
|
@@ -1831,17 +1924,41 @@ var WSO2ThemeConfig = {
|
|
|
1831
1924
|
components: {
|
|
1832
1925
|
MuiCssBaseline: {
|
|
1833
1926
|
styleOverrides: {
|
|
1927
|
+
// Night: a single flat navy so the shell reads as one surface
|
|
1834
1928
|
"html[data-color-scheme='dark'] body": {
|
|
1835
|
-
|
|
1836
|
-
backgroundImage: "
|
|
1837
|
-
backgroundBlendMode: "screen"
|
|
1929
|
+
backgroundColor: navy.canvas,
|
|
1930
|
+
backgroundImage: "none"
|
|
1838
1931
|
},
|
|
1932
|
+
// Light: the washed mesh shows through the page behind the content
|
|
1839
1933
|
"html[data-color-scheme='light'] body": {
|
|
1840
1934
|
backgroundAttachment: "fixed",
|
|
1841
|
-
|
|
1935
|
+
backgroundColor: "#FFFFFF",
|
|
1936
|
+
backgroundImage: lightWash(0.9)
|
|
1842
1937
|
}
|
|
1843
1938
|
}
|
|
1844
1939
|
},
|
|
1940
|
+
// The header sits on the page color: it shows the washed mesh in light mode and the page navy in dark mode
|
|
1941
|
+
MuiHeader: {
|
|
1942
|
+
styleOverrides: {
|
|
1943
|
+
root: ({ theme }) => __spreadValues({
|
|
1944
|
+
backgroundColor: "transparent"
|
|
1945
|
+
}, theme.applyStyles("dark", {
|
|
1946
|
+
backgroundColor: theme.vars.palette.background.default
|
|
1947
|
+
}))
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
// The sidebar shows a little more of the mesh than the page in light mode and the page navy in dark mode
|
|
1951
|
+
MuiSidebar: {
|
|
1952
|
+
styleOverrides: {
|
|
1953
|
+
root: ({ theme }) => __spreadValues({
|
|
1954
|
+
backgroundAttachment: "fixed",
|
|
1955
|
+
backgroundImage: lightWash(0.86)
|
|
1956
|
+
}, theme.applyStyles("dark", {
|
|
1957
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
1958
|
+
backgroundImage: "none"
|
|
1959
|
+
}))
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1845
1962
|
MuiPaper: {
|
|
1846
1963
|
styleOverrides: {
|
|
1847
1964
|
root: ({ theme }) => ({
|
|
@@ -1855,33 +1972,50 @@ var WSO2ThemeConfig = {
|
|
|
1855
1972
|
MuiButton: {
|
|
1856
1973
|
styleOverrides: {
|
|
1857
1974
|
root: {
|
|
1858
|
-
color: "#000000",
|
|
1859
1975
|
transition: "color 0.3s ease-in-out",
|
|
1976
|
+
// Show labels as written (sentence case) instead of MUI's default all caps
|
|
1977
|
+
textTransform: "none"
|
|
1978
|
+
},
|
|
1979
|
+
// Light mode Orange 500 needs dark text; darker hover and dark mode oranges need white text
|
|
1980
|
+
containedPrimary: ({ theme }) => ({
|
|
1981
|
+
color: theme.vars.palette.primary.contrastText,
|
|
1860
1982
|
"&:hover": {
|
|
1861
1983
|
color: "#FFFFFF"
|
|
1862
1984
|
}
|
|
1863
|
-
},
|
|
1985
|
+
}),
|
|
1864
1986
|
outlined: ({ theme }) => ({
|
|
1865
1987
|
color: theme.palette.primary.main,
|
|
1866
1988
|
"&:hover": {
|
|
1867
1989
|
color: theme.palette.primary.main
|
|
1868
1990
|
},
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1991
|
+
// Light mode labels use the darker shade so they meet 4.5:1 on white surfaces
|
|
1992
|
+
"&.MuiButton-colorSuccess": __spreadValues({
|
|
1993
|
+
color: theme.vars.palette.success.dark,
|
|
1994
|
+
borderColor: theme.vars.palette.success.main,
|
|
1872
1995
|
"&:hover": {
|
|
1873
|
-
color: theme.palette.success.
|
|
1874
|
-
borderColor: theme.palette.success.main
|
|
1996
|
+
color: theme.vars.palette.success.dark,
|
|
1997
|
+
borderColor: theme.vars.palette.success.main
|
|
1875
1998
|
}
|
|
1876
|
-
},
|
|
1877
|
-
|
|
1878
|
-
color: theme.palette.warning.main,
|
|
1879
|
-
borderColor: theme.palette.warning.main,
|
|
1999
|
+
}, theme.applyStyles("dark", {
|
|
2000
|
+
color: theme.vars.palette.success.main,
|
|
1880
2001
|
"&:hover": {
|
|
1881
|
-
color: theme.palette.
|
|
1882
|
-
borderColor: theme.palette.warning.main
|
|
2002
|
+
color: theme.vars.palette.success.main
|
|
1883
2003
|
}
|
|
1884
|
-
},
|
|
2004
|
+
})),
|
|
2005
|
+
// Light mode labels use the darker shade so they meet 4.5:1 on white surfaces
|
|
2006
|
+
"&.MuiButton-colorWarning": __spreadValues({
|
|
2007
|
+
color: theme.vars.palette.warning.dark,
|
|
2008
|
+
borderColor: theme.vars.palette.warning.main,
|
|
2009
|
+
"&:hover": {
|
|
2010
|
+
color: theme.vars.palette.warning.dark,
|
|
2011
|
+
borderColor: theme.vars.palette.warning.main
|
|
2012
|
+
}
|
|
2013
|
+
}, theme.applyStyles("dark", {
|
|
2014
|
+
color: theme.vars.palette.warning.main,
|
|
2015
|
+
"&:hover": {
|
|
2016
|
+
color: theme.vars.palette.warning.main
|
|
2017
|
+
}
|
|
2018
|
+
})),
|
|
1885
2019
|
"&.MuiButton-colorError": {
|
|
1886
2020
|
color: theme.palette.error.main,
|
|
1887
2021
|
borderColor: theme.palette.error.main,
|
|
@@ -3363,11 +3497,422 @@ var StatCard = (_a) => {
|
|
|
3363
3497
|
StatCard.displayName = "StatCard";
|
|
3364
3498
|
var StatCard_default = StatCard;
|
|
3365
3499
|
|
|
3500
|
+
// src/components/TrialBadge/TrialBadge.tsx
|
|
3501
|
+
import React6 from "react";
|
|
3502
|
+
import { Box as Box8, Button as Button2, Card as Card2, CardContent as CardContent2, CircularProgress, LinearProgress, Popper, Typography as Typography7 } from "@mui/material";
|
|
3503
|
+
import { Fragment as Fragment3, jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3504
|
+
function getTrialBadgeStatus(daysLeft, endingSoonThreshold = 7, criticalThreshold = 3) {
|
|
3505
|
+
if (daysLeft <= 0) return "expired";
|
|
3506
|
+
if (daysLeft <= criticalThreshold) return "critical";
|
|
3507
|
+
if (daysLeft <= endingSoonThreshold) return "ending-soon";
|
|
3508
|
+
return "active";
|
|
3509
|
+
}
|
|
3510
|
+
var STATUS_COLOR = {
|
|
3511
|
+
active: "primary",
|
|
3512
|
+
"ending-soon": "warning",
|
|
3513
|
+
critical: "error",
|
|
3514
|
+
expired: "error"
|
|
3515
|
+
};
|
|
3516
|
+
var RING_SIZE = 28;
|
|
3517
|
+
var RING_THICKNESS = 4;
|
|
3518
|
+
var POPPER_OPTIONS = {
|
|
3519
|
+
// Fixed positioning keeps the panel from being clipped by an overflow-hidden header.
|
|
3520
|
+
strategy: "fixed",
|
|
3521
|
+
modifiers: [{ name: "offset", options: { offset: [0, 10] } }]
|
|
3522
|
+
};
|
|
3523
|
+
var CLOSE_DELAY_MS = 120;
|
|
3524
|
+
var getUsageTone = (count, limit, warningThreshold, criticalThreshold) => {
|
|
3525
|
+
const share = limit > 0 ? count / limit : 1;
|
|
3526
|
+
if (share >= criticalThreshold) return "error";
|
|
3527
|
+
if (share > warningThreshold) return "warning";
|
|
3528
|
+
return "success";
|
|
3529
|
+
};
|
|
3530
|
+
var sumOf = (items, pick) => items.reduce((sum, item) => sum + Math.max(0, pick(item)), 0);
|
|
3531
|
+
var TrialBadgeUsagePanel = ({ usage }) => {
|
|
3532
|
+
var _a, _b, _c, _d, _e;
|
|
3533
|
+
const {
|
|
3534
|
+
footerText = "Unlimited on Pro",
|
|
3535
|
+
upgradeLabel = "Upgrade",
|
|
3536
|
+
onUpgrade,
|
|
3537
|
+
upgradeHref,
|
|
3538
|
+
warningThreshold = 0.5,
|
|
3539
|
+
criticalThreshold = 0.75
|
|
3540
|
+
} = usage;
|
|
3541
|
+
const sections = (_c = usage.sections) != null ? _c : [
|
|
3542
|
+
{ title: (_a = usage.title) != null ? _a : "Components left", items: (_b = usage.items) != null ? _b : [], totalSuffix: usage.totalSuffix }
|
|
3543
|
+
];
|
|
3544
|
+
const allItems = [].concat(...sections.map((section) => section.items));
|
|
3545
|
+
const totalTone = getUsageTone(
|
|
3546
|
+
sumOf(allItems, (item) => item.count),
|
|
3547
|
+
sumOf(allItems, (item) => item.limit),
|
|
3548
|
+
warningThreshold,
|
|
3549
|
+
criticalThreshold
|
|
3550
|
+
);
|
|
3551
|
+
const buttonLinkProps = upgradeHref ? { component: "a", href: upgradeHref } : {};
|
|
3552
|
+
const textOf = (node) => typeof node === "string" ? node : void 0;
|
|
3553
|
+
return /* @__PURE__ */ jsxs9(
|
|
3554
|
+
Card2,
|
|
3555
|
+
{
|
|
3556
|
+
role: "group",
|
|
3557
|
+
"aria-label": (_e = textOf((_d = sections[0]) == null ? void 0 : _d.title)) != null ? _e : "Usage",
|
|
3558
|
+
sx: {
|
|
3559
|
+
position: "relative",
|
|
3560
|
+
width: 280,
|
|
3561
|
+
overflow: "visible",
|
|
3562
|
+
// Opaque, so the arrow can blend into the card instead of showing the page through it.
|
|
3563
|
+
backgroundColor: "background.paper",
|
|
3564
|
+
backdropFilter: "none",
|
|
3565
|
+
WebkitBackdropFilter: "none"
|
|
3566
|
+
},
|
|
3567
|
+
children: [
|
|
3568
|
+
/* @__PURE__ */ jsx24(
|
|
3569
|
+
Box8,
|
|
3570
|
+
{
|
|
3571
|
+
"aria-hidden": "true",
|
|
3572
|
+
sx: {
|
|
3573
|
+
position: "absolute",
|
|
3574
|
+
top: -8,
|
|
3575
|
+
right: 22,
|
|
3576
|
+
width: 14,
|
|
3577
|
+
height: 7,
|
|
3578
|
+
bgcolor: "divider",
|
|
3579
|
+
clipPath: "polygon(50% 0, 0 100%, 100% 100%)"
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
),
|
|
3583
|
+
/* @__PURE__ */ jsx24(
|
|
3584
|
+
Box8,
|
|
3585
|
+
{
|
|
3586
|
+
"aria-hidden": "true",
|
|
3587
|
+
sx: {
|
|
3588
|
+
position: "absolute",
|
|
3589
|
+
top: -7,
|
|
3590
|
+
right: 23,
|
|
3591
|
+
width: 12,
|
|
3592
|
+
height: 7,
|
|
3593
|
+
backgroundColor: "inherit",
|
|
3594
|
+
backgroundImage: "inherit",
|
|
3595
|
+
clipPath: "polygon(50% 0, 0 6px, 0 100%, 100% 100%, 100% 6px)"
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
),
|
|
3599
|
+
sections.map((section, index) => {
|
|
3600
|
+
var _a2, _b2;
|
|
3601
|
+
const sectionCount = sumOf(section.items, (item) => item.count);
|
|
3602
|
+
const sectionLimit = sumOf(section.items, (item) => item.limit);
|
|
3603
|
+
return /* @__PURE__ */ jsxs9(
|
|
3604
|
+
CardContent2,
|
|
3605
|
+
{
|
|
3606
|
+
role: "group",
|
|
3607
|
+
"aria-label": textOf(section.title),
|
|
3608
|
+
sx: {
|
|
3609
|
+
px: 2,
|
|
3610
|
+
py: 1.25,
|
|
3611
|
+
"&:last-child": { pb: 1.25 },
|
|
3612
|
+
borderTop: index > 0 ? "1px solid" : void 0,
|
|
3613
|
+
borderColor: "divider"
|
|
3614
|
+
},
|
|
3615
|
+
children: [
|
|
3616
|
+
/* @__PURE__ */ jsxs9(Box8, { sx: { display: "flex", alignItems: "baseline", justifyContent: "space-between", mb: 1 }, children: [
|
|
3617
|
+
/* @__PURE__ */ jsx24(Typography7, { variant: "body2", sx: { fontWeight: 700 }, children: section.title }),
|
|
3618
|
+
section.totalSuffix ? /* @__PURE__ */ jsxs9(Typography7, { variant: "body2", color: "text.secondary", children: [
|
|
3619
|
+
/* @__PURE__ */ jsx24(Box8, { component: "span", sx: { fontWeight: 700, color: "text.primary" }, children: sectionCount }),
|
|
3620
|
+
" ",
|
|
3621
|
+
"of ",
|
|
3622
|
+
sectionLimit,
|
|
3623
|
+
" ",
|
|
3624
|
+
section.totalSuffix
|
|
3625
|
+
] }) : null
|
|
3626
|
+
] }),
|
|
3627
|
+
/* @__PURE__ */ jsx24(Box8, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: section.items.map((item, itemIndex) => {
|
|
3628
|
+
var _a3, _b3, _c2;
|
|
3629
|
+
const count = Math.max(0, item.count);
|
|
3630
|
+
const tone = getUsageTone(count, item.limit, warningThreshold, criticalThreshold);
|
|
3631
|
+
const value = item.limit > 0 ? Math.min(100, count / item.limit * 100) : 0;
|
|
3632
|
+
return /* @__PURE__ */ jsxs9(
|
|
3633
|
+
Box8,
|
|
3634
|
+
{
|
|
3635
|
+
"data-tone": tone,
|
|
3636
|
+
sx: {
|
|
3637
|
+
display: "grid",
|
|
3638
|
+
gridTemplateColumns: "1fr 80px 32px",
|
|
3639
|
+
alignItems: "center",
|
|
3640
|
+
columnGap: 1.5
|
|
3641
|
+
},
|
|
3642
|
+
children: [
|
|
3643
|
+
/* @__PURE__ */ jsx24(Typography7, { variant: "caption", color: "text.secondary", noWrap: true, sx: { fontSize: "0.75rem" }, children: item.label }),
|
|
3644
|
+
/* @__PURE__ */ jsx24(
|
|
3645
|
+
LinearProgress,
|
|
3646
|
+
{
|
|
3647
|
+
variant: "determinate",
|
|
3648
|
+
value,
|
|
3649
|
+
color: tone,
|
|
3650
|
+
"aria-label": (_c2 = textOf(item.label)) != null ? _c2 : "Usage",
|
|
3651
|
+
sx: { height: 4, borderRadius: 999, bgcolor: "action.hover" }
|
|
3652
|
+
}
|
|
3653
|
+
),
|
|
3654
|
+
/* @__PURE__ */ jsxs9(
|
|
3655
|
+
Typography7,
|
|
3656
|
+
{
|
|
3657
|
+
variant: "caption",
|
|
3658
|
+
color: "text.secondary",
|
|
3659
|
+
sx: { textAlign: "right", fontSize: "0.75rem" },
|
|
3660
|
+
children: [
|
|
3661
|
+
/* @__PURE__ */ jsx24(Box8, { component: "span", sx: { fontWeight: 700, color: "text.primary" }, children: count }),
|
|
3662
|
+
"/",
|
|
3663
|
+
item.limit
|
|
3664
|
+
]
|
|
3665
|
+
}
|
|
3666
|
+
)
|
|
3667
|
+
]
|
|
3668
|
+
},
|
|
3669
|
+
(_b3 = (_a3 = item.key) != null ? _a3 : textOf(item.label)) != null ? _b3 : itemIndex
|
|
3670
|
+
);
|
|
3671
|
+
}) })
|
|
3672
|
+
]
|
|
3673
|
+
},
|
|
3674
|
+
(_b2 = (_a2 = section.key) != null ? _a2 : textOf(section.title)) != null ? _b2 : index
|
|
3675
|
+
);
|
|
3676
|
+
}),
|
|
3677
|
+
/* @__PURE__ */ jsxs9(
|
|
3678
|
+
CardContent2,
|
|
3679
|
+
{
|
|
3680
|
+
sx: {
|
|
3681
|
+
display: "flex",
|
|
3682
|
+
alignItems: "center",
|
|
3683
|
+
justifyContent: "space-between",
|
|
3684
|
+
gap: 2,
|
|
3685
|
+
px: 2,
|
|
3686
|
+
py: 1.25,
|
|
3687
|
+
"&:last-child": { pb: 1.25 },
|
|
3688
|
+
borderTop: "1px solid",
|
|
3689
|
+
borderColor: "divider"
|
|
3690
|
+
},
|
|
3691
|
+
children: [
|
|
3692
|
+
/* @__PURE__ */ jsx24(Typography7, { variant: "caption", color: "text.secondary", sx: { fontSize: "0.75rem" }, children: footerText }),
|
|
3693
|
+
/* @__PURE__ */ jsxs9(
|
|
3694
|
+
Button2,
|
|
3695
|
+
__spreadProps(__spreadValues({
|
|
3696
|
+
variant: "contained",
|
|
3697
|
+
color: totalTone,
|
|
3698
|
+
"data-tone": totalTone,
|
|
3699
|
+
size: "small",
|
|
3700
|
+
disableElevation: true,
|
|
3701
|
+
onClick: onUpgrade
|
|
3702
|
+
}, buttonLinkProps), {
|
|
3703
|
+
sx: {
|
|
3704
|
+
fontWeight: 700,
|
|
3705
|
+
fontSize: "0.75rem",
|
|
3706
|
+
textTransform: "none",
|
|
3707
|
+
color: "common.black",
|
|
3708
|
+
whiteSpace: "nowrap",
|
|
3709
|
+
py: 0.25,
|
|
3710
|
+
minHeight: 0
|
|
3711
|
+
},
|
|
3712
|
+
children: [
|
|
3713
|
+
upgradeLabel,
|
|
3714
|
+
" \u2192"
|
|
3715
|
+
]
|
|
3716
|
+
})
|
|
3717
|
+
)
|
|
3718
|
+
]
|
|
3719
|
+
}
|
|
3720
|
+
)
|
|
3721
|
+
]
|
|
3722
|
+
}
|
|
3723
|
+
);
|
|
3724
|
+
};
|
|
3725
|
+
var TrialBadge = (_a) => {
|
|
3726
|
+
var _b = _a, {
|
|
3727
|
+
daysLeft,
|
|
3728
|
+
totalDays = 14,
|
|
3729
|
+
endingSoonThreshold = 7,
|
|
3730
|
+
criticalThreshold = 3,
|
|
3731
|
+
onUpgrade,
|
|
3732
|
+
upgradeHref,
|
|
3733
|
+
showUpgrade = true,
|
|
3734
|
+
getTitle = (days) => `${days} ${days === 1 ? "day" : "days"} left`,
|
|
3735
|
+
expiredLabel = "Trial expired",
|
|
3736
|
+
subtitle = "of free trial",
|
|
3737
|
+
upgradeLabel = "Upgrade now",
|
|
3738
|
+
onClick,
|
|
3739
|
+
usage,
|
|
3740
|
+
sx
|
|
3741
|
+
} = _b, props = __objRest(_b, [
|
|
3742
|
+
"daysLeft",
|
|
3743
|
+
"totalDays",
|
|
3744
|
+
"endingSoonThreshold",
|
|
3745
|
+
"criticalThreshold",
|
|
3746
|
+
"onUpgrade",
|
|
3747
|
+
"upgradeHref",
|
|
3748
|
+
"showUpgrade",
|
|
3749
|
+
"getTitle",
|
|
3750
|
+
"expiredLabel",
|
|
3751
|
+
"subtitle",
|
|
3752
|
+
"upgradeLabel",
|
|
3753
|
+
"onClick",
|
|
3754
|
+
"usage",
|
|
3755
|
+
"sx"
|
|
3756
|
+
]);
|
|
3757
|
+
const [anchorEl, setAnchorEl] = React6.useState(null);
|
|
3758
|
+
const [panelOpen, setPanelOpen] = React6.useState(false);
|
|
3759
|
+
const closeTimer = React6.useRef(void 0);
|
|
3760
|
+
const openPanel = () => {
|
|
3761
|
+
clearTimeout(closeTimer.current);
|
|
3762
|
+
setPanelOpen(true);
|
|
3763
|
+
};
|
|
3764
|
+
const closePanelSoon = () => {
|
|
3765
|
+
clearTimeout(closeTimer.current);
|
|
3766
|
+
closeTimer.current = setTimeout(() => setPanelOpen(false), CLOSE_DELAY_MS);
|
|
3767
|
+
};
|
|
3768
|
+
React6.useEffect(() => () => clearTimeout(closeTimer.current), []);
|
|
3769
|
+
const exactDays = Math.max(0, Number.isFinite(daysLeft) ? daysLeft : 0);
|
|
3770
|
+
const days = Math.ceil(exactDays);
|
|
3771
|
+
const status = getTrialBadgeStatus(exactDays, endingSoonThreshold, criticalThreshold);
|
|
3772
|
+
const color = STATUS_COLOR[status];
|
|
3773
|
+
const isExpired = status === "expired";
|
|
3774
|
+
const upgradeVisible = showUpgrade && (status === "critical" || isExpired);
|
|
3775
|
+
const progress = totalDays > 0 ? Math.min(100, Math.max(0, exactDays / totalDays * 100)) : 0;
|
|
3776
|
+
const interactive = Boolean(onUpgrade || onClick || upgradeHref);
|
|
3777
|
+
const handleClick = (event) => {
|
|
3778
|
+
onClick == null ? void 0 : onClick(event);
|
|
3779
|
+
onUpgrade == null ? void 0 : onUpgrade(event);
|
|
3780
|
+
};
|
|
3781
|
+
const interactiveProps = interactive ? upgradeHref ? { component: "a", href: upgradeHref, onClick: handleClick } : { component: "button", type: "button", onClick: handleClick } : { role: "group", tabIndex: usage ? 0 : void 0 };
|
|
3782
|
+
const badge = /* @__PURE__ */ jsxs9(
|
|
3783
|
+
Box8,
|
|
3784
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, interactiveProps), {
|
|
3785
|
+
"data-status": status,
|
|
3786
|
+
sx: [
|
|
3787
|
+
(theme) => __spreadValues({
|
|
3788
|
+
display: "inline-flex",
|
|
3789
|
+
alignItems: "center",
|
|
3790
|
+
gap: 1,
|
|
3791
|
+
py: 0.25,
|
|
3792
|
+
pl: 0.5,
|
|
3793
|
+
pr: 1.5,
|
|
3794
|
+
borderRadius: 999,
|
|
3795
|
+
border: "1px solid",
|
|
3796
|
+
borderColor: `${theme.palette[color].main}`,
|
|
3797
|
+
bgcolor: `color-mix(in srgb, ${theme.palette[color].main} 12%, transparent)`,
|
|
3798
|
+
color: "text.primary",
|
|
3799
|
+
font: "inherit",
|
|
3800
|
+
textAlign: "left",
|
|
3801
|
+
textDecoration: "none"
|
|
3802
|
+
}, interactive && {
|
|
3803
|
+
cursor: "pointer",
|
|
3804
|
+
transition: "background-color 150ms",
|
|
3805
|
+
"&:hover": {
|
|
3806
|
+
bgcolor: `color-mix(in srgb, ${theme.palette[color].main} 20%, transparent)`
|
|
3807
|
+
},
|
|
3808
|
+
"&:focus-visible": {
|
|
3809
|
+
outline: "2px solid",
|
|
3810
|
+
outlineColor: theme.palette[color].main,
|
|
3811
|
+
outlineOffset: 2
|
|
3812
|
+
}
|
|
3813
|
+
}),
|
|
3814
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
3815
|
+
]
|
|
3816
|
+
}), props), {
|
|
3817
|
+
children: [
|
|
3818
|
+
/* @__PURE__ */ jsxs9(Box8, { "aria-hidden": "true", sx: { position: "relative", display: "inline-flex", flexShrink: 0 }, children: [
|
|
3819
|
+
/* @__PURE__ */ jsx24(
|
|
3820
|
+
CircularProgress,
|
|
3821
|
+
{
|
|
3822
|
+
variant: "determinate",
|
|
3823
|
+
value: 100,
|
|
3824
|
+
size: RING_SIZE,
|
|
3825
|
+
thickness: RING_THICKNESS,
|
|
3826
|
+
sx: { color: `${color}.main`, opacity: 0.25 }
|
|
3827
|
+
}
|
|
3828
|
+
),
|
|
3829
|
+
!isExpired && /* @__PURE__ */ jsx24(
|
|
3830
|
+
CircularProgress,
|
|
3831
|
+
{
|
|
3832
|
+
variant: "determinate",
|
|
3833
|
+
value: progress,
|
|
3834
|
+
size: RING_SIZE,
|
|
3835
|
+
thickness: RING_THICKNESS,
|
|
3836
|
+
sx: { color: `${color}.main`, position: "absolute", left: 0 }
|
|
3837
|
+
}
|
|
3838
|
+
),
|
|
3839
|
+
/* @__PURE__ */ jsx24(
|
|
3840
|
+
Box8,
|
|
3841
|
+
{
|
|
3842
|
+
sx: {
|
|
3843
|
+
position: "absolute",
|
|
3844
|
+
inset: 0,
|
|
3845
|
+
display: "flex",
|
|
3846
|
+
alignItems: "center",
|
|
3847
|
+
justifyContent: "center"
|
|
3848
|
+
},
|
|
3849
|
+
children: /* @__PURE__ */ jsx24(Typography7, { variant: "caption", sx: { fontWeight: 700, lineHeight: 1 }, children: days })
|
|
3850
|
+
}
|
|
3851
|
+
)
|
|
3852
|
+
] }),
|
|
3853
|
+
/* @__PURE__ */ jsxs9(Box8, { sx: { display: "flex", flexDirection: "column", lineHeight: 1.2 }, children: [
|
|
3854
|
+
/* @__PURE__ */ jsx24(Typography7, { variant: "body2", sx: { fontWeight: 700, fontSize: "0.8125rem", lineHeight: 1.2 }, children: isExpired ? expiredLabel : getTitle(days) }),
|
|
3855
|
+
/* @__PURE__ */ jsx24(
|
|
3856
|
+
Typography7,
|
|
3857
|
+
{
|
|
3858
|
+
variant: "caption",
|
|
3859
|
+
sx: {
|
|
3860
|
+
fontSize: "0.6875rem",
|
|
3861
|
+
lineHeight: 1.2,
|
|
3862
|
+
fontWeight: upgradeVisible ? 600 : 400,
|
|
3863
|
+
color: status === "active" ? "text.secondary" : `${color}.main`
|
|
3864
|
+
},
|
|
3865
|
+
children: upgradeVisible ? /* @__PURE__ */ jsxs9(Fragment3, { children: [
|
|
3866
|
+
upgradeLabel,
|
|
3867
|
+
" \u2192"
|
|
3868
|
+
] }) : subtitle
|
|
3869
|
+
}
|
|
3870
|
+
)
|
|
3871
|
+
] })
|
|
3872
|
+
]
|
|
3873
|
+
})
|
|
3874
|
+
);
|
|
3875
|
+
if (!usage) return badge;
|
|
3876
|
+
return /* @__PURE__ */ jsxs9(
|
|
3877
|
+
Box8,
|
|
3878
|
+
{
|
|
3879
|
+
ref: setAnchorEl,
|
|
3880
|
+
sx: { display: "inline-flex" },
|
|
3881
|
+
onMouseEnter: openPanel,
|
|
3882
|
+
onMouseLeave: closePanelSoon,
|
|
3883
|
+
onFocus: openPanel,
|
|
3884
|
+
onBlur: (event) => {
|
|
3885
|
+
if (!event.currentTarget.contains(event.relatedTarget)) closePanelSoon();
|
|
3886
|
+
},
|
|
3887
|
+
onKeyDown: (event) => {
|
|
3888
|
+
if (event.key === "Escape") setPanelOpen(false);
|
|
3889
|
+
},
|
|
3890
|
+
children: [
|
|
3891
|
+
badge,
|
|
3892
|
+
/* @__PURE__ */ jsx24(
|
|
3893
|
+
Popper,
|
|
3894
|
+
{
|
|
3895
|
+
open: panelOpen,
|
|
3896
|
+
anchorEl,
|
|
3897
|
+
placement: "bottom-end",
|
|
3898
|
+
disablePortal: true,
|
|
3899
|
+
popperOptions: POPPER_OPTIONS,
|
|
3900
|
+
sx: (theme) => ({ zIndex: theme.zIndex.tooltip }),
|
|
3901
|
+
children: /* @__PURE__ */ jsx24(TrialBadgeUsagePanel, { usage })
|
|
3902
|
+
}
|
|
3903
|
+
)
|
|
3904
|
+
]
|
|
3905
|
+
}
|
|
3906
|
+
);
|
|
3907
|
+
};
|
|
3908
|
+
TrialBadge.displayName = "TrialBadge";
|
|
3909
|
+
var TrialBadge_default = TrialBadge;
|
|
3910
|
+
|
|
3366
3911
|
// src/components/ThemeSwitcher/ThemeSelect.tsx
|
|
3367
3912
|
import { useId as useId3 } from "react";
|
|
3368
3913
|
import { Select, MenuItem as MenuItem2, FormControl, InputLabel } from "@mui/material";
|
|
3369
3914
|
import { visuallyHidden as visuallyHidden2 } from "@mui/utils";
|
|
3370
|
-
import { jsx as
|
|
3915
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3371
3916
|
function ThemeSelect({
|
|
3372
3917
|
size = "small",
|
|
3373
3918
|
showLabel = false,
|
|
@@ -3380,23 +3925,23 @@ function ThemeSelect({
|
|
|
3380
3925
|
const handleChange = (event) => {
|
|
3381
3926
|
setTheme(event.target.value);
|
|
3382
3927
|
};
|
|
3383
|
-
return /* @__PURE__ */
|
|
3384
|
-
/* @__PURE__ */
|
|
3385
|
-
/* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ jsxs10(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
|
|
3929
|
+
/* @__PURE__ */ jsx25(InputLabel, { id: labelId, sx: showLabel ? void 0 : visuallyHidden2, children: label }),
|
|
3930
|
+
/* @__PURE__ */ jsx25(
|
|
3386
3931
|
Select,
|
|
3387
3932
|
{
|
|
3388
3933
|
labelId,
|
|
3389
3934
|
value: currentTheme,
|
|
3390
3935
|
onChange: handleChange,
|
|
3391
3936
|
label,
|
|
3392
|
-
children: themes.map((themeOption) => /* @__PURE__ */
|
|
3937
|
+
children: themes.map((themeOption) => /* @__PURE__ */ jsx25(MenuItem2, { value: themeOption.key, children: themeOption.label }, themeOption.key))
|
|
3393
3938
|
}
|
|
3394
3939
|
)
|
|
3395
3940
|
] });
|
|
3396
3941
|
}
|
|
3397
3942
|
|
|
3398
3943
|
// src/components/ThemeSwitcher/ThemeSwitcher.tsx
|
|
3399
|
-
import { Fragment as
|
|
3944
|
+
import { Fragment as Fragment4, jsx as jsx26 } from "react/jsx-runtime";
|
|
3400
3945
|
function ThemeSwitcher({
|
|
3401
3946
|
children,
|
|
3402
3947
|
size,
|
|
@@ -3407,9 +3952,9 @@ function ThemeSwitcher({
|
|
|
3407
3952
|
}) {
|
|
3408
3953
|
const themeSwitcherContext = useThemeSwitcher();
|
|
3409
3954
|
if (children) {
|
|
3410
|
-
return /* @__PURE__ */
|
|
3955
|
+
return /* @__PURE__ */ jsx26(Fragment4, { children: children(themeSwitcherContext) });
|
|
3411
3956
|
}
|
|
3412
|
-
return /* @__PURE__ */
|
|
3957
|
+
return /* @__PURE__ */ jsx26(
|
|
3413
3958
|
ThemeSelect,
|
|
3414
3959
|
{
|
|
3415
3960
|
size,
|
|
@@ -3422,21 +3967,21 @@ function ThemeSwitcher({
|
|
|
3422
3967
|
}
|
|
3423
3968
|
|
|
3424
3969
|
// src/components/TimeRangeFilter/TimeRangeFilter.tsx
|
|
3425
|
-
import * as
|
|
3970
|
+
import * as React7 from "react";
|
|
3426
3971
|
import Alert from "@mui/material/Alert";
|
|
3427
|
-
import
|
|
3428
|
-
import
|
|
3972
|
+
import Box9 from "@mui/material/Box";
|
|
3973
|
+
import Button3 from "@mui/material/Button";
|
|
3429
3974
|
import MenuItem3 from "@mui/material/MenuItem";
|
|
3430
3975
|
import MenuList from "@mui/material/MenuList";
|
|
3431
3976
|
import Popover from "@mui/material/Popover";
|
|
3432
3977
|
import Stack from "@mui/material/Stack";
|
|
3433
|
-
import
|
|
3978
|
+
import Typography8 from "@mui/material/Typography";
|
|
3434
3979
|
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
3435
3980
|
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
|
3436
3981
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
3437
3982
|
import { TimePicker } from "@mui/x-date-pickers/TimePicker";
|
|
3438
3983
|
import { ChevronDown as ChevronDown2 } from "@wso2/oxygen-ui-icons-react";
|
|
3439
|
-
import { Fragment as
|
|
3984
|
+
import { Fragment as Fragment5, jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3440
3985
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
3441
3986
|
var DAY_MS = 24 * HOUR_MS;
|
|
3442
3987
|
var DEFAULT_PRESETS = [
|
|
@@ -3486,7 +4031,7 @@ var toRangeEnd = (date) => {
|
|
|
3486
4031
|
return { date: picker, time: picker };
|
|
3487
4032
|
};
|
|
3488
4033
|
var validDate = (date) => date && !Number.isNaN(date.getTime()) ? date : null;
|
|
3489
|
-
var TimeRangeFilter =
|
|
4034
|
+
var TimeRangeFilter = React7.forwardRef(
|
|
3490
4035
|
(_a, ref) => {
|
|
3491
4036
|
var _b = _a, {
|
|
3492
4037
|
value,
|
|
@@ -3542,23 +4087,23 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3542
4087
|
"sx"
|
|
3543
4088
|
]);
|
|
3544
4089
|
var _a2, _b2;
|
|
3545
|
-
const panelId =
|
|
3546
|
-
const panelHeadingId =
|
|
3547
|
-
const fromHeadingId =
|
|
3548
|
-
const untilHeadingId =
|
|
3549
|
-
const triggerRef =
|
|
4090
|
+
const panelId = React7.useId();
|
|
4091
|
+
const panelHeadingId = React7.useId();
|
|
4092
|
+
const fromHeadingId = React7.useId();
|
|
4093
|
+
const untilHeadingId = React7.useId();
|
|
4094
|
+
const triggerRef = React7.useRef(null);
|
|
3550
4095
|
const setTriggerRef = (element) => {
|
|
3551
4096
|
triggerRef.current = element;
|
|
3552
4097
|
if (typeof ref === "function") ref(element);
|
|
3553
4098
|
else if (ref) ref.current = element;
|
|
3554
4099
|
};
|
|
3555
|
-
const [ownOpen, setOwnOpen] =
|
|
4100
|
+
const [ownOpen, setOwnOpen] = React7.useState(false);
|
|
3556
4101
|
const open = openProp != null ? openProp : ownOpen;
|
|
3557
|
-
const [customOpen, setCustomOpen] =
|
|
3558
|
-
const [selection, setSelection] =
|
|
3559
|
-
const [from, setFrom] =
|
|
3560
|
-
const [until, setUntil] =
|
|
3561
|
-
const [error, setError] =
|
|
4102
|
+
const [customOpen, setCustomOpen] = React7.useState(false);
|
|
4103
|
+
const [selection, setSelection] = React7.useState(null);
|
|
4104
|
+
const [from, setFrom] = React7.useState({ date: null, time: null });
|
|
4105
|
+
const [until, setUntil] = React7.useState({ date: null, time: null });
|
|
4106
|
+
const [error, setError] = React7.useState("");
|
|
3562
4107
|
const activeId = !value ? null : selection && selection.start === value.start.getTime() && selection.end === value.end.getTime() ? selection.id : (_b2 = (_a2 = presets.find(
|
|
3563
4108
|
(preset) => preset.durationMs === value.end.getTime() - value.start.getTime() && Math.abs(Date.now() - value.end.getTime()) <= PRESET_END_TOLERANCE_MS
|
|
3564
4109
|
)) == null ? void 0 : _a2.id) != null ? _b2 : CUSTOM_ID;
|
|
@@ -3575,12 +4120,12 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3575
4120
|
setError("");
|
|
3576
4121
|
setCustomOpen(activeId === CUSTOM_ID);
|
|
3577
4122
|
};
|
|
3578
|
-
const latestPrepare =
|
|
3579
|
-
|
|
4123
|
+
const latestPrepare = React7.useRef(prepare);
|
|
4124
|
+
React7.useLayoutEffect(() => {
|
|
3580
4125
|
latestPrepare.current = prepare;
|
|
3581
4126
|
});
|
|
3582
|
-
const wasOpen =
|
|
3583
|
-
|
|
4127
|
+
const wasOpen = React7.useRef(false);
|
|
4128
|
+
React7.useLayoutEffect(() => {
|
|
3584
4129
|
if (open && !wasOpen.current) latestPrepare.current();
|
|
3585
4130
|
wasOpen.current = open;
|
|
3586
4131
|
}, [open]);
|
|
@@ -3631,10 +4176,10 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3631
4176
|
close();
|
|
3632
4177
|
onChange({ start, end });
|
|
3633
4178
|
};
|
|
3634
|
-
const rangeEnd = (heading, headingId, end, setEnd) => /* @__PURE__ */
|
|
3635
|
-
/* @__PURE__ */
|
|
3636
|
-
/* @__PURE__ */
|
|
3637
|
-
/* @__PURE__ */
|
|
4179
|
+
const rangeEnd = (heading, headingId, end, setEnd) => /* @__PURE__ */ jsxs11(Box9, { role: "group", "aria-labelledby": headingId, children: [
|
|
4180
|
+
/* @__PURE__ */ jsx27(Typography8, { id: headingId, variant: "body2", sx: { mb: 1 }, children: heading }),
|
|
4181
|
+
/* @__PURE__ */ jsxs11(Stack, { direction: "row", gap: 1, children: [
|
|
4182
|
+
/* @__PURE__ */ jsx27(
|
|
3638
4183
|
DatePicker,
|
|
3639
4184
|
{
|
|
3640
4185
|
label: dateLabel,
|
|
@@ -3648,7 +4193,7 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3648
4193
|
}
|
|
3649
4194
|
}
|
|
3650
4195
|
),
|
|
3651
|
-
/* @__PURE__ */
|
|
4196
|
+
/* @__PURE__ */ jsx27(
|
|
3652
4197
|
TimePicker,
|
|
3653
4198
|
{
|
|
3654
4199
|
label: timeLabel,
|
|
@@ -3666,9 +4211,9 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3666
4211
|
)
|
|
3667
4212
|
] })
|
|
3668
4213
|
] });
|
|
3669
|
-
return /* @__PURE__ */
|
|
3670
|
-
/* @__PURE__ */
|
|
3671
|
-
|
|
4214
|
+
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
4215
|
+
/* @__PURE__ */ jsx27(
|
|
4216
|
+
Button3,
|
|
3672
4217
|
__spreadProps(__spreadValues({
|
|
3673
4218
|
size: "small",
|
|
3674
4219
|
variant: "text",
|
|
@@ -3678,7 +4223,7 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3678
4223
|
ref: setTriggerRef,
|
|
3679
4224
|
"aria-haspopup": "dialog",
|
|
3680
4225
|
"aria-expanded": open,
|
|
3681
|
-
endIcon: /* @__PURE__ */
|
|
4226
|
+
endIcon: /* @__PURE__ */ jsx27(ChevronDown2, { size: 14 }),
|
|
3682
4227
|
onClick: (event) => {
|
|
3683
4228
|
onClick == null ? void 0 : onClick(event);
|
|
3684
4229
|
if (openProp === void 0) setOwnOpen(true);
|
|
@@ -3687,7 +4232,7 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3687
4232
|
children: label
|
|
3688
4233
|
})
|
|
3689
4234
|
),
|
|
3690
|
-
/* @__PURE__ */
|
|
4235
|
+
/* @__PURE__ */ jsx27(
|
|
3691
4236
|
Popover,
|
|
3692
4237
|
{
|
|
3693
4238
|
anchorEl: anchorEl != null ? anchorEl : triggerRef.current,
|
|
@@ -3695,9 +4240,9 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3695
4240
|
onClose: close,
|
|
3696
4241
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3697
4242
|
slotProps: { paper: { sx: solidPaperSx, role: "dialog", "aria-label": label } },
|
|
3698
|
-
children: /* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3700
|
-
presets.map((preset) => /* @__PURE__ */
|
|
4243
|
+
children: /* @__PURE__ */ jsxs11(Box9, { sx: { display: "flex", flexWrap: "wrap" }, children: [
|
|
4244
|
+
/* @__PURE__ */ jsxs11(MenuList, { "aria-label": label, autoFocusItem: open, sx: { minWidth: 180, py: 1, alignSelf: "flex-start" }, children: [
|
|
4245
|
+
presets.map((preset) => /* @__PURE__ */ jsx27(
|
|
3701
4246
|
MenuItem3,
|
|
3702
4247
|
{
|
|
3703
4248
|
selected: activeId === preset.id && !customOpen,
|
|
@@ -3706,7 +4251,7 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3706
4251
|
},
|
|
3707
4252
|
preset.id
|
|
3708
4253
|
)),
|
|
3709
|
-
/* @__PURE__ */
|
|
4254
|
+
/* @__PURE__ */ jsx27(
|
|
3710
4255
|
MenuItem3,
|
|
3711
4256
|
{
|
|
3712
4257
|
selected: activeId === CUSTOM_ID || customOpen,
|
|
@@ -3717,7 +4262,7 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3717
4262
|
}
|
|
3718
4263
|
)
|
|
3719
4264
|
] }),
|
|
3720
|
-
customOpen && /* @__PURE__ */
|
|
4265
|
+
customOpen && /* @__PURE__ */ jsxs11(
|
|
3721
4266
|
Stack,
|
|
3722
4267
|
{
|
|
3723
4268
|
id: panelId,
|
|
@@ -3733,15 +4278,15 @@ var TimeRangeFilter = React6.forwardRef(
|
|
|
3733
4278
|
borderColor: "divider"
|
|
3734
4279
|
},
|
|
3735
4280
|
children: [
|
|
3736
|
-
/* @__PURE__ */
|
|
3737
|
-
/* @__PURE__ */
|
|
4281
|
+
/* @__PURE__ */ jsx27(Typography8, { id: panelHeadingId, variant: "subtitle2", children: panelTitle }),
|
|
4282
|
+
/* @__PURE__ */ jsxs11(LocalizationProvider, { dateAdapter: AdapterDateFns, adapterLocale, localeText, children: [
|
|
3738
4283
|
rangeEnd(fromLabel, fromHeadingId, from, editFrom),
|
|
3739
4284
|
rangeEnd(untilLabel, untilHeadingId, until, editUntil)
|
|
3740
4285
|
] }),
|
|
3741
|
-
error && /* @__PURE__ */
|
|
3742
|
-
/* @__PURE__ */
|
|
3743
|
-
/* @__PURE__ */
|
|
3744
|
-
/* @__PURE__ */
|
|
4286
|
+
error && /* @__PURE__ */ jsx27(Alert, { severity: "error", children: error }),
|
|
4287
|
+
/* @__PURE__ */ jsxs11(Stack, { direction: "row", justifyContent: "flex-end", gap: 1, children: [
|
|
4288
|
+
/* @__PURE__ */ jsx27(Button3, { variant: "outlined", color: "inherit", onClick: close, sx: { textTransform: "none" }, children: cancelLabel }),
|
|
4289
|
+
/* @__PURE__ */ jsx27(Button3, { variant: "contained", onClick: applyCustomRange, sx: { textTransform: "none" }, children: applyLabel })
|
|
3745
4290
|
] })
|
|
3746
4291
|
]
|
|
3747
4292
|
}
|
|
@@ -3756,15 +4301,15 @@ TimeRangeFilter.displayName = "TimeRangeFilter";
|
|
|
3756
4301
|
var TimeRangeFilter_default = TimeRangeFilter;
|
|
3757
4302
|
|
|
3758
4303
|
// src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
|
|
3759
|
-
import * as
|
|
4304
|
+
import * as React9 from "react";
|
|
3760
4305
|
import TextField2 from "@mui/material/TextField";
|
|
3761
4306
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
3762
|
-
import
|
|
4307
|
+
import Box10 from "@mui/material/Box";
|
|
3763
4308
|
import IconButton2 from "@mui/material/IconButton";
|
|
3764
4309
|
import Popover2 from "@mui/material/Popover";
|
|
3765
|
-
import
|
|
4310
|
+
import Typography9 from "@mui/material/Typography";
|
|
3766
4311
|
import Divider from "@mui/material/Divider";
|
|
3767
|
-
import
|
|
4312
|
+
import Button4 from "@mui/material/Button";
|
|
3768
4313
|
import Stack2 from "@mui/material/Stack";
|
|
3769
4314
|
import FormControl2 from "@mui/material/FormControl";
|
|
3770
4315
|
import InputLabel2 from "@mui/material/InputLabel";
|
|
@@ -3773,13 +4318,13 @@ import MenuItem4 from "@mui/material/MenuItem";
|
|
|
3773
4318
|
import { ListFilter } from "@wso2/oxygen-ui-icons-react";
|
|
3774
4319
|
|
|
3775
4320
|
// src/components/SearchBar/SearchBarBase.tsx
|
|
3776
|
-
import * as
|
|
4321
|
+
import * as React8 from "react";
|
|
3777
4322
|
import TextField from "@mui/material/TextField";
|
|
3778
4323
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
3779
4324
|
import { Search } from "@wso2/oxygen-ui-icons-react";
|
|
3780
|
-
import { jsx as
|
|
4325
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3781
4326
|
var hasMeaningfulAriaValue = (value) => typeof value === "string" && value.trim().length > 0;
|
|
3782
|
-
var SearchBarBase =
|
|
4327
|
+
var SearchBarBase = React8.forwardRef(function SearchBarBase2(_a, ref) {
|
|
3783
4328
|
var _b = _a, {
|
|
3784
4329
|
placeholder = "Search",
|
|
3785
4330
|
endAdornment,
|
|
@@ -3802,7 +4347,7 @@ var SearchBarBase = React7.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3802
4347
|
const hasAccessibleName = hasMeaningfulLabel || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-label"]) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-labelledby"]);
|
|
3803
4348
|
const shouldInjectPlaceholderLabel = !hasAccessibleName && hasMeaningfulAriaValue(placeholder);
|
|
3804
4349
|
const htmlInput = shouldInjectPlaceholderLabel || (slotProps == null ? void 0 : slotProps.htmlInput) || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) ? __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, slotProps == null ? void 0 : slotProps.htmlInput), hasMeaningfulAriaValue(ariaLabelledBy) ? { "aria-labelledby": ariaLabelledBy } : null), hasMeaningfulAriaValue(ariaLabel) ? { "aria-label": ariaLabel } : null), shouldInjectPlaceholderLabel ? { "aria-label": placeholder } : null) : void 0;
|
|
3805
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsx28(
|
|
3806
4351
|
TextField,
|
|
3807
4352
|
__spreadProps(__spreadValues({}, props), {
|
|
3808
4353
|
ref,
|
|
@@ -3812,7 +4357,7 @@ var SearchBarBase = React7.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3812
4357
|
size: "small",
|
|
3813
4358
|
slotProps: __spreadProps(__spreadValues(__spreadValues({}, slotProps), htmlInput ? { htmlInput } : null), {
|
|
3814
4359
|
input: __spreadProps(__spreadValues({}, slotProps == null ? void 0 : slotProps.input), {
|
|
3815
|
-
startAdornment: /* @__PURE__ */
|
|
4360
|
+
startAdornment: /* @__PURE__ */ jsx28(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx28(Search, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3816
4361
|
endAdornment
|
|
3817
4362
|
})
|
|
3818
4363
|
}),
|
|
@@ -3829,7 +4374,7 @@ var SearchBarBase = React7.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3829
4374
|
});
|
|
3830
4375
|
|
|
3831
4376
|
// src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
|
|
3832
|
-
import { Fragment as
|
|
4377
|
+
import { Fragment as Fragment6, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3833
4378
|
function SearchBarWithAdvancedFilter(_a) {
|
|
3834
4379
|
var _b = _a, {
|
|
3835
4380
|
value,
|
|
@@ -3856,7 +4401,7 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3856
4401
|
"popoverWidth",
|
|
3857
4402
|
"sx"
|
|
3858
4403
|
]);
|
|
3859
|
-
const [anchorEl, setAnchorEl] =
|
|
4404
|
+
const [anchorEl, setAnchorEl] = React9.useState(null);
|
|
3860
4405
|
const open = Boolean(anchorEl);
|
|
3861
4406
|
const handleInputChange = (e) => {
|
|
3862
4407
|
onChange(e.target.value);
|
|
@@ -3882,17 +4427,17 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3882
4427
|
handleClose();
|
|
3883
4428
|
};
|
|
3884
4429
|
const popoverId = open ? "advanced-search-popover" : void 0;
|
|
3885
|
-
return /* @__PURE__ */
|
|
3886
|
-
/* @__PURE__ */
|
|
4430
|
+
return /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
4431
|
+
/* @__PURE__ */ jsx29(
|
|
3887
4432
|
SearchBarBase,
|
|
3888
4433
|
__spreadProps(__spreadValues({}, props), {
|
|
3889
4434
|
value,
|
|
3890
4435
|
onChange: handleInputChange,
|
|
3891
4436
|
placeholder,
|
|
3892
4437
|
sx,
|
|
3893
|
-
endAdornment: /* @__PURE__ */
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
/* @__PURE__ */
|
|
4438
|
+
endAdornment: /* @__PURE__ */ jsx29(InputAdornment2, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs12(Box10, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
|
|
4439
|
+
/* @__PURE__ */ jsx29(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
|
|
4440
|
+
/* @__PURE__ */ jsx29(
|
|
3896
4441
|
IconButton2,
|
|
3897
4442
|
{
|
|
3898
4443
|
"aria-describedby": popoverId,
|
|
@@ -3900,13 +4445,13 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3900
4445
|
onClick: handleOpen,
|
|
3901
4446
|
size: "small",
|
|
3902
4447
|
sx: { mx: 0.5 },
|
|
3903
|
-
children: /* @__PURE__ */
|
|
4448
|
+
children: /* @__PURE__ */ jsx29(ListFilter, { fontSize: "tiny" })
|
|
3904
4449
|
}
|
|
3905
4450
|
)
|
|
3906
4451
|
] }) })
|
|
3907
4452
|
})
|
|
3908
4453
|
),
|
|
3909
|
-
/* @__PURE__ */
|
|
4454
|
+
/* @__PURE__ */ jsxs12(
|
|
3910
4455
|
Popover2,
|
|
3911
4456
|
{
|
|
3912
4457
|
id: popoverId,
|
|
@@ -3923,45 +4468,45 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3923
4468
|
}
|
|
3924
4469
|
},
|
|
3925
4470
|
children: [
|
|
3926
|
-
/* @__PURE__ */
|
|
3927
|
-
/* @__PURE__ */
|
|
3928
|
-
/* @__PURE__ */
|
|
3929
|
-
/* @__PURE__ */
|
|
3930
|
-
/* @__PURE__ */
|
|
4471
|
+
/* @__PURE__ */ jsx29(Typography9, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
|
|
4472
|
+
/* @__PURE__ */ jsx29(Divider, { sx: { my: 1 } }),
|
|
4473
|
+
/* @__PURE__ */ jsxs12(Stack2, { spacing: 2, marginTop: 2, children: [
|
|
4474
|
+
/* @__PURE__ */ jsxs12(FormControl2, { fullWidth: true, size: "small", children: [
|
|
4475
|
+
/* @__PURE__ */ jsxs12(InputLabel2, { id: "adv-filter-attribute-label", children: [
|
|
3931
4476
|
"Filter attribute",
|
|
3932
4477
|
" ",
|
|
3933
|
-
/* @__PURE__ */
|
|
4478
|
+
/* @__PURE__ */ jsx29(Box10, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3934
4479
|
] }),
|
|
3935
|
-
/* @__PURE__ */
|
|
4480
|
+
/* @__PURE__ */ jsx29(
|
|
3936
4481
|
Select2,
|
|
3937
4482
|
{
|
|
3938
4483
|
labelId: "adv-filter-attribute-label",
|
|
3939
4484
|
value: advancedFilter.attribute,
|
|
3940
4485
|
label: "Filter attribute *",
|
|
3941
4486
|
onChange: handleAttrChange,
|
|
3942
|
-
children: attributeOptions.map((opt) => /* @__PURE__ */
|
|
4487
|
+
children: attributeOptions.map((opt) => /* @__PURE__ */ jsx29(MenuItem4, { value: opt.value, children: opt.label }, opt.value))
|
|
3943
4488
|
}
|
|
3944
4489
|
)
|
|
3945
4490
|
] }),
|
|
3946
|
-
/* @__PURE__ */
|
|
3947
|
-
/* @__PURE__ */
|
|
3948
|
-
/* @__PURE__ */
|
|
4491
|
+
/* @__PURE__ */ jsxs12(Box10, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
|
|
4492
|
+
/* @__PURE__ */ jsxs12(FormControl2, { fullWidth: true, size: "small", children: [
|
|
4493
|
+
/* @__PURE__ */ jsxs12(InputLabel2, { id: "adv-filter-condition-label", children: [
|
|
3949
4494
|
"Filter condition",
|
|
3950
4495
|
" ",
|
|
3951
|
-
/* @__PURE__ */
|
|
4496
|
+
/* @__PURE__ */ jsx29(Box10, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3952
4497
|
] }),
|
|
3953
|
-
/* @__PURE__ */
|
|
4498
|
+
/* @__PURE__ */ jsx29(
|
|
3954
4499
|
Select2,
|
|
3955
4500
|
{
|
|
3956
4501
|
labelId: "adv-filter-condition-label",
|
|
3957
4502
|
value: advancedFilter.condition,
|
|
3958
4503
|
label: "Filter condition *",
|
|
3959
4504
|
onChange: handleCondChange,
|
|
3960
|
-
children: conditionOptions.map((opt) => /* @__PURE__ */
|
|
4505
|
+
children: conditionOptions.map((opt) => /* @__PURE__ */ jsx29(MenuItem4, { value: opt.value, children: opt.label }, opt.value))
|
|
3961
4506
|
}
|
|
3962
4507
|
)
|
|
3963
4508
|
] }),
|
|
3964
|
-
/* @__PURE__ */
|
|
4509
|
+
/* @__PURE__ */ jsx29(
|
|
3965
4510
|
TextField2,
|
|
3966
4511
|
{
|
|
3967
4512
|
size: "small",
|
|
@@ -3973,8 +4518,8 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3973
4518
|
}
|
|
3974
4519
|
)
|
|
3975
4520
|
] }),
|
|
3976
|
-
/* @__PURE__ */
|
|
3977
|
-
|
|
4521
|
+
/* @__PURE__ */ jsx29(Box10, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx29(
|
|
4522
|
+
Button4,
|
|
3978
4523
|
{
|
|
3979
4524
|
variant: "contained",
|
|
3980
4525
|
onClick: handleAdvancedSearch,
|
|
@@ -3992,11 +4537,11 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3992
4537
|
var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
|
|
3993
4538
|
|
|
3994
4539
|
// src/components/SearchBar/SearchBar.tsx
|
|
3995
|
-
import * as
|
|
3996
|
-
import { jsx as
|
|
3997
|
-
var SearchBar =
|
|
4540
|
+
import * as React10 from "react";
|
|
4541
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
4542
|
+
var SearchBar = React10.forwardRef(function SearchBar2(_a, ref) {
|
|
3998
4543
|
var _b = _a, { placeholder = "Search" } = _b, props = __objRest(_b, ["placeholder"]);
|
|
3999
|
-
return /* @__PURE__ */
|
|
4544
|
+
return /* @__PURE__ */ jsx30(
|
|
4000
4545
|
SearchBarBase,
|
|
4001
4546
|
__spreadProps(__spreadValues({}, props), {
|
|
4002
4547
|
ref,
|
|
@@ -4007,17 +4552,17 @@ var SearchBar = React9.forwardRef(function SearchBar2(_a, ref) {
|
|
|
4007
4552
|
var SearchBar_default = SearchBar;
|
|
4008
4553
|
|
|
4009
4554
|
// src/components/Header/Header.tsx
|
|
4010
|
-
import * as
|
|
4555
|
+
import * as React14 from "react";
|
|
4011
4556
|
import AppBar from "@mui/material/AppBar";
|
|
4012
4557
|
import Toolbar from "@mui/material/Toolbar";
|
|
4013
|
-
import
|
|
4558
|
+
import Box15 from "@mui/material/Box";
|
|
4014
4559
|
import { styled as styled22 } from "@mui/material/styles";
|
|
4015
4560
|
|
|
4016
4561
|
// src/components/Header/context.ts
|
|
4017
|
-
import * as
|
|
4018
|
-
var HeaderContext =
|
|
4562
|
+
import * as React11 from "react";
|
|
4563
|
+
var HeaderContext = React11.createContext(null);
|
|
4019
4564
|
var useHeader = () => {
|
|
4020
|
-
const context =
|
|
4565
|
+
const context = React11.useContext(HeaderContext);
|
|
4021
4566
|
if (!context) {
|
|
4022
4567
|
throw new Error("Header compound components must be used within Header");
|
|
4023
4568
|
}
|
|
@@ -4025,26 +4570,26 @@ var useHeader = () => {
|
|
|
4025
4570
|
};
|
|
4026
4571
|
|
|
4027
4572
|
// src/components/Header/HeaderToggle.tsx
|
|
4028
|
-
import * as
|
|
4573
|
+
import * as React13 from "react";
|
|
4029
4574
|
import IconButton3 from "@mui/material/IconButton";
|
|
4030
4575
|
import Tooltip3 from "@mui/material/Tooltip";
|
|
4031
4576
|
import { styled as styled16 } from "@mui/material/styles";
|
|
4032
4577
|
import { Menu as Menu2 } from "@wso2/oxygen-ui-icons-react";
|
|
4033
4578
|
|
|
4034
4579
|
// src/components/AppShell/context.tsx
|
|
4035
|
-
import * as
|
|
4036
|
-
import { jsx as
|
|
4037
|
-
var AppShellContext =
|
|
4580
|
+
import * as React12 from "react";
|
|
4581
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4582
|
+
var AppShellContext = React12.createContext(void 0);
|
|
4038
4583
|
var AppShellProvider = ({
|
|
4039
4584
|
children,
|
|
4040
4585
|
value
|
|
4041
4586
|
}) => {
|
|
4042
|
-
return /* @__PURE__ */
|
|
4587
|
+
return /* @__PURE__ */ jsx31(AppShellContext.Provider, { value, children });
|
|
4043
4588
|
};
|
|
4044
4589
|
AppShellProvider.displayName = "AppShellProvider";
|
|
4045
4590
|
|
|
4046
4591
|
// src/components/Header/HeaderToggle.tsx
|
|
4047
|
-
import { jsx as
|
|
4592
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
4048
4593
|
var HeaderToggleRoot = styled16(IconButton3, {
|
|
4049
4594
|
name: "MuiHeader",
|
|
4050
4595
|
slot: "Toggle"
|
|
@@ -4061,11 +4606,11 @@ var HeaderToggle = ({
|
|
|
4061
4606
|
sx
|
|
4062
4607
|
}) => {
|
|
4063
4608
|
var _a, _b;
|
|
4064
|
-
const appShellContext =
|
|
4609
|
+
const appShellContext = React13.useContext(AppShellContext);
|
|
4065
4610
|
const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
|
|
4066
4611
|
const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
|
|
4067
4612
|
});
|
|
4068
|
-
return /* @__PURE__ */
|
|
4613
|
+
return /* @__PURE__ */ jsx32(Tooltip3, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx32(
|
|
4069
4614
|
HeaderToggleRoot,
|
|
4070
4615
|
{
|
|
4071
4616
|
onClick: onToggle,
|
|
@@ -4073,21 +4618,21 @@ var HeaderToggle = ({
|
|
|
4073
4618
|
sx,
|
|
4074
4619
|
"aria-label": collapsed ? expandLabel : collapseLabel,
|
|
4075
4620
|
"aria-expanded": !collapsed,
|
|
4076
|
-
children: /* @__PURE__ */
|
|
4621
|
+
children: /* @__PURE__ */ jsx32("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: collapsed ? expandIcon || /* @__PURE__ */ jsx32(Menu2, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx32(Menu2, { size: 20 }) })
|
|
4077
4622
|
}
|
|
4078
4623
|
) });
|
|
4079
4624
|
};
|
|
4080
4625
|
|
|
4081
4626
|
// src/components/Header/HeaderBrand.tsx
|
|
4082
|
-
import
|
|
4627
|
+
import Box12 from "@mui/material/Box";
|
|
4083
4628
|
import ButtonBase from "@mui/material/ButtonBase";
|
|
4084
4629
|
import { styled as styled19 } from "@mui/material/styles";
|
|
4085
4630
|
|
|
4086
4631
|
// src/components/Header/HeaderBrandLogo.tsx
|
|
4087
|
-
import
|
|
4632
|
+
import Box11 from "@mui/material/Box";
|
|
4088
4633
|
import { styled as styled17 } from "@mui/material/styles";
|
|
4089
|
-
import { jsx as
|
|
4090
|
-
var HeaderBrandLogoRoot = styled17(
|
|
4634
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
4635
|
+
var HeaderBrandLogoRoot = styled17(Box11, {
|
|
4091
4636
|
name: "MuiHeader",
|
|
4092
4637
|
slot: "BrandLogo"
|
|
4093
4638
|
})({
|
|
@@ -4098,15 +4643,15 @@ var HeaderBrandLogo = ({
|
|
|
4098
4643
|
children,
|
|
4099
4644
|
sx
|
|
4100
4645
|
}) => {
|
|
4101
|
-
return /* @__PURE__ */
|
|
4646
|
+
return /* @__PURE__ */ jsx33(HeaderBrandLogoRoot, { sx, children });
|
|
4102
4647
|
};
|
|
4103
4648
|
HeaderBrandLogo.displayName = "HeaderBrandLogo";
|
|
4104
4649
|
|
|
4105
4650
|
// src/components/Header/HeaderBrandTitle.tsx
|
|
4106
|
-
import
|
|
4651
|
+
import Typography10 from "@mui/material/Typography";
|
|
4107
4652
|
import { styled as styled18 } from "@mui/material/styles";
|
|
4108
|
-
import { jsx as
|
|
4109
|
-
var HeaderBrandTitleRoot = styled18(
|
|
4653
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
4654
|
+
var HeaderBrandTitleRoot = styled18(Typography10, {
|
|
4110
4655
|
name: "MuiHeader",
|
|
4111
4656
|
slot: "BrandTitle"
|
|
4112
4657
|
})(({ theme }) => ({
|
|
@@ -4123,13 +4668,13 @@ var HeaderBrandTitle = ({
|
|
|
4123
4668
|
children,
|
|
4124
4669
|
sx
|
|
4125
4670
|
}) => {
|
|
4126
|
-
return /* @__PURE__ */
|
|
4671
|
+
return /* @__PURE__ */ jsx34(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
|
|
4127
4672
|
};
|
|
4128
4673
|
HeaderBrandTitle.displayName = "HeaderBrandTitle";
|
|
4129
4674
|
|
|
4130
4675
|
// src/components/Header/HeaderBrand.tsx
|
|
4131
|
-
import { jsx as
|
|
4132
|
-
var HeaderBrandRoot = styled19(
|
|
4676
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
4677
|
+
var HeaderBrandRoot = styled19(Box12, {
|
|
4133
4678
|
name: "MuiHeader",
|
|
4134
4679
|
slot: "Brand",
|
|
4135
4680
|
shouldForwardProp: (prop) => prop !== "clickable"
|
|
@@ -4155,18 +4700,18 @@ var HeaderBrand = ({
|
|
|
4155
4700
|
sx
|
|
4156
4701
|
}) => {
|
|
4157
4702
|
if (onClick) {
|
|
4158
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsx35(HeaderBrandButtonRoot, { onClick, "aria-label": ariaLabel, sx, children });
|
|
4159
4704
|
}
|
|
4160
|
-
return /* @__PURE__ */
|
|
4705
|
+
return /* @__PURE__ */ jsx35(HeaderBrandRoot, { clickable: false, sx, children });
|
|
4161
4706
|
};
|
|
4162
4707
|
HeaderBrand.displayName = "HeaderBrand";
|
|
4163
4708
|
|
|
4164
4709
|
// src/components/Header/HeaderSwitchers.tsx
|
|
4165
|
-
import
|
|
4710
|
+
import Box13 from "@mui/material/Box";
|
|
4166
4711
|
import Divider2 from "@mui/material/Divider";
|
|
4167
4712
|
import { styled as styled20 } from "@mui/material/styles";
|
|
4168
|
-
import { jsx as
|
|
4169
|
-
var HeaderSwitchersRoot = styled20(
|
|
4713
|
+
import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4714
|
+
var HeaderSwitchersRoot = styled20(Box13, {
|
|
4170
4715
|
name: "MuiHeader",
|
|
4171
4716
|
slot: "Switchers"
|
|
4172
4717
|
})(({ theme }) => ({
|
|
@@ -4194,17 +4739,17 @@ var HeaderSwitchers = ({
|
|
|
4194
4739
|
if (minimal) {
|
|
4195
4740
|
return null;
|
|
4196
4741
|
}
|
|
4197
|
-
return /* @__PURE__ */
|
|
4198
|
-
showDivider && /* @__PURE__ */
|
|
4742
|
+
return /* @__PURE__ */ jsxs13(HeaderSwitchersRoot, { sx, children: [
|
|
4743
|
+
showDivider && /* @__PURE__ */ jsx36(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
|
|
4199
4744
|
children
|
|
4200
4745
|
] });
|
|
4201
4746
|
};
|
|
4202
4747
|
|
|
4203
4748
|
// src/components/Header/HeaderActions.tsx
|
|
4204
|
-
import
|
|
4749
|
+
import Box14 from "@mui/material/Box";
|
|
4205
4750
|
import { styled as styled21 } from "@mui/material/styles";
|
|
4206
|
-
import { jsx as
|
|
4207
|
-
var HeaderActionsRoot = styled21(
|
|
4751
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
4752
|
+
var HeaderActionsRoot = styled21(Box14, {
|
|
4208
4753
|
name: "MuiHeader",
|
|
4209
4754
|
slot: "Actions"
|
|
4210
4755
|
})(({ theme }) => ({
|
|
@@ -4216,11 +4761,11 @@ var HeaderActions = ({
|
|
|
4216
4761
|
children,
|
|
4217
4762
|
sx
|
|
4218
4763
|
}) => {
|
|
4219
|
-
return /* @__PURE__ */
|
|
4764
|
+
return /* @__PURE__ */ jsx37(HeaderActionsRoot, { sx, children });
|
|
4220
4765
|
};
|
|
4221
4766
|
|
|
4222
4767
|
// src/components/Header/Header.tsx
|
|
4223
|
-
import { jsx as
|
|
4768
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
4224
4769
|
var HeaderRootStyled = styled22(AppBar, {
|
|
4225
4770
|
name: "MuiHeader",
|
|
4226
4771
|
slot: "Root"
|
|
@@ -4241,7 +4786,7 @@ var HeaderToolbar = styled22(Toolbar, {
|
|
|
4241
4786
|
paddingRight: theme.spacing(2)
|
|
4242
4787
|
}
|
|
4243
4788
|
}));
|
|
4244
|
-
var HeaderSpacerStyled = styled22(
|
|
4789
|
+
var HeaderSpacerStyled = styled22(Box15, {
|
|
4245
4790
|
name: "MuiHeader",
|
|
4246
4791
|
slot: "Spacer"
|
|
4247
4792
|
})({
|
|
@@ -4252,10 +4797,10 @@ var Header = ({
|
|
|
4252
4797
|
minimal = false,
|
|
4253
4798
|
sx
|
|
4254
4799
|
}) => {
|
|
4255
|
-
const contextValue =
|
|
4256
|
-
return /* @__PURE__ */
|
|
4800
|
+
const contextValue = React14.useMemo(() => ({ minimal }), [minimal]);
|
|
4801
|
+
return /* @__PURE__ */ jsx38(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx38(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx38(HeaderToolbar, { children }) }) });
|
|
4257
4802
|
};
|
|
4258
|
-
var HeaderSpacer = ({ sx }) => /* @__PURE__ */
|
|
4803
|
+
var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx38(HeaderSpacerStyled, { sx });
|
|
4259
4804
|
Header.Toggle = HeaderToggle;
|
|
4260
4805
|
Header.Brand = HeaderBrand;
|
|
4261
4806
|
Header.BrandLogo = HeaderBrandLogo;
|
|
@@ -4266,31 +4811,31 @@ Header.Spacer = HeaderSpacer;
|
|
|
4266
4811
|
Header.displayName = "Header";
|
|
4267
4812
|
|
|
4268
4813
|
// src/components/AppSwitcher/AppSwitcher.tsx
|
|
4269
|
-
import * as
|
|
4814
|
+
import * as React20 from "react";
|
|
4270
4815
|
import Popover3 from "@mui/material/Popover";
|
|
4271
4816
|
import { styled as styled27 } from "@mui/material/styles";
|
|
4272
4817
|
|
|
4273
4818
|
// src/components/AppSwitcher/context.ts
|
|
4274
|
-
import * as
|
|
4275
|
-
var AppSwitcherContext =
|
|
4819
|
+
import * as React15 from "react";
|
|
4820
|
+
var AppSwitcherContext = React15.createContext(null);
|
|
4276
4821
|
var useAppSwitcher = () => {
|
|
4277
|
-
const context =
|
|
4822
|
+
const context = React15.useContext(AppSwitcherContext);
|
|
4278
4823
|
if (!context) {
|
|
4279
4824
|
throw new Error("AppSwitcher sub-components must be used within an AppSwitcher component");
|
|
4280
4825
|
}
|
|
4281
4826
|
return context;
|
|
4282
4827
|
};
|
|
4283
4828
|
AppSwitcherContext.displayName = "AppSwitcher.Context";
|
|
4284
|
-
var AppSwitcherFooterContext =
|
|
4829
|
+
var AppSwitcherFooterContext = React15.createContext(false);
|
|
4285
4830
|
AppSwitcherFooterContext.displayName = "AppSwitcher.FooterContext";
|
|
4286
4831
|
|
|
4287
4832
|
// src/components/AppSwitcher/AppSwitcherTrigger.tsx
|
|
4288
|
-
import * as
|
|
4833
|
+
import * as React16 from "react";
|
|
4289
4834
|
import IconButton4 from "@mui/material/IconButton";
|
|
4290
4835
|
import Tooltip4 from "@mui/material/Tooltip";
|
|
4291
4836
|
import { styled as styled23 } from "@mui/material/styles";
|
|
4292
4837
|
import { Grip } from "@wso2/oxygen-ui-icons-react";
|
|
4293
|
-
import { jsx as
|
|
4838
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4294
4839
|
var DEFAULT_LABEL = "Switch Platforms";
|
|
4295
4840
|
var AppSwitcherTriggerRoot = styled23(IconButton4, {
|
|
4296
4841
|
name: "MuiAppSwitcher",
|
|
@@ -4306,13 +4851,13 @@ var AppSwitcherTriggerRoot = styled23(IconButton4, {
|
|
|
4306
4851
|
cursor: "pointer"
|
|
4307
4852
|
}
|
|
4308
4853
|
}));
|
|
4309
|
-
var AppSwitcherTrigger =
|
|
4854
|
+
var AppSwitcherTrigger = React16.forwardRef(
|
|
4310
4855
|
function AppSwitcherTrigger2(_a, ref) {
|
|
4311
4856
|
var _b = _a, { label = DEFAULT_LABEL, icon, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["label", "icon", "onClick", "aria-label"]);
|
|
4312
4857
|
const { open, popoverId, handleOpen } = useAppSwitcher();
|
|
4313
4858
|
const resolvedLabel = label.trim().length > 0 ? label : DEFAULT_LABEL;
|
|
4314
4859
|
const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : resolvedLabel;
|
|
4315
|
-
return /* @__PURE__ */
|
|
4860
|
+
return /* @__PURE__ */ jsx39(Tooltip4, { title: resolvedLabel, children: /* @__PURE__ */ jsx39(
|
|
4316
4861
|
AppSwitcherTriggerRoot,
|
|
4317
4862
|
__spreadProps(__spreadValues({}, props), {
|
|
4318
4863
|
ref,
|
|
@@ -4324,7 +4869,7 @@ var AppSwitcherTrigger = React15.forwardRef(
|
|
|
4324
4869
|
"aria-controls": open ? popoverId : void 0,
|
|
4325
4870
|
"aria-haspopup": "true",
|
|
4326
4871
|
"aria-expanded": open,
|
|
4327
|
-
children: /* @__PURE__ */
|
|
4872
|
+
children: /* @__PURE__ */ jsx39("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx39(Grip, { size: 24 }) })
|
|
4328
4873
|
})
|
|
4329
4874
|
) });
|
|
4330
4875
|
}
|
|
@@ -4332,20 +4877,20 @@ var AppSwitcherTrigger = React15.forwardRef(
|
|
|
4332
4877
|
AppSwitcherTrigger.displayName = "AppSwitcher.Trigger";
|
|
4333
4878
|
|
|
4334
4879
|
// src/components/AppSwitcher/AppSwitcherSection.tsx
|
|
4335
|
-
import * as
|
|
4336
|
-
import
|
|
4880
|
+
import * as React18 from "react";
|
|
4881
|
+
import Box17 from "@mui/material/Box";
|
|
4337
4882
|
import Skeleton from "@mui/material/Skeleton";
|
|
4338
|
-
import
|
|
4883
|
+
import Typography12 from "@mui/material/Typography";
|
|
4339
4884
|
import { styled as styled25 } from "@mui/material/styles";
|
|
4340
4885
|
|
|
4341
4886
|
// src/components/AppSwitcher/AppSwitcherApp.tsx
|
|
4342
|
-
import * as
|
|
4343
|
-
import
|
|
4344
|
-
import
|
|
4887
|
+
import * as React17 from "react";
|
|
4888
|
+
import Box16 from "@mui/material/Box";
|
|
4889
|
+
import Card3 from "@mui/material/Card";
|
|
4345
4890
|
import ButtonBase2 from "@mui/material/ButtonBase";
|
|
4346
|
-
import
|
|
4891
|
+
import CircularProgress2 from "@mui/material/CircularProgress";
|
|
4347
4892
|
import Tooltip5 from "@mui/material/Tooltip";
|
|
4348
|
-
import
|
|
4893
|
+
import Typography11 from "@mui/material/Typography";
|
|
4349
4894
|
import { styled as styled24 } from "@mui/material/styles";
|
|
4350
4895
|
|
|
4351
4896
|
// src/components/AppSwitcher/brand.ts
|
|
@@ -4375,13 +4920,13 @@ var isSafeAppUrl = (url) => {
|
|
|
4375
4920
|
|
|
4376
4921
|
// src/components/AppSwitcher/AppSwitcherApp.tsx
|
|
4377
4922
|
import { WSO2 } from "@wso2/oxygen-ui-icons-react";
|
|
4378
|
-
import { jsx as
|
|
4923
|
+
import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4379
4924
|
var DEFAULT_UNAVAILABLE_LABEL = "Coming soon";
|
|
4380
4925
|
var APP_CARD_HEIGHT = {
|
|
4381
4926
|
platform: 13,
|
|
4382
4927
|
manage: 9
|
|
4383
4928
|
};
|
|
4384
|
-
var AppSwitcherAppRoot = styled24(
|
|
4929
|
+
var AppSwitcherAppRoot = styled24(Card3, {
|
|
4385
4930
|
name: "MuiAppSwitcher",
|
|
4386
4931
|
slot: "App",
|
|
4387
4932
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4453,7 +4998,7 @@ var AppSwitcherAppRoot = styled24(Card2, {
|
|
|
4453
4998
|
}
|
|
4454
4999
|
});
|
|
4455
5000
|
});
|
|
4456
|
-
var AppSwitcherAppIcon = styled24(
|
|
5001
|
+
var AppSwitcherAppIcon = styled24(Box16, {
|
|
4457
5002
|
name: "MuiAppSwitcher",
|
|
4458
5003
|
slot: "AppIcon",
|
|
4459
5004
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4481,7 +5026,7 @@ var AppSwitcherAppIcon = styled24(Box15, {
|
|
|
4481
5026
|
}
|
|
4482
5027
|
});
|
|
4483
5028
|
});
|
|
4484
|
-
var AppSwitcherAppName = styled24(
|
|
5029
|
+
var AppSwitcherAppName = styled24(Typography11, {
|
|
4485
5030
|
name: "MuiAppSwitcher",
|
|
4486
5031
|
slot: "AppName",
|
|
4487
5032
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4506,7 +5051,7 @@ var AppSwitcherAppName = styled24(Typography10, {
|
|
|
4506
5051
|
overflow: "hidden"
|
|
4507
5052
|
}));
|
|
4508
5053
|
var isModifiedClick = (event) => event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
|
|
4509
|
-
var AppSwitcherApp =
|
|
5054
|
+
var AppSwitcherApp = React17.forwardRef(
|
|
4510
5055
|
function AppSwitcherApp2({
|
|
4511
5056
|
id,
|
|
4512
5057
|
name,
|
|
@@ -4523,14 +5068,14 @@ var AppSwitcherApp = React16.forwardRef(
|
|
|
4523
5068
|
onClick
|
|
4524
5069
|
}, ref) {
|
|
4525
5070
|
var _a;
|
|
4526
|
-
const inFooter =
|
|
5071
|
+
const inFooter = React17.useContext(AppSwitcherFooterContext);
|
|
4527
5072
|
const tone = toneProp != null ? toneProp : inFooter ? "manage" : "platform";
|
|
4528
|
-
const switcher =
|
|
5073
|
+
const switcher = React17.useContext(AppSwitcherContext);
|
|
4529
5074
|
const current = currentProp != null ? currentProp : id !== void 0 && id === (switcher == null ? void 0 : switcher.currentAppId);
|
|
4530
5075
|
const normalizedUrl = typeof url === "string" && url.trim() === "" ? null : url;
|
|
4531
5076
|
const unsafeUrl = Boolean(normalizedUrl) && !isSafeAppUrl(normalizedUrl);
|
|
4532
5077
|
const safeUrl = unsafeUrl ? void 0 : normalizedUrl || void 0;
|
|
4533
|
-
|
|
5078
|
+
React17.useEffect(() => {
|
|
4534
5079
|
if (unsafeUrl) {
|
|
4535
5080
|
console.warn(
|
|
4536
5081
|
`AppSwitcher.App: ignored the url of "${name}" because only http:, https: and relative URLs are allowed. The card renders disabled.`
|
|
@@ -4564,7 +5109,7 @@ var AppSwitcherApp = React16.forwardRef(
|
|
|
4564
5109
|
event.preventDefault();
|
|
4565
5110
|
}
|
|
4566
5111
|
};
|
|
4567
|
-
const card = /* @__PURE__ */
|
|
5112
|
+
const card = /* @__PURE__ */ jsxs14(
|
|
4568
5113
|
AppSwitcherAppRoot,
|
|
4569
5114
|
__spreadProps(__spreadValues({}, anchorProps), {
|
|
4570
5115
|
ref,
|
|
@@ -4577,28 +5122,28 @@ var AppSwitcherApp = React16.forwardRef(
|
|
|
4577
5122
|
"aria-busy": busy ? "true" : void 0,
|
|
4578
5123
|
"aria-current": current ? "page" : void 0,
|
|
4579
5124
|
children: [
|
|
4580
|
-
/* @__PURE__ */
|
|
5125
|
+
/* @__PURE__ */ jsx40(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
|
|
4581
5126
|
// Same size as the mark, so the card does not reflow.
|
|
4582
|
-
/* @__PURE__ */
|
|
4583
|
-
) : icon != null ? icon : /* @__PURE__ */
|
|
4584
|
-
/* @__PURE__ */
|
|
5127
|
+
/* @__PURE__ */ jsx40(CircularProgress2, { color: "inherit", size: markSize, thickness: 5 })
|
|
5128
|
+
) : icon != null ? icon : /* @__PURE__ */ jsx40(WSO2, { size: markSize }) }),
|
|
5129
|
+
/* @__PURE__ */ jsx40(AppSwitcherAppName, { ownerState, children: name })
|
|
4585
5130
|
]
|
|
4586
5131
|
})
|
|
4587
5132
|
);
|
|
4588
|
-
return tooltip ? /* @__PURE__ */
|
|
5133
|
+
return tooltip ? /* @__PURE__ */ jsx40(Tooltip5, { title: tooltip, describeChild: true, children: card }) : card;
|
|
4589
5134
|
}
|
|
4590
5135
|
);
|
|
4591
5136
|
AppSwitcherApp.displayName = "AppSwitcher.App";
|
|
4592
5137
|
|
|
4593
5138
|
// src/components/AppSwitcher/AppSwitcherSection.tsx
|
|
4594
|
-
import { jsx as
|
|
4595
|
-
var AppSwitcherSectionRoot = styled25(
|
|
5139
|
+
import { jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5140
|
+
var AppSwitcherSectionRoot = styled25(Box17, {
|
|
4596
5141
|
name: "MuiAppSwitcher",
|
|
4597
5142
|
slot: "Section"
|
|
4598
5143
|
})(({ theme }) => ({
|
|
4599
5144
|
padding: theme.spacing(2)
|
|
4600
5145
|
}));
|
|
4601
|
-
var AppSwitcherSectionLabel = styled25(
|
|
5146
|
+
var AppSwitcherSectionLabel = styled25(Typography12, {
|
|
4602
5147
|
name: "MuiAppSwitcher",
|
|
4603
5148
|
slot: "SectionLabel"
|
|
4604
5149
|
})(({ theme }) => ({
|
|
@@ -4643,7 +5188,7 @@ var AppSwitcherAppSkeleton = styled25(Skeleton, {
|
|
|
4643
5188
|
var renderAppItems = (items, { missingUrlIsUnavailable }) => items.map((_a, index) => {
|
|
4644
5189
|
var _b = _a, { key, url } = _b, item = __objRest(_b, ["key", "url"]);
|
|
4645
5190
|
var _a2, _b2;
|
|
4646
|
-
return /* @__PURE__ */
|
|
5191
|
+
return /* @__PURE__ */ jsx41(
|
|
4647
5192
|
AppSwitcherApp,
|
|
4648
5193
|
__spreadProps(__spreadValues({}, item), {
|
|
4649
5194
|
url: url === void 0 && missingUrlIsUnavailable ? null : url
|
|
@@ -4659,10 +5204,10 @@ var AppSwitcherSection = ({
|
|
|
4659
5204
|
loading = false,
|
|
4660
5205
|
loadingCount
|
|
4661
5206
|
}) => {
|
|
4662
|
-
const labelId =
|
|
4663
|
-
const inFooter =
|
|
5207
|
+
const labelId = React18.useId();
|
|
5208
|
+
const inFooter = React18.useContext(AppSwitcherFooterContext);
|
|
4664
5209
|
const tone = inFooter ? "manage" : "platform";
|
|
4665
|
-
const gridRef =
|
|
5210
|
+
const gridRef = React18.useRef(null);
|
|
4666
5211
|
const handleKeyDown = (event) => {
|
|
4667
5212
|
var _a, _b;
|
|
4668
5213
|
const keys = ["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"];
|
|
@@ -4713,7 +5258,7 @@ var AppSwitcherSection = ({
|
|
|
4713
5258
|
event.preventDefault();
|
|
4714
5259
|
cards[nextIndex].focus();
|
|
4715
5260
|
};
|
|
4716
|
-
const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */
|
|
5261
|
+
const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx41(
|
|
4717
5262
|
AppSwitcherAppSkeleton,
|
|
4718
5263
|
{
|
|
4719
5264
|
ownerState: { tone },
|
|
@@ -4723,9 +5268,9 @@ var AppSwitcherSection = ({
|
|
|
4723
5268
|
},
|
|
4724
5269
|
index
|
|
4725
5270
|
)) : children != null ? children : apps && renderAppItems(apps, { missingUrlIsUnavailable: true });
|
|
4726
|
-
return /* @__PURE__ */
|
|
4727
|
-
label && /* @__PURE__ */
|
|
4728
|
-
/* @__PURE__ */
|
|
5271
|
+
return /* @__PURE__ */ jsxs15(AppSwitcherSectionRoot, { children: [
|
|
5272
|
+
label && /* @__PURE__ */ jsx41(AppSwitcherSectionLabel, { id: labelId, children: label }),
|
|
5273
|
+
/* @__PURE__ */ jsx41(
|
|
4729
5274
|
AppSwitcherSectionGrid,
|
|
4730
5275
|
{
|
|
4731
5276
|
ref: gridRef,
|
|
@@ -4734,9 +5279,9 @@ var AppSwitcherSection = ({
|
|
|
4734
5279
|
"aria-labelledby": label ? labelId : void 0,
|
|
4735
5280
|
"aria-busy": loading ? "true" : void 0,
|
|
4736
5281
|
onKeyDown: handleKeyDown,
|
|
4737
|
-
children:
|
|
5282
|
+
children: React18.Children.map(
|
|
4738
5283
|
content,
|
|
4739
|
-
(child) =>
|
|
5284
|
+
(child) => React18.isValidElement(child) ? /* @__PURE__ */ jsx41("li", { children: child }) : child
|
|
4740
5285
|
)
|
|
4741
5286
|
}
|
|
4742
5287
|
)
|
|
@@ -4745,11 +5290,11 @@ var AppSwitcherSection = ({
|
|
|
4745
5290
|
AppSwitcherSection.displayName = "AppSwitcher.Section";
|
|
4746
5291
|
|
|
4747
5292
|
// src/components/AppSwitcher/AppSwitcherFooter.tsx
|
|
4748
|
-
import * as
|
|
4749
|
-
import
|
|
5293
|
+
import * as React19 from "react";
|
|
5294
|
+
import Box18 from "@mui/material/Box";
|
|
4750
5295
|
import { alpha, styled as styled26 } from "@mui/material/styles";
|
|
4751
|
-
import { jsx as
|
|
4752
|
-
var AppSwitcherFooterRoot = styled26(
|
|
5296
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
5297
|
+
var AppSwitcherFooterRoot = styled26(Box18, {
|
|
4753
5298
|
name: "MuiAppSwitcher",
|
|
4754
5299
|
slot: "Footer"
|
|
4755
5300
|
})(({ theme }) => ({
|
|
@@ -4768,10 +5313,10 @@ var AppSwitcherFooter = ({
|
|
|
4768
5313
|
loadingCount
|
|
4769
5314
|
}) => {
|
|
4770
5315
|
const cards = children != null ? children : links && renderAppItems(links, { missingUrlIsUnavailable: false });
|
|
4771
|
-
if (!loading &&
|
|
5316
|
+
if (!loading && React19.Children.toArray(cards).length === 0) {
|
|
4772
5317
|
return null;
|
|
4773
5318
|
}
|
|
4774
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ jsx42(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx42(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx42(
|
|
4775
5320
|
AppSwitcherSection,
|
|
4776
5321
|
{
|
|
4777
5322
|
label,
|
|
@@ -4785,7 +5330,7 @@ var AppSwitcherFooter = ({
|
|
|
4785
5330
|
AppSwitcherFooter.displayName = "AppSwitcher.Footer";
|
|
4786
5331
|
|
|
4787
5332
|
// src/components/AppSwitcher/AppSwitcher.tsx
|
|
4788
|
-
import { jsx as
|
|
5333
|
+
import { jsx as jsx43, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4789
5334
|
var AppSwitcherRoot = styled27(Popover3, {
|
|
4790
5335
|
name: "MuiAppSwitcher",
|
|
4791
5336
|
slot: "Root",
|
|
@@ -4809,18 +5354,18 @@ var AppSwitcher = ({
|
|
|
4809
5354
|
currentAppId,
|
|
4810
5355
|
unavailableLabel
|
|
4811
5356
|
}) => {
|
|
4812
|
-
const [anchorEl, setAnchorEl] =
|
|
5357
|
+
const [anchorEl, setAnchorEl] = React20.useState(null);
|
|
4813
5358
|
const open = Boolean(anchorEl);
|
|
4814
|
-
const popoverId =
|
|
4815
|
-
const handleOpen =
|
|
5359
|
+
const popoverId = React20.useId();
|
|
5360
|
+
const handleOpen = React20.useCallback((event) => {
|
|
4816
5361
|
const target = event.currentTarget;
|
|
4817
5362
|
setAnchorEl((current) => current ? null : target);
|
|
4818
5363
|
}, []);
|
|
4819
|
-
const handleClose =
|
|
5364
|
+
const handleClose = React20.useCallback(() => {
|
|
4820
5365
|
setAnchorEl(null);
|
|
4821
5366
|
}, []);
|
|
4822
5367
|
const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp : "Applications";
|
|
4823
|
-
const contextValue =
|
|
5368
|
+
const contextValue = React20.useMemo(
|
|
4824
5369
|
() => ({
|
|
4825
5370
|
open,
|
|
4826
5371
|
anchorEl,
|
|
@@ -4832,14 +5377,14 @@ var AppSwitcher = ({
|
|
|
4832
5377
|
}),
|
|
4833
5378
|
[open, anchorEl, popoverId, handleOpen, handleClose, currentAppId, unavailableLabel]
|
|
4834
5379
|
);
|
|
4835
|
-
const childrenArray =
|
|
5380
|
+
const childrenArray = React20.Children.toArray(children);
|
|
4836
5381
|
const triggerChild = childrenArray.find(
|
|
4837
|
-
(child) =>
|
|
5382
|
+
(child) => React20.isValidElement(child) && child.type === AppSwitcherTrigger
|
|
4838
5383
|
);
|
|
4839
5384
|
const popoverChildren = childrenArray.filter((child) => child !== triggerChild);
|
|
4840
|
-
return /* @__PURE__ */
|
|
5385
|
+
return /* @__PURE__ */ jsxs16(AppSwitcherContext.Provider, { value: contextValue, children: [
|
|
4841
5386
|
triggerChild,
|
|
4842
|
-
/* @__PURE__ */
|
|
5387
|
+
/* @__PURE__ */ jsx43(
|
|
4843
5388
|
AppSwitcherRoot,
|
|
4844
5389
|
{
|
|
4845
5390
|
id: popoverId,
|
|
@@ -4863,15 +5408,15 @@ AppSwitcher.Footer = AppSwitcherFooter;
|
|
|
4863
5408
|
AppSwitcher.displayName = "AppSwitcher";
|
|
4864
5409
|
|
|
4865
5410
|
// src/components/Sidebar/Sidebar.tsx
|
|
4866
|
-
import * as
|
|
4867
|
-
import
|
|
5411
|
+
import * as React28 from "react";
|
|
5412
|
+
import Box24 from "@mui/material/Box";
|
|
4868
5413
|
import { styled as styled40 } from "@mui/material/styles";
|
|
4869
5414
|
|
|
4870
5415
|
// src/components/Sidebar/context.ts
|
|
4871
|
-
import * as
|
|
4872
|
-
var SidebarContext =
|
|
5416
|
+
import * as React21 from "react";
|
|
5417
|
+
var SidebarContext = React21.createContext(null);
|
|
4873
5418
|
var useSidebar = () => {
|
|
4874
|
-
const context =
|
|
5419
|
+
const context = React21.useContext(SidebarContext);
|
|
4875
5420
|
if (!context) {
|
|
4876
5421
|
throw new Error("Sidebar compound components must be used within Sidebar");
|
|
4877
5422
|
}
|
|
@@ -4879,12 +5424,12 @@ var useSidebar = () => {
|
|
|
4879
5424
|
};
|
|
4880
5425
|
|
|
4881
5426
|
// src/components/Sidebar/SidebarNav.tsx
|
|
4882
|
-
import * as
|
|
4883
|
-
import
|
|
5427
|
+
import * as React22 from "react";
|
|
5428
|
+
import Box19 from "@mui/material/Box";
|
|
4884
5429
|
import Divider3 from "@mui/material/Divider";
|
|
4885
5430
|
import { styled as styled28 } from "@mui/material/styles";
|
|
4886
|
-
import { jsx as
|
|
4887
|
-
var SidebarNavRoot = styled28(
|
|
5431
|
+
import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5432
|
+
var SidebarNavRoot = styled28(Box19, {
|
|
4888
5433
|
name: "MuiSidebar",
|
|
4889
5434
|
slot: "Nav"
|
|
4890
5435
|
})(({ theme }) => ({
|
|
@@ -4919,24 +5464,24 @@ var SidebarNav = ({
|
|
|
4919
5464
|
sx
|
|
4920
5465
|
}) => {
|
|
4921
5466
|
const { collapsed } = useSidebar();
|
|
4922
|
-
const childArray =
|
|
4923
|
-
return /* @__PURE__ */
|
|
4924
|
-
index > 0 && showDividers && !collapsed && /* @__PURE__ */
|
|
5467
|
+
const childArray = React22.Children.toArray(children);
|
|
5468
|
+
return /* @__PURE__ */ jsx44(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs17(React22.Fragment, { children: [
|
|
5469
|
+
index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx44(SidebarNavDivider, {}),
|
|
4925
5470
|
child
|
|
4926
5471
|
] }, index)) });
|
|
4927
5472
|
};
|
|
4928
5473
|
|
|
4929
5474
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
4930
|
-
import * as
|
|
4931
|
-
import
|
|
5475
|
+
import * as React23 from "react";
|
|
5476
|
+
import Box20 from "@mui/material/Box";
|
|
4932
5477
|
import List from "@mui/material/List";
|
|
4933
5478
|
import { styled as styled30 } from "@mui/material/styles";
|
|
4934
5479
|
|
|
4935
5480
|
// src/components/Sidebar/SidebarCategoryLabel.tsx
|
|
4936
|
-
import
|
|
5481
|
+
import Typography13 from "@mui/material/Typography";
|
|
4937
5482
|
import { styled as styled29 } from "@mui/material/styles";
|
|
4938
|
-
import { jsx as
|
|
4939
|
-
var SidebarCategoryLabelRoot = styled29(
|
|
5483
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
5484
|
+
var SidebarCategoryLabelRoot = styled29(Typography13, {
|
|
4940
5485
|
name: "MuiSidebar",
|
|
4941
5486
|
slot: "CategoryLabel",
|
|
4942
5487
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -4961,13 +5506,13 @@ var SidebarCategoryLabelRoot = styled29(Typography12, {
|
|
|
4961
5506
|
}));
|
|
4962
5507
|
var SidebarCategoryLabel = ({ children, sx }) => {
|
|
4963
5508
|
const { collapsed } = useSidebar();
|
|
4964
|
-
return /* @__PURE__ */
|
|
5509
|
+
return /* @__PURE__ */ jsx45(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
|
|
4965
5510
|
};
|
|
4966
5511
|
SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
|
|
4967
5512
|
|
|
4968
5513
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
4969
|
-
import { jsx as
|
|
4970
|
-
var SidebarCategoryRoot = styled30(
|
|
5514
|
+
import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5515
|
+
var SidebarCategoryRoot = styled30(Box20, {
|
|
4971
5516
|
name: "MuiSidebar",
|
|
4972
5517
|
slot: "Category"
|
|
4973
5518
|
})(({ theme }) => ({
|
|
@@ -4976,9 +5521,9 @@ var SidebarCategoryRoot = styled30(Box19, {
|
|
|
4976
5521
|
var separateChildren = (children) => {
|
|
4977
5522
|
let labelChild = null;
|
|
4978
5523
|
const otherChildren = [];
|
|
4979
|
-
|
|
5524
|
+
React23.Children.forEach(children, (child) => {
|
|
4980
5525
|
var _a;
|
|
4981
|
-
if (
|
|
5526
|
+
if (React23.isValidElement(child)) {
|
|
4982
5527
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
4983
5528
|
if (displayName === "SidebarCategoryLabel") {
|
|
4984
5529
|
labelChild = child;
|
|
@@ -4996,16 +5541,16 @@ var SidebarCategory = ({
|
|
|
4996
5541
|
sx
|
|
4997
5542
|
}) => {
|
|
4998
5543
|
const { labelChild, otherChildren } = separateChildren(children);
|
|
4999
|
-
return /* @__PURE__ */
|
|
5544
|
+
return /* @__PURE__ */ jsxs18(SidebarCategoryRoot, { sx, children: [
|
|
5000
5545
|
labelChild,
|
|
5001
|
-
/* @__PURE__ */
|
|
5546
|
+
/* @__PURE__ */ jsx46(List, { disablePadding: true, children: otherChildren })
|
|
5002
5547
|
] });
|
|
5003
5548
|
};
|
|
5004
5549
|
SidebarCategory.displayName = "SidebarCategory";
|
|
5005
5550
|
|
|
5006
5551
|
// src/components/Sidebar/SidebarItem.tsx
|
|
5007
|
-
import * as
|
|
5008
|
-
import
|
|
5552
|
+
import * as React26 from "react";
|
|
5553
|
+
import Box21 from "@mui/material/Box";
|
|
5009
5554
|
import List2 from "@mui/material/List";
|
|
5010
5555
|
import ListItem from "@mui/material/ListItem";
|
|
5011
5556
|
import ListItemButton from "@mui/material/ListItemButton";
|
|
@@ -5020,11 +5565,11 @@ import { styled as styled34 } from "@mui/material/styles";
|
|
|
5020
5565
|
import { ChevronDown as ChevronDown3, ChevronUp } from "@wso2/oxygen-ui-icons-react";
|
|
5021
5566
|
|
|
5022
5567
|
// src/components/Sidebar/SidebarItemContext.tsx
|
|
5023
|
-
import * as
|
|
5024
|
-
import { jsx as
|
|
5025
|
-
var SidebarItemContext =
|
|
5568
|
+
import * as React24 from "react";
|
|
5569
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
5570
|
+
var SidebarItemContext = React24.createContext(null);
|
|
5026
5571
|
var useSidebarItemContext = () => {
|
|
5027
|
-
const context =
|
|
5572
|
+
const context = React24.useContext(SidebarItemContext);
|
|
5028
5573
|
if (!context) {
|
|
5029
5574
|
throw new Error(
|
|
5030
5575
|
"useSidebarItemContext must be used within a SidebarItem component"
|
|
@@ -5033,14 +5578,14 @@ var useSidebarItemContext = () => {
|
|
|
5033
5578
|
return context;
|
|
5034
5579
|
};
|
|
5035
5580
|
var SidebarItemProvider = ({ value, children }) => {
|
|
5036
|
-
return /* @__PURE__ */
|
|
5581
|
+
return /* @__PURE__ */ jsx47(SidebarItemContext.Provider, { value, children });
|
|
5037
5582
|
};
|
|
5038
5583
|
|
|
5039
5584
|
// src/components/Sidebar/SidebarItemIcon.tsx
|
|
5040
|
-
import * as
|
|
5585
|
+
import * as React25 from "react";
|
|
5041
5586
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
5042
5587
|
import { styled as styled31 } from "@mui/material/styles";
|
|
5043
|
-
import { jsx as
|
|
5588
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
5044
5589
|
var SidebarItemIconRoot = styled31(ListItemIcon, {
|
|
5045
5590
|
name: "MuiSidebar",
|
|
5046
5591
|
slot: "ItemIcon",
|
|
@@ -5058,10 +5603,10 @@ var SidebarItemIcon = ({
|
|
|
5058
5603
|
var _a;
|
|
5059
5604
|
const { collapsed } = useSidebar();
|
|
5060
5605
|
const { isActive } = useSidebarItemContext();
|
|
5061
|
-
const iconWithSize =
|
|
5606
|
+
const iconWithSize = React25.isValidElement(children) ? React25.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
|
|
5062
5607
|
size: (_a = children.props.size) != null ? _a : 20
|
|
5063
5608
|
})) : children;
|
|
5064
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ jsx48(
|
|
5065
5610
|
SidebarItemIconRoot,
|
|
5066
5611
|
{
|
|
5067
5612
|
ownerState: { collapsed, isActive },
|
|
@@ -5075,7 +5620,7 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
|
|
|
5075
5620
|
// src/components/Sidebar/SidebarItemLabel.tsx
|
|
5076
5621
|
import ListItemText from "@mui/material/ListItemText";
|
|
5077
5622
|
import { styled as styled32 } from "@mui/material/styles";
|
|
5078
|
-
import { jsx as
|
|
5623
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5079
5624
|
var SidebarItemLabelRoot = styled32(ListItemText, {
|
|
5080
5625
|
name: "MuiSidebar",
|
|
5081
5626
|
slot: "ItemLabel",
|
|
@@ -5101,14 +5646,14 @@ var SidebarItemLabel = ({
|
|
|
5101
5646
|
}) => {
|
|
5102
5647
|
const { collapsed } = useSidebar();
|
|
5103
5648
|
const { isActive } = useSidebarItemContext();
|
|
5104
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ jsx49(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
|
|
5105
5650
|
};
|
|
5106
5651
|
SidebarItemLabel.displayName = "SidebarItemLabel";
|
|
5107
5652
|
|
|
5108
5653
|
// src/components/Sidebar/SidebarItemBadge.tsx
|
|
5109
5654
|
import Chip from "@mui/material/Chip";
|
|
5110
5655
|
import { styled as styled33 } from "@mui/material/styles";
|
|
5111
|
-
import { jsx as
|
|
5656
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
5112
5657
|
var SidebarItemBadgeRoot = styled33(Chip, {
|
|
5113
5658
|
name: "MuiSidebar",
|
|
5114
5659
|
slot: "ItemBadge"
|
|
@@ -5126,12 +5671,12 @@ var SidebarItemBadge = ({
|
|
|
5126
5671
|
if (collapsed) {
|
|
5127
5672
|
return null;
|
|
5128
5673
|
}
|
|
5129
|
-
return /* @__PURE__ */
|
|
5674
|
+
return /* @__PURE__ */ jsx50(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
|
|
5130
5675
|
};
|
|
5131
5676
|
SidebarItemBadge.displayName = "SidebarItemBadge";
|
|
5132
5677
|
|
|
5133
5678
|
// src/components/Sidebar/SidebarItem.tsx
|
|
5134
|
-
import { Fragment as
|
|
5679
|
+
import { Fragment as Fragment8, jsx as jsx51, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5135
5680
|
var SidebarItemRoot = styled34(ListItem, {
|
|
5136
5681
|
name: "MuiSidebar",
|
|
5137
5682
|
slot: "Item"
|
|
@@ -5163,7 +5708,7 @@ var SidebarItemButton = styled34(ListItemButton, {
|
|
|
5163
5708
|
}
|
|
5164
5709
|
}
|
|
5165
5710
|
}));
|
|
5166
|
-
var SidebarItemChevron = styled34(
|
|
5711
|
+
var SidebarItemChevron = styled34(Box21, {
|
|
5167
5712
|
name: "MuiSidebar",
|
|
5168
5713
|
slot: "ItemChevron"
|
|
5169
5714
|
})({
|
|
@@ -5209,9 +5754,9 @@ var CHILD_DISPLAY_NAMES = [
|
|
|
5209
5754
|
var separateChildren2 = (children) => {
|
|
5210
5755
|
const composableChildren = [];
|
|
5211
5756
|
const nestedItems = [];
|
|
5212
|
-
|
|
5757
|
+
React26.Children.toArray(children).forEach((child) => {
|
|
5213
5758
|
var _a;
|
|
5214
|
-
if (
|
|
5759
|
+
if (React26.isValidElement(child)) {
|
|
5215
5760
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5216
5761
|
if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
|
|
5217
5762
|
composableChildren.push(child);
|
|
@@ -5226,9 +5771,9 @@ var separateChildren2 = (children) => {
|
|
|
5226
5771
|
};
|
|
5227
5772
|
var getTooltipLabel = (children) => {
|
|
5228
5773
|
let tooltipLabel = "";
|
|
5229
|
-
|
|
5774
|
+
React26.Children.forEach(children, (child) => {
|
|
5230
5775
|
var _a;
|
|
5231
|
-
if (
|
|
5776
|
+
if (React26.isValidElement(child)) {
|
|
5232
5777
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5233
5778
|
const props = child.props;
|
|
5234
5779
|
if (displayName === "SidebarItemLabel" && props.children) {
|
|
@@ -5241,9 +5786,9 @@ var getTooltipLabel = (children) => {
|
|
|
5241
5786
|
var extractItemContent = (itemChildren) => {
|
|
5242
5787
|
let icon = null;
|
|
5243
5788
|
let label = "";
|
|
5244
|
-
|
|
5789
|
+
React26.Children.forEach(itemChildren, (child) => {
|
|
5245
5790
|
var _a;
|
|
5246
|
-
if (
|
|
5791
|
+
if (React26.isValidElement(child)) {
|
|
5247
5792
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5248
5793
|
const props = child.props;
|
|
5249
5794
|
if (displayName === "SidebarItemIcon") {
|
|
@@ -5267,33 +5812,33 @@ var SidebarItem = ({
|
|
|
5267
5812
|
const hasNestedItems = nestedItems.length > 0;
|
|
5268
5813
|
const isActive = activeItem === id;
|
|
5269
5814
|
const isExpanded = expandedMenus[id] || false;
|
|
5270
|
-
const hasActiveChild =
|
|
5815
|
+
const hasActiveChild = React26.useMemo(() => {
|
|
5271
5816
|
if (!hasNestedItems || !activeItem) return false;
|
|
5272
5817
|
return nestedItems.some((child) => {
|
|
5273
|
-
if (
|
|
5818
|
+
if (React26.isValidElement(child)) {
|
|
5274
5819
|
return child.props.id === activeItem;
|
|
5275
5820
|
}
|
|
5276
5821
|
return false;
|
|
5277
5822
|
});
|
|
5278
5823
|
}, [hasNestedItems, nestedItems, activeItem]);
|
|
5279
|
-
const [popoverAnchor, setPopoverAnchor] =
|
|
5280
|
-
const [popoverOpenedByClick, setPopoverOpenedByClick] =
|
|
5281
|
-
const closeTimeoutRef =
|
|
5824
|
+
const [popoverAnchor, setPopoverAnchor] = React26.useState(null);
|
|
5825
|
+
const [popoverOpenedByClick, setPopoverOpenedByClick] = React26.useState(false);
|
|
5826
|
+
const closeTimeoutRef = React26.useRef(null);
|
|
5282
5827
|
const popoverOpen = Boolean(popoverAnchor);
|
|
5283
|
-
const popoverId =
|
|
5284
|
-
const clearCloseTimeout =
|
|
5828
|
+
const popoverId = React26.useId();
|
|
5829
|
+
const clearCloseTimeout = React26.useCallback(() => {
|
|
5285
5830
|
if (closeTimeoutRef.current != null) {
|
|
5286
5831
|
clearTimeout(closeTimeoutRef.current);
|
|
5287
5832
|
closeTimeoutRef.current = null;
|
|
5288
5833
|
}
|
|
5289
5834
|
}, []);
|
|
5290
|
-
const closePopover =
|
|
5835
|
+
const closePopover = React26.useCallback(() => {
|
|
5291
5836
|
clearCloseTimeout();
|
|
5292
5837
|
setPopoverAnchor(null);
|
|
5293
5838
|
setPopoverOpenedByClick(false);
|
|
5294
5839
|
}, [clearCloseTimeout]);
|
|
5295
|
-
|
|
5296
|
-
|
|
5840
|
+
React26.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
|
|
5841
|
+
React26.useEffect(() => {
|
|
5297
5842
|
if (!collapsed) {
|
|
5298
5843
|
closePopover();
|
|
5299
5844
|
}
|
|
@@ -5343,7 +5888,7 @@ var SidebarItem = ({
|
|
|
5343
5888
|
const tooltipLabel = getTooltipLabel(children);
|
|
5344
5889
|
const ownerState = { collapsed, depth };
|
|
5345
5890
|
const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
|
|
5346
|
-
const buttonContent = /* @__PURE__ */
|
|
5891
|
+
const buttonContent = /* @__PURE__ */ jsx51(
|
|
5347
5892
|
SidebarItemButton,
|
|
5348
5893
|
{
|
|
5349
5894
|
selected: shouldShowSelected,
|
|
@@ -5354,21 +5899,21 @@ var SidebarItem = ({
|
|
|
5354
5899
|
"aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
|
|
5355
5900
|
"aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
|
|
5356
5901
|
"aria-controls": popoverOpen ? popoverId : void 0,
|
|
5357
|
-
children: /* @__PURE__ */
|
|
5902
|
+
children: /* @__PURE__ */ jsxs19(SidebarItemProvider, { value: contextValue, children: [
|
|
5358
5903
|
composableChildren,
|
|
5359
|
-
!collapsed && hasNestedItems && /* @__PURE__ */
|
|
5360
|
-
!collapsed && !hasNestedItems && /* @__PURE__ */
|
|
5904
|
+
!collapsed && hasNestedItems && /* @__PURE__ */ jsx51(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx51(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx51(ChevronDown3, { size: 16 }) }),
|
|
5905
|
+
!collapsed && !hasNestedItems && /* @__PURE__ */ jsx51(Box21, { sx: { ml: "auto", width: 16, pl: 1 } })
|
|
5361
5906
|
] })
|
|
5362
5907
|
}
|
|
5363
5908
|
);
|
|
5364
|
-
const wrappedContent = link ? /* @__PURE__ */
|
|
5909
|
+
const wrappedContent = link ? /* @__PURE__ */ jsx51(Fragment8, { children: React26.cloneElement(link, {}, buttonContent) }) : buttonContent;
|
|
5365
5910
|
const collapsedWithNested = collapsed && hasNestedItems;
|
|
5366
5911
|
const handlePopoverItemClick = (itemId) => {
|
|
5367
5912
|
onSelect == null ? void 0 : onSelect(itemId);
|
|
5368
5913
|
closePopover();
|
|
5369
5914
|
};
|
|
5370
|
-
return /* @__PURE__ */
|
|
5371
|
-
/* @__PURE__ */
|
|
5915
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
5916
|
+
/* @__PURE__ */ jsx51(
|
|
5372
5917
|
SidebarItemRoot,
|
|
5373
5918
|
{
|
|
5374
5919
|
disablePadding: true,
|
|
@@ -5376,11 +5921,11 @@ var SidebarItem = ({
|
|
|
5376
5921
|
onMouseLeave: handleMouseLeave,
|
|
5377
5922
|
children: collapsed ? (
|
|
5378
5923
|
// When collapsed: show tooltip only for items without nested children
|
|
5379
|
-
collapsedWithNested ? wrappedContent : /* @__PURE__ */
|
|
5924
|
+
collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx51(Tooltip6, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
|
|
5380
5925
|
) : wrappedContent
|
|
5381
5926
|
}
|
|
5382
5927
|
),
|
|
5383
|
-
collapsedWithNested && /* @__PURE__ */
|
|
5928
|
+
collapsedWithNested && /* @__PURE__ */ jsx51(
|
|
5384
5929
|
SidebarItemPopover,
|
|
5385
5930
|
{
|
|
5386
5931
|
open: popoverOpen,
|
|
@@ -5397,25 +5942,25 @@ var SidebarItem = ({
|
|
|
5397
5942
|
onMouseLeave: handleMouseLeave
|
|
5398
5943
|
}
|
|
5399
5944
|
},
|
|
5400
|
-
children: /* @__PURE__ */
|
|
5945
|
+
children: /* @__PURE__ */ jsx51(
|
|
5401
5946
|
SidebarItemPopoverList,
|
|
5402
5947
|
{
|
|
5403
5948
|
id: popoverId,
|
|
5404
5949
|
autoFocusItem: popoverOpen && popoverOpenedByClick,
|
|
5405
5950
|
disablePadding: true,
|
|
5406
5951
|
children: nestedItems.map((child, index) => {
|
|
5407
|
-
if (
|
|
5952
|
+
if (React26.isValidElement(child)) {
|
|
5408
5953
|
const childProps = child.props;
|
|
5409
5954
|
const { icon, label } = extractItemContent(childProps.children);
|
|
5410
5955
|
const isItemActive = activeItem === childProps.id;
|
|
5411
|
-
return /* @__PURE__ */
|
|
5956
|
+
return /* @__PURE__ */ jsxs19(
|
|
5412
5957
|
SidebarItemPopoverButton,
|
|
5413
5958
|
{
|
|
5414
5959
|
selected: isItemActive,
|
|
5415
5960
|
onClick: () => handlePopoverItemClick(childProps.id),
|
|
5416
5961
|
children: [
|
|
5417
|
-
icon && /* @__PURE__ */
|
|
5418
|
-
/* @__PURE__ */
|
|
5962
|
+
icon && /* @__PURE__ */ jsx51(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
|
|
5963
|
+
/* @__PURE__ */ jsx51(ListItemText2, { primary: label })
|
|
5419
5964
|
]
|
|
5420
5965
|
},
|
|
5421
5966
|
childProps.id || index
|
|
@@ -5427,9 +5972,9 @@ var SidebarItem = ({
|
|
|
5427
5972
|
)
|
|
5428
5973
|
}
|
|
5429
5974
|
),
|
|
5430
|
-
hasNestedItems && !collapsed && /* @__PURE__ */
|
|
5431
|
-
if (
|
|
5432
|
-
return
|
|
5975
|
+
hasNestedItems && !collapsed && /* @__PURE__ */ jsx51(Collapse, { component: "li", in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx51(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
5976
|
+
if (React26.isValidElement(child)) {
|
|
5977
|
+
return React26.cloneElement(child, {
|
|
5433
5978
|
key: child.key || index,
|
|
5434
5979
|
depth: depth + 1
|
|
5435
5980
|
});
|
|
@@ -5441,11 +5986,11 @@ var SidebarItem = ({
|
|
|
5441
5986
|
SidebarItem.displayName = "SidebarItem";
|
|
5442
5987
|
|
|
5443
5988
|
// src/components/Sidebar/SidebarFooter.tsx
|
|
5444
|
-
import
|
|
5989
|
+
import Box22 from "@mui/material/Box";
|
|
5445
5990
|
import Divider4 from "@mui/material/Divider";
|
|
5446
5991
|
import { styled as styled35 } from "@mui/material/styles";
|
|
5447
|
-
import { Fragment as
|
|
5448
|
-
var SidebarFooterRoot = styled35(
|
|
5992
|
+
import { Fragment as Fragment9, jsx as jsx52, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5993
|
+
var SidebarFooterRoot = styled35(Box22, {
|
|
5449
5994
|
name: "MuiSidebar",
|
|
5450
5995
|
slot: "Footer"
|
|
5451
5996
|
})(({ theme }) => ({
|
|
@@ -5457,15 +6002,15 @@ var SidebarFooter = ({
|
|
|
5457
6002
|
showDivider = true,
|
|
5458
6003
|
sx
|
|
5459
6004
|
}) => {
|
|
5460
|
-
return /* @__PURE__ */
|
|
5461
|
-
showDivider && /* @__PURE__ */
|
|
5462
|
-
/* @__PURE__ */
|
|
6005
|
+
return /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
6006
|
+
showDivider && /* @__PURE__ */ jsx52(Divider4, {}),
|
|
6007
|
+
/* @__PURE__ */ jsx52(SidebarFooterRoot, { sx, children })
|
|
5463
6008
|
] });
|
|
5464
6009
|
};
|
|
5465
6010
|
|
|
5466
6011
|
// src/components/Sidebar/SidebarUser.tsx
|
|
5467
|
-
import * as
|
|
5468
|
-
import
|
|
6012
|
+
import * as React27 from "react";
|
|
6013
|
+
import Box23 from "@mui/material/Box";
|
|
5469
6014
|
import ListItemButton2 from "@mui/material/ListItemButton";
|
|
5470
6015
|
import Tooltip7 from "@mui/material/Tooltip";
|
|
5471
6016
|
import Divider5 from "@mui/material/Divider";
|
|
@@ -5474,7 +6019,7 @@ import { styled as styled39 } from "@mui/material/styles";
|
|
|
5474
6019
|
// src/components/Sidebar/SidebarUserAvatar.tsx
|
|
5475
6020
|
import Avatar2 from "@mui/material/Avatar";
|
|
5476
6021
|
import { styled as styled36 } from "@mui/material/styles";
|
|
5477
|
-
import { jsx as
|
|
6022
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5478
6023
|
var SidebarUserAvatarRoot = styled36(Avatar2, {
|
|
5479
6024
|
name: "MuiSidebar",
|
|
5480
6025
|
slot: "UserAvatar"
|
|
@@ -5491,15 +6036,15 @@ var SidebarUserAvatar = ({
|
|
|
5491
6036
|
alt,
|
|
5492
6037
|
sx
|
|
5493
6038
|
}) => {
|
|
5494
|
-
return /* @__PURE__ */
|
|
6039
|
+
return /* @__PURE__ */ jsx53(SidebarUserAvatarRoot, { src, alt, sx, children });
|
|
5495
6040
|
};
|
|
5496
6041
|
SidebarUserAvatar.displayName = "SidebarUserAvatar";
|
|
5497
6042
|
|
|
5498
6043
|
// src/components/Sidebar/SidebarUserName.tsx
|
|
5499
|
-
import
|
|
6044
|
+
import Typography14 from "@mui/material/Typography";
|
|
5500
6045
|
import { styled as styled37 } from "@mui/material/styles";
|
|
5501
|
-
import { jsx as
|
|
5502
|
-
var SidebarUserNameRoot = styled37(
|
|
6046
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
6047
|
+
var SidebarUserNameRoot = styled37(Typography14, {
|
|
5503
6048
|
name: "MuiSidebar",
|
|
5504
6049
|
slot: "UserName"
|
|
5505
6050
|
})({
|
|
@@ -5516,15 +6061,15 @@ var SidebarUserName = ({
|
|
|
5516
6061
|
if (collapsed) {
|
|
5517
6062
|
return null;
|
|
5518
6063
|
}
|
|
5519
|
-
return /* @__PURE__ */
|
|
6064
|
+
return /* @__PURE__ */ jsx54(SidebarUserNameRoot, { variant: "body2", sx, children });
|
|
5520
6065
|
};
|
|
5521
6066
|
SidebarUserName.displayName = "SidebarUserName";
|
|
5522
6067
|
|
|
5523
6068
|
// src/components/Sidebar/SidebarUserEmail.tsx
|
|
5524
|
-
import
|
|
6069
|
+
import Typography15 from "@mui/material/Typography";
|
|
5525
6070
|
import { styled as styled38 } from "@mui/material/styles";
|
|
5526
|
-
import { jsx as
|
|
5527
|
-
var SidebarUserEmailRoot = styled38(
|
|
6071
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6072
|
+
var SidebarUserEmailRoot = styled38(Typography15, {
|
|
5528
6073
|
name: "MuiSidebar",
|
|
5529
6074
|
slot: "UserEmail"
|
|
5530
6075
|
})(({ theme }) => ({
|
|
@@ -5542,13 +6087,13 @@ var SidebarUserEmail = ({
|
|
|
5542
6087
|
if (collapsed) {
|
|
5543
6088
|
return null;
|
|
5544
6089
|
}
|
|
5545
|
-
return /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ jsx55(SidebarUserEmailRoot, { variant: "caption", sx, children });
|
|
5546
6091
|
};
|
|
5547
6092
|
SidebarUserEmail.displayName = "SidebarUserEmail";
|
|
5548
6093
|
|
|
5549
6094
|
// src/components/Sidebar/SidebarUser.tsx
|
|
5550
|
-
import { Fragment as
|
|
5551
|
-
var SidebarUserRoot = styled39(
|
|
6095
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6096
|
+
var SidebarUserRoot = styled39(Box23, {
|
|
5552
6097
|
name: "MuiSidebar",
|
|
5553
6098
|
slot: "User"
|
|
5554
6099
|
})(({ theme }) => ({
|
|
@@ -5571,7 +6116,7 @@ var SidebarUserButton = styled39(ListItemButton2, {
|
|
|
5571
6116
|
duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
|
|
5572
6117
|
})
|
|
5573
6118
|
}));
|
|
5574
|
-
var SidebarUserTextContainer = styled39(
|
|
6119
|
+
var SidebarUserTextContainer = styled39(Box23, {
|
|
5575
6120
|
name: "MuiSidebar",
|
|
5576
6121
|
slot: "UserTextContainer",
|
|
5577
6122
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -5589,9 +6134,9 @@ var SidebarUserTextContainer = styled39(Box22, {
|
|
|
5589
6134
|
var separateChildren3 = (children) => {
|
|
5590
6135
|
let avatarChild = null;
|
|
5591
6136
|
const textChildren = [];
|
|
5592
|
-
|
|
6137
|
+
React27.Children.forEach(children, (child) => {
|
|
5593
6138
|
var _a;
|
|
5594
|
-
if (
|
|
6139
|
+
if (React27.isValidElement(child)) {
|
|
5595
6140
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5596
6141
|
if (displayName === "SidebarUserAvatar") {
|
|
5597
6142
|
avatarChild = child;
|
|
@@ -5604,9 +6149,9 @@ var separateChildren3 = (children) => {
|
|
|
5604
6149
|
};
|
|
5605
6150
|
var getTooltipText = (children) => {
|
|
5606
6151
|
let tooltipText = "";
|
|
5607
|
-
|
|
6152
|
+
React27.Children.forEach(children, (child) => {
|
|
5608
6153
|
var _a;
|
|
5609
|
-
if (
|
|
6154
|
+
if (React27.isValidElement(child)) {
|
|
5610
6155
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5611
6156
|
const props = child.props;
|
|
5612
6157
|
if (displayName === "SidebarUserName" && props.children) {
|
|
@@ -5626,22 +6171,22 @@ var SidebarUser = ({
|
|
|
5626
6171
|
const { avatarChild, textChildren } = separateChildren3(children);
|
|
5627
6172
|
const tooltipText = getTooltipText(children);
|
|
5628
6173
|
const ownerState = { collapsed };
|
|
5629
|
-
const content = /* @__PURE__ */
|
|
6174
|
+
const content = /* @__PURE__ */ jsxs21(SidebarUserButton, { onClick, ownerState, children: [
|
|
5630
6175
|
avatarChild,
|
|
5631
|
-
/* @__PURE__ */
|
|
6176
|
+
/* @__PURE__ */ jsx56(SidebarUserTextContainer, { collapsed, children: textChildren })
|
|
5632
6177
|
] });
|
|
5633
|
-
return /* @__PURE__ */
|
|
5634
|
-
showDivider && /* @__PURE__ */
|
|
5635
|
-
/* @__PURE__ */
|
|
6178
|
+
return /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
6179
|
+
showDivider && /* @__PURE__ */ jsx56(Divider5, {}),
|
|
6180
|
+
/* @__PURE__ */ jsx56(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx56(Tooltip7, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
|
|
5636
6181
|
] });
|
|
5637
6182
|
};
|
|
5638
6183
|
SidebarUser.displayName = "SidebarUser";
|
|
5639
6184
|
|
|
5640
6185
|
// src/components/Sidebar/Sidebar.tsx
|
|
5641
|
-
import { jsx as
|
|
6186
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5642
6187
|
var SIDEBAR_WIDTH = 250;
|
|
5643
6188
|
var COLLAPSED_SIDEBAR_WIDTH = 64;
|
|
5644
|
-
var SidebarRootStyled = styled40(
|
|
6189
|
+
var SidebarRootStyled = styled40(Box24, {
|
|
5645
6190
|
name: "MuiSidebar",
|
|
5646
6191
|
slot: "Root",
|
|
5647
6192
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5676,10 +6221,10 @@ var Sidebar = ({
|
|
|
5676
6221
|
sx
|
|
5677
6222
|
}) => {
|
|
5678
6223
|
var _a, _b, _c;
|
|
5679
|
-
const appShellContext =
|
|
6224
|
+
const appShellContext = React28.useContext(AppShellContext);
|
|
5680
6225
|
const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
|
|
5681
6226
|
const activeItem = activeItemProp != null ? activeItemProp : appShellContext == null ? void 0 : appShellContext.state.activeMenuItem;
|
|
5682
|
-
const expandedMenus =
|
|
6227
|
+
const expandedMenus = React28.useMemo(
|
|
5683
6228
|
() => {
|
|
5684
6229
|
var _a2;
|
|
5685
6230
|
return (_a2 = expandedMenusProp != null ? expandedMenusProp : appShellContext == null ? void 0 : appShellContext.state.expandedMenus) != null ? _a2 : {};
|
|
@@ -5690,7 +6235,7 @@ var Sidebar = ({
|
|
|
5690
6235
|
const onToggleExpand = onToggleExpandProp != null ? onToggleExpandProp : appShellContext == null ? void 0 : appShellContext.actions.toggleMenu;
|
|
5691
6236
|
const width = (_b = widthProp != null ? widthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarWidth) != null ? _b : SIDEBAR_WIDTH;
|
|
5692
6237
|
const collapsedWidth = (_c = collapsedWidthProp != null ? collapsedWidthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsedWidth) != null ? _c : COLLAPSED_SIDEBAR_WIDTH;
|
|
5693
|
-
const contextValue =
|
|
6238
|
+
const contextValue = React28.useMemo(
|
|
5694
6239
|
() => ({
|
|
5695
6240
|
collapsed,
|
|
5696
6241
|
activeItem,
|
|
@@ -5701,7 +6246,7 @@ var Sidebar = ({
|
|
|
5701
6246
|
[collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
|
|
5702
6247
|
);
|
|
5703
6248
|
const ownerState = { collapsed, width, collapsedWidth };
|
|
5704
|
-
return /* @__PURE__ */
|
|
6249
|
+
return /* @__PURE__ */ jsx57(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx57(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
|
|
5705
6250
|
};
|
|
5706
6251
|
Sidebar.Nav = SidebarNav;
|
|
5707
6252
|
Sidebar.Category = SidebarCategory;
|
|
@@ -5718,17 +6263,17 @@ Sidebar.UserEmail = SidebarUserEmail;
|
|
|
5718
6263
|
Sidebar.displayName = "Sidebar";
|
|
5719
6264
|
|
|
5720
6265
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
5721
|
-
import * as
|
|
5722
|
-
import
|
|
6266
|
+
import * as React34 from "react";
|
|
6267
|
+
import Box33 from "@mui/material/Box";
|
|
5723
6268
|
import Drawer from "@mui/material/Drawer";
|
|
5724
6269
|
import { styled as styled56 } from "@mui/material/styles";
|
|
5725
6270
|
import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
|
|
5726
6271
|
|
|
5727
6272
|
// src/components/NotificationPanel/context.ts
|
|
5728
|
-
import * as
|
|
5729
|
-
var NotificationPanelContext =
|
|
6273
|
+
import * as React29 from "react";
|
|
6274
|
+
var NotificationPanelContext = React29.createContext(null);
|
|
5730
6275
|
var useNotificationPanel = () => {
|
|
5731
|
-
const context =
|
|
6276
|
+
const context = React29.useContext(NotificationPanelContext);
|
|
5732
6277
|
if (!context) {
|
|
5733
6278
|
throw new Error(
|
|
5734
6279
|
"NotificationPanel compound components must be used within NotificationPanel"
|
|
@@ -5738,11 +6283,11 @@ var useNotificationPanel = () => {
|
|
|
5738
6283
|
};
|
|
5739
6284
|
|
|
5740
6285
|
// src/components/NotificationPanel/NotificationHeader.tsx
|
|
5741
|
-
import * as
|
|
5742
|
-
import
|
|
6286
|
+
import * as React30 from "react";
|
|
6287
|
+
import Box25 from "@mui/material/Box";
|
|
5743
6288
|
import { styled as styled41 } from "@mui/material/styles";
|
|
5744
|
-
import { jsx as
|
|
5745
|
-
var NotificationHeaderRoot = styled41(
|
|
6289
|
+
import { jsx as jsx58, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6290
|
+
var NotificationHeaderRoot = styled41(Box25, {
|
|
5746
6291
|
name: "MuiNotificationPanel",
|
|
5747
6292
|
slot: "Header"
|
|
5748
6293
|
})(({ theme }) => ({
|
|
@@ -5752,7 +6297,7 @@ var NotificationHeaderRoot = styled41(Box24, {
|
|
|
5752
6297
|
padding: theme.spacing(2),
|
|
5753
6298
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
5754
6299
|
}));
|
|
5755
|
-
var NotificationHeaderContent = styled41(
|
|
6300
|
+
var NotificationHeaderContent = styled41(Box25, {
|
|
5756
6301
|
name: "MuiNotificationPanel",
|
|
5757
6302
|
slot: "HeaderContent"
|
|
5758
6303
|
})(({ theme }) => ({
|
|
@@ -5763,9 +6308,9 @@ var NotificationHeaderContent = styled41(Box24, {
|
|
|
5763
6308
|
var separateChildren4 = (children) => {
|
|
5764
6309
|
const leftChildren = [];
|
|
5765
6310
|
let closeChild = null;
|
|
5766
|
-
|
|
6311
|
+
React30.Children.forEach(children, (child) => {
|
|
5767
6312
|
var _a;
|
|
5768
|
-
if (
|
|
6313
|
+
if (React30.isValidElement(child)) {
|
|
5769
6314
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
5770
6315
|
if (displayName === "NotificationHeaderClose") {
|
|
5771
6316
|
closeChild = child;
|
|
@@ -5783,18 +6328,18 @@ var NotificationHeader = ({
|
|
|
5783
6328
|
sx
|
|
5784
6329
|
}) => {
|
|
5785
6330
|
const { leftChildren, closeChild } = separateChildren4(children);
|
|
5786
|
-
return /* @__PURE__ */
|
|
5787
|
-
/* @__PURE__ */
|
|
6331
|
+
return /* @__PURE__ */ jsxs22(NotificationHeaderRoot, { sx, children: [
|
|
6332
|
+
/* @__PURE__ */ jsx58(NotificationHeaderContent, { children: leftChildren }),
|
|
5788
6333
|
closeChild
|
|
5789
6334
|
] });
|
|
5790
6335
|
};
|
|
5791
6336
|
NotificationHeader.displayName = "NotificationHeader";
|
|
5792
6337
|
|
|
5793
6338
|
// src/components/NotificationPanel/NotificationHeaderIcon.tsx
|
|
5794
|
-
import
|
|
6339
|
+
import Box26 from "@mui/material/Box";
|
|
5795
6340
|
import { styled as styled42 } from "@mui/material/styles";
|
|
5796
|
-
import { jsx as
|
|
5797
|
-
var NotificationHeaderIconRoot = styled42(
|
|
6341
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6342
|
+
var NotificationHeaderIconRoot = styled42(Box26, {
|
|
5798
6343
|
name: "MuiNotificationPanel",
|
|
5799
6344
|
slot: "HeaderIcon"
|
|
5800
6345
|
})({
|
|
@@ -5805,15 +6350,15 @@ var NotificationHeaderIcon = ({
|
|
|
5805
6350
|
children,
|
|
5806
6351
|
sx
|
|
5807
6352
|
}) => {
|
|
5808
|
-
return /* @__PURE__ */
|
|
6353
|
+
return /* @__PURE__ */ jsx59(NotificationHeaderIconRoot, { sx, children });
|
|
5809
6354
|
};
|
|
5810
6355
|
NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
|
|
5811
6356
|
|
|
5812
6357
|
// src/components/NotificationPanel/NotificationHeaderTitle.tsx
|
|
5813
|
-
import
|
|
6358
|
+
import Typography16 from "@mui/material/Typography";
|
|
5814
6359
|
import { styled as styled43 } from "@mui/material/styles";
|
|
5815
|
-
import { jsx as
|
|
5816
|
-
var NotificationHeaderTitleRoot = styled43(
|
|
6360
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6361
|
+
var NotificationHeaderTitleRoot = styled43(Typography16, {
|
|
5817
6362
|
name: "MuiNotificationPanel",
|
|
5818
6363
|
slot: "HeaderTitle"
|
|
5819
6364
|
})({
|
|
@@ -5823,14 +6368,14 @@ var NotificationHeaderTitle = ({
|
|
|
5823
6368
|
children,
|
|
5824
6369
|
sx
|
|
5825
6370
|
}) => {
|
|
5826
|
-
return /* @__PURE__ */
|
|
6371
|
+
return /* @__PURE__ */ jsx60(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
|
|
5827
6372
|
};
|
|
5828
6373
|
NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
|
|
5829
6374
|
|
|
5830
6375
|
// src/components/NotificationPanel/NotificationHeaderBadge.tsx
|
|
5831
6376
|
import Chip2 from "@mui/material/Chip";
|
|
5832
6377
|
import { styled as styled44 } from "@mui/material/styles";
|
|
5833
|
-
import { jsx as
|
|
6378
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5834
6379
|
var NotificationHeaderBadgeRoot = styled44(Chip2, {
|
|
5835
6380
|
name: "MuiNotificationPanel",
|
|
5836
6381
|
slot: "HeaderBadge"
|
|
@@ -5846,7 +6391,7 @@ var NotificationHeaderBadge = ({
|
|
|
5846
6391
|
if (!children || children === 0 || children === "0") {
|
|
5847
6392
|
return null;
|
|
5848
6393
|
}
|
|
5849
|
-
return /* @__PURE__ */
|
|
6394
|
+
return /* @__PURE__ */ jsx61(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
|
|
5850
6395
|
};
|
|
5851
6396
|
NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
5852
6397
|
|
|
@@ -5854,7 +6399,7 @@ NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
|
5854
6399
|
import IconButton5 from "@mui/material/IconButton";
|
|
5855
6400
|
import { styled as styled45 } from "@mui/material/styles";
|
|
5856
6401
|
import { X as X2 } from "@wso2/oxygen-ui-icons-react";
|
|
5857
|
-
import { jsx as
|
|
6402
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5858
6403
|
var NotificationHeaderCloseRoot = styled45(IconButton5, {
|
|
5859
6404
|
name: "MuiNotificationPanel",
|
|
5860
6405
|
slot: "HeaderClose"
|
|
@@ -5872,27 +6417,27 @@ var NotificationHeaderClose = ({
|
|
|
5872
6417
|
onClose == null ? void 0 : onClose();
|
|
5873
6418
|
}
|
|
5874
6419
|
};
|
|
5875
|
-
return /* @__PURE__ */
|
|
6420
|
+
return /* @__PURE__ */ jsx62(
|
|
5876
6421
|
NotificationHeaderCloseRoot,
|
|
5877
6422
|
{
|
|
5878
6423
|
onClick: handleClick,
|
|
5879
6424
|
size: "small",
|
|
5880
6425
|
sx,
|
|
5881
6426
|
"aria-label": "Close notifications",
|
|
5882
|
-
children: children || /* @__PURE__ */
|
|
6427
|
+
children: children || /* @__PURE__ */ jsx62(X2, { size: 20, "aria-hidden": "true" })
|
|
5883
6428
|
}
|
|
5884
6429
|
);
|
|
5885
6430
|
};
|
|
5886
6431
|
NotificationHeaderClose.displayName = "NotificationHeaderClose";
|
|
5887
6432
|
|
|
5888
6433
|
// src/components/NotificationPanel/NotificationTabs.tsx
|
|
5889
|
-
import
|
|
6434
|
+
import Box27 from "@mui/material/Box";
|
|
5890
6435
|
import Tabs from "@mui/material/Tabs";
|
|
5891
6436
|
import Tab from "@mui/material/Tab";
|
|
5892
6437
|
import Chip3 from "@mui/material/Chip";
|
|
5893
6438
|
import { styled as styled46 } from "@mui/material/styles";
|
|
5894
|
-
import { jsx as
|
|
5895
|
-
var NotificationTabsRoot = styled46(
|
|
6439
|
+
import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6440
|
+
var NotificationTabsRoot = styled46(Box27, {
|
|
5896
6441
|
name: "MuiNotificationPanel",
|
|
5897
6442
|
slot: "Tabs"
|
|
5898
6443
|
})(({ theme }) => ({
|
|
@@ -5909,7 +6454,7 @@ var NotificationTabsInner = styled46(Tabs, {
|
|
|
5909
6454
|
fontWeight: 500
|
|
5910
6455
|
}
|
|
5911
6456
|
});
|
|
5912
|
-
var NotificationTabLabel = styled46(
|
|
6457
|
+
var NotificationTabLabel = styled46(Box27, {
|
|
5913
6458
|
name: "MuiNotificationPanel",
|
|
5914
6459
|
slot: "TabLabel"
|
|
5915
6460
|
})(({ theme }) => ({
|
|
@@ -5930,18 +6475,18 @@ var NotificationTabs = ({
|
|
|
5930
6475
|
onChange,
|
|
5931
6476
|
sx
|
|
5932
6477
|
}) => {
|
|
5933
|
-
return /* @__PURE__ */
|
|
6478
|
+
return /* @__PURE__ */ jsx63(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx63(
|
|
5934
6479
|
NotificationTabsInner,
|
|
5935
6480
|
{
|
|
5936
6481
|
value,
|
|
5937
6482
|
onChange: (_, newValue) => onChange(newValue),
|
|
5938
6483
|
variant: "fullWidth",
|
|
5939
|
-
children: tabs.map((tab, index) => /* @__PURE__ */
|
|
6484
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ jsx63(
|
|
5940
6485
|
Tab,
|
|
5941
6486
|
{
|
|
5942
|
-
label: /* @__PURE__ */
|
|
6487
|
+
label: /* @__PURE__ */ jsxs23(NotificationTabLabel, { children: [
|
|
5943
6488
|
tab.label,
|
|
5944
|
-
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */
|
|
6489
|
+
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx63(
|
|
5945
6490
|
NotificationTabCount,
|
|
5946
6491
|
{
|
|
5947
6492
|
label: tab.count,
|
|
@@ -5959,12 +6504,12 @@ var NotificationTabs = ({
|
|
|
5959
6504
|
};
|
|
5960
6505
|
|
|
5961
6506
|
// src/components/NotificationPanel/NotificationActions.tsx
|
|
5962
|
-
import
|
|
5963
|
-
import
|
|
6507
|
+
import Box28 from "@mui/material/Box";
|
|
6508
|
+
import Button5 from "@mui/material/Button";
|
|
5964
6509
|
import { styled as styled47 } from "@mui/material/styles";
|
|
5965
6510
|
import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
|
|
5966
|
-
import { jsx as
|
|
5967
|
-
var NotificationActionsRoot = styled47(
|
|
6511
|
+
import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6512
|
+
var NotificationActionsRoot = styled47(Box28, {
|
|
5968
6513
|
name: "MuiNotificationPanel",
|
|
5969
6514
|
slot: "Actions"
|
|
5970
6515
|
})(({ theme }) => ({
|
|
@@ -5976,7 +6521,7 @@ var NotificationActionsRoot = styled47(Box27, {
|
|
|
5976
6521
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
5977
6522
|
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
5978
6523
|
}));
|
|
5979
|
-
var NotificationActionButton = styled47(
|
|
6524
|
+
var NotificationActionButton = styled47(Button5, {
|
|
5980
6525
|
name: "MuiNotificationPanel",
|
|
5981
6526
|
slot: "ActionButton"
|
|
5982
6527
|
})({
|
|
@@ -5989,21 +6534,21 @@ var NotificationActions = ({
|
|
|
5989
6534
|
onClearAll,
|
|
5990
6535
|
sx
|
|
5991
6536
|
}) => {
|
|
5992
|
-
return /* @__PURE__ */
|
|
5993
|
-
hasUnread && onMarkAllRead && /* @__PURE__ */
|
|
6537
|
+
return /* @__PURE__ */ jsxs24(NotificationActionsRoot, { sx, children: [
|
|
6538
|
+
hasUnread && onMarkAllRead && /* @__PURE__ */ jsx64(
|
|
5994
6539
|
NotificationActionButton,
|
|
5995
6540
|
{
|
|
5996
6541
|
size: "small",
|
|
5997
|
-
startIcon: /* @__PURE__ */
|
|
6542
|
+
startIcon: /* @__PURE__ */ jsx64(CheckCheck, { size: 14 }),
|
|
5998
6543
|
onClick: onMarkAllRead,
|
|
5999
6544
|
children: "Mark all read"
|
|
6000
6545
|
}
|
|
6001
6546
|
),
|
|
6002
|
-
onClearAll && /* @__PURE__ */
|
|
6547
|
+
onClearAll && /* @__PURE__ */ jsx64(
|
|
6003
6548
|
NotificationActionButton,
|
|
6004
6549
|
{
|
|
6005
6550
|
size: "small",
|
|
6006
|
-
startIcon: /* @__PURE__ */
|
|
6551
|
+
startIcon: /* @__PURE__ */ jsx64(Trash2, { size: 14 }),
|
|
6007
6552
|
onClick: onClearAll,
|
|
6008
6553
|
color: "error",
|
|
6009
6554
|
children: "Clear all"
|
|
@@ -6013,13 +6558,13 @@ var NotificationActions = ({
|
|
|
6013
6558
|
};
|
|
6014
6559
|
|
|
6015
6560
|
// src/components/NotificationPanel/NotificationList.tsx
|
|
6016
|
-
import * as
|
|
6017
|
-
import
|
|
6561
|
+
import * as React31 from "react";
|
|
6562
|
+
import Box29 from "@mui/material/Box";
|
|
6018
6563
|
import List3 from "@mui/material/List";
|
|
6019
6564
|
import Divider6 from "@mui/material/Divider";
|
|
6020
6565
|
import { styled as styled48 } from "@mui/material/styles";
|
|
6021
|
-
import { jsx as
|
|
6022
|
-
var NotificationListRoot = styled48(
|
|
6566
|
+
import { jsx as jsx65, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6567
|
+
var NotificationListRoot = styled48(Box29, {
|
|
6023
6568
|
name: "MuiNotificationPanel",
|
|
6024
6569
|
slot: "List"
|
|
6025
6570
|
})({
|
|
@@ -6031,16 +6576,16 @@ var NotificationList = ({
|
|
|
6031
6576
|
showDividers = true,
|
|
6032
6577
|
sx
|
|
6033
6578
|
}) => {
|
|
6034
|
-
const childArray =
|
|
6035
|
-
return /* @__PURE__ */
|
|
6579
|
+
const childArray = React31.Children.toArray(children);
|
|
6580
|
+
return /* @__PURE__ */ jsx65(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx65(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs25(React31.Fragment, { children: [
|
|
6036
6581
|
child,
|
|
6037
|
-
showDividers && index < childArray.length - 1 && /* @__PURE__ */
|
|
6582
|
+
showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx65(Divider6, {})
|
|
6038
6583
|
] }, index)) }) });
|
|
6039
6584
|
};
|
|
6040
6585
|
|
|
6041
6586
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
6042
|
-
import * as
|
|
6043
|
-
import
|
|
6587
|
+
import * as React33 from "react";
|
|
6588
|
+
import Box30 from "@mui/material/Box";
|
|
6044
6589
|
import ListItem2 from "@mui/material/ListItem";
|
|
6045
6590
|
import ListItemButton3 from "@mui/material/ListItemButton";
|
|
6046
6591
|
import ListItemText3 from "@mui/material/ListItemText";
|
|
@@ -6085,11 +6630,11 @@ var getNotificationTypeProps = (type) => {
|
|
|
6085
6630
|
};
|
|
6086
6631
|
|
|
6087
6632
|
// src/components/NotificationPanel/NotificationItemContext.tsx
|
|
6088
|
-
import * as
|
|
6089
|
-
import { jsx as
|
|
6090
|
-
var NotificationItemContext =
|
|
6633
|
+
import * as React32 from "react";
|
|
6634
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
6635
|
+
var NotificationItemContext = React32.createContext(null);
|
|
6091
6636
|
var useNotificationItemContext = () => {
|
|
6092
|
-
const context =
|
|
6637
|
+
const context = React32.useContext(NotificationItemContext);
|
|
6093
6638
|
if (!context) {
|
|
6094
6639
|
throw new Error(
|
|
6095
6640
|
"useNotificationItemContext must be used within a NotificationItem component"
|
|
@@ -6098,11 +6643,11 @@ var useNotificationItemContext = () => {
|
|
|
6098
6643
|
return context;
|
|
6099
6644
|
};
|
|
6100
6645
|
var NotificationItemProvider = ({ value, children }) => {
|
|
6101
|
-
return /* @__PURE__ */
|
|
6646
|
+
return /* @__PURE__ */ jsx66(NotificationItemContext.Provider, { value, children });
|
|
6102
6647
|
};
|
|
6103
6648
|
|
|
6104
6649
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
6105
|
-
import { jsx as
|
|
6650
|
+
import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6106
6651
|
var NotificationItemRoot = styled49(ListItem2, {
|
|
6107
6652
|
name: "MuiNotificationPanel",
|
|
6108
6653
|
slot: "Item",
|
|
@@ -6128,7 +6673,7 @@ var NotificationItemDismiss = styled49(IconButton6, {
|
|
|
6128
6673
|
opacity: 1
|
|
6129
6674
|
}
|
|
6130
6675
|
});
|
|
6131
|
-
var NotificationItemFooter = styled49(
|
|
6676
|
+
var NotificationItemFooter = styled49(Box30, {
|
|
6132
6677
|
name: "MuiNotificationPanel",
|
|
6133
6678
|
slot: "ItemFooter"
|
|
6134
6679
|
})(({ theme }) => ({
|
|
@@ -6143,9 +6688,9 @@ var separateChildren5 = (children) => {
|
|
|
6143
6688
|
let messageChild = null;
|
|
6144
6689
|
let timestampChild = null;
|
|
6145
6690
|
let actionChild = null;
|
|
6146
|
-
|
|
6691
|
+
React33.Children.forEach(children, (child) => {
|
|
6147
6692
|
var _a;
|
|
6148
|
-
if (
|
|
6693
|
+
if (React33.isValidElement(child)) {
|
|
6149
6694
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
6150
6695
|
switch (displayName) {
|
|
6151
6696
|
case "NotificationItemAvatar":
|
|
@@ -6195,12 +6740,12 @@ var NotificationItem = ({
|
|
|
6195
6740
|
onAction == null ? void 0 : onAction();
|
|
6196
6741
|
};
|
|
6197
6742
|
const ownerState = { read };
|
|
6198
|
-
return /* @__PURE__ */
|
|
6743
|
+
return /* @__PURE__ */ jsx67(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx67(
|
|
6199
6744
|
NotificationItemRoot,
|
|
6200
6745
|
{
|
|
6201
6746
|
disablePadding: true,
|
|
6202
6747
|
ownerState,
|
|
6203
|
-
secondaryAction: onDismiss && /* @__PURE__ */
|
|
6748
|
+
secondaryAction: onDismiss && /* @__PURE__ */ jsx67(
|
|
6204
6749
|
NotificationItemDismiss,
|
|
6205
6750
|
{
|
|
6206
6751
|
size: "small",
|
|
@@ -6209,19 +6754,19 @@ var NotificationItem = ({
|
|
|
6209
6754
|
e.stopPropagation();
|
|
6210
6755
|
onDismiss(id);
|
|
6211
6756
|
},
|
|
6212
|
-
children: /* @__PURE__ */
|
|
6757
|
+
children: /* @__PURE__ */ jsx67(X3, { size: 16, "aria-hidden": "true" })
|
|
6213
6758
|
}
|
|
6214
6759
|
),
|
|
6215
6760
|
sx,
|
|
6216
|
-
children: /* @__PURE__ */
|
|
6761
|
+
children: /* @__PURE__ */ jsxs26(NotificationItemButton, { onClick: handleClick, children: [
|
|
6217
6762
|
avatarChild,
|
|
6218
|
-
/* @__PURE__ */
|
|
6763
|
+
/* @__PURE__ */ jsx67(
|
|
6219
6764
|
ListItemText3,
|
|
6220
6765
|
{
|
|
6221
6766
|
primary: titleChild,
|
|
6222
|
-
secondary: /* @__PURE__ */
|
|
6767
|
+
secondary: /* @__PURE__ */ jsxs26(Box30, { component: "span", children: [
|
|
6223
6768
|
messageChild,
|
|
6224
|
-
/* @__PURE__ */
|
|
6769
|
+
/* @__PURE__ */ jsxs26(NotificationItemFooter, { children: [
|
|
6225
6770
|
timestampChild,
|
|
6226
6771
|
actionChild
|
|
6227
6772
|
] })
|
|
@@ -6238,7 +6783,7 @@ NotificationItem.displayName = "NotificationItem";
|
|
|
6238
6783
|
import ListItemAvatar from "@mui/material/ListItemAvatar";
|
|
6239
6784
|
import Avatar3 from "@mui/material/Avatar";
|
|
6240
6785
|
import { styled as styled50 } from "@mui/material/styles";
|
|
6241
|
-
import { jsx as
|
|
6786
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
6242
6787
|
var NotificationItemAvatarStyled = styled50(Avatar3, {
|
|
6243
6788
|
name: "MuiNotificationPanel",
|
|
6244
6789
|
slot: "ItemAvatar",
|
|
@@ -6262,16 +6807,16 @@ var NotificationItemAvatar = ({
|
|
|
6262
6807
|
color: typeProps.color,
|
|
6263
6808
|
hasChildren: !!children
|
|
6264
6809
|
};
|
|
6265
|
-
return /* @__PURE__ */
|
|
6810
|
+
return /* @__PURE__ */ jsx68(ListItemAvatar, { children: /* @__PURE__ */ jsx68(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx68(Icon, { size: 20 }) }) });
|
|
6266
6811
|
};
|
|
6267
6812
|
NotificationItemAvatar.displayName = "NotificationItemAvatar";
|
|
6268
6813
|
|
|
6269
6814
|
// src/components/NotificationPanel/NotificationItemTitle.tsx
|
|
6270
|
-
import
|
|
6271
|
-
import
|
|
6815
|
+
import Box31 from "@mui/material/Box";
|
|
6816
|
+
import Typography17 from "@mui/material/Typography";
|
|
6272
6817
|
import { styled as styled51 } from "@mui/material/styles";
|
|
6273
|
-
import { jsx as
|
|
6274
|
-
var NotificationItemTitleRoot = styled51(
|
|
6818
|
+
import { jsx as jsx69, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6819
|
+
var NotificationItemTitleRoot = styled51(Box31, {
|
|
6275
6820
|
name: "MuiNotificationPanel",
|
|
6276
6821
|
slot: "ItemTitle"
|
|
6277
6822
|
})(({ theme }) => ({
|
|
@@ -6279,7 +6824,7 @@ var NotificationItemTitleRoot = styled51(Box30, {
|
|
|
6279
6824
|
alignItems: "center",
|
|
6280
6825
|
gap: theme.spacing(1)
|
|
6281
6826
|
}));
|
|
6282
|
-
var NotificationItemTitleText = styled51(
|
|
6827
|
+
var NotificationItemTitleText = styled51(Typography17, {
|
|
6283
6828
|
name: "MuiNotificationPanel",
|
|
6284
6829
|
slot: "ItemTitleText",
|
|
6285
6830
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -6287,7 +6832,7 @@ var NotificationItemTitleText = styled51(Typography16, {
|
|
|
6287
6832
|
fontWeight: ownerState.read ? 400 : 600,
|
|
6288
6833
|
flex: 1
|
|
6289
6834
|
}));
|
|
6290
|
-
var NotificationItemUnreadDot = styled51(
|
|
6835
|
+
var NotificationItemUnreadDot = styled51(Box31, {
|
|
6291
6836
|
name: "MuiNotificationPanel",
|
|
6292
6837
|
slot: "ItemUnreadDot"
|
|
6293
6838
|
})(({ theme }) => ({
|
|
@@ -6303,18 +6848,18 @@ var NotificationItemTitle = ({
|
|
|
6303
6848
|
sx
|
|
6304
6849
|
}) => {
|
|
6305
6850
|
const { read } = useNotificationItemContext();
|
|
6306
|
-
return /* @__PURE__ */
|
|
6307
|
-
/* @__PURE__ */
|
|
6308
|
-
showUnreadIndicator && !read && /* @__PURE__ */
|
|
6851
|
+
return /* @__PURE__ */ jsxs27(NotificationItemTitleRoot, { sx, children: [
|
|
6852
|
+
/* @__PURE__ */ jsx69(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
|
|
6853
|
+
showUnreadIndicator && !read && /* @__PURE__ */ jsx69(NotificationItemUnreadDot, {})
|
|
6309
6854
|
] });
|
|
6310
6855
|
};
|
|
6311
6856
|
NotificationItemTitle.displayName = "NotificationItemTitle";
|
|
6312
6857
|
|
|
6313
6858
|
// src/components/NotificationPanel/NotificationItemMessage.tsx
|
|
6314
|
-
import
|
|
6859
|
+
import Typography18 from "@mui/material/Typography";
|
|
6315
6860
|
import { styled as styled52 } from "@mui/material/styles";
|
|
6316
|
-
import { jsx as
|
|
6317
|
-
var NotificationItemMessageRoot = styled52(
|
|
6861
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6862
|
+
var NotificationItemMessageRoot = styled52(Typography18, {
|
|
6318
6863
|
name: "MuiNotificationPanel",
|
|
6319
6864
|
slot: "ItemMessage"
|
|
6320
6865
|
})(({ theme }) => ({
|
|
@@ -6326,15 +6871,15 @@ var NotificationItemMessage = ({
|
|
|
6326
6871
|
children,
|
|
6327
6872
|
sx
|
|
6328
6873
|
}) => {
|
|
6329
|
-
return /* @__PURE__ */
|
|
6874
|
+
return /* @__PURE__ */ jsx70(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
|
|
6330
6875
|
};
|
|
6331
6876
|
NotificationItemMessage.displayName = "NotificationItemMessage";
|
|
6332
6877
|
|
|
6333
6878
|
// src/components/NotificationPanel/NotificationItemTimestamp.tsx
|
|
6334
|
-
import
|
|
6879
|
+
import Typography19 from "@mui/material/Typography";
|
|
6335
6880
|
import { styled as styled53 } from "@mui/material/styles";
|
|
6336
|
-
import { jsx as
|
|
6337
|
-
var NotificationItemTimestampRoot = styled53(
|
|
6881
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6882
|
+
var NotificationItemTimestampRoot = styled53(Typography19, {
|
|
6338
6883
|
name: "MuiNotificationPanel",
|
|
6339
6884
|
slot: "ItemTimestamp"
|
|
6340
6885
|
})(({ theme }) => ({
|
|
@@ -6345,14 +6890,14 @@ var NotificationItemTimestamp = ({
|
|
|
6345
6890
|
children,
|
|
6346
6891
|
sx
|
|
6347
6892
|
}) => {
|
|
6348
|
-
return /* @__PURE__ */
|
|
6893
|
+
return /* @__PURE__ */ jsx71(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
|
|
6349
6894
|
};
|
|
6350
6895
|
NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
|
|
6351
6896
|
|
|
6352
6897
|
// src/components/NotificationPanel/NotificationItemAction.tsx
|
|
6353
6898
|
import Chip4 from "@mui/material/Chip";
|
|
6354
6899
|
import { styled as styled54 } from "@mui/material/styles";
|
|
6355
|
-
import { jsx as
|
|
6900
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6356
6901
|
var NotificationItemActionRoot = styled54(Chip4, {
|
|
6357
6902
|
name: "MuiNotificationPanel",
|
|
6358
6903
|
slot: "ItemAction"
|
|
@@ -6375,7 +6920,7 @@ var NotificationItemAction = ({
|
|
|
6375
6920
|
onAction == null ? void 0 : onAction();
|
|
6376
6921
|
}
|
|
6377
6922
|
};
|
|
6378
|
-
return /* @__PURE__ */
|
|
6923
|
+
return /* @__PURE__ */ jsx72(
|
|
6379
6924
|
NotificationItemActionRoot,
|
|
6380
6925
|
{
|
|
6381
6926
|
label: children,
|
|
@@ -6389,12 +6934,12 @@ var NotificationItemAction = ({
|
|
|
6389
6934
|
NotificationItemAction.displayName = "NotificationItemAction";
|
|
6390
6935
|
|
|
6391
6936
|
// src/components/NotificationPanel/NotificationEmptyState.tsx
|
|
6392
|
-
import
|
|
6393
|
-
import
|
|
6937
|
+
import Box32 from "@mui/material/Box";
|
|
6938
|
+
import Typography20 from "@mui/material/Typography";
|
|
6394
6939
|
import { styled as styled55 } from "@mui/material/styles";
|
|
6395
6940
|
import { BellOff } from "@wso2/oxygen-ui-icons-react";
|
|
6396
|
-
import { jsx as
|
|
6397
|
-
var NotificationEmptyStateRoot = styled55(
|
|
6941
|
+
import { jsx as jsx73, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6942
|
+
var NotificationEmptyStateRoot = styled55(Box32, {
|
|
6398
6943
|
name: "MuiNotificationPanel",
|
|
6399
6944
|
slot: "EmptyState"
|
|
6400
6945
|
})(({ theme }) => ({
|
|
@@ -6408,7 +6953,7 @@ var NotificationEmptyStateRoot = styled55(Box31, {
|
|
|
6408
6953
|
paddingRight: theme.spacing(3),
|
|
6409
6954
|
textAlign: "center"
|
|
6410
6955
|
}));
|
|
6411
|
-
var NotificationEmptyStateMessage = styled55(
|
|
6956
|
+
var NotificationEmptyStateMessage = styled55(Typography20, {
|
|
6412
6957
|
name: "MuiNotificationPanel",
|
|
6413
6958
|
slot: "EmptyStateMessage"
|
|
6414
6959
|
})(({ theme }) => ({
|
|
@@ -6419,14 +6964,14 @@ var NotificationEmptyState = ({
|
|
|
6419
6964
|
icon,
|
|
6420
6965
|
sx
|
|
6421
6966
|
}) => {
|
|
6422
|
-
return /* @__PURE__ */
|
|
6423
|
-
icon || /* @__PURE__ */
|
|
6424
|
-
/* @__PURE__ */
|
|
6967
|
+
return /* @__PURE__ */ jsxs28(NotificationEmptyStateRoot, { sx, children: [
|
|
6968
|
+
icon || /* @__PURE__ */ jsx73(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
|
|
6969
|
+
/* @__PURE__ */ jsx73(NotificationEmptyStateMessage, { variant: "body2", children: message })
|
|
6425
6970
|
] });
|
|
6426
6971
|
};
|
|
6427
6972
|
|
|
6428
6973
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
6429
|
-
import { jsx as
|
|
6974
|
+
import { jsx as jsx74, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6430
6975
|
var NotificationPanelRoot = styled56(Drawer, {
|
|
6431
6976
|
name: "MuiNotificationPanel",
|
|
6432
6977
|
slot: "Root",
|
|
@@ -6454,9 +6999,9 @@ var NotificationPanel = ({
|
|
|
6454
6999
|
sx
|
|
6455
7000
|
}) => {
|
|
6456
7001
|
var _a;
|
|
6457
|
-
const appShellContext =
|
|
7002
|
+
const appShellContext = React34.useContext(AppShellContext);
|
|
6458
7003
|
const open = (_a = openProp != null ? openProp : appShellContext == null ? void 0 : appShellContext.state.notificationPanelOpen) != null ? _a : false;
|
|
6459
|
-
const onClose =
|
|
7004
|
+
const onClose = React34.useMemo(
|
|
6460
7005
|
() => {
|
|
6461
7006
|
var _a2;
|
|
6462
7007
|
return (_a2 = onCloseProp != null ? onCloseProp : appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel) != null ? _a2 : (() => {
|
|
@@ -6465,10 +7010,10 @@ var NotificationPanel = ({
|
|
|
6465
7010
|
[onCloseProp, appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel]
|
|
6466
7011
|
);
|
|
6467
7012
|
const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp.trim() : "Notifications";
|
|
6468
|
-
const [liveAnnouncement, setLiveAnnouncementState] =
|
|
6469
|
-
const [liveAnnouncementNonce, setLiveAnnouncementNonce] =
|
|
6470
|
-
const prevLiveAnnouncementPropRef =
|
|
6471
|
-
const publishLiveAnnouncement =
|
|
7013
|
+
const [liveAnnouncement, setLiveAnnouncementState] = React34.useState("");
|
|
7014
|
+
const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React34.useState(0);
|
|
7015
|
+
const prevLiveAnnouncementPropRef = React34.useRef(void 0);
|
|
7016
|
+
const publishLiveAnnouncement = React34.useCallback(
|
|
6472
7017
|
(message) => {
|
|
6473
7018
|
if (!open) return;
|
|
6474
7019
|
setLiveAnnouncementState(message);
|
|
@@ -6476,7 +7021,7 @@ var NotificationPanel = ({
|
|
|
6476
7021
|
},
|
|
6477
7022
|
[open]
|
|
6478
7023
|
);
|
|
6479
|
-
|
|
7024
|
+
React34.useEffect(() => {
|
|
6480
7025
|
if (!open) {
|
|
6481
7026
|
setLiveAnnouncementState("");
|
|
6482
7027
|
prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
|
|
@@ -6494,12 +7039,12 @@ var NotificationPanel = ({
|
|
|
6494
7039
|
publishLiveAnnouncement(liveAnnouncementProp);
|
|
6495
7040
|
}
|
|
6496
7041
|
}, [open, liveAnnouncementProp, publishLiveAnnouncement]);
|
|
6497
|
-
const contextValue =
|
|
7042
|
+
const contextValue = React34.useMemo(
|
|
6498
7043
|
() => ({ onClose, open, setLiveAnnouncement: publishLiveAnnouncement }),
|
|
6499
7044
|
[onClose, open, publishLiveAnnouncement]
|
|
6500
7045
|
);
|
|
6501
7046
|
const ownerState = { width };
|
|
6502
|
-
return /* @__PURE__ */
|
|
7047
|
+
return /* @__PURE__ */ jsx74(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs29(
|
|
6503
7048
|
NotificationPanelRoot,
|
|
6504
7049
|
{
|
|
6505
7050
|
anchor,
|
|
@@ -6514,8 +7059,8 @@ var NotificationPanel = ({
|
|
|
6514
7059
|
}
|
|
6515
7060
|
},
|
|
6516
7061
|
children: [
|
|
6517
|
-
/* @__PURE__ */
|
|
6518
|
-
|
|
7062
|
+
/* @__PURE__ */ jsx74(
|
|
7063
|
+
Box33,
|
|
6519
7064
|
{
|
|
6520
7065
|
component: "div",
|
|
6521
7066
|
role: "status",
|
|
@@ -6550,30 +7095,30 @@ NotificationPanel.EmptyState = NotificationEmptyState;
|
|
|
6550
7095
|
NotificationPanel.displayName = "NotificationPanel";
|
|
6551
7096
|
|
|
6552
7097
|
// src/components/Footer/Footer.tsx
|
|
6553
|
-
import * as
|
|
6554
|
-
import
|
|
7098
|
+
import * as React35 from "react";
|
|
7099
|
+
import Box34 from "@mui/material/Box";
|
|
6555
7100
|
import { styled as styled60 } from "@mui/material/styles";
|
|
6556
7101
|
|
|
6557
7102
|
// src/components/Footer/FooterCopyright.tsx
|
|
6558
|
-
import
|
|
7103
|
+
import Typography21 from "@mui/material/Typography";
|
|
6559
7104
|
import { styled as styled57 } from "@mui/material/styles";
|
|
6560
|
-
import { jsx as
|
|
6561
|
-
var StyledCopyrightText = styled57(
|
|
7105
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
7106
|
+
var StyledCopyrightText = styled57(Typography21, {
|
|
6562
7107
|
name: "MuiFooter",
|
|
6563
7108
|
slot: "CopyrightText"
|
|
6564
7109
|
})(({ theme }) => ({
|
|
6565
7110
|
color: (theme.vars || theme).palette.text.secondary
|
|
6566
7111
|
}));
|
|
6567
7112
|
var FooterCopyright = ({ children }) => {
|
|
6568
|
-
return /* @__PURE__ */
|
|
7113
|
+
return /* @__PURE__ */ jsx75(StyledCopyrightText, { variant: "caption", children });
|
|
6569
7114
|
};
|
|
6570
7115
|
FooterCopyright.displayName = "Footer.Copyright";
|
|
6571
7116
|
|
|
6572
7117
|
// src/components/Footer/FooterVersion.tsx
|
|
6573
|
-
import
|
|
7118
|
+
import Typography22 from "@mui/material/Typography";
|
|
6574
7119
|
import { styled as styled58 } from "@mui/material/styles";
|
|
6575
|
-
import { jsx as
|
|
6576
|
-
var StyledVersion = styled58(
|
|
7120
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
7121
|
+
var StyledVersion = styled58(Typography22, {
|
|
6577
7122
|
name: "MuiFooter",
|
|
6578
7123
|
slot: "Version"
|
|
6579
7124
|
})(({ theme }) => ({
|
|
@@ -6584,14 +7129,14 @@ var StyledVersion = styled58(Typography21, {
|
|
|
6584
7129
|
fontSize: 11
|
|
6585
7130
|
}));
|
|
6586
7131
|
var FooterVersion = ({ children }) => {
|
|
6587
|
-
return /* @__PURE__ */
|
|
7132
|
+
return /* @__PURE__ */ jsx76(StyledVersion, { variant: "caption", children });
|
|
6588
7133
|
};
|
|
6589
7134
|
FooterVersion.displayName = "Footer.Version";
|
|
6590
7135
|
|
|
6591
7136
|
// src/components/Footer/FooterLink.tsx
|
|
6592
7137
|
import Link2 from "@mui/material/Link";
|
|
6593
7138
|
import { styled as styled59 } from "@mui/material/styles";
|
|
6594
|
-
import { jsx as
|
|
7139
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
6595
7140
|
var StyledLink = styled59(Link2, {
|
|
6596
7141
|
name: "MuiFooter",
|
|
6597
7142
|
slot: "Link"
|
|
@@ -6604,15 +7149,15 @@ var StyledLink = styled59(Link2, {
|
|
|
6604
7149
|
}));
|
|
6605
7150
|
var FooterLink = (_a) => {
|
|
6606
7151
|
var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
|
|
6607
|
-
return /* @__PURE__ */
|
|
7152
|
+
return /* @__PURE__ */ jsx77(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
|
|
6608
7153
|
};
|
|
6609
7154
|
FooterLink.displayName = "Footer.Link";
|
|
6610
7155
|
|
|
6611
7156
|
// src/components/Footer/FooterDivider.tsx
|
|
6612
7157
|
import Divider7 from "@mui/material/Divider";
|
|
6613
|
-
import { jsx as
|
|
7158
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6614
7159
|
var FooterDivider = () => {
|
|
6615
|
-
return /* @__PURE__ */
|
|
7160
|
+
return /* @__PURE__ */ jsx78(
|
|
6616
7161
|
Divider7,
|
|
6617
7162
|
{
|
|
6618
7163
|
orientation: "vertical",
|
|
@@ -6624,8 +7169,8 @@ var FooterDivider = () => {
|
|
|
6624
7169
|
FooterDivider.displayName = "Footer.Divider";
|
|
6625
7170
|
|
|
6626
7171
|
// src/components/Footer/Footer.tsx
|
|
6627
|
-
import { jsx as
|
|
6628
|
-
var FooterRoot = styled60(
|
|
7172
|
+
import { jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7173
|
+
var FooterRoot = styled60(Box34, {
|
|
6629
7174
|
name: "MuiFooter",
|
|
6630
7175
|
slot: "Root"
|
|
6631
7176
|
})(({ theme }) => ({
|
|
@@ -6638,7 +7183,7 @@ var FooterRoot = styled60(Box33, {
|
|
|
6638
7183
|
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
6639
7184
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
6640
7185
|
}));
|
|
6641
|
-
var FooterContent = styled60(
|
|
7186
|
+
var FooterContent = styled60(Box34, {
|
|
6642
7187
|
name: "MuiFooter",
|
|
6643
7188
|
slot: "Content"
|
|
6644
7189
|
})(({ theme }) => ({
|
|
@@ -6652,7 +7197,7 @@ var FooterContent = styled60(Box33, {
|
|
|
6652
7197
|
alignItems: "center"
|
|
6653
7198
|
}
|
|
6654
7199
|
}));
|
|
6655
|
-
var FooterLeft = styled60(
|
|
7200
|
+
var FooterLeft = styled60(Box34, {
|
|
6656
7201
|
name: "MuiFooter",
|
|
6657
7202
|
slot: "Left"
|
|
6658
7203
|
})(({ theme }) => ({
|
|
@@ -6661,7 +7206,7 @@ var FooterLeft = styled60(Box33, {
|
|
|
6661
7206
|
gap: theme.spacing(2),
|
|
6662
7207
|
flexWrap: "wrap"
|
|
6663
7208
|
}));
|
|
6664
|
-
var FooterRight = styled60(
|
|
7209
|
+
var FooterRight = styled60(Box34, {
|
|
6665
7210
|
name: "MuiFooter",
|
|
6666
7211
|
slot: "Right"
|
|
6667
7212
|
})(({ theme }) => ({
|
|
@@ -6671,11 +7216,11 @@ var FooterRight = styled60(Box33, {
|
|
|
6671
7216
|
flexWrap: "wrap"
|
|
6672
7217
|
}));
|
|
6673
7218
|
var Footer = ({ children, sx }) => {
|
|
6674
|
-
const childrenArray =
|
|
7219
|
+
const childrenArray = React35.Children.toArray(children);
|
|
6675
7220
|
const leftChildren = [];
|
|
6676
7221
|
const rightChildren = [];
|
|
6677
7222
|
childrenArray.forEach((child) => {
|
|
6678
|
-
if (
|
|
7223
|
+
if (React35.isValidElement(child)) {
|
|
6679
7224
|
if (child.type === FooterCopyright || child.type === FooterVersion || child.type === FooterDivider) {
|
|
6680
7225
|
leftChildren.push(child);
|
|
6681
7226
|
} else if (child.type === FooterLink) {
|
|
@@ -6683,9 +7228,9 @@ var Footer = ({ children, sx }) => {
|
|
|
6683
7228
|
}
|
|
6684
7229
|
}
|
|
6685
7230
|
});
|
|
6686
|
-
return /* @__PURE__ */
|
|
6687
|
-
leftChildren.length > 0 && /* @__PURE__ */
|
|
6688
|
-
rightChildren.length > 0 && /* @__PURE__ */
|
|
7231
|
+
return /* @__PURE__ */ jsx79(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs30(FooterContent, { children: [
|
|
7232
|
+
leftChildren.length > 0 && /* @__PURE__ */ jsx79(FooterLeft, { children: leftChildren }),
|
|
7233
|
+
rightChildren.length > 0 && /* @__PURE__ */ jsx79(FooterRight, { children: rightChildren })
|
|
6689
7234
|
] }) });
|
|
6690
7235
|
};
|
|
6691
7236
|
Footer.Copyright = FooterCopyright;
|
|
@@ -6695,14 +7240,14 @@ Footer.Divider = FooterDivider;
|
|
|
6695
7240
|
Footer.displayName = "Footer";
|
|
6696
7241
|
|
|
6697
7242
|
// src/components/UserMenu/UserMenu.tsx
|
|
6698
|
-
import * as
|
|
7243
|
+
import * as React40 from "react";
|
|
6699
7244
|
import Menu3 from "@mui/material/Menu";
|
|
6700
7245
|
|
|
6701
7246
|
// src/components/UserMenu/UserMenuContext.tsx
|
|
6702
|
-
import * as
|
|
6703
|
-
var UserMenuContext =
|
|
7247
|
+
import * as React36 from "react";
|
|
7248
|
+
var UserMenuContext = React36.createContext(void 0);
|
|
6704
7249
|
var useUserMenu = () => {
|
|
6705
|
-
const context =
|
|
7250
|
+
const context = React36.useContext(UserMenuContext);
|
|
6706
7251
|
if (!context) {
|
|
6707
7252
|
throw new Error("UserMenu sub-components must be used within a UserMenu component");
|
|
6708
7253
|
}
|
|
@@ -6711,7 +7256,7 @@ var useUserMenu = () => {
|
|
|
6711
7256
|
UserMenuContext.displayName = "UserMenu.Context";
|
|
6712
7257
|
|
|
6713
7258
|
// src/components/UserMenu/UserMenuTrigger.tsx
|
|
6714
|
-
import * as
|
|
7259
|
+
import * as React37 from "react";
|
|
6715
7260
|
import Tooltip8 from "@mui/material/Tooltip";
|
|
6716
7261
|
import IconButton7 from "@mui/material/IconButton";
|
|
6717
7262
|
import Avatar4 from "@mui/material/Avatar";
|
|
@@ -6737,7 +7282,7 @@ function getUserMenuAvatarProps(name, avatar) {
|
|
|
6737
7282
|
}
|
|
6738
7283
|
|
|
6739
7284
|
// src/components/UserMenu/UserMenuTrigger.tsx
|
|
6740
|
-
import { jsx as
|
|
7285
|
+
import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6741
7286
|
var StyledTrigger = styled61(IconButton7, {
|
|
6742
7287
|
name: "MuiUserMenu",
|
|
6743
7288
|
slot: "Trigger",
|
|
@@ -6772,14 +7317,14 @@ var StyledNameText = styled61("span", {
|
|
|
6772
7317
|
display: "block"
|
|
6773
7318
|
}
|
|
6774
7319
|
}));
|
|
6775
|
-
var UserMenuTrigger =
|
|
7320
|
+
var UserMenuTrigger = React37.forwardRef(
|
|
6776
7321
|
function UserMenuTrigger2(_a, ref) {
|
|
6777
7322
|
var _b = _a, { name, avatar, showName = false, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "avatar", "showName", "onClick", "aria-label"]);
|
|
6778
7323
|
const { open, handleOpen } = useUserMenu();
|
|
6779
7324
|
const avatarProps = getUserMenuAvatarProps(name, avatar);
|
|
6780
7325
|
const defaultAriaLabel = showName ? name : "Account";
|
|
6781
7326
|
const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
|
|
6782
|
-
return /* @__PURE__ */
|
|
7327
|
+
return /* @__PURE__ */ jsx80(Tooltip8, { title: "Account", children: /* @__PURE__ */ jsxs31(
|
|
6783
7328
|
StyledTrigger,
|
|
6784
7329
|
__spreadProps(__spreadValues({}, props), {
|
|
6785
7330
|
ref,
|
|
@@ -6794,8 +7339,8 @@ var UserMenuTrigger = React36.forwardRef(
|
|
|
6794
7339
|
"aria-haspopup": "true",
|
|
6795
7340
|
"aria-expanded": open ? "true" : void 0,
|
|
6796
7341
|
children: [
|
|
6797
|
-
/* @__PURE__ */
|
|
6798
|
-
showName && /* @__PURE__ */
|
|
7342
|
+
/* @__PURE__ */ jsx80(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
|
|
7343
|
+
showName && /* @__PURE__ */ jsx80(StyledNameText, { children: name })
|
|
6799
7344
|
]
|
|
6800
7345
|
})
|
|
6801
7346
|
) });
|
|
@@ -6805,20 +7350,20 @@ UserMenuTrigger.displayName = "UserMenu.Trigger";
|
|
|
6805
7350
|
|
|
6806
7351
|
// src/components/UserMenu/UserMenuHeader.tsx
|
|
6807
7352
|
import Divider8 from "@mui/material/Divider";
|
|
6808
|
-
import
|
|
7353
|
+
import Box35 from "@mui/material/Box";
|
|
6809
7354
|
import Avatar5 from "@mui/material/Avatar";
|
|
6810
|
-
import
|
|
7355
|
+
import Typography23 from "@mui/material/Typography";
|
|
6811
7356
|
import Chip5 from "@mui/material/Chip";
|
|
6812
7357
|
import { styled as styled62 } from "@mui/material/styles";
|
|
6813
|
-
import { Fragment as
|
|
6814
|
-
var StyledHeaderBox = styled62(
|
|
7358
|
+
import { Fragment as Fragment12, jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7359
|
+
var StyledHeaderBox = styled62(Box35, {
|
|
6815
7360
|
name: "MuiUserMenu",
|
|
6816
7361
|
slot: "HeaderBox"
|
|
6817
7362
|
})(({ theme }) => ({
|
|
6818
7363
|
padding: theme.spacing(2),
|
|
6819
7364
|
paddingBottom: theme.spacing(1.5)
|
|
6820
7365
|
}));
|
|
6821
|
-
var StyledHeaderContent = styled62(
|
|
7366
|
+
var StyledHeaderContent = styled62(Box35, {
|
|
6822
7367
|
name: "MuiUserMenu",
|
|
6823
7368
|
slot: "HeaderContent"
|
|
6824
7369
|
})(({ theme }) => ({
|
|
@@ -6837,7 +7382,7 @@ var StyledHeaderAvatar = styled62(Avatar5, {
|
|
|
6837
7382
|
fontSize: 16,
|
|
6838
7383
|
fontWeight: 600
|
|
6839
7384
|
}));
|
|
6840
|
-
var StyledUserInfo = styled62(
|
|
7385
|
+
var StyledUserInfo = styled62(Box35, {
|
|
6841
7386
|
name: "MuiUserMenu",
|
|
6842
7387
|
slot: "UserInfo"
|
|
6843
7388
|
})(({ theme }) => ({
|
|
@@ -6847,7 +7392,7 @@ var StyledUserInfo = styled62(Box34, {
|
|
|
6847
7392
|
flex: 1,
|
|
6848
7393
|
minWidth: 0
|
|
6849
7394
|
}));
|
|
6850
|
-
var StyledNameRow = styled62(
|
|
7395
|
+
var StyledNameRow = styled62(Box35, {
|
|
6851
7396
|
name: "MuiUserMenu",
|
|
6852
7397
|
slot: "NameRow"
|
|
6853
7398
|
})(({ theme }) => ({
|
|
@@ -6855,7 +7400,7 @@ var StyledNameRow = styled62(Box34, {
|
|
|
6855
7400
|
alignItems: "center",
|
|
6856
7401
|
gap: theme.spacing(1)
|
|
6857
7402
|
}));
|
|
6858
|
-
var StyledName = styled62(
|
|
7403
|
+
var StyledName = styled62(Typography23, {
|
|
6859
7404
|
name: "MuiUserMenu",
|
|
6860
7405
|
slot: "Name"
|
|
6861
7406
|
})({
|
|
@@ -6872,7 +7417,7 @@ var StyledRoleChip = styled62(Chip5, {
|
|
|
6872
7417
|
fontSize: 11,
|
|
6873
7418
|
fontWeight: 600
|
|
6874
7419
|
});
|
|
6875
|
-
var StyledEmail = styled62(
|
|
7420
|
+
var StyledEmail = styled62(Typography23, {
|
|
6876
7421
|
name: "MuiUserMenu",
|
|
6877
7422
|
slot: "Email"
|
|
6878
7423
|
})(({ theme }) => ({
|
|
@@ -6884,13 +7429,13 @@ var StyledEmail = styled62(Typography22, {
|
|
|
6884
7429
|
}));
|
|
6885
7430
|
var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
6886
7431
|
const avatarProps = getUserMenuAvatarProps(name, avatar);
|
|
6887
|
-
return /* @__PURE__ */
|
|
6888
|
-
/* @__PURE__ */
|
|
6889
|
-
/* @__PURE__ */
|
|
6890
|
-
/* @__PURE__ */
|
|
6891
|
-
/* @__PURE__ */
|
|
6892
|
-
/* @__PURE__ */
|
|
6893
|
-
role && /* @__PURE__ */
|
|
7432
|
+
return /* @__PURE__ */ jsxs32(Fragment12, { children: [
|
|
7433
|
+
/* @__PURE__ */ jsx81(StyledHeaderBox, { children: /* @__PURE__ */ jsxs32(StyledHeaderContent, { children: [
|
|
7434
|
+
/* @__PURE__ */ jsx81(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
|
|
7435
|
+
/* @__PURE__ */ jsxs32(StyledUserInfo, { children: [
|
|
7436
|
+
/* @__PURE__ */ jsxs32(StyledNameRow, { children: [
|
|
7437
|
+
/* @__PURE__ */ jsx81(StyledName, { variant: "subtitle2", children: name }),
|
|
7438
|
+
role && /* @__PURE__ */ jsx81(
|
|
6894
7439
|
StyledRoleChip,
|
|
6895
7440
|
{
|
|
6896
7441
|
label: role,
|
|
@@ -6899,24 +7444,24 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
|
6899
7444
|
}
|
|
6900
7445
|
)
|
|
6901
7446
|
] }),
|
|
6902
|
-
/* @__PURE__ */
|
|
7447
|
+
/* @__PURE__ */ jsx81(StyledEmail, { variant: "caption", children: email })
|
|
6903
7448
|
] })
|
|
6904
7449
|
] }) }),
|
|
6905
|
-
/* @__PURE__ */
|
|
7450
|
+
/* @__PURE__ */ jsx81(Divider8, {})
|
|
6906
7451
|
] });
|
|
6907
7452
|
};
|
|
6908
7453
|
UserMenuHeader.displayName = "UserMenu.Header";
|
|
6909
7454
|
|
|
6910
7455
|
// src/components/UserMenu/UserMenuItem.tsx
|
|
6911
|
-
import * as
|
|
7456
|
+
import * as React38 from "react";
|
|
6912
7457
|
import MenuItem6 from "@mui/material/MenuItem";
|
|
6913
7458
|
import ListItemIcon3 from "@mui/material/ListItemIcon";
|
|
6914
7459
|
import ListItemText4 from "@mui/material/ListItemText";
|
|
6915
|
-
import
|
|
7460
|
+
import Box36 from "@mui/material/Box";
|
|
6916
7461
|
import Chip6 from "@mui/material/Chip";
|
|
6917
7462
|
import { styled as styled63 } from "@mui/material/styles";
|
|
6918
7463
|
import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
|
|
6919
|
-
import { jsx as
|
|
7464
|
+
import { jsx as jsx82, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6920
7465
|
var StyledMenuItem2 = styled63(MenuItem6, {
|
|
6921
7466
|
name: "MuiUserMenu",
|
|
6922
7467
|
slot: "MenuItem"
|
|
@@ -6944,13 +7489,13 @@ var UserMenuItem = ({
|
|
|
6944
7489
|
handleClose();
|
|
6945
7490
|
onClick == null ? void 0 : onClick();
|
|
6946
7491
|
};
|
|
6947
|
-
return /* @__PURE__ */
|
|
6948
|
-
icon && /* @__PURE__ */
|
|
7492
|
+
return /* @__PURE__ */ jsxs33(StyledMenuItem2, { onClick: handleClick, children: [
|
|
7493
|
+
icon && /* @__PURE__ */ jsx82(ListItemIcon3, { children: React38.isValidElement(icon) ? React38.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
6949
7494
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
6950
7495
|
})) : icon }),
|
|
6951
|
-
/* @__PURE__ */
|
|
6952
|
-
/* @__PURE__ */
|
|
6953
|
-
badge && /* @__PURE__ */
|
|
7496
|
+
/* @__PURE__ */ jsx82(ListItemText4, { primary: label }),
|
|
7497
|
+
/* @__PURE__ */ jsxs33(Box36, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
7498
|
+
badge && /* @__PURE__ */ jsx82(
|
|
6954
7499
|
StyledBillingChip,
|
|
6955
7500
|
{
|
|
6956
7501
|
label: badge,
|
|
@@ -6958,19 +7503,19 @@ var UserMenuItem = ({
|
|
|
6958
7503
|
variant: "outlined"
|
|
6959
7504
|
}
|
|
6960
7505
|
),
|
|
6961
|
-
/* @__PURE__ */
|
|
7506
|
+
/* @__PURE__ */ jsx82(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
6962
7507
|
] })
|
|
6963
7508
|
] });
|
|
6964
7509
|
};
|
|
6965
7510
|
UserMenuItem.displayName = "UserMenu.Item";
|
|
6966
7511
|
|
|
6967
7512
|
// src/components/UserMenu/UserMenuLogout.tsx
|
|
6968
|
-
import * as
|
|
7513
|
+
import * as React39 from "react";
|
|
6969
7514
|
import MenuItem7 from "@mui/material/MenuItem";
|
|
6970
7515
|
import ListItemIcon4 from "@mui/material/ListItemIcon";
|
|
6971
7516
|
import ListItemText5 from "@mui/material/ListItemText";
|
|
6972
7517
|
import { styled as styled64 } from "@mui/material/styles";
|
|
6973
|
-
import { jsx as
|
|
7518
|
+
import { jsx as jsx83, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6974
7519
|
var StyledLogoutItem = styled64(MenuItem7, {
|
|
6975
7520
|
name: "MuiUserMenu",
|
|
6976
7521
|
slot: "LogoutItem"
|
|
@@ -6989,25 +7534,25 @@ var UserMenuLogout = ({
|
|
|
6989
7534
|
handleClose();
|
|
6990
7535
|
onClick == null ? void 0 : onClick();
|
|
6991
7536
|
};
|
|
6992
|
-
return /* @__PURE__ */
|
|
6993
|
-
icon && /* @__PURE__ */
|
|
7537
|
+
return /* @__PURE__ */ jsxs34(StyledLogoutItem, { onClick: handleClick, children: [
|
|
7538
|
+
icon && /* @__PURE__ */ jsx83(ListItemIcon4, { children: React39.isValidElement(icon) ? React39.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
6994
7539
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
6995
7540
|
})) : icon }),
|
|
6996
|
-
/* @__PURE__ */
|
|
7541
|
+
/* @__PURE__ */ jsx83(ListItemText5, { primary: label })
|
|
6997
7542
|
] });
|
|
6998
7543
|
};
|
|
6999
7544
|
UserMenuLogout.displayName = "UserMenu.Logout";
|
|
7000
7545
|
|
|
7001
7546
|
// src/components/UserMenu/UserMenuDivider.tsx
|
|
7002
7547
|
import Divider9 from "@mui/material/Divider";
|
|
7003
|
-
import { jsx as
|
|
7004
|
-
var UserMenuDivider = () => /* @__PURE__ */
|
|
7548
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
7549
|
+
var UserMenuDivider = () => /* @__PURE__ */ jsx84(Divider9, {});
|
|
7005
7550
|
UserMenuDivider.displayName = "UserMenu.Divider";
|
|
7006
7551
|
|
|
7007
7552
|
// src/components/UserMenu/UserMenu.tsx
|
|
7008
|
-
import { jsx as
|
|
7553
|
+
import { jsx as jsx85, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7009
7554
|
var UserMenu = ({ children }) => {
|
|
7010
|
-
const [anchorEl, setAnchorEl] =
|
|
7555
|
+
const [anchorEl, setAnchorEl] = React40.useState(null);
|
|
7011
7556
|
const open = Boolean(anchorEl);
|
|
7012
7557
|
const handleOpen = (event) => {
|
|
7013
7558
|
setAnchorEl(event.currentTarget);
|
|
@@ -7015,16 +7560,16 @@ var UserMenu = ({ children }) => {
|
|
|
7015
7560
|
const handleClose = () => {
|
|
7016
7561
|
setAnchorEl(null);
|
|
7017
7562
|
};
|
|
7018
|
-
const childrenArray =
|
|
7563
|
+
const childrenArray = React40.Children.toArray(children);
|
|
7019
7564
|
const triggerChild = childrenArray.find(
|
|
7020
|
-
(child) =>
|
|
7565
|
+
(child) => React40.isValidElement(child) && child.type === UserMenuTrigger
|
|
7021
7566
|
);
|
|
7022
7567
|
const menuChildren = childrenArray.filter(
|
|
7023
|
-
(child) =>
|
|
7568
|
+
(child) => React40.isValidElement(child) && child.type !== UserMenuTrigger
|
|
7024
7569
|
);
|
|
7025
|
-
return /* @__PURE__ */
|
|
7570
|
+
return /* @__PURE__ */ jsxs35(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
|
|
7026
7571
|
triggerChild,
|
|
7027
|
-
/* @__PURE__ */
|
|
7572
|
+
/* @__PURE__ */ jsx85(
|
|
7028
7573
|
Menu3,
|
|
7029
7574
|
{
|
|
7030
7575
|
id: "user-menu",
|
|
@@ -7054,14 +7599,14 @@ UserMenu.Divider = UserMenuDivider;
|
|
|
7054
7599
|
UserMenu.displayName = "UserMenu";
|
|
7055
7600
|
|
|
7056
7601
|
// src/components/NotificationBanner/NotificationBanner.tsx
|
|
7057
|
-
import * as
|
|
7602
|
+
import * as React41 from "react";
|
|
7058
7603
|
import Alert2 from "@mui/material/Alert";
|
|
7059
7604
|
import AlertTitle from "@mui/material/AlertTitle";
|
|
7060
7605
|
import Collapse2 from "@mui/material/Collapse";
|
|
7061
|
-
import
|
|
7062
|
-
import
|
|
7606
|
+
import Button6 from "@mui/material/Button";
|
|
7607
|
+
import Box37 from "@mui/material/Box";
|
|
7063
7608
|
import { styled as styled65 } from "@mui/material/styles";
|
|
7064
|
-
import { jsx as
|
|
7609
|
+
import { jsx as jsx86, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7065
7610
|
var NotificationBannerAlert = styled65(Alert2, {
|
|
7066
7611
|
name: "MuiNotificationBanner",
|
|
7067
7612
|
slot: "Root"
|
|
@@ -7090,7 +7635,7 @@ var NotificationBannerAlert = styled65(Alert2, {
|
|
|
7090
7635
|
}
|
|
7091
7636
|
}
|
|
7092
7637
|
})));
|
|
7093
|
-
var NotificationBannerContent = styled65(
|
|
7638
|
+
var NotificationBannerContent = styled65(Box37, {
|
|
7094
7639
|
name: "MuiNotificationBanner",
|
|
7095
7640
|
slot: "Content"
|
|
7096
7641
|
})({
|
|
@@ -7099,7 +7644,7 @@ var NotificationBannerContent = styled65(Box36, {
|
|
|
7099
7644
|
gap: 2,
|
|
7100
7645
|
flex: 1
|
|
7101
7646
|
});
|
|
7102
|
-
var NotificationBannerAction = styled65(
|
|
7647
|
+
var NotificationBannerAction = styled65(Button6, {
|
|
7103
7648
|
name: "MuiNotificationBanner",
|
|
7104
7649
|
slot: "Action"
|
|
7105
7650
|
})({
|
|
@@ -7120,22 +7665,22 @@ var NotificationBanner = ({
|
|
|
7120
7665
|
onDismiss,
|
|
7121
7666
|
sx
|
|
7122
7667
|
}) => {
|
|
7123
|
-
const [isVisible, setIsVisible] =
|
|
7124
|
-
|
|
7668
|
+
const [isVisible, setIsVisible] = React41.useState(visible);
|
|
7669
|
+
React41.useEffect(() => {
|
|
7125
7670
|
setIsVisible(visible);
|
|
7126
7671
|
}, [visible]);
|
|
7127
7672
|
const handleDismiss = () => {
|
|
7128
7673
|
setIsVisible(false);
|
|
7129
7674
|
onDismiss == null ? void 0 : onDismiss();
|
|
7130
7675
|
};
|
|
7131
|
-
return /* @__PURE__ */
|
|
7676
|
+
return /* @__PURE__ */ jsx86(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx86(
|
|
7132
7677
|
NotificationBannerAlert,
|
|
7133
7678
|
{
|
|
7134
7679
|
severity,
|
|
7135
7680
|
variant: "filled",
|
|
7136
7681
|
onClose: handleDismiss,
|
|
7137
7682
|
sx,
|
|
7138
|
-
action: actionLabel && onAction ? /* @__PURE__ */
|
|
7683
|
+
action: actionLabel && onAction ? /* @__PURE__ */ jsx86(
|
|
7139
7684
|
NotificationBannerAction,
|
|
7140
7685
|
{
|
|
7141
7686
|
color: "inherit",
|
|
@@ -7144,19 +7689,19 @@ var NotificationBanner = ({
|
|
|
7144
7689
|
children: actionLabel
|
|
7145
7690
|
}
|
|
7146
7691
|
) : void 0,
|
|
7147
|
-
children: /* @__PURE__ */
|
|
7148
|
-
title && /* @__PURE__ */
|
|
7149
|
-
/* @__PURE__ */
|
|
7692
|
+
children: /* @__PURE__ */ jsxs36(NotificationBannerContent, { children: [
|
|
7693
|
+
title && /* @__PURE__ */ jsx86(AlertTitle, { sx: { mb: 0 }, children: title }),
|
|
7694
|
+
/* @__PURE__ */ jsx86(Box37, { component: "span", children: message })
|
|
7150
7695
|
] })
|
|
7151
7696
|
}
|
|
7152
7697
|
) });
|
|
7153
7698
|
};
|
|
7154
7699
|
|
|
7155
7700
|
// src/components/Form/CardButton.tsx
|
|
7156
|
-
import { Card as
|
|
7157
|
-
import { CardHeader, CardContent as
|
|
7158
|
-
import { jsx as
|
|
7159
|
-
var StyledCardButton = styled66(
|
|
7701
|
+
import { Card as Card4, ButtonBase as ButtonBase3, Box as Box38, styled as styled66 } from "@mui/material";
|
|
7702
|
+
import { CardHeader, CardContent as CardContent3, CardActions, CardMedia } from "@mui/material";
|
|
7703
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
7704
|
+
var StyledCardButton = styled66(Card4, {
|
|
7160
7705
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
7161
7706
|
})(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
|
|
7162
7707
|
flexDirection: "column",
|
|
@@ -7184,7 +7729,7 @@ var StyledCardButton = styled66(Card3, {
|
|
|
7184
7729
|
}));
|
|
7185
7730
|
var CardButton = (props) => {
|
|
7186
7731
|
const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
|
|
7187
|
-
return /* @__PURE__ */
|
|
7732
|
+
return /* @__PURE__ */ jsx87(
|
|
7188
7733
|
StyledCardButton,
|
|
7189
7734
|
__spreadValues({
|
|
7190
7735
|
alignItems,
|
|
@@ -7194,42 +7739,42 @@ var CardButton = (props) => {
|
|
|
7194
7739
|
}, rest)
|
|
7195
7740
|
);
|
|
7196
7741
|
};
|
|
7197
|
-
var DisappearingCardButtonContent = (props) => /* @__PURE__ */
|
|
7742
|
+
var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx87(Box38, __spreadValues({ className: "creation-flow-card-actions" }, props));
|
|
7198
7743
|
|
|
7199
7744
|
// src/components/Form/Stack.tsx
|
|
7200
7745
|
import { Stack as OxygenStack } from "@mui/material";
|
|
7201
|
-
import { jsx as
|
|
7746
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
7202
7747
|
var Stack3 = (props) => {
|
|
7203
|
-
return /* @__PURE__ */
|
|
7748
|
+
return /* @__PURE__ */ jsx88(OxygenStack, __spreadValues({ spacing: 2 }, props));
|
|
7204
7749
|
};
|
|
7205
7750
|
|
|
7206
7751
|
// src/components/Form/Typography.tsx
|
|
7207
|
-
import { Typography as
|
|
7208
|
-
import { jsx as
|
|
7752
|
+
import { Typography as Typography24 } from "@mui/material";
|
|
7753
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
7209
7754
|
var Header2 = (props) => {
|
|
7210
7755
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
7211
|
-
return /* @__PURE__ */
|
|
7756
|
+
return /* @__PURE__ */ jsx89(Typography24, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
|
|
7212
7757
|
};
|
|
7213
7758
|
var Subheader = (props) => {
|
|
7214
7759
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
7215
|
-
return /* @__PURE__ */
|
|
7760
|
+
return /* @__PURE__ */ jsx89(Typography24, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
|
|
7216
7761
|
};
|
|
7217
7762
|
var Body = (props) => {
|
|
7218
7763
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
7219
|
-
return /* @__PURE__ */
|
|
7764
|
+
return /* @__PURE__ */ jsx89(Typography24, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
|
|
7220
7765
|
};
|
|
7221
7766
|
|
|
7222
7767
|
// src/components/Form/Section.tsx
|
|
7223
|
-
import { Card as
|
|
7224
|
-
import { jsx as
|
|
7768
|
+
import { Card as Card5, CardContent as CardContent4, Stack as Stack4 } from "@mui/material";
|
|
7769
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
7225
7770
|
var Section = ({ children }) => {
|
|
7226
|
-
return /* @__PURE__ */
|
|
7771
|
+
return /* @__PURE__ */ jsx90(Card5, { children: /* @__PURE__ */ jsx90(CardContent4, { children: /* @__PURE__ */ jsx90(Stack4, { direction: "column", spacing: 2, children }) }) });
|
|
7227
7772
|
};
|
|
7228
7773
|
|
|
7229
7774
|
// src/components/Form/Wizard.tsx
|
|
7230
7775
|
import {
|
|
7231
|
-
Card as
|
|
7232
|
-
CardContent as
|
|
7776
|
+
Card as Card6,
|
|
7777
|
+
CardContent as CardContent5,
|
|
7233
7778
|
StepLabel,
|
|
7234
7779
|
Step,
|
|
7235
7780
|
Stepper,
|
|
@@ -7237,37 +7782,37 @@ import {
|
|
|
7237
7782
|
} from "@mui/material";
|
|
7238
7783
|
import { styled as styled67 } from "@mui/material/styles";
|
|
7239
7784
|
import { useMemo as useMemo7 } from "react";
|
|
7240
|
-
import { jsx as
|
|
7785
|
+
import { jsx as jsx91, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7241
7786
|
var StyledWizardActionsStack = styled67(Stack3)(() => ({
|
|
7242
7787
|
justifyContent: "space-between",
|
|
7243
7788
|
flexGrow: 1
|
|
7244
7789
|
}));
|
|
7245
7790
|
function Wizard({ steps, activeStep, actions }) {
|
|
7246
7791
|
const step = useMemo7(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
|
|
7247
|
-
return /* @__PURE__ */
|
|
7248
|
-
/* @__PURE__ */
|
|
7249
|
-
/* @__PURE__ */
|
|
7250
|
-
/* @__PURE__ */
|
|
7251
|
-
/* @__PURE__ */
|
|
7792
|
+
return /* @__PURE__ */ jsx91(Card6, { children: /* @__PURE__ */ jsx91(CardContent5, { children: /* @__PURE__ */ jsxs37(Stack3, { children: [
|
|
7793
|
+
/* @__PURE__ */ jsx91(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx91(Step, { children: /* @__PURE__ */ jsx91(StepLabel, { children: step2.label }) }, step2.label)) }),
|
|
7794
|
+
/* @__PURE__ */ jsx91(Divider10, {}),
|
|
7795
|
+
/* @__PURE__ */ jsx91(Stack3, { direction: "row", children: step == null ? void 0 : step.component }),
|
|
7796
|
+
/* @__PURE__ */ jsx91(StyledWizardActionsStack, { direction: "row", children: actions })
|
|
7252
7797
|
] }) }) });
|
|
7253
7798
|
}
|
|
7254
7799
|
|
|
7255
7800
|
// src/components/Form/ElementWrapper.tsx
|
|
7256
7801
|
import { FormControl as FormControl3, FormLabel } from "@mui/material";
|
|
7257
|
-
import
|
|
7258
|
-
import { jsx as
|
|
7802
|
+
import React42 from "react";
|
|
7803
|
+
import { jsx as jsx92, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7259
7804
|
var ElementWrapper = (props) => {
|
|
7260
7805
|
const { label, name, children } = props;
|
|
7261
7806
|
const labelId = `${name}-label`;
|
|
7262
|
-
const enhancedChildren =
|
|
7807
|
+
const enhancedChildren = React42.Children.map(children, (child) => {
|
|
7263
7808
|
var _a;
|
|
7264
|
-
if (
|
|
7265
|
-
return
|
|
7809
|
+
if (React42.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
|
|
7810
|
+
return React42.cloneElement(child, { labelId });
|
|
7266
7811
|
}
|
|
7267
7812
|
return child;
|
|
7268
7813
|
});
|
|
7269
|
-
return /* @__PURE__ */
|
|
7270
|
-
/* @__PURE__ */
|
|
7814
|
+
return /* @__PURE__ */ jsxs38(FormControl3, { fullWidth: true, children: [
|
|
7815
|
+
/* @__PURE__ */ jsx92(FormLabel, { id: labelId, htmlFor: name, children: label }),
|
|
7271
7816
|
enhancedChildren
|
|
7272
7817
|
] });
|
|
7273
7818
|
};
|
|
@@ -7277,7 +7822,7 @@ var Form = {
|
|
|
7277
7822
|
CardButton,
|
|
7278
7823
|
DisappearingCardButtonContent,
|
|
7279
7824
|
CardHeader,
|
|
7280
|
-
CardContent:
|
|
7825
|
+
CardContent: CardContent3,
|
|
7281
7826
|
CardActions,
|
|
7282
7827
|
CardMedia,
|
|
7283
7828
|
Stack: Stack3,
|
|
@@ -7291,16 +7836,16 @@ var Form = {
|
|
|
7291
7836
|
};
|
|
7292
7837
|
|
|
7293
7838
|
// src/components/AppShell/AppShell.tsx
|
|
7294
|
-
import * as
|
|
7295
|
-
import
|
|
7839
|
+
import * as React44 from "react";
|
|
7840
|
+
import Box43 from "@mui/material/Box";
|
|
7296
7841
|
|
|
7297
7842
|
// src/layouts/Layout.tsx
|
|
7298
|
-
import
|
|
7299
|
-
import { jsx as
|
|
7843
|
+
import Box39 from "@mui/material/Box";
|
|
7844
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
7300
7845
|
function Layout(_a) {
|
|
7301
7846
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
7302
|
-
return /* @__PURE__ */
|
|
7303
|
-
|
|
7847
|
+
return /* @__PURE__ */ jsx93(
|
|
7848
|
+
Box39,
|
|
7304
7849
|
__spreadProps(__spreadValues({
|
|
7305
7850
|
sx: __spreadValues({
|
|
7306
7851
|
display: "flex",
|
|
@@ -7315,12 +7860,12 @@ Layout.displayName = "Layout";
|
|
|
7315
7860
|
var Layout_default = Layout;
|
|
7316
7861
|
|
|
7317
7862
|
// src/layouts/LayoutSidebar.tsx
|
|
7318
|
-
import
|
|
7319
|
-
import { jsx as
|
|
7863
|
+
import Box40 from "@mui/material/Box";
|
|
7864
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
7320
7865
|
function LayoutSidebar(_a) {
|
|
7321
7866
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
7322
|
-
return /* @__PURE__ */
|
|
7323
|
-
|
|
7867
|
+
return /* @__PURE__ */ jsx94(
|
|
7868
|
+
Box40,
|
|
7324
7869
|
__spreadProps(__spreadValues({
|
|
7325
7870
|
sx: __spreadValues({
|
|
7326
7871
|
display: "flex",
|
|
@@ -7342,12 +7887,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
|
|
|
7342
7887
|
var LayoutNavbar_default = LayoutNavbar;
|
|
7343
7888
|
|
|
7344
7889
|
// src/layouts/LayoutContent.tsx
|
|
7345
|
-
import
|
|
7346
|
-
import { jsx as
|
|
7890
|
+
import Box41 from "@mui/material/Box";
|
|
7891
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
7347
7892
|
function LayoutContent(_a) {
|
|
7348
7893
|
var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
|
|
7349
|
-
return /* @__PURE__ */
|
|
7350
|
-
|
|
7894
|
+
return /* @__PURE__ */ jsx95(
|
|
7895
|
+
Box41,
|
|
7351
7896
|
__spreadProps(__spreadValues({
|
|
7352
7897
|
component: "main",
|
|
7353
7898
|
sx: {
|
|
@@ -7365,12 +7910,12 @@ LayoutContent.displayName = "Layout.Content";
|
|
|
7365
7910
|
var LayoutContent_default = LayoutContent;
|
|
7366
7911
|
|
|
7367
7912
|
// src/layouts/LayoutHeader.tsx
|
|
7368
|
-
import
|
|
7369
|
-
import { jsx as
|
|
7913
|
+
import Box42 from "@mui/material/Box";
|
|
7914
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
7370
7915
|
function LayoutHeader(_a) {
|
|
7371
7916
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
7372
|
-
return /* @__PURE__ */
|
|
7373
|
-
|
|
7917
|
+
return /* @__PURE__ */ jsx96(
|
|
7918
|
+
Box42,
|
|
7374
7919
|
__spreadProps(__spreadValues({
|
|
7375
7920
|
sx: __spreadValues({
|
|
7376
7921
|
display: "flex"
|
|
@@ -7393,45 +7938,45 @@ var Layout2 = Object.assign(Layout_default, {
|
|
|
7393
7938
|
var layouts_default = Layout2;
|
|
7394
7939
|
|
|
7395
7940
|
// src/components/AppShell/AppShellNavbar.tsx
|
|
7396
|
-
import { Fragment as
|
|
7941
|
+
import { Fragment as Fragment13, jsx as jsx97 } from "react/jsx-runtime";
|
|
7397
7942
|
var AppShellNavbar = ({ children }) => {
|
|
7398
|
-
return /* @__PURE__ */
|
|
7943
|
+
return /* @__PURE__ */ jsx97(Fragment13, { children });
|
|
7399
7944
|
};
|
|
7400
7945
|
AppShellNavbar.displayName = "AppShellNavbar";
|
|
7401
7946
|
|
|
7402
7947
|
// src/components/AppShell/AppShellSidebar.tsx
|
|
7403
|
-
import { Fragment as
|
|
7948
|
+
import { Fragment as Fragment14, jsx as jsx98 } from "react/jsx-runtime";
|
|
7404
7949
|
var AppShellSidebar = ({ children }) => {
|
|
7405
|
-
return /* @__PURE__ */
|
|
7950
|
+
return /* @__PURE__ */ jsx98(Fragment14, { children });
|
|
7406
7951
|
};
|
|
7407
7952
|
AppShellSidebar.displayName = "AppShellSidebar";
|
|
7408
7953
|
|
|
7409
7954
|
// src/components/AppShell/AppShellMain.tsx
|
|
7410
|
-
import { Fragment as
|
|
7955
|
+
import { Fragment as Fragment15, jsx as jsx99 } from "react/jsx-runtime";
|
|
7411
7956
|
var AppShellMain = ({ children }) => {
|
|
7412
|
-
return /* @__PURE__ */
|
|
7957
|
+
return /* @__PURE__ */ jsx99(Fragment15, { children });
|
|
7413
7958
|
};
|
|
7414
7959
|
AppShellMain.displayName = "AppShellMain";
|
|
7415
7960
|
|
|
7416
7961
|
// src/components/AppShell/AppShellFooter.tsx
|
|
7417
|
-
import { Fragment as
|
|
7962
|
+
import { Fragment as Fragment16, jsx as jsx100 } from "react/jsx-runtime";
|
|
7418
7963
|
var AppShellFooter = ({ children }) => {
|
|
7419
|
-
return /* @__PURE__ */
|
|
7964
|
+
return /* @__PURE__ */ jsx100(Fragment16, { children });
|
|
7420
7965
|
};
|
|
7421
7966
|
AppShellFooter.displayName = "AppShellFooter";
|
|
7422
7967
|
|
|
7423
7968
|
// src/components/AppShell/AppShellNotificationPanel.tsx
|
|
7424
|
-
import { Fragment as
|
|
7969
|
+
import { Fragment as Fragment17, jsx as jsx101 } from "react/jsx-runtime";
|
|
7425
7970
|
var AppShellNotificationPanel = ({ children }) => {
|
|
7426
|
-
return /* @__PURE__ */
|
|
7971
|
+
return /* @__PURE__ */ jsx101(Fragment17, { children });
|
|
7427
7972
|
};
|
|
7428
7973
|
AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
|
|
7429
7974
|
|
|
7430
7975
|
// src/hooks/useAppShell/useAppShell.ts
|
|
7431
|
-
import * as
|
|
7976
|
+
import * as React43 from "react";
|
|
7432
7977
|
import useMediaQuery3 from "@mui/material/useMediaQuery";
|
|
7433
7978
|
var useAppShell = (options) => {
|
|
7434
|
-
const contextValue =
|
|
7979
|
+
const contextValue = React43.useContext(AppShellContext);
|
|
7435
7980
|
const {
|
|
7436
7981
|
initialCollapsed = false,
|
|
7437
7982
|
initialActiveItem = "dashboard",
|
|
@@ -7442,7 +7987,7 @@ var useAppShell = (options) => {
|
|
|
7442
7987
|
} = options || {};
|
|
7443
7988
|
const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
|
|
7444
7989
|
const isCreateMode = options !== void 0;
|
|
7445
|
-
const [state, setState] =
|
|
7990
|
+
const [state, setState] = React43.useState({
|
|
7446
7991
|
sidebarCollapsed: initialCollapsed,
|
|
7447
7992
|
notificationPanelOpen: false,
|
|
7448
7993
|
activeMenuItem: initialActiveItem,
|
|
@@ -7450,29 +7995,29 @@ var useAppShell = (options) => {
|
|
|
7450
7995
|
sidebarWidth,
|
|
7451
7996
|
sidebarCollapsedWidth
|
|
7452
7997
|
});
|
|
7453
|
-
|
|
7998
|
+
React43.useEffect(() => {
|
|
7454
7999
|
if (isCreateMode && collapseOnMobile && isMobile) {
|
|
7455
8000
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
|
|
7456
8001
|
}
|
|
7457
8002
|
}, [isCreateMode, collapseOnMobile, isMobile]);
|
|
7458
|
-
const toggleSidebar =
|
|
8003
|
+
const toggleSidebar = React43.useCallback(() => {
|
|
7459
8004
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
|
|
7460
8005
|
}, []);
|
|
7461
|
-
const setSidebarCollapsed =
|
|
8006
|
+
const setSidebarCollapsed = React43.useCallback((collapsed) => {
|
|
7462
8007
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: collapsed }));
|
|
7463
8008
|
}, []);
|
|
7464
|
-
const collapseSidebar =
|
|
8009
|
+
const collapseSidebar = React43.useCallback(() => {
|
|
7465
8010
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
|
|
7466
8011
|
}, []);
|
|
7467
|
-
const expandSidebar =
|
|
8012
|
+
const expandSidebar = React43.useCallback(() => {
|
|
7468
8013
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: false }));
|
|
7469
8014
|
}, []);
|
|
7470
|
-
const toggleNotificationPanel =
|
|
8015
|
+
const toggleNotificationPanel = React43.useCallback(() => {
|
|
7471
8016
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
7472
8017
|
notificationPanelOpen: !prev.notificationPanelOpen
|
|
7473
8018
|
}));
|
|
7474
8019
|
}, []);
|
|
7475
|
-
const setActiveMenuItem =
|
|
8020
|
+
const setActiveMenuItem = React43.useCallback((id) => {
|
|
7476
8021
|
setState((prev) => {
|
|
7477
8022
|
const newState = __spreadProps(__spreadValues({}, prev), { activeMenuItem: id });
|
|
7478
8023
|
if (collapseOnSelectOnMobile && isMobile && !prev.sidebarCollapsed) {
|
|
@@ -7481,14 +8026,14 @@ var useAppShell = (options) => {
|
|
|
7481
8026
|
return newState;
|
|
7482
8027
|
});
|
|
7483
8028
|
}, [collapseOnSelectOnMobile, isMobile]);
|
|
7484
|
-
const toggleMenu =
|
|
8029
|
+
const toggleMenu = React43.useCallback((id) => {
|
|
7485
8030
|
setState((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
7486
8031
|
expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
|
|
7487
8032
|
[id]: !prev.expandedMenus[id]
|
|
7488
8033
|
})
|
|
7489
8034
|
}));
|
|
7490
8035
|
}, []);
|
|
7491
|
-
const actions =
|
|
8036
|
+
const actions = React43.useMemo(
|
|
7492
8037
|
() => ({
|
|
7493
8038
|
toggleSidebar,
|
|
7494
8039
|
setSidebarCollapsed,
|
|
@@ -7508,7 +8053,7 @@ var useAppShell = (options) => {
|
|
|
7508
8053
|
toggleMenu
|
|
7509
8054
|
]
|
|
7510
8055
|
);
|
|
7511
|
-
const createdValue =
|
|
8056
|
+
const createdValue = React43.useMemo(
|
|
7512
8057
|
() => ({
|
|
7513
8058
|
state,
|
|
7514
8059
|
actions
|
|
@@ -7527,7 +8072,7 @@ var useAppShell = (options) => {
|
|
|
7527
8072
|
};
|
|
7528
8073
|
|
|
7529
8074
|
// src/components/AppShell/AppShell.tsx
|
|
7530
|
-
import { jsx as
|
|
8075
|
+
import { jsx as jsx102, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7531
8076
|
var SLOT_DISPLAY_NAMES = {
|
|
7532
8077
|
Navbar: "AppShellNavbar",
|
|
7533
8078
|
Sidebar: "AppShellSidebar",
|
|
@@ -7543,9 +8088,9 @@ var extractSlots = (children) => {
|
|
|
7543
8088
|
footer: null,
|
|
7544
8089
|
notificationPanel: null
|
|
7545
8090
|
};
|
|
7546
|
-
|
|
8091
|
+
React44.Children.forEach(children, (child) => {
|
|
7547
8092
|
var _a;
|
|
7548
|
-
if (
|
|
8093
|
+
if (React44.isValidElement(child)) {
|
|
7549
8094
|
const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
|
|
7550
8095
|
const childProps = child.props;
|
|
7551
8096
|
switch (displayName) {
|
|
@@ -7577,12 +8122,12 @@ var AppShell = (_a) => {
|
|
|
7577
8122
|
var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
|
|
7578
8123
|
const shell = useAppShell(shellOptions);
|
|
7579
8124
|
const slots = extractSlots(children);
|
|
7580
|
-
return /* @__PURE__ */
|
|
7581
|
-
slots.navbar && /* @__PURE__ */
|
|
7582
|
-
/* @__PURE__ */
|
|
7583
|
-
slots.sidebar && /* @__PURE__ */
|
|
7584
|
-
/* @__PURE__ */
|
|
7585
|
-
/* @__PURE__ */
|
|
8125
|
+
return /* @__PURE__ */ jsx102(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs39(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
|
|
8126
|
+
slots.navbar && /* @__PURE__ */ jsx102(layouts_default.Navbar, { children: slots.navbar }),
|
|
8127
|
+
/* @__PURE__ */ jsxs39(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
|
|
8128
|
+
slots.sidebar && /* @__PURE__ */ jsx102(layouts_default.Sidebar, { children: slots.sidebar }),
|
|
8129
|
+
/* @__PURE__ */ jsxs39(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
|
|
8130
|
+
/* @__PURE__ */ jsx102(Box43, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
|
|
7586
8131
|
slots.footer
|
|
7587
8132
|
] })
|
|
7588
8133
|
] }),
|
|
@@ -7610,7 +8155,7 @@ var densityStyles = {
|
|
|
7610
8155
|
// src/components/ListingTable/ListingTable/ListingTableContainer.tsx
|
|
7611
8156
|
import MuiTableContainer from "@mui/material/TableContainer";
|
|
7612
8157
|
import Paper from "@mui/material/Paper";
|
|
7613
|
-
import { jsx as
|
|
8158
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
7614
8159
|
function ListingTableContainer(_a) {
|
|
7615
8160
|
var _b = _a, {
|
|
7616
8161
|
elevation = 1,
|
|
@@ -7622,16 +8167,16 @@ function ListingTableContainer(_a) {
|
|
|
7622
8167
|
"children"
|
|
7623
8168
|
]);
|
|
7624
8169
|
if (disablePaper) {
|
|
7625
|
-
return /* @__PURE__ */
|
|
8170
|
+
return /* @__PURE__ */ jsx103(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
7626
8171
|
}
|
|
7627
|
-
return /* @__PURE__ */
|
|
8172
|
+
return /* @__PURE__ */ jsx103(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
7628
8173
|
}
|
|
7629
8174
|
var ListingTableContainer_default = ListingTableContainer;
|
|
7630
8175
|
|
|
7631
8176
|
// src/components/ListingTable/ListingTable/ListingTableHead.tsx
|
|
7632
8177
|
import MuiTableHead from "@mui/material/TableHead";
|
|
7633
8178
|
import { styled as styled68 } from "@mui/material/styles";
|
|
7634
|
-
import { jsx as
|
|
8179
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
7635
8180
|
var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
|
|
7636
8181
|
"& .MuiTableCell-head": __spreadValues(__spreadValues({
|
|
7637
8182
|
fontWeight: 600
|
|
@@ -7643,27 +8188,27 @@ var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
|
|
|
7643
8188
|
}));
|
|
7644
8189
|
function ListingTableHead(_a) {
|
|
7645
8190
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
7646
|
-
return /* @__PURE__ */
|
|
8191
|
+
return /* @__PURE__ */ jsx104(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
|
|
7647
8192
|
}
|
|
7648
8193
|
var ListingTableHead_default = ListingTableHead;
|
|
7649
8194
|
|
|
7650
8195
|
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
7651
|
-
import { Children as Children15, Fragment as
|
|
8196
|
+
import { Children as Children15, Fragment as Fragment18, isValidElement as isValidElement15 } from "react";
|
|
7652
8197
|
import MuiTableBody from "@mui/material/TableBody";
|
|
7653
8198
|
import MuiTableRow from "@mui/material/TableRow";
|
|
7654
8199
|
import MuiTableCell from "@mui/material/TableCell";
|
|
7655
|
-
import
|
|
8200
|
+
import Box45 from "@mui/material/Box";
|
|
7656
8201
|
import { Search as Search2 } from "@wso2/oxygen-ui-icons-react";
|
|
7657
8202
|
|
|
7658
8203
|
// src/components/ListingTable/context.ts
|
|
7659
|
-
import * as
|
|
7660
|
-
var ListingTableContext =
|
|
8204
|
+
import * as React45 from "react";
|
|
8205
|
+
var ListingTableContext = React45.createContext(null);
|
|
7661
8206
|
ListingTableContext.displayName = "ListingTableContext";
|
|
7662
8207
|
var useListingTable = () => {
|
|
7663
|
-
return
|
|
8208
|
+
return React45.useContext(ListingTableContext);
|
|
7664
8209
|
};
|
|
7665
8210
|
var useListingTableRequired = () => {
|
|
7666
|
-
const context =
|
|
8211
|
+
const context = React45.useContext(ListingTableContext);
|
|
7667
8212
|
if (!context) {
|
|
7668
8213
|
throw new Error(
|
|
7669
8214
|
"useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
|
|
@@ -7673,9 +8218,9 @@ var useListingTableRequired = () => {
|
|
|
7673
8218
|
};
|
|
7674
8219
|
|
|
7675
8220
|
// src/components/ListingTable/shared/ListingTableEmptyState.tsx
|
|
7676
|
-
import
|
|
7677
|
-
import
|
|
7678
|
-
import { jsx as
|
|
8221
|
+
import Box44 from "@mui/material/Box";
|
|
8222
|
+
import Typography25 from "@mui/material/Typography";
|
|
8223
|
+
import { jsx as jsx105, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7679
8224
|
function ListingTableEmptyState({
|
|
7680
8225
|
title = "No data available",
|
|
7681
8226
|
description,
|
|
@@ -7684,8 +8229,8 @@ function ListingTableEmptyState({
|
|
|
7684
8229
|
minHeight = 300,
|
|
7685
8230
|
sx
|
|
7686
8231
|
}) {
|
|
7687
|
-
return /* @__PURE__ */
|
|
7688
|
-
|
|
8232
|
+
return /* @__PURE__ */ jsxs40(
|
|
8233
|
+
Box44,
|
|
7689
8234
|
{
|
|
7690
8235
|
sx: __spreadValues({
|
|
7691
8236
|
display: "flex",
|
|
@@ -7697,8 +8242,8 @@ function ListingTableEmptyState({
|
|
|
7697
8242
|
textAlign: "center"
|
|
7698
8243
|
}, sx),
|
|
7699
8244
|
children: [
|
|
7700
|
-
illustration && /* @__PURE__ */
|
|
7701
|
-
|
|
8245
|
+
illustration && /* @__PURE__ */ jsx105(
|
|
8246
|
+
Box44,
|
|
7702
8247
|
{
|
|
7703
8248
|
sx: {
|
|
7704
8249
|
mb: 2,
|
|
@@ -7711,9 +8256,9 @@ function ListingTableEmptyState({
|
|
|
7711
8256
|
children: illustration
|
|
7712
8257
|
}
|
|
7713
8258
|
),
|
|
7714
|
-
/* @__PURE__ */
|
|
7715
|
-
description && /* @__PURE__ */
|
|
7716
|
-
action && /* @__PURE__ */
|
|
8259
|
+
/* @__PURE__ */ jsx105(Typography25, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
|
|
8260
|
+
description && /* @__PURE__ */ jsx105(Typography25, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
|
|
8261
|
+
action && /* @__PURE__ */ jsx105(Box44, { children: action })
|
|
7717
8262
|
]
|
|
7718
8263
|
}
|
|
7719
8264
|
);
|
|
@@ -7721,10 +8266,10 @@ function ListingTableEmptyState({
|
|
|
7721
8266
|
var ListingTableEmptyState_default = ListingTableEmptyState;
|
|
7722
8267
|
|
|
7723
8268
|
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
7724
|
-
import { jsx as
|
|
8269
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
7725
8270
|
function hasContent(node) {
|
|
7726
8271
|
return Children15.toArray(node).some(
|
|
7727
|
-
(child) => isValidElement15(child) && child.type ===
|
|
8272
|
+
(child) => isValidElement15(child) && child.type === Fragment18 ? hasContent(child.props.children) : true
|
|
7728
8273
|
);
|
|
7729
8274
|
}
|
|
7730
8275
|
function ListingTableBody(_a) {
|
|
@@ -7734,7 +8279,7 @@ function ListingTableBody(_a) {
|
|
|
7734
8279
|
loading,
|
|
7735
8280
|
noSearchResultsText = "No results found",
|
|
7736
8281
|
noSearchResultsDescription = "Try a different keyword",
|
|
7737
|
-
noSearchResultsIcon = /* @__PURE__ */
|
|
8282
|
+
noSearchResultsIcon = /* @__PURE__ */ jsx106(Search2, {}),
|
|
7738
8283
|
emptyStateColSpan = 1e3
|
|
7739
8284
|
} = _b, props = __objRest(_b, [
|
|
7740
8285
|
"children",
|
|
@@ -7751,7 +8296,7 @@ function ListingTableBody(_a) {
|
|
|
7751
8296
|
const isLoading = (_b2 = loading != null ? loading : context == null ? void 0 : context.loading) != null ? _b2 : false;
|
|
7752
8297
|
const hasRows = hasContent(children);
|
|
7753
8298
|
if (isSearching && !isLoading && !hasRows) {
|
|
7754
|
-
return /* @__PURE__ */
|
|
8299
|
+
return /* @__PURE__ */ jsx106(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx106(MuiTableRow, { children: /* @__PURE__ */ jsx106(MuiTableCell, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx106(Box45, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx106(
|
|
7755
8300
|
ListingTableEmptyState,
|
|
7756
8301
|
{
|
|
7757
8302
|
title: noSearchResultsText,
|
|
@@ -7760,23 +8305,23 @@ function ListingTableBody(_a) {
|
|
|
7760
8305
|
}
|
|
7761
8306
|
) }) }) }) }));
|
|
7762
8307
|
}
|
|
7763
|
-
return /* @__PURE__ */
|
|
8308
|
+
return /* @__PURE__ */ jsx106(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
|
|
7764
8309
|
}
|
|
7765
8310
|
var ListingTableBody_default = ListingTableBody;
|
|
7766
8311
|
|
|
7767
8312
|
// src/components/ListingTable/ListingTable/ListingTableFooter.tsx
|
|
7768
8313
|
import MuiTableFooter from "@mui/material/TableFooter";
|
|
7769
|
-
import { jsx as
|
|
8314
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
7770
8315
|
function ListingTableFooter(_a) {
|
|
7771
8316
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
7772
|
-
return /* @__PURE__ */
|
|
8317
|
+
return /* @__PURE__ */ jsx107(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
|
|
7773
8318
|
}
|
|
7774
8319
|
var ListingTableFooter_default = ListingTableFooter;
|
|
7775
8320
|
|
|
7776
8321
|
// src/components/ListingTable/ListingTable/ListingTableRow.tsx
|
|
7777
8322
|
import MuiTableRow2 from "@mui/material/TableRow";
|
|
7778
8323
|
import { styled as styled69, alpha as alpha2 } from "@mui/material/styles";
|
|
7779
|
-
import { jsx as
|
|
8324
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
7780
8325
|
var StyledTableRow = styled69(MuiTableRow2, {
|
|
7781
8326
|
shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
|
|
7782
8327
|
})(({ theme: muiTheme, clickable, variant = "table" }) => {
|
|
@@ -7835,14 +8380,14 @@ function ListingTableRow(_a) {
|
|
|
7835
8380
|
"variant",
|
|
7836
8381
|
"children"
|
|
7837
8382
|
]);
|
|
7838
|
-
return /* @__PURE__ */
|
|
8383
|
+
return /* @__PURE__ */ jsx108(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
|
|
7839
8384
|
}
|
|
7840
8385
|
var ListingTableRow_default = ListingTableRow;
|
|
7841
8386
|
|
|
7842
8387
|
// src/components/ListingTable/ListingTable/ListingTableCell.tsx
|
|
7843
8388
|
import MuiTableCell2 from "@mui/material/TableCell";
|
|
7844
8389
|
import { styled as styled70 } from "@mui/material/styles";
|
|
7845
|
-
import { jsx as
|
|
8390
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
7846
8391
|
var StyledTableCell = styled70(MuiTableCell2, {
|
|
7847
8392
|
shouldForwardProp: (prop) => {
|
|
7848
8393
|
const excludedProps = ["truncate", "maxWidth"];
|
|
@@ -7865,7 +8410,7 @@ function ListingTableCell(_a) {
|
|
|
7865
8410
|
"maxWidth",
|
|
7866
8411
|
"children"
|
|
7867
8412
|
]);
|
|
7868
|
-
return /* @__PURE__ */
|
|
8413
|
+
return /* @__PURE__ */ jsx109(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
|
|
7869
8414
|
}
|
|
7870
8415
|
var ListingTableCell_default = ListingTableCell;
|
|
7871
8416
|
|
|
@@ -7873,7 +8418,7 @@ var ListingTableCell_default = ListingTableCell;
|
|
|
7873
8418
|
import { useCallback as useCallback5 } from "react";
|
|
7874
8419
|
import { DataGrid } from "@mui/x-data-grid";
|
|
7875
8420
|
import { styled as styled71, alpha as alpha3 } from "@mui/material/styles";
|
|
7876
|
-
import { jsx as
|
|
8421
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
7877
8422
|
var StyledDataGrid = styled71(DataGrid)(({ theme }) => ({
|
|
7878
8423
|
// Remove outer border for seamless integration within ListingTable.Container
|
|
7879
8424
|
border: "none",
|
|
@@ -8031,7 +8576,7 @@ function ListingTableDataGrid(_a) {
|
|
|
8031
8576
|
"& .MuiDataGrid-cell": { padding: cellPadding }
|
|
8032
8577
|
};
|
|
8033
8578
|
const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
|
|
8034
|
-
return /* @__PURE__ */
|
|
8579
|
+
return /* @__PURE__ */ jsx110(
|
|
8035
8580
|
StyledDataGrid,
|
|
8036
8581
|
__spreadValues({
|
|
8037
8582
|
density,
|
|
@@ -8047,12 +8592,12 @@ var ListingTableDataGrid_default = ListingTableDataGrid;
|
|
|
8047
8592
|
|
|
8048
8593
|
// src/components/ListingTable/shared/ListingTableToolbar.tsx
|
|
8049
8594
|
import { useState as useState11, useCallback as useCallback6 } from "react";
|
|
8050
|
-
import
|
|
8595
|
+
import Box46 from "@mui/material/Box";
|
|
8051
8596
|
import TextField3 from "@mui/material/TextField";
|
|
8052
8597
|
import InputAdornment3 from "@mui/material/InputAdornment";
|
|
8053
8598
|
import IconButton8 from "@mui/material/IconButton";
|
|
8054
8599
|
import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
|
|
8055
|
-
import { Fragment as
|
|
8600
|
+
import { Fragment as Fragment19, jsx as jsx111, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
8056
8601
|
function ListingTableToolbar({
|
|
8057
8602
|
showSearch = false,
|
|
8058
8603
|
searchSlot,
|
|
@@ -8093,7 +8638,7 @@ function ListingTableToolbar({
|
|
|
8093
8638
|
return searchSlot;
|
|
8094
8639
|
}
|
|
8095
8640
|
if (showSearch) {
|
|
8096
|
-
return /* @__PURE__ */
|
|
8641
|
+
return /* @__PURE__ */ jsx111(
|
|
8097
8642
|
TextField3,
|
|
8098
8643
|
{
|
|
8099
8644
|
size: "small",
|
|
@@ -8109,8 +8654,8 @@ function ListingTableToolbar({
|
|
|
8109
8654
|
"aria-label": searchPlaceholder || "Search"
|
|
8110
8655
|
},
|
|
8111
8656
|
input: {
|
|
8112
|
-
startAdornment: /* @__PURE__ */
|
|
8113
|
-
endAdornment: searchValue ? /* @__PURE__ */
|
|
8657
|
+
startAdornment: /* @__PURE__ */ jsx111(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx111(Search3, { size: 18, "aria-hidden": "true" }) }),
|
|
8658
|
+
endAdornment: searchValue ? /* @__PURE__ */ jsx111(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx111(IconButton8, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx111(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
|
|
8114
8659
|
}
|
|
8115
8660
|
}
|
|
8116
8661
|
}
|
|
@@ -8118,8 +8663,8 @@ function ListingTableToolbar({
|
|
|
8118
8663
|
}
|
|
8119
8664
|
return null;
|
|
8120
8665
|
};
|
|
8121
|
-
return /* @__PURE__ */
|
|
8122
|
-
|
|
8666
|
+
return /* @__PURE__ */ jsxs41(
|
|
8667
|
+
Box46,
|
|
8123
8668
|
{
|
|
8124
8669
|
role: "toolbar",
|
|
8125
8670
|
"aria-label": "Table toolbar",
|
|
@@ -8134,9 +8679,9 @@ function ListingTableToolbar({
|
|
|
8134
8679
|
children: [
|
|
8135
8680
|
renderSearch(),
|
|
8136
8681
|
children,
|
|
8137
|
-
actions && /* @__PURE__ */
|
|
8138
|
-
/* @__PURE__ */
|
|
8139
|
-
/* @__PURE__ */
|
|
8682
|
+
actions && /* @__PURE__ */ jsxs41(Fragment19, { children: [
|
|
8683
|
+
/* @__PURE__ */ jsx111(Box46, { sx: { flex: 1 } }),
|
|
8684
|
+
/* @__PURE__ */ jsx111(Box46, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
|
|
8140
8685
|
] })
|
|
8141
8686
|
]
|
|
8142
8687
|
}
|
|
@@ -8150,11 +8695,11 @@ import ToggleButton from "@mui/material/ToggleButton";
|
|
|
8150
8695
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
8151
8696
|
import Tooltip9 from "@mui/material/Tooltip";
|
|
8152
8697
|
import { AlignJustify, Menu as Menu4, List as List4 } from "@wso2/oxygen-ui-icons-react";
|
|
8153
|
-
import { jsx as
|
|
8698
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
8154
8699
|
var densityOptions = [
|
|
8155
|
-
{ value: "compact", label: "Compact", icon: /* @__PURE__ */
|
|
8156
|
-
{ value: "standard", label: "Standard", icon: /* @__PURE__ */
|
|
8157
|
-
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */
|
|
8700
|
+
{ value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx112(AlignJustify, { size: 18 }) },
|
|
8701
|
+
{ value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx112(Menu4, { size: 18 }) },
|
|
8702
|
+
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx112(List4, { size: 18 }) }
|
|
8158
8703
|
];
|
|
8159
8704
|
function ListingTableDensityControl({
|
|
8160
8705
|
value: valueProp,
|
|
@@ -8174,7 +8719,7 @@ function ListingTableDensityControl({
|
|
|
8174
8719
|
},
|
|
8175
8720
|
[effectiveOnChange]
|
|
8176
8721
|
);
|
|
8177
|
-
return /* @__PURE__ */
|
|
8722
|
+
return /* @__PURE__ */ jsx112(
|
|
8178
8723
|
ToggleButtonGroup,
|
|
8179
8724
|
{
|
|
8180
8725
|
value,
|
|
@@ -8183,7 +8728,7 @@ function ListingTableDensityControl({
|
|
|
8183
8728
|
size,
|
|
8184
8729
|
sx,
|
|
8185
8730
|
"aria-label": "Table density",
|
|
8186
|
-
children: densityOptions.map((option) => /* @__PURE__ */
|
|
8731
|
+
children: densityOptions.map((option) => /* @__PURE__ */ jsx112(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx112(Tooltip9, { title: option.label, children: /* @__PURE__ */ jsx112("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
|
|
8187
8732
|
}
|
|
8188
8733
|
);
|
|
8189
8734
|
}
|
|
@@ -8193,7 +8738,7 @@ var ListingTableDensityControl_default = ListingTableDensityControl;
|
|
|
8193
8738
|
import { useCallback as useCallback8 } from "react";
|
|
8194
8739
|
import MuiTableSortLabel from "@mui/material/TableSortLabel";
|
|
8195
8740
|
import { styled as styled72 } from "@mui/material/styles";
|
|
8196
|
-
import { jsx as
|
|
8741
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
8197
8742
|
var StyledTableSortLabel = styled72(MuiTableSortLabel)(({ theme }) => ({
|
|
8198
8743
|
color: "inherit !important",
|
|
8199
8744
|
"&.Mui-active": {
|
|
@@ -8237,25 +8782,25 @@ function ListingTableSortLabel(_a) {
|
|
|
8237
8782
|
},
|
|
8238
8783
|
[onClickProp, field, tableContext, active, direction]
|
|
8239
8784
|
);
|
|
8240
|
-
return /* @__PURE__ */
|
|
8785
|
+
return /* @__PURE__ */ jsx113(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
|
|
8241
8786
|
}
|
|
8242
8787
|
var ListingTableSortLabel_default = ListingTableSortLabel;
|
|
8243
8788
|
|
|
8244
8789
|
// src/components/ListingTable/shared/ListingTableFilter.tsx
|
|
8245
|
-
import * as
|
|
8790
|
+
import * as React47 from "react";
|
|
8246
8791
|
import IconButton9 from "@mui/material/IconButton";
|
|
8247
8792
|
import Tooltip10 from "@mui/material/Tooltip";
|
|
8248
8793
|
import { ListFilter as ListFilter2 } from "@wso2/oxygen-ui-icons-react";
|
|
8249
8794
|
|
|
8250
8795
|
// src/components/ListingTable/shared/ListingTableFilterMenu.tsx
|
|
8251
|
-
import * as
|
|
8252
|
-
import
|
|
8796
|
+
import * as React46 from "react";
|
|
8797
|
+
import Box47 from "@mui/material/Box";
|
|
8253
8798
|
import MenuItem8 from "@mui/material/MenuItem";
|
|
8254
8799
|
import MenuList3 from "@mui/material/MenuList";
|
|
8255
8800
|
import Popover5 from "@mui/material/Popover";
|
|
8256
|
-
import
|
|
8801
|
+
import Typography26 from "@mui/material/Typography";
|
|
8257
8802
|
import { Check } from "@wso2/oxygen-ui-icons-react";
|
|
8258
|
-
import { jsx as
|
|
8803
|
+
import { jsx as jsx114, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
8259
8804
|
var MenuContent = ({
|
|
8260
8805
|
open,
|
|
8261
8806
|
onClose,
|
|
@@ -8269,12 +8814,12 @@ var MenuContent = ({
|
|
|
8269
8814
|
searchPlaceholder,
|
|
8270
8815
|
noMatchLabel
|
|
8271
8816
|
}) => {
|
|
8272
|
-
const [query, setQuery] =
|
|
8273
|
-
|
|
8817
|
+
const [query, setQuery] = React46.useState("");
|
|
8818
|
+
React46.useLayoutEffect(() => {
|
|
8274
8819
|
if (open) setQuery("");
|
|
8275
8820
|
}, [open]);
|
|
8276
|
-
const listRef =
|
|
8277
|
-
const searchRef =
|
|
8821
|
+
const listRef = React46.useRef(null);
|
|
8822
|
+
const searchRef = React46.useRef(null);
|
|
8278
8823
|
const current = value != null ? value : "";
|
|
8279
8824
|
const needle = query.trim().toLowerCase();
|
|
8280
8825
|
const matching = options.filter(
|
|
@@ -8298,8 +8843,8 @@ var MenuContent = ({
|
|
|
8298
8843
|
var _a, _b;
|
|
8299
8844
|
return (_b = (_a = listRef.current) == null ? void 0 : _a.querySelector('[role="menuitemradio"]')) == null ? void 0 : _b.focus();
|
|
8300
8845
|
};
|
|
8301
|
-
return /* @__PURE__ */
|
|
8302
|
-
searchable && /* @__PURE__ */
|
|
8846
|
+
return /* @__PURE__ */ jsxs42(Box47, { sx: { minWidth: 240, maxWidth: 320 }, children: [
|
|
8847
|
+
searchable && /* @__PURE__ */ jsx114(Box47, { ref: searchRef, sx: { p: 1 }, children: /* @__PURE__ */ jsx114(
|
|
8303
8848
|
SearchBarBase,
|
|
8304
8849
|
{
|
|
8305
8850
|
autoFocus: true,
|
|
@@ -8323,10 +8868,10 @@ var MenuContent = ({
|
|
|
8323
8868
|
}
|
|
8324
8869
|
}
|
|
8325
8870
|
) }),
|
|
8326
|
-
/* @__PURE__ */
|
|
8871
|
+
/* @__PURE__ */ jsxs42(MenuList3, { ref: listRef, id: listId, "aria-label": label, autoFocusItem: !searchable, onKeyDownCapture: handleListKeyDown, sx: { py: 0.5, maxHeight: 320, overflow: "auto" }, children: [
|
|
8327
8872
|
shown.map((option) => {
|
|
8328
8873
|
const selected = option.value === current;
|
|
8329
|
-
return /* @__PURE__ */
|
|
8874
|
+
return /* @__PURE__ */ jsxs42(
|
|
8330
8875
|
MenuItem8,
|
|
8331
8876
|
{
|
|
8332
8877
|
role: "menuitemradio",
|
|
@@ -8336,14 +8881,14 @@ var MenuContent = ({
|
|
|
8336
8881
|
sx: { justifyContent: "space-between", gap: 2 },
|
|
8337
8882
|
children: [
|
|
8338
8883
|
option.label,
|
|
8339
|
-
selected && /* @__PURE__ */
|
|
8884
|
+
selected && /* @__PURE__ */ jsx114(Check, { size: 16, "aria-hidden": "true" })
|
|
8340
8885
|
]
|
|
8341
8886
|
},
|
|
8342
8887
|
option.value
|
|
8343
8888
|
);
|
|
8344
8889
|
}),
|
|
8345
8890
|
needle !== "" && matching.length === 0 && // A list item, not a paragraph, because it sits directly in the list.
|
|
8346
|
-
/* @__PURE__ */
|
|
8891
|
+
/* @__PURE__ */ jsx114(Typography26, { component: "li", role: "presentation", variant: "body2", color: "text.secondary", sx: { px: 2, py: 1, listStyle: "none" }, children: noMatchLabel })
|
|
8347
8892
|
] })
|
|
8348
8893
|
] });
|
|
8349
8894
|
};
|
|
@@ -8357,22 +8902,22 @@ var ListingTableFilterMenu = (_a) => {
|
|
|
8357
8902
|
"anchorEl",
|
|
8358
8903
|
"onClose"
|
|
8359
8904
|
]);
|
|
8360
|
-
return /* @__PURE__ */
|
|
8905
|
+
return /* @__PURE__ */ jsx114(
|
|
8361
8906
|
Popover5,
|
|
8362
8907
|
{
|
|
8363
8908
|
anchorEl,
|
|
8364
8909
|
open,
|
|
8365
8910
|
onClose,
|
|
8366
8911
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
8367
|
-
children: /* @__PURE__ */
|
|
8912
|
+
children: /* @__PURE__ */ jsx114(MenuContent, __spreadValues({ open, onClose }, content))
|
|
8368
8913
|
}
|
|
8369
8914
|
);
|
|
8370
8915
|
};
|
|
8371
8916
|
ListingTableFilterMenu.displayName = "ListingTableFilterMenu";
|
|
8372
8917
|
|
|
8373
8918
|
// src/components/ListingTable/shared/ListingTableFilter.tsx
|
|
8374
|
-
import { Fragment as
|
|
8375
|
-
var ListingTableFilter =
|
|
8919
|
+
import { Fragment as Fragment20, jsx as jsx115, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
8920
|
+
var ListingTableFilter = React47.forwardRef(
|
|
8376
8921
|
function ListingTableFilter2(_a, ref) {
|
|
8377
8922
|
var _b = _a, {
|
|
8378
8923
|
field,
|
|
@@ -8403,8 +8948,8 @@ var ListingTableFilter = React46.forwardRef(
|
|
|
8403
8948
|
]);
|
|
8404
8949
|
var _a2;
|
|
8405
8950
|
const tableContext = useListingTable();
|
|
8406
|
-
const [anchor, setAnchor] =
|
|
8407
|
-
const listId =
|
|
8951
|
+
const [anchor, setAnchor] = React47.useState(null);
|
|
8952
|
+
const listId = React47.useId();
|
|
8408
8953
|
const fromContext = field !== void 0 ? (_a2 = tableContext == null ? void 0 : tableContext.filters) == null ? void 0 : _a2[field] : void 0;
|
|
8409
8954
|
const value = valueProp !== void 0 ? valueProp : typeof fromContext === "string" ? fromContext : null;
|
|
8410
8955
|
const applied = value !== null && value !== "";
|
|
@@ -8418,8 +8963,8 @@ var ListingTableFilter = React46.forwardRef(
|
|
|
8418
8963
|
}
|
|
8419
8964
|
};
|
|
8420
8965
|
const resting = applied ? 1 : alwaysShowIcon ? 0.5 : 0;
|
|
8421
|
-
return /* @__PURE__ */
|
|
8422
|
-
/* @__PURE__ */
|
|
8966
|
+
return /* @__PURE__ */ jsxs43(Fragment20, { children: [
|
|
8967
|
+
/* @__PURE__ */ jsx115(Tooltip10, { title: label, describeChild: true, children: /* @__PURE__ */ jsx115("span", { children: /* @__PURE__ */ jsx115(
|
|
8423
8968
|
IconButton9,
|
|
8424
8969
|
__spreadProps(__spreadValues({
|
|
8425
8970
|
size: "small",
|
|
@@ -8459,10 +9004,10 @@ var ListingTableFilter = React46.forwardRef(
|
|
|
8459
9004
|
}),
|
|
8460
9005
|
...Array.isArray(sx) ? sx : [sx]
|
|
8461
9006
|
],
|
|
8462
|
-
children: /* @__PURE__ */
|
|
9007
|
+
children: /* @__PURE__ */ jsx115(ListFilter2, { size: 14 })
|
|
8463
9008
|
})
|
|
8464
9009
|
) }) }),
|
|
8465
|
-
/* @__PURE__ */
|
|
9010
|
+
/* @__PURE__ */ jsx115(
|
|
8466
9011
|
ListingTableFilterMenu,
|
|
8467
9012
|
{
|
|
8468
9013
|
open: Boolean(anchor),
|
|
@@ -8486,8 +9031,8 @@ ListingTableFilter.displayName = "ListingTableFilter";
|
|
|
8486
9031
|
var ListingTableFilter_default = ListingTableFilter;
|
|
8487
9032
|
|
|
8488
9033
|
// src/components/ListingTable/shared/ListingTableRowActions.tsx
|
|
8489
|
-
import
|
|
8490
|
-
import { jsx as
|
|
9034
|
+
import Box48 from "@mui/material/Box";
|
|
9035
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
8491
9036
|
var alignmentMap = {
|
|
8492
9037
|
left: "flex-start",
|
|
8493
9038
|
center: "center",
|
|
@@ -8499,8 +9044,8 @@ function ListingTableRowActions({
|
|
|
8499
9044
|
align = "right",
|
|
8500
9045
|
sx
|
|
8501
9046
|
}) {
|
|
8502
|
-
return /* @__PURE__ */
|
|
8503
|
-
|
|
9047
|
+
return /* @__PURE__ */ jsx116(
|
|
9048
|
+
Box48,
|
|
8504
9049
|
{
|
|
8505
9050
|
className: "table-row-actions",
|
|
8506
9051
|
sx: __spreadValues(__spreadValues({
|
|
@@ -8523,9 +9068,9 @@ function ListingTableRowActions({
|
|
|
8523
9068
|
var ListingTableRowActions_default = ListingTableRowActions;
|
|
8524
9069
|
|
|
8525
9070
|
// src/components/ListingTable/shared/ListingTableCellIcon.tsx
|
|
8526
|
-
import
|
|
8527
|
-
import
|
|
8528
|
-
import { Fragment as
|
|
9071
|
+
import Box49 from "@mui/material/Box";
|
|
9072
|
+
import Typography27 from "@mui/material/Typography";
|
|
9073
|
+
import { Fragment as Fragment21, jsx as jsx117, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
8529
9074
|
function ListingTableCellIcon({
|
|
8530
9075
|
icon,
|
|
8531
9076
|
primary,
|
|
@@ -8534,8 +9079,8 @@ function ListingTableCellIcon({
|
|
|
8534
9079
|
iconSx,
|
|
8535
9080
|
sx
|
|
8536
9081
|
}) {
|
|
8537
|
-
const iconElement = /* @__PURE__ */
|
|
8538
|
-
|
|
9082
|
+
const iconElement = /* @__PURE__ */ jsx117(
|
|
9083
|
+
Box49,
|
|
8539
9084
|
{
|
|
8540
9085
|
sx: __spreadValues({
|
|
8541
9086
|
display: "flex",
|
|
@@ -8547,9 +9092,9 @@ function ListingTableCellIcon({
|
|
|
8547
9092
|
children: icon
|
|
8548
9093
|
}
|
|
8549
9094
|
);
|
|
8550
|
-
const textContent = /* @__PURE__ */
|
|
8551
|
-
/* @__PURE__ */
|
|
8552
|
-
|
|
9095
|
+
const textContent = /* @__PURE__ */ jsxs44(Box49, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
9096
|
+
/* @__PURE__ */ jsx117(
|
|
9097
|
+
Typography27,
|
|
8553
9098
|
{
|
|
8554
9099
|
variant: "body2",
|
|
8555
9100
|
component: "div",
|
|
@@ -8562,8 +9107,8 @@ function ListingTableCellIcon({
|
|
|
8562
9107
|
children: primary
|
|
8563
9108
|
}
|
|
8564
9109
|
),
|
|
8565
|
-
secondary && /* @__PURE__ */
|
|
8566
|
-
|
|
9110
|
+
secondary && /* @__PURE__ */ jsx117(
|
|
9111
|
+
Typography27,
|
|
8567
9112
|
{
|
|
8568
9113
|
variant: "caption",
|
|
8569
9114
|
component: "div",
|
|
@@ -8577,8 +9122,8 @@ function ListingTableCellIcon({
|
|
|
8577
9122
|
}
|
|
8578
9123
|
)
|
|
8579
9124
|
] });
|
|
8580
|
-
return /* @__PURE__ */
|
|
8581
|
-
|
|
9125
|
+
return /* @__PURE__ */ jsx117(
|
|
9126
|
+
Box49,
|
|
8582
9127
|
{
|
|
8583
9128
|
sx: __spreadValues({
|
|
8584
9129
|
display: "flex",
|
|
@@ -8586,10 +9131,10 @@ function ListingTableCellIcon({
|
|
|
8586
9131
|
gap: 1.5,
|
|
8587
9132
|
minWidth: 0
|
|
8588
9133
|
}, sx),
|
|
8589
|
-
children: iconPosition === "left" ? /* @__PURE__ */
|
|
9134
|
+
children: iconPosition === "left" ? /* @__PURE__ */ jsxs44(Fragment21, { children: [
|
|
8590
9135
|
iconElement,
|
|
8591
9136
|
textContent
|
|
8592
|
-
] }) : /* @__PURE__ */
|
|
9137
|
+
] }) : /* @__PURE__ */ jsxs44(Fragment21, { children: [
|
|
8593
9138
|
textContent,
|
|
8594
9139
|
iconElement
|
|
8595
9140
|
] })
|
|
@@ -8600,7 +9145,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
|
|
|
8600
9145
|
|
|
8601
9146
|
// src/components/ListingTable/ListingTableProvider.tsx
|
|
8602
9147
|
import { useMemo as useMemo9 } from "react";
|
|
8603
|
-
import { jsx as
|
|
9148
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
8604
9149
|
function ListingTableProvider({
|
|
8605
9150
|
children,
|
|
8606
9151
|
// Search
|
|
@@ -8703,11 +9248,11 @@ function ListingTableProvider({
|
|
|
8703
9248
|
loading
|
|
8704
9249
|
]
|
|
8705
9250
|
);
|
|
8706
|
-
return /* @__PURE__ */
|
|
9251
|
+
return /* @__PURE__ */ jsx118(ListingTableContext.Provider, { value: contextValue, children });
|
|
8707
9252
|
}
|
|
8708
9253
|
|
|
8709
9254
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
8710
|
-
import { jsx as
|
|
9255
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
8711
9256
|
var StyledTable = styled73(MuiTable, {
|
|
8712
9257
|
shouldForwardProp: (prop) => {
|
|
8713
9258
|
const excludedProps = ["variant", "density", "striped", "bordered"];
|
|
@@ -8761,7 +9306,7 @@ function ListingTable(_a) {
|
|
|
8761
9306
|
"children",
|
|
8762
9307
|
"sx"
|
|
8763
9308
|
]);
|
|
8764
|
-
return /* @__PURE__ */
|
|
9309
|
+
return /* @__PURE__ */ jsx119(
|
|
8765
9310
|
StyledTable,
|
|
8766
9311
|
__spreadProps(__spreadValues({
|
|
8767
9312
|
variant,
|
|
@@ -8796,7 +9341,7 @@ var ListingTable_default = ListingTableCompound;
|
|
|
8796
9341
|
// src/animations/ParticleBackground/ParticleBackground.tsx
|
|
8797
9342
|
import { useEffect as useEffect8, useRef as useRef6 } from "react";
|
|
8798
9343
|
import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
|
|
8799
|
-
import { jsx as
|
|
9344
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
8800
9345
|
var ParticleBackground = ({
|
|
8801
9346
|
opacity = 0.5,
|
|
8802
9347
|
baseDensity = 0.12,
|
|
@@ -9007,7 +9552,7 @@ var ParticleBackground = ({
|
|
|
9007
9552
|
cancelAnimationFrame(animationFrameId);
|
|
9008
9553
|
};
|
|
9009
9554
|
}, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
|
|
9010
|
-
return /* @__PURE__ */
|
|
9555
|
+
return /* @__PURE__ */ jsx120(
|
|
9011
9556
|
"canvas",
|
|
9012
9557
|
{
|
|
9013
9558
|
ref: canvasRef,
|
|
@@ -9036,44 +9581,44 @@ function useThemeContent(contentMap, fallback) {
|
|
|
9036
9581
|
var useThemeContent_default = useThemeContent;
|
|
9037
9582
|
|
|
9038
9583
|
// src/hooks/useNotifications/useNotifications.ts
|
|
9039
|
-
import * as
|
|
9584
|
+
import * as React48 from "react";
|
|
9040
9585
|
var generateId = () => {
|
|
9041
9586
|
return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
9042
9587
|
};
|
|
9043
9588
|
var useNotifications = (options = {}) => {
|
|
9044
9589
|
const { initialNotifications = [] } = options;
|
|
9045
|
-
const [notifications, setNotifications] =
|
|
9590
|
+
const [notifications, setNotifications] = React48.useState(
|
|
9046
9591
|
initialNotifications
|
|
9047
9592
|
);
|
|
9048
|
-
const markRead =
|
|
9593
|
+
const markRead = React48.useCallback((id) => {
|
|
9049
9594
|
setNotifications(
|
|
9050
9595
|
(prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
|
|
9051
9596
|
);
|
|
9052
9597
|
}, []);
|
|
9053
|
-
const dismiss =
|
|
9598
|
+
const dismiss = React48.useCallback((id) => {
|
|
9054
9599
|
setNotifications((prev) => prev.filter((n) => n.id !== id));
|
|
9055
9600
|
}, []);
|
|
9056
|
-
const markAllRead =
|
|
9601
|
+
const markAllRead = React48.useCallback(() => {
|
|
9057
9602
|
setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
|
|
9058
9603
|
}, []);
|
|
9059
|
-
const clearAll =
|
|
9604
|
+
const clearAll = React48.useCallback(() => {
|
|
9060
9605
|
setNotifications([]);
|
|
9061
9606
|
}, []);
|
|
9062
|
-
const add =
|
|
9607
|
+
const add = React48.useCallback((notification) => {
|
|
9063
9608
|
const newNotification = __spreadProps(__spreadValues({}, notification), {
|
|
9064
9609
|
id: generateId()
|
|
9065
9610
|
});
|
|
9066
9611
|
setNotifications((prev) => [newNotification, ...prev]);
|
|
9067
9612
|
}, []);
|
|
9068
|
-
const unreadCount =
|
|
9613
|
+
const unreadCount = React48.useMemo(
|
|
9069
9614
|
() => notifications.filter((n) => !n.read).length,
|
|
9070
9615
|
[notifications]
|
|
9071
9616
|
);
|
|
9072
|
-
const unreadNotifications =
|
|
9617
|
+
const unreadNotifications = React48.useMemo(
|
|
9073
9618
|
() => notifications.filter((n) => !n.read),
|
|
9074
9619
|
[notifications]
|
|
9075
9620
|
);
|
|
9076
|
-
const actions =
|
|
9621
|
+
const actions = React48.useMemo(
|
|
9077
9622
|
() => ({
|
|
9078
9623
|
markRead,
|
|
9079
9624
|
dismiss,
|
|
@@ -9143,12 +9688,14 @@ export {
|
|
|
9143
9688
|
ThemeSwitcher,
|
|
9144
9689
|
TimeRangeFilter_default as TimeRangeFilter,
|
|
9145
9690
|
TreeView,
|
|
9691
|
+
TrialBadge_default as TrialBadge,
|
|
9146
9692
|
UserMenu,
|
|
9147
9693
|
WSO2Theme_default as WSO2Theme,
|
|
9148
9694
|
colors,
|
|
9149
9695
|
default2 as createEmotionCache,
|
|
9150
9696
|
createOxygenTheme,
|
|
9151
9697
|
formatRelativeTime,
|
|
9698
|
+
getTrialBadgeStatus,
|
|
9152
9699
|
pxToRem,
|
|
9153
9700
|
useAppShell,
|
|
9154
9701
|
useListingTable,
|