@dxc-technology/halstack-react 0.0.0-cf70c89 → 0.0.0-d004266
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/dist/index.d.mts +279 -532
- package/dist/index.d.ts +279 -532
- package/dist/index.js +14545 -1
- package/dist/index.mjs +14487 -1
- package/package.json +2 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, SVGProps, ReactElement, MouseEvent, ReactEventHandler } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { SortColumn } from 'react-data-grid';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
|
|
7
|
-
type Space$
|
|
8
|
-
type Margin
|
|
9
|
-
top?: Space$
|
|
10
|
-
bottom?: Space$
|
|
11
|
-
left?: Space$
|
|
12
|
-
right?: Space$
|
|
13
|
-
};
|
|
14
|
-
type SVG
|
|
7
|
+
type Space$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
8
|
+
type Margin = {
|
|
9
|
+
top?: Space$1;
|
|
10
|
+
bottom?: Space$1;
|
|
11
|
+
left?: Space$1;
|
|
12
|
+
right?: Space$1;
|
|
13
|
+
};
|
|
14
|
+
type SVG = ReactNode & SVGProps<SVGSVGElement>;
|
|
15
|
+
|
|
15
16
|
type Props$K = {
|
|
16
17
|
/**
|
|
17
18
|
* The panel label.
|
|
@@ -30,7 +31,7 @@ type Props$K = {
|
|
|
30
31
|
/**
|
|
31
32
|
* Material Symbol name or SVG element used as the icon that will be placed next to panel label.
|
|
32
33
|
*/
|
|
33
|
-
icon?: string | SVG
|
|
34
|
+
icon?: string | SVG;
|
|
34
35
|
/**
|
|
35
36
|
* Assistive text to be placed on the right side of the panel.
|
|
36
37
|
*/
|
|
@@ -48,12 +49,12 @@ type Props$K = {
|
|
|
48
49
|
* The expanded panel of the accordion. This area can be used to render
|
|
49
50
|
* custom content.
|
|
50
51
|
*/
|
|
51
|
-
children:
|
|
52
|
+
children: ReactNode;
|
|
52
53
|
/**
|
|
53
54
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
54
55
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
55
56
|
*/
|
|
56
|
-
margin?: Space$
|
|
57
|
+
margin?: Space$1 | Margin;
|
|
57
58
|
/**
|
|
58
59
|
* Value of the tabindex attribute.
|
|
59
60
|
*/
|
|
@@ -62,14 +63,6 @@ type Props$K = {
|
|
|
62
63
|
|
|
63
64
|
declare const DxcAccordion: ({ label, defaultIsExpanded, isExpanded, icon, assistiveText, disabled, onChange, children, margin, tabIndex, }: Props$K) => JSX.Element;
|
|
64
65
|
|
|
65
|
-
type Space$s = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
66
|
-
type Margin$n = {
|
|
67
|
-
top?: Space$s;
|
|
68
|
-
bottom?: Space$s;
|
|
69
|
-
left?: Space$s;
|
|
70
|
-
right?: Space$s;
|
|
71
|
-
};
|
|
72
|
-
type SVG$i = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
73
66
|
type AccordionPropsType = {
|
|
74
67
|
/**
|
|
75
68
|
* The panel label.
|
|
@@ -78,7 +71,7 @@ type AccordionPropsType = {
|
|
|
78
71
|
/**
|
|
79
72
|
* Material Symbol name or SVG element used as the icon that will be placed next to panel label.
|
|
80
73
|
*/
|
|
81
|
-
icon?: string | SVG
|
|
74
|
+
icon?: string | SVG;
|
|
82
75
|
/**
|
|
83
76
|
* Assistive text to be placed on the right side of the panel.
|
|
84
77
|
*/
|
|
@@ -91,7 +84,7 @@ type AccordionPropsType = {
|
|
|
91
84
|
* The expanded panel of the accordion. This area can be used to render
|
|
92
85
|
* custom content.
|
|
93
86
|
*/
|
|
94
|
-
children:
|
|
87
|
+
children: ReactNode;
|
|
95
88
|
};
|
|
96
89
|
type Props$J = {
|
|
97
90
|
/**
|
|
@@ -115,11 +108,11 @@ type Props$J = {
|
|
|
115
108
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
116
109
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
117
110
|
*/
|
|
118
|
-
margin?: Space$
|
|
111
|
+
margin?: Space$1 | Margin;
|
|
119
112
|
/**
|
|
120
113
|
* Customized accordion(s) that are allowed inside an Accordion Group.
|
|
121
114
|
*/
|
|
122
|
-
children:
|
|
115
|
+
children: ReactElement<AccordionPropsType>[] | ReactElement<AccordionPropsType>;
|
|
123
116
|
};
|
|
124
117
|
|
|
125
118
|
declare const DxcAccordionGroup: {
|
|
@@ -127,68 +120,44 @@ declare const DxcAccordionGroup: {
|
|
|
127
120
|
Accordion: ({ ...childProps }: AccordionPropsType) => JSX.Element;
|
|
128
121
|
};
|
|
129
122
|
|
|
130
|
-
type
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
left?: Space$r;
|
|
135
|
-
right?: Space$r;
|
|
123
|
+
type Action$2 = {
|
|
124
|
+
icon?: string | SVG;
|
|
125
|
+
label: string;
|
|
126
|
+
onClick: () => void;
|
|
136
127
|
};
|
|
137
|
-
type
|
|
138
|
-
/**
|
|
139
|
-
* Uses on of the available alert types.
|
|
140
|
-
*/
|
|
141
|
-
type?: "info" | "confirm" | "warning" | "error";
|
|
142
|
-
/**
|
|
143
|
-
* Uses on of the available alert modes:
|
|
144
|
-
* 'inline': If onClose function is received, close button will be visible and the function will be executed when it's clicked.
|
|
145
|
-
* There is no overlay layer. Position should be decided by the user.
|
|
146
|
-
* 'modal': The alert will be displayed in the middle of the screen with an overlay layer behind.
|
|
147
|
-
* The onClose function will be executed when the X button or the overlay is clicked. d
|
|
148
|
-
* The user has the responsibility of hiding the modal in the onClose function, otherwise the modal will remain visible.
|
|
149
|
-
*/
|
|
150
|
-
mode?: "inline" | "modal";
|
|
151
|
-
/**
|
|
152
|
-
* Text to display after icon and alert type and before content.
|
|
153
|
-
*/
|
|
154
|
-
inlineText?: string;
|
|
155
|
-
/**
|
|
156
|
-
* This function will be called when the user clicks the close button. If there is no function we should close the alert by default.
|
|
157
|
-
*/
|
|
128
|
+
type Message = {
|
|
158
129
|
onClose?: () => void;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
margin?: Space$r | Margin$m;
|
|
168
|
-
/**
|
|
169
|
-
* Size of the component.
|
|
170
|
-
*/
|
|
171
|
-
size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
172
|
-
/**
|
|
173
|
-
* Value of the tabindex attribute applied to the close button.
|
|
174
|
-
*/
|
|
175
|
-
tabIndex?: number;
|
|
130
|
+
text: ReactNode;
|
|
131
|
+
};
|
|
132
|
+
type CommonProps$8 = {
|
|
133
|
+
closable?: boolean;
|
|
134
|
+
primaryAction?: Action$2;
|
|
135
|
+
secondaryAction?: Action$2;
|
|
136
|
+
semantic?: "error" | "info" | "success" | "warning";
|
|
137
|
+
title: string;
|
|
176
138
|
};
|
|
139
|
+
type ModeSpecificProps = {
|
|
140
|
+
message?: Message | Message[];
|
|
141
|
+
mode?: "inline" | "banner";
|
|
142
|
+
} | {
|
|
143
|
+
message: Required<Message>;
|
|
144
|
+
mode: "modal";
|
|
145
|
+
};
|
|
146
|
+
type Props$I = CommonProps$8 & ModeSpecificProps;
|
|
177
147
|
|
|
178
|
-
declare
|
|
148
|
+
declare function DxcAlert({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$I): react_jsx_runtime.JSX.Element;
|
|
179
149
|
|
|
180
|
-
type SVG$h = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
181
150
|
type SidenavTitlePropsType = {
|
|
182
151
|
/**
|
|
183
152
|
* The area inside the sidenav title. This area can be used to render custom content.
|
|
184
153
|
*/
|
|
185
|
-
children:
|
|
154
|
+
children: ReactNode;
|
|
186
155
|
};
|
|
187
156
|
type SidenavSectionPropsType = {
|
|
188
157
|
/**
|
|
189
158
|
* The area inside the sidenav section. This area can be used to render sidenav groups, links and custom content.
|
|
190
159
|
*/
|
|
191
|
-
children:
|
|
160
|
+
children: ReactNode;
|
|
192
161
|
};
|
|
193
162
|
type SidenavGroupPropsType = {
|
|
194
163
|
/**
|
|
@@ -203,11 +172,11 @@ type SidenavGroupPropsType = {
|
|
|
203
172
|
/**
|
|
204
173
|
* Material Symbol name or SVG icon to be displayed next to the title of the group.
|
|
205
174
|
*/
|
|
206
|
-
icon?: string | SVG
|
|
175
|
+
icon?: string | SVG;
|
|
207
176
|
/**
|
|
208
177
|
* The area inside the sidenav group. This area can be used to render sidenav links.
|
|
209
178
|
*/
|
|
210
|
-
children:
|
|
179
|
+
children: ReactNode;
|
|
211
180
|
};
|
|
212
181
|
type SidenavLinkPropsType = {
|
|
213
182
|
/**
|
|
@@ -221,7 +190,7 @@ type SidenavLinkPropsType = {
|
|
|
221
190
|
/**
|
|
222
191
|
* The Material symbol or SVG element used as the icon that will be placed to the left of the link text.
|
|
223
192
|
*/
|
|
224
|
-
icon?: string | SVG
|
|
193
|
+
icon?: string | SVG;
|
|
225
194
|
/**
|
|
226
195
|
* If true, the link will be marked as selected. Moreover, in that same case,
|
|
227
196
|
* if it is contained within a collapsed group, and consequently, the currently selected link is not visible,
|
|
@@ -231,11 +200,11 @@ type SidenavLinkPropsType = {
|
|
|
231
200
|
/**
|
|
232
201
|
* This function will be called when the user clicks the link and the event will be passed to this function.
|
|
233
202
|
*/
|
|
234
|
-
onClick?: (event:
|
|
203
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
235
204
|
/**
|
|
236
205
|
* The area inside the sidenav link.
|
|
237
206
|
*/
|
|
238
|
-
children:
|
|
207
|
+
children: ReactNode;
|
|
239
208
|
/**
|
|
240
209
|
* Value of the tabindex.
|
|
241
210
|
*/
|
|
@@ -245,85 +214,14 @@ type Props$H = {
|
|
|
245
214
|
/**
|
|
246
215
|
* The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
|
|
247
216
|
*/
|
|
248
|
-
title?:
|
|
217
|
+
title?: ReactNode;
|
|
249
218
|
/**
|
|
250
219
|
* The area inside the sidenav. This area can be used to render the content inside the sidenav.
|
|
251
220
|
*/
|
|
252
|
-
children:
|
|
221
|
+
children: ReactNode;
|
|
253
222
|
};
|
|
254
223
|
|
|
255
|
-
type Space$q = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
256
|
-
type SVG$g = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
257
|
-
type SocialLink = {
|
|
258
|
-
/**
|
|
259
|
-
* URL of the page the link goes to.
|
|
260
|
-
*/
|
|
261
|
-
href: string;
|
|
262
|
-
/**
|
|
263
|
-
* Material Symbol name or SVG element as the icon used for the link.
|
|
264
|
-
*/
|
|
265
|
-
logo: string | SVG$g;
|
|
266
|
-
/**
|
|
267
|
-
* Value for the HTML properties title and aria-label.
|
|
268
|
-
*/
|
|
269
|
-
title: string;
|
|
270
|
-
};
|
|
271
|
-
type BottomLink = {
|
|
272
|
-
/**
|
|
273
|
-
* URL of the page the link goes to.
|
|
274
|
-
*/
|
|
275
|
-
href: string;
|
|
276
|
-
/**
|
|
277
|
-
* Text for the link.
|
|
278
|
-
*/
|
|
279
|
-
text: string;
|
|
280
|
-
};
|
|
281
|
-
type FooterPropsType = {
|
|
282
|
-
/**
|
|
283
|
-
* An array of objects representing the links that will be rendered as
|
|
284
|
-
* icons at the top-right side of the footer.
|
|
285
|
-
*/
|
|
286
|
-
socialLinks?: SocialLink[];
|
|
287
|
-
/**
|
|
288
|
-
* An array of objects representing the links that will be rendered at
|
|
289
|
-
* the bottom part of the footer.
|
|
290
|
-
*/
|
|
291
|
-
bottomLinks?: BottomLink[];
|
|
292
|
-
/**
|
|
293
|
-
* The text that will be displayed as copyright disclaimer.
|
|
294
|
-
*/
|
|
295
|
-
copyright?: string;
|
|
296
|
-
/**
|
|
297
|
-
* The center section of the footer. Can be used to render custom
|
|
298
|
-
* content in this area.
|
|
299
|
-
*/
|
|
300
|
-
children?: React.ReactNode;
|
|
301
|
-
/**
|
|
302
|
-
* Size of the top margin to be applied to the footer.
|
|
303
|
-
*/
|
|
304
|
-
margin?: Space$q;
|
|
305
|
-
/**
|
|
306
|
-
* Value of the tabindex for all interactive elements, except those
|
|
307
|
-
* inside the custom area.
|
|
308
|
-
*/
|
|
309
|
-
tabIndex?: number;
|
|
310
|
-
/**
|
|
311
|
-
* Determines the visual style and layout
|
|
312
|
-
* - "default": The default mode with full content and styling.
|
|
313
|
-
* - "reduced": A reduced mode with minimal content and styling.
|
|
314
|
-
*/
|
|
315
|
-
mode?: "default" | "reduced";
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
type Space$p = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
319
|
-
type Margin$l = {
|
|
320
|
-
top?: Space$p;
|
|
321
|
-
bottom?: Space$p;
|
|
322
|
-
left?: Space$p;
|
|
323
|
-
right?: Space$p;
|
|
324
|
-
};
|
|
325
224
|
type Size$4 = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
326
|
-
type SVG$f = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
327
225
|
type Option$1 = {
|
|
328
226
|
/**
|
|
329
227
|
* Option display value.
|
|
@@ -332,7 +230,7 @@ type Option$1 = {
|
|
|
332
230
|
/**
|
|
333
231
|
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
334
232
|
*/
|
|
335
|
-
icon?: string | SVG
|
|
233
|
+
icon?: string | SVG;
|
|
336
234
|
/**
|
|
337
235
|
* Option inner value.
|
|
338
236
|
*/
|
|
@@ -351,7 +249,7 @@ type Props$G = {
|
|
|
351
249
|
/**
|
|
352
250
|
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
353
251
|
*/
|
|
354
|
-
icon?: string | SVG
|
|
252
|
+
icon?: string | SVG;
|
|
355
253
|
/**
|
|
356
254
|
* Whether the icon should appear after or before the label.
|
|
357
255
|
*/
|
|
@@ -382,7 +280,7 @@ type Props$G = {
|
|
|
382
280
|
* You can pass an object with 'top', 'bottom', 'left' and 'right'
|
|
383
281
|
* properties in order to specify different margin sizes.
|
|
384
282
|
*/
|
|
385
|
-
margin?: Space$
|
|
283
|
+
margin?: Space$1 | Margin;
|
|
386
284
|
/**
|
|
387
285
|
* Size of the component.
|
|
388
286
|
*/
|
|
@@ -398,7 +296,6 @@ type Props$G = {
|
|
|
398
296
|
title?: string;
|
|
399
297
|
};
|
|
400
298
|
|
|
401
|
-
type Space$o = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
402
299
|
type Props$F = {
|
|
403
300
|
/**
|
|
404
301
|
* Whether a contrast line should appear at the bottom of the header.
|
|
@@ -409,12 +306,12 @@ type Props$F = {
|
|
|
409
306
|
* for the first child in the content, so we recommend the use of React.Fragment
|
|
410
307
|
* to be applied correctly. Otherwise, the styles can be modified.
|
|
411
308
|
*/
|
|
412
|
-
content?:
|
|
309
|
+
content?: ReactNode;
|
|
413
310
|
/**
|
|
414
311
|
* Content shown in responsive version. It receives the close menu handler that can
|
|
415
312
|
* be used to add that functionality when a element is clicked.
|
|
416
313
|
*/
|
|
417
|
-
responsiveContent?: (closeHandler: () => void) =>
|
|
314
|
+
responsiveContent?: (closeHandler: () => void) => ReactNode;
|
|
418
315
|
/**
|
|
419
316
|
* This function will be called when the user clicks the header logo.
|
|
420
317
|
*/
|
|
@@ -422,7 +319,7 @@ type Props$F = {
|
|
|
422
319
|
/**
|
|
423
320
|
* Size of the bottom margin to be applied to the header.
|
|
424
321
|
*/
|
|
425
|
-
margin?: Space$
|
|
322
|
+
margin?: Space$1;
|
|
426
323
|
/**
|
|
427
324
|
* Value of the tabindex for all interactive elements, except those inside the
|
|
428
325
|
* custom area.
|
|
@@ -430,13 +327,74 @@ type Props$F = {
|
|
|
430
327
|
tabIndex?: number;
|
|
431
328
|
};
|
|
432
329
|
|
|
330
|
+
type SocialLink = {
|
|
331
|
+
/**
|
|
332
|
+
* URL of the page the link goes to.
|
|
333
|
+
*/
|
|
334
|
+
href: string;
|
|
335
|
+
/**
|
|
336
|
+
* Material Symbol name or SVG element as the icon used for the link.
|
|
337
|
+
*/
|
|
338
|
+
logo: string | SVG;
|
|
339
|
+
/**
|
|
340
|
+
* Value for the HTML properties title and aria-label.
|
|
341
|
+
*/
|
|
342
|
+
title: string;
|
|
343
|
+
};
|
|
344
|
+
type BottomLink = {
|
|
345
|
+
/**
|
|
346
|
+
* URL of the page the link goes to.
|
|
347
|
+
*/
|
|
348
|
+
href: string;
|
|
349
|
+
/**
|
|
350
|
+
* Text for the link.
|
|
351
|
+
*/
|
|
352
|
+
text: string;
|
|
353
|
+
};
|
|
354
|
+
type FooterPropsType = {
|
|
355
|
+
/**
|
|
356
|
+
* An array of objects representing the links that will be rendered as
|
|
357
|
+
* icons at the top-right side of the footer.
|
|
358
|
+
*/
|
|
359
|
+
socialLinks?: SocialLink[];
|
|
360
|
+
/**
|
|
361
|
+
* An array of objects representing the links that will be rendered at
|
|
362
|
+
* the bottom part of the footer.
|
|
363
|
+
*/
|
|
364
|
+
bottomLinks?: BottomLink[];
|
|
365
|
+
/**
|
|
366
|
+
* The text that will be displayed as copyright disclaimer.
|
|
367
|
+
*/
|
|
368
|
+
copyright?: string;
|
|
369
|
+
/**
|
|
370
|
+
* The center section of the footer. Can be used to render custom
|
|
371
|
+
* content in this area.
|
|
372
|
+
*/
|
|
373
|
+
children?: ReactNode;
|
|
374
|
+
/**
|
|
375
|
+
* Size of the top margin to be applied to the footer.
|
|
376
|
+
*/
|
|
377
|
+
margin?: Space$1;
|
|
378
|
+
/**
|
|
379
|
+
* Value of the tabindex for all interactive elements, except those
|
|
380
|
+
* inside the custom area.
|
|
381
|
+
*/
|
|
382
|
+
tabIndex?: number;
|
|
383
|
+
/**
|
|
384
|
+
* Determines the visual style and layout
|
|
385
|
+
* - "default": The default mode with full content and styling.
|
|
386
|
+
* - "reduced": A reduced mode with minimal content and styling.
|
|
387
|
+
*/
|
|
388
|
+
mode?: "default" | "reduced";
|
|
389
|
+
};
|
|
390
|
+
|
|
433
391
|
type AppLayoutMainPropsType = {
|
|
434
392
|
/**
|
|
435
393
|
* Everything between the tags will be displayed as the content of the main part of the application.
|
|
436
394
|
*/
|
|
437
|
-
children:
|
|
395
|
+
children: ReactNode;
|
|
438
396
|
};
|
|
439
|
-
type
|
|
397
|
+
type ApplicationLayoutPropsType = {
|
|
440
398
|
/**
|
|
441
399
|
* Text to be placed next to the hamburger button that toggles the
|
|
442
400
|
* visibility of the sidenav.
|
|
@@ -445,29 +403,29 @@ type AppLayoutPropsType = {
|
|
|
445
403
|
/**
|
|
446
404
|
* Header content.
|
|
447
405
|
*/
|
|
448
|
-
header?:
|
|
406
|
+
header?: ReactNode;
|
|
449
407
|
/**
|
|
450
408
|
* Sidenav content
|
|
451
409
|
*/
|
|
452
|
-
sidenav?:
|
|
410
|
+
sidenav?: ReactNode;
|
|
453
411
|
/**
|
|
454
412
|
* Footer content
|
|
455
413
|
*/
|
|
456
|
-
footer?:
|
|
414
|
+
footer?: ReactNode;
|
|
457
415
|
/**
|
|
458
416
|
* Use the DxcApplicationLayout.Main provided to render main content.
|
|
459
417
|
*/
|
|
460
|
-
children:
|
|
418
|
+
children: ReactElement<AppLayoutMainPropsType>;
|
|
461
419
|
};
|
|
462
420
|
|
|
463
421
|
declare const DxcApplicationLayout: {
|
|
464
|
-
({ visibilityToggleLabel, header, sidenav, footer, children, }:
|
|
422
|
+
({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
|
|
423
|
+
Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
|
|
465
424
|
Header: {
|
|
466
425
|
({ underlined, content, responsiveContent, onClick, margin, tabIndex, }: Props$F): JSX.Element;
|
|
467
426
|
Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => JSX.Element>) => react_jsx_runtime.JSX.Element;
|
|
468
427
|
};
|
|
469
428
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
470
|
-
Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
|
|
471
429
|
SideNav: {
|
|
472
430
|
({ title, children }: Props$H): JSX.Element;
|
|
473
431
|
Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
|
|
@@ -475,10 +433,9 @@ declare const DxcApplicationLayout: {
|
|
|
475
433
|
Link: react.ForwardRefExoticComponent<SidenavLinkPropsType & react.RefAttributes<HTMLAnchorElement>>;
|
|
476
434
|
Title: ({ children }: SidenavTitlePropsType) => JSX.Element;
|
|
477
435
|
};
|
|
478
|
-
useResponsiveSidenavVisibility: () => (
|
|
436
|
+
useResponsiveSidenavVisibility: () => ((_isSidenavVisible: boolean) => void) | null;
|
|
479
437
|
};
|
|
480
438
|
|
|
481
|
-
type SVG$e = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
482
439
|
type ContextualProps = {
|
|
483
440
|
/**
|
|
484
441
|
* Text to be placed in the badge.
|
|
@@ -523,7 +480,7 @@ type CommonProps$7 = {
|
|
|
523
480
|
/**
|
|
524
481
|
* Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
|
|
525
482
|
*/
|
|
526
|
-
icon?: string | SVG
|
|
483
|
+
icon?: string | SVG;
|
|
527
484
|
/**
|
|
528
485
|
* Size of the component.
|
|
529
486
|
*/
|
|
@@ -657,7 +614,7 @@ type Props$D = {
|
|
|
657
614
|
/**
|
|
658
615
|
* Custom content inside the bleed.
|
|
659
616
|
*/
|
|
660
|
-
children:
|
|
617
|
+
children: ReactNode;
|
|
661
618
|
};
|
|
662
619
|
|
|
663
620
|
declare const Bleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
@@ -700,7 +657,6 @@ type Props$C = {
|
|
|
700
657
|
|
|
701
658
|
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$C) => react_jsx_runtime.JSX.Element;
|
|
702
659
|
|
|
703
|
-
type SVG$d = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
704
660
|
type IconProps = {
|
|
705
661
|
/**
|
|
706
662
|
* Defines the style of the bullet point in the list.
|
|
@@ -709,11 +665,11 @@ type IconProps = {
|
|
|
709
665
|
/**
|
|
710
666
|
* Icon to display as bullet.
|
|
711
667
|
*/
|
|
712
|
-
icon: string | SVG
|
|
668
|
+
icon: string | SVG;
|
|
713
669
|
/**
|
|
714
670
|
* Text to be shown in the list.
|
|
715
671
|
*/
|
|
716
|
-
children:
|
|
672
|
+
children: ReactNode;
|
|
717
673
|
};
|
|
718
674
|
type OtherProps = {
|
|
719
675
|
/**
|
|
@@ -727,7 +683,7 @@ type OtherProps = {
|
|
|
727
683
|
/**
|
|
728
684
|
* Text to be shown in the list.
|
|
729
685
|
*/
|
|
730
|
-
children:
|
|
686
|
+
children: ReactNode;
|
|
731
687
|
};
|
|
732
688
|
type Props$B = IconProps | OtherProps;
|
|
733
689
|
|
|
@@ -735,7 +691,7 @@ type BulletedListItemPropsType = {
|
|
|
735
691
|
/**
|
|
736
692
|
* Text to be shown in the list.
|
|
737
693
|
*/
|
|
738
|
-
children?:
|
|
694
|
+
children?: ReactNode;
|
|
739
695
|
};
|
|
740
696
|
|
|
741
697
|
declare const DxcBulletedList: {
|
|
@@ -743,14 +699,6 @@ declare const DxcBulletedList: {
|
|
|
743
699
|
Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
|
|
744
700
|
};
|
|
745
701
|
|
|
746
|
-
type Space$n = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
747
|
-
type Margin$k = {
|
|
748
|
-
top?: Space$n;
|
|
749
|
-
bottom?: Space$n;
|
|
750
|
-
left?: Space$n;
|
|
751
|
-
right?: Space$n;
|
|
752
|
-
};
|
|
753
|
-
type SVG$c = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
754
702
|
type Size$3 = {
|
|
755
703
|
/**
|
|
756
704
|
* Height of the component.
|
|
@@ -790,7 +738,7 @@ type Props$A = {
|
|
|
790
738
|
/**
|
|
791
739
|
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
792
740
|
*/
|
|
793
|
-
icon?: string | SVG
|
|
741
|
+
icon?: string | SVG;
|
|
794
742
|
/**
|
|
795
743
|
* This function will be called when the user clicks the button.
|
|
796
744
|
*/
|
|
@@ -799,7 +747,7 @@ type Props$A = {
|
|
|
799
747
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
800
748
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
801
749
|
*/
|
|
802
|
-
margin?: Space$
|
|
750
|
+
margin?: Space$1 | Margin;
|
|
803
751
|
/**
|
|
804
752
|
* Size of the component.
|
|
805
753
|
*/
|
|
@@ -812,12 +760,11 @@ type Props$A = {
|
|
|
812
760
|
|
|
813
761
|
declare const DxcButton: ({ label, mode, semantic, disabled, iconPosition, title, type, icon, onClick, margin, size, tabIndex, }: Props$A) => JSX.Element;
|
|
814
762
|
|
|
815
|
-
type Space$m = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
816
763
|
type Size$2 = {
|
|
817
|
-
top?: Space$
|
|
818
|
-
bottom?: Space$
|
|
819
|
-
left?: Space$
|
|
820
|
-
right?: Space$
|
|
764
|
+
top?: Space$1;
|
|
765
|
+
bottom?: Space$1;
|
|
766
|
+
left?: Space$1;
|
|
767
|
+
right?: Space$1;
|
|
821
768
|
};
|
|
822
769
|
type Props$z = {
|
|
823
770
|
/**
|
|
@@ -835,7 +782,7 @@ type Props$z = {
|
|
|
835
782
|
* component. You can pass an object with 'top', 'bottom', 'left'
|
|
836
783
|
* and 'right' properties in order to specify different padding sizes.
|
|
837
784
|
*/
|
|
838
|
-
imagePadding?: Space$
|
|
785
|
+
imagePadding?: Space$1 | Size$2;
|
|
839
786
|
/**
|
|
840
787
|
* Whether the image should appear in relation to the content.
|
|
841
788
|
*/
|
|
@@ -858,7 +805,7 @@ type Props$z = {
|
|
|
858
805
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
859
806
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
860
807
|
*/
|
|
861
|
-
margin?: Space$
|
|
808
|
+
margin?: Space$1 | Size$2;
|
|
862
809
|
/**
|
|
863
810
|
* Value of the tabindex attribute applied when the component is clickable.
|
|
864
811
|
*/
|
|
@@ -870,18 +817,11 @@ type Props$z = {
|
|
|
870
817
|
/**
|
|
871
818
|
* Custom content that will be placed inside the component.
|
|
872
819
|
*/
|
|
873
|
-
children?:
|
|
820
|
+
children?: ReactNode;
|
|
874
821
|
};
|
|
875
822
|
|
|
876
823
|
declare const DxcCard: ({ imageSrc, imageBgColor, imagePadding, imagePosition, linkHref, onClick, imageCover, margin, tabIndex, outlined, children, }: Props$z) => JSX.Element;
|
|
877
824
|
|
|
878
|
-
type Space$l = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
879
|
-
type Margin$j = {
|
|
880
|
-
top?: Space$l;
|
|
881
|
-
bottom?: Space$l;
|
|
882
|
-
left?: Space$l;
|
|
883
|
-
right?: Space$l;
|
|
884
|
-
};
|
|
885
825
|
type Props$y = {
|
|
886
826
|
/**
|
|
887
827
|
* Initial state of the checkbox, only when it is uncontrolled.
|
|
@@ -932,7 +872,7 @@ type Props$y = {
|
|
|
932
872
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties
|
|
933
873
|
* in order to specify different margin sizes.
|
|
934
874
|
*/
|
|
935
|
-
margin?: Space$
|
|
875
|
+
margin?: Space$1 | Margin;
|
|
936
876
|
/**
|
|
937
877
|
* Size of the component.
|
|
938
878
|
*/
|
|
@@ -945,14 +885,6 @@ type Props$y = {
|
|
|
945
885
|
|
|
946
886
|
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
|
|
947
887
|
|
|
948
|
-
type Space$k = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
949
|
-
type Margin$i = {
|
|
950
|
-
top?: Space$k;
|
|
951
|
-
bottom?: Space$k;
|
|
952
|
-
left?: Space$k;
|
|
953
|
-
right?: Space$k;
|
|
954
|
-
};
|
|
955
|
-
type SVG$b = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
956
888
|
type Props$x = {
|
|
957
889
|
/**
|
|
958
890
|
* Text to be placed on the chip.
|
|
@@ -961,11 +893,11 @@ type Props$x = {
|
|
|
961
893
|
/**
|
|
962
894
|
* Element or path used as icon to be placed after the chip label.
|
|
963
895
|
*/
|
|
964
|
-
suffixIcon?: string | SVG
|
|
896
|
+
suffixIcon?: string | SVG;
|
|
965
897
|
/**
|
|
966
898
|
* Element or path used as icon to be placed before the chip label.
|
|
967
899
|
*/
|
|
968
|
-
prefixIcon?: string | SVG
|
|
900
|
+
prefixIcon?: string | SVG;
|
|
969
901
|
/**
|
|
970
902
|
* This function will be called when the suffix is clicked.
|
|
971
903
|
*/
|
|
@@ -982,7 +914,7 @@ type Props$x = {
|
|
|
982
914
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
983
915
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
984
916
|
*/
|
|
985
|
-
margin?: Space$
|
|
917
|
+
margin?: Space$1 | Margin;
|
|
986
918
|
/**
|
|
987
919
|
* Value of the tabindex attribute.
|
|
988
920
|
*/
|
|
@@ -991,12 +923,11 @@ type Props$x = {
|
|
|
991
923
|
|
|
992
924
|
declare const DxcChip: ({ label, suffixIcon, prefixIcon, onClickSuffix, onClickPrefix, disabled, margin, tabIndex, }: Props$x) => JSX.Element;
|
|
993
925
|
|
|
994
|
-
type
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
left?: SpacingValues;
|
|
926
|
+
type Space = Space$1 | {
|
|
927
|
+
top?: Space$1;
|
|
928
|
+
right?: Space$1;
|
|
929
|
+
bottom?: Space$1;
|
|
930
|
+
left?: Space$1;
|
|
1000
931
|
};
|
|
1001
932
|
type Inset$1 = {
|
|
1002
933
|
top?: string;
|
|
@@ -1065,7 +996,7 @@ type Props$w = {
|
|
|
1065
996
|
/**
|
|
1066
997
|
* Custom content inside the container.
|
|
1067
998
|
*/
|
|
1068
|
-
children:
|
|
999
|
+
children: ReactNode;
|
|
1069
1000
|
/**
|
|
1070
1001
|
* Sets the display CSS property.
|
|
1071
1002
|
* The set of values is limited to the ones related to the outer display type.
|
|
@@ -1097,7 +1028,7 @@ type Props$w = {
|
|
|
1097
1028
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties
|
|
1098
1029
|
* in order to specify different margin sizes.
|
|
1099
1030
|
*/
|
|
1100
|
-
margin?: Space
|
|
1031
|
+
margin?: Space;
|
|
1101
1032
|
/**
|
|
1102
1033
|
* Sets the max-height CSS property.
|
|
1103
1034
|
*
|
|
@@ -1138,7 +1069,7 @@ type Props$w = {
|
|
|
1138
1069
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties
|
|
1139
1070
|
* in order to specify different margin sizes.
|
|
1140
1071
|
*/
|
|
1141
|
-
padding?: Space
|
|
1072
|
+
padding?: Space;
|
|
1142
1073
|
/**
|
|
1143
1074
|
* Sets the position CSS property.
|
|
1144
1075
|
*
|
|
@@ -1159,12 +1090,11 @@ type Props$w = {
|
|
|
1159
1090
|
zIndex?: "auto" | number;
|
|
1160
1091
|
};
|
|
1161
1092
|
|
|
1162
|
-
declare
|
|
1093
|
+
declare function DxcContainer({ display, width, height, overflow, ...props }: Props$w): react_jsx_runtime.JSX.Element;
|
|
1163
1094
|
|
|
1164
|
-
type SVG$a = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
1165
1095
|
type CommonItemProps = {
|
|
1166
|
-
badge?:
|
|
1167
|
-
icon?: string | SVG
|
|
1096
|
+
badge?: ReactElement;
|
|
1097
|
+
icon?: string | SVG;
|
|
1168
1098
|
label: string;
|
|
1169
1099
|
};
|
|
1170
1100
|
type Item = CommonItemProps & {
|
|
@@ -1186,21 +1116,13 @@ type Props$v = {
|
|
|
1186
1116
|
items: (Item | GroupItem)[] | Section[];
|
|
1187
1117
|
};
|
|
1188
1118
|
|
|
1189
|
-
declare
|
|
1119
|
+
declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
|
|
1190
1120
|
|
|
1191
|
-
type Space$i = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1192
|
-
type Margin$h = {
|
|
1193
|
-
top?: Space$i;
|
|
1194
|
-
bottom?: Space$i;
|
|
1195
|
-
left?: Space$i;
|
|
1196
|
-
right?: Space$i;
|
|
1197
|
-
};
|
|
1198
|
-
type SVG$9 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
1199
1121
|
type ActionCellsPropsType = {
|
|
1200
1122
|
actions: ActionsPropsType;
|
|
1201
1123
|
};
|
|
1202
1124
|
type ActionsPropsType = Array<{
|
|
1203
|
-
icon: string | SVG
|
|
1125
|
+
icon: string | SVG;
|
|
1204
1126
|
title: string;
|
|
1205
1127
|
onClick: () => void;
|
|
1206
1128
|
disabled?: boolean;
|
|
@@ -1219,12 +1141,12 @@ type Props$u = {
|
|
|
1219
1141
|
* The center section of the table. Can be used to render custom
|
|
1220
1142
|
* content in this area.
|
|
1221
1143
|
*/
|
|
1222
|
-
children:
|
|
1144
|
+
children: ReactNode;
|
|
1223
1145
|
/**
|
|
1224
1146
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1225
1147
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1226
1148
|
*/
|
|
1227
|
-
margin?: Space$
|
|
1149
|
+
margin?: Space$1 | Margin;
|
|
1228
1150
|
/**
|
|
1229
1151
|
* Determines the visual style and layout
|
|
1230
1152
|
* - "default": Default table size.
|
|
@@ -1253,7 +1175,7 @@ type GridColumn = {
|
|
|
1253
1175
|
/**
|
|
1254
1176
|
* Custom criteria for sorting the column.
|
|
1255
1177
|
*/
|
|
1256
|
-
sortFn?: (_a: ReactNode, _b: ReactNode) =>
|
|
1178
|
+
sortFn?: (_a: ReactNode, _b: ReactNode) => 0 | 1 | -1;
|
|
1257
1179
|
/**
|
|
1258
1180
|
* Whether the column is draggable or not.
|
|
1259
1181
|
*/
|
|
@@ -1421,13 +1343,6 @@ declare const DxcDataGrid: {
|
|
|
1421
1343
|
ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
|
|
1422
1344
|
};
|
|
1423
1345
|
|
|
1424
|
-
type Space$h = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1425
|
-
type Margin$g = {
|
|
1426
|
-
top?: Space$h;
|
|
1427
|
-
bottom?: Space$h;
|
|
1428
|
-
left?: Space$h;
|
|
1429
|
-
right?: Space$h;
|
|
1430
|
-
};
|
|
1431
1346
|
type Props$s = {
|
|
1432
1347
|
/**
|
|
1433
1348
|
* Initial value of the input element, only when it is uncontrolled.
|
|
@@ -1519,7 +1434,7 @@ type Props$s = {
|
|
|
1519
1434
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1520
1435
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1521
1436
|
*/
|
|
1522
|
-
margin?: Space$
|
|
1437
|
+
margin?: Space$1 | Margin;
|
|
1523
1438
|
/**
|
|
1524
1439
|
* Size of the component.
|
|
1525
1440
|
*/
|
|
@@ -1536,7 +1451,7 @@ type Props$r = {
|
|
|
1536
1451
|
/**
|
|
1537
1452
|
* If true, the close button will be visible.
|
|
1538
1453
|
*/
|
|
1539
|
-
|
|
1454
|
+
closable?: boolean;
|
|
1540
1455
|
/**
|
|
1541
1456
|
* This function will be called when the user clicks the close button.
|
|
1542
1457
|
* The responsibility of hiding the dialog lies with the user.
|
|
@@ -1558,7 +1473,7 @@ type Props$r = {
|
|
|
1558
1473
|
* can lead to unpredictable behaviour for keyboard users, affecting
|
|
1559
1474
|
* the order of focus and focus locking within the dialog.
|
|
1560
1475
|
*/
|
|
1561
|
-
children:
|
|
1476
|
+
children: ReactNode;
|
|
1562
1477
|
/**
|
|
1563
1478
|
* Value of the tabindex applied to the close button.
|
|
1564
1479
|
* Note that values greater than 0 are strongly discouraged. It can
|
|
@@ -1567,7 +1482,7 @@ type Props$r = {
|
|
|
1567
1482
|
tabIndex?: number;
|
|
1568
1483
|
};
|
|
1569
1484
|
|
|
1570
|
-
declare const DxcDialog: ({
|
|
1485
|
+
declare const DxcDialog: ({ closable, onCloseClick, children, overlay, onBackgroundClick, tabIndex, }: Props$r) => JSX.Element;
|
|
1571
1486
|
|
|
1572
1487
|
type Props$q = {
|
|
1573
1488
|
/**
|
|
@@ -1594,13 +1509,6 @@ declare const DxcDivider: ({ orientation, weight, color, decorative, }: Props$q)
|
|
|
1594
1509
|
|
|
1595
1510
|
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => JSX.Element;
|
|
1596
1511
|
|
|
1597
|
-
type Space$g = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1598
|
-
type Margin$f = {
|
|
1599
|
-
top?: Space$g;
|
|
1600
|
-
bottom?: Space$g;
|
|
1601
|
-
left?: Space$g;
|
|
1602
|
-
right?: Space$g;
|
|
1603
|
-
};
|
|
1604
1512
|
type FileData = {
|
|
1605
1513
|
/**
|
|
1606
1514
|
* Selected file.
|
|
@@ -1666,7 +1574,7 @@ type CommonProps$5 = {
|
|
|
1666
1574
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1667
1575
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1668
1576
|
*/
|
|
1669
|
-
margin?: Space$
|
|
1577
|
+
margin?: Space$1 | Margin;
|
|
1670
1578
|
/**
|
|
1671
1579
|
* Value of the tabindex attribute.
|
|
1672
1580
|
*/
|
|
@@ -1787,7 +1695,7 @@ type Props$o = CommonProps$4 & {
|
|
|
1787
1695
|
/**
|
|
1788
1696
|
* Custom content inside the flex container.
|
|
1789
1697
|
*/
|
|
1790
|
-
children:
|
|
1698
|
+
children: ReactNode;
|
|
1791
1699
|
};
|
|
1792
1700
|
|
|
1793
1701
|
declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }: Props$o) => react_jsx_runtime.JSX.Element;
|
|
@@ -1846,7 +1754,7 @@ type GridItemProps = {
|
|
|
1846
1754
|
/**
|
|
1847
1755
|
* Custom content inside the grid container.
|
|
1848
1756
|
*/
|
|
1849
|
-
children:
|
|
1757
|
+
children: ReactNode;
|
|
1850
1758
|
};
|
|
1851
1759
|
type Props$n = GridItemProps & {
|
|
1852
1760
|
/**
|
|
@@ -1910,13 +1818,6 @@ declare const DxcGrid: {
|
|
|
1910
1818
|
Item: styled_components.StyledComponent<"div", any, GridItemProps, never>;
|
|
1911
1819
|
};
|
|
1912
1820
|
|
|
1913
|
-
type Space$f = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1914
|
-
type Margin$e = {
|
|
1915
|
-
top?: Space$f;
|
|
1916
|
-
bottom?: Space$f;
|
|
1917
|
-
left?: Space$f;
|
|
1918
|
-
right?: Space$f;
|
|
1919
|
-
};
|
|
1920
1821
|
type Props$m = {
|
|
1921
1822
|
/**
|
|
1922
1823
|
* Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
|
|
@@ -1940,7 +1841,7 @@ type Props$m = {
|
|
|
1940
1841
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1941
1842
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1942
1843
|
*/
|
|
1943
|
-
margin?: Space$
|
|
1844
|
+
margin?: Space$1 | Margin;
|
|
1944
1845
|
};
|
|
1945
1846
|
|
|
1946
1847
|
declare const DxcHeading: ({ level, text, as, weight, margin }: Props$m) => JSX.Element;
|
|
@@ -2004,14 +1905,14 @@ type Props$l = {
|
|
|
2004
1905
|
/**
|
|
2005
1906
|
* This function will be called when the image is loaded.
|
|
2006
1907
|
*/
|
|
2007
|
-
onLoad?:
|
|
1908
|
+
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
2008
1909
|
/**
|
|
2009
1910
|
* This function will be called when the image fails to load.
|
|
2010
1911
|
*/
|
|
2011
|
-
onError?:
|
|
1912
|
+
onError?: ReactEventHandler<HTMLImageElement>;
|
|
2012
1913
|
};
|
|
2013
1914
|
|
|
2014
|
-
declare
|
|
1915
|
+
declare function DxcImage({ alt, caption, lazyLoading, src, srcSet, sizes, width, height, objectFit, objectPosition, onLoad, onError, }: Props$l): react_jsx_runtime.JSX.Element;
|
|
2015
1916
|
|
|
2016
1917
|
type Props$k = {
|
|
2017
1918
|
/**
|
|
@@ -2045,19 +1946,11 @@ type Props$k = {
|
|
|
2045
1946
|
/**
|
|
2046
1947
|
* Custom content inside the inset.
|
|
2047
1948
|
*/
|
|
2048
|
-
children:
|
|
1949
|
+
children: ReactNode;
|
|
2049
1950
|
};
|
|
2050
1951
|
|
|
2051
1952
|
declare const Inset: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$k) => react_jsx_runtime.JSX.Element;
|
|
2052
1953
|
|
|
2053
|
-
type Space$e = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2054
|
-
type Margin$d = {
|
|
2055
|
-
top?: Space$e;
|
|
2056
|
-
bottom?: Space$e;
|
|
2057
|
-
left?: Space$e;
|
|
2058
|
-
right?: Space$e;
|
|
2059
|
-
};
|
|
2060
|
-
type SVG$8 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
2061
1954
|
type LinkProps = {
|
|
2062
1955
|
/**
|
|
2063
1956
|
* If true, the link is disabled.
|
|
@@ -2070,7 +1963,7 @@ type LinkProps = {
|
|
|
2070
1963
|
/**
|
|
2071
1964
|
* Material Symbol name or SVG element as the icon that will be placed next to the link text.
|
|
2072
1965
|
*/
|
|
2073
|
-
icon?: string | SVG
|
|
1966
|
+
icon?: string | SVG;
|
|
2074
1967
|
/**
|
|
2075
1968
|
* Indicates the position of the icon in the component.
|
|
2076
1969
|
*/
|
|
@@ -2096,7 +1989,7 @@ type LinkProps = {
|
|
|
2096
1989
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2097
1990
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2098
1991
|
*/
|
|
2099
|
-
margin?: Space$
|
|
1992
|
+
margin?: Space$1 | Margin;
|
|
2100
1993
|
/**
|
|
2101
1994
|
* Value of the tabindex.
|
|
2102
1995
|
*/
|
|
@@ -2105,7 +1998,6 @@ type LinkProps = {
|
|
|
2105
1998
|
|
|
2106
1999
|
declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
2107
2000
|
|
|
2108
|
-
type SVG$7 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
2109
2001
|
type TabProps$1 = {
|
|
2110
2002
|
/**
|
|
2111
2003
|
* Whether the tab is active or not.
|
|
@@ -2122,7 +2014,7 @@ type TabProps$1 = {
|
|
|
2122
2014
|
/**
|
|
2123
2015
|
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
2124
2016
|
*/
|
|
2125
|
-
icon?: string | SVG
|
|
2017
|
+
icon?: string | SVG;
|
|
2126
2018
|
/**
|
|
2127
2019
|
* If the value is 'true', an empty badge will appear.
|
|
2128
2020
|
* If it is 'false', no badge will appear.
|
|
@@ -2144,7 +2036,7 @@ type Props$j = {
|
|
|
2144
2036
|
/**
|
|
2145
2037
|
* Contains one or more DxcNavTabs.Tab.
|
|
2146
2038
|
*/
|
|
2147
|
-
children:
|
|
2039
|
+
children: ReactNode;
|
|
2148
2040
|
/**
|
|
2149
2041
|
* Value of the tabindex attribute applied to each tab.
|
|
2150
2042
|
*/
|
|
@@ -2156,13 +2048,6 @@ declare const DxcNavTabs: {
|
|
|
2156
2048
|
Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
|
|
2157
2049
|
};
|
|
2158
2050
|
|
|
2159
|
-
type Space$d = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2160
|
-
type Margin$c = {
|
|
2161
|
-
top?: Space$d;
|
|
2162
|
-
bottom?: Space$d;
|
|
2163
|
-
left?: Space$d;
|
|
2164
|
-
right?: Space$d;
|
|
2165
|
-
};
|
|
2166
2051
|
type Props$i = {
|
|
2167
2052
|
/**
|
|
2168
2053
|
* Text to be placed above the number.
|
|
@@ -2271,7 +2156,7 @@ type Props$i = {
|
|
|
2271
2156
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2272
2157
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2273
2158
|
*/
|
|
2274
|
-
margin?: Space$
|
|
2159
|
+
margin?: Space$1 | Margin;
|
|
2275
2160
|
/**
|
|
2276
2161
|
* Size of the component.
|
|
2277
2162
|
*/
|
|
@@ -2324,17 +2209,10 @@ type Props$h = {
|
|
|
2324
2209
|
|
|
2325
2210
|
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$h) => JSX.Element;
|
|
2326
2211
|
|
|
2327
|
-
declare
|
|
2328
|
-
children:
|
|
2329
|
-
})
|
|
2212
|
+
declare function DxcParagraph({ children }: {
|
|
2213
|
+
children: ReactNode;
|
|
2214
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2330
2215
|
|
|
2331
|
-
type Space$c = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2332
|
-
type Margin$b = {
|
|
2333
|
-
top?: Space$c;
|
|
2334
|
-
bottom?: Space$c;
|
|
2335
|
-
left?: Space$c;
|
|
2336
|
-
right?: Space$c;
|
|
2337
|
-
};
|
|
2338
2216
|
type Props$g = {
|
|
2339
2217
|
/**
|
|
2340
2218
|
* Text to be placed above the password input.
|
|
@@ -2424,7 +2302,7 @@ type Props$g = {
|
|
|
2424
2302
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2425
2303
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2426
2304
|
*/
|
|
2427
|
-
margin?: Space$
|
|
2305
|
+
margin?: Space$1 | Margin;
|
|
2428
2306
|
/**
|
|
2429
2307
|
* Size of the component.
|
|
2430
2308
|
*/
|
|
@@ -2437,12 +2315,11 @@ type Props$g = {
|
|
|
2437
2315
|
|
|
2438
2316
|
declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
|
|
2439
2317
|
|
|
2440
|
-
type Space$b = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2441
2318
|
type Size$1 = {
|
|
2442
|
-
top?: Space$
|
|
2443
|
-
bottom?: Space$
|
|
2444
|
-
left?: Space$
|
|
2445
|
-
right?: Space$
|
|
2319
|
+
top?: Space$1;
|
|
2320
|
+
bottom?: Space$1;
|
|
2321
|
+
left?: Space$1;
|
|
2322
|
+
right?: Space$1;
|
|
2446
2323
|
};
|
|
2447
2324
|
type Props$f = {
|
|
2448
2325
|
/**
|
|
@@ -2471,7 +2348,7 @@ type Props$f = {
|
|
|
2471
2348
|
* an object with 'top', 'bottom', 'left' and 'right' properties
|
|
2472
2349
|
* in order to specify different margin sizes.
|
|
2473
2350
|
*/
|
|
2474
|
-
margin?: Space$
|
|
2351
|
+
margin?: Space$1 | Size$1;
|
|
2475
2352
|
};
|
|
2476
2353
|
|
|
2477
2354
|
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, }: Props$f) => JSX.Element;
|
|
@@ -2598,18 +2475,11 @@ type RadioGroupProps = {
|
|
|
2598
2475
|
|
|
2599
2476
|
declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
2600
2477
|
|
|
2601
|
-
type Space$a = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2602
|
-
type Margin$a = {
|
|
2603
|
-
top?: Space$a;
|
|
2604
|
-
bottom?: Space$a;
|
|
2605
|
-
left?: Space$a;
|
|
2606
|
-
right?: Space$a;
|
|
2607
|
-
};
|
|
2608
2478
|
type Column = {
|
|
2609
2479
|
/**
|
|
2610
2480
|
* Column display value.
|
|
2611
2481
|
*/
|
|
2612
|
-
displayValue:
|
|
2482
|
+
displayValue: ReactNode;
|
|
2613
2483
|
/**
|
|
2614
2484
|
* Boolean value to indicate whether the column is sortable or not.
|
|
2615
2485
|
*/
|
|
@@ -2619,7 +2489,7 @@ type Cell = {
|
|
|
2619
2489
|
/**
|
|
2620
2490
|
* Value to be displayed in the cell.
|
|
2621
2491
|
*/
|
|
2622
|
-
displayValue:
|
|
2492
|
+
displayValue: ReactNode;
|
|
2623
2493
|
/**
|
|
2624
2494
|
* Value to be used when sorting the table by that
|
|
2625
2495
|
* column. If not indicated displayValue will be used for sorting.
|
|
@@ -2641,7 +2511,7 @@ type CommonProps$3 = {
|
|
|
2641
2511
|
* Size of the margin to be applied to the component. You can pass an object with 'top',
|
|
2642
2512
|
* 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2643
2513
|
*/
|
|
2644
|
-
margin?: Space$
|
|
2514
|
+
margin?: Space$1 | Margin;
|
|
2645
2515
|
/**
|
|
2646
2516
|
* Value of the tabindex attribute applied to the sortable icon.
|
|
2647
2517
|
*/
|
|
@@ -2703,14 +2573,6 @@ declare const DxcResultsetTable: {
|
|
|
2703
2573
|
ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
|
|
2704
2574
|
};
|
|
2705
2575
|
|
|
2706
|
-
type Space$9 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2707
|
-
type Margin$9 = {
|
|
2708
|
-
top?: Space$9;
|
|
2709
|
-
bottom?: Space$9;
|
|
2710
|
-
left?: Space$9;
|
|
2711
|
-
right?: Space$9;
|
|
2712
|
-
};
|
|
2713
|
-
type SVG$6 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
2714
2576
|
type ListOptionGroupType = {
|
|
2715
2577
|
/**
|
|
2716
2578
|
* Label of the group to be shown in the select's listbox.
|
|
@@ -2728,7 +2590,7 @@ type ListOptionType = {
|
|
|
2728
2590
|
* is the chosen one, take into account that the component's
|
|
2729
2591
|
* color styling tokens will not be applied to the image.
|
|
2730
2592
|
*/
|
|
2731
|
-
icon?: string | SVG
|
|
2593
|
+
icon?: string | SVG;
|
|
2732
2594
|
/**
|
|
2733
2595
|
* Label of the option to be shown in the select's listbox.
|
|
2734
2596
|
*/
|
|
@@ -2794,7 +2656,7 @@ type CommonProps$2 = {
|
|
|
2794
2656
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2795
2657
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2796
2658
|
*/
|
|
2797
|
-
margin?: Space$
|
|
2659
|
+
margin?: Space$1 | Margin;
|
|
2798
2660
|
/**
|
|
2799
2661
|
* Size of the component.
|
|
2800
2662
|
*/
|
|
@@ -2880,13 +2742,6 @@ type Props$c = SingleSelect | MultipleSelect;
|
|
|
2880
2742
|
|
|
2881
2743
|
declare const DxcSelect: react.ForwardRefExoticComponent<Props$c & react.RefAttributes<HTMLDivElement>>;
|
|
2882
2744
|
|
|
2883
|
-
type Space$8 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2884
|
-
type Margin$8 = {
|
|
2885
|
-
top?: Space$8;
|
|
2886
|
-
bottom?: Space$8;
|
|
2887
|
-
left?: Space$8;
|
|
2888
|
-
right?: Space$8;
|
|
2889
|
-
};
|
|
2890
2745
|
type Props$b = {
|
|
2891
2746
|
/**
|
|
2892
2747
|
* Text to be placed above the slider.
|
|
@@ -2955,7 +2810,7 @@ type Props$b = {
|
|
|
2955
2810
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2956
2811
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2957
2812
|
*/
|
|
2958
|
-
margin?: Space$
|
|
2813
|
+
margin?: Space$1 | Margin;
|
|
2959
2814
|
/**
|
|
2960
2815
|
* Size of the component.
|
|
2961
2816
|
*/
|
|
@@ -2964,13 +2819,6 @@ type Props$b = {
|
|
|
2964
2819
|
|
|
2965
2820
|
declare const DxcSlider: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
|
|
2966
2821
|
|
|
2967
|
-
type Space$7 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
2968
|
-
type Margin$7 = {
|
|
2969
|
-
top?: Space$7;
|
|
2970
|
-
bottom?: Space$7;
|
|
2971
|
-
left?: Space$7;
|
|
2972
|
-
right?: Space$7;
|
|
2973
|
-
};
|
|
2974
2822
|
type Props$a = {
|
|
2975
2823
|
/**
|
|
2976
2824
|
* Text to be placed inside the spinner.
|
|
@@ -2993,7 +2841,7 @@ type Props$a = {
|
|
|
2993
2841
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2994
2842
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2995
2843
|
*/
|
|
2996
|
-
margin?: Space$
|
|
2844
|
+
margin?: Space$1 | Margin;
|
|
2997
2845
|
};
|
|
2998
2846
|
|
|
2999
2847
|
declare const DxcSpinner: ({ label, value, showValue, mode, margin }: Props$a) => JSX.Element;
|
|
@@ -3017,13 +2865,6 @@ type Props$9 = {
|
|
|
3017
2865
|
|
|
3018
2866
|
declare const DxcStatusLight: ({ mode, label, size }: Props$9) => JSX.Element;
|
|
3019
2867
|
|
|
3020
|
-
type Space$6 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3021
|
-
type Margin$6 = {
|
|
3022
|
-
top?: Space$6;
|
|
3023
|
-
bottom?: Space$6;
|
|
3024
|
-
left?: Space$6;
|
|
3025
|
-
right?: Space$6;
|
|
3026
|
-
};
|
|
3027
2868
|
type Props$8 = {
|
|
3028
2869
|
/**
|
|
3029
2870
|
* Initial state of the switch, only when it is uncontrolled.
|
|
@@ -3068,7 +2909,7 @@ type Props$8 = {
|
|
|
3068
2909
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3069
2910
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3070
2911
|
*/
|
|
3071
|
-
margin?: Space$
|
|
2912
|
+
margin?: Space$1 | Margin;
|
|
3072
2913
|
/**
|
|
3073
2914
|
* Size of the component.
|
|
3074
2915
|
*/
|
|
@@ -3086,14 +2927,6 @@ declare const DxcTable: {
|
|
|
3086
2927
|
ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
|
|
3087
2928
|
};
|
|
3088
2929
|
|
|
3089
|
-
type Space$5 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3090
|
-
type Margin$5 = {
|
|
3091
|
-
top?: Space$5;
|
|
3092
|
-
bottom?: Space$5;
|
|
3093
|
-
left?: Space$5;
|
|
3094
|
-
right?: Space$5;
|
|
3095
|
-
};
|
|
3096
|
-
type SVG$5 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3097
2930
|
type TabCommonProps = {
|
|
3098
2931
|
/**
|
|
3099
2932
|
* Whether the tab is disabled or not.
|
|
@@ -3116,7 +2949,7 @@ type TabLabelProps = TabCommonProps & {
|
|
|
3116
2949
|
/**
|
|
3117
2950
|
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
3118
2951
|
*/
|
|
3119
|
-
icon?: string | SVG
|
|
2952
|
+
icon?: string | SVG;
|
|
3120
2953
|
};
|
|
3121
2954
|
type TabIconProps = TabCommonProps & {
|
|
3122
2955
|
/**
|
|
@@ -3126,17 +2959,17 @@ type TabIconProps = TabCommonProps & {
|
|
|
3126
2959
|
/**
|
|
3127
2960
|
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
3128
2961
|
*/
|
|
3129
|
-
icon: string | SVG
|
|
2962
|
+
icon: string | SVG;
|
|
3130
2963
|
};
|
|
3131
2964
|
type TabProps = {
|
|
3132
2965
|
defaultActive?: boolean;
|
|
3133
2966
|
active?: boolean;
|
|
3134
|
-
icon?: string | SVG
|
|
3135
|
-
label
|
|
2967
|
+
icon?: string | SVG;
|
|
2968
|
+
label: string;
|
|
3136
2969
|
title?: string;
|
|
3137
2970
|
disabled?: boolean;
|
|
3138
2971
|
notificationNumber?: boolean | number;
|
|
3139
|
-
children:
|
|
2972
|
+
children: ReactNode;
|
|
3140
2973
|
onClick?: () => void;
|
|
3141
2974
|
onHover?: () => void;
|
|
3142
2975
|
};
|
|
@@ -3167,12 +3000,12 @@ type LegacyProps = {
|
|
|
3167
3000
|
* This function will be called when the user hovers a tab.The index of the
|
|
3168
3001
|
* hovered tab will be passed as a parameter.
|
|
3169
3002
|
*/
|
|
3170
|
-
onTabHover?: (index: number) => void;
|
|
3003
|
+
onTabHover?: (index: number | null) => void;
|
|
3171
3004
|
/**
|
|
3172
3005
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3173
3006
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3174
3007
|
*/
|
|
3175
|
-
margin?: Space$
|
|
3008
|
+
margin?: Space$1 | Margin;
|
|
3176
3009
|
/**
|
|
3177
3010
|
* Value of the tabindex attribute applied to each tab.
|
|
3178
3011
|
*/
|
|
@@ -3187,7 +3020,7 @@ type NewProps = {
|
|
|
3187
3020
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3188
3021
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3189
3022
|
*/
|
|
3190
|
-
margin?: Space$
|
|
3023
|
+
margin?: Space$1 | Margin;
|
|
3191
3024
|
/**
|
|
3192
3025
|
* Value of the tabindex attribute applied to each tab.
|
|
3193
3026
|
*/
|
|
@@ -3195,23 +3028,15 @@ type NewProps = {
|
|
|
3195
3028
|
/**
|
|
3196
3029
|
* Contains one or more DxcTabs.Tab.
|
|
3197
3030
|
*/
|
|
3198
|
-
children?:
|
|
3031
|
+
children?: ReactNode;
|
|
3199
3032
|
};
|
|
3200
3033
|
type Props$7 = LegacyProps & NewProps;
|
|
3201
3034
|
|
|
3202
3035
|
declare const DxcTabs: {
|
|
3203
|
-
({ defaultActiveTabIndex, activeTabIndex, tabs, onTabClick, onTabHover, margin, iconPosition, tabIndex, children, }: Props$7): JSX.Element;
|
|
3036
|
+
({ defaultActiveTabIndex, activeTabIndex, tabs, onTabClick, onTabHover, margin, iconPosition, tabIndex, children, }: Props$7): false | react_jsx_runtime.JSX.Element;
|
|
3204
3037
|
Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3205
3038
|
};
|
|
3206
3039
|
|
|
3207
|
-
type Space$4 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3208
|
-
type Margin$4 = {
|
|
3209
|
-
top?: Space$4;
|
|
3210
|
-
bottom?: Space$4;
|
|
3211
|
-
left?: Space$4;
|
|
3212
|
-
right?: Space$4;
|
|
3213
|
-
};
|
|
3214
|
-
type SVG$4 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3215
3040
|
type TagCommonProps = {
|
|
3216
3041
|
/**
|
|
3217
3042
|
* If defined, the tag will be displayed as an anchor, using this prop as "href".
|
|
@@ -3240,7 +3065,7 @@ type TagCommonProps = {
|
|
|
3240
3065
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3241
3066
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3242
3067
|
*/
|
|
3243
|
-
margin?: Space$
|
|
3068
|
+
margin?: Space$1 | Margin;
|
|
3244
3069
|
/**
|
|
3245
3070
|
* Size of the component.
|
|
3246
3071
|
*/
|
|
@@ -3254,7 +3079,7 @@ type TagLabelProps = TagCommonProps & {
|
|
|
3254
3079
|
/**
|
|
3255
3080
|
* Material Symbol name or SVG element used as the icon that will be placed next to the label.
|
|
3256
3081
|
*/
|
|
3257
|
-
icon?: string | SVG
|
|
3082
|
+
icon?: string | SVG;
|
|
3258
3083
|
/**
|
|
3259
3084
|
* Text to be placed next inside the tag.
|
|
3260
3085
|
*/
|
|
@@ -3264,7 +3089,7 @@ type TagIconProps = TagCommonProps & {
|
|
|
3264
3089
|
/**
|
|
3265
3090
|
* Material Symbol name or SVG element used as the icon that will be placed next to the label.
|
|
3266
3091
|
*/
|
|
3267
|
-
icon: string | SVG
|
|
3092
|
+
icon: string | SVG;
|
|
3268
3093
|
/**
|
|
3269
3094
|
* Text to be placed next inside the tag.
|
|
3270
3095
|
*/
|
|
@@ -3277,13 +3102,6 @@ type Props$6 = TagLabelProps | TagIconProps;
|
|
|
3277
3102
|
*/
|
|
3278
3103
|
declare const DxcTag: ({ icon, label, linkHref, onClick, iconBgColor, labelPosition, newWindow, margin, size, tabIndex, }: Props$6) => JSX.Element;
|
|
3279
3104
|
|
|
3280
|
-
type Space$3 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3281
|
-
type Margin$3 = {
|
|
3282
|
-
top?: Space$3;
|
|
3283
|
-
bottom?: Space$3;
|
|
3284
|
-
left?: Space$3;
|
|
3285
|
-
right?: Space$3;
|
|
3286
|
-
};
|
|
3287
3105
|
type Props$5 = {
|
|
3288
3106
|
/**
|
|
3289
3107
|
* Text to be placed above the textarea.
|
|
@@ -3403,7 +3221,7 @@ type Props$5 = {
|
|
|
3403
3221
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3404
3222
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3405
3223
|
*/
|
|
3406
|
-
margin?: Space$
|
|
3224
|
+
margin?: Space$1 | Margin;
|
|
3407
3225
|
/**
|
|
3408
3226
|
* Size of the component.
|
|
3409
3227
|
*/
|
|
@@ -3416,14 +3234,6 @@ type Props$5 = {
|
|
|
3416
3234
|
|
|
3417
3235
|
declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
|
|
3418
3236
|
|
|
3419
|
-
type Space$2 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3420
|
-
type Margin$2 = {
|
|
3421
|
-
top?: Space$2;
|
|
3422
|
-
bottom?: Space$2;
|
|
3423
|
-
left?: Space$2;
|
|
3424
|
-
right?: Space$2;
|
|
3425
|
-
};
|
|
3426
|
-
type SVG$3 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3427
3237
|
type Action$1 = {
|
|
3428
3238
|
/**
|
|
3429
3239
|
* This function will be called when the user clicks the action.
|
|
@@ -3432,7 +3242,7 @@ type Action$1 = {
|
|
|
3432
3242
|
/**
|
|
3433
3243
|
* Icon to be placed in the action..
|
|
3434
3244
|
*/
|
|
3435
|
-
icon: string | SVG
|
|
3245
|
+
icon: string | SVG;
|
|
3436
3246
|
/**
|
|
3437
3247
|
* Text representing advisory information related
|
|
3438
3248
|
* to the button's action. Under the hood, this prop also serves
|
|
@@ -3574,7 +3384,7 @@ type Props$4 = {
|
|
|
3574
3384
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3575
3385
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3576
3386
|
*/
|
|
3577
|
-
margin?: Space$
|
|
3387
|
+
margin?: Space$1 | Margin;
|
|
3578
3388
|
/**
|
|
3579
3389
|
* Size of the component.
|
|
3580
3390
|
*/
|
|
@@ -3587,9 +3397,8 @@ type Props$4 = {
|
|
|
3587
3397
|
|
|
3588
3398
|
declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
|
|
3589
3399
|
|
|
3590
|
-
type SVG$2 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3591
3400
|
type Action = {
|
|
3592
|
-
icon?: string | SVG
|
|
3401
|
+
icon?: string | SVG;
|
|
3593
3402
|
label: string;
|
|
3594
3403
|
onClick: () => void;
|
|
3595
3404
|
};
|
|
@@ -3598,7 +3407,7 @@ type CommonProps$1 = {
|
|
|
3598
3407
|
message: string;
|
|
3599
3408
|
};
|
|
3600
3409
|
type DefaultToast = CommonProps$1 & {
|
|
3601
|
-
icon?: string | SVG
|
|
3410
|
+
icon?: string | SVG;
|
|
3602
3411
|
};
|
|
3603
3412
|
type LoadingToast = CommonProps$1 & {
|
|
3604
3413
|
loading: boolean;
|
|
@@ -3608,19 +3417,11 @@ type SemanticToast = CommonProps$1 & {
|
|
|
3608
3417
|
};
|
|
3609
3418
|
type ToastsQueuePropsType = {
|
|
3610
3419
|
duration?: number;
|
|
3611
|
-
children:
|
|
3420
|
+
children: ReactNode;
|
|
3612
3421
|
};
|
|
3613
3422
|
|
|
3614
3423
|
declare const DxcToastsQueue: ({ children, duration }: ToastsQueuePropsType) => react_jsx_runtime.JSX.Element;
|
|
3615
3424
|
|
|
3616
|
-
type Space$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3617
|
-
type Margin$1 = {
|
|
3618
|
-
top?: Space$1;
|
|
3619
|
-
bottom?: Space$1;
|
|
3620
|
-
left?: Space$1;
|
|
3621
|
-
right?: Space$1;
|
|
3622
|
-
};
|
|
3623
|
-
type SVG$1 = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3624
3425
|
type OptionIcon = {
|
|
3625
3426
|
/**
|
|
3626
3427
|
* String with the option display value.
|
|
@@ -3629,7 +3430,7 @@ type OptionIcon = {
|
|
|
3629
3430
|
/**
|
|
3630
3431
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3631
3432
|
*/
|
|
3632
|
-
icon: string | SVG
|
|
3433
|
+
icon: string | SVG;
|
|
3633
3434
|
/**
|
|
3634
3435
|
* Value for the HTML properties title and aria-label.
|
|
3635
3436
|
* When a label is defined, this prop can not be use.
|
|
@@ -3644,7 +3445,7 @@ type OptionLabel = {
|
|
|
3644
3445
|
/**
|
|
3645
3446
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3646
3447
|
*/
|
|
3647
|
-
icon?: string | SVG
|
|
3448
|
+
icon?: string | SVG;
|
|
3648
3449
|
/**
|
|
3649
3450
|
* Value for the HTML properties title and aria-label.
|
|
3650
3451
|
* When a label is defined, this prop can not be use.
|
|
@@ -3678,7 +3479,7 @@ type CommonProps = {
|
|
|
3678
3479
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3679
3480
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3680
3481
|
*/
|
|
3681
|
-
margin?: Space$1 | Margin
|
|
3482
|
+
margin?: Space$1 | Margin;
|
|
3682
3483
|
/**
|
|
3683
3484
|
* Value of the tabindex.
|
|
3684
3485
|
*/
|
|
@@ -3736,17 +3537,19 @@ type Props$2 = {
|
|
|
3736
3537
|
/**
|
|
3737
3538
|
* Text to be displayed inside the tooltip.
|
|
3738
3539
|
*/
|
|
3739
|
-
label
|
|
3540
|
+
label?: string;
|
|
3740
3541
|
/**
|
|
3741
3542
|
* Content in which the Tooltip will be displayed.
|
|
3742
3543
|
*/
|
|
3743
|
-
children:
|
|
3544
|
+
children: ReactNode;
|
|
3744
3545
|
};
|
|
3745
3546
|
|
|
3746
3547
|
declare function DxcTooltip(props: Props$2): react_jsx_runtime.JSX.Element;
|
|
3747
3548
|
|
|
3748
3549
|
type Props$1 = {
|
|
3749
|
-
as?:
|
|
3550
|
+
as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
|
|
3551
|
+
children: ReactNode;
|
|
3552
|
+
color?: string;
|
|
3750
3553
|
display?: "inline" | "block";
|
|
3751
3554
|
fontFamily?: "Open Sans, sans-serif" | "Source Code Pro, monospace";
|
|
3752
3555
|
fontSize?: "0.75rem" | "0.875rem" | "1rem" | "1.25rem" | "1.5rem" | "2rem" | "3rem" | "3.75rem";
|
|
@@ -3755,23 +3558,13 @@ type Props$1 = {
|
|
|
3755
3558
|
letterSpacing?: "-0.025em" | "-0.0125em" | "0em" | "0.025em" | "0.05em" | "0.1em";
|
|
3756
3559
|
lineHeight?: "1em" | "1.25em" | "1.365em" | "1.5em" | "1.715em" | "2em";
|
|
3757
3560
|
textAlign?: "left" | "center" | "right";
|
|
3758
|
-
color?: string;
|
|
3759
3561
|
textDecoration?: "none" | "underline" | "line-through";
|
|
3760
3562
|
textOverflow?: "clip" | "ellipsis" | "unset";
|
|
3761
3563
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
3762
|
-
children: React.ReactNode;
|
|
3763
3564
|
};
|
|
3764
3565
|
|
|
3765
|
-
declare
|
|
3566
|
+
declare function DxcTypography({ children, ...props }: Props$1): react_jsx_runtime.JSX.Element;
|
|
3766
3567
|
|
|
3767
|
-
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
3768
|
-
type Margin = {
|
|
3769
|
-
top?: Space;
|
|
3770
|
-
bottom?: Space;
|
|
3771
|
-
left?: Space;
|
|
3772
|
-
right?: Space;
|
|
3773
|
-
};
|
|
3774
|
-
type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
|
|
3775
3568
|
type StepProps = {
|
|
3776
3569
|
/**
|
|
3777
3570
|
* Step label.
|
|
@@ -3820,7 +3613,7 @@ type Props = {
|
|
|
3820
3613
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3821
3614
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3822
3615
|
*/
|
|
3823
|
-
margin?: Space | Margin;
|
|
3616
|
+
margin?: Space$1 | Margin;
|
|
3824
3617
|
/**
|
|
3825
3618
|
* Value of the tabindex attribute that is given to all the steps.
|
|
3826
3619
|
*/
|
|
@@ -3829,14 +3622,6 @@ type Props = {
|
|
|
3829
3622
|
|
|
3830
3623
|
declare const DxcWizard: ({ mode, defaultCurrentStep, currentStep, onStepClick, steps, margin, tabIndex, }: Props) => JSX.Element;
|
|
3831
3624
|
|
|
3832
|
-
declare const useToast: () => {
|
|
3833
|
-
default: (toast: DefaultToast) => () => void;
|
|
3834
|
-
success: (toast: SemanticToast) => () => void;
|
|
3835
|
-
warning: (toast: SemanticToast) => () => void;
|
|
3836
|
-
info: (toast: SemanticToast) => () => void;
|
|
3837
|
-
loading: (toast: LoadingToast) => () => void;
|
|
3838
|
-
};
|
|
3839
|
-
|
|
3840
3625
|
declare const componentTokens: {
|
|
3841
3626
|
accordion: {
|
|
3842
3627
|
backgroundColor: string;
|
|
@@ -3882,47 +3667,24 @@ declare const componentTokens: {
|
|
|
3882
3667
|
accordionGroupSeparatorBorderStyle: string;
|
|
3883
3668
|
};
|
|
3884
3669
|
alert: {
|
|
3885
|
-
|
|
3886
|
-
titleFontColor: string;
|
|
3887
|
-
titleFontSize: string;
|
|
3888
|
-
titleFontStyle: string;
|
|
3889
|
-
titleFontWeight: string;
|
|
3890
|
-
titleTextTransform: string;
|
|
3891
|
-
titlePaddingRight: string;
|
|
3892
|
-
titlePaddingLeft: string;
|
|
3893
|
-
inlineTextFontFamily: string;
|
|
3894
|
-
inlineTextFontColor: string;
|
|
3895
|
-
inlineTextFontSize: string;
|
|
3896
|
-
inlineTextFontStyle: string;
|
|
3897
|
-
inlineTextFontWeight: string;
|
|
3898
|
-
inlineTextPaddingLeft: string;
|
|
3899
|
-
inlineTextPaddingRight: string;
|
|
3900
|
-
contentPaddingLeft: string;
|
|
3901
|
-
contentPaddingRight: string;
|
|
3902
|
-
contentPaddingTop: string;
|
|
3903
|
-
contentPaddingBottom: string;
|
|
3904
|
-
borderRadius: string;
|
|
3905
|
-
borderStyle: string;
|
|
3906
|
-
borderThickness: string;
|
|
3907
|
-
infoBorderColor: string;
|
|
3908
|
-
successBorderColor: string;
|
|
3909
|
-
warningBorderColor: string;
|
|
3910
|
-
errorBorderColor: string;
|
|
3911
|
-
iconSize: string;
|
|
3912
|
-
iconPaddingLeft: string;
|
|
3913
|
-
iconPaddingRight: string;
|
|
3914
|
-
infoIconColor: string;
|
|
3915
|
-
successIconColor: string;
|
|
3916
|
-
warningIconColor: string;
|
|
3670
|
+
errorBackgroundColor: string;
|
|
3917
3671
|
errorIconColor: string;
|
|
3672
|
+
fontColor: string;
|
|
3673
|
+
fontFamily: string;
|
|
3674
|
+
fontSize: string;
|
|
3675
|
+
fontStyle: string;
|
|
3676
|
+
fontWeight: string;
|
|
3677
|
+
iconSize: string;
|
|
3918
3678
|
infoBackgroundColor: string;
|
|
3679
|
+
infoIconColor: string;
|
|
3680
|
+
modalBackgroundColor: string;
|
|
3681
|
+
modalTitleFontSize: string;
|
|
3682
|
+
modalTitleFontWeight: string;
|
|
3683
|
+
overlayColor: string;
|
|
3919
3684
|
successBackgroundColor: string;
|
|
3685
|
+
successIconColor: string;
|
|
3920
3686
|
warningBackgroundColor: string;
|
|
3921
|
-
|
|
3922
|
-
hoverActionBackgroundColor: string;
|
|
3923
|
-
activeActionBackgroundColor: string;
|
|
3924
|
-
focusActionBorderColor: string;
|
|
3925
|
-
overlayColor: string;
|
|
3687
|
+
warningIconColor: string;
|
|
3926
3688
|
};
|
|
3927
3689
|
bulletedList: {
|
|
3928
3690
|
fontColor: string;
|
|
@@ -5305,10 +5067,10 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
5305
5067
|
visibilityToggleTitle: string;
|
|
5306
5068
|
};
|
|
5307
5069
|
alert: {
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5070
|
+
previousMessageActionTitle: string;
|
|
5071
|
+
nextMessageActionTitle: string;
|
|
5072
|
+
closeAlertActionTitle: string;
|
|
5073
|
+
closeMessageActionTitle: string;
|
|
5312
5074
|
};
|
|
5313
5075
|
calendar: {
|
|
5314
5076
|
daysShort: string[];
|
|
@@ -5389,7 +5151,14 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
5389
5151
|
};
|
|
5390
5152
|
type TranslatedLabels = typeof defaultTranslatedComponentLabels;
|
|
5391
5153
|
|
|
5392
|
-
|
|
5154
|
+
/**
|
|
5155
|
+
* This type is used to allow partial themes and labels objects to be passed to the HalstackProvider.
|
|
5156
|
+
* This is an extension of the already existing Partial type, which only allows one level of partiality.
|
|
5157
|
+
*/
|
|
5158
|
+
type DeepPartial<T> = {
|
|
5159
|
+
[P in keyof T]?: Partial<T[P]>;
|
|
5160
|
+
};
|
|
5161
|
+
declare const HalstackContext: react.Context<{
|
|
5393
5162
|
accordion: {
|
|
5394
5163
|
backgroundColor: string;
|
|
5395
5164
|
hoverBackgroundColor: string;
|
|
@@ -5434,47 +5203,24 @@ declare const HalstackContext: react.Context<DeepPartial<{
|
|
|
5434
5203
|
accordionGroupSeparatorBorderStyle: string;
|
|
5435
5204
|
};
|
|
5436
5205
|
alert: {
|
|
5437
|
-
|
|
5438
|
-
titleFontColor: string;
|
|
5439
|
-
titleFontSize: string;
|
|
5440
|
-
titleFontStyle: string;
|
|
5441
|
-
titleFontWeight: string;
|
|
5442
|
-
titleTextTransform: string;
|
|
5443
|
-
titlePaddingRight: string;
|
|
5444
|
-
titlePaddingLeft: string;
|
|
5445
|
-
inlineTextFontFamily: string;
|
|
5446
|
-
inlineTextFontColor: string;
|
|
5447
|
-
inlineTextFontSize: string;
|
|
5448
|
-
inlineTextFontStyle: string;
|
|
5449
|
-
inlineTextFontWeight: string;
|
|
5450
|
-
inlineTextPaddingLeft: string;
|
|
5451
|
-
inlineTextPaddingRight: string;
|
|
5452
|
-
contentPaddingLeft: string;
|
|
5453
|
-
contentPaddingRight: string;
|
|
5454
|
-
contentPaddingTop: string;
|
|
5455
|
-
contentPaddingBottom: string;
|
|
5456
|
-
borderRadius: string;
|
|
5457
|
-
borderStyle: string;
|
|
5458
|
-
borderThickness: string;
|
|
5459
|
-
infoBorderColor: string;
|
|
5460
|
-
successBorderColor: string;
|
|
5461
|
-
warningBorderColor: string;
|
|
5462
|
-
errorBorderColor: string;
|
|
5463
|
-
iconSize: string;
|
|
5464
|
-
iconPaddingLeft: string;
|
|
5465
|
-
iconPaddingRight: string;
|
|
5466
|
-
infoIconColor: string;
|
|
5467
|
-
successIconColor: string;
|
|
5468
|
-
warningIconColor: string;
|
|
5206
|
+
errorBackgroundColor: string;
|
|
5469
5207
|
errorIconColor: string;
|
|
5208
|
+
fontColor: string;
|
|
5209
|
+
fontFamily: string;
|
|
5210
|
+
fontSize: string;
|
|
5211
|
+
fontStyle: string;
|
|
5212
|
+
fontWeight: string;
|
|
5213
|
+
iconSize: string;
|
|
5470
5214
|
infoBackgroundColor: string;
|
|
5215
|
+
infoIconColor: string;
|
|
5216
|
+
modalBackgroundColor: string;
|
|
5217
|
+
modalTitleFontSize: string;
|
|
5218
|
+
modalTitleFontWeight: string;
|
|
5219
|
+
overlayColor: string;
|
|
5471
5220
|
successBackgroundColor: string;
|
|
5221
|
+
successIconColor: string;
|
|
5472
5222
|
warningBackgroundColor: string;
|
|
5473
|
-
|
|
5474
|
-
hoverActionBackgroundColor: string;
|
|
5475
|
-
activeActionBackgroundColor: string;
|
|
5476
|
-
focusActionBorderColor: string;
|
|
5477
|
-
overlayColor: string;
|
|
5223
|
+
warningIconColor: string;
|
|
5478
5224
|
};
|
|
5479
5225
|
bulletedList: {
|
|
5480
5226
|
fontColor: string;
|
|
@@ -6696,16 +6442,16 @@ declare const HalstackContext: react.Context<DeepPartial<{
|
|
|
6696
6442
|
separatorColor: string;
|
|
6697
6443
|
focusColor: string;
|
|
6698
6444
|
};
|
|
6699
|
-
}
|
|
6700
|
-
declare const HalstackLanguageContext: react.Context<
|
|
6445
|
+
}>;
|
|
6446
|
+
declare const HalstackLanguageContext: react.Context<{
|
|
6701
6447
|
applicationLayout: {
|
|
6702
6448
|
visibilityToggleTitle: string;
|
|
6703
6449
|
};
|
|
6704
6450
|
alert: {
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6451
|
+
previousMessageActionTitle: string;
|
|
6452
|
+
nextMessageActionTitle: string;
|
|
6453
|
+
closeAlertActionTitle: string;
|
|
6454
|
+
closeMessageActionTitle: string;
|
|
6709
6455
|
};
|
|
6710
6456
|
calendar: {
|
|
6711
6457
|
daysShort: string[];
|
|
@@ -6783,20 +6529,21 @@ declare const HalstackLanguageContext: react.Context<DeepPartial<{
|
|
|
6783
6529
|
toast: {
|
|
6784
6530
|
clearToastActionTitle: string;
|
|
6785
6531
|
};
|
|
6786
|
-
}
|
|
6787
|
-
/**
|
|
6788
|
-
* This type is used to allow partial themes and labels objects to be passed to the HalstackProvider.
|
|
6789
|
-
* This is an extension of the already existing Partial type, which only allows one level of partiality.
|
|
6790
|
-
*/
|
|
6791
|
-
type DeepPartial<T> = {
|
|
6792
|
-
[P in keyof T]?: Partial<T[P]>;
|
|
6793
|
-
};
|
|
6532
|
+
}>;
|
|
6794
6533
|
type HalstackProviderPropsType = {
|
|
6795
6534
|
theme?: DeepPartial<OpinionatedTheme>;
|
|
6796
6535
|
advancedTheme?: DeepPartial<AdvancedTheme>;
|
|
6797
6536
|
labels?: DeepPartial<TranslatedLabels>;
|
|
6798
|
-
children:
|
|
6537
|
+
children: ReactNode;
|
|
6799
6538
|
};
|
|
6800
6539
|
declare const HalstackProvider: ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType) => JSX.Element;
|
|
6801
6540
|
|
|
6541
|
+
declare const useToast: () => {
|
|
6542
|
+
default: (toast: DefaultToast) => (() => void) | undefined;
|
|
6543
|
+
success: (toast: SemanticToast) => (() => void) | undefined;
|
|
6544
|
+
warning: (toast: SemanticToast) => (() => void) | undefined;
|
|
6545
|
+
info: (toast: SemanticToast) => (() => void) | undefined;
|
|
6546
|
+
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
6547
|
+
};
|
|
6548
|
+
|
|
6802
6549
|
export { DxcAccordion, DxcAccordionGroup, DxcAlert, DxcApplicationLayout, DxcBadge, Bleed as DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, Inset as DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTag, DxcTextInput, DxcTextarea, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackContext, HalstackLanguageContext, HalstackProvider, useToast };
|