@wso2/oxygen-ui 0.23.1 → 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 +1 -2
- package/.ai/patterns.md +0 -2
- package/.ai/theming.md +1 -5
- package/.claude/patterns.md +0 -2
- package/.claude/skills/oxygen-select/SKILL.md +1 -1
- package/.claude/theming.md +1 -5
- package/README.md +1 -1
- 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 +1412 -1387
- 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/package.json +2 -2
package/.ai/AGENTS.md
CHANGED
|
@@ -54,10 +54,9 @@ import { DataGrid, DatePickers, TreeView } from '@wso2/oxygen-ui';
|
|
|
54
54
|
|
|
55
55
|
## Available Themes
|
|
56
56
|
|
|
57
|
-
- `OxygenTheme` - Default theme (recommended)
|
|
57
|
+
- `OxygenTheme` - Default theme (recommended): brand colours, Sora font and flat surfaces
|
|
58
58
|
- `AcrylicOrangeTheme` - Orange accent variant
|
|
59
59
|
- `AcrylicPurpleTheme` - Purple accent variant
|
|
60
|
-
- `ChoreoLabsTheme` - Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font)
|
|
61
60
|
- `ClassicTheme` - Traditional styling
|
|
62
61
|
- `HighContrastTheme` - Accessibility-focused
|
|
63
62
|
- `PaleBaseTheme` - Minimal color palette
|
package/.ai/patterns.md
CHANGED
|
@@ -1144,7 +1144,6 @@ import {
|
|
|
1144
1144
|
OxygenTheme,
|
|
1145
1145
|
AcrylicOrangeTheme,
|
|
1146
1146
|
AcrylicPurpleTheme,
|
|
1147
|
-
ChoreoLabsTheme,
|
|
1148
1147
|
ClassicTheme,
|
|
1149
1148
|
HighContrastTheme,
|
|
1150
1149
|
PaleBaseTheme,
|
|
@@ -1159,7 +1158,6 @@ const themes = [
|
|
|
1159
1158
|
{ key: 'default', label: 'Default', theme: OxygenTheme },
|
|
1160
1159
|
{ key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
|
|
1161
1160
|
{ key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
|
|
1162
|
-
{ key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
|
|
1163
1161
|
{ key: 'classic', label: 'Classic', theme: ClassicTheme },
|
|
1164
1162
|
{ key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
|
|
1165
1163
|
{ key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
|
package/.ai/theming.md
CHANGED
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
| Theme | Import | Description |
|
|
16
16
|
|-------|--------|-------------|
|
|
17
|
-
| OxygenTheme | `OxygenTheme` | Default theme (
|
|
17
|
+
| OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
|
|
18
18
|
| Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
|
|
19
19
|
| Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
|
|
20
|
-
| Choreo Labs | `ChoreoLabsTheme` | Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font) |
|
|
21
20
|
| Classic | `ClassicTheme` | Standard flat design |
|
|
22
21
|
| High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
|
|
23
22
|
| Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
|
|
@@ -29,7 +28,6 @@ import {
|
|
|
29
28
|
OxygenTheme,
|
|
30
29
|
AcrylicOrangeTheme,
|
|
31
30
|
AcrylicPurpleTheme,
|
|
32
|
-
ChoreoLabsTheme,
|
|
33
31
|
ClassicTheme,
|
|
34
32
|
HighContrastTheme,
|
|
35
33
|
PaleBaseTheme,
|
|
@@ -67,7 +65,6 @@ import {
|
|
|
67
65
|
OxygenTheme,
|
|
68
66
|
AcrylicOrangeTheme,
|
|
69
67
|
AcrylicPurpleTheme,
|
|
70
|
-
ChoreoLabsTheme,
|
|
71
68
|
ClassicTheme,
|
|
72
69
|
HighContrastTheme,
|
|
73
70
|
PaleBaseTheme,
|
|
@@ -80,7 +77,6 @@ import {
|
|
|
80
77
|
{ key: 'default', label: 'Default', theme: OxygenTheme },
|
|
81
78
|
{ key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
|
|
82
79
|
{ key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
|
|
83
|
-
{ key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
|
|
84
80
|
{ key: 'classic', label: 'Classic', theme: ClassicTheme },
|
|
85
81
|
{ key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
|
|
86
82
|
{ key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
|
package/.claude/patterns.md
CHANGED
|
@@ -1144,7 +1144,6 @@ import {
|
|
|
1144
1144
|
OxygenTheme,
|
|
1145
1145
|
AcrylicOrangeTheme,
|
|
1146
1146
|
AcrylicPurpleTheme,
|
|
1147
|
-
ChoreoLabsTheme,
|
|
1148
1147
|
ClassicTheme,
|
|
1149
1148
|
HighContrastTheme,
|
|
1150
1149
|
PaleBaseTheme,
|
|
@@ -1159,7 +1158,6 @@ const themes = [
|
|
|
1159
1158
|
{ key: 'default', label: 'Default', theme: OxygenTheme },
|
|
1160
1159
|
{ key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
|
|
1161
1160
|
{ key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
|
|
1162
|
-
{ key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
|
|
1163
1161
|
{ key: 'classic', label: 'Classic', theme: ClassicTheme },
|
|
1164
1162
|
{ key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
|
|
1165
1163
|
{ key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
|
|
@@ -86,7 +86,7 @@ Suggestions follow these rules:
|
|
|
86
86
|
|
|
87
87
|
## How it behaves
|
|
88
88
|
|
|
89
|
-
- The label renders as a `FormLabel` above the select and keeps its colour on focus and in the error state; the error shows on the field's border and in helper text. Focus shows only on the field: in the
|
|
89
|
+
- The label renders as a `FormLabel` above the select and keeps its colour on focus and in the error state; the error shows on the field's border and in helper text. Focus shows only on the field: in the default theme, a text-colour border with a Cobalt ring, the same as fixed-label text fields.
|
|
90
90
|
- The label names the combobox through `labelId` (or `htmlFor` with `native`), so screen readers announce it. Do not add your own `aria-label` when a label is set.
|
|
91
91
|
- `sx`, `className`, `style`, `fullWidth` and `ref` apply to the outer wrapper that holds the label and the select. `size`, `variant`, `required`, `error` and `disabled` apply to both.
|
|
92
92
|
- `placeholder` shows text in the field while nothing is selected (an empty value: `''`, `null`, `undefined` or `[]`), in the secondary text colour so it meets contrast requirements. It works with a custom `renderValue`. Native selects ignore it, so give them an empty option with the developer's placeholder text instead: `<option value="">Select a role</option>`.
|
package/.claude/theming.md
CHANGED
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
| Theme | Import | Description |
|
|
16
16
|
|-------|--------|-------------|
|
|
17
|
-
| OxygenTheme | `OxygenTheme` | Default theme (
|
|
17
|
+
| OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
|
|
18
18
|
| Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
|
|
19
19
|
| Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
|
|
20
|
-
| Choreo Labs | `ChoreoLabsTheme` | Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font) |
|
|
21
20
|
| Classic | `ClassicTheme` | Standard flat design |
|
|
22
21
|
| High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
|
|
23
22
|
| Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
|
|
@@ -29,7 +28,6 @@ import {
|
|
|
29
28
|
OxygenTheme,
|
|
30
29
|
AcrylicOrangeTheme,
|
|
31
30
|
AcrylicPurpleTheme,
|
|
32
|
-
ChoreoLabsTheme,
|
|
33
31
|
ClassicTheme,
|
|
34
32
|
HighContrastTheme,
|
|
35
33
|
PaleBaseTheme,
|
|
@@ -67,7 +65,6 @@ import {
|
|
|
67
65
|
OxygenTheme,
|
|
68
66
|
AcrylicOrangeTheme,
|
|
69
67
|
AcrylicPurpleTheme,
|
|
70
|
-
ChoreoLabsTheme,
|
|
71
68
|
ClassicTheme,
|
|
72
69
|
HighContrastTheme,
|
|
73
70
|
PaleBaseTheme,
|
|
@@ -80,7 +77,6 @@ import {
|
|
|
80
77
|
{ key: 'default', label: 'Default', theme: OxygenTheme },
|
|
81
78
|
{ key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
|
|
82
79
|
{ key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
|
|
83
|
-
{ key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
|
|
84
80
|
{ key: 'classic', label: 'Classic', theme: ClassicTheme },
|
|
85
81
|
{ key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
|
|
86
82
|
{ key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ yarn add @wso2/oxygen-ui @emotion/react @emotion/styled @mui/material
|
|
|
12
12
|
pnpm add @wso2/oxygen-ui @emotion/react @emotion/styled @mui/material
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
**Note:** The Inter Variable and Sora Variable (used by
|
|
15
|
+
**Note:** The Inter Variable and Sora Variable (used by the default theme) fonts are automatically bundled and loaded when you import from `@wso2/oxygen-ui`. No additional setup required!
|
|
16
16
|
|
|
17
17
|
### Peer Dependencies
|
|
18
18
|
|
|
@@ -21,12 +21,47 @@ import { FooterCopyright } from './FooterCopyright';
|
|
|
21
21
|
import { FooterVersion } from './FooterVersion';
|
|
22
22
|
import { FooterLink } from './FooterLink';
|
|
23
23
|
import { FooterDivider } from './FooterDivider';
|
|
24
|
+
/**
|
|
25
|
+
* Theme tokens used in this component:
|
|
26
|
+
*
|
|
27
|
+
* Text Hierarchy:
|
|
28
|
+
* - `text.secondary` - Copyright text, link default color
|
|
29
|
+
* - `text.primary` - Link hover color
|
|
30
|
+
* - `text.disabled` - Version number (lowest emphasis)
|
|
31
|
+
*
|
|
32
|
+
* Background & Borders:
|
|
33
|
+
* - `background.paper` - Footer background
|
|
34
|
+
* - `divider` - Top border color
|
|
35
|
+
*
|
|
36
|
+
* Typography variants:
|
|
37
|
+
* - variant="caption" - Small footer text (12px default)
|
|
38
|
+
*
|
|
39
|
+
* Link component:
|
|
40
|
+
* - underline="hover" - Only show underline on hover
|
|
41
|
+
* - Custom fontSize: 12 for consistent sizing
|
|
42
|
+
*
|
|
43
|
+
* Responsive Layout:
|
|
44
|
+
* - flexDirection: { xs: 'column', sm: 'row' }
|
|
45
|
+
* - alignItems: { xs: 'flex-start', sm: 'center' }
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* `bar` is a full-width bar with a top border and a paper background, with the copyright on the left
|
|
49
|
+
* and the links on the right. `plain` has no background, and an inset divider set to the height of the
|
|
50
|
+
* sidebar's footer row so it lines up with the divider above `Sidebar.CollapseToggle`.
|
|
51
|
+
*/
|
|
52
|
+
export type FooterVariant = 'bar' | 'plain';
|
|
24
53
|
/**
|
|
25
54
|
* Props for the Footer root component.
|
|
26
55
|
*/
|
|
27
56
|
export interface FooterProps {
|
|
28
57
|
/** Child elements (Copyright, Version, Link, Divider components) */
|
|
29
58
|
children: React.ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Look of the footer: `bar` (default), or `plain` (no bar, with an inset divider that lines up with the
|
|
61
|
+
* sidebar's collapse toggle divider).
|
|
62
|
+
* @default 'bar'
|
|
63
|
+
*/
|
|
64
|
+
variant?: FooterVariant;
|
|
30
65
|
/** Additional sx props */
|
|
31
66
|
sx?: SxProps<Theme>;
|
|
32
67
|
}
|
|
@@ -33,6 +33,13 @@ export interface LogViewerProps extends Omit<PaperProps, 'children' | 'onCopy' |
|
|
|
33
33
|
* @default false
|
|
34
34
|
*/
|
|
35
35
|
hideHeading?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Keeps the funnel of a filter that sits in a column heading in view, at half strength until the
|
|
38
|
+
* heading is pointed at, instead of showing it only then. A filter with a value applied is always
|
|
39
|
+
* fully shown. It has no effect when `hideHeading` is set.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
alwaysShowFilterIcons?: boolean;
|
|
36
43
|
/**
|
|
37
44
|
* The parts of the viewer, top to bottom: usually a `LogViewer.Toolbar` and a `LogViewer.Stream`.
|
|
38
45
|
* Leave it out for a viewer with just the stream.
|
|
@@ -35,6 +35,8 @@ export interface LogViewerContextValue {
|
|
|
35
35
|
columns: LogColumn[];
|
|
36
36
|
/** True when the heading row is visually hidden and its sort and filter controls are not offered. */
|
|
37
37
|
hideHeading: boolean;
|
|
38
|
+
/** True when the funnels of the filters in the headings stay in view. */
|
|
39
|
+
alwaysShowFilterIcons: boolean;
|
|
38
40
|
/** The filters the viewer shows. */
|
|
39
41
|
filters: LogFilterDefinition[];
|
|
40
42
|
/**
|
|
@@ -28,6 +28,11 @@ export interface PageContentProps extends Omit<BoxProps, 'maxWidth'> {
|
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
noPadding?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional footer, e.g. a `Footer`. It is full width. When the content is short it sits at the bottom
|
|
33
|
+
* of the page content, and when the content is long it comes after the content and scrolls with it.
|
|
34
|
+
*/
|
|
35
|
+
footer?: React.ReactNode;
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
38
|
* PageContent component - A container for page content with controllable max-width and centering
|
|
@@ -61,6 +66,14 @@ export interface PageContentProps extends Omit<BoxProps, 'maxWidth'> {
|
|
|
61
66
|
*
|
|
62
67
|
* @example
|
|
63
68
|
* ```tsx
|
|
69
|
+
* // Footer at the bottom of the page
|
|
70
|
+
* <PageContent footer={<Footer>...</Footer>}>
|
|
71
|
+
* <YourContent />
|
|
72
|
+
* </PageContent>
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```tsx
|
|
64
77
|
* // Not centered
|
|
65
78
|
* <PageContent centered={false}>
|
|
66
79
|
* <YourContent />
|