@wso2/oxygen-ui 0.23.0 → 0.24.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 -2
- package/.ai/components.md +23 -16
- package/.ai/patterns.md +0 -2
- package/.ai/theming.md +1 -5
- package/.claude/components.md +23 -16
- package/.claude/patterns.md +0 -2
- package/.claude/skills/oxygen-layout/SKILL.md +17 -2
- package/.claude/skills/oxygen-select/SKILL.md +33 -2
- package/.claude/theming.md +1 -5
- package/README.md +1 -1
- package/dist/components/ComplexSelect/ComplexSelect.d.ts +19 -4
- package/dist/components/Footer/Footer.d.ts +35 -0
- package/dist/components/LogViewer/LogViewer.d.ts +7 -0
- package/dist/components/LogViewer/context.d.ts +2 -0
- package/dist/components/PageContent/PageContent.d.ts +13 -0
- package/dist/index.js +1591 -1462
- package/dist/index.js.map +4 -4
- package/dist/styles/Themes/{ChoreoLabsTheme.d.ts → DefaultTheme.d.ts} +11 -11
- package/dist/styles/Themes/index.d.ts +1 -2
- package/dist/utils/omitDerivedThemeValues.d.ts +29 -0
- package/package.json +2 -2
|
@@ -22,18 +22,18 @@ declare module '@mui/material/styles' {
|
|
|
22
22
|
}
|
|
23
23
|
interface PaletteOptions {
|
|
24
24
|
accent?: PaletteOptions['primary'];
|
|
25
|
-
Button?: Partial<
|
|
26
|
-
Breadcrumbs?: Partial<
|
|
27
|
-
Link?: Partial<
|
|
25
|
+
Button?: Partial<DefaultThemeButtonPalette>;
|
|
26
|
+
Breadcrumbs?: Partial<DefaultThemeBreadcrumbsPalette>;
|
|
27
|
+
Link?: Partial<DefaultThemeLinkPalette>;
|
|
28
28
|
}
|
|
29
29
|
interface Palette {
|
|
30
|
-
Button?:
|
|
31
|
-
Breadcrumbs?:
|
|
32
|
-
Link?:
|
|
30
|
+
Button?: DefaultThemeButtonPalette;
|
|
31
|
+
Breadcrumbs?: DefaultThemeBreadcrumbsPalette;
|
|
32
|
+
Link?: DefaultThemeLinkPalette;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
/** Link colours that differ between the light and dark schemes */
|
|
36
|
-
interface
|
|
36
|
+
interface DefaultThemeLinkPalette {
|
|
37
37
|
/** Default (text colour) links on hover */
|
|
38
38
|
hoverColor: string;
|
|
39
39
|
/** Text of links with a palette `color` */
|
|
@@ -45,7 +45,7 @@ interface ChoreoLabsLinkPalette {
|
|
|
45
45
|
infoColor: string;
|
|
46
46
|
}
|
|
47
47
|
/** Breadcrumb colours that differ between the light and dark schemes */
|
|
48
|
-
interface
|
|
48
|
+
interface DefaultThemeBreadcrumbsPalette {
|
|
49
49
|
/** Parent levels */
|
|
50
50
|
linkColor: string;
|
|
51
51
|
/** Parent levels on hover */
|
|
@@ -57,7 +57,7 @@ interface ChoreoLabsBreadcrumbsPalette {
|
|
|
57
57
|
* Button colours that differ between the light and dark schemes. Kept in the palette so each scheme
|
|
58
58
|
* swaps them through CSS variables, instead of scheme selectors that would outrank the disabled style.
|
|
59
59
|
*/
|
|
60
|
-
interface
|
|
60
|
+
interface DefaultThemeButtonPalette {
|
|
61
61
|
/** Outlined primary border and label, and text primary label */
|
|
62
62
|
outlinedColor: string;
|
|
63
63
|
/** Text primary label on hover */
|
|
@@ -86,5 +86,5 @@ declare module '@mui/material/Chip' {
|
|
|
86
86
|
tag: true;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
declare const
|
|
90
|
-
export default
|
|
89
|
+
declare const DefaultTheme: OxygenTheme;
|
|
90
|
+
export default DefaultTheme;
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
export { default as OxygenTheme } from './
|
|
18
|
+
export { default as OxygenTheme } from './DefaultTheme';
|
|
19
19
|
export { default as AcrylicOrangeTheme } from './AcrylicOrangeTheme';
|
|
20
20
|
export { default as AcrylicPurpleTheme } from './AcrylicPurpleTheme';
|
|
21
|
-
export { default as ChoreoLabsTheme } from './ChoreoLabsTheme';
|
|
22
21
|
export { default as ClassicTheme } from './ClassicTheme';
|
|
23
22
|
export { default as HighContrastTheme } from './HighContrastTheme';
|
|
24
23
|
export { default as PaleBaseTheme } from './PaleBaseTheme';
|
|
@@ -0,0 +1,29 @@
|
|
|
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 } from '@mui/material/styles';
|
|
19
|
+
/**
|
|
20
|
+
* Returns a copy of a built theme without the values that were derived from the theme itself, so that
|
|
21
|
+
* extendTheme derives them again when the theme is extended. Values the theme was explicitly given,
|
|
22
|
+
* see rememberExplicitThemeValues, are kept: extendTheme applies them over the derived ones.
|
|
23
|
+
*/
|
|
24
|
+
export declare function omitDerivedThemeValues(theme: Theme): Partial<Theme>;
|
|
25
|
+
/**
|
|
26
|
+
* Remembers the values for the derived keys in the options a theme was built from, so that they
|
|
27
|
+
* survive omitDerivedThemeValues when the theme is extended.
|
|
28
|
+
*/
|
|
29
|
+
export declare function rememberExplicitThemeValues(theme: Theme, options: Record<string, unknown>): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wso2/oxygen-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@typescript-eslint/parser": "8.45.0",
|
|
85
85
|
"@vitest/ui": "4.0.6",
|
|
86
86
|
"@wso2/esbuild-plugin-inline-css-fonts": "^0.0.1",
|
|
87
|
-
"@wso2/oxygen-ui-icons-react": "^0.
|
|
87
|
+
"@wso2/oxygen-ui-icons-react": "^0.24.0",
|
|
88
88
|
"esbuild": "0.25.11",
|
|
89
89
|
"eslint": "9.12.0",
|
|
90
90
|
"eslint-plugin-react": "7.37.5",
|