@wso2/oxygen-ui 0.22.0 → 0.23.1
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 +3 -0
- package/.ai/components.md +23 -16
- package/.claude/components.md +23 -16
- package/.claude/skills/oxygen-form/SKILL.md +7 -4
- package/.claude/skills/oxygen-layout/SKILL.md +17 -2
- package/.claude/skills/oxygen-select/SKILL.md +170 -0
- package/.claude/skills/oxygen-textfield/SKILL.md +91 -0
- package/README.md +2 -0
- package/bin/cli.js +4 -0
- package/dist/components/AppBreadcrumbs/AppBreadcrumbs.d.ts +3 -2
- package/dist/components/ComplexSelect/ComplexSelect.d.ts +19 -4
- package/dist/components/Select/Select.d.ts +23 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1504 -969
- package/dist/index.js.map +4 -4
- package/dist/styles/Themes/ChoreoLabsTheme.d.ts +49 -0
- package/dist/utils/omitDerivedThemeValues.d.ts +29 -0
- package/package.json +2 -2
|
@@ -22,7 +22,56 @@ declare module '@mui/material/styles' {
|
|
|
22
22
|
}
|
|
23
23
|
interface PaletteOptions {
|
|
24
24
|
accent?: PaletteOptions['primary'];
|
|
25
|
+
Button?: Partial<ChoreoLabsButtonPalette>;
|
|
26
|
+
Breadcrumbs?: Partial<ChoreoLabsBreadcrumbsPalette>;
|
|
27
|
+
Link?: Partial<ChoreoLabsLinkPalette>;
|
|
25
28
|
}
|
|
29
|
+
interface Palette {
|
|
30
|
+
Button?: ChoreoLabsButtonPalette;
|
|
31
|
+
Breadcrumbs?: ChoreoLabsBreadcrumbsPalette;
|
|
32
|
+
Link?: ChoreoLabsLinkPalette;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** Link colours that differ between the light and dark schemes */
|
|
36
|
+
interface ChoreoLabsLinkPalette {
|
|
37
|
+
/** Default (text colour) links on hover */
|
|
38
|
+
hoverColor: string;
|
|
39
|
+
/** Text of links with a palette `color` */
|
|
40
|
+
primaryColor: string;
|
|
41
|
+
secondaryColor: string;
|
|
42
|
+
successColor: string;
|
|
43
|
+
errorColor: string;
|
|
44
|
+
warningColor: string;
|
|
45
|
+
infoColor: string;
|
|
46
|
+
}
|
|
47
|
+
/** Breadcrumb colours that differ between the light and dark schemes */
|
|
48
|
+
interface ChoreoLabsBreadcrumbsPalette {
|
|
49
|
+
/** Parent levels */
|
|
50
|
+
linkColor: string;
|
|
51
|
+
/** Parent levels on hover */
|
|
52
|
+
linkHoverColor: string;
|
|
53
|
+
/** The slash between levels */
|
|
54
|
+
separatorColor: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Button colours that differ between the light and dark schemes. Kept in the palette so each scheme
|
|
58
|
+
* swaps them through CSS variables, instead of scheme selectors that would outrank the disabled style.
|
|
59
|
+
*/
|
|
60
|
+
interface ChoreoLabsButtonPalette {
|
|
61
|
+
/** Outlined primary border and label, and text primary label */
|
|
62
|
+
outlinedColor: string;
|
|
63
|
+
/** Text primary label on hover */
|
|
64
|
+
textHoverColor: string;
|
|
65
|
+
/** Contained secondary fill on hover and when pressed */
|
|
66
|
+
containedSecondaryHoverBg: string;
|
|
67
|
+
/** Contained secondary label on hover */
|
|
68
|
+
containedSecondaryHoverColor: string;
|
|
69
|
+
/** Contained secondary label when pressed */
|
|
70
|
+
containedSecondaryActiveColor: string;
|
|
71
|
+
disabledBg: string;
|
|
72
|
+
disabledColor: string;
|
|
73
|
+
/** Keyboard focus ring */
|
|
74
|
+
focusRing: string;
|
|
26
75
|
}
|
|
27
76
|
declare module '@mui/material/Button' {
|
|
28
77
|
interface ButtonPropsColorOverrides {
|
|
@@ -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.23.1",
|
|
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.23.1",
|
|
88
88
|
"esbuild": "0.25.11",
|
|
89
89
|
"eslint": "9.12.0",
|
|
90
90
|
"eslint-plugin-react": "7.37.5",
|