@wso2/oxygen-ui 0.25.0 → 0.27.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.
Files changed (70) hide show
  1. package/.ai/AGENTS.md +2 -7
  2. package/.ai/components.md +36 -37
  3. package/.ai/patterns.md +0 -4
  4. package/.ai/theming.md +0 -11
  5. package/.claude/components.md +80 -37
  6. package/.claude/patterns.md +0 -4
  7. package/.claude/skills/oxygen-layout/SKILL.md +1 -1
  8. package/.claude/skills/oxygen-migrate/SKILL.md +1 -1
  9. package/.claude/theming.md +0 -8
  10. package/README.md +1 -1
  11. package/bin/cli.js +1 -1
  12. package/dist/animations/PageLoader/PageLoader.d.ts +92 -0
  13. package/dist/animations/PageLoader/PageLoaderIcon.d.ts +20 -0
  14. package/dist/animations/PageLoader/PageLoaderWordmark.d.ts +19 -0
  15. package/dist/animations/PageLoader/index.d.ts +4 -0
  16. package/dist/animations/index.d.ts +2 -0
  17. package/dist/components/AppShell/AppShell.d.ts +1 -1
  18. package/dist/components/AppShell/AppShellFooter.d.ts +1 -1
  19. package/dist/components/AppSwitcher/AppSwitcher.d.ts +12 -9
  20. package/dist/components/AppSwitcher/AppSwitcherApp.d.ts +19 -10
  21. package/dist/components/AppSwitcher/AppSwitcherFooter.d.ts +6 -6
  22. package/dist/components/AppSwitcher/AppSwitcherSection.d.ts +21 -7
  23. package/dist/components/AppSwitcher/AppSwitcherTrigger.d.ts +1 -1
  24. package/dist/components/Button/Button.d.ts +19 -0
  25. package/dist/components/Button/index.d.ts +2 -0
  26. package/dist/components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
  27. package/dist/components/Footer/FooterLink.d.ts +6 -2
  28. package/dist/components/HeaderBreadcrumbs/persistence.d.ts +1 -1
  29. package/dist/components/HeaderBreadcrumbs/useHeaderBreadcrumbs.d.ts +1 -1
  30. package/dist/components/StatusIllustration/StatusIllustration.d.ts +49 -0
  31. package/dist/components/StatusIllustration/illustrationStyles.d.ts +212 -0
  32. package/dist/components/StatusIllustration/illustrations/FailedIllustration.d.ts +3 -0
  33. package/dist/components/StatusIllustration/illustrations/Http200Illustration.d.ts +3 -0
  34. package/dist/components/StatusIllustration/illustrations/Http201Illustration.d.ts +3 -0
  35. package/dist/components/StatusIllustration/illustrations/Http204Illustration.d.ts +3 -0
  36. package/dist/components/StatusIllustration/illustrations/Http301Illustration.d.ts +3 -0
  37. package/dist/components/StatusIllustration/illustrations/Http302Illustration.d.ts +3 -0
  38. package/dist/components/StatusIllustration/illustrations/Http304Illustration.d.ts +3 -0
  39. package/dist/components/StatusIllustration/illustrations/Http400Illustration.d.ts +3 -0
  40. package/dist/components/StatusIllustration/illustrations/Http401Illustration.d.ts +3 -0
  41. package/dist/components/StatusIllustration/illustrations/Http403Illustration.d.ts +3 -0
  42. package/dist/components/StatusIllustration/illustrations/Http404Illustration.d.ts +3 -0
  43. package/dist/components/StatusIllustration/illustrations/Http405Illustration.d.ts +3 -0
  44. package/dist/components/StatusIllustration/illustrations/Http408Illustration.d.ts +3 -0
  45. package/dist/components/StatusIllustration/illustrations/Http409Illustration.d.ts +3 -0
  46. package/dist/components/StatusIllustration/illustrations/Http422Illustration.d.ts +3 -0
  47. package/dist/components/StatusIllustration/illustrations/Http429Illustration.d.ts +3 -0
  48. package/dist/components/StatusIllustration/illustrations/Http500Illustration.d.ts +3 -0
  49. package/dist/components/StatusIllustration/illustrations/Http502Illustration.d.ts +3 -0
  50. package/dist/components/StatusIllustration/illustrations/Http503Illustration.d.ts +3 -0
  51. package/dist/components/StatusIllustration/illustrations/Http504Illustration.d.ts +3 -0
  52. package/dist/components/StatusIllustration/illustrations/MailSentIllustration.d.ts +3 -0
  53. package/dist/components/StatusIllustration/illustrations/NoRecordsIllustration.d.ts +3 -0
  54. package/dist/components/StatusIllustration/illustrations/UnsuccessfulIllustration.d.ts +3 -0
  55. package/dist/components/StatusIllustration/illustrations/index.d.ts +12 -0
  56. package/dist/components/StatusIllustration/index.d.ts +2 -0
  57. package/dist/components/StatusIllustration/types.d.ts +2 -0
  58. package/dist/components/StatusIllustration/useIllustrationId.d.ts +5 -0
  59. package/dist/components/TimeRangeFilter/TimeRangeFilter.d.ts +3 -2
  60. package/dist/components/TrialBadge/TrialBadge.d.ts +8 -8
  61. package/dist/components/index.d.ts +4 -0
  62. package/dist/index.d.ts +3 -2
  63. package/dist/index.js +3931 -2961
  64. package/dist/index.js.map +4 -4
  65. package/dist/styles/OxygenThemeBase.d.ts +166 -1
  66. package/dist/styles/Themes/index.d.ts +0 -3
  67. package/dist/utils/createOxygenTheme.d.ts +2 -2
  68. package/package.json +5 -3
  69. package/dist/components/AppSwitcher/brand.d.ts +0 -49
  70. package/dist/styles/Themes/WSO2Theme.d.ts +0 -20
package/.ai/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
- # Oxygen UI - AI Development Guide
1
+ # Choreo Oxygen UI - AI Development Guide
2
2
 
3
- > WSO2's React component library built on Material-UI v7
3
+ > Choreo Labs' React component library built on Material-UI v7
4
4
 
5
5
  ## Quick Start
6
6
 
@@ -55,13 +55,8 @@ import { DataGrid, DatePickers, TreeView } from '@wso2/oxygen-ui';
55
55
  ## Available Themes
56
56
 
57
57
  - `OxygenTheme` - Default theme (recommended): brand colours, Sora font and flat surfaces
58
- - `AcrylicOrangeTheme` - Orange accent variant
59
- - `AcrylicPurpleTheme` - Purple accent variant
60
58
  - `ClassicTheme` - Traditional styling
61
59
  - `HighContrastTheme` - Accessibility-focused
62
- - `PaleBaseTheme` - Minimal color palette
63
- - `PaleGrayTheme` - Soft gray tones
64
- - `PaleIndigoTheme` - Soft indigo tones
65
60
 
66
61
  ## Custom Oxygen Components
67
62
 
package/.ai/components.md CHANGED
@@ -69,14 +69,14 @@ interface ThemeOption {
69
69
  import {
70
70
  OxygenUIThemeProvider,
71
71
  OxygenTheme,
72
- AcrylicOrangeTheme,
73
- AcrylicPurpleTheme,
72
+ ClassicTheme,
73
+ HighContrastTheme,
74
74
  } from '@wso2/oxygen-ui';
75
75
 
76
76
  const themes = [
77
77
  { key: 'default', label: 'Default', theme: OxygenTheme },
78
- { key: 'orange', label: 'Orange', theme: AcrylicOrangeTheme },
79
- { key: 'purple', label: 'Purple', theme: AcrylicPurpleTheme },
78
+ { key: 'classic', label: 'Classic', theme: ClassicTheme },
79
+ { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
80
80
  ];
81
81
 
82
82
  <OxygenUIThemeProvider themes={themes} initialTheme="default">
@@ -297,7 +297,7 @@ import { AppShell } from '@wso2/oxygen-ui';
297
297
  </AppShell.Main>
298
298
 
299
299
  <AppShell.Footer>
300
- <Footer companyName="WSO2 LLC" />
300
+ <Footer companyName="Choreo Labs" />
301
301
  </AppShell.Footer>
302
302
 
303
303
  <AppShell.NotificationPanel>
@@ -1154,7 +1154,7 @@ import { Footer } from '@wso2/oxygen-ui';
1154
1154
 
1155
1155
  ```tsx
1156
1156
  <Footer>
1157
- <Footer.Copyright>© 2025 WSO2 LLC. All rights reserved.</Footer.Copyright>
1157
+ <Footer.Copyright>© 2025 Choreo Labs. All rights reserved.</Footer.Copyright>
1158
1158
  <Footer.Divider />
1159
1159
  <Footer.Version>v2.1.0</Footer.Version>
1160
1160
  <Footer.Link href="/terms">Terms & Conditions</Footer.Link>
@@ -1332,7 +1332,7 @@ import { ContextSwitcher, Header } from '@wso2/oxygen-ui';
1332
1332
  import type { ContextSwitcherValue } from '@wso2/oxygen-ui';
1333
1333
 
1334
1334
  const [value, setValue] = useState<ContextSwitcherValue>({
1335
- organization: 'wso2',
1335
+ organization: 'choreo-labs',
1336
1336
  project: 'finance-web',
1337
1337
  });
1338
1338
 
@@ -1341,7 +1341,7 @@ const [value, setValue] = useState<ContextSwitcherValue>({
1341
1341
  <ContextSwitcher.Level id="organization" label="Organization">
1342
1342
  <ContextSwitcher.Option value="personal">Personal</ContextSwitcher.Option>
1343
1343
  <ContextSwitcher.Group label="Invited organizations">
1344
- <ContextSwitcher.Option value="wso2">WSO2</ContextSwitcher.Option>
1344
+ <ContextSwitcher.Option value="choreo-labs">Choreo Labs</ContextSwitcher.Option>
1345
1345
  <ContextSwitcher.Option value="demo">Demo Organization</ContextSwitcher.Option>
1346
1346
  </ContextSwitcher.Group>
1347
1347
  </ContextSwitcher.Level>
@@ -1363,7 +1363,7 @@ const [value, setValue] = useState<ContextSwitcherValue>({
1363
1363
 
1364
1364
  ## AppSwitcher
1365
1365
 
1366
- Popover for navigating between WSO2 Cloud platforms.
1366
+ Popover for navigating between Choreo Labs Cloud platforms.
1367
1367
 
1368
1368
  ```tsx
1369
1369
  import { AppSwitcher } from '@wso2/oxygen-ui';
@@ -1379,7 +1379,7 @@ The switcher is composed from sub-components, matching `Header`, `Sidebar` and `
1379
1379
  - `AppSwitcher.Footer` — the `Manage` section; its cards take the `manage` tone automatically
1380
1380
 
1381
1381
  The trigger renders where it sits; every other child goes inside the popover. A typical switcher
1382
- has two sections: a grid of platform cards, and a `Manage` section linking to the WSO2 Cloud tabs
1382
+ has two sections: a grid of platform cards, and a `Manage` section linking to the Choreo Labs Cloud tabs
1383
1383
  (organizations, users, billing).
1384
1384
 
1385
1385
  ### AppSwitcher Props
@@ -1387,7 +1387,7 @@ has two sections: a grid of platform cards, and a `Manage` section linking to th
1387
1387
  | Prop | Type | Default | Description |
1388
1388
  |------|------|---------|-------------|
1389
1389
  | `children` | `ReactNode` | required | Trigger, sections and footer |
1390
- | `width` | `number` | `460` | Popover width (px) from the `sm` breakpoint up |
1390
+ | `width` | `number` | fits content | Popover width (px) from the `sm` breakpoint up; by default it fits the service tiles |
1391
1391
  | `aria-label` | `string` | `'Applications'` | Accessible name for the popover surface |
1392
1392
  | `sx` | `SxProps<Theme>` | - | Additional styles applied to the popover |
1393
1393
 
@@ -1414,7 +1414,7 @@ Extra props, including `aria-*` attributes and `ref`, are forwarded to the under
1414
1414
  |-------|------|---------|-------------|
1415
1415
  | `name` | `string` | required | Platform name (e.g. "API Platform") |
1416
1416
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1417
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1417
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1418
1418
  | `target` | `string` | `'_blank'` | Anchor target for a card with a `url`; such platforms open in a new tab by default |
1419
1419
  | `disabled` | `boolean` | `false` | Blocks navigation (e.g. a platform not yet available) |
1420
1420
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus, e.g. `"Coming soon"` on an unavailable platform |
@@ -1441,7 +1441,7 @@ The footer renders nothing when it has neither children nor links.
1441
1441
  | `key` | `string` | required | Stable identifier, used as the React key |
1442
1442
  | `name` | `string` | required | Link name (e.g. "Users & roles") |
1443
1443
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1444
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1444
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1445
1445
  | `target` | `string` | `'_blank'` | Anchor target |
1446
1446
  | `disabled` | `boolean` | `false` | Blocks navigation |
1447
1447
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus |
@@ -1459,29 +1459,35 @@ import { Building2, CreditCard, UserRoundPlus } from '@wso2/oxygen-ui-icons-reac
1459
1459
  <AppSwitcher>
1460
1460
  <AppSwitcher.Trigger />
1461
1461
  <AppSwitcher.Section label="Platforms">
1462
- <AppSwitcher.App name="Agent Manager" url="https://agent.wso2.com" />
1463
- <AppSwitcher.App name="Identity Platform" url="https://identity.wso2.com" />
1464
- <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
1462
+ <AppSwitcher.App name="Agent Manager" url="https://agent.example.com" />
1463
+ <AppSwitcher.App name="Identity Platform" url="https://identity.example.com" />
1464
+ <AppSwitcher.App name="API Platform" url="https://api.example.com" />
1465
1465
  <AppSwitcher.App name="Analytics Platform" disabled tooltip="Coming soon" />
1466
1466
  </AppSwitcher.Section>
1467
1467
  <AppSwitcher.Footer label="Manage">
1468
- <AppSwitcher.App name="Organizations" url="https://console.wso2.com/organizations"
1468
+ <AppSwitcher.App name="Organizations" url="https://console.example.com/organizations"
1469
1469
  icon={<Building2 size={18} />} />
1470
- <AppSwitcher.App name="Users & roles" url="https://console.wso2.com/users"
1470
+ <AppSwitcher.App name="Users & roles" url="https://console.example.com/users"
1471
1471
  icon={<UserRoundPlus size={18} />} />
1472
- <AppSwitcher.App name="Billing" url="https://console.wso2.com/billing"
1472
+ <AppSwitcher.App name="Billing" url="https://console.example.com/billing"
1473
1473
  icon={<CreditCard size={18} />} />
1474
1474
  </AppSwitcher.Footer>
1475
1475
  </AppSwitcher>
1476
1476
  </Header.Actions>
1477
1477
  ```
1478
1478
 
1479
- ### The platform mark
1479
+ ### Service icons
1480
1480
 
1481
- Every platform card carries the WSO2 mark, the `WSO2` icon from `@wso2/oxygen-ui-icons-react`,
1482
- supplied by the component. Products do not pick their own artwork, so the grid stays uniform
1483
- across the cloud. Pass `icon` only when a destination genuinely needs different artwork — the
1484
- manage links do, which is why they take neutral glyphs.
1481
+ Pass `icon` to give each service a glyph that says what it is (for example `Bot` for Agent
1482
+ Management, `Cpu` for API Management, `ShieldUser` for Identity & Access Management, `Blocks` for
1483
+ Integration). Icons are drawn in `text.secondary` (`text.disabled` when unavailable), so any
1484
+ `@wso2/oxygen-ui-icons-react` icon fits. Without `icon`, a card falls back to the Choreo Labs mark
1485
+ (the `ChoreoLabs` icon) in `palette.primary.main`.
1486
+
1487
+ A section with exactly four cards lays out as a 2×2 grid; any other count uses three columns.
1488
+ Pass `columns` to override. From the `sm` breakpoint up, service cards are square tiles of one
1489
+ fixed size (about 136px) with names wrapping to two lines, and the popover sizes itself around
1490
+ them (about 320px for two columns, 460px for three) unless `width` is set.
1485
1491
 
1486
1492
  ### Card states
1487
1493
 
@@ -1519,7 +1525,7 @@ anchor, so middle-click and "open in new tab" work. Cards target `_blank` by def
1519
1525
  platform is its own deployment; pass `target: '_self'` to navigate in place.
1520
1526
 
1521
1527
  ```tsx
1522
- <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
1528
+ <AppSwitcher.App name="API Platform" url="https://api.example.com" />
1523
1529
  <AppSwitcher.App name="Agent Manager" url="/agent" target="_self" />
1524
1530
  ```
1525
1531
 
@@ -1561,19 +1567,12 @@ Precedence: `component` wins over `url`; `disabled` blocks all navigation regard
1561
1567
  A `_blank` target always keeps `rel="noopener noreferrer"`; `componentProps` cannot
1562
1568
  override it.
1563
1569
 
1564
- ### Brand color
1565
-
1566
- The switcher is WSO2 Cloud chrome, so it uses the brand orange (`#FF7300`) even in a product
1567
- running a different palette: the WSO2 mark, the hover border and the focus ring are all brand
1568
- orange rather than `palette.primary`. There is no variant to opt out of this.
1570
+ ### Theme colors
1569
1571
 
1570
- **Contrast:** `#FF7300` is 2.73:1 on white. It is used only for the mark and the hover border —
1571
- never for text, so the switcher has no brand-colored text to fail WCAG AA. The focus ring is
1572
- author-defined, which WCAG 2.1 SC 1.4.11 holds to 3:1, so it uses a darker brand token
1573
- (`#E56800`, 3.33:1 on the light card and 5.63:1 on the dark one) rather than `main`. The 2.73:1
1574
- mark and hover border still fall under 3:1; that is a property of the brand palette rather than
1575
- of this component (the standard card border, `#E0E0E0`, is 1.32:1), and is tracked in
1576
- https://github.com/wso2/oxygen-ui/issues/558.
1572
+ The switcher has no fixed colors: the hover border, focus ring, current-app border and the
1573
+ Choreo Labs fallback mark all use `palette.primary.main`, and card icons use the neutral text
1574
+ colors, so it follows whichever Oxygen theme is active. The Oxygen themes keep `primary.main` at
1575
+ 3:1 or more against the card surface, as WCAG 2.1 SC 1.4.11 asks of a focus indicator.
1577
1576
 
1578
1577
  ### Keyboard & Accessibility
1579
1578
 
package/.ai/patterns.md CHANGED
@@ -1142,8 +1142,6 @@ function TabNavigation() {
1142
1142
  import {
1143
1143
  OxygenUIThemeProvider,
1144
1144
  OxygenTheme,
1145
- AcrylicOrangeTheme,
1146
- AcrylicPurpleTheme,
1147
1145
  ClassicTheme,
1148
1146
  HighContrastTheme,
1149
1147
  PaleBaseTheme,
@@ -1156,8 +1154,6 @@ import {
1156
1154
 
1157
1155
  const themes = [
1158
1156
  { key: 'default', label: 'Default', theme: OxygenTheme },
1159
- { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
1160
- { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
1161
1157
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
1162
1158
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
1163
1159
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
package/.ai/theming.md CHANGED
@@ -15,19 +15,12 @@
15
15
  | Theme | Import | Description |
16
16
  |-------|--------|-------------|
17
17
  | OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
18
- | Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
19
- | Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
20
18
  | Classic | `ClassicTheme` | Standard flat design |
21
19
  | High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
22
- | Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
23
- | Pale Gray | `PaleGrayTheme` | Soft gray tones for a muted appearance |
24
- | Pale Indigo | `PaleIndigoTheme` | Soft indigo tones for a calm interface |
25
20
 
26
21
  ```tsx
27
22
  import {
28
23
  OxygenTheme,
29
- AcrylicOrangeTheme,
30
- AcrylicPurpleTheme,
31
24
  ClassicTheme,
32
25
  HighContrastTheme,
33
26
  PaleBaseTheme,
@@ -63,8 +56,6 @@ import { OxygenUIThemeProvider, ClassicTheme } from '@wso2/oxygen-ui';
63
56
  import {
64
57
  OxygenUIThemeProvider,
65
58
  OxygenTheme,
66
- AcrylicOrangeTheme,
67
- AcrylicPurpleTheme,
68
59
  ClassicTheme,
69
60
  HighContrastTheme,
70
61
  PaleBaseTheme,
@@ -75,8 +66,6 @@ import {
75
66
  <OxygenUIThemeProvider
76
67
  themes={[
77
68
  { key: 'default', label: 'Default', theme: OxygenTheme },
78
- { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
79
- { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
80
69
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
81
70
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
82
71
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
@@ -20,6 +20,7 @@ Complete API reference for custom Oxygen UI components. For MUI components, refe
20
20
  - [DrawerPanel](#drawerpanel)
21
21
  - [NotificationPanel](#notificationpanel)
22
22
  - [NotificationBanner](#notificationbanner)
23
+ - [PageLoader](#pageloader)
23
24
  - [ParticleBackground](#particlebackground)
24
25
  - [Other Components](#other-components)
25
26
  - [MUI X Namespaces](#mui-x-namespaces)
@@ -70,14 +71,14 @@ interface ThemeOption {
70
71
  import {
71
72
  OxygenUIThemeProvider,
72
73
  OxygenTheme,
73
- AcrylicOrangeTheme,
74
- AcrylicPurpleTheme,
74
+ ClassicTheme,
75
+ HighContrastTheme,
75
76
  } from '@wso2/oxygen-ui';
76
77
 
77
78
  const themes = [
78
79
  { key: 'default', label: 'Default', theme: OxygenTheme },
79
- { key: 'orange', label: 'Orange', theme: AcrylicOrangeTheme },
80
- { key: 'purple', label: 'Purple', theme: AcrylicPurpleTheme },
80
+ { key: 'classic', label: 'Classic', theme: ClassicTheme },
81
+ { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
81
82
  ];
82
83
 
83
84
  <OxygenUIThemeProvider themes={themes} initialTheme="default">
@@ -298,7 +299,7 @@ import { AppShell } from '@wso2/oxygen-ui';
298
299
  </AppShell.Main>
299
300
 
300
301
  <AppShell.Footer>
301
- <Footer companyName="WSO2 LLC" />
302
+ <Footer companyName="Choreo Labs" />
302
303
  </AppShell.Footer>
303
304
 
304
305
  <AppShell.NotificationPanel>
@@ -1065,6 +1066,49 @@ import { NotificationBanner } from '@wso2/oxygen-ui';
1065
1066
 
1066
1067
  ---
1067
1068
 
1069
+ ## PageLoader
1070
+
1071
+ Full-page loader. Animates the Oxygen UI mark in the centre while a background task runs. When `loading` turns `false`, the mark comes to rest, the title slides out to its right (pushing the mark left until the full logo is centred), and after `holdDuration` it calls `onComplete`, fades out and shows `children`. Honours `prefers-reduced-motion`.
1072
+
1073
+ ```tsx
1074
+ import { PageLoader, PageLoaderIcon } from '@wso2/oxygen-ui';
1075
+ ```
1076
+
1077
+ ### Props
1078
+
1079
+ | Prop | Type | Default | Description |
1080
+ |------|------|---------|-------------|
1081
+ | `loading` | `boolean` | required | `true` while the task runs; `false` starts the reveal |
1082
+ | `title` | `ReactNode` | Oxygen UI wordmark | Revealed to the right of the icon. A string is set in the theme font, sized and tracked to match the wordmark |
1083
+ | `icon` | `ReactNode` | `<PageLoaderIcon />` | Replaces the animated mark |
1084
+ | `size` | `number` | `48` | Icon height in px; the title scales with it |
1085
+ | `onComplete` | `() => void` | - | Called once the full logo has been shown, before the fade out |
1086
+ | `onPhaseChange` | `(phase: PageLoaderPhase) => void` | - | `loading` → `settling` → `revealing` → `revealed` → `exiting` → `done` |
1087
+ | `revealDuration` | `number` | `700` | Reveal length in ms |
1088
+ | `holdDuration` | `number` | `600` | How long the full logo stays before `onComplete`, in ms |
1089
+ | `exitDuration` | `number` | `400` | Fade out length in ms |
1090
+ | `fullScreen` | `boolean` | `true` | Cover the viewport; `false` fills a positioned parent |
1091
+ | `loadingLabel` | `string` | `'Loading'` | Screen reader label while loading |
1092
+ | `children` | `ReactNode` | - | Shown once the loader finishes |
1093
+
1094
+ `PageLoaderIcon` takes `size` (default `48`) plus any SVG props, and uses `currentColor`.
1095
+
1096
+ ### Usage
1097
+
1098
+ ```tsx
1099
+ const [loading, setLoading] = useState(true);
1100
+
1101
+ useEffect(() => {
1102
+ Promise.all([loadUser(), loadConfig()]).finally(() => setLoading(false));
1103
+ }, []);
1104
+
1105
+ <PageLoader loading={loading} onComplete={() => track('app-ready')}>
1106
+ <App />
1107
+ </PageLoader>
1108
+ ```
1109
+
1110
+ ---
1111
+
1068
1112
  ## ParticleBackground
1069
1113
 
1070
1114
  Animated particle canvas background with mouse interaction. Adapts to light/dark color scheme.
@@ -1155,7 +1199,7 @@ import { Footer } from '@wso2/oxygen-ui';
1155
1199
 
1156
1200
  ```tsx
1157
1201
  <Footer>
1158
- <Footer.Copyright>© 2025 WSO2 LLC. All rights reserved.</Footer.Copyright>
1202
+ <Footer.Copyright>© 2025 Choreo Labs. All rights reserved.</Footer.Copyright>
1159
1203
  <Footer.Divider />
1160
1204
  <Footer.Version>v2.1.0</Footer.Version>
1161
1205
  <Footer.Link href="/terms">Terms & Conditions</Footer.Link>
@@ -1333,7 +1377,7 @@ import { ContextSwitcher, Header } from '@wso2/oxygen-ui';
1333
1377
  import type { ContextSwitcherValue } from '@wso2/oxygen-ui';
1334
1378
 
1335
1379
  const [value, setValue] = useState<ContextSwitcherValue>({
1336
- organization: 'wso2',
1380
+ organization: 'choreo-labs',
1337
1381
  project: 'finance-web',
1338
1382
  });
1339
1383
 
@@ -1342,7 +1386,7 @@ const [value, setValue] = useState<ContextSwitcherValue>({
1342
1386
  <ContextSwitcher.Level id="organization" label="Organization">
1343
1387
  <ContextSwitcher.Option value="personal">Personal</ContextSwitcher.Option>
1344
1388
  <ContextSwitcher.Group label="Invited organizations">
1345
- <ContextSwitcher.Option value="wso2">WSO2</ContextSwitcher.Option>
1389
+ <ContextSwitcher.Option value="choreo-labs">Choreo Labs</ContextSwitcher.Option>
1346
1390
  <ContextSwitcher.Option value="demo">Demo Organization</ContextSwitcher.Option>
1347
1391
  </ContextSwitcher.Group>
1348
1392
  </ContextSwitcher.Level>
@@ -1443,7 +1487,7 @@ localStorage is per origin (protocol, host and port), so apps on different subdo
1443
1487
 
1444
1488
  ## AppSwitcher
1445
1489
 
1446
- Popover for navigating between WSO2 Cloud platforms.
1490
+ Popover for navigating between Choreo Labs Cloud platforms.
1447
1491
 
1448
1492
  ```tsx
1449
1493
  import { AppSwitcher } from '@wso2/oxygen-ui';
@@ -1459,7 +1503,7 @@ The switcher is composed from sub-components, matching `Header`, `Sidebar` and `
1459
1503
  - `AppSwitcher.Footer` — the `Manage` section; its cards take the `manage` tone automatically
1460
1504
 
1461
1505
  The trigger renders where it sits; every other child goes inside the popover. A typical switcher
1462
- has two sections: a grid of platform cards, and a `Manage` section linking to the WSO2 Cloud tabs
1506
+ has two sections: a grid of platform cards, and a `Manage` section linking to the Choreo Labs Cloud tabs
1463
1507
  (organizations, users, billing).
1464
1508
 
1465
1509
  ### AppSwitcher Props
@@ -1467,7 +1511,7 @@ has two sections: a grid of platform cards, and a `Manage` section linking to th
1467
1511
  | Prop | Type | Default | Description |
1468
1512
  |------|------|---------|-------------|
1469
1513
  | `children` | `ReactNode` | required | Trigger, sections and footer |
1470
- | `width` | `number` | `460` | Popover width (px) from the `sm` breakpoint up |
1514
+ | `width` | `number` | fits content | Popover width (px) from the `sm` breakpoint up; by default it fits the service tiles |
1471
1515
  | `aria-label` | `string` | `'Applications'` | Accessible name for the popover surface |
1472
1516
  | `sx` | `SxProps<Theme>` | - | Additional styles applied to the popover |
1473
1517
 
@@ -1494,7 +1538,7 @@ Extra props, including `aria-*` attributes and `ref`, are forwarded to the under
1494
1538
  |-------|------|---------|-------------|
1495
1539
  | `name` | `string` | required | Platform name (e.g. "API Platform") |
1496
1540
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1497
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1541
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1498
1542
  | `target` | `string` | `'_blank'` | Anchor target for a card with a `url`; such platforms open in a new tab by default |
1499
1543
  | `disabled` | `boolean` | `false` | Blocks navigation (e.g. a platform not yet available) |
1500
1544
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus, e.g. `"Coming soon"` on an unavailable platform |
@@ -1521,7 +1565,7 @@ The footer renders nothing when it has neither children nor links.
1521
1565
  | `key` | `string` | required | Stable identifier, used as the React key |
1522
1566
  | `name` | `string` | required | Link name (e.g. "Users & roles") |
1523
1567
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1524
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1568
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1525
1569
  | `target` | `string` | `'_blank'` | Anchor target |
1526
1570
  | `disabled` | `boolean` | `false` | Blocks navigation |
1527
1571
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus |
@@ -1539,29 +1583,35 @@ import { Building2, CreditCard, UserRoundPlus } from '@wso2/oxygen-ui-icons-reac
1539
1583
  <AppSwitcher>
1540
1584
  <AppSwitcher.Trigger />
1541
1585
  <AppSwitcher.Section label="Platforms">
1542
- <AppSwitcher.App name="Agent Manager" url="https://agent.wso2.com" />
1543
- <AppSwitcher.App name="Identity Platform" url="https://identity.wso2.com" />
1544
- <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
1586
+ <AppSwitcher.App name="Agent Manager" url="https://agent.example.com" />
1587
+ <AppSwitcher.App name="Identity Platform" url="https://identity.example.com" />
1588
+ <AppSwitcher.App name="API Platform" url="https://api.example.com" />
1545
1589
  <AppSwitcher.App name="Analytics Platform" disabled tooltip="Coming soon" />
1546
1590
  </AppSwitcher.Section>
1547
1591
  <AppSwitcher.Footer label="Manage">
1548
- <AppSwitcher.App name="Organizations" url="https://console.wso2.com/organizations"
1592
+ <AppSwitcher.App name="Organizations" url="https://console.example.com/organizations"
1549
1593
  icon={<Building2 size={18} />} />
1550
- <AppSwitcher.App name="Users & roles" url="https://console.wso2.com/users"
1594
+ <AppSwitcher.App name="Users & roles" url="https://console.example.com/users"
1551
1595
  icon={<UserRoundPlus size={18} />} />
1552
- <AppSwitcher.App name="Billing" url="https://console.wso2.com/billing"
1596
+ <AppSwitcher.App name="Billing" url="https://console.example.com/billing"
1553
1597
  icon={<CreditCard size={18} />} />
1554
1598
  </AppSwitcher.Footer>
1555
1599
  </AppSwitcher>
1556
1600
  </Header.Actions>
1557
1601
  ```
1558
1602
 
1559
- ### The platform mark
1603
+ ### Service icons
1560
1604
 
1561
- Every platform card carries the WSO2 mark, the `WSO2` icon from `@wso2/oxygen-ui-icons-react`,
1562
- supplied by the component. Products do not pick their own artwork, so the grid stays uniform
1563
- across the cloud. Pass `icon` only when a destination genuinely needs different artwork — the
1564
- manage links do, which is why they take neutral glyphs.
1605
+ Pass `icon` to give each service a glyph that says what it is (for example `Bot` for Agent
1606
+ Management, `Cpu` for API Management, `ShieldUser` for Identity & Access Management, `Blocks` for
1607
+ Integration). Icons are drawn in `text.secondary` (`text.disabled` when unavailable), so any
1608
+ `@wso2/oxygen-ui-icons-react` icon fits. Without `icon`, a card falls back to the Choreo Labs mark
1609
+ (the `ChoreoLabs` icon) in `palette.primary.main`.
1610
+
1611
+ A section with exactly four cards lays out as a 2×2 grid; any other count uses three columns.
1612
+ Pass `columns` to override. From the `sm` breakpoint up, service cards are square tiles of one
1613
+ fixed size (about 136px) with names wrapping to two lines, and the popover sizes itself around
1614
+ them (about 320px for two columns, 460px for three) unless `width` is set.
1565
1615
 
1566
1616
  ### Card states
1567
1617
 
@@ -1599,7 +1649,7 @@ anchor, so middle-click and "open in new tab" work. Cards target `_blank` by def
1599
1649
  platform is its own deployment; pass `target: '_self'` to navigate in place.
1600
1650
 
1601
1651
  ```tsx
1602
- <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
1652
+ <AppSwitcher.App name="API Platform" url="https://api.example.com" />
1603
1653
  <AppSwitcher.App name="Agent Manager" url="/agent" target="_self" />
1604
1654
  ```
1605
1655
 
@@ -1641,19 +1691,12 @@ Precedence: `component` wins over `url`; `disabled` blocks all navigation regard
1641
1691
  A `_blank` target always keeps `rel="noopener noreferrer"`; `componentProps` cannot
1642
1692
  override it.
1643
1693
 
1644
- ### Brand color
1645
-
1646
- The switcher is WSO2 Cloud chrome, so it uses the brand orange (`#FF7300`) even in a product
1647
- running a different palette: the WSO2 mark, the hover border and the focus ring are all brand
1648
- orange rather than `palette.primary`. There is no variant to opt out of this.
1694
+ ### Theme colors
1649
1695
 
1650
- **Contrast:** `#FF7300` is 2.73:1 on white. It is used only for the mark and the hover border —
1651
- never for text, so the switcher has no brand-colored text to fail WCAG AA. The focus ring is
1652
- author-defined, which WCAG 2.1 SC 1.4.11 holds to 3:1, so it uses a darker brand token
1653
- (`#E56800`, 3.33:1 on the light card and 5.63:1 on the dark one) rather than `main`. The 2.73:1
1654
- mark and hover border still fall under 3:1; that is a property of the brand palette rather than
1655
- of this component (the standard card border, `#E0E0E0`, is 1.32:1), and is tracked in
1656
- https://github.com/wso2/oxygen-ui/issues/558.
1696
+ The switcher has no fixed colors: the hover border, focus ring, current-app border and the
1697
+ Choreo Labs fallback mark all use `palette.primary.main`, and card icons use the neutral text
1698
+ colors, so it follows whichever Oxygen theme is active. The Oxygen themes keep `primary.main` at
1699
+ 3:1 or more against the card surface, as WCAG 2.1 SC 1.4.11 asks of a focus indicator.
1657
1700
 
1658
1701
  ### Keyboard & Accessibility
1659
1702
 
@@ -1142,8 +1142,6 @@ function TabNavigation() {
1142
1142
  import {
1143
1143
  OxygenUIThemeProvider,
1144
1144
  OxygenTheme,
1145
- AcrylicOrangeTheme,
1146
- AcrylicPurpleTheme,
1147
1145
  ClassicTheme,
1148
1146
  HighContrastTheme,
1149
1147
  PaleBaseTheme,
@@ -1156,8 +1154,6 @@ import {
1156
1154
 
1157
1155
  const themes = [
1158
1156
  { key: 'default', label: 'Default', theme: OxygenTheme },
1159
- { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
1160
- { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
1161
1157
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
1162
1158
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
1163
1159
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
@@ -290,7 +290,7 @@ function App() {
290
290
  </AppShell.Main>
291
291
 
292
292
  <AppShell.Footer>
293
- <Footer companyName="WSO2 LLC" />
293
+ <Footer companyName="Choreo Labs" />
294
294
  </AppShell.Footer>
295
295
  </AppShell>
296
296
  </OxygenUIThemeProvider>
@@ -171,7 +171,7 @@ import { AppShell, Header, Sidebar, Footer } from '@wso2/oxygen-ui';
171
171
  </AppShell.Main>
172
172
 
173
173
  <AppShell.Footer>
174
- <Footer companyName="WSO2 LLC" />
174
+ <Footer companyName="Choreo Labs" />
175
175
  </AppShell.Footer>
176
176
  </AppShell>
177
177
  ```
@@ -15,8 +15,6 @@
15
15
  | Theme | Import | Description |
16
16
  |-------|--------|-------------|
17
17
  | OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
18
- | Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
19
- | Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
20
18
  | Classic | `ClassicTheme` | Standard flat design |
21
19
  | High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
22
20
  | Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
@@ -26,8 +24,6 @@
26
24
  ```tsx
27
25
  import {
28
26
  OxygenTheme,
29
- AcrylicOrangeTheme,
30
- AcrylicPurpleTheme,
31
27
  ClassicTheme,
32
28
  HighContrastTheme,
33
29
  PaleBaseTheme,
@@ -63,8 +59,6 @@ import { OxygenUIThemeProvider, ClassicTheme } from '@wso2/oxygen-ui';
63
59
  import {
64
60
  OxygenUIThemeProvider,
65
61
  OxygenTheme,
66
- AcrylicOrangeTheme,
67
- AcrylicPurpleTheme,
68
62
  ClassicTheme,
69
63
  HighContrastTheme,
70
64
  PaleBaseTheme,
@@ -75,8 +69,6 @@ import {
75
69
  <OxygenUIThemeProvider
76
70
  themes={[
77
71
  { key: 'default', label: 'Default', theme: OxygenTheme },
78
- { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
79
- { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
80
72
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
81
73
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
82
74
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @wso2/oxygen-ui
2
2
 
3
- WSO2 Oxygen UI React component library - A comprehensive design system powered by Material-UI with TypeScript support.
3
+ Choreo Oxygen UI React component library - A comprehensive design system powered by Material-UI with TypeScript support.
4
4
 
5
5
  ## Installation
6
6
 
package/bin/cli.js CHANGED
@@ -542,7 +542,7 @@ Examples:
542
542
  npx @wso2/oxygen-ui update # Auto-detects previous mode
543
543
  npx @wso2/oxygen-ui update --claude # Force Claude mode update
544
544
 
545
- Internal (WSO2 maintainers):
545
+ Internal (Choreo Labs maintainers):
546
546
  npx @wso2/oxygen-ui init --claude --internal # Include internal skills
547
547
  npx @wso2/oxygen-ui update --claude --internal # Update with internal skills
548
548