@wso2/oxygen-ui 0.0.1-alpha.9 → 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,78 @@
1
+ import * as React from 'react';
2
+ import { ListingTableDensity, ListingTableVariant } from './shared/types';
3
+ /**
4
+ * Sort direction for table columns.
5
+ */
6
+ export type ListingTableSortDirection = 'asc' | 'desc';
7
+ /**
8
+ * Context value for ListingTable data operations.
9
+ * All properties are optional to support progressive enhancement.
10
+ */
11
+ export interface ListingTableContextValue {
12
+ /** Current search query */
13
+ searchValue?: string;
14
+ /** Handler for search value changes */
15
+ onSearchChange?: (value: string) => void;
16
+ /** Currently sorted field/column key */
17
+ sortField?: string;
18
+ /** Sort direction */
19
+ sortDirection?: ListingTableSortDirection;
20
+ /** Handler for sort changes */
21
+ onSortChange?: (field: string, direction: ListingTableSortDirection) => void;
22
+ /** Current page (0-indexed) */
23
+ page?: number;
24
+ /** Items per page */
25
+ rowsPerPage?: number;
26
+ /** Total item count */
27
+ totalCount?: number;
28
+ /** Handler for page changes */
29
+ onPageChange?: (page: number) => void;
30
+ /** Handler for rows per page changes */
31
+ onRowsPerPageChange?: (rowsPerPage: number) => void;
32
+ /** Array of selected row IDs */
33
+ selected?: readonly string[];
34
+ /** Handler for selection changes */
35
+ onSelectionChange?: (selected: readonly string[]) => void;
36
+ /** Select all handler */
37
+ onSelectAll?: () => void;
38
+ /** Clear selection handler */
39
+ onClearSelection?: () => void;
40
+ /** Check if a row is selected */
41
+ isSelected?: (id: string) => boolean;
42
+ /** Active filters as key-value pairs */
43
+ filters?: Record<string, unknown>;
44
+ /** Handler for filter changes */
45
+ onFilterChange?: (key: string, value: unknown) => void;
46
+ /** Clear all filters handler */
47
+ onClearFilters?: () => void;
48
+ /** Handler for bulk delete */
49
+ onBulkDelete?: (ids: readonly string[]) => void;
50
+ /** Handler for custom bulk actions */
51
+ onBulkAction?: (actionId: string, ids: readonly string[]) => void;
52
+ /** Custom handlers for application-specific operations */
53
+ customHandlers?: Record<string, (...args: unknown[]) => void>;
54
+ /** Current density setting */
55
+ density?: ListingTableDensity;
56
+ /** Handler for density changes */
57
+ onDensityChange?: (density: ListingTableDensity) => void;
58
+ /** Current variant setting */
59
+ variant?: ListingTableVariant;
60
+ /** Whether data is loading */
61
+ loading?: boolean;
62
+ }
63
+ /**
64
+ * React Context for ListingTable.
65
+ * Initialized with null to detect usage outside provider.
66
+ */
67
+ export declare const ListingTableContext: React.Context<ListingTableContextValue | null>;
68
+ /**
69
+ * Hook to access ListingTable context.
70
+ * Returns null if used outside provider (for backward compatibility).
71
+ * Use useListingTableRequired() for strict mode.
72
+ */
73
+ export declare const useListingTable: () => ListingTableContextValue | null;
74
+ /**
75
+ * Hook to access ListingTable context with strict mode.
76
+ * @throws Error if used outside ListingTableProvider
77
+ */
78
+ export declare const useListingTableRequired: () => ListingTableContextValue;
@@ -0,0 +1,22 @@
1
+ export { default } from './ListingTable';
2
+ export { default as ListingTable } from './ListingTable';
3
+ export type { ListingTableProps } from './ListingTable';
4
+ export type { ListingTableContainerProps } from './ListingTable';
5
+ export type { ListingTableHeadProps } from './ListingTable';
6
+ export type { ListingTableBodyProps } from './ListingTable';
7
+ export type { ListingTableFooterProps } from './ListingTable';
8
+ export type { ListingTableRowProps } from './ListingTable';
9
+ export type { ListingTableCellProps } from './ListingTable';
10
+ export { ListingTableContext, useListingTable, useListingTableRequired } from './context';
11
+ export type { ListingTableContextValue, ListingTableSortDirection } from './context';
12
+ export { ListingTableProvider } from './ListingTableProvider';
13
+ export type { ListingTableProviderProps } from './ListingTableProvider';
14
+ export type { ListingTableDensity, ListingTableVariant } from './shared';
15
+ export type { ListingTableToolbarProps } from './shared';
16
+ export type { ListingTableEmptyStateProps } from './shared';
17
+ export type { ListingTableDensityControlProps } from './shared';
18
+ export type { ListingTableSortLabelProps, ListingSortDirection } from './shared';
19
+ export type { ListingTableRowActionsProps } from './shared';
20
+ export type { ListingTableCellIconProps } from './shared';
21
+ export { ListingTableToolbar, Toolbar, ListingTableEmptyState, EmptyState, ListingTableDensityControl, DensityControl, ListingTableSortLabel, SortLabel, ListingTableRowActions, RowActions, ListingTableCellIcon, CellIcon, } from './shared';
22
+ export { ListingTableContainer, Container, ListingTableHead, Head, ListingTableBody, Body, ListingTableFooter, Footer, ListingTableRow, Row, ListingTableCell, Cell, } from './ListingTable';
@@ -0,0 +1,31 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ export interface ListingTableCellIconProps {
4
+ /**
5
+ * Icon element to display
6
+ */
7
+ icon: ReactNode;
8
+ /**
9
+ * Primary text content
10
+ */
11
+ primary: string;
12
+ /**
13
+ * Secondary text content (optional)
14
+ */
15
+ secondary?: string;
16
+ /**
17
+ * Icon position relative to text
18
+ * @default 'left'
19
+ */
20
+ iconPosition?: 'left' | 'right';
21
+ /**
22
+ * Custom styles for the icon wrapper
23
+ */
24
+ iconSx?: SxProps<Theme>;
25
+ /**
26
+ * Custom styles for the container
27
+ */
28
+ sx?: SxProps<Theme>;
29
+ }
30
+ export declare function ListingTableCellIcon({ icon, primary, secondary, iconPosition, iconSx, sx, }: ListingTableCellIconProps): ReactElement;
31
+ export default ListingTableCellIcon;
@@ -0,0 +1,26 @@
1
+ import { ReactElement } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ import type { ListingTableDensity } from './types';
4
+ export interface ListingTableDensityControlProps {
5
+ /**
6
+ * Current density value.
7
+ * When using with Provider, this is automatically derived from context if not provided.
8
+ */
9
+ value?: ListingTableDensity;
10
+ /**
11
+ * Change handler.
12
+ * When using with Provider, this is automatically handled via context if not provided.
13
+ */
14
+ onChange?: (density: ListingTableDensity) => void;
15
+ /**
16
+ * Size of the toggle buttons
17
+ * @default 'small'
18
+ */
19
+ size?: 'small' | 'medium';
20
+ /**
21
+ * Custom styles for the container
22
+ */
23
+ sx?: SxProps<Theme>;
24
+ }
25
+ export declare function ListingTableDensityControl({ value: valueProp, onChange: onChangeProp, size, sx, }: ListingTableDensityControlProps): ReactElement;
26
+ export default ListingTableDensityControl;
@@ -0,0 +1,32 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ export interface ListingTableEmptyStateProps {
4
+ /**
5
+ * Main title text
6
+ * @default 'No data available'
7
+ */
8
+ title?: string;
9
+ /**
10
+ * Description text below the title
11
+ */
12
+ description?: string;
13
+ /**
14
+ * Custom illustration element (e.g., icon or image)
15
+ */
16
+ illustration?: ReactNode;
17
+ /**
18
+ * Action button or link element
19
+ */
20
+ action?: ReactNode;
21
+ /**
22
+ * Minimum height of the empty state container
23
+ * @default 300
24
+ */
25
+ minHeight?: number | string;
26
+ /**
27
+ * Custom styles for the container
28
+ */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ export declare function ListingTableEmptyState({ title, description, illustration, action, minHeight, sx, }: ListingTableEmptyStateProps): ReactElement;
32
+ export default ListingTableEmptyState;
@@ -0,0 +1,24 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ export interface ListingTableRowActionsProps {
4
+ /**
5
+ * Action buttons or elements
6
+ */
7
+ children: ReactNode;
8
+ /**
9
+ * Whether actions are always visible or only on row hover
10
+ * @default 'always'
11
+ */
12
+ visibility?: 'always' | 'hover';
13
+ /**
14
+ * Alignment of action buttons
15
+ * @default 'right'
16
+ */
17
+ align?: 'left' | 'center' | 'right';
18
+ /**
19
+ * Custom styles for the container
20
+ */
21
+ sx?: SxProps<Theme>;
22
+ }
23
+ export declare function ListingTableRowActions({ children, visibility, align, sx, }: ListingTableRowActionsProps): ReactElement;
24
+ export default ListingTableRowActions;
@@ -0,0 +1,37 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { TableSortLabelProps as MuiTableSortLabelProps } from '@mui/material/TableSortLabel';
3
+ export type ListingSortDirection = 'asc' | 'desc' | false;
4
+ export interface ListingTableSortLabelProps extends Omit<MuiTableSortLabelProps, 'direction'> {
5
+ /**
6
+ * Field/column identifier for context-based sorting.
7
+ * When provided and used with ListingTable.Provider, the component will
8
+ * automatically connect to the context for sort state and handling.
9
+ */
10
+ field?: string;
11
+ /**
12
+ * Whether this column is currently sorted.
13
+ * When using with Provider and field prop, this is automatically derived from context.
14
+ */
15
+ active?: boolean;
16
+ /**
17
+ * Sort direction.
18
+ * When using with Provider and field prop, this is automatically derived from context.
19
+ */
20
+ direction?: 'asc' | 'desc';
21
+ /**
22
+ * Click handler for sorting.
23
+ * When using with Provider and field prop, this is automatically handled via context.
24
+ */
25
+ onClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
26
+ /**
27
+ * Label text
28
+ */
29
+ children: ReactNode;
30
+ /**
31
+ * Hide sort icon when not active
32
+ * @default false
33
+ */
34
+ hideSortIcon?: boolean;
35
+ }
36
+ export declare function ListingTableSortLabel({ field, active: activeProp, direction: directionProp, onClick: onClickProp, children, hideSortIcon, ...props }: ListingTableSortLabelProps): ReactElement;
37
+ export default ListingTableSortLabel;
@@ -0,0 +1,52 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material/styles';
3
+ export interface ListingTableToolbarProps {
4
+ /**
5
+ * Show search input
6
+ * @default false
7
+ */
8
+ showSearch?: boolean;
9
+ /**
10
+ * Custom search component to render instead of built-in search.
11
+ * When provided, overrides showSearch and built-in search behavior.
12
+ * The custom component should use useListingTable() to connect to context.
13
+ */
14
+ searchSlot?: ReactNode;
15
+ /**
16
+ * Search value (controlled mode)
17
+ */
18
+ searchValue?: string;
19
+ /**
20
+ * Search change handler
21
+ */
22
+ onSearchChange?: (value: string) => void;
23
+ /**
24
+ * Search placeholder text
25
+ * @default 'Search...'
26
+ */
27
+ searchPlaceholder?: string;
28
+ /**
29
+ * Minimum width for search input
30
+ * @default 200
31
+ */
32
+ searchMinWidth?: number;
33
+ /**
34
+ * Maximum width for search input
35
+ * @default 300
36
+ */
37
+ searchMaxWidth?: number;
38
+ /**
39
+ * Additional toolbar actions to render on the right side
40
+ */
41
+ actions?: ReactNode;
42
+ /**
43
+ * Children to render in the toolbar (between search and actions)
44
+ */
45
+ children?: ReactNode;
46
+ /**
47
+ * Custom styles for the container
48
+ */
49
+ sx?: SxProps<Theme>;
50
+ }
51
+ export declare function ListingTableToolbar({ showSearch, searchSlot, searchValue: controlledSearchValue, onSearchChange, searchPlaceholder, searchMinWidth, searchMaxWidth, actions, children, sx, }: ListingTableToolbarProps): ReactElement;
52
+ export default ListingTableToolbar;
@@ -0,0 +1,14 @@
1
+ export type { ListingTableDensity, ListingTableVariant } from './types';
2
+ export { densityStyles } from './types';
3
+ export { default as ListingTableToolbar, ListingTableToolbar as Toolbar } from './ListingTableToolbar';
4
+ export type { ListingTableToolbarProps } from './ListingTableToolbar';
5
+ export { default as ListingTableEmptyState, ListingTableEmptyState as EmptyState } from './ListingTableEmptyState';
6
+ export type { ListingTableEmptyStateProps } from './ListingTableEmptyState';
7
+ export { default as ListingTableDensityControl, ListingTableDensityControl as DensityControl } from './ListingTableDensityControl';
8
+ export type { ListingTableDensityControlProps } from './ListingTableDensityControl';
9
+ export { default as ListingTableSortLabel, ListingTableSortLabel as SortLabel } from './ListingTableSortLabel';
10
+ export type { ListingTableSortLabelProps, ListingSortDirection } from './ListingTableSortLabel';
11
+ export { default as ListingTableRowActions, ListingTableRowActions as RowActions } from './ListingTableRowActions';
12
+ export type { ListingTableRowActionsProps } from './ListingTableRowActions';
13
+ export { default as ListingTableCellIcon, ListingTableCellIcon as CellIcon } from './ListingTableCellIcon';
14
+ export type { ListingTableCellIconProps } from './ListingTableCellIcon';
@@ -0,0 +1,5 @@
1
+ export type ListingTableDensity = 'compact' | 'standard' | 'comfortable';
2
+ export type ListingTableVariant = 'table' | 'card';
3
+ export declare const densityStyles: Record<ListingTableDensity, {
4
+ padding: string;
5
+ }>;
@@ -0,0 +1,69 @@
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 the NotificationBanner component.
22
+ */
23
+ export interface NotificationBannerProps {
24
+ /** Whether the banner is visible */
25
+ visible?: boolean;
26
+ /** Banner severity/type */
27
+ severity?: 'info' | 'warning' | 'error' | 'success';
28
+ /** Banner title */
29
+ title?: string;
30
+ /** Banner message */
31
+ message: string;
32
+ /** Optional action button label */
33
+ actionLabel?: string;
34
+ /** Action button callback */
35
+ onAction?: () => void;
36
+ /** Dismiss callback */
37
+ onDismiss?: () => void;
38
+ /** Additional sx props */
39
+ sx?: SxProps<Theme>;
40
+ }
41
+ /**
42
+ * NotificationBanner - Dismissible system alert banner.
43
+ *
44
+ * A top-level notification banner that appears above the main application
45
+ * content. Used for system-wide announcements, maintenance notices, or
46
+ * important alerts that need high visibility.
47
+ *
48
+ * Features:
49
+ * - Multiple severity levels (info, warning, error, success)
50
+ * - Optional title for more prominent messages
51
+ * - Optional action button
52
+ * - Smooth collapse animation on dismiss
53
+ * - Full-width design that sits at the top of the app
54
+ *
55
+ * Usage:
56
+ * ```tsx
57
+ * <NotificationBanner
58
+ * visible={showBanner}
59
+ * severity="info"
60
+ * title="Scheduled Maintenance"
61
+ * message="The system will be undergoing maintenance on Dec 20th."
62
+ * actionLabel="Learn More"
63
+ * onAction={() => openMaintenanceInfo()}
64
+ * onDismiss={() => setShowBanner(false)}
65
+ * />
66
+ * ```
67
+ */
68
+ export declare const NotificationBanner: React.FC<NotificationBannerProps>;
69
+ export default NotificationBanner;
@@ -0,0 +1,19 @@
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 { NotificationBanner, default } from './NotificationBanner';
19
+ export type { NotificationBannerProps } from './NotificationBanner';
@@ -0,0 +1,44 @@
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 NotificationActions component.
22
+ */
23
+ export interface NotificationActionsProps {
24
+ /** Whether there are unread notifications */
25
+ hasUnread?: boolean;
26
+ /** Callback to mark all as read */
27
+ onMarkAllRead?: () => void;
28
+ /** Callback to clear all notifications */
29
+ onClearAll?: () => void;
30
+ /** Additional sx props */
31
+ sx?: SxProps<Theme>;
32
+ }
33
+ /**
34
+ * NotificationActions - Bulk action buttons for notifications.
35
+ *
36
+ * Provides "Mark all read" and "Clear all" actions.
37
+ *
38
+ * Theme tokens used:
39
+ * - `action.hover` - Background color
40
+ * - `divider` - Border color
41
+ * - `error` - Clear all button color (via Button color="error")
42
+ */
43
+ export declare const NotificationActions: React.FC<NotificationActionsProps>;
44
+ export default NotificationActions;
@@ -0,0 +1,41 @@
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 NotificationEmptyState component.
22
+ */
23
+ export interface NotificationEmptyStateProps {
24
+ /** Message to display */
25
+ message?: string;
26
+ /** Custom icon component */
27
+ icon?: React.ReactNode;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * NotificationEmptyState - Empty state display for no notifications.
33
+ *
34
+ * Shows a centered message with an icon when there are no notifications
35
+ * to display.
36
+ *
37
+ * Theme tokens used:
38
+ * - `text.secondary` - Message text color
39
+ */
40
+ export declare const NotificationEmptyState: React.FC<NotificationEmptyStateProps>;
41
+ export default NotificationEmptyState;
@@ -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 NotificationHeader component.
22
+ */
23
+ export interface NotificationHeaderProps {
24
+ /** Composable children (HeaderIcon, HeaderTitle, HeaderBadge, HeaderClose) */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * NotificationHeader - Header section of the notification panel.
31
+ *
32
+ * Uses composable children API:
33
+ * ```tsx
34
+ * <NotificationPanel.Header>
35
+ * <NotificationPanel.HeaderIcon><Bell size={20} /></NotificationPanel.HeaderIcon>
36
+ * <NotificationPanel.HeaderTitle>Notifications</NotificationPanel.HeaderTitle>
37
+ * <NotificationPanel.HeaderBadge>5</NotificationPanel.HeaderBadge>
38
+ * <NotificationPanel.HeaderClose />
39
+ * </NotificationPanel.Header>
40
+ * ```
41
+ *
42
+ * Theme tokens used:
43
+ * - `divider` - Bottom border
44
+ * - `primary` - Unread count chip color (via Chip color="primary")
45
+ */
46
+ export declare const NotificationHeader: React.FC<NotificationHeaderProps>;
47
+ export default NotificationHeader;
@@ -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 * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for NotificationHeaderBadge component.
22
+ */
23
+ export interface NotificationHeaderBadgeProps {
24
+ /** Badge content (typically unread count) */
25
+ children: React.ReactNode;
26
+ /** Badge color */
27
+ color?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * NotificationHeaderBadge - Badge for the notification panel header.
33
+ *
34
+ * Displays an unread count or other notification badge.
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * <NotificationPanel.Header>
39
+ * <NotificationPanel.HeaderTitle>Notifications</NotificationPanel.HeaderTitle>
40
+ * <NotificationPanel.HeaderBadge>5</NotificationPanel.HeaderBadge>
41
+ * ...
42
+ * </NotificationPanel.Header>
43
+ * ```
44
+ */
45
+ export declare const NotificationHeaderBadge: React.FC<NotificationHeaderBadgeProps>;
46
+ export default NotificationHeaderBadge;
@@ -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 * as React from 'react';
19
+ import type { SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for NotificationHeaderClose component.
22
+ */
23
+ export interface NotificationHeaderCloseProps {
24
+ /** Custom icon (defaults to X) */
25
+ children?: React.ReactNode;
26
+ /** Click handler (overrides context onClose) */
27
+ onClick?: () => void;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * NotificationHeaderClose - Close button for the notification panel header.
33
+ *
34
+ * Closes the notification panel when clicked. Uses onClose from context
35
+ * unless overridden with onClick prop.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * <NotificationPanel.Header>
40
+ * <NotificationPanel.HeaderTitle>Notifications</NotificationPanel.HeaderTitle>
41
+ * <NotificationPanel.HeaderClose />
42
+ * </NotificationPanel.Header>
43
+ * ```
44
+ */
45
+ export declare const NotificationHeaderClose: React.FC<NotificationHeaderCloseProps>;
46
+ export default NotificationHeaderClose;