@wso2/oxygen-ui 0.26.0 → 0.27.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.
- package/.ai/components.md +32 -33
- package/.claude/components.md +32 -33
- package/.claude/skills/oxygen-layout/SKILL.md +1 -1
- package/.claude/skills/oxygen-migrate/SKILL.md +1 -1
- package/dist/components/AppShell/AppShell.d.ts +1 -1
- package/dist/components/AppShell/AppShellFooter.d.ts +1 -1
- package/dist/components/AppSwitcher/AppSwitcher.d.ts +12 -9
- package/dist/components/AppSwitcher/AppSwitcherApp.d.ts +19 -10
- package/dist/components/AppSwitcher/AppSwitcherFooter.d.ts +6 -6
- package/dist/components/AppSwitcher/AppSwitcherSection.d.ts +21 -7
- package/dist/components/AppSwitcher/AppSwitcherTrigger.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
- package/dist/components/Footer/FooterLink.d.ts +6 -2
- package/dist/components/HeaderBreadcrumbs/persistence.d.ts +1 -1
- package/dist/components/HeaderBreadcrumbs/useHeaderBreadcrumbs.d.ts +1 -1
- package/dist/components/StatusIllustration/StatusIllustration.d.ts +49 -0
- package/dist/components/StatusIllustration/illustrationStyles.d.ts +212 -0
- package/dist/components/StatusIllustration/illustrations/FailedIllustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http200Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http201Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http204Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http301Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http302Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http304Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http400Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http401Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http403Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http404Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http405Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http408Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http409Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http422Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http429Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http500Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http502Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http503Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/Http504Illustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/MailSentIllustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/NoRecordsIllustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/UnsuccessfulIllustration.d.ts +3 -0
- package/dist/components/StatusIllustration/illustrations/index.d.ts +12 -0
- package/dist/components/StatusIllustration/index.d.ts +2 -0
- package/dist/components/StatusIllustration/types.d.ts +2 -0
- package/dist/components/StatusIllustration/useIllustrationId.d.ts +5 -0
- package/dist/components/TimeRangeFilter/TimeRangeFilter.d.ts +3 -2
- package/dist/components/TrialBadge/TrialBadge.d.ts +8 -8
- package/dist/components/index.d.ts +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2583 -1155
- package/dist/index.js.map +4 -4
- package/dist/styles/OxygenThemeBase.d.ts +150 -0
- package/package.json +2 -2
- package/dist/components/AppSwitcher/brand.d.ts +0 -49
|
@@ -23,8 +23,11 @@ import { LinkProps } from '@mui/material/Link';
|
|
|
23
23
|
export interface FooterLinkProps extends Omit<LinkProps, 'underline'> {
|
|
24
24
|
/** Link text */
|
|
25
25
|
children: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Link URL. Leave it out for an action that is not a navigation, such as opening cookie settings:
|
|
28
|
+
* the link then renders as a `button` and runs `onClick`.
|
|
29
|
+
*/
|
|
30
|
+
href?: string;
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
30
33
|
* FooterLink - Link element for the footer.
|
|
@@ -32,6 +35,7 @@ export interface FooterLinkProps extends Omit<LinkProps, 'underline'> {
|
|
|
32
35
|
* Usage:
|
|
33
36
|
* ```tsx
|
|
34
37
|
* <Footer.Link href="/terms">Terms & Conditions</Footer.Link>
|
|
38
|
+
* <Footer.Link onClick={openCookieSettings}>Cookie settings</Footer.Link>
|
|
35
39
|
* ```
|
|
36
40
|
*/
|
|
37
41
|
export declare const FooterLink: React.FC<FooterLinkProps>;
|
|
@@ -74,7 +74,7 @@ export declare const clearHeaderBreadcrumbsState: (options?: HeaderBreadcrumbsPe
|
|
|
74
74
|
*/
|
|
75
75
|
export declare const subscribeHeaderBreadcrumbsState: (listener: (state: HeaderBreadcrumbsStoredState | null) => void, options?: HeaderBreadcrumbsPersistOptions) => (() => void);
|
|
76
76
|
/**
|
|
77
|
-
* Returns the stored selection, such as `{ organization: '
|
|
77
|
+
* Returns the stored selection, such as `{ organization: 'choreo-labs', project: 'oxygen-ui' }`,
|
|
78
78
|
* and re-renders when it changes in this page, another tab or another app on the same
|
|
79
79
|
* origin. Returns an empty object when nothing is stored. Works without rendering
|
|
80
80
|
* HeaderBreadcrumbs, so any app can read the current context.
|
|
@@ -23,7 +23,7 @@ import type { HeaderBreadcrumbsItem, HeaderBreadcrumbsLevel, HeaderBreadcrumbsVa
|
|
|
23
23
|
* What `fetchItems` receives.
|
|
24
24
|
*/
|
|
25
25
|
export interface HeaderBreadcrumbsFetchContext {
|
|
26
|
-
/** Selected ids of the levels above this one, for example `{ organization: '
|
|
26
|
+
/** Selected ids of the levels above this one, for example `{ organization: 'choreo-labs' }`. */
|
|
27
27
|
parents: HeaderBreadcrumbsValue;
|
|
28
28
|
/** Aborted when the parents change, the level is refreshed again, or the hook unmounts. */
|
|
29
29
|
signal: AbortSignal;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { type ColorSchemeSVGProps } from '../ColorSchemeSVG';
|
|
3
|
+
import { type StatusIllustrationStatus } from './illustrations';
|
|
4
|
+
export type { StatusIllustrationHttpStatus, StatusIllustrationState, StatusIllustrationStatus, } from './illustrations';
|
|
5
|
+
export interface StatusIllustrationProps extends Omit<ColorSchemeSVGProps, 'svg' | 'children' | 'viewBox' | 'preserveAspectRatio' | 'xmlns' | 'xmlnsXlink'> {
|
|
6
|
+
/**
|
|
7
|
+
* The status to illustrate: an HTTP status code (`404`, `500`, ...)
|
|
8
|
+
* or an application state (`'no-records'`, `'failed'`, `'unsuccessful'`, `'mail-sent'`).
|
|
9
|
+
*/
|
|
10
|
+
status: StatusIllustrationStatus;
|
|
11
|
+
/**
|
|
12
|
+
* Accessible label read by screen readers. Defaults to the status name, such as "404 Not found".
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Hide the illustration from assistive technology, for when nearby text already says the same thing.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
decorative?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Themable illustrations for HTTP status codes and common application states, such as error pages,
|
|
23
|
+
* empty states and confirmation screens. Renders through `ColorSchemeSVG` and takes its colours from
|
|
24
|
+
* the theme palette, so it matches the active theme in both light and dark mode.
|
|
25
|
+
*
|
|
26
|
+
* Any colour can be overridden by setting its CSS variable through `sx`: `--illustration-primary`,
|
|
27
|
+
* `--illustration-accent`, `--illustration-danger`, `--illustration-success`, `--illustration-warning`, `--illustration-neutral`,
|
|
28
|
+
* `--illustration-ink`, `--illustration-surface`, `--illustration-on-primary`, `--illustration-on-warning`,
|
|
29
|
+
* `--illustration-shade` and `--illustration-glow` (opacity of the background glow).
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <StatusIllustration status={404} />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* // Next to a heading that already describes the state
|
|
39
|
+
* <StatusIllustration status="no-records" width={240} decorative />
|
|
40
|
+
* <Typography variant="h5">No records found</Typography>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* // Override a colour
|
|
46
|
+
* <StatusIllustration status={500} sx={{'--illustration-danger': '#d32f2f'}} />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export default function StatusIllustration({ status, label, decorative, width, height, sx, ...rest }: StatusIllustrationProps): JSX.Element | null;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class styles shared by every status illustration. Colours come from the `--illustration-*`
|
|
3
|
+
* CSS variables, which StatusIllustration maps to the theme palette.
|
|
4
|
+
*/
|
|
5
|
+
declare const illustrationStyles: {
|
|
6
|
+
readonly '& .ho-h': {
|
|
7
|
+
readonly fill: "none";
|
|
8
|
+
readonly stroke: "var(--illustration-primary,#2450F0)";
|
|
9
|
+
readonly strokeLinecap: "round";
|
|
10
|
+
};
|
|
11
|
+
readonly '& .ho-h3': {
|
|
12
|
+
readonly strokeWidth: "1";
|
|
13
|
+
readonly opacity: ".45";
|
|
14
|
+
};
|
|
15
|
+
readonly '& .ho-h2': {
|
|
16
|
+
readonly strokeWidth: "1.7";
|
|
17
|
+
readonly opacity: ".7";
|
|
18
|
+
};
|
|
19
|
+
readonly '& .ho-h1': {
|
|
20
|
+
readonly strokeWidth: "2.5";
|
|
21
|
+
readonly opacity: ".9";
|
|
22
|
+
};
|
|
23
|
+
readonly '& .ho-hl': {
|
|
24
|
+
readonly fill: "none";
|
|
25
|
+
readonly stroke: "var(--illustration-ink,#33415C)";
|
|
26
|
+
readonly strokeWidth: "1.8";
|
|
27
|
+
readonly strokeLinecap: "round";
|
|
28
|
+
readonly opacity: ".75";
|
|
29
|
+
};
|
|
30
|
+
readonly '& .ho-gha': {
|
|
31
|
+
readonly fill: "none";
|
|
32
|
+
readonly stroke: "var(--illustration-success,#1FA85B)";
|
|
33
|
+
readonly strokeWidth: "2.3";
|
|
34
|
+
readonly strokeLinecap: "round";
|
|
35
|
+
readonly opacity: ".9";
|
|
36
|
+
};
|
|
37
|
+
readonly '& .ho-gce, & .ho-gtp': {
|
|
38
|
+
readonly fill: "var(--illustration-success,#1FA85B)";
|
|
39
|
+
};
|
|
40
|
+
readonly '& .ho-gth': {
|
|
41
|
+
readonly fill: "var(--illustration-success,#1FA85B)";
|
|
42
|
+
readonly opacity: ".25";
|
|
43
|
+
};
|
|
44
|
+
readonly '& .ho-got': {
|
|
45
|
+
readonly fill: "none";
|
|
46
|
+
readonly stroke: "var(--illustration-success,#1FA85B)";
|
|
47
|
+
readonly strokeWidth: "1.2";
|
|
48
|
+
readonly strokeLinecap: "round";
|
|
49
|
+
readonly strokeDasharray: ".1 4.5";
|
|
50
|
+
};
|
|
51
|
+
readonly '& .ho-ob': {
|
|
52
|
+
readonly strokeWidth: "1.2";
|
|
53
|
+
readonly strokeDasharray: ".1 4.5";
|
|
54
|
+
readonly opacity: ".75";
|
|
55
|
+
};
|
|
56
|
+
readonly '& .ho-oa': {
|
|
57
|
+
readonly fill: "none";
|
|
58
|
+
readonly stroke: "var(--illustration-accent,#F4511E)";
|
|
59
|
+
readonly strokeWidth: "1.2";
|
|
60
|
+
readonly strokeLinecap: "round";
|
|
61
|
+
readonly strokeDasharray: ".1 4.5";
|
|
62
|
+
};
|
|
63
|
+
readonly '& .ho-pp': {
|
|
64
|
+
readonly fill: "var(--illustration-primary,#2450F0)";
|
|
65
|
+
readonly opacity: ".55";
|
|
66
|
+
};
|
|
67
|
+
readonly '& .ho-pa, & .ho-sp': {
|
|
68
|
+
readonly fill: "var(--illustration-accent,#F4511E)";
|
|
69
|
+
};
|
|
70
|
+
readonly '& .ho-sh': {
|
|
71
|
+
readonly fill: "var(--illustration-accent,#F4511E)";
|
|
72
|
+
readonly opacity: ".25";
|
|
73
|
+
};
|
|
74
|
+
readonly '& .ho-sc': {
|
|
75
|
+
readonly fill: "var(--illustration-surface,#FFFFFF)";
|
|
76
|
+
readonly stroke: "var(--illustration-primary,#2450F0)";
|
|
77
|
+
readonly strokeOpacity: ".35";
|
|
78
|
+
};
|
|
79
|
+
readonly '& .ho-sd': {
|
|
80
|
+
readonly fill: "var(--illustration-primary,#2450F0)";
|
|
81
|
+
readonly fillOpacity: ".14";
|
|
82
|
+
readonly stroke: "var(--illustration-primary,#2450F0)";
|
|
83
|
+
readonly strokeOpacity: ".4";
|
|
84
|
+
};
|
|
85
|
+
readonly '& .ho-pb': {
|
|
86
|
+
readonly fill: "none";
|
|
87
|
+
readonly stroke: "var(--illustration-ink,#33415C)";
|
|
88
|
+
readonly strokeWidth: "3";
|
|
89
|
+
readonly strokeLinecap: "round";
|
|
90
|
+
readonly opacity: ".28";
|
|
91
|
+
};
|
|
92
|
+
readonly '& .ho-i': {
|
|
93
|
+
readonly fill: "none";
|
|
94
|
+
readonly strokeLinecap: "round";
|
|
95
|
+
readonly strokeLinejoin: "round";
|
|
96
|
+
};
|
|
97
|
+
readonly '& .ho-si': {
|
|
98
|
+
readonly stroke: "var(--illustration-ink,#33415C)";
|
|
99
|
+
readonly strokeWidth: "1.5";
|
|
100
|
+
};
|
|
101
|
+
readonly '& .ho-core': {
|
|
102
|
+
readonly fill: "var(--illustration-primary,#2450F0)";
|
|
103
|
+
};
|
|
104
|
+
readonly '& .ho-cr': {
|
|
105
|
+
readonly fill: "none";
|
|
106
|
+
readonly stroke: "var(--illustration-on-primary,#fff)";
|
|
107
|
+
readonly opacity: ".3";
|
|
108
|
+
};
|
|
109
|
+
readonly '& .ho-ci': {
|
|
110
|
+
readonly stroke: "var(--illustration-on-primary,#fff)";
|
|
111
|
+
readonly strokeWidth: "2.6";
|
|
112
|
+
};
|
|
113
|
+
readonly '& .ho-bo': {
|
|
114
|
+
readonly fill: "var(--illustration-primary,#2450F0)";
|
|
115
|
+
readonly stroke: "var(--illustration-surface,#FFFFFF)";
|
|
116
|
+
readonly strokeWidth: "1.5";
|
|
117
|
+
};
|
|
118
|
+
readonly '& .ho-ba': {
|
|
119
|
+
readonly fill: "var(--illustration-danger,var(--illustration-accent,#F4511E))";
|
|
120
|
+
readonly stroke: "var(--illustration-surface,#FFFFFF)";
|
|
121
|
+
readonly strokeWidth: "1.5";
|
|
122
|
+
};
|
|
123
|
+
readonly '& .ho-bg': {
|
|
124
|
+
readonly fill: "var(--illustration-success,#1FA85B)";
|
|
125
|
+
readonly stroke: "var(--illustration-surface,#FFFFFF)";
|
|
126
|
+
readonly strokeWidth: "1.5";
|
|
127
|
+
};
|
|
128
|
+
readonly '& .ho-ni': {
|
|
129
|
+
readonly stroke: "var(--illustration-on-primary,#fff)";
|
|
130
|
+
readonly strokeWidth: "2.2";
|
|
131
|
+
};
|
|
132
|
+
readonly '& .ho-bi': {
|
|
133
|
+
readonly stroke: "var(--illustration-on-primary,#fff)";
|
|
134
|
+
readonly strokeWidth: "1.2";
|
|
135
|
+
};
|
|
136
|
+
readonly '& .ho-gs': {
|
|
137
|
+
readonly stopColor: "var(--illustration-primary,#2450F0)";
|
|
138
|
+
};
|
|
139
|
+
readonly '& .ho-ha': {
|
|
140
|
+
readonly fill: "none";
|
|
141
|
+
readonly stroke: "var(--illustration-danger,var(--illustration-accent,#F4511E))";
|
|
142
|
+
readonly strokeWidth: "2.3";
|
|
143
|
+
readonly strokeLinecap: "round";
|
|
144
|
+
readonly opacity: ".9";
|
|
145
|
+
};
|
|
146
|
+
readonly '& .ho-ce, & .ho-tp': {
|
|
147
|
+
readonly fill: "var(--illustration-danger,var(--illustration-accent,#F4511E))";
|
|
148
|
+
};
|
|
149
|
+
readonly '& .ho-th': {
|
|
150
|
+
readonly fill: "var(--illustration-danger,var(--illustration-accent,#F4511E))";
|
|
151
|
+
readonly opacity: ".25";
|
|
152
|
+
};
|
|
153
|
+
readonly '& .ho-ot': {
|
|
154
|
+
readonly fill: "none";
|
|
155
|
+
readonly stroke: "var(--illustration-danger,var(--illustration-accent,#F4511E))";
|
|
156
|
+
readonly strokeWidth: "1.2";
|
|
157
|
+
readonly strokeLinecap: "round";
|
|
158
|
+
readonly strokeDasharray: ".1 4.5";
|
|
159
|
+
};
|
|
160
|
+
readonly '& .ho-nha': {
|
|
161
|
+
readonly fill: "none";
|
|
162
|
+
readonly stroke: "var(--illustration-neutral,#6B768E)";
|
|
163
|
+
readonly strokeWidth: "2.3";
|
|
164
|
+
readonly strokeLinecap: "round";
|
|
165
|
+
readonly opacity: ".9";
|
|
166
|
+
};
|
|
167
|
+
readonly '& .ho-nce, & .ho-ntp': {
|
|
168
|
+
readonly fill: "var(--illustration-neutral,#6B768E)";
|
|
169
|
+
};
|
|
170
|
+
readonly '& .ho-nth': {
|
|
171
|
+
readonly fill: "var(--illustration-neutral,#6B768E)";
|
|
172
|
+
readonly opacity: ".25";
|
|
173
|
+
};
|
|
174
|
+
readonly '& .ho-not': {
|
|
175
|
+
readonly fill: "none";
|
|
176
|
+
readonly stroke: "var(--illustration-neutral,#6B768E)";
|
|
177
|
+
readonly strokeWidth: "1.2";
|
|
178
|
+
readonly strokeLinecap: "round";
|
|
179
|
+
readonly strokeDasharray: ".1 4.5";
|
|
180
|
+
};
|
|
181
|
+
readonly '& .ho-wha': {
|
|
182
|
+
readonly fill: "none";
|
|
183
|
+
readonly stroke: "var(--illustration-warning,#F5B400)";
|
|
184
|
+
readonly strokeWidth: "2.3";
|
|
185
|
+
readonly strokeLinecap: "round";
|
|
186
|
+
readonly opacity: ".9";
|
|
187
|
+
};
|
|
188
|
+
readonly '& .ho-wce, & .ho-wtp': {
|
|
189
|
+
readonly fill: "var(--illustration-warning,#F5B400)";
|
|
190
|
+
};
|
|
191
|
+
readonly '& .ho-wth': {
|
|
192
|
+
readonly fill: "var(--illustration-warning,#F5B400)";
|
|
193
|
+
readonly opacity: ".25";
|
|
194
|
+
};
|
|
195
|
+
readonly '& .ho-wot': {
|
|
196
|
+
readonly fill: "none";
|
|
197
|
+
readonly stroke: "var(--illustration-warning,#F5B400)";
|
|
198
|
+
readonly strokeWidth: "1.2";
|
|
199
|
+
readonly strokeLinecap: "round";
|
|
200
|
+
readonly strokeDasharray: ".1 4.5";
|
|
201
|
+
};
|
|
202
|
+
readonly '& .ho-wcr': {
|
|
203
|
+
readonly fill: "none";
|
|
204
|
+
readonly stroke: "var(--illustration-on-warning,#2A1A00)";
|
|
205
|
+
readonly opacity: ".3";
|
|
206
|
+
};
|
|
207
|
+
readonly '& .ho-wci': {
|
|
208
|
+
readonly stroke: "var(--illustration-on-warning,#2A1A00)";
|
|
209
|
+
readonly strokeWidth: "2.6";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export default illustrationStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { IllustrationSVGProps } from '../types';
|
|
3
|
+
/** HTTP status codes that have an illustration. */
|
|
4
|
+
export type StatusIllustrationHttpStatus = 200 | 201 | 204 | 301 | 302 | 304 | 400 | 401 | 403 | 404 | 405 | 408 | 409 | 422 | 429 | 500 | 502 | 503 | 504;
|
|
5
|
+
/** Application states that have an illustration. */
|
|
6
|
+
export type StatusIllustrationState = 'failed' | 'mail-sent' | 'no-records' | 'unsuccessful';
|
|
7
|
+
export type StatusIllustrationStatus = StatusIllustrationHttpStatus | StatusIllustrationState;
|
|
8
|
+
/** Illustration component and default accessible label for each status. */
|
|
9
|
+
export declare const STATUS_ILLUSTRATIONS: Record<StatusIllustrationStatus, {
|
|
10
|
+
component: ComponentType<IllustrationSVGProps>;
|
|
11
|
+
label: string;
|
|
12
|
+
}>;
|
|
@@ -106,8 +106,9 @@ export interface TimeRangeFilterProps extends Omit<ButtonProps, 'onChange' | 'va
|
|
|
106
106
|
adapterLocale?: Locale;
|
|
107
107
|
/**
|
|
108
108
|
* Text of the pickers' own controls (the calendar buttons, and the OK and Cancel of the dialog
|
|
109
|
-
* shown on touch screens), for example
|
|
110
|
-
*
|
|
109
|
+
* shown on touch screens), for example
|
|
110
|
+
* `DatePickersLocales.frFR.components.MuiLocalizationProvider.defaultProps.localeText`, with
|
|
111
|
+
* `DatePickersLocales` imported from `@wso2/oxygen-ui`.
|
|
111
112
|
*/
|
|
112
113
|
localeText?: LocalizationProviderProps<Locale>['localeText'];
|
|
113
114
|
/**
|
|
@@ -44,18 +44,18 @@ export interface TrialBadgeProps extends Omit<BoxProps, 'children'> {
|
|
|
44
44
|
*/
|
|
45
45
|
showUpgrade?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @default (days) => `${days} day(s)
|
|
47
|
+
* Bold leading text while the trial is running. Receives the days left.
|
|
48
|
+
* @default (days) => `${days} day(s)`
|
|
49
49
|
*/
|
|
50
50
|
getTitle?: (daysLeft: number) => React.ReactNode;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Bold leading text once the trial has expired.
|
|
53
53
|
* @default 'Trial expired'
|
|
54
54
|
*/
|
|
55
55
|
expiredLabel?: React.ReactNode;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @default '
|
|
57
|
+
* Muted text after the days while no upgrade prompt is shown.
|
|
58
|
+
* @default 'left in trial'
|
|
59
59
|
*/
|
|
60
60
|
subtitle?: React.ReactNode;
|
|
61
61
|
/**
|
|
@@ -211,9 +211,9 @@ export type TrialBadgeUsageTone = 'error' | 'warning' | 'success';
|
|
|
211
211
|
*/
|
|
212
212
|
export declare function getTrialBadgeStatus(daysLeft: number, endingSoonThreshold?: number, criticalThreshold?: number): TrialBadgeStatus;
|
|
213
213
|
/**
|
|
214
|
-
* TrialBadge component - A compact pill showing the remaining days of a free trial
|
|
215
|
-
* The color changes with the time left,
|
|
216
|
-
* the
|
|
214
|
+
* TrialBadge component - A compact single-line pill showing the remaining days of a free trial,
|
|
215
|
+
* e.g. "15 days left in trial", led by a progress ring. The ring color changes with the time left,
|
|
216
|
+
* and in the last days (and after expiry) the muted text becomes an "Upgrade now" link.
|
|
217
217
|
*
|
|
218
218
|
* @example
|
|
219
219
|
* ```tsx
|
|
@@ -23,6 +23,8 @@ export { default as ColorSchemeImage } from './ColorSchemeImage';
|
|
|
23
23
|
export type { ColorSchemeImageProps, ColorSchemeImageAttribute } from './ColorSchemeImage';
|
|
24
24
|
export { default as ColorSchemeSVG } from './ColorSchemeSVG';
|
|
25
25
|
export type { ColorSchemeSVGProps } from './ColorSchemeSVG';
|
|
26
|
+
export { default as StatusIllustration } from './StatusIllustration';
|
|
27
|
+
export type { StatusIllustrationProps, StatusIllustrationStatus, StatusIllustrationHttpStatus, StatusIllustrationState, } from './StatusIllustration';
|
|
26
28
|
export { ColorSchemeToggle, default as ColorSchemeToggleDefault } from './ColorSchemeToggle';
|
|
27
29
|
export { default as ComplexSelect } from './ComplexSelect';
|
|
28
30
|
export type { ComplexSelectProps } from './ComplexSelect';
|
|
@@ -36,6 +38,8 @@ export { default as ListingCard } from './ListingCard';
|
|
|
36
38
|
export type { ListingCardProps } from './ListingCard';
|
|
37
39
|
export { default as RelativeTime } from './RelativeTime';
|
|
38
40
|
export type { RelativeTimeProps } from './RelativeTime';
|
|
41
|
+
export { default as Button } from './Button';
|
|
42
|
+
export type { ButtonProps } from './Button';
|
|
39
43
|
export { default as TextField } from './TextField';
|
|
40
44
|
export type { TextFieldProps, TextFieldLabelPlacement } from './TextField';
|
|
41
45
|
export { default as Select } from './Select';
|
package/dist/index.d.ts
CHANGED
|
@@ -25,11 +25,12 @@ export { default as Layout } from "./layouts";
|
|
|
25
25
|
export * from "./animations";
|
|
26
26
|
export * from "./hooks";
|
|
27
27
|
export * from "./utils";
|
|
28
|
-
export { TextField, Select } from './components';
|
|
29
|
-
export type { TextFieldProps, TextFieldLabelPlacement, SelectProps, SelectLabelPlacement } from './components';
|
|
28
|
+
export { Button, TextField, Select } from './components';
|
|
29
|
+
export type { ButtonProps, TextFieldProps, TextFieldLabelPlacement, SelectProps, SelectLabelPlacement } from './components';
|
|
30
30
|
export * from '@mui/material';
|
|
31
31
|
export * as colors from '@mui/material/colors';
|
|
32
32
|
export * as DataGrid from '@mui/x-data-grid';
|
|
33
33
|
export * as DatePickers from '@mui/x-date-pickers';
|
|
34
|
+
export * as DatePickersLocales from '@mui/x-date-pickers/locales';
|
|
34
35
|
export { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
35
36
|
export * as TreeView from '@mui/x-tree-view';
|