@wso2/oxygen-ui 0.26.0 → 0.27.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.
Files changed (55) hide show
  1. package/.ai/components.md +32 -33
  2. package/.claude/components.md +32 -33
  3. package/.claude/skills/oxygen-layout/SKILL.md +1 -1
  4. package/.claude/skills/oxygen-migrate/SKILL.md +1 -1
  5. package/dist/components/AppShell/AppShell.d.ts +1 -1
  6. package/dist/components/AppShell/AppShellFooter.d.ts +1 -1
  7. package/dist/components/AppSwitcher/AppSwitcher.d.ts +12 -9
  8. package/dist/components/AppSwitcher/AppSwitcherApp.d.ts +19 -10
  9. package/dist/components/AppSwitcher/AppSwitcherFooter.d.ts +6 -6
  10. package/dist/components/AppSwitcher/AppSwitcherSection.d.ts +21 -7
  11. package/dist/components/AppSwitcher/AppSwitcherTrigger.d.ts +1 -1
  12. package/dist/components/Button/Button.d.ts +19 -0
  13. package/dist/components/Button/index.d.ts +2 -0
  14. package/dist/components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
  15. package/dist/components/Footer/FooterLink.d.ts +6 -2
  16. package/dist/components/HeaderBreadcrumbs/persistence.d.ts +1 -1
  17. package/dist/components/HeaderBreadcrumbs/useHeaderBreadcrumbs.d.ts +1 -1
  18. package/dist/components/StatusIllustration/StatusIllustration.d.ts +49 -0
  19. package/dist/components/StatusIllustration/illustrationStyles.d.ts +212 -0
  20. package/dist/components/StatusIllustration/illustrations/FailedIllustration.d.ts +3 -0
  21. package/dist/components/StatusIllustration/illustrations/Http200Illustration.d.ts +3 -0
  22. package/dist/components/StatusIllustration/illustrations/Http201Illustration.d.ts +3 -0
  23. package/dist/components/StatusIllustration/illustrations/Http204Illustration.d.ts +3 -0
  24. package/dist/components/StatusIllustration/illustrations/Http301Illustration.d.ts +3 -0
  25. package/dist/components/StatusIllustration/illustrations/Http302Illustration.d.ts +3 -0
  26. package/dist/components/StatusIllustration/illustrations/Http304Illustration.d.ts +3 -0
  27. package/dist/components/StatusIllustration/illustrations/Http400Illustration.d.ts +3 -0
  28. package/dist/components/StatusIllustration/illustrations/Http401Illustration.d.ts +3 -0
  29. package/dist/components/StatusIllustration/illustrations/Http403Illustration.d.ts +3 -0
  30. package/dist/components/StatusIllustration/illustrations/Http404Illustration.d.ts +3 -0
  31. package/dist/components/StatusIllustration/illustrations/Http405Illustration.d.ts +3 -0
  32. package/dist/components/StatusIllustration/illustrations/Http408Illustration.d.ts +3 -0
  33. package/dist/components/StatusIllustration/illustrations/Http409Illustration.d.ts +3 -0
  34. package/dist/components/StatusIllustration/illustrations/Http422Illustration.d.ts +3 -0
  35. package/dist/components/StatusIllustration/illustrations/Http429Illustration.d.ts +3 -0
  36. package/dist/components/StatusIllustration/illustrations/Http500Illustration.d.ts +3 -0
  37. package/dist/components/StatusIllustration/illustrations/Http502Illustration.d.ts +3 -0
  38. package/dist/components/StatusIllustration/illustrations/Http503Illustration.d.ts +3 -0
  39. package/dist/components/StatusIllustration/illustrations/Http504Illustration.d.ts +3 -0
  40. package/dist/components/StatusIllustration/illustrations/MailSentIllustration.d.ts +3 -0
  41. package/dist/components/StatusIllustration/illustrations/NoRecordsIllustration.d.ts +3 -0
  42. package/dist/components/StatusIllustration/illustrations/UnsuccessfulIllustration.d.ts +3 -0
  43. package/dist/components/StatusIllustration/illustrations/index.d.ts +12 -0
  44. package/dist/components/StatusIllustration/index.d.ts +2 -0
  45. package/dist/components/StatusIllustration/types.d.ts +2 -0
  46. package/dist/components/StatusIllustration/useIllustrationId.d.ts +5 -0
  47. package/dist/components/TimeRangeFilter/TimeRangeFilter.d.ts +3 -2
  48. package/dist/components/TrialBadge/TrialBadge.d.ts +8 -8
  49. package/dist/components/index.d.ts +4 -0
  50. package/dist/index.d.ts +3 -2
  51. package/dist/index.js +2583 -1155
  52. package/dist/index.js.map +4 -4
  53. package/dist/styles/OxygenThemeBase.d.ts +150 -0
  54. package/package.json +2 -2
  55. package/dist/components/AppSwitcher/brand.d.ts +0 -49
package/.ai/components.md CHANGED
@@ -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
 
@@ -299,7 +299,7 @@ import { AppShell } from '@wso2/oxygen-ui';
299
299
  </AppShell.Main>
300
300
 
301
301
  <AppShell.Footer>
302
- <Footer companyName="WSO2 LLC" />
302
+ <Footer companyName="Choreo Labs" />
303
303
  </AppShell.Footer>
304
304
 
305
305
  <AppShell.NotificationPanel>
@@ -1199,7 +1199,7 @@ import { Footer } from '@wso2/oxygen-ui';
1199
1199
 
1200
1200
  ```tsx
1201
1201
  <Footer>
1202
- <Footer.Copyright>© 2025 WSO2 LLC. All rights reserved.</Footer.Copyright>
1202
+ <Footer.Copyright>© 2025 Choreo Labs. All rights reserved.</Footer.Copyright>
1203
1203
  <Footer.Divider />
1204
1204
  <Footer.Version>v2.1.0</Footer.Version>
1205
1205
  <Footer.Link href="/terms">Terms & Conditions</Footer.Link>
@@ -1377,7 +1377,7 @@ import { ContextSwitcher, Header } from '@wso2/oxygen-ui';
1377
1377
  import type { ContextSwitcherValue } from '@wso2/oxygen-ui';
1378
1378
 
1379
1379
  const [value, setValue] = useState<ContextSwitcherValue>({
1380
- organization: 'wso2',
1380
+ organization: 'choreo-labs',
1381
1381
  project: 'finance-web',
1382
1382
  });
1383
1383
 
@@ -1386,7 +1386,7 @@ const [value, setValue] = useState<ContextSwitcherValue>({
1386
1386
  <ContextSwitcher.Level id="organization" label="Organization">
1387
1387
  <ContextSwitcher.Option value="personal">Personal</ContextSwitcher.Option>
1388
1388
  <ContextSwitcher.Group label="Invited organizations">
1389
- <ContextSwitcher.Option value="wso2">WSO2</ContextSwitcher.Option>
1389
+ <ContextSwitcher.Option value="choreo-labs">Choreo Labs</ContextSwitcher.Option>
1390
1390
  <ContextSwitcher.Option value="demo">Demo Organization</ContextSwitcher.Option>
1391
1391
  </ContextSwitcher.Group>
1392
1392
  </ContextSwitcher.Level>
@@ -1487,7 +1487,7 @@ localStorage is per origin (protocol, host and port), so apps on different subdo
1487
1487
 
1488
1488
  ## AppSwitcher
1489
1489
 
1490
- Popover for navigating between WSO2 Cloud platforms.
1490
+ Popover for navigating between Choreo Labs Cloud platforms.
1491
1491
 
1492
1492
  ```tsx
1493
1493
  import { AppSwitcher } from '@wso2/oxygen-ui';
@@ -1503,7 +1503,7 @@ The switcher is composed from sub-components, matching `Header`, `Sidebar` and `
1503
1503
  - `AppSwitcher.Footer` — the `Manage` section; its cards take the `manage` tone automatically
1504
1504
 
1505
1505
  The trigger renders where it sits; every other child goes inside the popover. A typical switcher
1506
- 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
1507
1507
  (organizations, users, billing).
1508
1508
 
1509
1509
  ### AppSwitcher Props
@@ -1511,7 +1511,7 @@ has two sections: a grid of platform cards, and a `Manage` section linking to th
1511
1511
  | Prop | Type | Default | Description |
1512
1512
  |------|------|---------|-------------|
1513
1513
  | `children` | `ReactNode` | required | Trigger, sections and footer |
1514
- | `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 |
1515
1515
  | `aria-label` | `string` | `'Applications'` | Accessible name for the popover surface |
1516
1516
  | `sx` | `SxProps<Theme>` | - | Additional styles applied to the popover |
1517
1517
 
@@ -1538,7 +1538,7 @@ Extra props, including `aria-*` attributes and `ref`, are forwarded to the under
1538
1538
  |-------|------|---------|-------------|
1539
1539
  | `name` | `string` | required | Platform name (e.g. "API Platform") |
1540
1540
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1541
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1541
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1542
1542
  | `target` | `string` | `'_blank'` | Anchor target for a card with a `url`; such platforms open in a new tab by default |
1543
1543
  | `disabled` | `boolean` | `false` | Blocks navigation (e.g. a platform not yet available) |
1544
1544
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus, e.g. `"Coming soon"` on an unavailable platform |
@@ -1565,7 +1565,7 @@ The footer renders nothing when it has neither children nor links.
1565
1565
  | `key` | `string` | required | Stable identifier, used as the React key |
1566
1566
  | `name` | `string` | required | Link name (e.g. "Users & roles") |
1567
1567
  | `url` | `string` | - | Destination URL; renders the card as an anchor |
1568
- | `icon` | `ReactNode` | WSO2 mark | Mark shown above the name |
1568
+ | `icon` | `ReactNode` | Choreo Labs mark | Mark shown above the name |
1569
1569
  | `target` | `string` | `'_blank'` | Anchor target |
1570
1570
  | `disabled` | `boolean` | `false` | Blocks navigation |
1571
1571
  | `tooltip` | `ReactNode` | - | Tooltip on hover/focus |
@@ -1583,29 +1583,35 @@ import { Building2, CreditCard, UserRoundPlus } from '@wso2/oxygen-ui-icons-reac
1583
1583
  <AppSwitcher>
1584
1584
  <AppSwitcher.Trigger />
1585
1585
  <AppSwitcher.Section label="Platforms">
1586
- <AppSwitcher.App name="Agent Manager" url="https://agent.wso2.com" />
1587
- <AppSwitcher.App name="Identity Platform" url="https://identity.wso2.com" />
1588
- <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" />
1589
1589
  <AppSwitcher.App name="Analytics Platform" disabled tooltip="Coming soon" />
1590
1590
  </AppSwitcher.Section>
1591
1591
  <AppSwitcher.Footer label="Manage">
1592
- <AppSwitcher.App name="Organizations" url="https://console.wso2.com/organizations"
1592
+ <AppSwitcher.App name="Organizations" url="https://console.example.com/organizations"
1593
1593
  icon={<Building2 size={18} />} />
1594
- <AppSwitcher.App name="Users & roles" url="https://console.wso2.com/users"
1594
+ <AppSwitcher.App name="Users & roles" url="https://console.example.com/users"
1595
1595
  icon={<UserRoundPlus size={18} />} />
1596
- <AppSwitcher.App name="Billing" url="https://console.wso2.com/billing"
1596
+ <AppSwitcher.App name="Billing" url="https://console.example.com/billing"
1597
1597
  icon={<CreditCard size={18} />} />
1598
1598
  </AppSwitcher.Footer>
1599
1599
  </AppSwitcher>
1600
1600
  </Header.Actions>
1601
1601
  ```
1602
1602
 
1603
- ### The platform mark
1603
+ ### Service icons
1604
1604
 
1605
- Every platform card carries the WSO2 mark, the `WSO2` icon from `@wso2/oxygen-ui-icons-react`,
1606
- supplied by the component. Products do not pick their own artwork, so the grid stays uniform
1607
- across the cloud. Pass `icon` only when a destination genuinely needs different artwork — the
1608
- 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.
1609
1615
 
1610
1616
  ### Card states
1611
1617
 
@@ -1643,7 +1649,7 @@ anchor, so middle-click and "open in new tab" work. Cards target `_blank` by def
1643
1649
  platform is its own deployment; pass `target: '_self'` to navigate in place.
1644
1650
 
1645
1651
  ```tsx
1646
- <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
1652
+ <AppSwitcher.App name="API Platform" url="https://api.example.com" />
1647
1653
  <AppSwitcher.App name="Agent Manager" url="/agent" target="_self" />
1648
1654
  ```
1649
1655
 
@@ -1685,19 +1691,12 @@ Precedence: `component` wins over `url`; `disabled` blocks all navigation regard
1685
1691
  A `_blank` target always keeps `rel="noopener noreferrer"`; `componentProps` cannot
1686
1692
  override it.
1687
1693
 
1688
- ### Brand color
1689
-
1690
- The switcher is WSO2 Cloud chrome, so it uses the brand orange (`#FF7300`) even in a product
1691
- running a different palette: the WSO2 mark, the hover border and the focus ring are all brand
1692
- orange rather than `palette.primary`. There is no variant to opt out of this.
1694
+ ### Theme colors
1693
1695
 
1694
- **Contrast:** `#FF7300` is 2.73:1 on white. It is used only for the mark and the hover border —
1695
- never for text, so the switcher has no brand-colored text to fail WCAG AA. The focus ring is
1696
- author-defined, which WCAG 2.1 SC 1.4.11 holds to 3:1, so it uses a darker brand token
1697
- (`#E56800`, 3.33:1 on the light card and 5.63:1 on the dark one) rather than `main`. The 2.73:1
1698
- mark and hover border still fall under 3:1; that is a property of the brand palette rather than
1699
- of this component (the standard card border, `#E0E0E0`, is 1.32:1), and is tracked in
1700
- 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.
1701
1700
 
1702
1701
  ### Keyboard & Accessibility
1703
1702
 
@@ -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
  ```
@@ -55,7 +55,7 @@ export interface AppShellProps extends UseAppShellOptions {
55
55
  * <MyPage /> {/* Can use useAppShell()
56
56
  * </AppShell.Main>
57
57
  * <AppShell.Footer>
58
- * <Footer companyName="WSO2 LLC" />
58
+ * <Footer companyName="Choreo Labs" />
59
59
  * </AppShell.Footer>
60
60
  * </AppShell>
61
61
  * ```
@@ -32,7 +32,7 @@ export interface AppShellFooterProps {
32
32
  * ```tsx
33
33
  * <AppShell>
34
34
  * <AppShell.Footer>
35
- * <Footer companyName="WSO2 LLC" />
35
+ * <Footer companyName="Choreo Labs" />
36
36
  * </AppShell.Footer>
37
37
  * </AppShell>
38
38
  * ```
@@ -27,7 +27,10 @@ import { AppSwitcherFooter } from './AppSwitcherFooter';
27
27
  export interface AppSwitcherProps {
28
28
  /** Switcher content (Trigger, Section, App, Footer) */
29
29
  children: React.ReactNode;
30
- /** Popover width in pixels from the `sm` breakpoint up (default: 460) */
30
+ /**
31
+ * Popover width in pixels from the `sm` breakpoint up. By default the popover
32
+ * fits its content: about 320px for two columns of services, 460px for three.
33
+ */
31
34
  width?: number;
32
35
  /** Accessible name for the popover surface (default: `"Applications"`) */
33
36
  'aria-label'?: string;
@@ -39,7 +42,7 @@ export interface AppSwitcherProps {
39
42
  unavailableLabel?: React.ReactNode;
40
43
  }
41
44
  /**
42
- * AppSwitcher - Popover for navigating between WSO2 Cloud applications.
45
+ * AppSwitcher - Popover for navigating between Choreo Labs Cloud applications.
43
46
  *
44
47
  * A compound component pairing a grid icon button in the header with a popover
45
48
  * listing the available platforms. The trigger renders in place; every other
@@ -61,7 +64,7 @@ export interface AppSwitcherProps {
61
64
  * ```tsx
62
65
  * <AppSwitcher currentAppId="agent-manager">
63
66
  * <AppSwitcher.Trigger label="Switch platforms" />
64
- * <AppSwitcher.Section label="Categories" apps={platforms} loading={isLoading} />
67
+ * <AppSwitcher.Section label="Services" apps={platforms} loading={isLoading} />
65
68
  * <AppSwitcher.Footer columns={2} links={cloudLinks} loading={isLoading} />
66
69
  * </AppSwitcher>
67
70
  * ```
@@ -71,14 +74,14 @@ export interface AppSwitcherProps {
71
74
  * <Header.Actions>
72
75
  * <AppSwitcher>
73
76
  * <AppSwitcher.Trigger />
74
- * <AppSwitcher.Section label="Categories">
75
- * <AppSwitcher.App name="Agent Manager" url="https://agent.wso2.com" />
76
- * <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
77
- * <AppSwitcher.App name="Analytics" disabled tooltip="Coming soon" />
77
+ * <AppSwitcher.Section label="Services">
78
+ * <AppSwitcher.App name="Agent Management" url="https://agent.example.com" icon={<Bot size={32} />} />
79
+ * <AppSwitcher.App name="API Management" url="https://api.example.com" icon={<Cpu size={32} />} />
80
+ * <AppSwitcher.App name="Analytics" disabled tooltip="Coming soon" icon={<ChartLine size={32} />} />
78
81
  * </AppSwitcher.Section>
79
82
  * <AppSwitcher.Footer columns={2}>
80
- * <AppSwitcher.App name="Cloud home" url="https://console.wso2.com" icon={<Home size={16} />} />
81
- * <AppSwitcher.App name="Settings" url="https://console.wso2.com/settings" icon={<Settings size={16} />} />
83
+ * <AppSwitcher.App name="Cloud home" url="https://console.example.com" icon={<Home size={16} />} />
84
+ * <AppSwitcher.App name="Settings" url="https://console.example.com/settings" icon={<Settings size={16} />} />
82
85
  * </AppSwitcher.Footer>
83
86
  * </AppSwitcher>
84
87
  * </Header.Actions>
@@ -27,25 +27,30 @@ import * as React from 'react';
27
27
  * Elevation:
28
28
  * - `shadows[2]` - Hover elevation
29
29
  *
30
- * Brand (see `brand.ts`):
31
- * - `APP_SWITCHER_BRAND.main` - Hover border
32
- * - `APP_SWITCHER_BRAND.focus` - Focus ring and the current app's border
30
+ * - `primary.main` - Hover border, focus ring, the current app's border and the Choreo Labs fallback mark
31
+ * - `text.secondary` / `text.disabled` - Card icons, and any mark of an unavailable card
33
32
  *
34
33
  * Typography / sizing:
35
34
  * - `typography.body2` - Name text
36
35
  * - `spacing()` / `shape.borderRadius` - Card and tile dimensions
37
36
  *
38
- * Layout follows the agreed WSO2 Cloud design: the mark sits centered above a
37
+ * Layout follows the agreed Choreo Labs Cloud design: the mark sits centered above a
39
38
  * centered name. A card is a destination, so its whole
40
39
  * surface is the hit target.
41
40
  */
42
41
  /**
43
42
  * Visual treatments a card can take.
44
43
  *
45
- * - `platform` - Large brand-colored mark, used for the platform grid
44
+ * - `platform` - Large mark, used for the service grid
46
45
  * - `manage` - Smaller neutral mark on a grey disc, used for the manage row
47
46
  */
48
47
  export type AppSwitcherAppTone = 'platform' | 'manage';
48
+ /**
49
+ * Smallest width of a service tile from the `sm` breakpoint up, in
50
+ * `theme.spacing` units. The grid uses it as its column minimum, so the popover
51
+ * sizes itself around tiles of this width.
52
+ */
53
+ export declare const APP_TILE_SIZE = 17;
49
54
  /** Card height per tone, in `theme.spacing` units. Shared with the loading placeholders. */
50
55
  export declare const APP_CARD_HEIGHT: Record<AppSwitcherAppTone, number>;
51
56
  /**
@@ -54,7 +59,7 @@ export declare const APP_CARD_HEIGHT: Record<AppSwitcherAppTone, number>;
54
59
  export interface AppSwitcherAppProps {
55
60
  /** Identifier matched against the switcher's `currentAppId`. Not set as the DOM `id`. */
56
61
  id?: string;
57
- /** Application name (e.g. `"API Platform"`) */
62
+ /** Application name (e.g. `"API Management"`) */
58
63
  name: string;
59
64
  /**
60
65
  * Destination URL. The card renders as an anchor pointing at it.
@@ -65,7 +70,11 @@ export interface AppSwitcherAppProps {
65
70
  * card disabled.
66
71
  */
67
72
  url?: string | null;
68
- /** Mark shown above the name (default: the WSO2 logo) */
73
+ /**
74
+ * Mark shown above the name (default: the Choreo Labs mark). Give each service a
75
+ * matching glyph, e.g. `<Bot size={32} />` for Agent Management; it is drawn
76
+ * in a neutral color, so any icon fits.
77
+ */
69
78
  icon?: React.ReactNode;
70
79
  /** Visual treatment (default: `"manage"` inside the footer, `"platform"` elsewhere) */
71
80
  tone?: AppSwitcherAppTone;
@@ -123,9 +132,9 @@ export interface AppSwitcherAppItem extends Omit<AppSwitcherAppProps, 'id'> {
123
132
  *
124
133
  * @example
125
134
  * ```tsx
126
- * <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
127
- * <AppSwitcher.App name="Analytics Platform" disabled tooltip="Coming soon" />
128
- * <AppSwitcher.App id="agent-manager" name="Agent Manager" url="https://agent.wso2.com" />
135
+ * <AppSwitcher.App name="API Management" url="https://api.example.com" icon={<Cpu size={32} />} />
136
+ * <AppSwitcher.App name="Analytics" disabled tooltip="Coming soon" icon={<ChartLine size={32} />} />
137
+ * <AppSwitcher.App id="agent-management" name="Agent Management" url="https://agent.example.com" icon={<Bot size={32} />} />
129
138
  * ```
130
139
  */
131
140
  export declare const AppSwitcherApp: React.ForwardRefExoticComponent<AppSwitcherAppProps & React.RefAttributes<HTMLElement>>;
@@ -26,7 +26,7 @@ import type { AppSwitcherAppItem } from './AppSwitcherApp';
26
26
  * row apart from the platform grid above it without reading as a grey block
27
27
  */
28
28
  /**
29
- * A single WSO2 Cloud destination in the footer.
29
+ * A single Choreo Labs Cloud destination in the footer.
30
30
  *
31
31
  * Same shape as `AppSwitcherAppItem`, but `id` is optional since existing
32
32
  * links use `key`. A missing `url` keeps its old behavior, so existing
@@ -44,11 +44,11 @@ export interface AppSwitcherFooterLink extends Omit<AppSwitcherAppItem, 'id'> {
44
44
  export interface AppSwitcherFooterProps {
45
45
  /** Manage cards (typically `AppSwitcher.App` elements) */
46
46
  children?: React.ReactNode;
47
- /** WSO2 Cloud destinations rendered as cards, as an alternative to `children` */
47
+ /** Choreo Labs Cloud destinations rendered as cards, as an alternative to `children` */
48
48
  links?: AppSwitcherFooterLink[];
49
49
  /**
50
50
  * Heading above the links. Omit it to show the links under the divider alone,
51
- * as in the WSO2 Cloud design.
51
+ * as in the Choreo Labs Cloud design.
52
52
  */
53
53
  label?: string;
54
54
  /**
@@ -66,7 +66,7 @@ export interface AppSwitcherFooterProps {
66
66
  /**
67
67
  * AppSwitcher.Footer - Bottom section of the app switcher popover.
68
68
  *
69
- * Holds the WSO2 Cloud destinations (e.g. Cloud home and Settings) below a
69
+ * Holds the Choreo Labs Cloud destinations (e.g. Cloud home and Settings) below a
70
70
  * divider, as a grid of cards, using the same card as the platform grid so both rows
71
71
  * behave identically. The neutral mark and lighter type keep them visually
72
72
  * secondary to the platforms above.
@@ -77,8 +77,8 @@ export interface AppSwitcherFooterProps {
77
77
  * @example
78
78
  * ```tsx
79
79
  * <AppSwitcher.Footer columns={2}>
80
- * <AppSwitcher.App name="Cloud home" url="https://console.wso2.com" icon={<Home size={16} />} />
81
- * <AppSwitcher.App name="Settings" url="https://console.wso2.com/settings" icon={<Settings size={16} />} />
80
+ * <AppSwitcher.App name="Cloud home" url="https://console.example.com" icon={<Home size={16} />} />
81
+ * <AppSwitcher.App name="Settings" url="https://console.example.com/settings" icon={<Settings size={16} />} />
82
82
  * </AppSwitcher.Footer>
83
83
  * ```
84
84
  */
@@ -16,7 +16,7 @@
16
16
  * under the License.
17
17
  */
18
18
  import * as React from 'react';
19
- import type { AppSwitcherAppItem } from './AppSwitcherApp';
19
+ import type { AppSwitcherAppItem, AppSwitcherAppTone } from './AppSwitcherApp';
20
20
  /**
21
21
  * Renders data items as cards.
22
22
  *
@@ -42,15 +42,27 @@ export interface AppSwitcherSectionProps {
42
42
  * `url`, `onClick` or `component` renders disabled.
43
43
  */
44
44
  apps?: AppSwitcherAppItem[];
45
- /** Section heading, rendered as an uppercase label (e.g. `"Categories"`) */
45
+ /** Section heading, rendered as an uppercase label (e.g. `"Services"`) */
46
46
  label?: string;
47
47
  /**
48
48
  * Accessible name for the grid when there is no visible `label`. Ignored
49
49
  * when `label` is set, since the heading already names the grid.
50
50
  */
51
51
  'aria-label'?: string;
52
- /** Number of grid columns from the `sm` breakpoint up (default: 3) */
52
+ /**
53
+ * Number of grid columns from the `sm` breakpoint up. Defaults to 3, or to 2
54
+ * when the section holds exactly four cards, so four lay out as an even 2×2
55
+ * grid rather than a row of three with one left over.
56
+ */
53
57
  columns?: number;
58
+ /**
59
+ * Visual treatment for the section and its cards (default: `"manage"` inside
60
+ * the footer, `"platform"` elsewhere). Use `"manage"` for the Choreo Labs Cloud row
61
+ * (Cloud home, organization settings) placed above the services: its cards
62
+ * take the smaller neutral glyph, and a divider separates it from the next
63
+ * section.
64
+ */
65
+ tone?: AppSwitcherAppTone;
54
66
  /** Shows placeholder cards, e.g. while the apps are fetched */
55
67
  loading?: boolean;
56
68
  /** Number of placeholder cards while `loading` (default: one row, `columns`) */
@@ -65,12 +77,14 @@ export interface AppSwitcherSectionProps {
65
77
  *
66
78
  * @example
67
79
  * ```tsx
68
- * <AppSwitcher.Section label="Categories">
69
- * <AppSwitcher.App name="Agent Manager" url="https://agent.wso2.com" />
70
- * <AppSwitcher.App name="API Platform" url="https://api.wso2.com" />
80
+ * <AppSwitcher.Section label="Services">
81
+ * <AppSwitcher.App name="Agent Management" url="https://agent.example.com" icon={<Bot size={32} />} />
82
+ * <AppSwitcher.App name="API Management" url="https://api.example.com" icon={<Cpu size={32} />} />
71
83
  * </AppSwitcher.Section>
72
84
  *
73
- * <AppSwitcher.Section label="Categories" apps={platforms} loading={isLoading} />
85
+ * <AppSwitcher.Section label="Services" apps={services} loading={isLoading} />
86
+ *
87
+ * <AppSwitcher.Section aria-label="Manage" tone="manage" columns={2} apps={cloudLinks} />
74
88
  * ```
75
89
  */
76
90
  export declare const AppSwitcherSection: React.FC<AppSwitcherSectionProps>;
@@ -29,7 +29,7 @@ export interface AppSwitcherTriggerProps extends Omit<React.ComponentProps<typeo
29
29
  /**
30
30
  * AppSwitcher.Trigger - Icon button that opens the app switcher popover.
31
31
  *
32
- * Renders the grid ("grip") icon used across WSO2 Cloud headers. Extra props,
32
+ * Renders the grid ("grip") icon used across Choreo Labs Cloud headers. Extra props,
33
33
  * including `aria-*` attributes and `ref`, are forwarded to the underlying button.
34
34
  *
35
35
  * @example
@@ -0,0 +1,19 @@
1
+ import MuiButton, { type ButtonProps as MuiButtonProps } from '@mui/material/Button';
2
+ declare module '@mui/material/Button' {
3
+ interface ButtonOwnProps {
4
+ /**
5
+ * Animates the gradient of a `color="gradient"` button: the outline of an `outlined` button
6
+ * circles around it, and the fill of a `contained` button or the label of a `text` button flows
7
+ * across. Ignored for other colors, and held still when the user prefers reduced motion.
8
+ * @default false
9
+ */
10
+ animated?: boolean;
11
+ }
12
+ }
13
+ export type ButtonProps = MuiButtonProps;
14
+ /**
15
+ * MUI's Button, with an `animated` prop for the `gradient` color. The prop is turned into a class
16
+ * rather than passed on, since MUI would otherwise forward it to the DOM element.
17
+ */
18
+ declare const Button: typeof MuiButton;
19
+ export default Button;
@@ -0,0 +1,2 @@
1
+ export { default } from './Button';
2
+ export * from './Button';
@@ -52,7 +52,7 @@ export interface ContextSwitcherProps extends Omit<React.ComponentPropsWithoutRe
52
52
  * <Header.Switchers>
53
53
  * <ContextSwitcher value={value} onChange={setValue}>
54
54
  * <ContextSwitcher.Level id="organization" label="Organization">
55
- * <ContextSwitcher.Option value="wso2">WSO2</ContextSwitcher.Option>
55
+ * <ContextSwitcher.Option value="choreo-labs">Choreo Labs</ContextSwitcher.Option>
56
56
  * </ContextSwitcher.Level>
57
57
  * <ContextSwitcher.Level id="project" label="Project">
58
58
  * <ContextSwitcher.Option value="finance-web">Finance Web</ContextSwitcher.Option>