@wso2/oxygen-ui 0.5.0 → 0.6.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 +17 -15
- package/.ai/components.md +706 -73
- package/.ai/migration.md +4 -2
- package/.ai/patterns.md +20 -8
- package/.ai/theming.md +15 -2
- package/.claude/components.md +706 -73
- package/.claude/migration.md +4 -2
- package/.claude/patterns.md +20 -8
- package/.claude/skills/oxygen-component/SKILL.md +12 -6
- package/.claude/skills/oxygen-migrate/SKILL.md +5 -2
- package/.claude/skills/oxygen-sync/SKILL.md +157 -0
- package/.claude/theming.md +15 -2
- package/bin/cli.js +32 -19
- package/dist/index.js +121 -101
- package/dist/index.js.map +3 -3
- package/dist/utils/pxToRem.d.ts +1 -1
- package/package.json +2 -2
package/.ai/AGENTS.md
CHANGED
|
@@ -21,7 +21,7 @@ function App() {
|
|
|
21
21
|
1. **Import from `@wso2/oxygen-ui`** - Never import directly from `@mui/material`
|
|
22
22
|
2. **Always wrap with `OxygenUIThemeProvider`** - Required at app root
|
|
23
23
|
3. **Icons from `@wso2/oxygen-ui-icons-react`** - Separate package for icons
|
|
24
|
-
4. **MUI X uses namespaces** - `DataGrid.DataGrid`, `
|
|
24
|
+
4. **MUI X uses namespaces** - `DataGrid.DataGrid`, `DatePickers.DatePicker`, `TreeView.TreeView`
|
|
25
25
|
5. **Use theme tokens** - Use `sx` prop with theme values, not hardcoded colors/spacing
|
|
26
26
|
|
|
27
27
|
## Import Patterns
|
|
@@ -34,9 +34,9 @@ import { Button, TextField, Box, Typography, ListingTable } from '@wso2/oxygen-u
|
|
|
34
34
|
import { HomeIcon, SettingsIcon, UserIcon } from '@wso2/oxygen-ui-icons-react';
|
|
35
35
|
|
|
36
36
|
// MUI X - use as namespaces
|
|
37
|
-
import { DataGrid,
|
|
37
|
+
import { DataGrid, DatePickers, TreeView } from '@wso2/oxygen-ui';
|
|
38
38
|
<DataGrid.DataGrid rows={rows} columns={columns} />
|
|
39
|
-
<
|
|
39
|
+
<DatePickers.DatePicker value={date} onChange={setDate} />
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Theme Tokens (Always Use)
|
|
@@ -57,23 +57,25 @@ import { DataGrid, Charts, DatePickers, TreeView } from '@wso2/oxygen-ui';
|
|
|
57
57
|
- `ChoreoTheme` - Choreo product theme (indigo-violet gradient)
|
|
58
58
|
- `ClassicTheme` - Traditional styling
|
|
59
59
|
- `HighContrastTheme` - Accessibility-focused
|
|
60
|
+
- `PaleBaseTheme` - Minimal color palette
|
|
61
|
+
- `PaleGrayTheme` - Soft gray tones
|
|
62
|
+
- `PaleIndigoTheme` - Soft indigo tones
|
|
60
63
|
|
|
61
64
|
## Custom Oxygen Components
|
|
62
65
|
|
|
63
|
-
- **Layout**: `AppShell`, `Header`, `Sidebar`, `Footer`
|
|
64
|
-
- **Data Display**: `ListingTable`, `PageTitle`, `CodeBlock`
|
|
65
|
-
- **Forms**: `Form.
|
|
66
|
+
- **Layout**: `AppShell`, `Layout`, `Header`, `Sidebar`, `Footer`, `PageContent`
|
|
67
|
+
- **Data Display**: `ListingTable`, `PageTitle`, `CodeBlock`, `StatCard`
|
|
68
|
+
- **Forms**: `Form.CardButton`, `Form.Section`, `Form.Stack`, `Form.Wizard`
|
|
69
|
+
- **Inputs**: `SearchBar`, `SearchBarWithAdvancedFilter`, `ComplexSelect`
|
|
66
70
|
- **Feedback**: `NotificationPanel`, `NotificationBanner`
|
|
67
|
-
- **Theming**: `OxygenUIThemeProvider`, `ThemeSwitcher`, `ColorSchemeToggle`
|
|
71
|
+
- **Theming**: `OxygenUIThemeProvider`, `ThemeSwitcher`, `ColorSchemeToggle`, `ColorSchemeImage`
|
|
72
|
+
- **User**: `UserMenu`
|
|
73
|
+
- **Animations**: `ParticleBackground`
|
|
68
74
|
|
|
69
75
|
## Detailed Documentation
|
|
70
76
|
|
|
71
77
|
For comprehensive API reference and examples, see:
|
|
72
|
-
- [Component API Reference](
|
|
73
|
-
- [UI Patterns & Examples](
|
|
74
|
-
- [Theme Customization](
|
|
75
|
-
- [Migration Guide](
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
For Claude Code users with enhanced features (invokable skills): `npx @wso2/oxygen-ui init --claude`
|
|
78
|
+
- [Component API Reference](./components.md)
|
|
79
|
+
- [UI Patterns & Examples](./patterns.md)
|
|
80
|
+
- [Theme Customization](./theming.md)
|
|
81
|
+
- [Migration Guide](./migration.md)
|