@wso2/oxygen-ui 0.25.0 → 0.26.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/.ai/AGENTS.md +2 -7
- package/.ai/components.md +4 -4
- package/.ai/patterns.md +0 -4
- package/.ai/theming.md +0 -11
- package/.claude/components.md +48 -4
- package/.claude/patterns.md +0 -4
- package/.claude/theming.md +0 -8
- package/README.md +1 -1
- package/bin/cli.js +1 -1
- package/dist/animations/PageLoader/PageLoader.d.ts +92 -0
- package/dist/animations/PageLoader/PageLoaderIcon.d.ts +20 -0
- package/dist/animations/PageLoader/PageLoaderWordmark.d.ts +19 -0
- package/dist/animations/PageLoader/index.d.ts +4 -0
- package/dist/animations/index.d.ts +2 -0
- package/dist/index.js +367 -825
- package/dist/index.js.map +4 -4
- package/dist/styles/OxygenThemeBase.d.ts +16 -1
- package/dist/styles/Themes/index.d.ts +0 -3
- package/dist/utils/createOxygenTheme.d.ts +2 -2
- package/package.json +5 -3
- package/dist/styles/Themes/WSO2Theme.d.ts +0 -20
package/dist/index.js
CHANGED
|
@@ -217,6 +217,11 @@ var init_OxygenThemeBase = __esm({
|
|
|
217
217
|
main: OxygenUIPrimitives.secondaryColor,
|
|
218
218
|
contrastText: "#ffffff"
|
|
219
219
|
},
|
|
220
|
+
// Cobalt: 6.1:1 as text on white
|
|
221
|
+
blue: {
|
|
222
|
+
main: "#1F4FFF",
|
|
223
|
+
contrastText: "#ffffff"
|
|
224
|
+
},
|
|
220
225
|
background: {
|
|
221
226
|
default: "#fafafa",
|
|
222
227
|
paper: "#ffffff"
|
|
@@ -233,6 +238,11 @@ var init_OxygenThemeBase = __esm({
|
|
|
233
238
|
main: OxygenUIPrimitives.secondaryColor,
|
|
234
239
|
contrastText: "#ffffff"
|
|
235
240
|
},
|
|
241
|
+
// Azure: Cobalt is too dark to read on dark surfaces
|
|
242
|
+
blue: {
|
|
243
|
+
main: "#3D8BFF",
|
|
244
|
+
contrastText: "#0B1633"
|
|
245
|
+
},
|
|
236
246
|
background: {
|
|
237
247
|
default: "#121212",
|
|
238
248
|
paper: "#121212"
|
|
@@ -270,7 +280,7 @@ var init_OxygenThemeBase = __esm({
|
|
|
270
280
|
color: (theme.vars || theme).palette.primary.main
|
|
271
281
|
})
|
|
272
282
|
},
|
|
273
|
-
...["primary", "secondary", "success", "error", "info", "warning"].map((color) => ({
|
|
283
|
+
...["primary", "secondary", "success", "error", "info", "warning", "blue"].map((color) => ({
|
|
274
284
|
props: { variant: "light", color },
|
|
275
285
|
style: ({ theme }) => ({
|
|
276
286
|
backgroundColor: `color-mix(in srgb, ${(theme.vars || theme).palette[color].main} 12%, transparent)`,
|
|
@@ -640,8 +650,8 @@ var init_OxygenThemeBase = __esm({
|
|
|
640
650
|
// package.json
|
|
641
651
|
var package_default = {
|
|
642
652
|
name: "@wso2/oxygen-ui",
|
|
643
|
-
version: "0.
|
|
644
|
-
description: "
|
|
653
|
+
version: "0.26.0",
|
|
654
|
+
description: "Choreo Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
645
655
|
type: "module",
|
|
646
656
|
main: "./dist/index.js",
|
|
647
657
|
module: "./dist/index.js",
|
|
@@ -686,6 +696,8 @@ var package_default = {
|
|
|
686
696
|
},
|
|
687
697
|
keywords: [
|
|
688
698
|
"wso2",
|
|
699
|
+
"choreo",
|
|
700
|
+
"choreo-labs",
|
|
689
701
|
"oxygen-ui",
|
|
690
702
|
"design-system",
|
|
691
703
|
"material-ui",
|
|
@@ -1024,6 +1036,32 @@ var DefaultThemeConfig = {
|
|
|
1024
1036
|
// Unused by the theme; kept flat for apps that read theme.gradient.primary
|
|
1025
1037
|
primary: `linear-gradient(${BrandColors.signal}, ${BrandColors.signal})`
|
|
1026
1038
|
},
|
|
1039
|
+
// Code blocks use the theme's own colours: Flare/Burn orange for calls, the theme blue for keywords, the
|
|
1040
|
+
// success green for strings, the warning amber for numbers and muted text for comments. Every token keeps
|
|
1041
|
+
// WCAG AA 4.5:1 against its background (lowest: strings at 4.6:1 in light mode).
|
|
1042
|
+
syntax: {
|
|
1043
|
+
light: {
|
|
1044
|
+
background: BrandColors.paper,
|
|
1045
|
+
text: BrandColors.midnightInk,
|
|
1046
|
+
comment: BrandColors.slate,
|
|
1047
|
+
keyword: BrandColors.cobalt,
|
|
1048
|
+
string: StatusColors.light.success.dark,
|
|
1049
|
+
function: BrandColors.burn,
|
|
1050
|
+
number: StatusColors.light.warning.dark,
|
|
1051
|
+
operator: BrandColors.midnightInk
|
|
1052
|
+
},
|
|
1053
|
+
// A near-black well on the navy page.
|
|
1054
|
+
dark: {
|
|
1055
|
+
background: BrandColors.void,
|
|
1056
|
+
text: BrandColors.fog,
|
|
1057
|
+
comment: BrandColors.midnightText3,
|
|
1058
|
+
keyword: BrandColors.azure,
|
|
1059
|
+
string: StatusColors.dark.success.main,
|
|
1060
|
+
function: BrandColors.flare,
|
|
1061
|
+
number: StatusColors.dark.warning.main,
|
|
1062
|
+
operator: BrandColors.fog
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1027
1065
|
components: {
|
|
1028
1066
|
MuiAvatar: {
|
|
1029
1067
|
styleOverrides: {
|
|
@@ -1714,439 +1752,6 @@ var DefaultThemeConfig = {
|
|
|
1714
1752
|
var DefaultTheme = createOxygenTheme(DefaultThemeConfig, OxygenThemeBase_default);
|
|
1715
1753
|
var DefaultTheme_default = DefaultTheme;
|
|
1716
1754
|
|
|
1717
|
-
// src/styles/Themes/AcrylicBaseTheme.ts
|
|
1718
|
-
init_createOxygenTheme();
|
|
1719
|
-
var AcrylicBaseTheme = {
|
|
1720
|
-
colorSchemes: {
|
|
1721
|
-
light: {
|
|
1722
|
-
palette: {
|
|
1723
|
-
primary: {
|
|
1724
|
-
main: "#fa7b3f",
|
|
1725
|
-
contrastText: "#ffffff"
|
|
1726
|
-
},
|
|
1727
|
-
// Every token is set: this merges into a built theme, whose derived light, dark and
|
|
1728
|
-
// channel values for the base grey would otherwise stay. Dark text on the light grey,
|
|
1729
|
-
// as the secondary button uses (the base theme's white is 1.2:1). `dark` is the hover
|
|
1730
|
-
// and focus background, kept light enough for that text (6.5:1).
|
|
1731
|
-
secondary: {
|
|
1732
|
-
main: "#e8e8e8",
|
|
1733
|
-
light: "#ededed",
|
|
1734
|
-
dark: "#d0d0d0",
|
|
1735
|
-
contrastText: "#40404B",
|
|
1736
|
-
mainChannel: "232 232 232",
|
|
1737
|
-
lightChannel: "237 237 237",
|
|
1738
|
-
darkChannel: "208 208 208",
|
|
1739
|
-
contrastTextChannel: "64 64 75"
|
|
1740
|
-
},
|
|
1741
|
-
background: {
|
|
1742
|
-
default: "#f5f5f5",
|
|
1743
|
-
paper: "#ffffffc5",
|
|
1744
|
-
acrylic: "#ffffff40"
|
|
1745
|
-
// More transparent version for Paper and Card components
|
|
1746
|
-
},
|
|
1747
|
-
text: {
|
|
1748
|
-
primary: "#40404B",
|
|
1749
|
-
secondary: "#40404B"
|
|
1750
|
-
},
|
|
1751
|
-
divider: "#00000012"
|
|
1752
|
-
}
|
|
1753
|
-
},
|
|
1754
|
-
dark: {
|
|
1755
|
-
palette: {
|
|
1756
|
-
primary: {
|
|
1757
|
-
main: "#F87643",
|
|
1758
|
-
contrastText: "#ffffff"
|
|
1759
|
-
},
|
|
1760
|
-
secondary: {
|
|
1761
|
-
main: "#3c3c3c"
|
|
1762
|
-
},
|
|
1763
|
-
background: {
|
|
1764
|
-
default: "#000000",
|
|
1765
|
-
paper: "#000000c5",
|
|
1766
|
-
acrylic: "#00000040"
|
|
1767
|
-
// More transparent version for Paper and Card components
|
|
1768
|
-
},
|
|
1769
|
-
text: {
|
|
1770
|
-
primary: "#efefef",
|
|
1771
|
-
secondary: "#D0D3E2"
|
|
1772
|
-
},
|
|
1773
|
-
divider: "#ffffff16"
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
},
|
|
1777
|
-
shape: {
|
|
1778
|
-
borderRadius: 12
|
|
1779
|
-
},
|
|
1780
|
-
components: {
|
|
1781
|
-
MuiAvatar: {
|
|
1782
|
-
styleOverrides: {
|
|
1783
|
-
root: ({ theme }) => ({
|
|
1784
|
-
backgroundColor: theme.vars.palette.secondary.main,
|
|
1785
|
-
color: theme.vars.palette.text.primary
|
|
1786
|
-
})
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
MuiButton: {
|
|
1790
|
-
styleOverrides: {
|
|
1791
|
-
root: {
|
|
1792
|
-
borderRadius: 20,
|
|
1793
|
-
textTransform: "none",
|
|
1794
|
-
fontWeight: 400
|
|
1795
|
-
},
|
|
1796
|
-
containedPrimary: ({ theme }) => ({
|
|
1797
|
-
"&:not(:disabled)": {
|
|
1798
|
-
background: `${theme.gradient.primary} !important`,
|
|
1799
|
-
color: "#fff !important",
|
|
1800
|
-
"&:hover": {
|
|
1801
|
-
background: `${theme.gradient.primary} !important`,
|
|
1802
|
-
opacity: 0.9,
|
|
1803
|
-
color: "#fff !important"
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}),
|
|
1807
|
-
outlinedPrimary: ({ theme }) => ({
|
|
1808
|
-
borderColor: theme.palette.primary.main,
|
|
1809
|
-
color: theme.palette.primary.main,
|
|
1810
|
-
"&:hover": {
|
|
1811
|
-
borderColor: theme.palette.primary.dark,
|
|
1812
|
-
backgroundColor: theme.palette.action.hover
|
|
1813
|
-
}
|
|
1814
|
-
}),
|
|
1815
|
-
containedSecondary: ({ theme }) => ({
|
|
1816
|
-
backgroundColor: theme.vars.palette.secondary.main,
|
|
1817
|
-
color: theme.vars.palette.text.primary,
|
|
1818
|
-
"&:hover": {
|
|
1819
|
-
backgroundColor: theme.vars.palette.secondary.main,
|
|
1820
|
-
opacity: 0.8
|
|
1821
|
-
}
|
|
1822
|
-
}),
|
|
1823
|
-
outlinedSecondary: ({ theme }) => ({
|
|
1824
|
-
borderColor: theme.vars.palette.divider,
|
|
1825
|
-
color: theme.vars.palette.text.primary,
|
|
1826
|
-
"&:hover": {
|
|
1827
|
-
borderColor: theme.vars.palette.text.secondary,
|
|
1828
|
-
backgroundColor: theme.palette.action.hover
|
|
1829
|
-
}
|
|
1830
|
-
})
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
MuiFab: {
|
|
1834
|
-
styleOverrides: {
|
|
1835
|
-
primary: ({ theme }) => ({
|
|
1836
|
-
background: theme.gradient.primary,
|
|
1837
|
-
color: "#fff",
|
|
1838
|
-
"&:hover": {
|
|
1839
|
-
background: theme.gradient.primary,
|
|
1840
|
-
opacity: 0.9
|
|
1841
|
-
}
|
|
1842
|
-
})
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
MuiDialog: {
|
|
1846
|
-
styleOverrides: {
|
|
1847
|
-
paper: ({ theme }) => ({
|
|
1848
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
1849
|
-
backdropFilter: theme.blur.medium,
|
|
1850
|
-
background: theme.vars.palette.background.paper
|
|
1851
|
-
})
|
|
1852
|
-
}
|
|
1853
|
-
},
|
|
1854
|
-
MuiDrawer: {
|
|
1855
|
-
styleOverrides: {
|
|
1856
|
-
paper: ({ theme }) => ({
|
|
1857
|
-
background: theme.vars.palette.background.paper,
|
|
1858
|
-
borderRadius: 0
|
|
1859
|
-
})
|
|
1860
|
-
}
|
|
1861
|
-
},
|
|
1862
|
-
MuiSidebar: {
|
|
1863
|
-
styleOverrides: {
|
|
1864
|
-
root: ({ theme }) => ({
|
|
1865
|
-
backgroundColor: theme.vars.palette.background.acrylic,
|
|
1866
|
-
WebkitBackdropFilter: theme.blur.light,
|
|
1867
|
-
backdropFilter: theme.blur.light
|
|
1868
|
-
})
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
MuiAppBar: {
|
|
1872
|
-
styleOverrides: {
|
|
1873
|
-
root: ({ theme }) => ({
|
|
1874
|
-
backgroundColor: `${theme.vars.palette.background.acrylic} !important`,
|
|
1875
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
1876
|
-
backdropFilter: theme.blur.medium,
|
|
1877
|
-
borderRadius: 0
|
|
1878
|
-
})
|
|
1879
|
-
},
|
|
1880
|
-
defaultProps: {
|
|
1881
|
-
color: "transparent"
|
|
1882
|
-
}
|
|
1883
|
-
},
|
|
1884
|
-
MuiFormLabel: {
|
|
1885
|
-
styleOverrides: {
|
|
1886
|
-
root: ({ theme }) => ({
|
|
1887
|
-
fontSize: theme.typography.body2.fontSize,
|
|
1888
|
-
marginBottom: "2px"
|
|
1889
|
-
})
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
MuiPaper: {
|
|
1893
|
-
styleOverrides: {
|
|
1894
|
-
root: ({ theme }) => ({
|
|
1895
|
-
borderRadius: theme.shape.borderRadius,
|
|
1896
|
-
WebkitBackdropFilter: theme.blur.light,
|
|
1897
|
-
backdropFilter: theme.blur.light,
|
|
1898
|
-
border: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
|
|
1899
|
-
// More transparent for direct Paper component usage
|
|
1900
|
-
backgroundColor: theme.vars.palette.background.acrylic,
|
|
1901
|
-
boxShadow: theme.shadows[1]
|
|
1902
|
-
})
|
|
1903
|
-
}
|
|
1904
|
-
},
|
|
1905
|
-
MuiPopover: {
|
|
1906
|
-
styleOverrides: {
|
|
1907
|
-
paper: ({ theme }) => ({
|
|
1908
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
1909
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
1910
|
-
backdropFilter: theme.blur.medium,
|
|
1911
|
-
backgroundImage: "none"
|
|
1912
|
-
})
|
|
1913
|
-
}
|
|
1914
|
-
},
|
|
1915
|
-
MuiAutocomplete: {
|
|
1916
|
-
styleOverrides: {
|
|
1917
|
-
paper: ({ theme }) => ({
|
|
1918
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
1919
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
1920
|
-
backdropFilter: theme.blur.medium,
|
|
1921
|
-
backgroundImage: "none"
|
|
1922
|
-
})
|
|
1923
|
-
}
|
|
1924
|
-
},
|
|
1925
|
-
MuiCard: {
|
|
1926
|
-
styleOverrides: {
|
|
1927
|
-
root: ({ theme }) => ({
|
|
1928
|
-
// More transparent for Card component
|
|
1929
|
-
backgroundColor: theme.vars.palette.background.acrylic
|
|
1930
|
-
})
|
|
1931
|
-
}
|
|
1932
|
-
},
|
|
1933
|
-
MuiTextField: {
|
|
1934
|
-
defaultProps: { size: "small" }
|
|
1935
|
-
},
|
|
1936
|
-
MuiOutlinedInput: {
|
|
1937
|
-
styleOverrides: {
|
|
1938
|
-
root: ({ theme }) => ({
|
|
1939
|
-
fontSize: theme.typography.body2.fontSize,
|
|
1940
|
-
borderRadius: 8,
|
|
1941
|
-
backgroundColor: theme.vars.palette.background.acrylic
|
|
1942
|
-
}),
|
|
1943
|
-
notchedOutline: ({ theme }) => ({
|
|
1944
|
-
borderWidth: 1,
|
|
1945
|
-
borderColor: theme.vars.palette.divider
|
|
1946
|
-
})
|
|
1947
|
-
}
|
|
1948
|
-
},
|
|
1949
|
-
MuiMenuItem: {
|
|
1950
|
-
styleOverrides: {
|
|
1951
|
-
root: ({ theme }) => ({
|
|
1952
|
-
fontSize: theme.typography.body2.fontSize
|
|
1953
|
-
})
|
|
1954
|
-
}
|
|
1955
|
-
},
|
|
1956
|
-
MuiLink: {
|
|
1957
|
-
styleOverrides: {
|
|
1958
|
-
root: ({ theme }) => ({
|
|
1959
|
-
color: theme.palette.primary.main,
|
|
1960
|
-
textDecoration: "none",
|
|
1961
|
-
"&:hover": {
|
|
1962
|
-
color: theme.palette.primary.dark,
|
|
1963
|
-
textDecoration: "underline"
|
|
1964
|
-
}
|
|
1965
|
-
})
|
|
1966
|
-
}
|
|
1967
|
-
},
|
|
1968
|
-
MuiListItemButton: {
|
|
1969
|
-
styleOverrides: {
|
|
1970
|
-
root: ({ theme }) => ({
|
|
1971
|
-
borderRadius: 8,
|
|
1972
|
-
"&.Mui-selected": {
|
|
1973
|
-
// Use CSS variable - automatically adapts to color scheme
|
|
1974
|
-
backgroundColor: theme.palette.action.selected,
|
|
1975
|
-
"&:hover": {
|
|
1976
|
-
backgroundColor: theme.palette.action.hover
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
})
|
|
1980
|
-
}
|
|
1981
|
-
},
|
|
1982
|
-
MuiDataGrid: {
|
|
1983
|
-
styleOverrides: {
|
|
1984
|
-
root: ({ theme }) => ({
|
|
1985
|
-
border: "none",
|
|
1986
|
-
backgroundColor: "transparent",
|
|
1987
|
-
overflow: "hidden",
|
|
1988
|
-
"& .MuiDataGrid-columnHeaders": {
|
|
1989
|
-
backgroundColor: theme.vars.palette.action.hover,
|
|
1990
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
1991
|
-
backdropFilter: theme.blur.medium,
|
|
1992
|
-
borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
|
|
1993
|
-
position: "sticky",
|
|
1994
|
-
top: 0,
|
|
1995
|
-
zIndex: 10
|
|
1996
|
-
},
|
|
1997
|
-
"& .MuiDataGrid-virtualScroller": {
|
|
1998
|
-
marginTop: "0 !important",
|
|
1999
|
-
overflow: "auto"
|
|
2000
|
-
}
|
|
2001
|
-
}),
|
|
2002
|
-
columnHeaders: ({ theme }) => ({
|
|
2003
|
-
backgroundColor: theme.vars.palette.action.hover,
|
|
2004
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
2005
|
-
backdropFilter: theme.blur.medium,
|
|
2006
|
-
borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`
|
|
2007
|
-
}),
|
|
2008
|
-
columnHeader: {
|
|
2009
|
-
backgroundColor: "transparent"
|
|
2010
|
-
},
|
|
2011
|
-
cell: ({ theme }) => ({
|
|
2012
|
-
borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
|
|
2013
|
-
backgroundColor: "transparent"
|
|
2014
|
-
})
|
|
2015
|
-
}
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
};
|
|
2019
|
-
var AcrylicBaseTheme_default = createOxygenTheme(AcrylicBaseTheme);
|
|
2020
|
-
|
|
2021
|
-
// src/styles/Themes/AcrylicOrangeTheme.ts
|
|
2022
|
-
init_createOxygenTheme();
|
|
2023
|
-
var AcrylicOrangeTheme = {
|
|
2024
|
-
components: {
|
|
2025
|
-
MuiCssBaseline: {
|
|
2026
|
-
styleOverrides: {
|
|
2027
|
-
"html[data-color-scheme='dark'] body": {
|
|
2028
|
-
backgroundAttachment: "fixed",
|
|
2029
|
-
backgroundImage: `
|
|
2030
|
-
radial-gradient(circle at 65% 30%, rgb(255 116 0 / 13%) 10%, rgba(0, 0, 0, 0) 60% 40%),
|
|
2031
|
-
radial-gradient(circle at 15% 50%, rgb(132 40 0 / 18%) 1%, rgba(0, 0, 0, 0) 40% 70%),
|
|
2032
|
-
radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
|
|
2033
|
-
`,
|
|
2034
|
-
backgroundBlendMode: "screen"
|
|
2035
|
-
},
|
|
2036
|
-
"html[data-color-scheme='light'] body": {
|
|
2037
|
-
backgroundAttachment: "fixed",
|
|
2038
|
-
backgroundImage: `
|
|
2039
|
-
radial-gradient(circle at 65% 30%, rgba(255, 116, 0, 0.1) 10%, rgba(255, 255, 255, 0) 40% 40%),
|
|
2040
|
-
radial-gradient(circle at 15% 50%, rgba(74, 41, 165, 0.1) 1%, rgba(255, 255, 255, 0) 40% 70%),
|
|
2041
|
-
radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
|
|
2042
|
-
`,
|
|
2043
|
-
backgroundBlendMode: "normal"
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
var AcrylicOrangeTheme_default = createOxygenTheme(AcrylicOrangeTheme, AcrylicBaseTheme_default);
|
|
2050
|
-
|
|
2051
|
-
// src/styles/Themes/AcrylicPurpleTheme.ts
|
|
2052
|
-
init_createOxygenTheme();
|
|
2053
|
-
var AcrylicPurpleThemeConfig = {
|
|
2054
|
-
colorSchemes: {
|
|
2055
|
-
light: {
|
|
2056
|
-
palette: {
|
|
2057
|
-
primary: {
|
|
2058
|
-
main: "#646cff",
|
|
2059
|
-
mainChannel: "100 108 255",
|
|
2060
|
-
light: "#8187ff",
|
|
2061
|
-
dark: "#4651cc",
|
|
2062
|
-
contrastText: "#ffffff"
|
|
2063
|
-
},
|
|
2064
|
-
action: {
|
|
2065
|
-
selected: "rgba(100, 108, 255, 0.16)",
|
|
2066
|
-
selectedOpacity: 0.16
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
},
|
|
2070
|
-
dark: {
|
|
2071
|
-
palette: {
|
|
2072
|
-
primary: {
|
|
2073
|
-
main: "#646cff",
|
|
2074
|
-
mainChannel: "100 108 255",
|
|
2075
|
-
light: "#8187ff",
|
|
2076
|
-
dark: "#4651cc",
|
|
2077
|
-
contrastText: "#ffffff"
|
|
2078
|
-
},
|
|
2079
|
-
action: {
|
|
2080
|
-
selected: "rgba(100, 108, 255, 0.24)",
|
|
2081
|
-
selectedOpacity: 0.24
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
},
|
|
2086
|
-
components: {
|
|
2087
|
-
MuiButton: {
|
|
2088
|
-
styleOverrides: {
|
|
2089
|
-
containedPrimary: () => ({
|
|
2090
|
-
"&:not(:disabled)": {
|
|
2091
|
-
background: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%) !important",
|
|
2092
|
-
color: "#fff !important",
|
|
2093
|
-
"&:hover": {
|
|
2094
|
-
background: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%) !important",
|
|
2095
|
-
opacity: 0.9,
|
|
2096
|
-
color: "#fff !important"
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
})
|
|
2100
|
-
}
|
|
2101
|
-
},
|
|
2102
|
-
MuiTableRow: {
|
|
2103
|
-
styleOverrides: {
|
|
2104
|
-
root: {
|
|
2105
|
-
"&.Mui-selected": {
|
|
2106
|
-
backgroundColor: "rgba(100, 108, 255, 0.16)",
|
|
2107
|
-
"&:hover": {
|
|
2108
|
-
backgroundColor: "rgba(100, 108, 255, 0.24)"
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
MuiCssBaseline: {
|
|
2115
|
-
styleOverrides: {
|
|
2116
|
-
"html[data-color-scheme='dark'] body": {
|
|
2117
|
-
backgroundAttachment: "fixed",
|
|
2118
|
-
backgroundImage: `
|
|
2119
|
-
radial-gradient(circle at 65% 30%, rgb(85 103 213 / 20%) 10%, rgba(0, 0, 0, 0) 60% 40%),
|
|
2120
|
-
radial-gradient(circle at 15% 50%, rgb(113 85 213 / 25%) 1%, rgba(0, 0, 0, 0) 40% 70%),
|
|
2121
|
-
radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
|
|
2122
|
-
`,
|
|
2123
|
-
backgroundBlendMode: "screen"
|
|
2124
|
-
},
|
|
2125
|
-
"html[data-color-scheme='light'] body": {
|
|
2126
|
-
backgroundAttachment: "fixed",
|
|
2127
|
-
backgroundImage: `
|
|
2128
|
-
radial-gradient(circle at 65% 30%, rgba(100, 108, 255, 0.12) 10%, rgba(255, 255, 255, 0) 40% 40%),
|
|
2129
|
-
radial-gradient(circle at 15% 50%, rgba(113, 85, 213, 0.15) 1%, rgba(255, 255, 255, 0) 40% 70%),
|
|
2130
|
-
radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
|
|
2131
|
-
`,
|
|
2132
|
-
backgroundBlendMode: "normal"
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
};
|
|
2138
|
-
var acrylicPurpleGradient = {
|
|
2139
|
-
gradient: {
|
|
2140
|
-
primary: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%)"
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
|
-
var AcrylicPurpleTheme = createOxygenTheme(AcrylicPurpleThemeConfig, AcrylicBaseTheme_default);
|
|
2144
|
-
Object.assign(AcrylicPurpleTheme, acrylicPurpleGradient);
|
|
2145
|
-
if (AcrylicPurpleTheme.vars) {
|
|
2146
|
-
Object.assign(AcrylicPurpleTheme.vars, acrylicPurpleGradient);
|
|
2147
|
-
}
|
|
2148
|
-
var AcrylicPurpleTheme_default = AcrylicPurpleTheme;
|
|
2149
|
-
|
|
2150
1755
|
// src/styles/Themes/ClassicTheme.ts
|
|
2151
1756
|
init_OxygenThemeBase();
|
|
2152
1757
|
init_createOxygenTheme();
|
|
@@ -2838,382 +2443,6 @@ var PaleIndigoThemeConfig = {
|
|
|
2838
2443
|
};
|
|
2839
2444
|
var PaleIndigo_default = createOxygenTheme(PaleIndigoThemeConfig, PaleBaseTheme_default);
|
|
2840
2445
|
|
|
2841
|
-
// src/styles/Themes/WSO2Theme.ts
|
|
2842
|
-
init_OxygenThemeBase();
|
|
2843
|
-
init_createOxygenTheme();
|
|
2844
|
-
var neutral = {
|
|
2845
|
-
50: "#F7F7F7",
|
|
2846
|
-
100: "#EBEBEB",
|
|
2847
|
-
200: "#D9D9D9",
|
|
2848
|
-
300: "#C2C2C2",
|
|
2849
|
-
400: "#A9A9A9",
|
|
2850
|
-
600: "#767676",
|
|
2851
|
-
700: "#5C5C5C",
|
|
2852
|
-
800: "#444444",
|
|
2853
|
-
900: "#2E2E2E",
|
|
2854
|
-
950: "#161616"
|
|
2855
|
-
};
|
|
2856
|
-
var blue = {
|
|
2857
|
-
50: "#DFF7FF",
|
|
2858
|
-
100: "#C5EAFF",
|
|
2859
|
-
200: "#A6D5FF",
|
|
2860
|
-
300: "#86BBFF",
|
|
2861
|
-
400: "#699FFF",
|
|
2862
|
-
500: "#325FEB",
|
|
2863
|
-
800: "#1432A4",
|
|
2864
|
-
900: "#091E7A",
|
|
2865
|
-
950: "#02074B"
|
|
2866
|
-
};
|
|
2867
|
-
var orange = {
|
|
2868
|
-
50: "#FFE6D6",
|
|
2869
|
-
100: "#FFD0B8",
|
|
2870
|
-
200: "#FFB292",
|
|
2871
|
-
300: "#FF906B",
|
|
2872
|
-
400: "#FF6E47",
|
|
2873
|
-
500: "#F14E23",
|
|
2874
|
-
600: "#D32F00",
|
|
2875
|
-
700: "#AF0700",
|
|
2876
|
-
800: "#890000",
|
|
2877
|
-
900: "#640000",
|
|
2878
|
-
950: "#3B0000"
|
|
2879
|
-
};
|
|
2880
|
-
var navy = {
|
|
2881
|
-
canvas: "#0B142B",
|
|
2882
|
-
// Page, header and sidebar
|
|
2883
|
-
raised: "#12203E",
|
|
2884
|
-
// Cards, menus, list rows and selected items
|
|
2885
|
-
textPrimary: "#E4ECFA",
|
|
2886
|
-
textSecondary: "rgba(228, 236, 250, 0.80)",
|
|
2887
|
-
accentLight: "#B9D8FF",
|
|
2888
|
-
accent: "#6FA8F5",
|
|
2889
|
-
accentDark: "#164C93"
|
|
2890
|
-
};
|
|
2891
|
-
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%)`;
|
|
2892
|
-
var lightWash = (alpha4) => `linear-gradient(rgba(255, 255, 255, ${alpha4}), rgba(255, 255, 255, ${alpha4})), ${lightMesh}`;
|
|
2893
|
-
var semantic = {
|
|
2894
|
-
error: "#E60000",
|
|
2895
|
-
warning: "#FFB400",
|
|
2896
|
-
success: "#00C853",
|
|
2897
|
-
// Darker shades for text on light surfaces; the base colors fall below 4.5:1 on white
|
|
2898
|
-
warningText: "#8A5A00",
|
|
2899
|
-
successText: "#007A33"
|
|
2900
|
-
};
|
|
2901
|
-
var grey = {
|
|
2902
|
-
50: neutral[50],
|
|
2903
|
-
100: neutral[100],
|
|
2904
|
-
200: neutral[200],
|
|
2905
|
-
300: neutral[300],
|
|
2906
|
-
400: neutral[400],
|
|
2907
|
-
600: neutral[600],
|
|
2908
|
-
700: neutral[700],
|
|
2909
|
-
800: neutral[800],
|
|
2910
|
-
900: neutral[900]
|
|
2911
|
-
};
|
|
2912
|
-
var WSO2ThemeConfig = {
|
|
2913
|
-
colorSchemes: {
|
|
2914
|
-
light: {
|
|
2915
|
-
palette: {
|
|
2916
|
-
primary: {
|
|
2917
|
-
light: orange[500],
|
|
2918
|
-
main: orange[600],
|
|
2919
|
-
// WSO2 Orange
|
|
2920
|
-
dark: orange[700],
|
|
2921
|
-
contrastText: "#FFFFFF"
|
|
2922
|
-
},
|
|
2923
|
-
secondary: {
|
|
2924
|
-
light: blue[500],
|
|
2925
|
-
main: blue[800],
|
|
2926
|
-
// WSO2 Blue
|
|
2927
|
-
dark: blue[900],
|
|
2928
|
-
contrastText: "#FFFFFF"
|
|
2929
|
-
},
|
|
2930
|
-
success: {
|
|
2931
|
-
main: semantic.success,
|
|
2932
|
-
dark: semantic.successText,
|
|
2933
|
-
contrastText: neutral[950]
|
|
2934
|
-
},
|
|
2935
|
-
warning: {
|
|
2936
|
-
main: semantic.warning,
|
|
2937
|
-
dark: semantic.warningText,
|
|
2938
|
-
contrastText: neutral[950]
|
|
2939
|
-
},
|
|
2940
|
-
error: {
|
|
2941
|
-
main: semantic.error,
|
|
2942
|
-
contrastText: "#FFFFFF"
|
|
2943
|
-
},
|
|
2944
|
-
info: {
|
|
2945
|
-
light: blue[500],
|
|
2946
|
-
main: blue[800],
|
|
2947
|
-
dark: blue[900],
|
|
2948
|
-
contrastText: "#FFFFFF"
|
|
2949
|
-
},
|
|
2950
|
-
grey,
|
|
2951
|
-
background: {
|
|
2952
|
-
default: "#FFFFFF",
|
|
2953
|
-
paper: "#FFFFFF",
|
|
2954
|
-
acrylic: "#FFFFFF"
|
|
2955
|
-
},
|
|
2956
|
-
text: {
|
|
2957
|
-
primary: blue[950],
|
|
2958
|
-
secondary: neutral[800]
|
|
2959
|
-
},
|
|
2960
|
-
divider: `${blue[950]}1f`,
|
|
2961
|
-
action: {
|
|
2962
|
-
selected: "#FFFFFF"
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
},
|
|
2966
|
-
dark: {
|
|
2967
|
-
palette: {
|
|
2968
|
-
primary: {
|
|
2969
|
-
light: orange[500],
|
|
2970
|
-
main: orange[600],
|
|
2971
|
-
// WSO2 Orange, deepened so white text reads on navy
|
|
2972
|
-
dark: orange[700],
|
|
2973
|
-
contrastText: "#FFFFFF"
|
|
2974
|
-
},
|
|
2975
|
-
secondary: {
|
|
2976
|
-
light: navy.accentLight,
|
|
2977
|
-
main: navy.accent,
|
|
2978
|
-
// WSO2 Blue, lifted for contrast on navy
|
|
2979
|
-
dark: navy.accentDark,
|
|
2980
|
-
contrastText: neutral[950]
|
|
2981
|
-
},
|
|
2982
|
-
success: {
|
|
2983
|
-
main: semantic.success,
|
|
2984
|
-
contrastText: neutral[950]
|
|
2985
|
-
},
|
|
2986
|
-
warning: {
|
|
2987
|
-
main: semantic.warning,
|
|
2988
|
-
contrastText: neutral[950]
|
|
2989
|
-
},
|
|
2990
|
-
error: {
|
|
2991
|
-
main: semantic.error,
|
|
2992
|
-
contrastText: "#FFFFFF"
|
|
2993
|
-
},
|
|
2994
|
-
info: {
|
|
2995
|
-
light: navy.accentLight,
|
|
2996
|
-
main: navy.accent,
|
|
2997
|
-
dark: navy.accentDark,
|
|
2998
|
-
contrastText: neutral[950]
|
|
2999
|
-
},
|
|
3000
|
-
grey,
|
|
3001
|
-
background: {
|
|
3002
|
-
default: navy.canvas,
|
|
3003
|
-
// Navy night
|
|
3004
|
-
paper: navy.raised,
|
|
3005
|
-
acrylic: navy.raised
|
|
3006
|
-
},
|
|
3007
|
-
text: {
|
|
3008
|
-
primary: navy.textPrimary,
|
|
3009
|
-
secondary: navy.textSecondary
|
|
3010
|
-
},
|
|
3011
|
-
divider: "rgba(255, 255, 255, 0.14)",
|
|
3012
|
-
action: {
|
|
3013
|
-
selected: navy.raised
|
|
3014
|
-
}
|
|
3015
|
-
}
|
|
3016
|
-
}
|
|
3017
|
-
},
|
|
3018
|
-
shape: {
|
|
3019
|
-
borderRadius: 20
|
|
3020
|
-
// WSO2 button border radius
|
|
3021
|
-
},
|
|
3022
|
-
blur: {
|
|
3023
|
-
none: "none",
|
|
3024
|
-
light: "blur(10px)",
|
|
3025
|
-
medium: "blur(16px)",
|
|
3026
|
-
heavy: "blur(24px)"
|
|
3027
|
-
},
|
|
3028
|
-
gradient: {
|
|
3029
|
-
// Signal: accent bars and 4px rules only
|
|
3030
|
-
primary: `linear-gradient(120deg, ${blue[500]} 0%, ${blue[300]} 50%, ${orange[500]} 100%)`
|
|
3031
|
-
},
|
|
3032
|
-
syntax: {
|
|
3033
|
-
light: {
|
|
3034
|
-
background: "#f5f5f5"
|
|
3035
|
-
},
|
|
3036
|
-
dark: {
|
|
3037
|
-
background: "#0c0c0c"
|
|
3038
|
-
}
|
|
3039
|
-
},
|
|
3040
|
-
components: {
|
|
3041
|
-
MuiCssBaseline: {
|
|
3042
|
-
styleOverrides: {
|
|
3043
|
-
// Night: a single flat navy so the shell reads as one surface
|
|
3044
|
-
"html[data-color-scheme='dark'] body": {
|
|
3045
|
-
backgroundColor: navy.canvas,
|
|
3046
|
-
backgroundImage: "none"
|
|
3047
|
-
},
|
|
3048
|
-
// Light: the washed mesh shows through the page behind the content
|
|
3049
|
-
"html[data-color-scheme='light'] body": {
|
|
3050
|
-
backgroundAttachment: "fixed",
|
|
3051
|
-
backgroundColor: "#FFFFFF",
|
|
3052
|
-
backgroundImage: lightWash(0.9)
|
|
3053
|
-
}
|
|
3054
|
-
}
|
|
3055
|
-
},
|
|
3056
|
-
// The header sits on the page color: it shows the washed mesh in light mode and the page navy in dark mode
|
|
3057
|
-
MuiHeader: {
|
|
3058
|
-
styleOverrides: {
|
|
3059
|
-
root: ({ theme }) => __spreadValues({
|
|
3060
|
-
backgroundColor: "transparent"
|
|
3061
|
-
}, theme.applyStyles("dark", {
|
|
3062
|
-
backgroundColor: theme.vars.palette.background.default
|
|
3063
|
-
}))
|
|
3064
|
-
}
|
|
3065
|
-
},
|
|
3066
|
-
// The sidebar shows a little more of the mesh than the page in light mode and the page navy in dark mode
|
|
3067
|
-
MuiSidebar: {
|
|
3068
|
-
styleOverrides: {
|
|
3069
|
-
root: ({ theme }) => __spreadValues({
|
|
3070
|
-
backgroundAttachment: "fixed",
|
|
3071
|
-
backgroundImage: lightWash(0.86)
|
|
3072
|
-
}, theme.applyStyles("dark", {
|
|
3073
|
-
backgroundColor: theme.vars.palette.background.default,
|
|
3074
|
-
backgroundImage: "none"
|
|
3075
|
-
}))
|
|
3076
|
-
}
|
|
3077
|
-
},
|
|
3078
|
-
MuiFormLabel: {
|
|
3079
|
-
styleOverrides: {
|
|
3080
|
-
// error.main (#E60000) is 3.56:1 on the washed light page and 3.35:1 on navy, so the
|
|
3081
|
-
// marker uses brand reds that pass: orange 700 in light (5.45:1), orange 400 in dark (5.82:1).
|
|
3082
|
-
// `&.Mui-error` overrides MUI's error rule; the disabled rule mutes the marker with its label.
|
|
3083
|
-
asterisk: ({ theme }) => __spreadProps(__spreadValues({
|
|
3084
|
-
"&, &.Mui-error": {
|
|
3085
|
-
color: orange[700]
|
|
3086
|
-
}
|
|
3087
|
-
}, theme.applyStyles("dark", {
|
|
3088
|
-
"&, &.Mui-error": {
|
|
3089
|
-
color: orange[400]
|
|
3090
|
-
}
|
|
3091
|
-
})), {
|
|
3092
|
-
".Mui-disabled > &": {
|
|
3093
|
-
color: theme.vars.palette.text.disabled
|
|
3094
|
-
}
|
|
3095
|
-
})
|
|
3096
|
-
}
|
|
3097
|
-
},
|
|
3098
|
-
MuiPaper: {
|
|
3099
|
-
styleOverrides: {
|
|
3100
|
-
root: ({ theme }) => ({
|
|
3101
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
3102
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
3103
|
-
backdropFilter: theme.blur.medium,
|
|
3104
|
-
backgroundImage: "none"
|
|
3105
|
-
})
|
|
3106
|
-
}
|
|
3107
|
-
},
|
|
3108
|
-
MuiButton: {
|
|
3109
|
-
styleOverrides: {
|
|
3110
|
-
root: {
|
|
3111
|
-
transition: "color 0.3s ease-in-out",
|
|
3112
|
-
// Show labels as written (sentence case) instead of MUI's default all caps
|
|
3113
|
-
textTransform: "none"
|
|
3114
|
-
},
|
|
3115
|
-
// Light mode Orange 500 needs dark text; darker hover and dark mode oranges need white text
|
|
3116
|
-
containedPrimary: ({ theme }) => ({
|
|
3117
|
-
color: theme.vars.palette.primary.contrastText,
|
|
3118
|
-
"&:hover": {
|
|
3119
|
-
color: "#FFFFFF"
|
|
3120
|
-
}
|
|
3121
|
-
}),
|
|
3122
|
-
outlined: ({ theme }) => ({
|
|
3123
|
-
color: theme.palette.primary.main,
|
|
3124
|
-
"&:hover": {
|
|
3125
|
-
color: theme.palette.primary.main
|
|
3126
|
-
},
|
|
3127
|
-
// Light mode labels use the darker shade so they meet 4.5:1 on white surfaces
|
|
3128
|
-
"&.MuiButton-colorSuccess": __spreadValues({
|
|
3129
|
-
color: theme.vars.palette.success.dark,
|
|
3130
|
-
borderColor: theme.vars.palette.success.main,
|
|
3131
|
-
"&:hover": {
|
|
3132
|
-
color: theme.vars.palette.success.dark,
|
|
3133
|
-
borderColor: theme.vars.palette.success.main
|
|
3134
|
-
}
|
|
3135
|
-
}, theme.applyStyles("dark", {
|
|
3136
|
-
color: theme.vars.palette.success.main,
|
|
3137
|
-
"&:hover": {
|
|
3138
|
-
color: theme.vars.palette.success.main
|
|
3139
|
-
}
|
|
3140
|
-
})),
|
|
3141
|
-
// Light mode labels use the darker shade so they meet 4.5:1 on white surfaces
|
|
3142
|
-
"&.MuiButton-colorWarning": __spreadValues({
|
|
3143
|
-
color: theme.vars.palette.warning.dark,
|
|
3144
|
-
borderColor: theme.vars.palette.warning.main,
|
|
3145
|
-
"&:hover": {
|
|
3146
|
-
color: theme.vars.palette.warning.dark,
|
|
3147
|
-
borderColor: theme.vars.palette.warning.main
|
|
3148
|
-
}
|
|
3149
|
-
}, theme.applyStyles("dark", {
|
|
3150
|
-
color: theme.vars.palette.warning.main,
|
|
3151
|
-
"&:hover": {
|
|
3152
|
-
color: theme.vars.palette.warning.main
|
|
3153
|
-
}
|
|
3154
|
-
})),
|
|
3155
|
-
"&.MuiButton-colorError": {
|
|
3156
|
-
color: theme.palette.error.main,
|
|
3157
|
-
borderColor: theme.palette.error.main,
|
|
3158
|
-
"&:hover": {
|
|
3159
|
-
color: theme.palette.error.main,
|
|
3160
|
-
borderColor: theme.palette.error.main
|
|
3161
|
-
}
|
|
3162
|
-
},
|
|
3163
|
-
"&.MuiButton-colorInfo": {
|
|
3164
|
-
color: theme.palette.info.main,
|
|
3165
|
-
borderColor: theme.palette.info.main,
|
|
3166
|
-
"&:hover": {
|
|
3167
|
-
color: theme.palette.info.main,
|
|
3168
|
-
borderColor: theme.palette.info.main
|
|
3169
|
-
}
|
|
3170
|
-
}
|
|
3171
|
-
}),
|
|
3172
|
-
text: ({ theme }) => ({
|
|
3173
|
-
color: theme.vars.palette.text.primary,
|
|
3174
|
-
"&:hover": {
|
|
3175
|
-
color: theme.vars.palette.text.primary
|
|
3176
|
-
}
|
|
3177
|
-
})
|
|
3178
|
-
}
|
|
3179
|
-
},
|
|
3180
|
-
MuiLink: {
|
|
3181
|
-
styleOverrides: {
|
|
3182
|
-
root: ({ theme }) => ({
|
|
3183
|
-
color: theme.palette.primary.main
|
|
3184
|
-
})
|
|
3185
|
-
}
|
|
3186
|
-
},
|
|
3187
|
-
MuiTextField: {
|
|
3188
|
-
defaultProps: {
|
|
3189
|
-
size: "small"
|
|
3190
|
-
}
|
|
3191
|
-
},
|
|
3192
|
-
MuiSelect: {
|
|
3193
|
-
defaultProps: {
|
|
3194
|
-
size: "small"
|
|
3195
|
-
}
|
|
3196
|
-
},
|
|
3197
|
-
MuiAutocomplete: {
|
|
3198
|
-
defaultProps: {
|
|
3199
|
-
size: "small"
|
|
3200
|
-
}
|
|
3201
|
-
},
|
|
3202
|
-
MuiPopover: {
|
|
3203
|
-
styleOverrides: {
|
|
3204
|
-
paper: ({ theme }) => ({
|
|
3205
|
-
backgroundColor: theme.vars.palette.background.paper,
|
|
3206
|
-
WebkitBackdropFilter: theme.blur.medium,
|
|
3207
|
-
backdropFilter: theme.blur.medium,
|
|
3208
|
-
backgroundImage: "none"
|
|
3209
|
-
})
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
};
|
|
3214
|
-
var WSO2Theme = createOxygenTheme(WSO2ThemeConfig, OxygenThemeBase_default);
|
|
3215
|
-
var WSO2Theme_default = WSO2Theme;
|
|
3216
|
-
|
|
3217
2446
|
// src/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.tsx
|
|
3218
2447
|
import { ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
|
|
3219
2448
|
import { CssBaseline } from "@mui/material";
|
|
@@ -15489,6 +14718,320 @@ var ParticleBackground = ({
|
|
|
15489
14718
|
);
|
|
15490
14719
|
};
|
|
15491
14720
|
|
|
14721
|
+
// src/animations/PageLoader/PageLoader.tsx
|
|
14722
|
+
import * as React80 from "react";
|
|
14723
|
+
import { Box as Box63, Typography as Typography33, useMediaQuery as useMediaQuery4 } from "@mui/material";
|
|
14724
|
+
|
|
14725
|
+
// src/animations/PageLoader/PageLoaderIcon.tsx
|
|
14726
|
+
import * as React79 from "react";
|
|
14727
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
14728
|
+
var POSES = [
|
|
14729
|
+
[742.48, 38.71, 223.72, 38.71, 1],
|
|
14730
|
+
[994.89, 214.11, 205.12, 81.09, 1],
|
|
14731
|
+
[1121.72, 446.86, 213.06, 96.05, 1],
|
|
14732
|
+
[1180, 700, 150, 8, 0],
|
|
14733
|
+
[1121.72, 954.99, 213.06, 96.05, 1],
|
|
14734
|
+
[994.89, 1187.74, 205.12, 81.09, 1],
|
|
14735
|
+
[742.48, 1363.14, 223.72, 38.71, 1],
|
|
14736
|
+
[287.14, 933.67, 173.98, 81.09, 1],
|
|
14737
|
+
[213.06, 700.92, 213.06, 96.05, 1],
|
|
14738
|
+
[287.14, 468.17, 173.98, 81.09, 1]
|
|
14739
|
+
];
|
|
14740
|
+
var PAGE_LOADER_ICON_CYCLE = 4.6;
|
|
14741
|
+
var PAGE_LOADER_ICON_STEP = PAGE_LOADER_ICON_CYCLE / POSES.length;
|
|
14742
|
+
var PAGE_LOADER_ICON_MOVE = 0.3;
|
|
14743
|
+
var STEP_FRACTION = 1 / POSES.length;
|
|
14744
|
+
var MOVE_FRACTION = PAGE_LOADER_ICON_MOVE / PAGE_LOADER_ICON_CYCLE;
|
|
14745
|
+
var MOVE_SPLINE = ".25 .9 .3 1";
|
|
14746
|
+
var HOLD_SPLINE = "0 0 1 1";
|
|
14747
|
+
var SHRINK_SPLINE = ".45 0 .55 1";
|
|
14748
|
+
var LONG_LEG_SPLINES = {
|
|
14749
|
+
6: { cy: ".7 0 .4 1" },
|
|
14750
|
+
9: { cx: ".4 .5 .3 1" }
|
|
14751
|
+
};
|
|
14752
|
+
var LONG_LEG_SHRINK = 0.5;
|
|
14753
|
+
var LONG_LEG_SHRINK_AT = 0.3;
|
|
14754
|
+
var ATTRIBUTES = ["cx", "cy", "rx", "ry", "opacity"];
|
|
14755
|
+
var round = (value) => Number(value.toFixed(5));
|
|
14756
|
+
var trackFor = (start, attribute) => {
|
|
14757
|
+
const index = ATTRIBUTES.indexOf(attribute);
|
|
14758
|
+
const keyTimes = [0];
|
|
14759
|
+
const keySplines = [];
|
|
14760
|
+
const values = [POSES[start][index]];
|
|
14761
|
+
for (let step = 0; step < POSES.length; step += 1) {
|
|
14762
|
+
const leg = (start + step) % POSES.length;
|
|
14763
|
+
const from = POSES[leg][index];
|
|
14764
|
+
const to = POSES[(leg + 1) % POSES.length][index];
|
|
14765
|
+
const stepStart = step * STEP_FRACTION;
|
|
14766
|
+
const longLeg = LONG_LEG_SPLINES[leg];
|
|
14767
|
+
if (longLeg && (attribute === "rx" || attribute === "ry")) {
|
|
14768
|
+
keyTimes.push(round(stepStart + MOVE_FRACTION * LONG_LEG_SHRINK_AT));
|
|
14769
|
+
values.push(round(Math.min(from, to) * LONG_LEG_SHRINK));
|
|
14770
|
+
keySplines.push(SHRINK_SPLINE, SHRINK_SPLINE);
|
|
14771
|
+
} else {
|
|
14772
|
+
const spline = longLeg && (attribute === "cx" || attribute === "cy") ? longLeg[attribute] : void 0;
|
|
14773
|
+
keySplines.push(spline != null ? spline : MOVE_SPLINE);
|
|
14774
|
+
}
|
|
14775
|
+
keyTimes.push(round(stepStart + MOVE_FRACTION), round(stepStart + STEP_FRACTION));
|
|
14776
|
+
values.push(to, to);
|
|
14777
|
+
keySplines.push(HOLD_SPLINE);
|
|
14778
|
+
}
|
|
14779
|
+
return { keyTimes: keyTimes.join(";"), keySplines: keySplines.join(";"), values: values.join(";") };
|
|
14780
|
+
};
|
|
14781
|
+
var PageLoaderIcon = React79.forwardRef(
|
|
14782
|
+
(_a, ref) => {
|
|
14783
|
+
var _b = _a, { size = 48 } = _b, rest = __objRest(_b, ["size"]);
|
|
14784
|
+
return /* @__PURE__ */ jsx152(
|
|
14785
|
+
"svg",
|
|
14786
|
+
__spreadProps(__spreadValues({
|
|
14787
|
+
ref,
|
|
14788
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14789
|
+
viewBox: "-20 0 1375 1402",
|
|
14790
|
+
height: size,
|
|
14791
|
+
width: size * 1375 / 1402,
|
|
14792
|
+
"aria-hidden": "true",
|
|
14793
|
+
focusable: "false"
|
|
14794
|
+
}, rest), {
|
|
14795
|
+
children: /* @__PURE__ */ jsx152("g", { fill: "currentColor", children: POSES.map(([cx, cy, rx, ry, opacity], index) => /* @__PURE__ */ jsx152("ellipse", { cx, cy, rx, ry, opacity, children: ATTRIBUTES.map((attributeName) => /* @__PURE__ */ jsx152(
|
|
14796
|
+
"animate",
|
|
14797
|
+
__spreadValues({
|
|
14798
|
+
attributeName,
|
|
14799
|
+
dur: `${PAGE_LOADER_ICON_CYCLE}s`,
|
|
14800
|
+
repeatCount: "indefinite",
|
|
14801
|
+
calcMode: "spline"
|
|
14802
|
+
}, trackFor(index, attributeName)),
|
|
14803
|
+
attributeName
|
|
14804
|
+
)) }, index)) })
|
|
14805
|
+
})
|
|
14806
|
+
);
|
|
14807
|
+
}
|
|
14808
|
+
);
|
|
14809
|
+
PageLoaderIcon.displayName = "PageLoaderIcon";
|
|
14810
|
+
var PageLoaderIcon_default = PageLoaderIcon;
|
|
14811
|
+
|
|
14812
|
+
// src/animations/PageLoader/PageLoaderWordmark.tsx
|
|
14813
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
14814
|
+
var WIDTH = 700.7890625;
|
|
14815
|
+
var HEIGHT = 200;
|
|
14816
|
+
var PAGE_LOADER_WORDMARK_GAP = (48 - 2.9) / HEIGHT;
|
|
14817
|
+
var PATH = "M60.8 153.1L60.8 153.1Q49.6 153.1 39.7 148.6Q29.9 144.1 22.4 136.2Q14.9 128.3 10.6 117.9Q6.3 107.5 6.3 95.7L6.3 95.7Q6.3 83.8 10.6 73.5Q14.9 63.1 22.4 55.2Q29.9 47.3 39.7 42.8Q49.6 38.3 60.8 38.3L60.8 38.3Q72.1 38.3 82 42.8Q91.9 47.3 99.4 55.2Q106.9 63.1 111.1 73.5Q115.3 83.8 115.3 95.7L115.3 95.7Q115.3 107.5 111.1 117.9Q106.9 128.3 99.4 136.2Q91.9 144.1 82 148.6Q72.1 153.1 60.8 153.1ZM60.8 139.8L60.8 139.8Q69.4 139.8 76.9 136.3Q84.4 132.8 90 126.7Q95.7 120.6 98.9 112.6Q102.1 104.7 102.1 95.7L102.1 95.7Q102.1 86.7 98.8 78.7Q95.6 70.7 89.9 64.6Q84.3 58.6 76.8 55.1Q69.4 51.6 60.8 51.6L60.8 51.6Q52.2 51.6 44.8 55.1Q37.3 58.6 31.6 64.7Q26 70.8 22.8 78.8Q19.6 86.7 19.6 95.7L19.6 95.7Q19.6 104.8 22.8 112.8Q26.1 120.7 31.7 126.8Q37.4 132.9 44.8 136.3Q52.3 139.8 60.8 139.8ZM141.2 151L124.8 151L153.7 111.3L125 71.8L141.3 71.8L161.9 100L182.5 71.8L198.8 71.8L170.1 111.3L199 151L182.6 151L161.9 122.6L141.2 151ZM239.7 132.8L262 72L276 72L232.8 190.5L218.8 190.5L233.1 151L204.7 72L219.2 72L239.7 132.8ZM345.9 85.1L345.9 72L359.1 72L359.1 153.5Q359.1 161.3 355.8 168.1Q352.4 174.9 346.7 179.9Q341 184.9 333.8 187.7Q326.5 190.5 318.6 190.5L318.6 190.5Q310.4 190.5 302.7 186.8Q295.1 183.2 289.3 177Q283.6 170.9 281.1 163.3L281.1 163.3L293.2 157.8Q294.7 163.2 298.7 167.6Q302.6 172 307.8 174.6Q313.1 177.1 318.6 177.1L318.6 177.1Q323.8 177.1 328.7 175.3Q333.5 173.5 337.4 170.3Q341.4 167.1 343.6 162.8Q345.9 158.5 345.9 153.5L345.9 153.5L345.9 137.8Q341.8 144.6 335.2 148.8Q328.6 153.1 319.9 153.1L319.9 153.1Q311.5 153.1 304.2 149.8Q296.8 146.6 291.3 140.8Q285.7 135.1 282.6 127.6Q279.4 120.1 279.4 111.5L279.4 111.5Q279.4 102.9 282.6 95.3Q285.7 87.8 291.3 82.1Q296.8 76.3 304.2 73.1Q311.5 69.9 319.9 69.9L319.9 69.9Q328.6 69.9 335.2 74.1Q341.8 78.2 345.9 85.1L345.9 85.1ZM320 140.2L320 140.2Q327.6 140.2 333.3 136.2Q338.9 132.3 342 125.7Q345.1 119.2 345.1 111.5L345.1 111.5Q345.1 103.6 342 97.1Q338.8 90.6 333.2 86.7Q327.5 82.7 320 82.7L320 82.7Q312.5 82.7 306.4 86.6Q300.2 90.5 296.6 97Q293 103.5 293 111.5L293 111.5Q293 119.5 296.7 126Q300.4 132.5 306.5 136.3Q312.6 140.2 320 140.2ZM408.7 153.1L408.7 153.1Q397.8 153.1 388.8 147.4Q379.8 141.8 374.5 132.4Q369.2 123 369.2 111.5L369.2 111.5Q369.2 102.8 372.2 95.3Q375.3 87.7 380.7 82Q386.2 76.3 393.3 73Q400.5 69.8 408.7 69.8L408.7 69.8Q417.6 69.8 425.1 73.4Q432.5 77 437.9 83.4Q443.2 89.8 445.8 98.2Q448.5 106.7 447.8 116.3L447.8 116.3L383.3 116.3Q384.3 123 387.7 128.3Q391.2 133.5 396.6 136.6Q402 139.7 408.7 139.8L408.7 139.8Q415.8 139.8 421.5 136.1Q427.3 132.4 430.9 126L430.9 126L444.4 129.2Q439.6 139.7 430.1 146.4Q420.5 153.1 408.7 153.1ZM382.9 105.9L382.9 105.9L434.4 105.9Q433.8 99.3 430.2 93.8Q426.5 88.3 420.9 85Q415.3 81.6 408.7 81.6L408.7 81.6Q402 81.6 396.5 84.9Q391 88.1 387.4 93.6Q383.8 99.1 382.9 105.9ZM527.9 101.9L527.9 101.9L527.9 151L514.6 151L514.6 104.8Q514.6 98.8 511.7 93.9Q508.8 89 503.9 86.1Q499 83.2 493 83.2L493 83.2Q487 83.2 482.1 86.1Q477.2 89 474.2 93.9Q471.3 98.8 471.3 104.8L471.3 104.8L471.3 151L458 151L458 72L471.3 72L471.3 81.9Q475.5 76.3 481.9 73.1Q488.3 69.8 495.8 69.8L495.8 69.8Q504.7 69.8 512 74.1Q519.3 78.4 523.6 85.7Q527.9 92.9 527.9 101.9ZM618.6 153.1L618.6 153.1Q605.3 153.1 595.5 146.6Q585.8 140.1 580.5 129.2Q575.3 118.2 575.3 104.9L575.3 104.9L575.3 40.4L588.5 40.4L588.5 104.9Q588.5 114.3 592.1 122.3Q595.6 130.3 602.3 135Q608.9 139.8 618.6 139.8L618.6 139.8Q628.4 139.8 635 135Q641.6 130.2 645.1 122.3Q648.5 114.3 648.5 104.9L648.5 104.9L648.5 40.4L661.8 40.4L661.8 104.9Q661.8 114.9 658.8 123.6Q655.8 132.4 650.1 139Q644.5 145.6 636.5 149.3Q628.5 153.1 618.6 153.1ZM692.2 151L678.9 151L678.9 40.4L692.2 40.4L692.2 151Z";
|
|
14818
|
+
var PageLoaderWordmark = (_a) => {
|
|
14819
|
+
var _b = _a, { size = 48 } = _b, rest = __objRest(_b, ["size"]);
|
|
14820
|
+
return /* @__PURE__ */ jsx153(
|
|
14821
|
+
"svg",
|
|
14822
|
+
__spreadProps(__spreadValues({
|
|
14823
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14824
|
+
viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
|
|
14825
|
+
height: size,
|
|
14826
|
+
width: size * WIDTH / HEIGHT,
|
|
14827
|
+
role: "img",
|
|
14828
|
+
"aria-label": "Oxygen UI"
|
|
14829
|
+
}, rest), {
|
|
14830
|
+
children: /* @__PURE__ */ jsx153("path", { fill: "currentColor", d: PATH })
|
|
14831
|
+
})
|
|
14832
|
+
);
|
|
14833
|
+
};
|
|
14834
|
+
var PageLoaderWordmark_default = PageLoaderWordmark;
|
|
14835
|
+
|
|
14836
|
+
// src/animations/PageLoader/PageLoader.tsx
|
|
14837
|
+
import { Fragment as Fragment32, jsx as jsx154, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
14838
|
+
var EASING = "cubic-bezier(.25, .9, .3, 1)";
|
|
14839
|
+
var PageLoader = React80.forwardRef(
|
|
14840
|
+
(_a, ref) => {
|
|
14841
|
+
var _b = _a, {
|
|
14842
|
+
loading,
|
|
14843
|
+
title,
|
|
14844
|
+
icon,
|
|
14845
|
+
size = 48,
|
|
14846
|
+
onComplete,
|
|
14847
|
+
onPhaseChange,
|
|
14848
|
+
revealDuration = 700,
|
|
14849
|
+
holdDuration = 600,
|
|
14850
|
+
exitDuration = 400,
|
|
14851
|
+
fullScreen = true,
|
|
14852
|
+
loadingLabel = "Loading",
|
|
14853
|
+
children,
|
|
14854
|
+
sx
|
|
14855
|
+
} = _b, rest = __objRest(_b, [
|
|
14856
|
+
"loading",
|
|
14857
|
+
"title",
|
|
14858
|
+
"icon",
|
|
14859
|
+
"size",
|
|
14860
|
+
"onComplete",
|
|
14861
|
+
"onPhaseChange",
|
|
14862
|
+
"revealDuration",
|
|
14863
|
+
"holdDuration",
|
|
14864
|
+
"exitDuration",
|
|
14865
|
+
"fullScreen",
|
|
14866
|
+
"loadingLabel",
|
|
14867
|
+
"children",
|
|
14868
|
+
"sx"
|
|
14869
|
+
]);
|
|
14870
|
+
const reducedMotion = useMediaQuery4("(prefers-reduced-motion: reduce)", { noSsr: true });
|
|
14871
|
+
const [phase, setPhase] = React80.useState(loading ? "loading" : "settling");
|
|
14872
|
+
const iconRef = React80.useRef(null);
|
|
14873
|
+
const onCompleteRef = React80.useRef(onComplete);
|
|
14874
|
+
const onPhaseChangeRef = React80.useRef(onPhaseChange);
|
|
14875
|
+
onCompleteRef.current = onComplete;
|
|
14876
|
+
onPhaseChangeRef.current = onPhaseChange;
|
|
14877
|
+
const reveal = reducedMotion ? 0 : revealDuration;
|
|
14878
|
+
const exit = reducedMotion ? 0 : exitDuration;
|
|
14879
|
+
React80.useEffect(() => {
|
|
14880
|
+
var _a2;
|
|
14881
|
+
(_a2 = onPhaseChangeRef.current) == null ? void 0 : _a2.call(onPhaseChangeRef, phase);
|
|
14882
|
+
}, [phase]);
|
|
14883
|
+
React80.useEffect(() => {
|
|
14884
|
+
if (loading && phase === "settling") setPhase("loading");
|
|
14885
|
+
else if (!loading && phase === "loading") setPhase("settling");
|
|
14886
|
+
}, [loading, phase]);
|
|
14887
|
+
React80.useEffect(() => {
|
|
14888
|
+
var _a2, _b2, _c, _d;
|
|
14889
|
+
if (reducedMotion) (_b2 = (_a2 = iconRef.current) == null ? void 0 : _a2.pauseAnimations) == null ? void 0 : _b2.call(_a2);
|
|
14890
|
+
else if (phase === "loading") (_d = (_c = iconRef.current) == null ? void 0 : _c.unpauseAnimations) == null ? void 0 : _d.call(_c);
|
|
14891
|
+
}, [reducedMotion, phase]);
|
|
14892
|
+
React80.useEffect(() => {
|
|
14893
|
+
let timer;
|
|
14894
|
+
const after = (ms, next) => {
|
|
14895
|
+
timer = setTimeout(next, ms);
|
|
14896
|
+
};
|
|
14897
|
+
switch (phase) {
|
|
14898
|
+
case "settling": {
|
|
14899
|
+
const svg = iconRef.current;
|
|
14900
|
+
let wait = 0;
|
|
14901
|
+
if (!icon && typeof (svg == null ? void 0 : svg.getCurrentTime) === "function" && !svg.animationsPaused()) {
|
|
14902
|
+
const intoStep = svg.getCurrentTime() % PAGE_LOADER_ICON_STEP;
|
|
14903
|
+
if (intoStep < PAGE_LOADER_ICON_MOVE) {
|
|
14904
|
+
wait = (PAGE_LOADER_ICON_MOVE - intoStep) * 1e3 + 20;
|
|
14905
|
+
}
|
|
14906
|
+
}
|
|
14907
|
+
after(wait, () => {
|
|
14908
|
+
var _a2, _b2;
|
|
14909
|
+
(_b2 = (_a2 = iconRef.current) == null ? void 0 : _a2.pauseAnimations) == null ? void 0 : _b2.call(_a2);
|
|
14910
|
+
setPhase("revealing");
|
|
14911
|
+
});
|
|
14912
|
+
break;
|
|
14913
|
+
}
|
|
14914
|
+
case "revealing":
|
|
14915
|
+
after(reveal, () => setPhase("revealed"));
|
|
14916
|
+
break;
|
|
14917
|
+
case "revealed":
|
|
14918
|
+
after(holdDuration, () => {
|
|
14919
|
+
var _a2;
|
|
14920
|
+
(_a2 = onCompleteRef.current) == null ? void 0 : _a2.call(onCompleteRef);
|
|
14921
|
+
setPhase("exiting");
|
|
14922
|
+
});
|
|
14923
|
+
break;
|
|
14924
|
+
case "exiting":
|
|
14925
|
+
after(exit, () => setPhase("done"));
|
|
14926
|
+
break;
|
|
14927
|
+
default:
|
|
14928
|
+
break;
|
|
14929
|
+
}
|
|
14930
|
+
return () => clearTimeout(timer);
|
|
14931
|
+
}, [phase, reveal, holdDuration, exit]);
|
|
14932
|
+
const isLoading = phase === "loading" || phase === "settling";
|
|
14933
|
+
const titleShown = phase === "revealing" || phase === "revealed" || phase === "exiting";
|
|
14934
|
+
const showChildren = phase === "exiting" || phase === "done";
|
|
14935
|
+
return /* @__PURE__ */ jsxs62(Fragment32, { children: [
|
|
14936
|
+
showChildren && children,
|
|
14937
|
+
phase !== "done" && /* @__PURE__ */ jsxs62(
|
|
14938
|
+
Box63,
|
|
14939
|
+
__spreadProps(__spreadValues({
|
|
14940
|
+
ref,
|
|
14941
|
+
role: "status",
|
|
14942
|
+
"aria-live": "polite",
|
|
14943
|
+
"aria-busy": isLoading,
|
|
14944
|
+
"data-phase": phase
|
|
14945
|
+
}, rest), {
|
|
14946
|
+
sx: [
|
|
14947
|
+
(theme) => ({
|
|
14948
|
+
position: fullScreen ? "fixed" : "absolute",
|
|
14949
|
+
inset: 0,
|
|
14950
|
+
zIndex: fullScreen ? theme.zIndex.modal + 1 : 1,
|
|
14951
|
+
display: "flex",
|
|
14952
|
+
alignItems: "center",
|
|
14953
|
+
justifyContent: "center",
|
|
14954
|
+
bgcolor: "background.default",
|
|
14955
|
+
color: "text.primary",
|
|
14956
|
+
opacity: phase === "exiting" ? 0 : 1,
|
|
14957
|
+
transition: `opacity ${exit}ms ease`,
|
|
14958
|
+
pointerEvents: phase === "exiting" ? "none" : void 0
|
|
14959
|
+
}),
|
|
14960
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
14961
|
+
],
|
|
14962
|
+
children: [
|
|
14963
|
+
/* @__PURE__ */ jsx154(
|
|
14964
|
+
Box63,
|
|
14965
|
+
{
|
|
14966
|
+
component: "span",
|
|
14967
|
+
sx: {
|
|
14968
|
+
position: "absolute",
|
|
14969
|
+
width: 1,
|
|
14970
|
+
height: 1,
|
|
14971
|
+
overflow: "hidden",
|
|
14972
|
+
clip: "rect(0 0 0 0)",
|
|
14973
|
+
whiteSpace: "nowrap"
|
|
14974
|
+
},
|
|
14975
|
+
children: isLoading ? loadingLabel : null
|
|
14976
|
+
}
|
|
14977
|
+
),
|
|
14978
|
+
/* @__PURE__ */ jsxs62(Box63, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
14979
|
+
/* @__PURE__ */ jsx154(Box63, { sx: { display: "flex", flexShrink: 0, lineHeight: 0 }, children: icon != null ? icon : /* @__PURE__ */ jsx154(PageLoaderIcon_default, { ref: iconRef, size }) }),
|
|
14980
|
+
/* @__PURE__ */ jsx154(
|
|
14981
|
+
Box63,
|
|
14982
|
+
{
|
|
14983
|
+
"aria-hidden": !titleShown,
|
|
14984
|
+
sx: {
|
|
14985
|
+
display: "grid",
|
|
14986
|
+
gridTemplateColumns: titleShown ? "1fr" : "0fr",
|
|
14987
|
+
transition: `grid-template-columns ${reveal}ms ${EASING}`
|
|
14988
|
+
},
|
|
14989
|
+
children: /* @__PURE__ */ jsx154(Box63, { sx: { minWidth: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsxs62(
|
|
14990
|
+
Box63,
|
|
14991
|
+
{
|
|
14992
|
+
sx: {
|
|
14993
|
+
display: "flex",
|
|
14994
|
+
alignItems: "center",
|
|
14995
|
+
pl: `${size * PAGE_LOADER_WORDMARK_GAP}px`,
|
|
14996
|
+
lineHeight: 0,
|
|
14997
|
+
opacity: titleShown ? 1 : 0,
|
|
14998
|
+
transform: titleShown ? "none" : `translateX(-${size * 0.25}px)`,
|
|
14999
|
+
transition: `opacity ${reveal}ms ease ${reveal * 0.15}ms, transform ${reveal}ms ${EASING}`
|
|
15000
|
+
},
|
|
15001
|
+
children: [
|
|
15002
|
+
title === void 0 && /* @__PURE__ */ jsx154(PageLoaderWordmark_default, { size }),
|
|
15003
|
+
typeof title === "string" || typeof title === "number" ? (
|
|
15004
|
+
// Sized and tracked like the wordmark in the Oxygen UI logo.
|
|
15005
|
+
/* @__PURE__ */ jsx154(
|
|
15006
|
+
Typography33,
|
|
15007
|
+
{
|
|
15008
|
+
component: "span",
|
|
15009
|
+
sx: {
|
|
15010
|
+
fontSize: size * 0.79,
|
|
15011
|
+
fontWeight: 500,
|
|
15012
|
+
lineHeight: 1,
|
|
15013
|
+
letterSpacing: "-0.02em",
|
|
15014
|
+
whiteSpace: "nowrap"
|
|
15015
|
+
},
|
|
15016
|
+
children: title
|
|
15017
|
+
}
|
|
15018
|
+
)
|
|
15019
|
+
) : title
|
|
15020
|
+
]
|
|
15021
|
+
}
|
|
15022
|
+
) })
|
|
15023
|
+
}
|
|
15024
|
+
)
|
|
15025
|
+
] })
|
|
15026
|
+
]
|
|
15027
|
+
})
|
|
15028
|
+
)
|
|
15029
|
+
] });
|
|
15030
|
+
}
|
|
15031
|
+
);
|
|
15032
|
+
PageLoader.displayName = "PageLoader";
|
|
15033
|
+
var PageLoader_default = PageLoader;
|
|
15034
|
+
|
|
15492
15035
|
// src/hooks/useThemeContent/useThemeContent.ts
|
|
15493
15036
|
function useThemeContent(contentMap, fallback) {
|
|
15494
15037
|
var _a, _b;
|
|
@@ -15498,44 +15041,44 @@ function useThemeContent(contentMap, fallback) {
|
|
|
15498
15041
|
var useThemeContent_default = useThemeContent;
|
|
15499
15042
|
|
|
15500
15043
|
// src/hooks/useNotifications/useNotifications.ts
|
|
15501
|
-
import * as
|
|
15044
|
+
import * as React81 from "react";
|
|
15502
15045
|
var generateId = () => {
|
|
15503
15046
|
return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
15504
15047
|
};
|
|
15505
15048
|
var useNotifications = (options = {}) => {
|
|
15506
15049
|
const { initialNotifications = [] } = options;
|
|
15507
|
-
const [notifications, setNotifications] =
|
|
15050
|
+
const [notifications, setNotifications] = React81.useState(
|
|
15508
15051
|
initialNotifications
|
|
15509
15052
|
);
|
|
15510
|
-
const markRead =
|
|
15053
|
+
const markRead = React81.useCallback((id) => {
|
|
15511
15054
|
setNotifications(
|
|
15512
15055
|
(prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
|
|
15513
15056
|
);
|
|
15514
15057
|
}, []);
|
|
15515
|
-
const dismiss =
|
|
15058
|
+
const dismiss = React81.useCallback((id) => {
|
|
15516
15059
|
setNotifications((prev) => prev.filter((n) => n.id !== id));
|
|
15517
15060
|
}, []);
|
|
15518
|
-
const markAllRead =
|
|
15061
|
+
const markAllRead = React81.useCallback(() => {
|
|
15519
15062
|
setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
|
|
15520
15063
|
}, []);
|
|
15521
|
-
const clearAll =
|
|
15064
|
+
const clearAll = React81.useCallback(() => {
|
|
15522
15065
|
setNotifications([]);
|
|
15523
15066
|
}, []);
|
|
15524
|
-
const add =
|
|
15067
|
+
const add = React81.useCallback((notification) => {
|
|
15525
15068
|
const newNotification = __spreadProps(__spreadValues({}, notification), {
|
|
15526
15069
|
id: generateId()
|
|
15527
15070
|
});
|
|
15528
15071
|
setNotifications((prev) => [newNotification, ...prev]);
|
|
15529
15072
|
}, []);
|
|
15530
|
-
const unreadCount =
|
|
15073
|
+
const unreadCount = React81.useMemo(
|
|
15531
15074
|
() => notifications.filter((n) => !n.read).length,
|
|
15532
15075
|
[notifications]
|
|
15533
15076
|
);
|
|
15534
|
-
const unreadNotifications =
|
|
15077
|
+
const unreadNotifications = React81.useMemo(
|
|
15535
15078
|
() => notifications.filter((n) => !n.read),
|
|
15536
15079
|
[notifications]
|
|
15537
15080
|
);
|
|
15538
|
-
const actions =
|
|
15081
|
+
const actions = React81.useMemo(
|
|
15539
15082
|
() => ({
|
|
15540
15083
|
markRead,
|
|
15541
15084
|
dismiss,
|
|
@@ -15563,8 +15106,6 @@ import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDa
|
|
|
15563
15106
|
import * as TreeView from "@mui/x-tree-view";
|
|
15564
15107
|
var version = package_default.version;
|
|
15565
15108
|
export {
|
|
15566
|
-
AcrylicOrangeTheme_default as AcrylicOrangeTheme,
|
|
15567
|
-
AcrylicPurpleTheme_default as AcrylicPurpleTheme,
|
|
15568
15109
|
AdapterDateFns2 as AdapterDateFns,
|
|
15569
15110
|
AppBreadcrumbs,
|
|
15570
15111
|
AppShell,
|
|
@@ -15598,6 +15139,8 @@ export {
|
|
|
15598
15139
|
DefaultTheme_default as OxygenTheme,
|
|
15599
15140
|
OxygenUIThemeProvider,
|
|
15600
15141
|
PageContent_default as PageContent,
|
|
15142
|
+
PageLoader_default as PageLoader,
|
|
15143
|
+
PageLoaderIcon_default as PageLoaderIcon,
|
|
15601
15144
|
PageTitle_default as PageTitle,
|
|
15602
15145
|
PaleBaseTheme_default as PaleBaseTheme,
|
|
15603
15146
|
PaleGray_default as PaleGrayTheme,
|
|
@@ -15616,7 +15159,6 @@ export {
|
|
|
15616
15159
|
TreeView,
|
|
15617
15160
|
TrialBadge_default as TrialBadge,
|
|
15618
15161
|
UserMenu,
|
|
15619
|
-
WSO2Theme_default as WSO2Theme,
|
|
15620
15162
|
clearHeaderBreadcrumbsState,
|
|
15621
15163
|
colors,
|
|
15622
15164
|
default2 as createEmotionCache,
|