@wso2/oxygen-ui 0.18.0 → 0.19.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 (53) hide show
  1. package/.ai/AGENTS.md +2 -1
  2. package/.ai/components.md +219 -0
  3. package/.claude/components.md +219 -0
  4. package/.claude/skills/oxygen-component/SKILL.md +86 -0
  5. package/.claude/skills/oxygen-form/SKILL.md +8 -0
  6. package/.claude/skills/oxygen-layout/SKILL.md +1 -0
  7. package/dist/components/DrawerPanel/DrawerPanel.d.ts +98 -0
  8. package/dist/components/DrawerPanel/DrawerPanelActions.d.ts +44 -0
  9. package/dist/components/DrawerPanel/DrawerPanelBody.d.ts +42 -0
  10. package/dist/components/DrawerPanel/DrawerPanelCloseButton.d.ts +44 -0
  11. package/dist/components/DrawerPanel/DrawerPanelExpandButton.d.ts +46 -0
  12. package/dist/components/DrawerPanel/DrawerPanelFooter.d.ts +41 -0
  13. package/dist/components/DrawerPanel/DrawerPanelHeader.d.ts +44 -0
  14. package/dist/components/DrawerPanel/DrawerPanelTitle.d.ts +45 -0
  15. package/dist/components/DrawerPanel/context.d.ts +42 -0
  16. package/dist/components/DrawerPanel/index.d.ts +35 -0
  17. package/dist/components/FullScreenWizard/FullScreenWizard.d.ts +85 -0
  18. package/dist/components/FullScreenWizard/FullScreenWizardContent.d.ts +70 -0
  19. package/dist/components/FullScreenWizard/FullScreenWizardFooter.d.ts +59 -0
  20. package/dist/components/FullScreenWizard/FullScreenWizardHeader.d.ts +59 -0
  21. package/dist/components/FullScreenWizard/FullScreenWizardPreview.d.ts +61 -0
  22. package/dist/components/FullScreenWizard/FullScreenWizardProgress.d.ts +61 -0
  23. package/dist/components/FullScreenWizard/context.d.ts +71 -0
  24. package/dist/components/FullScreenWizard/index.d.ts +33 -0
  25. package/dist/components/FullScreenWizard/useWizardSteps.d.ts +85 -0
  26. package/dist/components/ListingCard/ListingCard.d.ts +92 -0
  27. package/dist/components/ListingCard/index.d.ts +2 -0
  28. package/dist/components/LogViewer/LogFilterChip.d.ts +31 -0
  29. package/dist/components/LogViewer/LogLevelMarker.d.ts +16 -0
  30. package/dist/components/LogViewer/LogViewer.d.ts +178 -0
  31. package/dist/components/LogViewer/LogViewerControls.d.ts +121 -0
  32. package/dist/components/LogViewer/LogViewerDetails.d.ts +11 -0
  33. package/dist/components/LogViewer/LogViewerSearch.d.ts +42 -0
  34. package/dist/components/LogViewer/LogViewerStream.d.ts +132 -0
  35. package/dist/components/LogViewer/LogViewerToolbar.d.ts +56 -0
  36. package/dist/components/LogViewer/columns.d.ts +17 -0
  37. package/dist/components/LogViewer/context.d.ts +81 -0
  38. package/dist/components/LogViewer/download.d.ts +14 -0
  39. package/dist/components/LogViewer/filters.d.ts +11 -0
  40. package/dist/components/LogViewer/index.d.ts +8 -0
  41. package/dist/components/LogViewer/timestamps.d.ts +26 -0
  42. package/dist/components/LogViewer/types.d.ts +163 -0
  43. package/dist/components/Sidebar/Sidebar.d.ts +2 -0
  44. package/dist/components/Sidebar/SidebarCollapseToggle.d.ts +50 -0
  45. package/dist/components/Sidebar/index.d.ts +2 -0
  46. package/dist/components/TextField/TextField.d.ts +28 -0
  47. package/dist/components/TextField/index.d.ts +2 -0
  48. package/dist/components/index.d.ts +11 -1
  49. package/dist/index.d.ts +2 -0
  50. package/dist/index.js +6809 -3877
  51. package/dist/index.js.map +4 -4
  52. package/dist/styles/OxygenThemeBase.d.ts +12 -0
  53. package/package.json +2 -2
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { DrawerPanelHeader } from './DrawerPanelHeader';
21
+ import { DrawerPanelTitle } from './DrawerPanelTitle';
22
+ import { DrawerPanelActions } from './DrawerPanelActions';
23
+ import { DrawerPanelExpandButton } from './DrawerPanelExpandButton';
24
+ import { DrawerPanelCloseButton } from './DrawerPanelCloseButton';
25
+ import { DrawerPanelBody } from './DrawerPanelBody';
26
+ import { DrawerPanelFooter } from './DrawerPanelFooter';
27
+ /**
28
+ * Props for the DrawerPanel component.
29
+ */
30
+ export interface DrawerPanelProps {
31
+ /** Whether the panel is open */
32
+ open: boolean;
33
+ /** Callback fired when the panel requests to close (close button, backdrop click, Escape) */
34
+ onClose: () => void;
35
+ /** Panel content, typically Header, Body and Footer */
36
+ children: React.ReactNode;
37
+ /** Panel width on sm+ screens (default: 560) */
38
+ width?: number | string;
39
+ /** Panel width on sm+ screens while expanded (default: `'100%'`) */
40
+ expandedWidth?: number | string;
41
+ /** Whether the panel is expanded (controlled) */
42
+ expanded?: boolean;
43
+ /** Initial expanded state when uncontrolled (default: false) */
44
+ defaultExpanded?: boolean;
45
+ /** Callback fired when the expand button toggles the width */
46
+ onExpandedChange?: (expanded: boolean) => void;
47
+ /** Drawer anchor position (default: 'right') */
48
+ anchor?: 'left' | 'right';
49
+ /** Drawer variant (default: 'temporary') */
50
+ variant?: 'temporary' | 'persistent';
51
+ /**
52
+ * Accessible name for the drawer. When provided, it takes precedence over
53
+ * `DrawerPanel.Title`; otherwise the title names the drawer.
54
+ */
55
+ 'aria-label'?: string;
56
+ /** Additional sx props */
57
+ sx?: SxProps<Theme>;
58
+ }
59
+ /**
60
+ * DrawerPanel - Slide-out side panel compound component.
61
+ *
62
+ * Use it to show details or secondary tasks for an item without leaving the
63
+ * current page (for example build details, log entries or resource settings).
64
+ *
65
+ * Features:
66
+ * - Right-anchored drawer that slides in over the page
67
+ * - Title with optional icon that names the drawer for assistive technology
68
+ * - Optional expand button that widens the panel (controlled or uncontrolled)
69
+ * - Close button wired to `onClose` through context
70
+ * - Fixed header and footer with a scrollable body
71
+ * - Responsive width (full on mobile, fixed on desktop)
72
+ *
73
+ * @example
74
+ * <DrawerPanel open={open} onClose={handleClose}>
75
+ * <DrawerPanel.Header>
76
+ * <DrawerPanel.Title icon={<ListTree size={20} />}>Build details</DrawerPanel.Title>
77
+ * <DrawerPanel.Actions>
78
+ * <DrawerPanel.ExpandButton />
79
+ * <DrawerPanel.CloseButton />
80
+ * </DrawerPanel.Actions>
81
+ * </DrawerPanel.Header>
82
+ * <DrawerPanel.Body>...</DrawerPanel.Body>
83
+ * <DrawerPanel.Footer>
84
+ * <Button variant="contained">Rerun build</Button>
85
+ * </DrawerPanel.Footer>
86
+ * </DrawerPanel>
87
+ */
88
+ declare const DrawerPanel: React.FC<DrawerPanelProps> & {
89
+ Header: typeof DrawerPanelHeader;
90
+ Title: typeof DrawerPanelTitle;
91
+ Actions: typeof DrawerPanelActions;
92
+ ExpandButton: typeof DrawerPanelExpandButton;
93
+ CloseButton: typeof DrawerPanelCloseButton;
94
+ Body: typeof DrawerPanelBody;
95
+ Footer: typeof DrawerPanelFooter;
96
+ };
97
+ export { DrawerPanel };
98
+ export default DrawerPanel;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelActions component.
22
+ */
23
+ export interface DrawerPanelActionsProps {
24
+ /** Action buttons; keep `ExpandButton` and `CloseButton` last, in that order */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * DrawerPanelActions - Right-aligned group of header actions.
31
+ *
32
+ * Place any extra actions (for example a "More actions" menu) before the
33
+ * expand and close buttons so the close button always stays rightmost.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * <DrawerPanel.Actions>
38
+ * <DrawerPanel.ExpandButton />
39
+ * <DrawerPanel.CloseButton />
40
+ * </DrawerPanel.Actions>
41
+ * ```
42
+ */
43
+ export declare const DrawerPanelActions: React.FC<DrawerPanelActionsProps>;
44
+ export default DrawerPanelActions;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelBody component.
22
+ */
23
+ export interface DrawerPanelBodyProps {
24
+ /** Main panel content */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * DrawerPanelBody - Scrollable main content of the drawer panel.
31
+ *
32
+ * The header and footer stay in place while the body scrolls.
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * <DrawerPanel.Body>
37
+ * <Typography>Panel content</Typography>
38
+ * </DrawerPanel.Body>
39
+ * ```
40
+ */
41
+ export declare const DrawerPanelBody: React.FC<DrawerPanelBodyProps>;
42
+ export default DrawerPanelBody;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelCloseButton component.
22
+ */
23
+ export interface DrawerPanelCloseButtonProps {
24
+ /** Tooltip and accessible name (default: `"Close"`) */
25
+ label?: string;
26
+ /** Click handler (overrides context onClose) */
27
+ onClick?: () => void;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * DrawerPanelCloseButton - Closes the drawer panel.
33
+ *
34
+ * Uses `onClose` from the parent `DrawerPanel` unless `onClick` is given.
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * <DrawerPanel.Actions>
39
+ * <DrawerPanel.CloseButton />
40
+ * </DrawerPanel.Actions>
41
+ * ```
42
+ */
43
+ export declare const DrawerPanelCloseButton: React.FC<DrawerPanelCloseButtonProps>;
44
+ export default DrawerPanelCloseButton;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelExpandButton component.
22
+ */
23
+ export interface DrawerPanelExpandButtonProps {
24
+ /** Label shown while collapsed (default: `"Expand"`) */
25
+ expandLabel?: string;
26
+ /** Label shown while expanded (default: `"Collapse"`) */
27
+ collapseLabel?: string;
28
+ /** Additional sx props */
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ /**
32
+ * DrawerPanelExpandButton - Toggles the panel between its default and expanded width.
33
+ *
34
+ * Reads and updates `expanded` through the DrawerPanel context, so it works
35
+ * whether the parent `DrawerPanel` is controlled or uncontrolled.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * <DrawerPanel.Actions>
40
+ * <DrawerPanel.ExpandButton />
41
+ * <DrawerPanel.CloseButton />
42
+ * </DrawerPanel.Actions>
43
+ * ```
44
+ */
45
+ export declare const DrawerPanelExpandButton: React.FC<DrawerPanelExpandButtonProps>;
46
+ export default DrawerPanelExpandButton;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelFooter component.
22
+ */
23
+ export interface DrawerPanelFooterProps {
24
+ /** Footer actions; put the primary action last */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * DrawerPanelFooter - Sticky footer for panel-level actions.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * <DrawerPanel.Footer>
35
+ * <Button variant="outlined">Cancel</Button>
36
+ * <Button variant="contained">Save</Button>
37
+ * </DrawerPanel.Footer>
38
+ * ```
39
+ */
40
+ export declare const DrawerPanelFooter: React.FC<DrawerPanelFooterProps>;
41
+ export default DrawerPanelFooter;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelHeader component.
22
+ */
23
+ export interface DrawerPanelHeaderProps {
24
+ /** Header content, typically `DrawerPanel.Title` and `DrawerPanel.Actions` */
25
+ children: React.ReactNode;
26
+ /** Additional sx props */
27
+ sx?: SxProps<Theme>;
28
+ }
29
+ /**
30
+ * DrawerPanelHeader - Top row of the drawer panel holding the title and actions.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * <DrawerPanel.Header>
35
+ * <DrawerPanel.Title icon={<ListTree size={20} />}>Build details</DrawerPanel.Title>
36
+ * <DrawerPanel.Actions>
37
+ * <DrawerPanel.ExpandButton />
38
+ * <DrawerPanel.CloseButton />
39
+ * </DrawerPanel.Actions>
40
+ * </DrawerPanel.Header>
41
+ * ```
42
+ */
43
+ export declare const DrawerPanelHeader: React.FC<DrawerPanelHeaderProps>;
44
+ export default DrawerPanelHeader;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanelTitle component.
22
+ */
23
+ export interface DrawerPanelTitleProps {
24
+ /** Title text, written in sentence case */
25
+ children: React.ReactNode;
26
+ /** Optional icon shown before the title */
27
+ icon?: React.ReactNode;
28
+ /** Heading element rendered for the title (default: `h2`) */
29
+ component?: React.ElementType;
30
+ /** Additional sx props */
31
+ sx?: SxProps<Theme>;
32
+ }
33
+ /**
34
+ * DrawerPanelTitle - Heading of the drawer panel.
35
+ *
36
+ * The drawer uses this heading as its accessible name, so screen readers
37
+ * announce the title when the panel opens.
38
+ *
39
+ * @example
40
+ * ```tsx
41
+ * <DrawerPanel.Title icon={<ListTree size={20} />}>Build details</DrawerPanel.Title>
42
+ * ```
43
+ */
44
+ export declare const DrawerPanelTitle: React.FC<DrawerPanelTitleProps>;
45
+ export default DrawerPanelTitle;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 DrawerPanel compound component.
21
+ */
22
+ export interface DrawerPanelContextValue {
23
+ /** Whether the panel is open */
24
+ open: boolean;
25
+ /** Callback to close the panel */
26
+ onClose: () => void;
27
+ /** Whether the panel is expanded to its wide width */
28
+ expanded: boolean;
29
+ /** Toggle between the default and expanded width */
30
+ toggleExpanded: () => void;
31
+ /** Id applied to `DrawerPanel.Title`; the drawer is labelled by it */
32
+ titleId: string;
33
+ }
34
+ /**
35
+ * Context for sharing state between DrawerPanel compound components.
36
+ */
37
+ export declare const DrawerPanelContext: React.Context<DrawerPanelContextValue | null>;
38
+ /**
39
+ * Hook to access DrawerPanel context.
40
+ * @throws Error if used outside DrawerPanel
41
+ */
42
+ export declare const useDrawerPanel: () => DrawerPanelContextValue;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { DrawerPanel, default } from './DrawerPanel';
19
+ export type { DrawerPanelProps } from './DrawerPanel';
20
+ export { DrawerPanelHeader } from './DrawerPanelHeader';
21
+ export type { DrawerPanelHeaderProps } from './DrawerPanelHeader';
22
+ export { DrawerPanelTitle } from './DrawerPanelTitle';
23
+ export type { DrawerPanelTitleProps } from './DrawerPanelTitle';
24
+ export { DrawerPanelActions } from './DrawerPanelActions';
25
+ export type { DrawerPanelActionsProps } from './DrawerPanelActions';
26
+ export { DrawerPanelExpandButton } from './DrawerPanelExpandButton';
27
+ export type { DrawerPanelExpandButtonProps } from './DrawerPanelExpandButton';
28
+ export { DrawerPanelCloseButton } from './DrawerPanelCloseButton';
29
+ export type { DrawerPanelCloseButtonProps } from './DrawerPanelCloseButton';
30
+ export { DrawerPanelBody } from './DrawerPanelBody';
31
+ export type { DrawerPanelBodyProps } from './DrawerPanelBody';
32
+ export { DrawerPanelFooter } from './DrawerPanelFooter';
33
+ export type { DrawerPanelFooterProps } from './DrawerPanelFooter';
34
+ export { DrawerPanelContext, useDrawerPanel } from './context';
35
+ export type { DrawerPanelContextValue } from './context';
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { DialogProps } from '@mui/material/Dialog';
20
+ import type { SxProps, Theme } from '@mui/material/styles';
21
+ import { FullScreenWizardProgress } from './FullScreenWizardProgress';
22
+ import { FullScreenWizardHeader } from './FullScreenWizardHeader';
23
+ import { FullScreenWizardContent } from './FullScreenWizardContent';
24
+ import { FullScreenWizardFooter } from './FullScreenWizardFooter';
25
+ import { FullScreenWizardPreview } from './FullScreenWizardPreview';
26
+ /**
27
+ * Props for the FullScreenWizard component.
28
+ */
29
+ export interface FullScreenWizardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'aria-label' | 'aria-labelledby'> {
30
+ /**
31
+ * Wizard parts: Progress, Header, Content, Footer and an optional Preview.
32
+ * Parts are found by their `displayName`, so a product component that wraps
33
+ * a part must set the same `displayName` (e.g. `'FullScreenWizard.Footer'`)
34
+ * and pass its props (such as `variant` or `position`) through.
35
+ */
36
+ children: React.ReactNode;
37
+ /**
38
+ * Called by the built-in close button and, in modal mode, by Escape. Ask
39
+ * for confirmation here when there are unsaved changes.
40
+ */
41
+ onClose?: () => void;
42
+ /**
43
+ * Accessible name of the built-in close button.
44
+ * @default 'Close'
45
+ */
46
+ closeLabel?: string;
47
+ /**
48
+ * Renders the wizard in MUI's full-screen `Dialog`, which traps focus,
49
+ * locks page scroll and closes on Escape.
50
+ * @default false
51
+ */
52
+ modal?: boolean;
53
+ /**
54
+ * Whether the dialog is open. Modal mode only.
55
+ * @default false
56
+ */
57
+ open?: boolean;
58
+ /** Extra props for the `Dialog`. Modal mode only. */
59
+ DialogProps?: Partial<Omit<DialogProps, 'open' | 'onClose' | 'fullScreen' | 'children'>>;
60
+ /** Accessible name of the wizard: names the dialog in modal mode, the `main` region in page mode */
61
+ 'aria-label'?: string;
62
+ /** Id of the element naming the wizard; takes precedence over `aria-label` */
63
+ 'aria-labelledby'?: string;
64
+ /** Additional sx props applied to the root */
65
+ sx?: SxProps<Theme>;
66
+ }
67
+ type FullScreenWizardComponent = React.ForwardRefExoticComponent<FullScreenWizardProps & React.RefAttributes<HTMLDivElement>> & {
68
+ Progress: typeof FullScreenWizardProgress;
69
+ Header: typeof FullScreenWizardHeader;
70
+ Content: typeof FullScreenWizardContent;
71
+ Footer: typeof FullScreenWizardFooter;
72
+ Preview: typeof FullScreenWizardPreview;
73
+ };
74
+ /**
75
+ * FullScreenWizard compound component with attached sub-components.
76
+ *
77
+ * Sub-components:
78
+ * - `FullScreenWizard.Progress` - Determinate progress bar
79
+ * - `FullScreenWizard.Header` - Header with the built-in close button
80
+ * - `FullScreenWizard.Content` - Scroll region holding the active step
81
+ * - `FullScreenWizard.Footer` - Actions row under the step
82
+ * - `FullScreenWizard.Preview` - Live preview beside the form
83
+ */
84
+ export declare const FullScreenWizard: FullScreenWizardComponent;
85
+ export default FullScreenWizard;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { Breakpoint, SxProps, Theme } from '@mui/material/styles';
20
+ /**
21
+ * Props for the FullScreenWizard.Content component.
22
+ */
23
+ export interface FullScreenWizardContentProps extends React.HTMLAttributes<HTMLElement> {
24
+ /** The active step */
25
+ children?: React.ReactNode;
26
+ /**
27
+ * Element the content region renders as. Pass `'div'` when the page around
28
+ * the wizard already has a `main` landmark, such as an `AppShell`.
29
+ * @default 'main' in page mode, 'div' in modal mode
30
+ */
31
+ component?: React.ElementType;
32
+ /**
33
+ * Maximum width of the content column: a breakpoint key, a width in pixels,
34
+ * or `false` to fill the available width. `xs` is at least 444px, as in MUI's `Container`.
35
+ * @default 'md'
36
+ */
37
+ maxWidth?: Breakpoint | number | false;
38
+ /**
39
+ * Position of the content column. `start` keeps the form left-aligned, so
40
+ * showing or hiding a preview does not move it. `center` centres the column
41
+ * in both directions, for a landing screen such as a welcome page.
42
+ * @default 'start'
43
+ */
44
+ align?: 'start' | 'center';
45
+ /**
46
+ * Identifies the active step. When it changes, focus moves to the content
47
+ * region and the region scrolls to the top, so screen readers start at the
48
+ * new step. Nothing happens on the first render.
49
+ */
50
+ focusKey?: string | number;
51
+ /** Additional sx props */
52
+ sx?: SxProps<Theme>;
53
+ }
54
+ /**
55
+ * FullScreenWizard.Content - Scroll region holding the active step.
56
+ *
57
+ * Renders a `<main>` landmark in page mode and a plain region inside the
58
+ * dialog in modal mode; `component` overrides the element. The step and the `FullScreenWizard.Footer` share a
59
+ * left-aligned column capped at `maxWidth`, so showing or hiding a preview
60
+ * does not move the form.
61
+ *
62
+ * @example
63
+ * ```tsx
64
+ * <FullScreenWizard.Content maxWidth="md" focusKey={wizard.activeStep}>
65
+ * {wizard.activeStep && stepContent[wizard.activeStep]}
66
+ * </FullScreenWizard.Content>
67
+ * ```
68
+ */
69
+ export declare const FullScreenWizardContent: React.ForwardRefExoticComponent<FullScreenWizardContentProps & React.RefAttributes<HTMLElement>>;
70
+ export default FullScreenWizardContent;