@wso2/oxygen-ui 0.0.1-alpha.6 → 0.1.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 (169) hide show
  1. package/.ai/AGENTS.md +78 -0
  2. package/.ai/components.md +798 -0
  3. package/.ai/migration.md +279 -0
  4. package/.ai/patterns.md +1185 -0
  5. package/.ai/theming.md +318 -0
  6. package/.claude/components.md +798 -0
  7. package/.claude/migration.md +279 -0
  8. package/.claude/patterns.md +1185 -0
  9. package/.claude/skills/oxygen-component/SKILL.md +141 -0
  10. package/.claude/skills/oxygen-form/SKILL.md +410 -0
  11. package/.claude/skills/oxygen-layout/SKILL.md +233 -0
  12. package/.claude/skills/oxygen-migrate/SKILL.md +277 -0
  13. package/.claude/theming.md +318 -0
  14. package/README.md +182 -2
  15. package/bin/cli.js +480 -0
  16. package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
  17. package/dist/animations/ParticleBackground/index.d.ts +19 -0
  18. package/dist/animations/index.d.ts +18 -0
  19. package/dist/components/AppShell/AppShell.d.ts +69 -0
  20. package/dist/components/AppShell/AppShellFooter.d.ts +41 -0
  21. package/dist/components/AppShell/AppShellMain.d.ts +41 -0
  22. package/dist/components/AppShell/AppShellNavbar.d.ts +41 -0
  23. package/dist/components/AppShell/AppShellNotificationPanel.d.ts +41 -0
  24. package/dist/components/AppShell/AppShellSidebar.d.ts +41 -0
  25. package/dist/components/AppShell/index.d.ts +29 -0
  26. package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
  27. package/dist/components/CodeBlock/index.d.ts +19 -0
  28. package/dist/components/ColorSchemeImage/index.d.ts +19 -0
  29. package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
  30. package/dist/components/ComplexSelect/ComplexSelect.d.ts +25 -0
  31. package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +4 -0
  32. package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +7 -0
  33. package/dist/components/ComplexSelect/ComplexSelectMenuItem.d.ts +16 -0
  34. package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +7 -0
  35. package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +7 -0
  36. package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +8 -0
  37. package/dist/components/ComplexSelect/index.d.ts +21 -0
  38. package/dist/components/Footer/Footer.d.ts +71 -0
  39. package/dist/components/Footer/index.d.ts +19 -0
  40. package/dist/components/Form/CardButton.d.ts +30 -0
  41. package/dist/components/Form/ElementWrapper.d.ts +24 -0
  42. package/dist/components/Form/Section.d.ts +21 -0
  43. package/dist/components/Form/Stack.d.ts +19 -0
  44. package/dist/components/Form/Typography.d.ts +21 -0
  45. package/dist/components/Form/Wizard.d.ts +27 -0
  46. package/dist/components/Form/index.d.ts +38 -0
  47. package/dist/components/Header/Header.d.ts +89 -0
  48. package/dist/components/Header/HeaderActions.d.ts +42 -0
  49. package/dist/components/Header/HeaderBrand.d.ts +48 -0
  50. package/dist/components/Header/HeaderBrandLogo.d.ts +45 -0
  51. package/dist/components/Header/HeaderBrandTitle.d.ts +45 -0
  52. package/dist/components/Header/HeaderSwitchers.d.ts +45 -0
  53. package/dist/components/Header/HeaderToggle.d.ts +52 -0
  54. package/dist/components/Header/context.d.ts +34 -0
  55. package/dist/components/Header/index.d.ts +33 -0
  56. package/dist/components/ListingTable/ListingTable/ListingTable.d.ts +54 -0
  57. package/dist/components/ListingTable/ListingTable/ListingTableBody.d.ts +6 -0
  58. package/dist/components/ListingTable/ListingTable/ListingTableCell.d.ts +15 -0
  59. package/dist/components/ListingTable/ListingTable/ListingTableContainer.d.ts +17 -0
  60. package/dist/components/ListingTable/ListingTable/ListingTableFooter.d.ts +6 -0
  61. package/dist/components/ListingTable/ListingTable/ListingTableHead.d.ts +6 -0
  62. package/dist/components/ListingTable/ListingTable/ListingTableRow.d.ts +18 -0
  63. package/dist/components/ListingTable/ListingTable/index.d.ts +21 -0
  64. package/dist/components/ListingTable/ListingTableProvider.d.ts +28 -0
  65. package/dist/components/ListingTable/context.d.ts +78 -0
  66. package/dist/components/ListingTable/index.d.ts +22 -0
  67. package/dist/components/ListingTable/shared/ListingTableCellIcon.d.ts +31 -0
  68. package/dist/components/ListingTable/shared/ListingTableDensityControl.d.ts +26 -0
  69. package/dist/components/ListingTable/shared/ListingTableEmptyState.d.ts +32 -0
  70. package/dist/components/ListingTable/shared/ListingTableRowActions.d.ts +24 -0
  71. package/dist/components/ListingTable/shared/ListingTableSortLabel.d.ts +37 -0
  72. package/dist/components/ListingTable/shared/ListingTableToolbar.d.ts +52 -0
  73. package/dist/components/ListingTable/shared/index.d.ts +14 -0
  74. package/dist/components/ListingTable/shared/types.d.ts +5 -0
  75. package/dist/components/NotificationBanner/NotificationBanner.d.ts +69 -0
  76. package/dist/components/NotificationBanner/index.d.ts +19 -0
  77. package/dist/components/NotificationPanel/NotificationActions.d.ts +44 -0
  78. package/dist/components/NotificationPanel/NotificationEmptyState.d.ts +41 -0
  79. package/dist/components/NotificationPanel/NotificationHeader.d.ts +47 -0
  80. package/dist/components/NotificationPanel/NotificationHeaderBadge.d.ts +46 -0
  81. package/dist/components/NotificationPanel/NotificationHeaderClose.d.ts +46 -0
  82. package/dist/components/NotificationPanel/NotificationHeaderIcon.d.ts +43 -0
  83. package/dist/components/NotificationPanel/NotificationHeaderTitle.d.ts +43 -0
  84. package/dist/components/NotificationPanel/NotificationItem.d.ts +64 -0
  85. package/dist/components/NotificationPanel/NotificationItemAction.d.ts +46 -0
  86. package/dist/components/NotificationPanel/NotificationItemAvatar.d.ts +44 -0
  87. package/dist/components/NotificationPanel/NotificationItemContext.d.ts +52 -0
  88. package/dist/components/NotificationPanel/NotificationItemMessage.d.ts +47 -0
  89. package/dist/components/NotificationPanel/NotificationItemTimestamp.d.ts +46 -0
  90. package/dist/components/NotificationPanel/NotificationItemTitle.d.ts +49 -0
  91. package/dist/components/NotificationPanel/NotificationList.d.ts +37 -0
  92. package/dist/components/NotificationPanel/NotificationPanel.d.ts +122 -0
  93. package/dist/components/NotificationPanel/NotificationTabs.d.ts +51 -0
  94. package/dist/components/NotificationPanel/context.d.ts +34 -0
  95. package/dist/components/NotificationPanel/index.d.ts +55 -0
  96. package/dist/components/NotificationPanel/utils.d.ts +46 -0
  97. package/dist/components/PageContent/PageContent.d.ts +71 -0
  98. package/dist/components/PageContent/index.d.ts +2 -0
  99. package/dist/components/PageTitle/PageTitle.d.ts +34 -0
  100. package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
  101. package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
  102. package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
  103. package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
  104. package/dist/components/PageTitle/index.d.ts +27 -0
  105. package/dist/components/SearchBar/SearchBar.d.ts +5 -0
  106. package/dist/components/SearchBar/SearchBarWithAdvancedFilter.d.ts +26 -0
  107. package/dist/components/Sidebar/Sidebar.d.ts +120 -0
  108. package/dist/components/Sidebar/SidebarCategory.d.ts +47 -0
  109. package/dist/components/Sidebar/SidebarCategoryLabel.d.ts +47 -0
  110. package/dist/components/Sidebar/SidebarFooter.d.ts +38 -0
  111. package/dist/components/Sidebar/SidebarItem.d.ts +61 -0
  112. package/dist/components/Sidebar/SidebarItemBadge.d.ts +47 -0
  113. package/dist/components/Sidebar/SidebarItemContext.d.ts +49 -0
  114. package/dist/components/Sidebar/SidebarItemIcon.d.ts +47 -0
  115. package/dist/components/Sidebar/SidebarItemLabel.d.ts +44 -0
  116. package/dist/components/Sidebar/SidebarNav.d.ts +42 -0
  117. package/dist/components/Sidebar/SidebarUser.d.ts +57 -0
  118. package/dist/components/Sidebar/SidebarUserAvatar.d.ts +51 -0
  119. package/dist/components/Sidebar/SidebarUserEmail.d.ts +48 -0
  120. package/dist/components/Sidebar/SidebarUserName.d.ts +45 -0
  121. package/dist/components/Sidebar/context.d.ts +42 -0
  122. package/dist/components/Sidebar/index.d.ts +47 -0
  123. package/dist/components/StatCard/StatCard.d.ts +48 -0
  124. package/dist/components/StatCard/index.d.ts +2 -0
  125. package/dist/components/ThemeSwitcher/ThemeSelect.d.ts +37 -0
  126. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +65 -0
  127. package/dist/components/ThemeSwitcher/index.d.ts +4 -0
  128. package/dist/components/UserMenu/UserMenu.d.ts +74 -0
  129. package/dist/components/UserMenu/index.d.ts +19 -0
  130. package/dist/components/index.d.ts +54 -0
  131. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +58 -3
  132. package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
  133. package/dist/contexts/index.d.ts +19 -0
  134. package/dist/hooks/index.d.ts +22 -0
  135. package/dist/hooks/useAppShell/index.d.ts +19 -0
  136. package/dist/hooks/useAppShell/useAppShell.d.ts +81 -0
  137. package/dist/hooks/useNotifications/index.d.ts +19 -0
  138. package/dist/hooks/useNotifications/useNotifications.d.ts +105 -0
  139. package/dist/hooks/useThemeContent/index.d.ts +18 -0
  140. package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
  141. package/dist/index.d.ts +8 -4
  142. package/dist/index.js +5172 -252
  143. package/dist/index.js.map +4 -4
  144. package/dist/layouts/Layout.d.ts +3 -0
  145. package/dist/layouts/LayoutContent.d.ts +3 -0
  146. package/dist/layouts/LayoutHeader.d.ts +3 -0
  147. package/dist/layouts/LayoutNavbar.d.ts +3 -0
  148. package/dist/layouts/LayoutSidebar.d.ts +3 -0
  149. package/dist/styles/Themes/AcrylicBaseTheme.d.ts +25 -0
  150. package/dist/styles/Themes/AcrylicOrangeTheme.d.ts +17 -0
  151. package/dist/styles/Themes/AcrylicPurpleTheme.d.ts +20 -0
  152. package/dist/styles/Themes/ClassicTheme.d.ts +24 -0
  153. package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
  154. package/dist/styles/Themes/OxygenThemeBase.d.ts +70 -0
  155. package/dist/styles/Themes/index.d.ts +22 -0
  156. package/dist/styles/index.d.ts +18 -0
  157. package/dist/utils/formatRelativeTime.d.ts +34 -0
  158. package/dist/utils/index.d.ts +19 -0
  159. package/dist/utils/pxToRem.d.ts +23 -0
  160. package/package.json +20 -12
  161. package/dist/components/ColorSchemeImage/ColorSchemeImage.js +0 -57
  162. package/dist/components/ColorSchemeImage/ColorSchemeImage.js.map +0 -7
  163. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js +0 -76
  164. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js.map +0 -7
  165. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js +0 -378
  166. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js.map +0 -7
  167. package/dist/styles/OxygenTheme/OxygenTheme.d.ts +0 -38
  168. package/dist/styles/OxygenTheme/OxygenTheme.js +0 -356
  169. package/dist/styles/OxygenTheme/OxygenTheme.js.map +0 -7
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { CardActions } from './CardButton';
19
+ import { Wizard } from './Wizard';
20
+ import type { WizardProps, WizardStep } from './Wizard';
21
+ export type { WizardProps, WizardStep };
22
+ export declare const Form: {
23
+ CardButton: (props: import("./CardButton").CardButtonProps) => import("react/jsx-runtime").JSX.Element;
24
+ DisappearingCardButtonContent: (props: import("@mui/material").BoxProps) => import("react/jsx-runtime").JSX.Element;
25
+ CardHeader: import("@mui/material").OverridableCardHeader;
26
+ CardContent: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").CardContentTypeMap<{}, "div">>;
27
+ CardActions: typeof CardActions;
28
+ CardMedia: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").CardMediaTypeMap<{}, "div">>;
29
+ Stack: (props: import("@mui/material").StackProps) => import("react/jsx-runtime").JSX.Element;
30
+ Header: (props: import("@mui/material").TypographyProps) => import("react/jsx-runtime").JSX.Element;
31
+ Subheader: (props: import("@mui/material").TypographyProps) => import("react/jsx-runtime").JSX.Element;
32
+ Body: (props: import("@mui/material").TypographyProps) => import("react/jsx-runtime").JSX.Element;
33
+ Section: ({ children }: {
34
+ children: React.ReactNode;
35
+ }) => import("react/jsx-runtime").JSX.Element;
36
+ Wizard: typeof Wizard;
37
+ ElementWrapper: (props: import("./ElementWrapper").ElementWrapperProps) => import("react/jsx-runtime").JSX.Element;
38
+ };
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ import { HeaderToggle } from './HeaderToggle';
21
+ import { HeaderBrand, HeaderBrandLogo, HeaderBrandTitle } from './HeaderBrand';
22
+ import { HeaderSwitchers } from './HeaderSwitchers';
23
+ import { HeaderActions } from './HeaderActions';
24
+ /**
25
+ * Props for the Header component.
26
+ */
27
+ export interface HeaderProps {
28
+ /** Header content (Toggle, Brand, Switchers, Actions) */
29
+ children: React.ReactNode;
30
+ /** Whether to show a minimal header (hides switchers) */
31
+ minimal?: boolean;
32
+ /** Additional sx props */
33
+ sx?: SxProps<Theme>;
34
+ }
35
+ /**
36
+ * Header - Top navigation bar compound component.
37
+ *
38
+ * A composable header component that uses the compound component pattern.
39
+ * Children can include Toggle, Brand, Switchers, and Actions sub-components.
40
+ *
41
+ * Features:
42
+ * - Compound component pattern for maximum flexibility
43
+ * - Context-based state sharing
44
+ * - Responsive layout with proper spacing
45
+ * - Clean, minimal design that works with light/dark themes
46
+ *
47
+ * Usage:
48
+ * ```tsx
49
+ * <Header>
50
+ * <Header.Toggle collapsed={collapsed} onToggle={toggle} />
51
+ * <Header.Brand>
52
+ * <Header.BrandLogo><Logo /></Header.BrandLogo>
53
+ * <Header.BrandTitle>Dashboard</Header.BrandTitle>
54
+ * </Header.Brand>
55
+ * <Header.Switchers>
56
+ * <OrgSwitcher ... />
57
+ * <ProjectSwitcher ... />
58
+ * </Header.Switchers>
59
+ * <Header.Spacer />
60
+ * <Header.Actions>
61
+ * <ColorSchemeToggle />
62
+ * <NotificationButton ... />
63
+ * <UserMenu ... />
64
+ * </Header.Actions>
65
+ * </Header>
66
+ * ```
67
+ */
68
+ declare const Header: React.FC<HeaderProps> & {
69
+ Toggle: typeof HeaderToggle;
70
+ Brand: typeof HeaderBrand;
71
+ BrandLogo: typeof HeaderBrandLogo;
72
+ BrandTitle: typeof HeaderBrandTitle;
73
+ Switchers: typeof HeaderSwitchers;
74
+ Actions: typeof HeaderActions;
75
+ Spacer: typeof HeaderSpacer;
76
+ };
77
+ /**
78
+ * Props for the HeaderSpacer component.
79
+ */
80
+ export interface HeaderSpacerProps {
81
+ /** Additional sx props */
82
+ sx?: SxProps<Theme>;
83
+ }
84
+ /**
85
+ * Spacer component for header layout.
86
+ */
87
+ declare const HeaderSpacer: React.FC<HeaderSpacerProps>;
88
+ export { Header };
89
+ export default Header;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for HeaderActions component.
22
+ */
23
+ export interface HeaderActionsProps {
24
+ /** Action elements (theme toggle, notifications, user menu, etc.) */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * HeaderActions - Container for action buttons in the header.
31
+ *
32
+ * Provides a flex container for right-aligned actions like theme toggle,
33
+ * notifications, help, and user menu.
34
+ *
35
+ * Typical children:
36
+ * - ColorSchemeToggle
37
+ * - HelpButton
38
+ * - NotificationButton
39
+ * - UserMenu
40
+ */
41
+ export declare const HeaderActions: React.FC<HeaderActionsProps>;
42
+ export default HeaderActions;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ import { HeaderBrandLogo } from './HeaderBrandLogo';
21
+ import { HeaderBrandTitle } from './HeaderBrandTitle';
22
+ /**
23
+ * Props for HeaderBrand component.
24
+ */
25
+ export interface HeaderBrandProps {
26
+ /** Click handler for brand area */
27
+ onClick?: () => void;
28
+ /** Child components (BrandLogo, BrandTitle) */
29
+ children: React.ReactNode;
30
+ /** Additional sx props */
31
+ sx?: SxProps<Theme>;
32
+ }
33
+ /**
34
+ * HeaderBrand - Logo and title section for the header.
35
+ *
36
+ * Uses composable children API:
37
+ * ```tsx
38
+ * <Header.Brand>
39
+ * <Header.BrandLogo><Logo /></Header.BrandLogo>
40
+ * <Header.BrandTitle>Dashboard</Header.BrandTitle>
41
+ * </Header.Brand>
42
+ * ```
43
+ */
44
+ export declare const HeaderBrand: React.FC<HeaderBrandProps>;
45
+ export { HeaderBrandLogo, HeaderBrandTitle };
46
+ export type { HeaderBrandLogoProps } from './HeaderBrandLogo';
47
+ export type { HeaderBrandTitleProps } from './HeaderBrandTitle';
48
+ export default HeaderBrand;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for HeaderBrandLogo component.
22
+ */
23
+ export interface HeaderBrandLogoProps {
24
+ /** Logo element to display */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * HeaderBrandLogo - Logo container for the header brand.
31
+ *
32
+ * Wraps your logo element with proper alignment and sizing.
33
+ * Use as a child of Header.Brand for composable branding.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * <Header.Brand>
38
+ * <Header.BrandLogo>
39
+ * <MyLogo />
40
+ * </Header.BrandLogo>
41
+ * </Header.Brand>
42
+ * ```
43
+ */
44
+ export declare const HeaderBrandLogo: React.FC<HeaderBrandLogoProps>;
45
+ export default HeaderBrandLogo;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for HeaderBrandTitle component.
22
+ */
23
+ export interface HeaderBrandTitleProps {
24
+ /** Title text to display */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * HeaderBrandTitle - Title component for the header brand.
31
+ *
32
+ * Displays the application title with responsive behavior:
33
+ * - Hidden on xs viewports for cleaner mobile experience
34
+ * - Font size: 16px on xs, 18px on sm+
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * <Header.Brand>
39
+ * <Header.BrandLogo>...</Header.BrandLogo>
40
+ * <Header.BrandTitle>Dashboard</Header.BrandTitle>
41
+ * </Header.Brand>
42
+ * ```
43
+ */
44
+ export declare const HeaderBrandTitle: React.FC<HeaderBrandTitleProps>;
45
+ export default HeaderBrandTitle;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for HeaderSwitchers component.
22
+ */
23
+ export interface HeaderSwitchersProps {
24
+ /** Switcher elements (org, project, environment) */
25
+ children: React.ReactNode;
26
+ /** Whether to show the leading divider */
27
+ showDivider?: boolean;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * HeaderSwitchers - Container for context switchers in the header.
33
+ *
34
+ * Provides a responsive container for organization, project, and environment
35
+ * switchers. Hidden on mobile viewports and in minimal mode.
36
+ *
37
+ * Responsive behavior:
38
+ * - Hidden on xs and sm (mobile/tablet)
39
+ * - Visible from md up (desktop)
40
+ *
41
+ * Theme tokens used:
42
+ * - `divider` - Vertical divider color
43
+ */
44
+ export declare const HeaderSwitchers: React.FC<HeaderSwitchersProps>;
45
+ export default HeaderSwitchers;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for HeaderToggle component.
22
+ */
23
+ export interface HeaderToggleProps {
24
+ /** Whether the sidebar is collapsed */
25
+ collapsed: boolean;
26
+ /** Callback to toggle sidebar */
27
+ onToggle: () => void;
28
+ /** Label for expanded state tooltip */
29
+ expandLabel?: string;
30
+ /** Label for collapsed state tooltip */
31
+ collapseLabel?: string;
32
+ /** Custom icon for expanded state */
33
+ expandIcon?: React.ReactNode;
34
+ /** Custom icon for collapsed state */
35
+ collapseIcon?: React.ReactNode;
36
+ /** Additional sx props */
37
+ sx?: SxProps<Theme>;
38
+ }
39
+ /**
40
+ * HeaderToggle - Sidebar toggle button for the header.
41
+ *
42
+ * Displays an animated icon that indicates the current sidebar state
43
+ * and toggles between expanded/collapsed states.
44
+ *
45
+ * Custom icons can be provided via `expandIcon` and `collapseIcon` props.
46
+ * If not provided, defaults to Menu icon.
47
+ *
48
+ * Theme tokens used:
49
+ * - `text.secondary` - Icon color
50
+ */
51
+ export declare const HeaderToggle: React.FC<HeaderToggleProps>;
52
+ export default HeaderToggle;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import * as React from 'react';
19
+ /**
20
+ * Context value for Header compound component.
21
+ */
22
+ export interface HeaderContextValue {
23
+ /** Whether the header is in minimal mode (logo + user only) */
24
+ minimal: boolean;
25
+ }
26
+ /**
27
+ * Context for sharing state between Header compound components.
28
+ */
29
+ export declare const HeaderContext: React.Context<HeaderContextValue | null>;
30
+ /**
31
+ * Hook to access Header context.
32
+ * @throws Error if used outside Header
33
+ */
34
+ export declare const useHeader: () => HeaderContextValue;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export { Header, default } from './Header';
19
+ export type { HeaderProps, HeaderSpacerProps } from './Header';
20
+ export { HeaderToggle } from './HeaderToggle';
21
+ export type { HeaderToggleProps } from './HeaderToggle';
22
+ export { HeaderBrand } from './HeaderBrand';
23
+ export type { HeaderBrandProps } from './HeaderBrand';
24
+ export { HeaderBrandLogo } from './HeaderBrandLogo';
25
+ export type { HeaderBrandLogoProps } from './HeaderBrandLogo';
26
+ export { HeaderBrandTitle } from './HeaderBrandTitle';
27
+ export type { HeaderBrandTitleProps } from './HeaderBrandTitle';
28
+ export { HeaderSwitchers } from './HeaderSwitchers';
29
+ export type { HeaderSwitchersProps } from './HeaderSwitchers';
30
+ export { HeaderActions } from './HeaderActions';
31
+ export type { HeaderActionsProps } from './HeaderActions';
32
+ export { HeaderContext, useHeader } from './context';
33
+ export type { HeaderContextValue } from './context';
@@ -0,0 +1,54 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableProps as MuiTableProps } from '@mui/material/Table';
3
+ import { ListingTableDensity, ListingTableVariant } from '../shared/types';
4
+ import ListingTableContainer from './ListingTableContainer';
5
+ import ListingTableHead from './ListingTableHead';
6
+ import ListingTableBody from './ListingTableBody';
7
+ import ListingTableFooter from './ListingTableFooter';
8
+ import ListingTableRow from './ListingTableRow';
9
+ import ListingTableCell from './ListingTableCell';
10
+ import { ListingTableCellIcon, ListingTableRowActions, ListingTableEmptyState, ListingTableToolbar, ListingTableSortLabel, ListingTableDensityControl } from '../shared';
11
+ import { ListingTableProvider } from '../ListingTableProvider';
12
+ export interface ListingTableProps extends MuiTableProps {
13
+ /**
14
+ * Display variant
15
+ * - 'table': Traditional table appearance (default)
16
+ * - 'card': Card-like rows with rounded corners and borders
17
+ * @default 'table'
18
+ */
19
+ variant?: ListingTableVariant;
20
+ /**
21
+ * Density control - affects row padding
22
+ * @default 'standard'
23
+ */
24
+ density?: ListingTableDensity;
25
+ /**
26
+ * Enable striped rows (alternating background colors)
27
+ * @default false
28
+ */
29
+ striped?: boolean;
30
+ /**
31
+ * Enable bordered cells
32
+ * @default false
33
+ */
34
+ bordered?: boolean;
35
+ }
36
+ export declare function ListingTable({ variant, density, striped, bordered, children, sx, ...props }: ListingTableProps): ReactElement;
37
+ interface ListingTableComponent {
38
+ (props: ListingTableProps): ReactElement;
39
+ Provider: typeof ListingTableProvider;
40
+ Container: typeof ListingTableContainer;
41
+ Head: typeof ListingTableHead;
42
+ Body: typeof ListingTableBody;
43
+ Footer: typeof ListingTableFooter;
44
+ Row: typeof ListingTableRow;
45
+ Cell: typeof ListingTableCell;
46
+ CellIcon: typeof ListingTableCellIcon;
47
+ RowActions: typeof ListingTableRowActions;
48
+ EmptyState: typeof ListingTableEmptyState;
49
+ Toolbar: typeof ListingTableToolbar;
50
+ SortLabel: typeof ListingTableSortLabel;
51
+ DensityControl: typeof ListingTableDensityControl;
52
+ }
53
+ declare const ListingTableCompound: ListingTableComponent;
54
+ export default ListingTableCompound;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableBodyProps as MuiTableBodyProps } from '@mui/material/TableBody';
3
+ export interface ListingTableBodyProps extends MuiTableBodyProps {
4
+ }
5
+ export declare function ListingTableBody({ children, ...props }: ListingTableBodyProps): ReactElement;
6
+ export default ListingTableBody;
@@ -0,0 +1,15 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableCellProps as MuiTableCellProps } from '@mui/material/TableCell';
3
+ export interface ListingTableCellProps extends MuiTableCellProps {
4
+ /**
5
+ * Truncate text with ellipsis when content overflows
6
+ * @default false
7
+ */
8
+ truncate?: boolean;
9
+ /**
10
+ * Maximum width for the cell (useful with truncate)
11
+ */
12
+ maxWidth?: number | string;
13
+ }
14
+ export declare function ListingTableCell({ truncate, maxWidth, children, ...props }: ListingTableCellProps): ReactElement;
15
+ export default ListingTableCell;
@@ -0,0 +1,17 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableContainerProps as MuiTableContainerProps } from '@mui/material/TableContainer';
3
+ import { PaperProps } from '@mui/material/Paper';
4
+ export interface ListingTableContainerProps extends MuiTableContainerProps {
5
+ /**
6
+ * Elevation level for Paper wrapper
7
+ * @default 1
8
+ */
9
+ elevation?: PaperProps['elevation'];
10
+ /**
11
+ * Remove Paper wrapper and render as plain container
12
+ * @default false
13
+ */
14
+ disablePaper?: boolean;
15
+ }
16
+ export declare function ListingTableContainer({ elevation, disablePaper, children, ...props }: ListingTableContainerProps): ReactElement;
17
+ export default ListingTableContainer;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableFooterProps as MuiTableFooterProps } from '@mui/material/TableFooter';
3
+ export interface ListingTableFooterProps extends MuiTableFooterProps {
4
+ }
5
+ export declare function ListingTableFooter({ children, ...props }: ListingTableFooterProps): ReactElement;
6
+ export default ListingTableFooter;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableHeadProps as MuiTableHeadProps } from '@mui/material/TableHead';
3
+ export interface ListingTableHeadProps extends MuiTableHeadProps {
4
+ }
5
+ export declare function ListingTableHead({ children, ...props }: ListingTableHeadProps): ReactElement;
6
+ export default ListingTableHead;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { TableRowProps as MuiTableRowProps } from '@mui/material/TableRow';
3
+ import { ListingTableVariant } from '../shared/types';
4
+ export interface ListingTableRowProps extends MuiTableRowProps {
5
+ /**
6
+ * Make the row clickable with pointer cursor
7
+ * @default false
8
+ */
9
+ clickable?: boolean;
10
+ /**
11
+ * Display variant - controls card-like styling
12
+ * When 'card', applies rounded corners and border
13
+ * @default 'table'
14
+ */
15
+ variant?: ListingTableVariant;
16
+ }
17
+ export declare function ListingTableRow({ clickable, variant, children, ...props }: ListingTableRowProps): ReactElement;
18
+ export default ListingTableRow;
@@ -0,0 +1,21 @@
1
+ export { default } from './ListingTable';
2
+ export { ListingTable } from './ListingTable';
3
+ export type { ListingTableProps } from './ListingTable';
4
+ export { default as ListingTableContainer } from './ListingTableContainer';
5
+ export { ListingTableContainer as Container } from './ListingTableContainer';
6
+ export type { ListingTableContainerProps } from './ListingTableContainer';
7
+ export { default as ListingTableHead } from './ListingTableHead';
8
+ export { ListingTableHead as Head } from './ListingTableHead';
9
+ export type { ListingTableHeadProps } from './ListingTableHead';
10
+ export { default as ListingTableBody } from './ListingTableBody';
11
+ export { ListingTableBody as Body } from './ListingTableBody';
12
+ export type { ListingTableBodyProps } from './ListingTableBody';
13
+ export { default as ListingTableFooter } from './ListingTableFooter';
14
+ export { ListingTableFooter as Footer } from './ListingTableFooter';
15
+ export type { ListingTableFooterProps } from './ListingTableFooter';
16
+ export { default as ListingTableRow } from './ListingTableRow';
17
+ export { ListingTableRow as Row } from './ListingTableRow';
18
+ export type { ListingTableRowProps } from './ListingTableRow';
19
+ export { default as ListingTableCell } from './ListingTableCell';
20
+ export { ListingTableCell as Cell } from './ListingTableCell';
21
+ export type { ListingTableCellProps } from './ListingTableCell';
@@ -0,0 +1,28 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { ListingTableContextValue } from './context';
3
+ export interface ListingTableProviderProps extends ListingTableContextValue {
4
+ /** Children to render within the provider */
5
+ children: ReactNode;
6
+ }
7
+ /**
8
+ * Provider component for ListingTable context.
9
+ * Enables centralized state management and data operations across table sub-components.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <ListingTable.Provider
14
+ * searchValue={search}
15
+ * onSearchChange={setSearch}
16
+ * sortField={sortField}
17
+ * sortDirection={sortDirection}
18
+ * onSortChange={handleSortChange}
19
+ * >
20
+ * <ListingTable.Container>
21
+ * <ListingTable.Toolbar showSearch />
22
+ * <ListingTable>...</ListingTable>
23
+ * </ListingTable.Container>
24
+ * </ListingTable.Provider>
25
+ * ```
26
+ */
27
+ export declare function ListingTableProvider({ children, searchValue, onSearchChange, sortField, sortDirection, onSortChange, page, rowsPerPage, totalCount, onPageChange, onRowsPerPageChange, selected, onSelectionChange, onSelectAll, onClearSelection, isSelected, filters, onFilterChange, onClearFilters, onBulkDelete, onBulkAction, customHandlers, density, onDensityChange, variant, loading, }: ListingTableProviderProps): ReactElement;
28
+ export default ListingTableProvider;