@wso2/oxygen-ui 0.5.0 → 0.7.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/migration.md CHANGED
@@ -61,11 +61,13 @@ import { BarChart } from '@mui/x-charts';
61
61
 
62
62
  **After:**
63
63
  ```tsx
64
- import { DataGrid, DatePickers, Charts } from '@wso2/oxygen-ui';
64
+ import { DataGrid, DatePickers } from '@wso2/oxygen-ui';
65
65
 
66
66
  const { DataGrid: DataGridComponent } = DataGrid;
67
67
  const { DatePicker } = DatePickers;
68
- const { BarChart } = Charts;
68
+
69
+ // For Charts, use the separate package
70
+ import { BarChart } from '@wso2/oxygen-ui-charts-react';
69
71
  ```
70
72
 
71
73
  ### Icons
package/.ai/patterns.md CHANGED
@@ -56,10 +56,9 @@ function App() {
56
56
  <Header.Spacer />
57
57
  <Header.Actions>
58
58
  <ColorSchemeToggle />
59
- <UserMenu
60
- user={{ name: 'John Doe', email: 'john@example.com' }}
61
- onSignOut={() => console.log('Sign out')}
62
- />
59
+ <UserMenu>
60
+ <UserMenu.Trigger name="John Doe" />
61
+ </UserMenu>
63
62
  </Header.Actions>
64
63
  </Header>
65
64
  </AppShell.Navbar>
@@ -99,7 +98,9 @@ function App() {
99
98
  </AppShell.Main>
100
99
 
101
100
  <AppShell.Footer>
102
- <Footer companyName="WSO2 LLC" />
101
+ <Footer>
102
+ <Footer.Copyright>© 2025 WSO2 LLC. All rights reserved.</Footer.Copyright>
103
+ </Footer>
103
104
  </AppShell.Footer>
104
105
  </AppShell>
105
106
  </OxygenUIThemeProvider>
@@ -361,8 +362,11 @@ function Dashboard() {
361
362
 
362
363
  ### Dashboard with Charts
363
364
 
365
+ > **Note:** Charts are available in a separate package `@wso2/oxygen-ui-charts-react` built on Recharts.
366
+
364
367
  ```tsx
365
- import { Grid, Paper, Typography, Box, Charts } from '@wso2/oxygen-ui';
368
+ import { Grid, Paper, Typography, Box } from '@wso2/oxygen-ui';
369
+ import { LineChart, PieChart } from '@wso2/oxygen-ui-charts-react';
366
370
 
367
371
  function DashboardCharts() {
368
372
  const salesData = [
@@ -381,7 +385,7 @@ function DashboardCharts() {
381
385
  <Typography variant="h6" gutterBottom>
382
386
  Sales Overview
383
387
  </Typography>
384
- <Charts.LineChart
388
+ <LineChart
385
389
  height={300}
386
390
  series={[
387
391
  { data: salesData.map((d) => d.sales), label: 'Sales' },
@@ -397,7 +401,7 @@ function DashboardCharts() {
397
401
  <Typography variant="h6" gutterBottom>
398
402
  Traffic Sources
399
403
  </Typography>
400
- <Charts.PieChart
404
+ <PieChart
401
405
  height={300}
402
406
  series={[
403
407
  {
@@ -1136,8 +1140,12 @@ import {
1136
1140
  OxygenTheme,
1137
1141
  AcrylicOrangeTheme,
1138
1142
  AcrylicPurpleTheme,
1143
+ ChoreoTheme,
1139
1144
  ClassicTheme,
1140
1145
  HighContrastTheme,
1146
+ PaleBaseTheme,
1147
+ PaleGrayTheme,
1148
+ PaleIndigoTheme,
1141
1149
  useThemeSwitcher,
1142
1150
  Select,
1143
1151
  MenuItem,
@@ -1147,8 +1155,12 @@ const themes = [
1147
1155
  { key: 'default', label: 'Default', theme: OxygenTheme },
1148
1156
  { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
1149
1157
  { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
1158
+ { key: 'choreo', label: 'Choreo', theme: ChoreoTheme },
1150
1159
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
1151
1160
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
1161
+ { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
1162
+ { key: 'paleGray', label: 'Pale Gray', theme: PaleGrayTheme },
1163
+ { key: 'paleIndigo', label: 'Pale Indigo', theme: PaleIndigoTheme },
1152
1164
  ];
1153
1165
 
1154
1166
  function ThemeSelector() {
package/.ai/theming.md CHANGED
@@ -20,6 +20,9 @@
20
20
  | Choreo | `ChoreoTheme` | Choreo product theme (indigo-violet gradient) |
21
21
  | Classic | `ClassicTheme` | Standard flat design |
22
22
  | High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
23
+ | Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
24
+ | Pale Gray | `PaleGrayTheme` | Soft gray tones for a muted appearance |
25
+ | Pale Indigo | `PaleIndigoTheme` | Soft indigo tones for a calm interface |
23
26
 
24
27
  ```tsx
25
28
  import {
@@ -28,7 +31,10 @@ import {
28
31
  AcrylicPurpleTheme,
29
32
  ChoreoTheme,
30
33
  ClassicTheme,
31
- HighContrastTheme
34
+ HighContrastTheme,
35
+ PaleBaseTheme,
36
+ PaleGrayTheme,
37
+ PaleIndigoTheme,
32
38
  } from '@wso2/oxygen-ui';
33
39
  ```
34
40
 
@@ -61,8 +67,12 @@ import {
61
67
  OxygenTheme,
62
68
  AcrylicOrangeTheme,
63
69
  AcrylicPurpleTheme,
70
+ ChoreoTheme,
64
71
  ClassicTheme,
65
- HighContrastTheme
72
+ HighContrastTheme,
73
+ PaleBaseTheme,
74
+ PaleGrayTheme,
75
+ PaleIndigoTheme,
66
76
  } from '@wso2/oxygen-ui';
67
77
 
68
78
  <OxygenUIThemeProvider
@@ -73,6 +83,9 @@ import {
73
83
  { key: 'choreo', label: 'Choreo', theme: ChoreoTheme },
74
84
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
75
85
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
86
+ { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
87
+ { key: 'paleGray', label: 'Pale Gray', theme: PaleGrayTheme },
88
+ { key: 'paleIndigo', label: 'Pale Indigo', theme: PaleIndigoTheme },
76
89
  ]}
77
90
  initialTheme="default"
78
91
  >