@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,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 NotificationPanel compound component.
21
+ */
22
+ export interface NotificationPanelContextValue {
23
+ /** Callback to close the panel */
24
+ onClose: () => void;
25
+ }
26
+ /**
27
+ * Context for sharing state between NotificationPanel compound components.
28
+ */
29
+ export declare const NotificationPanelContext: React.Context<NotificationPanelContextValue | null>;
30
+ /**
31
+ * Hook to access NotificationPanel context.
32
+ * @throws Error if used outside NotificationPanel
33
+ */
34
+ export declare const useNotificationPanel: () => NotificationPanelContextValue;
@@ -0,0 +1,55 @@
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 { NotificationPanel, default } from './NotificationPanel';
19
+ export type { NotificationPanelProps } from './NotificationPanel';
20
+ export { NotificationHeader } from './NotificationHeader';
21
+ export type { NotificationHeaderProps } from './NotificationHeader';
22
+ export { NotificationHeaderIcon } from './NotificationHeaderIcon';
23
+ export type { NotificationHeaderIconProps } from './NotificationHeaderIcon';
24
+ export { NotificationHeaderTitle } from './NotificationHeaderTitle';
25
+ export type { NotificationHeaderTitleProps } from './NotificationHeaderTitle';
26
+ export { NotificationHeaderBadge } from './NotificationHeaderBadge';
27
+ export type { NotificationHeaderBadgeProps } from './NotificationHeaderBadge';
28
+ export { NotificationHeaderClose } from './NotificationHeaderClose';
29
+ export type { NotificationHeaderCloseProps } from './NotificationHeaderClose';
30
+ export { NotificationTabs } from './NotificationTabs';
31
+ export type { NotificationTabsProps, NotificationTabConfig } from './NotificationTabs';
32
+ export { NotificationActions } from './NotificationActions';
33
+ export type { NotificationActionsProps } from './NotificationActions';
34
+ export { NotificationList } from './NotificationList';
35
+ export type { NotificationListProps } from './NotificationList';
36
+ export { NotificationItem } from './NotificationItem';
37
+ export type { NotificationItemProps } from './NotificationItem';
38
+ export { NotificationItemAvatar } from './NotificationItemAvatar';
39
+ export type { NotificationItemAvatarProps } from './NotificationItemAvatar';
40
+ export { NotificationItemTitle } from './NotificationItemTitle';
41
+ export type { NotificationItemTitleProps } from './NotificationItemTitle';
42
+ export { NotificationItemMessage } from './NotificationItemMessage';
43
+ export type { NotificationItemMessageProps } from './NotificationItemMessage';
44
+ export { NotificationItemTimestamp } from './NotificationItemTimestamp';
45
+ export type { NotificationItemTimestampProps } from './NotificationItemTimestamp';
46
+ export { NotificationItemAction } from './NotificationItemAction';
47
+ export type { NotificationItemActionProps } from './NotificationItemAction';
48
+ export { NotificationItemContext, NotificationItemProvider, useNotificationItemContext, } from './NotificationItemContext';
49
+ export type { NotificationItemContextValue } from './NotificationItemContext';
50
+ export { NotificationEmptyState } from './NotificationEmptyState';
51
+ export type { NotificationEmptyStateProps } from './NotificationEmptyState';
52
+ export { NotificationPanelContext, useNotificationPanel } from './context';
53
+ export type { NotificationPanelContextValue } from './context';
54
+ export { getNotificationTypeProps } from './utils';
55
+ export type { NotificationType, NotificationTypeProps } from './utils';
@@ -0,0 +1,46 @@
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 type { LucideIcon } from '@wso2/oxygen-ui-icons-react';
19
+ /**
20
+ * Notification type variants.
21
+ */
22
+ export type NotificationType = 'info' | 'success' | 'warning' | 'error';
23
+ /**
24
+ * Props returned for notification type styling.
25
+ */
26
+ export interface NotificationTypeProps {
27
+ /** Icon component for this type */
28
+ icon: LucideIcon;
29
+ /** Text/icon color */
30
+ color: string;
31
+ /** Background color */
32
+ bgcolor: string;
33
+ }
34
+ /**
35
+ * Get icon and color props for a notification type.
36
+ *
37
+ * Theme tokens used:
38
+ * - `success.main` / `success.light` - Success notifications
39
+ * - `warning.main` / `warning.light` - Warning notifications
40
+ * - `error.main` / `error.light` - Error notifications
41
+ * - `info.main` / `info.light` - Info notifications
42
+ *
43
+ * @param type - The notification type
44
+ * @returns Icon, color, and bgcolor props
45
+ */
46
+ export declare const getNotificationTypeProps: (type: NotificationType) => NotificationTypeProps;
@@ -0,0 +1,71 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ /**
4
+ * Props for the PageContent component
5
+ */
6
+ export interface PageContentProps extends Omit<BoxProps, 'maxWidth'> {
7
+ /**
8
+ * The content to be rendered inside the page content container
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Maximum width of the content container
13
+ * @default '1400px'
14
+ */
15
+ maxWidth?: string | number;
16
+ /**
17
+ * Whether to center the content horizontally
18
+ * @default true
19
+ */
20
+ centered?: boolean;
21
+ /**
22
+ * Whether to use full width (overrides maxWidth)
23
+ * @default false
24
+ */
25
+ fullWidth?: boolean;
26
+ /**
27
+ * Whether to remove padding
28
+ * @default false
29
+ */
30
+ noPadding?: boolean;
31
+ }
32
+ /**
33
+ * PageContent component - A container for page content with controllable max-width and centering
34
+ *
35
+ * Provides a centered content area with a default max-width of 1400px and padding of 3.
36
+ * The max-width can be customized and centering can be disabled if needed.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * // Default usage with 1400px max-width, centered, and padding
41
+ * <PageContent>
42
+ * <YourContent />
43
+ * </PageContent>
44
+ * ```
45
+ *
46
+ * @example
47
+ * ```tsx
48
+ * // Custom max-width
49
+ * <PageContent maxWidth="1200px">
50
+ * <YourContent />
51
+ * </PageContent>
52
+ * ```
53
+ *
54
+ * @example
55
+ * ```tsx
56
+ * // Full width
57
+ * <PageContent fullWidth>
58
+ * <YourContent />
59
+ * </PageContent>
60
+ * ```
61
+ *
62
+ * @example
63
+ * ```tsx
64
+ * // Not centered
65
+ * <PageContent centered={false}>
66
+ * <YourContent />
67
+ * </PageContent>
68
+ * ```
69
+ */
70
+ declare const PageContent: React.FC<PageContentProps>;
71
+ export default PageContent;
@@ -0,0 +1,2 @@
1
+ export { default } from './PageContent';
2
+ export * from './PageContent';
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import PageTitleHeader from './PageTitleHeader';
3
+ import PageTitleSubHeader from './PageTitleSubHeader';
4
+ import PageTitleAvatar from './PageTitleAvatar';
5
+ import PageTitleLink from './PageTitleLink';
6
+ /**
7
+ * Props for the PageTitle root component
8
+ */
9
+ export interface PageTitleProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ /**
11
+ * The content of the page title (can include Avatar, Header, SubHeader, and Link)
12
+ */
13
+ children: React.ReactNode;
14
+ }
15
+ /**
16
+ * PageTitle component with compound pattern support
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <PageTitle>
21
+ * <PageTitle.Avatar src="/avatar.png" />
22
+ * <PageTitle.Header>Welcome</PageTitle.Header>
23
+ * <PageTitle.SubHeader>Get started with your dashboard</PageTitle.SubHeader>
24
+ * <PageTitle.Link href="/docs" icon={<LinkIcon />}>View Documentation</PageTitle.Link>
25
+ * </PageTitle>
26
+ * ```
27
+ */
28
+ declare const PageTitle: React.FC<PageTitleProps> & {
29
+ Avatar: typeof PageTitleAvatar;
30
+ Header: typeof PageTitleHeader;
31
+ SubHeader: typeof PageTitleSubHeader;
32
+ Link: typeof PageTitleLink;
33
+ };
34
+ export default PageTitle;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from '@mui/material/Avatar';
3
+ /**
4
+ * Props for the PageTitle Avatar component
5
+ */
6
+ export interface PageTitleAvatarProps extends AvatarProps {
7
+ /**
8
+ * The content of the avatar (typically an image or icon)
9
+ */
10
+ children?: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle Avatar component
14
+ */
15
+ declare const PageTitleAvatar: React.FC<PageTitleAvatarProps>;
16
+ export default PageTitleAvatar;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
3
+ /**
4
+ * Props for the PageTitle Header component
5
+ */
6
+ export interface PageTitleHeaderProps extends TypographyProps {
7
+ /**
8
+ * The content of the header
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle Header component
14
+ */
15
+ declare const PageTitleHeader: React.FC<PageTitleHeaderProps>;
16
+ export default PageTitleHeader;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { LinkProps } from '@mui/material/Link';
3
+ /**
4
+ * Props for the PageTitle Link component
5
+ */
6
+ export interface PageTitleLinkProps extends LinkProps {
7
+ /**
8
+ * The content of the link
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * Icon to display before the link text
13
+ */
14
+ icon?: React.ReactNode;
15
+ }
16
+ /**
17
+ * PageTitle Link component
18
+ */
19
+ declare const PageTitleLink: React.FC<PageTitleLinkProps>;
20
+ export default PageTitleLink;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { TypographyProps } from '@mui/material/Typography';
3
+ /**
4
+ * Props for the PageTitle SubHeader component
5
+ */
6
+ export interface PageTitleSubHeaderProps extends TypographyProps {
7
+ /**
8
+ * The content of the subheader
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ /**
13
+ * PageTitle SubHeader component
14
+ */
15
+ declare const PageTitleSubHeader: React.FC<PageTitleSubHeaderProps>;
16
+ export default PageTitleSubHeader;
@@ -0,0 +1,27 @@
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 { default } from './PageTitle';
19
+ export type { PageTitleProps } from './PageTitle';
20
+ export { default as PageTitleAvatar } from './PageTitleAvatar';
21
+ export type { PageTitleAvatarProps } from './PageTitleAvatar';
22
+ export { default as PageTitleHeader } from './PageTitleHeader';
23
+ export type { PageTitleHeaderProps } from './PageTitleHeader';
24
+ export { default as PageTitleSubHeader } from './PageTitleSubHeader';
25
+ export type { PageTitleSubHeaderProps } from './PageTitleSubHeader';
26
+ export { default as PageTitleLink } from './PageTitleLink';
27
+ export type { PageTitleLinkProps } from './PageTitleLink';
@@ -0,0 +1,5 @@
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+ export interface SearchBarProps extends Omit<TextFieldProps, 'variant'> {
3
+ }
4
+ export declare function SearchBar({ placeholder, ...props }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
5
+ export default SearchBar;
@@ -0,0 +1,26 @@
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+ export type AdvancedFilterOption = {
3
+ value: string;
4
+ label: string;
5
+ };
6
+ export interface AdvancedFilterState {
7
+ attribute: string;
8
+ condition: string;
9
+ value: string;
10
+ }
11
+ export interface SearchBarWithAdvancedFilterProps extends Omit<TextFieldProps, 'variant' | 'value' | 'onChange'> {
12
+ value: string;
13
+ onChange: (value: string) => void;
14
+ advancedFilter: AdvancedFilterState;
15
+ onAdvancedFilterChange: (next: AdvancedFilterState) => void;
16
+ attributeOptions: AdvancedFilterOption[];
17
+ conditionOptions: AdvancedFilterOption[];
18
+ onAdvancedSearch?: (payload: {
19
+ searchText: string;
20
+ } & AdvancedFilterState) => void;
21
+ maxHeight?: number;
22
+ placeholder?: string;
23
+ popoverWidth?: number;
24
+ }
25
+ export declare function SearchBarWithAdvancedFilter({ value, onChange, advancedFilter, onAdvancedFilterChange, attributeOptions, conditionOptions, onAdvancedSearch, maxHeight, placeholder, popoverWidth, sx, ...props }: SearchBarWithAdvancedFilterProps): import("react/jsx-runtime").JSX.Element;
26
+ export default SearchBarWithAdvancedFilter;
@@ -0,0 +1,120 @@
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 { SidebarNav } from './SidebarNav';
21
+ import { SidebarCategory, SidebarCategoryLabel } from './SidebarCategory';
22
+ import { SidebarItem, SidebarItemIcon, SidebarItemLabel, SidebarItemBadge } from './SidebarItem';
23
+ import { SidebarFooter } from './SidebarFooter';
24
+ import { SidebarUser, SidebarUserAvatar, SidebarUserName, SidebarUserEmail } from './SidebarUser';
25
+ /**
26
+ * Theme tokens used in this component:
27
+ *
28
+ * Colors:
29
+ * - `background.paper` - Sidebar background
30
+ * - `divider` - Border color
31
+ *
32
+ * Transitions (via theme.transitions):
33
+ * - `duration.leavingScreen` - Collapse animation (195ms default)
34
+ * - `duration.enteringScreen` - Expand animation (225ms default)
35
+ * - `easing.sharp` - Width transition easing curve
36
+ */
37
+ /** Default expanded sidebar width in pixels */
38
+ export declare const SIDEBAR_WIDTH = 250;
39
+ /** Default collapsed sidebar width in pixels */
40
+ export declare const COLLAPSED_SIDEBAR_WIDTH = 64;
41
+ /**
42
+ * Props for the Sidebar component.
43
+ */
44
+ export interface SidebarProps {
45
+ /** Whether the sidebar is collapsed */
46
+ collapsed?: boolean;
47
+ /** Currently active menu item ID */
48
+ activeItem?: string;
49
+ /** Map of expanded menu IDs */
50
+ expandedMenus?: Record<string, boolean>;
51
+ /** Callback when a menu item is selected */
52
+ onSelect?: (id: string) => void;
53
+ /** Callback to toggle menu expansion */
54
+ onToggleExpand?: (id: string) => void;
55
+ /** Sidebar content (Nav, Footer, User) */
56
+ children: React.ReactNode;
57
+ /** Expanded sidebar width */
58
+ width?: number;
59
+ /** Collapsed sidebar width */
60
+ collapsedWidth?: number;
61
+ /** Additional sx props */
62
+ sx?: SxProps<Theme>;
63
+ }
64
+ /**
65
+ * Sidebar - Collapsible navigation sidebar compound component.
66
+ *
67
+ * A composable sidebar component that uses the compound component pattern.
68
+ * Children can include Nav, Category, Item, Footer, and User sub-components.
69
+ *
70
+ * Features:
71
+ * - Smooth width transition between expanded and collapsed states
72
+ * - Context-based state sharing for active/expanded states
73
+ * - Hierarchical menu structure with expandable sub-menus
74
+ * - Icon-only mode with tooltips when collapsed
75
+ *
76
+ * Usage:
77
+ * ```tsx
78
+ * <Sidebar
79
+ * collapsed={collapsed}
80
+ * activeItem={activeId}
81
+ * expandedMenus={expanded}
82
+ * onSelect={handleSelect}
83
+ * onToggleExpand={handleToggle}
84
+ * >
85
+ * <Sidebar.Nav>
86
+ * <Sidebar.Category>
87
+ * <Sidebar.CategoryLabel>Main</Sidebar.CategoryLabel>
88
+ * <Sidebar.Item id="home">
89
+ * <Sidebar.ItemIcon><Home size={20} /></Sidebar.ItemIcon>
90
+ * <Sidebar.ItemLabel>Home</Sidebar.ItemLabel>
91
+ * </Sidebar.Item>
92
+ * </Sidebar.Category>
93
+ * </Sidebar.Nav>
94
+ * <Sidebar.Footer>
95
+ * <Sidebar.Category>
96
+ * <Sidebar.Item id="settings">
97
+ * <Sidebar.ItemIcon><Settings size={20} /></Sidebar.ItemIcon>
98
+ * <Sidebar.ItemLabel>Settings</Sidebar.ItemLabel>
99
+ * </Sidebar.Item>
100
+ * </Sidebar.Category>
101
+ * </Sidebar.Footer>
102
+ * </Sidebar>
103
+ * ```
104
+ */
105
+ declare const Sidebar: React.FC<SidebarProps> & {
106
+ Nav: typeof SidebarNav;
107
+ Category: typeof SidebarCategory;
108
+ CategoryLabel: typeof SidebarCategoryLabel;
109
+ Item: typeof SidebarItem;
110
+ ItemIcon: typeof SidebarItemIcon;
111
+ ItemLabel: typeof SidebarItemLabel;
112
+ ItemBadge: typeof SidebarItemBadge;
113
+ Footer: typeof SidebarFooter;
114
+ User: typeof SidebarUser;
115
+ UserAvatar: typeof SidebarUserAvatar;
116
+ UserName: typeof SidebarUserName;
117
+ UserEmail: typeof SidebarUserEmail;
118
+ };
119
+ export { Sidebar };
120
+ export default Sidebar;
@@ -0,0 +1,47 @@
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 { SidebarCategoryLabel } from './SidebarCategoryLabel';
21
+ /**
22
+ * Props for SidebarCategory component.
23
+ */
24
+ export interface SidebarCategoryProps {
25
+ /** Category label and navigation items */
26
+ children: React.ReactNode;
27
+ /** Additional sx props */
28
+ sx?: SxProps<Theme>;
29
+ }
30
+ /**
31
+ * SidebarCategory - Groups navigation items under a label.
32
+ *
33
+ * Uses composable children API:
34
+ * ```tsx
35
+ * <Sidebar.Category>
36
+ * <Sidebar.CategoryLabel>Main</Sidebar.CategoryLabel>
37
+ * <Sidebar.Item id="home">...</Sidebar.Item>
38
+ * </Sidebar.Category>
39
+ * ```
40
+ *
41
+ * Theme tokens used:
42
+ * - `text.secondary` - Category label color
43
+ */
44
+ export declare const SidebarCategory: React.FC<SidebarCategoryProps>;
45
+ export { SidebarCategoryLabel };
46
+ export type { SidebarCategoryLabelProps } from './SidebarCategoryLabel';
47
+ export default SidebarCategory;
@@ -0,0 +1,47 @@
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 SidebarCategoryLabel component.
22
+ */
23
+ export interface SidebarCategoryLabelProps {
24
+ /** Label text to display */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * SidebarCategoryLabel - Label for a sidebar category.
31
+ *
32
+ * Automatically hides when sidebar is collapsed. Use as a child
33
+ * of Sidebar.Category for composable category headers.
34
+ *
35
+ * Theme tokens used:
36
+ * - `text.secondary` - Label text color
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * <Sidebar.Category>
41
+ * <Sidebar.CategoryLabel>Management</Sidebar.CategoryLabel>
42
+ * <Sidebar.Item id="users">...</Sidebar.Item>
43
+ * </Sidebar.Category>
44
+ * ```
45
+ */
46
+ export declare const SidebarCategoryLabel: React.FC<SidebarCategoryLabelProps>;
47
+ export default SidebarCategoryLabel;
@@ -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 * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for SidebarFooter component.
22
+ */
23
+ export interface SidebarFooterProps {
24
+ /** Footer content */
25
+ children: React.ReactNode;
26
+ /** Whether to show divider above footer */
27
+ showDivider?: boolean;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * SidebarFooter - Fixed bottom section of the sidebar.
33
+ *
34
+ * Use this for settings navigation, user profile, or any content
35
+ * that should stay visible at the bottom of the sidebar.
36
+ */
37
+ export declare const SidebarFooter: React.FC<SidebarFooterProps>;
38
+ export default SidebarFooter;