@wso2/oxygen-ui 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ColorSchemeSVG/ColorSchemeSVG.d.ts +98 -0
- package/dist/components/ColorSchemeSVG/index.d.ts +2 -0
- package/dist/components/SearchBar/SearchBarBase.d.ts +7 -0
- package/dist/components/SearchBar/index.d.ts +4 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +9 -3
- package/dist/index.js +1210 -729
- package/dist/index.js.map +4 -4
- package/dist/styles/{Themes/OxygenThemeBase.d.ts → OxygenThemeBase.d.ts} +3 -2
- package/dist/styles/Themes/AcrylicBaseTheme.d.ts +2 -2
- package/dist/styles/Themes/AcrylicOrangeTheme.d.ts +2 -17
- package/dist/styles/Themes/AcrylicPurpleTheme.d.ts +2 -3
- package/dist/styles/Themes/ChoreoTheme.d.ts +2 -2
- package/dist/styles/Themes/ClassicTheme.d.ts +3 -4
- package/dist/styles/Themes/HighContrastTheme.d.ts +2 -2
- package/dist/styles/Themes/PaleBaseTheme.d.ts +3 -3
- package/dist/styles/Themes/PaleGray.d.ts +1 -2
- package/dist/styles/Themes/PaleIndigo.d.ts +1 -2
- package/dist/styles/Themes/WSO2Theme.d.ts +20 -0
- package/dist/styles/Themes/index.d.ts +2 -1
- package/dist/styles/index.d.ts +2 -1
- package/dist/utils/createOxygenTheme.d.ts +56 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -64,7 +64,8 @@ declare module '@mui/material/styles' {
|
|
|
64
64
|
interface ThemeVars extends CustomThemeProperties {
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
export interface OxygenTheme extends Theme
|
|
67
|
+
export interface OxygenTheme extends Theme {
|
|
68
|
+
vars: NonNullable<Theme['vars']>;
|
|
68
69
|
}
|
|
69
70
|
declare const _default: OxygenTheme;
|
|
70
71
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import type { OxygenTheme } from '../OxygenThemeBase';
|
|
19
19
|
declare module '@mui/material/styles' {
|
|
20
20
|
interface TypeBackground {
|
|
21
21
|
acrylic?: string;
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* AcrylicOrange Theme - Oxygen Theme with Radial Background Design
|
|
4
|
-
* This theme extends the base AcrylicBaseTheme and adds radial gradient backgrounds
|
|
5
|
-
* that respond to light/dark color schemes.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* ```tsx
|
|
9
|
-
* import { OxygenUIThemeProvider, AcrylicOrangeTheme } from '@wso2/oxygen-ui';
|
|
10
|
-
*
|
|
11
|
-
* <OxygenUIThemeProvider theme={AcrylicOrangeTheme}>
|
|
12
|
-
* <App />
|
|
13
|
-
* </OxygenUIThemeProvider>
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
declare const AcrylicOrangeTheme: OxygenTheme;
|
|
17
|
-
export default AcrylicOrangeTheme;
|
|
1
|
+
declare const _default: import("..").OxygenThemeType;
|
|
2
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,6 +15,5 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
declare const AcrylicPurpleTheme: OxygenTheme;
|
|
18
|
+
declare const AcrylicPurpleTheme: import("..").OxygenThemeType;
|
|
20
19
|
export default AcrylicPurpleTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import type { OxygenTheme } from '
|
|
18
|
+
import type { OxygenTheme } from '../OxygenThemeBase';
|
|
19
19
|
declare const ChoreoTheme: OxygenTheme;
|
|
20
20
|
export default ChoreoTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { type OxygenTheme } from './OxygenThemeBase';
|
|
19
18
|
/**
|
|
20
19
|
* Classic Theme - MUI default theme with custom orange primary color
|
|
21
20
|
* Features: Orange primary (#ff7300), all other MUI defaults preserved
|
|
22
21
|
*/
|
|
23
|
-
declare const
|
|
24
|
-
export default
|
|
22
|
+
declare const _default: import("..").OxygenThemeType;
|
|
23
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import type { OxygenTheme } from '../OxygenThemeBase';
|
|
19
19
|
declare const HighContrastTheme: OxygenTheme;
|
|
20
20
|
export default HighContrastTheme;
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import type { OxygenTheme } from '../OxygenThemeBase';
|
|
19
19
|
declare module '@mui/material/styles' {
|
|
20
20
|
interface TypeBackground {
|
|
21
21
|
acrylic?: string;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
declare const
|
|
25
|
-
export default
|
|
24
|
+
declare const PaleBaseTheme: OxygenTheme;
|
|
25
|
+
export default PaleBaseTheme;
|
|
@@ -15,6 +15,5 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
declare const _default: OxygenTheme;
|
|
18
|
+
declare const _default: import("..").OxygenThemeType;
|
|
20
19
|
export default _default;
|
|
@@ -15,6 +15,5 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
declare const _default: OxygenTheme;
|
|
18
|
+
declare const _default: import("..").OxygenThemeType;
|
|
20
19
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import type { OxygenTheme } from '../OxygenThemeBase';
|
|
19
|
+
declare const WSO2Theme: OxygenTheme;
|
|
20
|
+
export default WSO2Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -24,3 +24,4 @@ export { default as HighContrastTheme } from './HighContrastTheme';
|
|
|
24
24
|
export { default as PaleBaseTheme } from './PaleBaseTheme';
|
|
25
25
|
export { default as PaleGrayTheme } from './PaleGray';
|
|
26
26
|
export { default as PaleIndigoTheme } from './PaleIndigo';
|
|
27
|
+
export { default as WSO2Theme } from './WSO2Theme';
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
2
|
+
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
3
|
*
|
|
4
4
|
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
5
|
* Version 2.0 (the "License"); you may not use this file except
|
|
@@ -15,4 +15,5 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
+
export type { OxygenTheme as OxygenThemeType } from './OxygenThemeBase';
|
|
18
19
|
export * from './Themes';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { type Theme, type ThemeOptions } from '@mui/material/styles';
|
|
19
|
+
import { type OxygenTheme } from '../styles/OxygenThemeBase';
|
|
20
|
+
/**
|
|
21
|
+
* Creates an Oxygen UI theme by extending a base theme with custom configuration.
|
|
22
|
+
*
|
|
23
|
+
* This utility function simplifies theme creation by handling the theme extension
|
|
24
|
+
* logic and ensuring proper TypeScript typing. It extends OxygenThemeBase by default,
|
|
25
|
+
* but allows specifying a different base theme if needed.
|
|
26
|
+
*
|
|
27
|
+
* @param config - Partial theme configuration to merge with the base theme
|
|
28
|
+
* @param baseTheme - Optional base theme to extend from. Defaults to OxygenThemeBase
|
|
29
|
+
* @returns A fully configured OxygenTheme
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* // Create a theme extending OxygenThemeBase
|
|
34
|
+
* const MyTheme = createOxygenTheme({
|
|
35
|
+
* colorSchemes: {
|
|
36
|
+
* light: {
|
|
37
|
+
* palette: {
|
|
38
|
+
* primary: { main: '#ff0000' }
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* // Create a theme extending AcrylicOrangeTheme
|
|
45
|
+
* const MyCustomTheme = createOxygenTheme({
|
|
46
|
+
* components: {
|
|
47
|
+
* MuiButton: {
|
|
48
|
+
* styleOverrides: {
|
|
49
|
+
* root: { borderRadius: 8 }
|
|
50
|
+
* }
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
53
|
+
* }, AcrylicOrangeTheme);
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare function createOxygenTheme(config?: Partial<ThemeOptions> | Record<string, any>, baseTheme?: Theme): OxygenTheme;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wso2/oxygen-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,10 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://github.com/wso2/oxygen-ui#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@fontsource-variable/inter": "5.2.8",
|
|
59
58
|
"@emotion/react": "11.14.0",
|
|
60
59
|
"@emotion/styled": "11.14.1",
|
|
60
|
+
"@fontsource-variable/inter": "5.2.8",
|
|
61
61
|
"@mui/material": "7.3.4",
|
|
62
|
+
"@mui/utils": "9.0.0",
|
|
62
63
|
"@mui/x-data-grid": "8.16.0",
|
|
63
64
|
"@mui/x-date-pickers": "8.16.0",
|
|
64
65
|
"@mui/x-tree-view": "8.14.0",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"vite": "7.1.12",
|
|
88
89
|
"vitest": "4.0.6",
|
|
89
90
|
"@wso2/esbuild-plugin-inline-css-fonts": "^0.0.1",
|
|
90
|
-
"@wso2/oxygen-ui-icons-react": "^0.
|
|
91
|
+
"@wso2/oxygen-ui-icons-react": "^0.10.0"
|
|
91
92
|
},
|
|
92
93
|
"publishConfig": {
|
|
93
94
|
"access": "public"
|