@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,59 @@
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 the FullScreenWizard.Footer component.
22
+ */
23
+ export interface FullScreenWizardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ /** Actions, e.g. Back and Continue buttons */
25
+ children?: React.ReactNode;
26
+ /**
27
+ * Pins the footer to the bottom of the scroll region, so the actions stay in
28
+ * view on a long form.
29
+ * @default false
30
+ */
31
+ sticky?: boolean;
32
+ /**
33
+ * `inline` renders the actions under the step, in the content column.
34
+ * `bar` anchors them in a full-width bar along the bottom of the form
35
+ * column, outside the scroll region, so they are always in view.
36
+ * @default 'inline'
37
+ */
38
+ variant?: 'inline' | 'bar';
39
+ /** Additional sx props */
40
+ sx?: SxProps<Theme>;
41
+ }
42
+ /**
43
+ * FullScreenWizard.Footer - Row of actions under the step content.
44
+ *
45
+ * Actions are end-aligned. Push a Back button to the start with
46
+ * `sx={{ mr: 'auto' }}`. The inline footer renders inside the content's
47
+ * scroll region, in the same column as the step, wherever it sits among the
48
+ * wizard's children. The bar footer spans the bottom of the form column.
49
+ *
50
+ * @example
51
+ * ```tsx
52
+ * <FullScreenWizard.Footer>
53
+ * <Button variant="outlined" onClick={wizard.back} sx={{ mr: 'auto' }}>Back</Button>
54
+ * <Button variant="contained" onClick={wizard.next}>Continue</Button>
55
+ * </FullScreenWizard.Footer>
56
+ * ```
57
+ */
58
+ export declare const FullScreenWizardFooter: React.ForwardRefExoticComponent<FullScreenWizardFooterProps & React.RefAttributes<HTMLDivElement>>;
59
+ export default FullScreenWizardFooter;
@@ -0,0 +1,59 @@
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 { IconButtonProps } from '@mui/material/IconButton';
20
+ import type { SxProps, Theme } from '@mui/material/styles';
21
+ /**
22
+ * Props for the FullScreenWizard.Header component.
23
+ */
24
+ export interface FullScreenWizardHeaderProps extends React.HTMLAttributes<HTMLElement> {
25
+ /** Breadcrumbs or a title, shown beside the close button */
26
+ children?: React.ReactNode;
27
+ /**
28
+ * Side of the header the close button sits on. Use `end` on a landing screen
29
+ * or a flow whose header holds a title or a stepper on the left.
30
+ * @default 'start'
31
+ */
32
+ closePosition?: 'start' | 'end';
33
+ /**
34
+ * Icon of the close button.
35
+ * @default <X size={20} />
36
+ */
37
+ closeIcon?: React.ReactNode;
38
+ /** Extra props for the close button, e.g. `size`, `color` or `sx`. Its name and click handler come from the wizard. */
39
+ CloseButtonProps?: Partial<Omit<IconButtonProps, 'onClick' | 'children'>>;
40
+ /** Additional sx props */
41
+ sx?: SxProps<Theme>;
42
+ }
43
+ /**
44
+ * FullScreenWizard.Header - Header row with the built-in close button.
45
+ *
46
+ * Renders a `<header>` holding the close button, named by the wizard's
47
+ * `closeLabel` and calling its `onClose`, and `children`. The close button
48
+ * comes first by default; `closePosition="end"` moves it after `children`. It
49
+ * is not rendered when the wizard has no `onClose`.
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * <FullScreenWizard.Header>
54
+ * <AppBreadcrumbs items={breadcrumbs} />
55
+ * </FullScreenWizard.Header>
56
+ * ```
57
+ */
58
+ export declare const FullScreenWizardHeader: React.ForwardRefExoticComponent<FullScreenWizardHeaderProps & React.RefAttributes<HTMLElement>>;
59
+ export default FullScreenWizardHeader;
@@ -0,0 +1,61 @@
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.Preview component.
22
+ */
23
+ export interface FullScreenWizardPreviewProps extends React.HTMLAttributes<HTMLElement> {
24
+ /** Live preview of what the wizard creates, or other supporting content such as a step list or tips */
25
+ children?: React.ReactNode;
26
+ /**
27
+ * Side of the form the panel sits on.
28
+ * @default 'end'
29
+ */
30
+ position?: 'start' | 'end';
31
+ /**
32
+ * Hides the preview below this breakpoint. The preview is supplementary, so
33
+ * small screens show the form alone. Pass `false` to always show it.
34
+ * @default 'md'
35
+ */
36
+ hideBelow?: Breakpoint | false;
37
+ /**
38
+ * Accessible name of the preview region.
39
+ * @default 'Preview'
40
+ */
41
+ previewLabel?: string;
42
+ /** Additional sx props */
43
+ sx?: SxProps<Theme>;
44
+ }
45
+ /**
46
+ * FullScreenWizard.Preview - Live preview beside the form.
47
+ *
48
+ * Adding a preview switches the wizard to a split layout: the header, content
49
+ * and footer take one column and the preview takes the other at full height,
50
+ * on the right by default or on the left with `position="start"`. It renders an `<aside>` landmark with its own
51
+ * scroll.
52
+ *
53
+ * @example
54
+ * ```tsx
55
+ * <FullScreenWizard.Preview>
56
+ * <SignInPreview branding={branding} />
57
+ * </FullScreenWizard.Preview>
58
+ * ```
59
+ */
60
+ export declare const FullScreenWizardPreview: React.ForwardRefExoticComponent<FullScreenWizardPreviewProps & React.RefAttributes<HTMLElement>>;
61
+ export default FullScreenWizardPreview;
@@ -0,0 +1,61 @@
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 { LinearProgressProps } from '@mui/material/LinearProgress';
20
+ /**
21
+ * Props for the FullScreenWizard.Progress component.
22
+ */
23
+ export interface FullScreenWizardProgressProps extends Omit<LinearProgressProps, 'variant' | 'value' | 'valueBuffer'> {
24
+ /** Progress through the wizard, from 0 to 100. Values outside the range are clamped. */
25
+ value: number;
26
+ /**
27
+ * Text read by screen readers in place of the percentage, e.g. "Step 2 of 3".
28
+ */
29
+ valueText?: string;
30
+ /**
31
+ * Accessible name of the progress bar.
32
+ * @default 'Progress'
33
+ */
34
+ progressLabel?: string;
35
+ /**
36
+ * `bar` is a thin bar across the full width. `segmented` shows one segment
37
+ * per step, inset to line up with the header; it needs `steps`.
38
+ * @default 'bar'
39
+ */
40
+ variant?: 'bar' | 'segmented';
41
+ /** Number of segments in the `segmented` variant, usually the number of steps */
42
+ steps?: number;
43
+ }
44
+ /**
45
+ * FullScreenWizard.Progress - Determinate progress indicator along the top of the wizard.
46
+ *
47
+ * Leave it out for a single-step form. Both variants render a `progressbar`
48
+ * with the same value, name and value text.
49
+ *
50
+ * @example
51
+ * ```tsx
52
+ * <FullScreenWizard.Progress
53
+ * value={wizard.progress}
54
+ * valueText={`Step ${wizard.activeIndex + 1} of ${wizard.count}`}
55
+ * />
56
+ *
57
+ * <FullScreenWizard.Progress variant="segmented" steps={wizard.count} value={wizard.progress} />
58
+ * ```
59
+ */
60
+ export declare const FullScreenWizardProgress: React.ForwardRefExoticComponent<Omit<FullScreenWizardProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
61
+ export default FullScreenWizardProgress;
@@ -0,0 +1,71 @@
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 the FullScreenWizard compound component.
21
+ */
22
+ export interface FullScreenWizardContextValue {
23
+ /** Called by the built-in close button. The button is not rendered without it. */
24
+ onClose?: () => void;
25
+ /** Accessible name of the built-in close button */
26
+ closeLabel: string;
27
+ /** Whether the wizard is rendered inside a full-screen dialog */
28
+ modal: boolean;
29
+ /** Accessible name of the wizard; names the `main` region in page mode */
30
+ ariaLabel?: string;
31
+ /** Id of the element naming the wizard; names the `main` region in page mode */
32
+ ariaLabelledby?: string;
33
+ /**
34
+ * The `FullScreenWizard.Footer` element, lifted out of the children so
35
+ * `FullScreenWizard.Content` can render it inside its scroll region, under
36
+ * the step content.
37
+ */
38
+ footer: React.ReactNode;
39
+ /**
40
+ * Height of `FullScreenWizard.Header` in pixels, measured as it renders, so
41
+ * centred content can balance it and sit in the middle of the whole screen.
42
+ */
43
+ headerHeight: number;
44
+ /** Reports the header's height; used by `FullScreenWizard.Header` */
45
+ setHeaderHeight: (height: number) => void;
46
+ }
47
+ /**
48
+ * Returns `label` when it is a non-blank string, otherwise `fallback`. An empty
49
+ * or whitespace label must not wipe a control's default accessible name.
50
+ */
51
+ export declare const resolveLabel: (label: string | undefined, fallback: string) => string;
52
+ /**
53
+ * Context for sharing state between FullScreenWizard compound components.
54
+ */
55
+ export declare const FullScreenWizardContext: React.Context<FullScreenWizardContextValue | null>;
56
+ /**
57
+ * Hook to access the FullScreenWizard context with a helpful error message.
58
+ *
59
+ * @param componentName - Name of the component using the context (for error messages)
60
+ * @returns FullScreenWizard context value
61
+ * @throws Error if used outside FullScreenWizard
62
+ *
63
+ * @example
64
+ * ```tsx
65
+ * function StepTitle() {
66
+ * const { modal } = useFullScreenWizard('StepTitle');
67
+ * // ...
68
+ * }
69
+ * ```
70
+ */
71
+ export declare const useFullScreenWizard: (componentName?: string) => FullScreenWizardContextValue;
@@ -0,0 +1,33 @@
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 { FullScreenWizard, default } from './FullScreenWizard';
19
+ export type { FullScreenWizardProps } from './FullScreenWizard';
20
+ export { FullScreenWizardProgress } from './FullScreenWizardProgress';
21
+ export type { FullScreenWizardProgressProps } from './FullScreenWizardProgress';
22
+ export { FullScreenWizardHeader } from './FullScreenWizardHeader';
23
+ export type { FullScreenWizardHeaderProps } from './FullScreenWizardHeader';
24
+ export { FullScreenWizardContent } from './FullScreenWizardContent';
25
+ export type { FullScreenWizardContentProps } from './FullScreenWizardContent';
26
+ export { FullScreenWizardFooter } from './FullScreenWizardFooter';
27
+ export type { FullScreenWizardFooterProps } from './FullScreenWizardFooter';
28
+ export { FullScreenWizardPreview } from './FullScreenWizardPreview';
29
+ export type { FullScreenWizardPreviewProps } from './FullScreenWizardPreview';
30
+ export { FullScreenWizardContext, useFullScreenWizard } from './context';
31
+ export type { FullScreenWizardContextValue } from './context';
32
+ export { useWizardSteps } from './useWizardSteps';
33
+ export type { UseWizardStepsOptions, UseWizardStepsReturn, WizardStepInput, } from './useWizardSteps';
@@ -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
+ /**
19
+ * A wizard step: its id, or an object that can mark the step as skipped.
20
+ */
21
+ export type WizardStepInput<T extends string = string> = T | {
22
+ id: T;
23
+ skip?: boolean;
24
+ };
25
+ /**
26
+ * Options for the useWizardSteps hook.
27
+ */
28
+ export interface UseWizardStepsOptions<T extends string = string> {
29
+ /** Step to start on. Falls back to the first visible step when it is unknown or skipped. */
30
+ initialStep?: T;
31
+ }
32
+ /**
33
+ * Return value of the useWizardSteps hook.
34
+ */
35
+ export interface UseWizardStepsReturn<T extends string = string> {
36
+ /** Id of the active step. `undefined` only when every step is skipped. */
37
+ activeStep: T | undefined;
38
+ /** Index of the active step among the visible steps (`-1` when there are none) */
39
+ activeIndex: number;
40
+ /** Ids of the visible steps, in order. Skipped steps are left out. */
41
+ steps: T[];
42
+ /** Number of visible steps */
43
+ count: number;
44
+ /** Whether the active step is the first visible step */
45
+ isFirst: boolean;
46
+ /** Whether the active step is the last visible step. `false` when every step is skipped. */
47
+ isLast: boolean;
48
+ /** Moves to the next visible step. Does nothing on the last step. */
49
+ next: () => void;
50
+ /** Moves to the previous visible step. Does nothing on the first step. */
51
+ back: () => void;
52
+ /** Moves to the given step. Unknown and skipped ids are ignored. */
53
+ goTo: (step: T) => void;
54
+ /** Progress through the visible steps, from 0 to 100, counting the active step as done */
55
+ progress: number;
56
+ }
57
+ /**
58
+ * useWizardSteps - Step state for a `FullScreenWizard`.
59
+ *
60
+ * Tracks the active step of a linear flow. Steps marked `skip` are left out
61
+ * of navigation, the count and the progress. Navigation clamps at both ends.
62
+ * The hook has no side effects and does not touch the router, so a flow
63
+ * driven by a server or by the URL can manage its own state instead.
64
+ *
65
+ * @example
66
+ * ```tsx
67
+ * const wizard = useWizardSteps(['details', { id: 'security', skip: !needsSecurity }, 'review']);
68
+ *
69
+ * <FullScreenWizard onClose={handleClose} aria-label="Create project">
70
+ * <FullScreenWizard.Progress
71
+ * value={wizard.progress}
72
+ * valueText={`Step ${wizard.activeIndex + 1} of ${wizard.count}`}
73
+ * />
74
+ * <FullScreenWizard.Content focusKey={wizard.activeStep}>
75
+ * {wizard.activeStep && stepContent[wizard.activeStep]}
76
+ * </FullScreenWizard.Content>
77
+ * <FullScreenWizard.Footer>
78
+ * {!wizard.isFirst && <Button onClick={wizard.back}>Back</Button>}
79
+ * <Button variant="contained" onClick={wizard.next}>Continue</Button>
80
+ * </FullScreenWizard.Footer>
81
+ * </FullScreenWizard>
82
+ * ```
83
+ */
84
+ export declare const useWizardSteps: <T extends string>(steps: ReadonlyArray<WizardStepInput<T>>, { initialStep }?: UseWizardStepsOptions<T>) => UseWizardStepsReturn<T>;
85
+ export default useWizardSteps;
@@ -0,0 +1,92 @@
1
+ import React from 'react';
2
+ import type { CardProps } from '@mui/material';
3
+ /**
4
+ * Props for the ListingCard component
5
+ */
6
+ export interface ListingCardProps extends Omit<CardProps, 'variant' | 'title' | 'children' | 'onClick'> {
7
+ /**
8
+ * Title of the card. Truncated when too long, with the full name in a tooltip on hover.
9
+ */
10
+ title: React.ReactNode;
11
+ /**
12
+ * Short description shown under the title. Cut off with an ellipsis after two lines, with the full text in a tooltip on hover.
13
+ * Nothing is rendered when it is not set.
14
+ */
15
+ description?: React.ReactNode;
16
+ /**
17
+ * Icon shown in the round badge. Defaults to a cube icon.
18
+ */
19
+ icon?: React.ReactNode;
20
+ /**
21
+ * Theme color of the icon badge.
22
+ * @default 'primary'
23
+ */
24
+ iconColor?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
25
+ /**
26
+ * Style of the icon badge: `light` is a tinted background with a colored icon, `filled` is a solid
27
+ * background with a contrasting icon.
28
+ * @default 'light'
29
+ */
30
+ iconVariant?: 'light' | 'filled';
31
+ /**
32
+ * Relative time text for the footer, e.g. "1 minute ago" or "1 day ago", shown with a clock icon.
33
+ * The time is hidden when not set.
34
+ */
35
+ updatedTime?: React.ReactNode;
36
+ /**
37
+ * Optional text before the time, e.g. "Updated".
38
+ */
39
+ updatedLabel?: React.ReactNode;
40
+ /**
41
+ * Machine-readable date/time for the footer time (e.g. an ISO 8601 string).
42
+ */
43
+ updatedDateTime?: string;
44
+ /**
45
+ * Content of the tooltip shown when hovering the time, e.g. the full date. No tooltip when not set.
46
+ */
47
+ updatedTooltip?: React.ReactNode;
48
+ /**
49
+ * Called when the delete button is clicked. The delete button is shown only when this is set,
50
+ * and appears when the card is hovered or focused.
51
+ */
52
+ onDelete?: React.MouseEventHandler<HTMLButtonElement>;
53
+ /**
54
+ * Accessible name (and tooltip) of the delete button.
55
+ * @default 'Delete'
56
+ */
57
+ deleteLabel?: string;
58
+ /**
59
+ * Custom content for the bottom right of the card, shown on hover like the delete button. Replaces the delete button.
60
+ */
61
+ actions?: React.ReactNode;
62
+ /**
63
+ * Called when the card is clicked. When set (or when `href` is set) the whole card is interactive.
64
+ */
65
+ onClick?: React.MouseEventHandler<HTMLElement>;
66
+ /**
67
+ * When set, the whole card renders as a link to this URL.
68
+ */
69
+ href?: string;
70
+ /**
71
+ * Highlights the card with a primary colored border, e.g. for the current item.
72
+ * @default false
73
+ */
74
+ selected?: boolean;
75
+ }
76
+ /**
77
+ * ListingCard component - A card for an item in a listing (such as a project) with an icon, title, description,
78
+ * last updated time and an optional delete action shown on hover.
79
+ *
80
+ * @example
81
+ * ```tsx
82
+ * <ListingCard
83
+ * title="Default"
84
+ * description="Default project"
85
+ * updatedTime="1 day ago"
86
+ * onClick={() => openItem(id)}
87
+ * onDelete={() => deleteItem(id)}
88
+ * />
89
+ * ```
90
+ */
91
+ declare const ListingCard: React.FC<ListingCardProps>;
92
+ export default ListingCard;
@@ -0,0 +1,2 @@
1
+ export { default } from './ListingCard';
2
+ export * from './ListingCard';
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Props for the chip that shows one applied filter in the toolbar of a LogViewer.
4
+ */
5
+ interface LogFilterChipProps {
6
+ /** Name of the filter, shown before the value (e.g. "Status"). */
7
+ name: string;
8
+ /** Current value of the filter (e.g. "Failed"). */
9
+ value: React.ReactNode;
10
+ /** Called when the chip is clicked, to reopen the picker of this filter. */
11
+ onOpen?: (event: React.MouseEvent<HTMLElement>) => void;
12
+ /** Called when the remove icon is clicked, or Backspace or Delete is pressed on the focused chip. */
13
+ onRemove?: () => void;
14
+ /**
15
+ * The action of the chip while it can be clicked to change the filter. Its accessible name is the text
16
+ * the chip shows, then this: `Status: Failed, Change status filter`. A value that is not text cannot be
17
+ * put into a name, so then this alone is the name.
18
+ * @default `Change ${name} filter`, with the name in lower case
19
+ */
20
+ changeLabel?: string;
21
+ /**
22
+ * Accessible name of the remove icon.
23
+ * @default `Remove ${name} filter`, with the name in lower case
24
+ */
25
+ removeLabel?: string;
26
+ }
27
+ /**
28
+ * An applied filter as a removable `name: value` chip, built on the standard `Chip`.
29
+ */
30
+ declare const LogFilterChip: React.FC<LogFilterChipProps>;
31
+ export default LogFilterChip;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import type { LogLevel } from './types';
3
+ /**
4
+ * The text each level is shown as.
5
+ */
6
+ export declare const DEFAULT_LEVEL_LABELS: Record<LogLevel, string>;
7
+ export interface LogLevelMarkerProps {
8
+ level: LogLevel;
9
+ label: string;
10
+ }
11
+ /**
12
+ * The marker shown before a log line. It always has text, so severity is never shown by color
13
+ * alone. It is a span, because it sits inside a button.
14
+ */
15
+ declare const LogLevelMarker: React.FC<LogLevelMarkerProps>;
16
+ export default LogLevelMarker;