@wso2/oxygen-ui 0.17.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 (55) 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/TrialBadge/TrialBadge.d.ts +192 -0
  49. package/dist/components/TrialBadge/index.d.ts +2 -0
  50. package/dist/components/index.d.ts +13 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +6612 -3133
  53. package/dist/index.js.map +4 -4
  54. package/dist/styles/OxygenThemeBase.d.ts +12 -0
  55. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ export { default } from './LogViewer';
2
+ export { default as LogViewer } from './LogViewer';
3
+ export type { LogViewerProps } from './LogViewer';
4
+ export type { LogViewerStreamProps } from './LogViewerStream';
5
+ export type { LogViewerToolbarProps } from './LogViewerToolbar';
6
+ export type { LogViewerSearchProps } from './LogViewerSearch';
7
+ export type { LogViewerCountProps, LogViewerDownloadProps, LogViewerRefreshProps, LogViewerSortProps, LogViewerTimeZoneProps, } from './LogViewerControls';
8
+ export type { LogColumn, LogEntry, LogFilterDefinition, LogFilterOption, LogFilterValue, LogFilterValues, LogLevel, LogSelectFilter, LogSort, LogTimeRangeFilter, LogTimeZone, LogViewerOrder, } from './types';
@@ -0,0 +1,26 @@
1
+ import type { LogTimeZone } from './types';
2
+ /**
3
+ * The date format of the viewer, as a date-fns format string, for the date fields of the time range
4
+ * picker. It is the date that `formatDisplay` and `formatShort` write, so a time reads the same in a row,
5
+ * in a filter chip and in the picker.
6
+ */
7
+ export declare const DATE_FORMAT = "yyyy-MM-dd";
8
+ /**
9
+ * The moment a timestamp stands for, or null when a string is not a date.
10
+ */
11
+ export declare const toDate: (timestamp: string | Date) => Date | null;
12
+ /**
13
+ * How a timestamp is shown in a row, for example "2026-10-15 08:16:55.622". A string that is not a
14
+ * date is shown as it is.
15
+ */
16
+ export declare const formatDisplay: (timestamp: string | Date, zone: LogTimeZone) => string;
17
+ /**
18
+ * How a timestamp is written into copied and downloaded text: ISO 8601 with the zone, for example
19
+ * "2026-10-15T08:16:55.622Z" or "2026-10-15T13:46:55.622+05:30", so a pasted line is unambiguous.
20
+ */
21
+ export declare const formatIso: (timestamp: string | Date, zone: LogTimeZone) => string;
22
+ /**
23
+ * A shorter form for filter chips, for example "2026-10-15 08:16:55". Local time adds its offset, for example
24
+ * "2026-10-15 13:46:55 +05:30", because two moments an hour apart read the same where the clocks are set back.
25
+ */
26
+ export declare const formatShort: (date: Date, zone: LogTimeZone) => string;
@@ -0,0 +1,163 @@
1
+ import type * as React from 'react';
2
+ import type { TimeRange, TimeRangePreset } from '../TimeRangeFilter';
3
+ /**
4
+ * How serious a log entry is. These are the six severity names of OpenTelemetry, from least to
5
+ * most serious.
6
+ */
7
+ export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
8
+ /**
9
+ * The time zone timestamps are shown in: UTC, or the reader's own (browser) time zone.
10
+ */
11
+ export type LogTimeZone = 'utc' | 'local';
12
+ /**
13
+ * One entry in a LogViewer.
14
+ */
15
+ export interface LogEntry {
16
+ /**
17
+ * Stable, unique identifier of the entry.
18
+ */
19
+ id: string;
20
+ /**
21
+ * When the entry happened. The viewer shows it in one standard format, in UTC or the reader's
22
+ * time zone. A string is read as a date; one that is not a date is shown as given.
23
+ */
24
+ timestamp: string | Date;
25
+ /**
26
+ * How serious the entry is. The viewer draws one standard marker for it, the same in every
27
+ * product, so do not color a column by hand to show severity. Leave it out for entries
28
+ * that have no level.
29
+ */
30
+ level?: LogLevel;
31
+ /**
32
+ * Fields shown when the entry is expanded, in the order given. Nested objects and arrays
33
+ * render as an expandable tree. The entry cannot be expanded when this is omitted and
34
+ * `renderDetails` is not set. The columns can read their content from here.
35
+ */
36
+ details?: Record<string, unknown>;
37
+ /**
38
+ * Plain text copied by the entry's Copy button and saved by Download. Defaults to the text of the
39
+ * entry's columns, joined by spaces. The button is hidden when there is no text to copy.
40
+ */
41
+ copyText?: string;
42
+ }
43
+ /**
44
+ * One column of the column layout. The viewer shows a heading for each column, and a filter and
45
+ * a sort control in it when the column has them.
46
+ */
47
+ export interface LogColumn {
48
+ /**
49
+ * Stable identifier. `time` and `level` are built in: without `render` they show the entry's
50
+ * time and level marker, and their label defaults to "Time" and "Level".
51
+ */
52
+ id: string;
53
+ /** Heading of the column. */
54
+ label?: string;
55
+ /**
56
+ * Width of the column: a number is pixels, a string is a CSS grid track size such as `'2fr'`.
57
+ * @default '1fr'
58
+ */
59
+ width?: number | string;
60
+ /** Content of the column for one entry. */
61
+ render?: (entry: LogEntry) => React.ReactNode;
62
+ /**
63
+ * Plain text of the column for one entry, used for the Copy button and Download. Defaults to the
64
+ * result of `render` when that is a string or a number, so it is only needed when `render` returns
65
+ * an element.
66
+ */
67
+ text?: (entry: LogEntry) => string;
68
+ /** Id of the entry of `filters` that is opened from this column's heading. */
69
+ filterId?: string;
70
+ /**
71
+ * Makes the heading a sort control. Sorting the `time` column switches between newest first and
72
+ * oldest first. Sorting any other column is reported through `onSortChange`.
73
+ */
74
+ sortable?: boolean;
75
+ }
76
+ /**
77
+ * The column the entries are sorted by, and the direction.
78
+ */
79
+ export interface LogSort {
80
+ /** Id of the sorted column. */
81
+ columnId: string;
82
+ direction: 'asc' | 'desc';
83
+ }
84
+ /**
85
+ * Which end of the list holds the newest entries.
86
+ * - `newest-first`: older entries are loaded at the bottom.
87
+ * - `oldest-first`: older entries are loaded at the top.
88
+ */
89
+ export type LogViewerOrder = 'newest-first' | 'oldest-first';
90
+ /**
91
+ * One choice of a `select` filter.
92
+ */
93
+ export interface LogFilterOption {
94
+ /**
95
+ * Value reported through `onFilterChange` and kept in `filterValues`. It must not be empty: an empty
96
+ * value means the filter is not applied, so a choice with one is left out of the list.
97
+ */
98
+ value: string;
99
+ /** Text shown for the choice. */
100
+ label: string;
101
+ }
102
+ /**
103
+ * A filter whose value is one of a list of options.
104
+ */
105
+ export interface LogSelectFilter {
106
+ /** Stable identifier. It is the key in `filterValues` and the first argument of `onFilterChange`. */
107
+ id: string;
108
+ /** Name of the filter, on its button and before the value in its chip (e.g. "Status"). */
109
+ label: string;
110
+ type: 'select';
111
+ /** Choices. Build them from the loaded entries or list them in advance. */
112
+ options: LogFilterOption[];
113
+ /**
114
+ * Adds a search box above the choices, for long lists.
115
+ * @default false
116
+ */
117
+ searchable?: boolean;
118
+ /**
119
+ * Text of the choice that clears the filter.
120
+ * @default 'Any {label}' with the label in lower case, for example 'Any status'
121
+ */
122
+ allLabel?: string;
123
+ /**
124
+ * Placeholder of the search box.
125
+ * @default 'Search'
126
+ */
127
+ searchPlaceholder?: string;
128
+ /**
129
+ * Text shown when the search matches no choice.
130
+ * @default 'No matches'
131
+ */
132
+ noMatchLabel?: string;
133
+ }
134
+ /**
135
+ * A filter whose value is a time range, picked from presets or entered as a custom range.
136
+ */
137
+ export interface LogTimeRangeFilter {
138
+ /** Stable identifier. It is the key in `filterValues` and the first argument of `onFilterChange`. */
139
+ id: string;
140
+ /** Name of the filter, on its button and before the range in its chip (e.g. "Time"). */
141
+ label: string;
142
+ type: 'timeRange';
143
+ /** Quick ranges listed in the menu. Defaults to those of `TimeRangeFilter`. */
144
+ presets?: TimeRangePreset[];
145
+ /** Longest range, in milliseconds, that a custom range may span. Unlimited when omitted. */
146
+ maxRangeMs?: number;
147
+ /** Formats the range shown in the filter's chip. Defaults to UTC start and end times. */
148
+ formatValue?: (range: TimeRange) => string;
149
+ }
150
+ /**
151
+ * Describes one filter the viewer shows in its toolbar. The viewer only displays the filter and
152
+ * reports changes; it never filters the entries. Load or filter them in `onFilterChange`.
153
+ */
154
+ export type LogFilterDefinition = LogSelectFilter | LogTimeRangeFilter;
155
+ /**
156
+ * The value of one filter: an option value for `select`, a range for `timeRange`. `null`,
157
+ * `undefined` or an empty string means the filter is not applied.
158
+ */
159
+ export type LogFilterValue = string | TimeRange | null | undefined;
160
+ /**
161
+ * The applied filters, keyed by filter id.
162
+ */
163
+ export type LogFilterValues = Record<string, LogFilterValue>;
@@ -21,6 +21,7 @@ import { SidebarNav } from './SidebarNav';
21
21
  import { SidebarCategory, SidebarCategoryLabel } from './SidebarCategory';
22
22
  import { SidebarItem, SidebarItemIcon, SidebarItemLabel, SidebarItemBadge } from './SidebarItem';
23
23
  import { SidebarFooter } from './SidebarFooter';
24
+ import { SidebarCollapseToggle } from './SidebarCollapseToggle';
24
25
  import { SidebarUser, SidebarUserAvatar, SidebarUserName, SidebarUserEmail } from './SidebarUser';
25
26
  /**
26
27
  * Theme tokens used in this component:
@@ -111,6 +112,7 @@ declare const Sidebar: React.FC<SidebarProps> & {
111
112
  ItemLabel: typeof SidebarItemLabel;
112
113
  ItemBadge: typeof SidebarItemBadge;
113
114
  Footer: typeof SidebarFooter;
115
+ CollapseToggle: typeof SidebarCollapseToggle;
114
116
  User: typeof SidebarUser;
115
117
  UserAvatar: typeof SidebarUserAvatar;
116
118
  UserName: typeof SidebarUserName;
@@ -0,0 +1,50 @@
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 SidebarCollapseToggle component.
22
+ */
23
+ export interface SidebarCollapseToggleProps {
24
+ /** Toggles the sidebar; defaults to the AppShell action */
25
+ onToggle?: () => void;
26
+ /** Label when expanded */
27
+ collapseLabel?: string;
28
+ /** Tooltip when collapsed */
29
+ expandLabel?: string;
30
+ /** Icon when expanded */
31
+ collapseIcon?: React.ReactNode;
32
+ /** Icon when collapsed */
33
+ expandIcon?: React.ReactNode;
34
+ /** Additional sx props */
35
+ sx?: SxProps<Theme>;
36
+ }
37
+ /**
38
+ * SidebarCollapseToggle - Collapse control for the bottom of the sidebar.
39
+ *
40
+ * Place it in `Sidebar.Footer` so it stays in the same spot however long the nav gets.
41
+ *
42
+ * @example
43
+ * ```tsx
44
+ * <Sidebar.Footer>
45
+ * <Sidebar.CollapseToggle onToggle={toggle} />
46
+ * </Sidebar.Footer>
47
+ * ```
48
+ */
49
+ export declare const SidebarCollapseToggle: React.FC<SidebarCollapseToggleProps>;
50
+ export default SidebarCollapseToggle;
@@ -35,6 +35,8 @@ export { SidebarItemContext, SidebarItemProvider, useSidebarItemContext, } from
35
35
  export type { SidebarItemContextValue } from './SidebarItemContext';
36
36
  export { SidebarFooter } from './SidebarFooter';
37
37
  export type { SidebarFooterProps } from './SidebarFooter';
38
+ export { SidebarCollapseToggle } from './SidebarCollapseToggle';
39
+ export type { SidebarCollapseToggleProps } from './SidebarCollapseToggle';
38
40
  export { SidebarUser } from './SidebarUser';
39
41
  export type { SidebarUserProps } from './SidebarUser';
40
42
  export { SidebarUserAvatar } from './SidebarUserAvatar';
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { type TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
3
+ /** `top` draws a static label above the field instead of MUI's floating label. */
4
+ export type TextFieldLabelPlacement = 'top';
5
+ export type TextFieldProps = MuiTextFieldProps & {
6
+ /** Leave unset for MUI's floating label; `top` draws a static label above the field. */
7
+ labelPlacement?: TextFieldLabelPlacement;
8
+ /** Appends "(Optional)" to the label; ignored without a label or on a `required` field. */
9
+ optional?: boolean;
10
+ };
11
+ /** MUI's TextField; with `labelPlacement="top"`, `ref` and layout props go to an outer FormControl. */
12
+ declare const TextField: React.ForwardRefExoticComponent<(Omit<import("@mui/material").FilledTextFieldProps & {
13
+ /** Leave unset for MUI's floating label; `top` draws a static label above the field. */
14
+ labelPlacement?: TextFieldLabelPlacement;
15
+ /** Appends "(Optional)" to the label; ignored without a label or on a `required` field. */
16
+ optional?: boolean;
17
+ }, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & {
18
+ /** Leave unset for MUI's floating label; `top` draws a static label above the field. */
19
+ labelPlacement?: TextFieldLabelPlacement;
20
+ /** Appends "(Optional)" to the label; ignored without a label or on a `required` field. */
21
+ optional?: boolean;
22
+ }, "ref"> | Omit<import("@mui/material").StandardTextFieldProps & {
23
+ /** Leave unset for MUI's floating label; `top` draws a static label above the field. */
24
+ labelPlacement?: TextFieldLabelPlacement;
25
+ /** Appends "(Optional)" to the label; ignored without a label or on a `required` field. */
26
+ optional?: boolean;
27
+ }, "ref">) & React.RefAttributes<HTMLDivElement>>;
28
+ export default TextField;
@@ -0,0 +1,2 @@
1
+ export { default } from './TextField';
2
+ export * from './TextField';
@@ -0,0 +1,192 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '@mui/material';
3
+ /**
4
+ * Visual status of a trial, derived from the days remaining.
5
+ */
6
+ export type TrialBadgeStatus = 'active' | 'ending-soon' | 'critical' | 'expired';
7
+ /**
8
+ * Props for the TrialBadge component
9
+ */
10
+ export interface TrialBadgeProps extends Omit<BoxProps, 'children'> {
11
+ /**
12
+ * Number of days left in the trial. Fractional values are allowed: the exact value drives
13
+ * the status and ring, and the displayed count is rounded up. Values below 0 are treated as 0 (expired).
14
+ */
15
+ daysLeft: number;
16
+ /**
17
+ * Total length of the trial in days. Used to compute the progress ring.
18
+ * @default 14
19
+ */
20
+ totalDays?: number;
21
+ /**
22
+ * Days left at or below which the badge switches to the "ending soon" state.
23
+ * @default 7
24
+ */
25
+ endingSoonThreshold?: number;
26
+ /**
27
+ * Days left at or below which the badge switches to the "critical" state
28
+ * and shows the upgrade link.
29
+ * @default 3
30
+ */
31
+ criticalThreshold?: number;
32
+ /**
33
+ * Called when the badge is clicked, in addition to any `onClick`. When set (or when
34
+ * `upgradeHref` or `onClick` is set) the whole badge is rendered as a button.
35
+ */
36
+ onUpgrade?: React.MouseEventHandler<HTMLElement>;
37
+ /**
38
+ * When set, the whole badge renders as an anchor pointing to this URL.
39
+ */
40
+ upgradeHref?: string;
41
+ /**
42
+ * Whether to show the "Upgrade now" text in the critical and expired states.
43
+ * @default true
44
+ */
45
+ showUpgrade?: boolean;
46
+ /**
47
+ * Primary line while the trial is running. Receives the days left.
48
+ * @default (days) => `${days} day(s) left`
49
+ */
50
+ getTitle?: (daysLeft: number) => React.ReactNode;
51
+ /**
52
+ * Primary line once the trial has expired.
53
+ * @default 'Trial expired'
54
+ */
55
+ expiredLabel?: React.ReactNode;
56
+ /**
57
+ * Secondary line while no upgrade prompt is shown.
58
+ * @default 'of free trial'
59
+ */
60
+ subtitle?: React.ReactNode;
61
+ /**
62
+ * Text of the upgrade link.
63
+ * @default 'Upgrade now'
64
+ */
65
+ upgradeLabel?: React.ReactNode;
66
+ /**
67
+ * Optional usage summary. When set, hovering or focusing the badge opens a panel listing
68
+ * how much of each resource is used, with an upgrade button. When omitted, no panel is shown.
69
+ */
70
+ usage?: TrialBadgeUsage;
71
+ }
72
+ /**
73
+ * A resource listed in the usage panel, shown as `count/limit`.
74
+ */
75
+ export interface TrialBadgeUsageItem {
76
+ /**
77
+ * Stable key for the row. Falls back to the label.
78
+ */
79
+ key?: string;
80
+ /**
81
+ * Name of the resource, e.g. "REST APIs".
82
+ */
83
+ label: React.ReactNode;
84
+ /**
85
+ * The count shown for this resource, out of `limit`. The bar and its color follow
86
+ * `count / limit`: a higher share means more of the quota is taken, so it turns yellow and then red.
87
+ */
88
+ count: number;
89
+ /**
90
+ * The total allowed for this resource.
91
+ */
92
+ limit: number;
93
+ }
94
+ /**
95
+ * A titled group of resources in the usage panel.
96
+ */
97
+ export interface TrialBadgeUsageSection {
98
+ /**
99
+ * Stable key for the section. Falls back to the title.
100
+ */
101
+ key?: string;
102
+ /**
103
+ * Heading of the section.
104
+ */
105
+ title: React.ReactNode;
106
+ /**
107
+ * The resources to list. The section total is the sum of their counts and limits.
108
+ */
109
+ items: TrialBadgeUsageItem[];
110
+ /**
111
+ * Text after the section total, e.g. `left` gives "14 of 30 left".
112
+ * The total is shown only when this is passed.
113
+ */
114
+ totalSuffix?: React.ReactNode;
115
+ }
116
+ /**
117
+ * Content of the usage panel shown when hovering or focusing the badge.
118
+ * Pass `sections` for several titled groups, or `items` (with an optional `title`) for one.
119
+ */
120
+ export interface TrialBadgeUsage {
121
+ /**
122
+ * Titled groups of resources. Takes precedence over `items`.
123
+ */
124
+ sections?: TrialBadgeUsageSection[];
125
+ /**
126
+ * The resources to list when there is a single group and no `sections`.
127
+ */
128
+ items?: TrialBadgeUsageItem[];
129
+ /**
130
+ * Heading of the single group made from `items`.
131
+ * @default 'Components left'
132
+ */
133
+ title?: React.ReactNode;
134
+ /**
135
+ * Text after the total of the single group made from `items`.
136
+ * The total is shown only when this is passed.
137
+ */
138
+ totalSuffix?: React.ReactNode;
139
+ /**
140
+ * Text shown at the bottom left of the panel. Pass `null` to hide it.
141
+ * @default 'Unlimited on Pro'
142
+ */
143
+ footerText?: React.ReactNode;
144
+ /**
145
+ * Label of the panel's upgrade button.
146
+ * @default 'Upgrade'
147
+ */
148
+ upgradeLabel?: React.ReactNode;
149
+ /**
150
+ * Called when the panel's upgrade button is clicked.
151
+ */
152
+ onUpgrade?: React.MouseEventHandler<HTMLElement>;
153
+ /**
154
+ * When set, the panel's upgrade button renders as an anchor pointing to this URL.
155
+ */
156
+ upgradeHref?: string;
157
+ /**
158
+ * Share (0-1) of the limit above which a bar turns yellow. At or below it the bar is green.
159
+ * @default 0.5
160
+ */
161
+ warningThreshold?: number;
162
+ /**
163
+ * Share (0-1) of the limit at or above which a bar turns red.
164
+ * @default 0.75
165
+ */
166
+ criticalThreshold?: number;
167
+ }
168
+ /**
169
+ * Color tone of a quota, from the share of its limit that is taken.
170
+ */
171
+ export type TrialBadgeUsageTone = 'error' | 'warning' | 'success';
172
+ /**
173
+ * Resolve the status of a trial from the days left and thresholds.
174
+ */
175
+ export declare function getTrialBadgeStatus(daysLeft: number, endingSoonThreshold?: number, criticalThreshold?: number): TrialBadgeStatus;
176
+ /**
177
+ * TrialBadge component - A compact pill showing the remaining days of a free trial.
178
+ * The color changes with the time left, and in the last days (and after expiry)
179
+ * the second line becomes an "Upgrade now" link.
180
+ *
181
+ * @example
182
+ * ```tsx
183
+ * <TrialBadge daysLeft={12} />
184
+ * ```
185
+ *
186
+ * @example
187
+ * ```tsx
188
+ * <TrialBadge daysLeft={2} onUpgrade={() => navigate('/billing')} />
189
+ * ```
190
+ */
191
+ declare const TrialBadge: React.FC<TrialBadgeProps>;
192
+ export default TrialBadge;
@@ -0,0 +1,2 @@
1
+ export { default } from './TrialBadge';
2
+ export * from './TrialBadge';
@@ -26,14 +26,22 @@ export type { ColorSchemeSVGProps } from './ColorSchemeSVG';
26
26
  export { ColorSchemeToggle, default as ColorSchemeToggleDefault } from './ColorSchemeToggle';
27
27
  export { default as ComplexSelect } from './ComplexSelect';
28
28
  export type { ComplexSelectProps } from './ComplexSelect';
29
+ export { default as LogViewer } from './LogViewer';
30
+ export type { LogColumn, LogEntry, LogFilterDefinition, LogFilterOption, LogFilterValue, LogFilterValues, LogLevel, LogSelectFilter, LogSort, LogTimeRangeFilter, LogTimeZone, LogViewerOrder, LogViewerProps, LogViewerStreamProps, LogViewerToolbarProps, LogViewerSearchProps, LogViewerCountProps, LogViewerDownloadProps, LogViewerRefreshProps, LogViewerSortProps, LogViewerTimeZoneProps, } from './LogViewer';
29
31
  export { default as PageContent } from './PageContent';
30
32
  export type { PageContentProps } from './PageContent';
31
33
  export { default as PageTitle } from './PageTitle';
32
34
  export type { PageTitleProps, PageTitleAvatarProps, PageTitleHeaderProps, PageTitleSubHeaderProps, PageTitleLinkProps } from './PageTitle';
35
+ export { default as ListingCard } from './ListingCard';
36
+ export type { ListingCardProps } from './ListingCard';
33
37
  export { default as RelativeTime } from './RelativeTime';
34
38
  export type { RelativeTimeProps } from './RelativeTime';
39
+ export { default as TextField } from './TextField';
40
+ export type { TextFieldProps, TextFieldLabelPlacement } from './TextField';
35
41
  export { default as StatCard } from './StatCard';
36
42
  export type { StatCardProps } from './StatCard';
43
+ export { default as TrialBadge, getTrialBadgeStatus } from './TrialBadge';
44
+ export type { TrialBadgeProps, TrialBadgeStatus, TrialBadgeUsage, TrialBadgeUsageItem, TrialBadgeUsageSection, TrialBadgeUsageTone, } from './TrialBadge';
37
45
  export { default as ThemeSwitcher, ThemeSelect } from './ThemeSwitcher';
38
46
  export type { ThemeSwitcherProps, ThemeSelectProps } from './ThemeSwitcher';
39
47
  export { default as TimeRangeFilter } from './TimeRangeFilter';
@@ -47,9 +55,11 @@ export type { HeaderProps, HeaderSpacerProps, HeaderToggleProps, HeaderBrandProp
47
55
  export { AppSwitcher } from './AppSwitcher';
48
56
  export type { AppSwitcherProps, AppSwitcherTriggerProps, AppSwitcherSectionProps, AppSwitcherAppProps, AppSwitcherAppItem, AppSwitcherAppTone, AppSwitcherFooterProps, AppSwitcherFooterLink, AppSwitcherContextValue, } from './AppSwitcher';
49
57
  export { Sidebar, useSidebar } from './Sidebar';
50
- export type { SidebarProps, SidebarNavProps, SidebarCategoryProps, SidebarCategoryLabelProps, SidebarItemProps, SidebarItemIconProps, SidebarItemLabelProps, SidebarItemBadgeProps, SidebarFooterProps, SidebarUserProps, SidebarUserAvatarProps, SidebarUserNameProps, SidebarUserEmailProps, SidebarContextValue, SidebarItemContextValue, } from './Sidebar';
58
+ export type { SidebarProps, SidebarNavProps, SidebarCategoryProps, SidebarCategoryLabelProps, SidebarItemProps, SidebarItemIconProps, SidebarItemLabelProps, SidebarItemBadgeProps, SidebarFooterProps, SidebarCollapseToggleProps, SidebarUserProps, SidebarUserAvatarProps, SidebarUserNameProps, SidebarUserEmailProps, SidebarContextValue, SidebarItemContextValue, } from './Sidebar';
51
59
  export { NotificationPanel } from './NotificationPanel';
52
60
  export type { NotificationPanelProps, NotificationHeaderProps, NotificationHeaderIconProps, NotificationHeaderTitleProps, NotificationHeaderBadgeProps, NotificationHeaderCloseProps, NotificationTabsProps, NotificationTabConfig, NotificationActionsProps, NotificationListProps, NotificationItemProps, NotificationItemAvatarProps, NotificationItemTitleProps, NotificationItemMessageProps, NotificationItemTimestampProps, NotificationItemActionProps, NotificationItemContextValue, NotificationEmptyStateProps, NotificationPanelContextValue, NotificationType, NotificationTypeProps, } from './NotificationPanel';
61
+ export { DrawerPanel, useDrawerPanel } from './DrawerPanel';
62
+ export type { DrawerPanelProps, DrawerPanelHeaderProps, DrawerPanelTitleProps, DrawerPanelActionsProps, DrawerPanelExpandButtonProps, DrawerPanelCloseButtonProps, DrawerPanelBodyProps, DrawerPanelFooterProps, DrawerPanelContextValue, } from './DrawerPanel';
53
63
  export { Footer } from './Footer';
54
64
  export type { FooterProps } from './Footer';
55
65
  export { UserMenu } from './UserMenu';
@@ -57,6 +67,8 @@ export type { UserMenuProps, UserMenuUser } from './UserMenu';
57
67
  export { NotificationBanner } from './NotificationBanner';
58
68
  export type { NotificationBannerProps } from './NotificationBanner';
59
69
  export { Form } from './Form';
70
+ export { FullScreenWizard, useFullScreenWizard, useWizardSteps } from './FullScreenWizard';
71
+ export type { FullScreenWizardProps, FullScreenWizardProgressProps, FullScreenWizardHeaderProps, FullScreenWizardContentProps, FullScreenWizardFooterProps, FullScreenWizardPreviewProps, FullScreenWizardContextValue, UseWizardStepsOptions, UseWizardStepsReturn, WizardStepInput, } from './FullScreenWizard';
60
72
  export { AppShell } from './AppShell';
61
73
  export type { AppShellProps } from './AppShell';
62
74
  export { default as ListingTable } from './ListingTable';
package/dist/index.d.ts CHANGED
@@ -24,6 +24,8 @@ export { default as Layout } from "./layouts";
24
24
  export * from "./animations";
25
25
  export * from "./hooks";
26
26
  export * from "./utils";
27
+ export { TextField } from './components';
28
+ export type { TextFieldProps, TextFieldLabelPlacement } from './components';
27
29
  export * from '@mui/material';
28
30
  export * as colors from '@mui/material/colors';
29
31
  export * as DataGrid from '@mui/x-data-grid';