@dxc-technology/halstack-react 0.0.0-80ba3b0 → 0.0.0-812e8c2
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 +1285 -724
- package/dist/index.d.ts +1285 -724
- package/dist/index.js +6431 -3589
- package/dist/index.mjs +6276 -3436
- package/package.json +20 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ReactNode,
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import react__default, { ReactElement, ReactNode, JSX, Ref, ReactEventHandler } from 'react';
|
|
4
3
|
import { SortColumn } from 'react-data-grid';
|
|
5
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
5
|
import * as _emotion_react from '@emotion/react';
|
|
7
6
|
|
|
8
|
-
type Space
|
|
7
|
+
type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
9
8
|
type Margin = {
|
|
10
|
-
top?: Space
|
|
11
|
-
bottom?: Space
|
|
12
|
-
left?: Space
|
|
13
|
-
right?: Space
|
|
9
|
+
top?: Space;
|
|
10
|
+
bottom?: Space;
|
|
11
|
+
left?: Space;
|
|
12
|
+
right?: Space;
|
|
14
13
|
};
|
|
15
|
-
type SVG = ReactNode & SVGProps<SVGSVGElement>;
|
|
14
|
+
type SVG = react__default.ReactNode & react__default.SVGProps<SVGSVGElement>;
|
|
15
|
+
type Size$1 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
16
|
+
type Shape = "circle" | "square";
|
|
17
|
+
type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
|
|
18
|
+
type Mode = "default" | "info" | "success" | "warning" | "error";
|
|
19
|
+
type Action$1 = {
|
|
20
|
+
/**
|
|
21
|
+
* This function will be called when the user clicks the action.
|
|
22
|
+
*/
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Icon to be placed in the action..
|
|
26
|
+
*/
|
|
27
|
+
icon: string | SVG;
|
|
28
|
+
/**
|
|
29
|
+
* Text representing advisory information related
|
|
30
|
+
* to the button's action. Under the hood, this prop also serves
|
|
31
|
+
* as an accessible label for the component.
|
|
32
|
+
*/
|
|
33
|
+
title?: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Utility type to make complex types more readable in TypeScript.
|
|
37
|
+
*/
|
|
38
|
+
type PrettifyTypes<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
16
41
|
|
|
17
42
|
type AccordionItemProps = {
|
|
18
43
|
/**
|
|
@@ -64,7 +89,7 @@ type CommonProps$a = {
|
|
|
64
89
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
65
90
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
66
91
|
*/
|
|
67
|
-
margin?: Space
|
|
92
|
+
margin?: Space | Margin;
|
|
68
93
|
/**
|
|
69
94
|
* Contains one or more accordion items.
|
|
70
95
|
*/
|
|
@@ -112,14 +137,14 @@ type NonIndependentProps = CommonProps$a & {
|
|
|
112
137
|
*/
|
|
113
138
|
onActiveChange?: (index: number[]) => void;
|
|
114
139
|
};
|
|
115
|
-
type
|
|
140
|
+
type AccordionProps = PrettifyTypes<IndependentProps | NonIndependentProps>;
|
|
116
141
|
|
|
117
142
|
declare const DxcAccordion: {
|
|
118
|
-
(props:
|
|
143
|
+
(props: AccordionProps): JSX.Element;
|
|
119
144
|
AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
|
|
120
145
|
};
|
|
121
146
|
|
|
122
|
-
type
|
|
147
|
+
type AlertAction = {
|
|
123
148
|
/**
|
|
124
149
|
* The icon of the action. It can be a string with the name of the icon or an SVG component.
|
|
125
150
|
*/
|
|
@@ -133,7 +158,7 @@ type Action$2 = {
|
|
|
133
158
|
*/
|
|
134
159
|
onClick: () => void;
|
|
135
160
|
};
|
|
136
|
-
type
|
|
161
|
+
type AlertMessage = {
|
|
137
162
|
/**
|
|
138
163
|
* The function that will be executed when the user clicks on the close action button.
|
|
139
164
|
*/
|
|
@@ -155,11 +180,11 @@ type CommonProps$9 = {
|
|
|
155
180
|
/**
|
|
156
181
|
* Primary action of the alert.
|
|
157
182
|
*/
|
|
158
|
-
primaryAction?:
|
|
183
|
+
primaryAction?: AlertAction;
|
|
159
184
|
/**
|
|
160
185
|
* Secondary action of the alert.
|
|
161
186
|
*/
|
|
162
|
-
secondaryAction?:
|
|
187
|
+
secondaryAction?: AlertAction;
|
|
163
188
|
/**
|
|
164
189
|
* Specifies the semantic meaning of the alert.
|
|
165
190
|
*/
|
|
@@ -178,7 +203,7 @@ type ModeSpecificProps = {
|
|
|
178
203
|
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
179
204
|
* of the alert relies completely on the user.
|
|
180
205
|
*/
|
|
181
|
-
message?:
|
|
206
|
+
message?: AlertMessage | AlertMessage[];
|
|
182
207
|
/**
|
|
183
208
|
* The mode of the alert.
|
|
184
209
|
*/
|
|
@@ -192,241 +217,23 @@ type ModeSpecificProps = {
|
|
|
192
217
|
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
193
218
|
* of the alert relies completely on the user.
|
|
194
219
|
*/
|
|
195
|
-
message: Required<
|
|
220
|
+
message: Required<AlertMessage>;
|
|
196
221
|
/**
|
|
197
222
|
* The mode of the alert.
|
|
198
223
|
*/
|
|
199
224
|
mode: "modal";
|
|
200
225
|
};
|
|
201
|
-
type
|
|
202
|
-
|
|
203
|
-
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$L) => react_jsx_runtime.JSX.Element;
|
|
226
|
+
type AlertProps = PrettifyTypes<CommonProps$9 & ModeSpecificProps>;
|
|
204
227
|
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* If true, the search bar input will be focused when rendered.
|
|
208
|
-
*/
|
|
209
|
-
autoFocus?: boolean;
|
|
210
|
-
/**
|
|
211
|
-
* If true, the component will be disabled.
|
|
212
|
-
*/
|
|
213
|
-
disabled?: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* Function invoked when the search bar loses focus.
|
|
216
|
-
*/
|
|
217
|
-
onBlur?: (value: string) => void;
|
|
218
|
-
/**
|
|
219
|
-
* Function invoked when the user cancels the search.
|
|
220
|
-
*/
|
|
221
|
-
onCancel?: () => void;
|
|
222
|
-
/**
|
|
223
|
-
* Function invoked when the user changes the input value.
|
|
224
|
-
*/
|
|
225
|
-
onChange?: (value: string) => void;
|
|
226
|
-
/**
|
|
227
|
-
* Function invoked when the Enter key is pressed.
|
|
228
|
-
*/
|
|
229
|
-
onEnter?: (value: string) => void;
|
|
230
|
-
/**
|
|
231
|
-
* Placeholder text displayed in the search bar input field.
|
|
232
|
-
*/
|
|
233
|
-
placeholder?: string;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
type CommonItemProps = {
|
|
237
|
-
badge?: ReactElement;
|
|
238
|
-
icon?: string | SVG;
|
|
239
|
-
label: string;
|
|
240
|
-
};
|
|
241
|
-
type Item$1 = CommonItemProps & {
|
|
242
|
-
onSelect?: () => void;
|
|
243
|
-
selected?: boolean;
|
|
244
|
-
href?: string;
|
|
245
|
-
renderItem?: (props: {
|
|
246
|
-
children: ReactNode;
|
|
247
|
-
}) => ReactNode;
|
|
248
|
-
};
|
|
249
|
-
type GroupItem$1 = CommonItemProps & {
|
|
250
|
-
items: (Item$1 | GroupItem$1)[];
|
|
251
|
-
defaultOpen?: boolean;
|
|
252
|
-
};
|
|
253
|
-
type Section$1 = {
|
|
254
|
-
items: (Item$1 | GroupItem$1)[];
|
|
255
|
-
title?: string;
|
|
256
|
-
};
|
|
257
|
-
type Props$K = {
|
|
258
|
-
/**
|
|
259
|
-
* Array of items to be displayed in the menu.
|
|
260
|
-
* Each item can be a single/simple item, a group item or a section.
|
|
261
|
-
*/
|
|
262
|
-
items: (Item$1 | GroupItem$1)[] | Section$1[];
|
|
263
|
-
/**
|
|
264
|
-
* If true the menu will be displayed with a border.
|
|
265
|
-
*/
|
|
266
|
-
displayBorder?: boolean;
|
|
267
|
-
/**
|
|
268
|
-
* If true the menu will have lines marking the groups.
|
|
269
|
-
*/
|
|
270
|
-
displayGroupLines?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* If true the menu will have controls at the end.
|
|
273
|
-
*/
|
|
274
|
-
displayControlsAfter?: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* If true the menu will be icons only and display a popover on click.
|
|
277
|
-
*/
|
|
278
|
-
hasPopOver?: boolean;
|
|
279
|
-
/**
|
|
280
|
-
* If true the menu will be displayed horizontally.
|
|
281
|
-
*/
|
|
282
|
-
isHorizontal?: boolean;
|
|
283
|
-
/**
|
|
284
|
-
* Function that will be called when an option is clicked.
|
|
285
|
-
* This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
|
|
286
|
-
*/
|
|
287
|
-
onSelectItem?: () => void;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
type Section = {
|
|
291
|
-
items: (Item$1 | GroupItem$1)[];
|
|
292
|
-
title?: string;
|
|
293
|
-
};
|
|
294
|
-
type SearchbarSidenavProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
|
|
295
|
-
type Props$J = {
|
|
296
|
-
/**
|
|
297
|
-
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
298
|
-
*/
|
|
299
|
-
bottomContent?: ReactNode;
|
|
300
|
-
/**
|
|
301
|
-
* Object with the properties of the branding placed at the top of the sidenav.
|
|
302
|
-
*/
|
|
303
|
-
appTitle?: string | ReactNode;
|
|
304
|
-
/**
|
|
305
|
-
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
306
|
-
*/
|
|
307
|
-
defaultExpanded?: boolean;
|
|
308
|
-
/**
|
|
309
|
-
* If true the nav menu will have lines marking the groups.
|
|
310
|
-
*/
|
|
311
|
-
displayGroupLines?: boolean;
|
|
312
|
-
/**
|
|
313
|
-
* If true, the sidenav is expanded.
|
|
314
|
-
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
315
|
-
*/
|
|
316
|
-
expanded?: boolean;
|
|
317
|
-
/**
|
|
318
|
-
* Array of items to be displayed in the navigation menu.
|
|
319
|
-
* Each item can be a single/simple item, a group item or a section.
|
|
320
|
-
*/
|
|
321
|
-
navItems?: (Item$1 | GroupItem$1)[] | Section[];
|
|
322
|
-
/**
|
|
323
|
-
* Function called when the expansion state of the sidenav changes.
|
|
324
|
-
*/
|
|
325
|
-
onExpandedChange?: (value: boolean) => void;
|
|
326
|
-
/**
|
|
327
|
-
* When provided, a search bar will be rendered at the top of the sidenav.
|
|
328
|
-
*/
|
|
329
|
-
searchBar?: SearchbarSidenavProps;
|
|
330
|
-
/**
|
|
331
|
-
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
332
|
-
*/
|
|
333
|
-
topContent?: ReactNode;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
type GroupItem = CommonItemProps & {
|
|
337
|
-
items: Item$1[];
|
|
338
|
-
};
|
|
339
|
-
type MainNavPropsType = (GroupItem | Item$1)[];
|
|
340
|
-
type SearchBarHeaderProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
|
|
341
|
-
type Props$I = {
|
|
342
|
-
appTitle?: string;
|
|
343
|
-
navItems?: MainNavPropsType;
|
|
344
|
-
responsiveBottomContent?: ReactNode;
|
|
345
|
-
searchBar?: SearchBarHeaderProps;
|
|
346
|
-
sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
type SocialLink = {
|
|
350
|
-
/**
|
|
351
|
-
* URL of the page the link goes to.
|
|
352
|
-
*/
|
|
353
|
-
href: string;
|
|
354
|
-
/**
|
|
355
|
-
* Material Symbol name or SVG element as the icon used for the link.
|
|
356
|
-
*/
|
|
357
|
-
logo: string | SVG;
|
|
358
|
-
/**
|
|
359
|
-
* Value for the HTML properties title and aria-label.
|
|
360
|
-
*/
|
|
361
|
-
title: string;
|
|
362
|
-
};
|
|
363
|
-
type BottomLink = {
|
|
364
|
-
/**
|
|
365
|
-
* URL of the page the link goes to.
|
|
366
|
-
*/
|
|
367
|
-
href: string;
|
|
368
|
-
/**
|
|
369
|
-
* Text for the link.
|
|
370
|
-
*/
|
|
371
|
-
text: string;
|
|
372
|
-
};
|
|
373
|
-
type Logo = {
|
|
374
|
-
/**
|
|
375
|
-
* Source of the logo image.
|
|
376
|
-
*/
|
|
377
|
-
src: string | SVG;
|
|
378
|
-
/**
|
|
379
|
-
* Alternative text for the logo image.
|
|
380
|
-
*/
|
|
381
|
-
alt: string;
|
|
382
|
-
};
|
|
383
|
-
type FooterPropsType = {
|
|
384
|
-
/**
|
|
385
|
-
* An array of objects representing the links that will be rendered at
|
|
386
|
-
* the bottom part of the footer.
|
|
387
|
-
*/
|
|
388
|
-
bottomLinks?: BottomLink[];
|
|
389
|
-
/**
|
|
390
|
-
* The text that will be displayed as copyright disclaimer.
|
|
391
|
-
*/
|
|
392
|
-
copyright?: string;
|
|
393
|
-
/**
|
|
394
|
-
* Content to be displayed on the left side of the footer under the logo.
|
|
395
|
-
*/
|
|
396
|
-
leftContent?: ReactNode;
|
|
397
|
-
/**
|
|
398
|
-
* Logo to be displayed inside the footer
|
|
399
|
-
*/
|
|
400
|
-
logo?: Logo;
|
|
401
|
-
/**
|
|
402
|
-
* Determines the visual style and layout
|
|
403
|
-
* - "default": The default mode with full content and styling.
|
|
404
|
-
* - "reduced": A reduced mode with minimal content and styling.
|
|
405
|
-
*/
|
|
406
|
-
mode?: "default" | "reduced";
|
|
407
|
-
/**
|
|
408
|
-
* Content to be displayed on the right side of the footer before the socialLinks if provided.
|
|
409
|
-
*/
|
|
410
|
-
rightContent?: ReactNode;
|
|
411
|
-
/**
|
|
412
|
-
* An array of objects representing the links that will be rendered as
|
|
413
|
-
* icons at the top-right side of the footer.
|
|
414
|
-
*/
|
|
415
|
-
socialLinks?: SocialLink[];
|
|
416
|
-
/**
|
|
417
|
-
* Value of the tabindex for all interactive elements, except those
|
|
418
|
-
* inside the leftContent and rightContent.
|
|
419
|
-
*/
|
|
420
|
-
tabIndex?: number;
|
|
421
|
-
};
|
|
228
|
+
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: AlertProps) => react.JSX.Element;
|
|
422
229
|
|
|
423
|
-
type
|
|
230
|
+
type AppLayoutMainProps = {
|
|
424
231
|
/**
|
|
425
232
|
* Everything between the tags will be displayed as the content of the main part of the application.
|
|
426
233
|
*/
|
|
427
234
|
children: ReactNode;
|
|
428
235
|
};
|
|
429
|
-
type
|
|
236
|
+
type AppLayoutLogo = {
|
|
430
237
|
/**
|
|
431
238
|
* Alternative text for the logo image.
|
|
432
239
|
*/
|
|
@@ -444,11 +251,21 @@ type LogoPropsType = {
|
|
|
444
251
|
*/
|
|
445
252
|
src: string | SVG;
|
|
446
253
|
};
|
|
447
|
-
type
|
|
254
|
+
type AppLayoutSidenavProps = {
|
|
255
|
+
/**
|
|
256
|
+
* The area inside the sidenav. This area can be used to render the content inside the sidenav.
|
|
257
|
+
*/
|
|
258
|
+
children: ReactNode;
|
|
259
|
+
/**
|
|
260
|
+
* The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
|
|
261
|
+
*/
|
|
262
|
+
title?: ReactNode;
|
|
263
|
+
};
|
|
264
|
+
type ApplicationLayoutProps = {
|
|
448
265
|
/**
|
|
449
266
|
* Logo properties.
|
|
450
267
|
*/
|
|
451
|
-
logo?:
|
|
268
|
+
logo?: AppLayoutLogo;
|
|
452
269
|
/**
|
|
453
270
|
* Header content.
|
|
454
271
|
*/
|
|
@@ -464,25 +281,22 @@ type ApplicationLayoutPropsType = {
|
|
|
464
281
|
/**
|
|
465
282
|
* Use the DxcApplicationLayout.Main provided to render main content.
|
|
466
283
|
*/
|
|
467
|
-
children: ReactElement<
|
|
284
|
+
children: ReactElement<AppLayoutMainProps>;
|
|
468
285
|
};
|
|
469
286
|
|
|
470
287
|
declare const DxcApplicationLayout: {
|
|
471
|
-
({ logo, header, sidenav, footer, children }:
|
|
472
|
-
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }:
|
|
473
|
-
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }:
|
|
474
|
-
Main: ({ children }:
|
|
475
|
-
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }:
|
|
288
|
+
({ logo, header, sidenav, footer, children }: ApplicationLayoutProps): JSX.Element;
|
|
289
|
+
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, variant, tabIndex, }: FooterProps) => JSX.Element;
|
|
290
|
+
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: HeaderProps) => JSX.Element;
|
|
291
|
+
Main: ({ children }: AppLayoutMainProps) => JSX.Element;
|
|
292
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: SidenavProps) => JSX.Element;
|
|
476
293
|
};
|
|
477
294
|
|
|
478
|
-
type
|
|
479
|
-
|
|
480
|
-
type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
|
|
481
|
-
interface Status {
|
|
482
|
-
mode: "default" | "info" | "success" | "warning" | "error";
|
|
295
|
+
type AvatarStatus = {
|
|
296
|
+
mode: Mode;
|
|
483
297
|
position: "top" | "bottom";
|
|
484
|
-
}
|
|
485
|
-
type
|
|
298
|
+
};
|
|
299
|
+
type AvatarProps = {
|
|
486
300
|
/**
|
|
487
301
|
* Affects the visual style of the avatar. It can be used following semantic purposes or not.
|
|
488
302
|
*/
|
|
@@ -516,6 +330,10 @@ type Props$H = {
|
|
|
516
330
|
* Text to be displayed as label next to the avatar.
|
|
517
331
|
*/
|
|
518
332
|
primaryText?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Ref to the avatar container element.
|
|
335
|
+
*/
|
|
336
|
+
ref?: Ref<HTMLDivElement>;
|
|
519
337
|
/**
|
|
520
338
|
* Text to be displayed as sublabel next to the avatar.
|
|
521
339
|
*/
|
|
@@ -527,12 +345,12 @@ type Props$H = {
|
|
|
527
345
|
/**
|
|
528
346
|
* Size of the component.
|
|
529
347
|
*/
|
|
530
|
-
size?: Size$
|
|
348
|
+
size?: Size$1;
|
|
531
349
|
/**
|
|
532
350
|
* Defines the color of the status indicator displayed on the avatar and where it will be placed.
|
|
533
351
|
* If not provided, no indicator will be rendered.
|
|
534
352
|
*/
|
|
535
|
-
status?:
|
|
353
|
+
status?: AvatarStatus;
|
|
536
354
|
/**
|
|
537
355
|
* Value of the tabindex attribute. It will only apply when the onClick property is passed.
|
|
538
356
|
*/
|
|
@@ -543,9 +361,27 @@ type Props$H = {
|
|
|
543
361
|
title?: string;
|
|
544
362
|
};
|
|
545
363
|
|
|
546
|
-
declare const DxcAvatar:
|
|
364
|
+
declare const DxcAvatar: ({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, ref, secondaryText, shape, size, status, tabIndex, title, }: AvatarProps) => react.JSX.Element;
|
|
547
365
|
|
|
548
|
-
type
|
|
366
|
+
type CommonProps$8 = {
|
|
367
|
+
/**
|
|
368
|
+
* Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
|
|
369
|
+
*/
|
|
370
|
+
title?: string;
|
|
371
|
+
/**
|
|
372
|
+
* Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
|
|
373
|
+
*/
|
|
374
|
+
icon?: string | SVG;
|
|
375
|
+
/**
|
|
376
|
+
* Ref to be forwarded to the badge container element.
|
|
377
|
+
*/
|
|
378
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
379
|
+
/**
|
|
380
|
+
* Size of the component.
|
|
381
|
+
*/
|
|
382
|
+
size?: "small" | "medium" | "large";
|
|
383
|
+
};
|
|
384
|
+
type ContextualBadgeProps = CommonProps$8 & {
|
|
549
385
|
/**
|
|
550
386
|
* Text to be placed in the badge.
|
|
551
387
|
*/
|
|
@@ -561,9 +397,9 @@ type ContextualProps = {
|
|
|
561
397
|
/**
|
|
562
398
|
* Affects the visual style of the badge. It can be used following semantic purposes or not.
|
|
563
399
|
*/
|
|
564
|
-
color?:
|
|
400
|
+
color?: Color;
|
|
565
401
|
};
|
|
566
|
-
type
|
|
402
|
+
type NotificationBadgeProps = CommonProps$8 & {
|
|
567
403
|
/**
|
|
568
404
|
* Text to be placed in the badge.
|
|
569
405
|
*/
|
|
@@ -581,25 +417,11 @@ type NotificationProps = {
|
|
|
581
417
|
*/
|
|
582
418
|
color?: never;
|
|
583
419
|
};
|
|
584
|
-
type
|
|
585
|
-
/**
|
|
586
|
-
* Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
|
|
587
|
-
*/
|
|
588
|
-
title?: string;
|
|
589
|
-
/**
|
|
590
|
-
* Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
|
|
591
|
-
*/
|
|
592
|
-
icon?: string | SVG;
|
|
593
|
-
/**
|
|
594
|
-
* Size of the component.
|
|
595
|
-
*/
|
|
596
|
-
size?: "small" | "medium" | "large";
|
|
597
|
-
};
|
|
598
|
-
type Props$G = (ContextualProps | NotificationProps) & CommonProps$8;
|
|
420
|
+
type BadgeProps = PrettifyTypes<ContextualBadgeProps> | PrettifyTypes<NotificationBadgeProps>;
|
|
599
421
|
|
|
600
|
-
declare const DxcBadge:
|
|
422
|
+
declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, ref, size, }: BadgeProps) => react.JSX.Element;
|
|
601
423
|
|
|
602
|
-
type
|
|
424
|
+
type BleedProps = {
|
|
603
425
|
/**
|
|
604
426
|
* Applies the spacing scale to all sides.
|
|
605
427
|
*/
|
|
@@ -634,13 +456,13 @@ type Props$F = {
|
|
|
634
456
|
children: ReactNode;
|
|
635
457
|
};
|
|
636
458
|
|
|
637
|
-
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }:
|
|
459
|
+
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: BleedProps) => react.JSX.Element;
|
|
638
460
|
|
|
639
|
-
type
|
|
461
|
+
type BreadcrumbsItem = {
|
|
640
462
|
href?: string;
|
|
641
463
|
label: string;
|
|
642
464
|
};
|
|
643
|
-
type
|
|
465
|
+
type BreadcrumbsProps = {
|
|
644
466
|
/**
|
|
645
467
|
* Provides a label that describes the type of navigation enabled by
|
|
646
468
|
* the component.
|
|
@@ -649,7 +471,7 @@ type Props$E = {
|
|
|
649
471
|
/**
|
|
650
472
|
* Array of objects representing the items of the breadcrumbs.
|
|
651
473
|
*/
|
|
652
|
-
items:
|
|
474
|
+
items: BreadcrumbsItem[];
|
|
653
475
|
/**
|
|
654
476
|
* Number of items before showing a collapsed version of the
|
|
655
477
|
* breadcrumbs. It can't be lower than two (root/collapsed action and
|
|
@@ -671,10 +493,14 @@ type Props$E = {
|
|
|
671
493
|
*/
|
|
672
494
|
showRoot?: boolean;
|
|
673
495
|
};
|
|
496
|
+
type BreadcrumbsItemProps = PrettifyTypes<BreadcrumbsItem & {
|
|
497
|
+
isCurrentPage?: boolean;
|
|
498
|
+
onClick?: (href: string) => void;
|
|
499
|
+
}>;
|
|
674
500
|
|
|
675
|
-
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }:
|
|
501
|
+
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: BreadcrumbsProps) => react.JSX.Element;
|
|
676
502
|
|
|
677
|
-
type
|
|
503
|
+
type BulletedListIconProps = {
|
|
678
504
|
/**
|
|
679
505
|
* Defines the style of the bullet point in the list.
|
|
680
506
|
*/
|
|
@@ -688,7 +514,7 @@ type IconProps = {
|
|
|
688
514
|
*/
|
|
689
515
|
children: ReactNode;
|
|
690
516
|
};
|
|
691
|
-
type
|
|
517
|
+
type BulletedListWithoutIconProps = {
|
|
692
518
|
/**
|
|
693
519
|
* Defines the style of the bullet point in the list.
|
|
694
520
|
*/
|
|
@@ -702,8 +528,8 @@ type OtherProps = {
|
|
|
702
528
|
*/
|
|
703
529
|
children: ReactNode;
|
|
704
530
|
};
|
|
705
|
-
type
|
|
706
|
-
type
|
|
531
|
+
type BulletedListProps = PrettifyTypes<BulletedListIconProps | BulletedListWithoutIconProps>;
|
|
532
|
+
type BulletedListItemProps = {
|
|
707
533
|
/**
|
|
708
534
|
* Text to be shown in the list.
|
|
709
535
|
*/
|
|
@@ -711,74 +537,78 @@ type BulletedListItemPropsType = {
|
|
|
711
537
|
};
|
|
712
538
|
|
|
713
539
|
declare const DxcBulletedList: {
|
|
714
|
-
({ children, type, icon }:
|
|
715
|
-
Item: ({ children }:
|
|
540
|
+
({ children, type, icon }: BulletedListProps): JSX.Element;
|
|
541
|
+
Item: ({ children }: BulletedListItemProps) => JSX.Element;
|
|
716
542
|
};
|
|
717
543
|
|
|
718
|
-
type
|
|
719
|
-
type
|
|
720
|
-
type
|
|
544
|
+
type ButtonSemantic = "default" | "error" | "warning" | "success" | "info";
|
|
545
|
+
type ButtonMode = "primary" | "secondary" | "tertiary";
|
|
546
|
+
type ButtonSize = {
|
|
721
547
|
/**
|
|
722
548
|
* Height of the button.
|
|
723
549
|
*/
|
|
724
550
|
height?: "small" | "medium" | "large";
|
|
725
551
|
width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
726
552
|
};
|
|
727
|
-
type
|
|
728
|
-
/**
|
|
729
|
-
* Text to be placed in the button.
|
|
730
|
-
*/
|
|
731
|
-
label?: string;
|
|
732
|
-
/**
|
|
733
|
-
* The available button modes.
|
|
734
|
-
*/
|
|
735
|
-
mode?: Mode$1;
|
|
736
|
-
/**
|
|
737
|
-
* Specifies the semantic meaning of the buttons, which determines its color.
|
|
738
|
-
*/
|
|
739
|
-
semantic?: Semantic;
|
|
553
|
+
type ButtonProps = {
|
|
740
554
|
/**
|
|
741
555
|
* If true, the component will be disabled.
|
|
742
556
|
*/
|
|
743
557
|
disabled?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
560
|
+
*/
|
|
561
|
+
icon?: string | SVG;
|
|
744
562
|
/**
|
|
745
563
|
* Whether the icon should appear after or before the label.
|
|
746
564
|
*/
|
|
747
565
|
iconPosition?: "before" | "after";
|
|
748
566
|
/**
|
|
749
|
-
*
|
|
567
|
+
* Text to be placed in the button.
|
|
750
568
|
*/
|
|
751
|
-
|
|
569
|
+
label?: string;
|
|
752
570
|
/**
|
|
753
|
-
* '
|
|
571
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
572
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
754
573
|
*/
|
|
755
|
-
|
|
574
|
+
margin?: Space | Margin;
|
|
756
575
|
/**
|
|
757
|
-
*
|
|
576
|
+
* The available button modes.
|
|
758
577
|
*/
|
|
759
|
-
|
|
578
|
+
mode?: ButtonMode;
|
|
760
579
|
/**
|
|
761
580
|
* This function will be called when the user clicks the button.
|
|
762
581
|
*/
|
|
763
582
|
onClick?: () => void;
|
|
764
583
|
/**
|
|
765
|
-
*
|
|
766
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
584
|
+
* ref to the button element.
|
|
767
585
|
*/
|
|
768
|
-
|
|
586
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
587
|
+
/**
|
|
588
|
+
* Specifies the semantic meaning of the buttons, which determines its color.
|
|
589
|
+
*/
|
|
590
|
+
semantic?: ButtonSemantic;
|
|
769
591
|
/**
|
|
770
592
|
* Size of the component.
|
|
771
593
|
*/
|
|
772
|
-
size?:
|
|
594
|
+
size?: ButtonSize;
|
|
773
595
|
/**
|
|
774
596
|
* Value of the tabindex attribute.
|
|
775
597
|
*/
|
|
776
598
|
tabIndex?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Value for the HTML properties title and aria-label.
|
|
601
|
+
*/
|
|
602
|
+
title?: string;
|
|
603
|
+
/**
|
|
604
|
+
* 'type' html prop of the button.
|
|
605
|
+
*/
|
|
606
|
+
type?: "button" | "reset" | "submit";
|
|
777
607
|
};
|
|
778
608
|
|
|
779
|
-
declare const DxcButton:
|
|
609
|
+
declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, ref, semantic, size, tabIndex, title, type, }: ButtonProps) => react.JSX.Element;
|
|
780
610
|
|
|
781
|
-
type
|
|
611
|
+
type ImageProps = {
|
|
782
612
|
/**
|
|
783
613
|
* Alternative text description displayed when the specified image is not loaded.
|
|
784
614
|
*
|
|
@@ -844,11 +674,11 @@ type Props$B = {
|
|
|
844
674
|
width?: string;
|
|
845
675
|
};
|
|
846
676
|
|
|
847
|
-
type Size
|
|
677
|
+
type Size = {
|
|
848
678
|
width?: "fillParent" | "fitContent";
|
|
849
679
|
height?: "fillParent" | "fitContent";
|
|
850
680
|
};
|
|
851
|
-
type
|
|
681
|
+
type CardProps = {
|
|
852
682
|
/**
|
|
853
683
|
* Custom content that will be placed inside the component.
|
|
854
684
|
*/
|
|
@@ -877,7 +707,7 @@ type Props$A = {
|
|
|
877
707
|
/**
|
|
878
708
|
* Image to be displayed inside the card.
|
|
879
709
|
*/
|
|
880
|
-
image?:
|
|
710
|
+
image?: ImageProps;
|
|
881
711
|
/**
|
|
882
712
|
* Position of the image inside the card. It can be set to "before" or "after" the content.
|
|
883
713
|
*/
|
|
@@ -915,6 +745,10 @@ type Props$A = {
|
|
|
915
745
|
* Callback function that is called when the card is clicked.
|
|
916
746
|
*/
|
|
917
747
|
onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
748
|
+
/**
|
|
749
|
+
* Ref to the card element.
|
|
750
|
+
*/
|
|
751
|
+
ref?: React.Ref<HTMLDivElement | HTMLAnchorElement>;
|
|
918
752
|
/**
|
|
919
753
|
* If true, the card can be selected. When the card is clicked, the onSelectionChange callback will be called with the new selected state of the card.
|
|
920
754
|
* If href is defined, the card won't be selectable, even if this prop is true.
|
|
@@ -928,7 +762,7 @@ type Props$A = {
|
|
|
928
762
|
* Defines the size of the card. Width and height can be set to "fillParent" or "fitContent".
|
|
929
763
|
* The default value is { width: "fitContent", height: "fitContent" }.
|
|
930
764
|
*/
|
|
931
|
-
size?: Size
|
|
765
|
+
size?: Size;
|
|
932
766
|
/**
|
|
933
767
|
* Specifies the tab index of the card.
|
|
934
768
|
* The default value is 0.
|
|
@@ -936,9 +770,13 @@ type Props$A = {
|
|
|
936
770
|
tabIndex?: number;
|
|
937
771
|
};
|
|
938
772
|
|
|
939
|
-
declare const DxcCard:
|
|
773
|
+
declare const DxcCard: ({ children, defaultSelected, direction, emptySize, href, imagePosition, image, isEmpty, isLoading, loadingSize, mode, newWindow, onSelectionChange, onClick, ref, selectable, selected, size, tabIndex, }: CardProps) => react.JSX.Element;
|
|
940
774
|
|
|
941
|
-
|
|
775
|
+
/**
|
|
776
|
+
* Reference to the component.
|
|
777
|
+
*/
|
|
778
|
+
type RefType$a = HTMLDivElement;
|
|
779
|
+
type CheckboxProps = {
|
|
942
780
|
/**
|
|
943
781
|
* Specifies a string to be used as the name for the checkbox element when no `label` is provided.
|
|
944
782
|
*/
|
|
@@ -970,7 +808,7 @@ type Props$z = {
|
|
|
970
808
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties
|
|
971
809
|
* in order to specify different margin sizes.
|
|
972
810
|
*/
|
|
973
|
-
margin?: Space
|
|
811
|
+
margin?: Space | Margin;
|
|
974
812
|
/**
|
|
975
813
|
* Name attribute of the input element.
|
|
976
814
|
*/
|
|
@@ -988,6 +826,10 @@ type Props$z = {
|
|
|
988
826
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
989
827
|
*/
|
|
990
828
|
readOnly?: boolean;
|
|
829
|
+
/**
|
|
830
|
+
* ref to the checkbox container element.
|
|
831
|
+
*/
|
|
832
|
+
ref?: React.Ref<RefType$a>;
|
|
991
833
|
/**
|
|
992
834
|
* Size of the component.
|
|
993
835
|
*/
|
|
@@ -1003,25 +845,32 @@ type Props$z = {
|
|
|
1003
845
|
value?: string;
|
|
1004
846
|
};
|
|
1005
847
|
|
|
1006
|
-
declare const DxcCheckbox:
|
|
848
|
+
declare const DxcCheckbox: {
|
|
849
|
+
({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, readOnly, ref, size, tabIndex, value, }: CheckboxProps): react.JSX.Element;
|
|
850
|
+
displayName: string;
|
|
851
|
+
};
|
|
1007
852
|
|
|
1008
853
|
type ChipAvatarType = {
|
|
1009
|
-
color:
|
|
1010
|
-
profileName?:
|
|
1011
|
-
imageSrc?:
|
|
1012
|
-
icon?:
|
|
854
|
+
color: AvatarProps["color"];
|
|
855
|
+
profileName?: AvatarProps["label"];
|
|
856
|
+
imageSrc?: AvatarProps["imageSrc"];
|
|
857
|
+
icon?: AvatarProps["icon"];
|
|
1013
858
|
};
|
|
1014
859
|
type CommonProps$7 = {
|
|
1015
860
|
/**
|
|
1016
861
|
* Function to be called when the chip is clicked or the dismiss action is triggered.
|
|
1017
862
|
*/
|
|
1018
863
|
onClick?: () => void;
|
|
864
|
+
/**
|
|
865
|
+
* Ref to the chip element.
|
|
866
|
+
*/
|
|
867
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1019
868
|
/**
|
|
1020
869
|
* Value of the tabindex attribute.
|
|
1021
870
|
*/
|
|
1022
871
|
tabIndex?: number;
|
|
1023
872
|
};
|
|
1024
|
-
type SelectableChipProps = CommonProps$7 & {
|
|
873
|
+
type SelectableChipProps = PrettifyTypes<CommonProps$7 & {
|
|
1025
874
|
/**
|
|
1026
875
|
* If true, the component will be disabled.
|
|
1027
876
|
*/
|
|
@@ -1059,8 +908,8 @@ type SelectableChipProps = CommonProps$7 & {
|
|
|
1059
908
|
* Text to be placed on the chip.
|
|
1060
909
|
*/
|
|
1061
910
|
label: string;
|
|
1062
|
-
})
|
|
1063
|
-
type DismissibleChipProps = CommonProps$7 & {
|
|
911
|
+
})>;
|
|
912
|
+
type DismissibleChipProps = PrettifyTypes<CommonProps$7 & {
|
|
1064
913
|
/**
|
|
1065
914
|
* Dismissible chip is used to represent information generated by user input within an interface.
|
|
1066
915
|
*/
|
|
@@ -1075,24 +924,18 @@ type DismissibleChipProps = CommonProps$7 & {
|
|
|
1075
924
|
prefix?: string | SVG | ChipAvatarType;
|
|
1076
925
|
selected?: never;
|
|
1077
926
|
disabled?: never;
|
|
1078
|
-
}
|
|
1079
|
-
type
|
|
927
|
+
}>;
|
|
928
|
+
type ChipProps = PrettifyTypes<SelectableChipProps | DismissibleChipProps>;
|
|
1080
929
|
|
|
1081
|
-
declare const DxcChip: react.
|
|
930
|
+
declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, ref, }: ChipProps) => react.JSX.Element | null;
|
|
1082
931
|
|
|
1083
|
-
type
|
|
932
|
+
type ContainerSpacing = {
|
|
1084
933
|
top?: string;
|
|
1085
934
|
right?: string;
|
|
1086
935
|
bottom?: string;
|
|
1087
936
|
left?: string;
|
|
1088
937
|
};
|
|
1089
|
-
type
|
|
1090
|
-
top?: string;
|
|
1091
|
-
right?: string;
|
|
1092
|
-
bottom?: string;
|
|
1093
|
-
left?: string;
|
|
1094
|
-
};
|
|
1095
|
-
type Background = {
|
|
938
|
+
type ContainerBackground = {
|
|
1096
939
|
attachment?: string;
|
|
1097
940
|
clip?: string;
|
|
1098
941
|
color?: string;
|
|
@@ -1102,36 +945,36 @@ type Background = {
|
|
|
1102
945
|
repeat?: string;
|
|
1103
946
|
size?: string;
|
|
1104
947
|
};
|
|
1105
|
-
type
|
|
948
|
+
type ContainerBorderProperties = {
|
|
1106
949
|
width?: string;
|
|
1107
950
|
style?: string;
|
|
1108
951
|
color?: string;
|
|
1109
952
|
};
|
|
1110
|
-
type
|
|
1111
|
-
top?:
|
|
1112
|
-
right?:
|
|
1113
|
-
bottom?:
|
|
1114
|
-
left?:
|
|
1115
|
-
}
|
|
1116
|
-
type
|
|
953
|
+
type ContainerBorder = PrettifyTypes<ContainerBorderProperties | {
|
|
954
|
+
top?: ContainerBorderProperties;
|
|
955
|
+
right?: ContainerBorderProperties;
|
|
956
|
+
bottom?: ContainerBorderProperties;
|
|
957
|
+
left?: ContainerBorderProperties;
|
|
958
|
+
}>;
|
|
959
|
+
type ContainerOutline = PrettifyTypes<ContainerBorderProperties & {
|
|
1117
960
|
offset?: string;
|
|
1118
|
-
}
|
|
961
|
+
}>;
|
|
1119
962
|
type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
|
|
1120
|
-
type
|
|
963
|
+
type ContainerOverflow = PrettifyTypes<OverflowValues | {
|
|
1121
964
|
x?: OverflowValues;
|
|
1122
965
|
y?: OverflowValues;
|
|
1123
|
-
}
|
|
1124
|
-
type
|
|
966
|
+
}>;
|
|
967
|
+
type ContainerProps = {
|
|
1125
968
|
/**
|
|
1126
969
|
* Based on the CSS property background allows configuring all properties related to the background of a container.
|
|
1127
970
|
*
|
|
1128
971
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
|
|
1129
972
|
*/
|
|
1130
|
-
background?:
|
|
973
|
+
background?: ContainerBackground;
|
|
1131
974
|
/**
|
|
1132
975
|
* Based on the CSS property border allows configuring all properties related to the border of a container.
|
|
1133
976
|
*/
|
|
1134
|
-
border?:
|
|
977
|
+
border?: ContainerBorder;
|
|
1135
978
|
/**
|
|
1136
979
|
* Sets the border-radius CSS property.
|
|
1137
980
|
*
|
|
@@ -1154,6 +997,10 @@ type Props$x = {
|
|
|
1154
997
|
* Custom content inside the container.
|
|
1155
998
|
*/
|
|
1156
999
|
children?: ReactNode;
|
|
1000
|
+
/**
|
|
1001
|
+
* Reference to the container element.
|
|
1002
|
+
*/
|
|
1003
|
+
ref?: Ref<HTMLDivElement>;
|
|
1157
1004
|
/**
|
|
1158
1005
|
* Sets the display CSS property.
|
|
1159
1006
|
* The set of values is limited to the ones related to the outer display type.
|
|
@@ -1179,11 +1026,11 @@ type Props$x = {
|
|
|
1179
1026
|
* Based on the CSS property inset this prop is a shorthand that corresponds
|
|
1180
1027
|
* to the top, right, bottom, and/or left properties.
|
|
1181
1028
|
*/
|
|
1182
|
-
inset?:
|
|
1029
|
+
inset?: ContainerSpacing;
|
|
1183
1030
|
/**
|
|
1184
1031
|
* Size of the margin to be applied to the container.
|
|
1185
1032
|
*/
|
|
1186
|
-
margin?: string |
|
|
1033
|
+
margin?: string | ContainerSpacing;
|
|
1187
1034
|
/**
|
|
1188
1035
|
* Sets the max-width CSS property.
|
|
1189
1036
|
*
|
|
@@ -1212,17 +1059,17 @@ type Props$x = {
|
|
|
1212
1059
|
* Based on the CSS property outline allows configuring all properties related
|
|
1213
1060
|
* to the outline of a container.
|
|
1214
1061
|
*/
|
|
1215
|
-
outline?:
|
|
1062
|
+
outline?: ContainerOutline;
|
|
1216
1063
|
/**
|
|
1217
1064
|
* Sets the overflow CSS property.
|
|
1218
1065
|
*
|
|
1219
1066
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
|
|
1220
1067
|
*/
|
|
1221
|
-
overflow?:
|
|
1068
|
+
overflow?: ContainerOverflow;
|
|
1222
1069
|
/**
|
|
1223
1070
|
* Size of the padding to be applied to the container.
|
|
1224
1071
|
*/
|
|
1225
|
-
padding?: string |
|
|
1072
|
+
padding?: string | ContainerSpacing;
|
|
1226
1073
|
/**
|
|
1227
1074
|
* Sets the position CSS property.
|
|
1228
1075
|
*
|
|
@@ -1243,130 +1090,67 @@ type Props$x = {
|
|
|
1243
1090
|
zIndex?: "auto" | number;
|
|
1244
1091
|
};
|
|
1245
1092
|
|
|
1246
|
-
declare const DxcContainer:
|
|
1093
|
+
declare const DxcContainer: ({ display, width, height, overflow, ref, ...props }: ContainerProps) => react.JSX.Element;
|
|
1247
1094
|
|
|
1248
|
-
type
|
|
1249
|
-
|
|
1250
|
-
declare function DxcContextualMenu({ items }: Props$w): react_jsx_runtime.JSX.Element;
|
|
1251
|
-
|
|
1252
|
-
type Size$2 = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
1253
|
-
type Option$2 = {
|
|
1254
|
-
/**
|
|
1255
|
-
* Option display value.
|
|
1256
|
-
*/
|
|
1257
|
-
label?: string;
|
|
1258
|
-
/**
|
|
1259
|
-
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
1260
|
-
*/
|
|
1095
|
+
type BaseCommonItemProps = {
|
|
1096
|
+
badge?: ReactElement;
|
|
1261
1097
|
icon?: string | SVG;
|
|
1262
|
-
|
|
1263
|
-
* Option inner value.
|
|
1264
|
-
*/
|
|
1265
|
-
value: string;
|
|
1098
|
+
label: string;
|
|
1266
1099
|
};
|
|
1267
|
-
type
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
iconPosition?: "before" | "after";
|
|
1285
|
-
/**
|
|
1286
|
-
* Text to be placed within the dropdown.
|
|
1287
|
-
*/
|
|
1288
|
-
label?: string;
|
|
1289
|
-
/**
|
|
1290
|
-
* Whether the arrow next to the label must be displayed or not.
|
|
1291
|
-
*/
|
|
1292
|
-
caretHidden?: boolean;
|
|
1293
|
-
/**
|
|
1294
|
-
* If true, the component will be disabled.
|
|
1295
|
-
*/
|
|
1296
|
-
disabled?: boolean;
|
|
1297
|
-
/**
|
|
1298
|
-
* If true, the options are shown when the dropdown is hover.
|
|
1299
|
-
*/
|
|
1300
|
-
expandOnHover?: boolean;
|
|
1301
|
-
/**
|
|
1302
|
-
* This function will be called every time the selection changes.
|
|
1303
|
-
* The value of the selected option will be passed as a parameter.
|
|
1304
|
-
*/
|
|
1305
|
-
onSelectOption: (value: string) => void;
|
|
1306
|
-
/**
|
|
1307
|
-
* Size of the margin to be applied to the component.
|
|
1308
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right'
|
|
1309
|
-
* properties in order to specify different margin sizes.
|
|
1310
|
-
*/
|
|
1311
|
-
margin?: Space$1 | Margin;
|
|
1312
|
-
/**
|
|
1313
|
-
* Size of the component.
|
|
1314
|
-
*/
|
|
1315
|
-
size?: Size$2;
|
|
1100
|
+
type BaseItem = PrettifyTypes<BaseCommonItemProps & {
|
|
1101
|
+
onSelect?: () => void;
|
|
1102
|
+
selected?: boolean;
|
|
1103
|
+
href?: string;
|
|
1104
|
+
renderItem?: (props: {
|
|
1105
|
+
children: ReactNode;
|
|
1106
|
+
}) => ReactNode;
|
|
1107
|
+
}>;
|
|
1108
|
+
type BaseGroupItem = PrettifyTypes<BaseCommonItemProps & {
|
|
1109
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
1110
|
+
defaultOpen?: boolean;
|
|
1111
|
+
}>;
|
|
1112
|
+
type BaseSection = {
|
|
1113
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
1114
|
+
title?: string;
|
|
1115
|
+
};
|
|
1116
|
+
type BaseMenuProps = {
|
|
1316
1117
|
/**
|
|
1317
|
-
*
|
|
1118
|
+
* Array of items to be displayed in the menu.
|
|
1119
|
+
* Each item can be a single/simple item, a group item or a section.
|
|
1318
1120
|
*/
|
|
1319
|
-
|
|
1121
|
+
items: (BaseItem | BaseGroupItem)[] | BaseSection[];
|
|
1320
1122
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* Under the hood, this prop also serves as an accessible label for the component.
|
|
1123
|
+
* If true the menu will be displayed with a border.
|
|
1323
1124
|
*/
|
|
1324
|
-
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
type BaseActionCell = {
|
|
1328
|
-
disabled?: boolean;
|
|
1329
|
-
tabIndex?: number;
|
|
1330
|
-
title: string;
|
|
1331
|
-
};
|
|
1332
|
-
type ActionCell = BaseActionCell & ({
|
|
1333
|
-
icon: string | SVG;
|
|
1334
|
-
onClick: () => void;
|
|
1335
|
-
options?: never;
|
|
1336
|
-
} | {
|
|
1337
|
-
icon?: never;
|
|
1338
|
-
onClick: (value?: string) => void;
|
|
1339
|
-
options: Option$2[];
|
|
1340
|
-
});
|
|
1341
|
-
type ActionsCellPropsType = {
|
|
1125
|
+
displayBorder?: boolean;
|
|
1342
1126
|
/**
|
|
1343
|
-
*
|
|
1344
|
-
* or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
|
|
1345
|
-
* Only the first action with options will be displayed and only up to 3 actions.
|
|
1346
|
-
* In the case of the dropdown the click function will pass the value assigned to the option.
|
|
1127
|
+
* If true the menu will have lines marking the groups.
|
|
1347
1128
|
*/
|
|
1348
|
-
|
|
1349
|
-
};
|
|
1350
|
-
type Props$u = {
|
|
1129
|
+
displayGroupLines?: boolean;
|
|
1351
1130
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
* content in this area.
|
|
1131
|
+
* If true the menu will have controls at the end.
|
|
1354
1132
|
*/
|
|
1355
|
-
|
|
1133
|
+
displayControlsAfter?: boolean;
|
|
1356
1134
|
/**
|
|
1357
|
-
*
|
|
1358
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1135
|
+
* If true the menu will be icons only and display a popover on click.
|
|
1359
1136
|
*/
|
|
1360
|
-
|
|
1137
|
+
hasPopOver?: boolean;
|
|
1361
1138
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
* - "default": Default table size.
|
|
1364
|
-
* - "reduced": More compact table with less spacing for high density information.
|
|
1139
|
+
* If true the menu will be displayed horizontally.
|
|
1365
1140
|
*/
|
|
1366
|
-
|
|
1141
|
+
isHorizontal?: boolean;
|
|
1142
|
+
/**
|
|
1143
|
+
* Function that will be called when an option is clicked.
|
|
1144
|
+
* This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
|
|
1145
|
+
*/
|
|
1146
|
+
onSelectItem?: () => void;
|
|
1367
1147
|
};
|
|
1368
1148
|
|
|
1369
|
-
type
|
|
1149
|
+
type ContextualMenuProps = Omit<BaseMenuProps, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1150
|
+
|
|
1151
|
+
declare function DxcContextualMenu({ items }: ContextualMenuProps): react.JSX.Element;
|
|
1152
|
+
|
|
1153
|
+
type DataGridColumn = {
|
|
1370
1154
|
/**
|
|
1371
1155
|
* Key that will be rendered from each row in rows.
|
|
1372
1156
|
*/
|
|
@@ -1404,23 +1188,23 @@ type GridColumn = {
|
|
|
1404
1188
|
*/
|
|
1405
1189
|
alignment?: "left" | "right" | "center";
|
|
1406
1190
|
};
|
|
1407
|
-
type
|
|
1191
|
+
type DataGridRow = {
|
|
1408
1192
|
/**
|
|
1409
1193
|
* List of rows that will be rendered in each cell based on the key in each column.
|
|
1410
1194
|
*/
|
|
1411
1195
|
[key: string]: ReactNode | undefined;
|
|
1412
1196
|
};
|
|
1413
|
-
type
|
|
1197
|
+
type DataGridHierarchyRow = PrettifyTypes<DataGridRow & {
|
|
1414
1198
|
/**
|
|
1415
1199
|
* Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
|
|
1416
1200
|
* These child rows will be displayed when the parent row is expanded.
|
|
1417
1201
|
*/
|
|
1418
|
-
childRows?:
|
|
1202
|
+
childRows?: DataGridHierarchyRow[] | DataGridRow[];
|
|
1419
1203
|
/**
|
|
1420
1204
|
* Function called when a row with children is expanded or collapsed (based on the value of `open`).
|
|
1421
1205
|
* Returns (or resolves to) the array of child rows nested under this row to display when expanded.
|
|
1422
1206
|
*/
|
|
1423
|
-
childrenTrigger?: (open?: boolean, triggerRow?:
|
|
1207
|
+
childrenTrigger?: (open?: boolean, triggerRow?: DataGridHierarchyRow) => (DataGridHierarchyRow[] | DataGridRow[]) | Promise<DataGridHierarchyRow[] | DataGridRow[]>;
|
|
1424
1208
|
/**
|
|
1425
1209
|
* Indicates whether child rows are currently being loaded.
|
|
1426
1210
|
*/
|
|
@@ -1437,27 +1221,27 @@ type HierarchyGridRow = GridRow & {
|
|
|
1437
1221
|
* Indicates whether child rows are currently visible.
|
|
1438
1222
|
*/
|
|
1439
1223
|
visibleChildren?: boolean;
|
|
1440
|
-
}
|
|
1441
|
-
type
|
|
1224
|
+
}>;
|
|
1225
|
+
type DataGridExpandableRow = PrettifyTypes<DataGridRow & {
|
|
1442
1226
|
expandedContent?: ReactNode;
|
|
1443
1227
|
expandedContentHeight?: number;
|
|
1444
1228
|
contentIsExpanded?: boolean;
|
|
1445
|
-
}
|
|
1446
|
-
type
|
|
1447
|
-
rows:
|
|
1229
|
+
}>;
|
|
1230
|
+
type DataGridExpandableRows = {
|
|
1231
|
+
rows: DataGridExpandableRow[];
|
|
1448
1232
|
/**
|
|
1449
1233
|
* Whether the rows can expand or not.
|
|
1450
1234
|
*/
|
|
1451
1235
|
expandable: true;
|
|
1452
1236
|
/**
|
|
1453
|
-
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type
|
|
1237
|
+
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
|
|
1454
1238
|
*/
|
|
1455
1239
|
uniqueRowId: string;
|
|
1456
1240
|
};
|
|
1457
|
-
type
|
|
1458
|
-
rows:
|
|
1241
|
+
type DataGridHierarchyRows = {
|
|
1242
|
+
rows: DataGridHierarchyRow[];
|
|
1459
1243
|
/**
|
|
1460
|
-
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type
|
|
1244
|
+
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
|
|
1461
1245
|
*/
|
|
1462
1246
|
uniqueRowId: string;
|
|
1463
1247
|
/**
|
|
@@ -1465,7 +1249,7 @@ type HierarchyRows = {
|
|
|
1465
1249
|
*/
|
|
1466
1250
|
expandable?: false;
|
|
1467
1251
|
};
|
|
1468
|
-
type
|
|
1252
|
+
type DataGridSelectableProps = {
|
|
1469
1253
|
/**
|
|
1470
1254
|
* Whether the rows are selectable or not.
|
|
1471
1255
|
*/
|
|
@@ -1479,7 +1263,7 @@ type SelectableGridProps = {
|
|
|
1479
1263
|
*/
|
|
1480
1264
|
onSelectRows: (selectedRows: Set<number | string>) => void;
|
|
1481
1265
|
/**
|
|
1482
|
-
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type
|
|
1266
|
+
* This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
|
|
1483
1267
|
*/
|
|
1484
1268
|
uniqueRowId: string;
|
|
1485
1269
|
} | {
|
|
@@ -1488,7 +1272,7 @@ type SelectableGridProps = {
|
|
|
1488
1272
|
onSelectRows?: never;
|
|
1489
1273
|
uniqueRowId?: string;
|
|
1490
1274
|
};
|
|
1491
|
-
type
|
|
1275
|
+
type DataGridPaginatedProps = {
|
|
1492
1276
|
/**
|
|
1493
1277
|
* If true, paginator will be displayed.
|
|
1494
1278
|
*/
|
|
@@ -1523,7 +1307,7 @@ type PaginatedProps$1 = {
|
|
|
1523
1307
|
*/
|
|
1524
1308
|
defaultPage?: number;
|
|
1525
1309
|
};
|
|
1526
|
-
type
|
|
1310
|
+
type DataGridNonPaginatedProps = {
|
|
1527
1311
|
/**
|
|
1528
1312
|
* If true, paginator will be displayed.
|
|
1529
1313
|
*/
|
|
@@ -1559,36 +1343,37 @@ type NonPaginatedProps$1 = {
|
|
|
1559
1343
|
defaultPage?: never;
|
|
1560
1344
|
};
|
|
1561
1345
|
type CommonProps$6 = {
|
|
1562
|
-
columns:
|
|
1346
|
+
columns: DataGridColumn[];
|
|
1563
1347
|
/**
|
|
1564
1348
|
* Extra row that will be always visible.
|
|
1565
1349
|
*/
|
|
1566
|
-
summaryRow?:
|
|
1350
|
+
summaryRow?: DataGridRow;
|
|
1567
1351
|
/**
|
|
1568
1352
|
* Function called whenever a cell is edited.
|
|
1569
1353
|
*/
|
|
1570
|
-
onGridRowsChange?: (_rows:
|
|
1354
|
+
onGridRowsChange?: (_rows: DataGridRow[] | DataGridHierarchyRow[] | DataGridExpandableRow[]) => void;
|
|
1571
1355
|
/**
|
|
1572
1356
|
* Function called whenever a column is sorted. Receives the sorted
|
|
1573
1357
|
* column and direction, or `undefined` if no sorting is applied.
|
|
1574
1358
|
*/
|
|
1575
1359
|
onSort?: (_sortColumn?: SortColumn) => void;
|
|
1576
1360
|
};
|
|
1577
|
-
type
|
|
1578
|
-
rows:
|
|
1361
|
+
type DataGridBasicProps = {
|
|
1362
|
+
rows: DataGridRow[];
|
|
1579
1363
|
/**
|
|
1580
1364
|
* Whether the rows can expand or not.
|
|
1581
1365
|
*/
|
|
1582
1366
|
expandable?: false;
|
|
1583
1367
|
};
|
|
1584
|
-
type
|
|
1368
|
+
type DataGridProps = PrettifyTypes<CommonProps$6 & (DataGridPaginatedProps | DataGridNonPaginatedProps) & (DataGridBasicProps | DataGridExpandableRows | DataGridHierarchyRows) & DataGridSelectableProps>;
|
|
1585
1369
|
|
|
1586
1370
|
declare const DxcDataGrid: {
|
|
1587
|
-
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }:
|
|
1588
|
-
ActionsCell: ({ actions }:
|
|
1371
|
+
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: DataGridProps): JSX.Element;
|
|
1372
|
+
ActionsCell: ({ actions }: ActionsCellProps) => JSX.Element;
|
|
1589
1373
|
};
|
|
1590
1374
|
|
|
1591
|
-
type
|
|
1375
|
+
type RefType$9 = React.Ref<HTMLDivElement>;
|
|
1376
|
+
type DateInputProps = {
|
|
1592
1377
|
/**
|
|
1593
1378
|
* Initial value of the input element, only when it is uncontrolled.
|
|
1594
1379
|
*/
|
|
@@ -1679,7 +1464,7 @@ type Props$s = {
|
|
|
1679
1464
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1680
1465
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1681
1466
|
*/
|
|
1682
|
-
margin?: Space
|
|
1467
|
+
margin?: Space | Margin;
|
|
1683
1468
|
/**
|
|
1684
1469
|
* Size of the component.
|
|
1685
1470
|
*/
|
|
@@ -1692,11 +1477,18 @@ type Props$s = {
|
|
|
1692
1477
|
* Specifies a string to be used as the name for the date input element when no `label` is provided.
|
|
1693
1478
|
*/
|
|
1694
1479
|
ariaLabel?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* Ref object to access the date input element.
|
|
1482
|
+
*/
|
|
1483
|
+
ref?: RefType$9;
|
|
1695
1484
|
};
|
|
1696
1485
|
|
|
1697
|
-
declare const DxcDateInput:
|
|
1486
|
+
declare const DxcDateInput: {
|
|
1487
|
+
({ label, name, defaultValue, value, format, helperText, placeholder, clearable, disabled, readOnly, optional, onChange, onBlur, error, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: DateInputProps): react.JSX.Element;
|
|
1488
|
+
displayName: string;
|
|
1489
|
+
};
|
|
1698
1490
|
|
|
1699
|
-
type
|
|
1491
|
+
type DialogProps = {
|
|
1700
1492
|
/**
|
|
1701
1493
|
* If true, the close button will be visible.
|
|
1702
1494
|
*/
|
|
@@ -1736,9 +1528,9 @@ type Props$r = {
|
|
|
1736
1528
|
disableFocusLock?: boolean;
|
|
1737
1529
|
};
|
|
1738
1530
|
|
|
1739
|
-
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }:
|
|
1531
|
+
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: DialogProps) => JSX.Element;
|
|
1740
1532
|
|
|
1741
|
-
type
|
|
1533
|
+
type DividerProps = {
|
|
1742
1534
|
/**
|
|
1743
1535
|
* The divider can be shown in horizontal or vertical.
|
|
1744
1536
|
*/
|
|
@@ -1759,10 +1551,92 @@ type Props$q = {
|
|
|
1759
1551
|
decorative?: boolean;
|
|
1760
1552
|
};
|
|
1761
1553
|
|
|
1762
|
-
declare function DxcDivider({ color, decorative, orientation, weight, }:
|
|
1554
|
+
declare function DxcDivider({ color, decorative, orientation, weight, }: DividerProps): react.JSX.Element;
|
|
1555
|
+
|
|
1556
|
+
type DropdownOption = {
|
|
1557
|
+
/**
|
|
1558
|
+
* Option display value.
|
|
1559
|
+
*/
|
|
1560
|
+
label?: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
1563
|
+
*/
|
|
1564
|
+
icon?: string | SVG;
|
|
1565
|
+
/**
|
|
1566
|
+
* Option inner value.
|
|
1567
|
+
*/
|
|
1568
|
+
value: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* Whether the option has a divider below it.
|
|
1571
|
+
*/
|
|
1572
|
+
hasDivider?: boolean;
|
|
1573
|
+
};
|
|
1574
|
+
type DropdownProps = {
|
|
1575
|
+
/**
|
|
1576
|
+
* An array of objects representing the options.
|
|
1577
|
+
*/
|
|
1578
|
+
options: DropdownOption[];
|
|
1579
|
+
/**
|
|
1580
|
+
* In case options include icons, whether the icon should appear
|
|
1581
|
+
* after or before the label.
|
|
1582
|
+
*/
|
|
1583
|
+
optionsIconPosition?: "before" | "after";
|
|
1584
|
+
/**
|
|
1585
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
1586
|
+
*/
|
|
1587
|
+
icon?: string | SVG;
|
|
1588
|
+
/**
|
|
1589
|
+
* Whether the icon should appear after or before the label.
|
|
1590
|
+
*/
|
|
1591
|
+
iconPosition?: "before" | "after";
|
|
1592
|
+
/**
|
|
1593
|
+
* Text to be placed within the dropdown.
|
|
1594
|
+
*/
|
|
1595
|
+
label?: string;
|
|
1596
|
+
/**
|
|
1597
|
+
* Whether the arrow next to the label must be displayed or not.
|
|
1598
|
+
*/
|
|
1599
|
+
caretHidden?: boolean;
|
|
1600
|
+
/**
|
|
1601
|
+
* If true, the component will be disabled.
|
|
1602
|
+
*/
|
|
1603
|
+
disabled?: boolean;
|
|
1604
|
+
/**
|
|
1605
|
+
* If true, the options are shown when the dropdown is hover.
|
|
1606
|
+
*/
|
|
1607
|
+
expandOnHover?: boolean;
|
|
1608
|
+
/**
|
|
1609
|
+
* This function will be called every time the selection changes.
|
|
1610
|
+
* The value of the selected option will be passed as a parameter.
|
|
1611
|
+
*/
|
|
1612
|
+
onSelectOption: (value: string) => void;
|
|
1613
|
+
/**
|
|
1614
|
+
* Size of the margin to be applied to the component.
|
|
1615
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right'
|
|
1616
|
+
* properties in order to specify different margin sizes.
|
|
1617
|
+
*/
|
|
1618
|
+
margin?: Space | Margin;
|
|
1619
|
+
/**
|
|
1620
|
+
* Size of the component.
|
|
1621
|
+
*/
|
|
1622
|
+
size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
1623
|
+
/**
|
|
1624
|
+
* Value of the tabindex attribute.
|
|
1625
|
+
*/
|
|
1626
|
+
tabIndex?: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* Text representing advisory information related to the dropdown's trigger action.
|
|
1629
|
+
* Under the hood, this prop also serves as an accessible label for the component.
|
|
1630
|
+
*/
|
|
1631
|
+
title?: string;
|
|
1632
|
+
};
|
|
1763
1633
|
|
|
1764
|
-
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }:
|
|
1634
|
+
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: DropdownProps) => react.JSX.Element;
|
|
1765
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Reference to the component.
|
|
1638
|
+
*/
|
|
1639
|
+
type RefType$8 = React.Ref<HTMLDivElement>;
|
|
1766
1640
|
type FileData = {
|
|
1767
1641
|
/**
|
|
1768
1642
|
* Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
|
|
@@ -1807,7 +1681,7 @@ type CommonProps$5 = {
|
|
|
1807
1681
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1808
1682
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1809
1683
|
*/
|
|
1810
|
-
margin?: Space
|
|
1684
|
+
margin?: Space | Margin;
|
|
1811
1685
|
/**
|
|
1812
1686
|
* The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
|
|
1813
1687
|
*/
|
|
@@ -1826,6 +1700,10 @@ type CommonProps$5 = {
|
|
|
1826
1700
|
* next to the label.
|
|
1827
1701
|
*/
|
|
1828
1702
|
optional?: boolean;
|
|
1703
|
+
/**
|
|
1704
|
+
* Reference to the component.
|
|
1705
|
+
*/
|
|
1706
|
+
ref?: RefType$8;
|
|
1829
1707
|
/**
|
|
1830
1708
|
* If true, if the file is an image, a preview of it will be shown. If not, an icon refering to the file type will be shown.
|
|
1831
1709
|
*/
|
|
@@ -1871,11 +1749,14 @@ type FileModeProps = CommonProps$5 & {
|
|
|
1871
1749
|
*/
|
|
1872
1750
|
mode?: "file";
|
|
1873
1751
|
};
|
|
1874
|
-
type
|
|
1752
|
+
type FileInputProps = PrettifyTypes<DropModeProps | FileModeProps>;
|
|
1875
1753
|
|
|
1876
|
-
declare const DxcFileInput:
|
|
1754
|
+
declare const DxcFileInput: {
|
|
1755
|
+
({ mode, label, buttonLabel, dropAreaLabel, helperText, accept, minSize, maxSize, showPreview, multiple, disabled, callbackFile, size, value, margin, tabIndex, optional, ref, }: FileInputProps): react.JSX.Element;
|
|
1756
|
+
displayName: string;
|
|
1757
|
+
};
|
|
1877
1758
|
|
|
1878
|
-
type
|
|
1759
|
+
type FlexGap = {
|
|
1879
1760
|
rowGap: string;
|
|
1880
1761
|
columnGap?: string;
|
|
1881
1762
|
} | {
|
|
@@ -1908,7 +1789,7 @@ type CommonProps$4 = {
|
|
|
1908
1789
|
*/
|
|
1909
1790
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
1910
1791
|
};
|
|
1911
|
-
type
|
|
1792
|
+
type FlexProps = PrettifyTypes<CommonProps$4 & {
|
|
1912
1793
|
/**
|
|
1913
1794
|
* Sets the flex-direction CSS property.
|
|
1914
1795
|
*
|
|
@@ -1926,7 +1807,7 @@ type Props$o = CommonProps$4 & {
|
|
|
1926
1807
|
*
|
|
1927
1808
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
1928
1809
|
*/
|
|
1929
|
-
gap?:
|
|
1810
|
+
gap?: FlexGap;
|
|
1930
1811
|
/**
|
|
1931
1812
|
* Sets the order CSS property.
|
|
1932
1813
|
*
|
|
@@ -1963,11 +1844,11 @@ type Props$o = CommonProps$4 & {
|
|
|
1963
1844
|
* Custom content inside the flex container.
|
|
1964
1845
|
*/
|
|
1965
1846
|
children: ReactNode;
|
|
1966
|
-
}
|
|
1847
|
+
}>;
|
|
1967
1848
|
|
|
1968
|
-
declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }:
|
|
1849
|
+
declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: FlexProps) => react.JSX.Element;
|
|
1969
1850
|
|
|
1970
|
-
type
|
|
1851
|
+
type GridGap = string | {
|
|
1971
1852
|
columnGap?: string;
|
|
1972
1853
|
rowGap: string;
|
|
1973
1854
|
} | {
|
|
@@ -1978,17 +1859,17 @@ type GridCell = {
|
|
|
1978
1859
|
end: number | string;
|
|
1979
1860
|
start: number | string;
|
|
1980
1861
|
};
|
|
1981
|
-
type
|
|
1982
|
-
type
|
|
1983
|
-
type
|
|
1862
|
+
type GridPlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
|
|
1863
|
+
type GridPlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
|
|
1864
|
+
type GridPlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
|
|
1984
1865
|
type PlaceObject<Type, Suffix extends string> = {
|
|
1985
|
-
[Property in
|
|
1866
|
+
[Property in keyof Type as Property extends string ? `${Property}${Capitalize<Suffix>}` : never]: Type[Property];
|
|
1986
1867
|
};
|
|
1987
1868
|
type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
|
|
1988
|
-
align
|
|
1869
|
+
align?: PlaceValues;
|
|
1989
1870
|
justify?: PlaceValues;
|
|
1990
1871
|
}, Element> | PlaceObject<{
|
|
1991
|
-
align
|
|
1872
|
+
align: PlaceValues;
|
|
1992
1873
|
justify: PlaceValues;
|
|
1993
1874
|
}, Element> | PlaceValues;
|
|
1994
1875
|
type GridItemProps = {
|
|
@@ -2015,7 +1896,7 @@ type GridItemProps = {
|
|
|
2015
1896
|
*
|
|
2016
1897
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
|
|
2017
1898
|
*/
|
|
2018
|
-
placeSelf?: PlaceGeneric<
|
|
1899
|
+
placeSelf?: PlaceGeneric<GridPlaceSelfValues, "self">;
|
|
2019
1900
|
/**
|
|
2020
1901
|
* Sets the grid-row CSS property.
|
|
2021
1902
|
*
|
|
@@ -2023,7 +1904,7 @@ type GridItemProps = {
|
|
|
2023
1904
|
*/
|
|
2024
1905
|
row?: number | string | GridCell;
|
|
2025
1906
|
};
|
|
2026
|
-
type
|
|
1907
|
+
type GridProps = PrettifyTypes<GridItemProps & {
|
|
2027
1908
|
/**
|
|
2028
1909
|
* Sets the grid-auto-columns CSS property.
|
|
2029
1910
|
*
|
|
@@ -2047,19 +1928,19 @@ type Props$n = GridItemProps & {
|
|
|
2047
1928
|
*
|
|
2048
1929
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
2049
1930
|
*/
|
|
2050
|
-
gap?:
|
|
1931
|
+
gap?: GridGap;
|
|
2051
1932
|
/**
|
|
2052
1933
|
* Sets the place-content CSS property.
|
|
2053
1934
|
*
|
|
2054
1935
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
|
|
2055
1936
|
*/
|
|
2056
|
-
placeContent?: PlaceGeneric<
|
|
1937
|
+
placeContent?: PlaceGeneric<GridPlaceContentValues, "content">;
|
|
2057
1938
|
/**
|
|
2058
1939
|
* Sets the place-items CSS property.
|
|
2059
1940
|
*
|
|
2060
1941
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
|
|
2061
1942
|
*/
|
|
2062
|
-
placeItems?: PlaceGeneric<
|
|
1943
|
+
placeItems?: PlaceGeneric<GridPlaceItemsValues, "items">;
|
|
2063
1944
|
/**
|
|
2064
1945
|
* Sets the grid-template-areas CSS property.
|
|
2065
1946
|
*
|
|
@@ -2078,17 +1959,17 @@ type Props$n = GridItemProps & {
|
|
|
2078
1959
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
|
|
2079
1960
|
*/
|
|
2080
1961
|
templateRows?: string[];
|
|
2081
|
-
}
|
|
1962
|
+
}>;
|
|
2082
1963
|
|
|
2083
1964
|
declare const DxcGrid: {
|
|
2084
|
-
(props:
|
|
1965
|
+
(props: GridProps): react.JSX.Element;
|
|
2085
1966
|
Item: _emotion_styled.StyledComponent<{
|
|
2086
1967
|
theme?: _emotion_react.Theme;
|
|
2087
1968
|
as?: React.ElementType;
|
|
2088
1969
|
} & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2089
1970
|
};
|
|
2090
1971
|
|
|
2091
|
-
type
|
|
1972
|
+
type HeadingProps = {
|
|
2092
1973
|
/**
|
|
2093
1974
|
* Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
|
|
2094
1975
|
* The html tag of the heading will be the one specified in the 'as' prop.
|
|
@@ -2111,14 +1992,14 @@ type Props$m = {
|
|
|
2111
1992
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2112
1993
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2113
1994
|
*/
|
|
2114
|
-
margin?: Space
|
|
1995
|
+
margin?: Space | Margin;
|
|
2115
1996
|
};
|
|
2116
1997
|
|
|
2117
|
-
declare function DxcHeading({ as, level, margin, text, weight }:
|
|
1998
|
+
declare function DxcHeading({ as, level, margin, text, weight }: HeadingProps): react.JSX.Element;
|
|
2118
1999
|
|
|
2119
|
-
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }:
|
|
2000
|
+
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: ImageProps): react.JSX.Element;
|
|
2120
2001
|
|
|
2121
|
-
type
|
|
2002
|
+
type InsetProps = {
|
|
2122
2003
|
/**
|
|
2123
2004
|
* Applies the spacing scale to the bottom side.
|
|
2124
2005
|
*/
|
|
@@ -2153,13 +2034,21 @@ type Props$l = {
|
|
|
2153
2034
|
vertical?: string;
|
|
2154
2035
|
};
|
|
2155
2036
|
|
|
2156
|
-
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }:
|
|
2037
|
+
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: InsetProps): react.JSX.Element;
|
|
2157
2038
|
|
|
2158
2039
|
type LinkProps = {
|
|
2040
|
+
/**
|
|
2041
|
+
* Text of the link.
|
|
2042
|
+
*/
|
|
2043
|
+
children: string;
|
|
2159
2044
|
/**
|
|
2160
2045
|
* If true, the link will be disabled.
|
|
2161
2046
|
*/
|
|
2162
2047
|
disabled?: boolean;
|
|
2048
|
+
/**
|
|
2049
|
+
* Page to be opened when the user clicks on the link.
|
|
2050
|
+
*/
|
|
2051
|
+
href?: string;
|
|
2163
2052
|
/**
|
|
2164
2053
|
* If true, the color is inherited from parent.
|
|
2165
2054
|
*/
|
|
@@ -2173,9 +2062,10 @@ type LinkProps = {
|
|
|
2173
2062
|
*/
|
|
2174
2063
|
iconPosition?: "before" | "after";
|
|
2175
2064
|
/**
|
|
2176
|
-
*
|
|
2065
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2066
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2177
2067
|
*/
|
|
2178
|
-
|
|
2068
|
+
margin?: Space | Margin;
|
|
2179
2069
|
/**
|
|
2180
2070
|
* If true, the page is opened in a new browser tab.
|
|
2181
2071
|
*/
|
|
@@ -2186,29 +2076,27 @@ type LinkProps = {
|
|
|
2186
2076
|
*/
|
|
2187
2077
|
onClick?: () => void;
|
|
2188
2078
|
/**
|
|
2189
|
-
*
|
|
2190
|
-
*/
|
|
2191
|
-
children: string;
|
|
2192
|
-
/**
|
|
2193
|
-
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2194
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2079
|
+
* Ref of the link element.
|
|
2195
2080
|
*/
|
|
2196
|
-
|
|
2081
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
2197
2082
|
/**
|
|
2198
2083
|
* Value of the tabindex.
|
|
2199
2084
|
*/
|
|
2200
2085
|
tabIndex?: number;
|
|
2201
2086
|
};
|
|
2202
2087
|
|
|
2203
|
-
declare const DxcLink:
|
|
2088
|
+
declare const DxcLink: {
|
|
2089
|
+
({ children, disabled, href, icon, iconPosition, inheritColor, margin, newWindow, onClick, tabIndex, ref, ...otherProps }: LinkProps): react.JSX.Element;
|
|
2090
|
+
displayName: string;
|
|
2091
|
+
};
|
|
2204
2092
|
|
|
2205
|
-
type SelectOption = {
|
|
2093
|
+
type SelectOption$1 = {
|
|
2206
2094
|
label?: string;
|
|
2207
2095
|
value: string;
|
|
2208
2096
|
onSelect: (value: string) => void;
|
|
2209
2097
|
selected?: boolean;
|
|
2210
2098
|
};
|
|
2211
|
-
type
|
|
2099
|
+
type MessageInputProps = {
|
|
2212
2100
|
/**
|
|
2213
2101
|
* If true, the voice recording button will be shown.
|
|
2214
2102
|
*/
|
|
@@ -2266,7 +2154,7 @@ type Props$k = {
|
|
|
2266
2154
|
/**
|
|
2267
2155
|
* Options to be shown on the dropdown under the input.
|
|
2268
2156
|
*/
|
|
2269
|
-
selectOptions?: SelectOption[];
|
|
2157
|
+
selectOptions?: SelectOption$1[];
|
|
2270
2158
|
/**
|
|
2271
2159
|
* This function will be called when the input element loses the focus.
|
|
2272
2160
|
* An object including the input value and the error (if the value
|
|
@@ -2295,7 +2183,7 @@ type Props$k = {
|
|
|
2295
2183
|
type: "submit" | "stop";
|
|
2296
2184
|
value?: string;
|
|
2297
2185
|
files?: File[];
|
|
2298
|
-
selectedOption?: SelectOption;
|
|
2186
|
+
selectedOption?: SelectOption$1;
|
|
2299
2187
|
}) => void;
|
|
2300
2188
|
/**
|
|
2301
2189
|
* Text to be put as placeholder of the input.
|
|
@@ -2315,9 +2203,9 @@ type Props$k = {
|
|
|
2315
2203
|
value?: string;
|
|
2316
2204
|
};
|
|
2317
2205
|
|
|
2318
|
-
declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }:
|
|
2206
|
+
declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }: MessageInputProps) => react.JSX.Element;
|
|
2319
2207
|
|
|
2320
|
-
type
|
|
2208
|
+
type NavTabsTabProps = {
|
|
2321
2209
|
/**
|
|
2322
2210
|
* Whether the tab is active or not.
|
|
2323
2211
|
*/
|
|
@@ -2338,10 +2226,6 @@ type TabProps$1 = {
|
|
|
2338
2226
|
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
2339
2227
|
*/
|
|
2340
2228
|
icon?: string | SVG;
|
|
2341
|
-
/**
|
|
2342
|
-
* This function will be called when the user clicks on this tab.
|
|
2343
|
-
*/
|
|
2344
|
-
onClick?: () => void;
|
|
2345
2229
|
/**
|
|
2346
2230
|
* If the value is 'true', an empty badge will appear.
|
|
2347
2231
|
* If it is 'false', no badge will appear.
|
|
@@ -2350,8 +2234,16 @@ type TabProps$1 = {
|
|
|
2350
2234
|
* it will appear as '+99' in the badge.
|
|
2351
2235
|
*/
|
|
2352
2236
|
notificationNumber?: boolean | number;
|
|
2237
|
+
/**
|
|
2238
|
+
* This function will be called when the user clicks on this tab.
|
|
2239
|
+
*/
|
|
2240
|
+
onClick?: () => void;
|
|
2241
|
+
/**
|
|
2242
|
+
* Ref of the tab element.
|
|
2243
|
+
*/
|
|
2244
|
+
ref?: React.Ref<HTMLAnchorElement | HTMLDivElement>;
|
|
2353
2245
|
};
|
|
2354
|
-
type
|
|
2246
|
+
type NavTabsProps = {
|
|
2355
2247
|
/**
|
|
2356
2248
|
* Contains one or more DxcNavTabs.Tab.
|
|
2357
2249
|
*/
|
|
@@ -2367,11 +2259,18 @@ type Props$j = {
|
|
|
2367
2259
|
};
|
|
2368
2260
|
|
|
2369
2261
|
declare const DxcNavTabs: {
|
|
2370
|
-
({ iconPosition, tabIndex, children }:
|
|
2371
|
-
Tab:
|
|
2262
|
+
({ iconPosition, tabIndex, children }: NavTabsProps): JSX.Element;
|
|
2263
|
+
Tab: {
|
|
2264
|
+
({ active, children, disabled, href, icon, notificationNumber, onClick, ref, ...otherProps }: NavTabsTabProps): JSX.Element;
|
|
2265
|
+
displayName: string;
|
|
2266
|
+
};
|
|
2372
2267
|
};
|
|
2373
2268
|
|
|
2374
|
-
|
|
2269
|
+
/**
|
|
2270
|
+
* Reference to the component.
|
|
2271
|
+
*/
|
|
2272
|
+
type RefType$7 = React.Ref<HTMLInputElement>;
|
|
2273
|
+
type NumberInputProps = {
|
|
2375
2274
|
/**
|
|
2376
2275
|
* Text to be placed above the number.
|
|
2377
2276
|
*/
|
|
@@ -2407,6 +2306,10 @@ type Props$i = {
|
|
|
2407
2306
|
* functions when it has not been filled.
|
|
2408
2307
|
*/
|
|
2409
2308
|
optional?: boolean;
|
|
2309
|
+
/**
|
|
2310
|
+
* Prefix to be placed before the number value.
|
|
2311
|
+
*/
|
|
2312
|
+
prefix?: string;
|
|
2410
2313
|
/**
|
|
2411
2314
|
* If true, the component will not be mutable, meaning the user can
|
|
2412
2315
|
* not edit the control. The value won't change when pressing on the
|
|
@@ -2414,9 +2317,9 @@ type Props$i = {
|
|
|
2414
2317
|
*/
|
|
2415
2318
|
readOnly?: boolean;
|
|
2416
2319
|
/**
|
|
2417
|
-
*
|
|
2320
|
+
* Ref of the component.
|
|
2418
2321
|
*/
|
|
2419
|
-
|
|
2322
|
+
ref?: RefType$7;
|
|
2420
2323
|
/**
|
|
2421
2324
|
* Suffix to be placed after the number value.
|
|
2422
2325
|
*/
|
|
@@ -2479,7 +2382,7 @@ type Props$i = {
|
|
|
2479
2382
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2480
2383
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2481
2384
|
*/
|
|
2482
|
-
margin?: Space
|
|
2385
|
+
margin?: Space | Margin;
|
|
2483
2386
|
/**
|
|
2484
2387
|
* Size of the component.
|
|
2485
2388
|
*/
|
|
@@ -2498,9 +2401,12 @@ type Props$i = {
|
|
|
2498
2401
|
showControls?: boolean;
|
|
2499
2402
|
};
|
|
2500
2403
|
|
|
2501
|
-
declare const DxcNumberInput:
|
|
2404
|
+
declare const DxcNumberInput: {
|
|
2405
|
+
({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, max, min, name, onBlur, onChange, optional, placeholder, prefix, readOnly, ref, showControls, size, step, suffix, tabIndex, value, }: NumberInputProps): react.JSX.Element;
|
|
2406
|
+
displayName: string;
|
|
2407
|
+
};
|
|
2502
2408
|
|
|
2503
|
-
type
|
|
2409
|
+
type PaginatorProps = {
|
|
2504
2410
|
/**
|
|
2505
2411
|
* Number of the current selected page.
|
|
2506
2412
|
*/
|
|
@@ -2538,53 +2444,30 @@ type Props$h = {
|
|
|
2538
2444
|
tabIndex?: number;
|
|
2539
2445
|
};
|
|
2540
2446
|
|
|
2541
|
-
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }:
|
|
2447
|
+
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: PaginatorProps) => JSX.Element;
|
|
2542
2448
|
|
|
2543
2449
|
declare function DxcParagraph({ children }: {
|
|
2544
2450
|
children: ReactNode;
|
|
2545
|
-
}):
|
|
2451
|
+
}): react.JSX.Element;
|
|
2546
2452
|
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
/**
|
|
2553
|
-
* Name attribute of the input element.
|
|
2554
|
-
*/
|
|
2555
|
-
name?: string;
|
|
2453
|
+
/**
|
|
2454
|
+
* Reference to the component.
|
|
2455
|
+
*/
|
|
2456
|
+
type RefType$6 = React.Ref<HTMLDivElement>;
|
|
2457
|
+
type PasswordInputProps = {
|
|
2556
2458
|
/**
|
|
2557
|
-
*
|
|
2459
|
+
* Specifies a string to be used as the name for the password input element when no `label` is provided.
|
|
2558
2460
|
*/
|
|
2559
|
-
|
|
2461
|
+
ariaLabel?: string;
|
|
2560
2462
|
/**
|
|
2561
|
-
*
|
|
2463
|
+
* HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
|
|
2464
|
+
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
2562
2465
|
*/
|
|
2563
|
-
|
|
2466
|
+
autocomplete?: string;
|
|
2564
2467
|
/**
|
|
2565
2468
|
* If true, the password input will have an action to clear the entered value.
|
|
2566
2469
|
*/
|
|
2567
2470
|
clearable?: boolean;
|
|
2568
|
-
/**
|
|
2569
|
-
* This function will be called when the user types within the input
|
|
2570
|
-
* element of the component. An object including the current value and
|
|
2571
|
-
* the error (if the value entered is not valid) will be passed to this
|
|
2572
|
-
* function. If there is no error, error will not be defined.
|
|
2573
|
-
* */
|
|
2574
|
-
onChange?: (val: {
|
|
2575
|
-
value: string;
|
|
2576
|
-
error?: string;
|
|
2577
|
-
}) => void;
|
|
2578
|
-
/**
|
|
2579
|
-
* This function will be called when the input element loses the focus.
|
|
2580
|
-
* An object including the input value and the error (if the value entered is
|
|
2581
|
-
* not valid) will be passed to this function. If there is no error, error will
|
|
2582
|
-
* not be defined.
|
|
2583
|
-
*/
|
|
2584
|
-
onBlur?: (val: {
|
|
2585
|
-
value: string;
|
|
2586
|
-
error?: string;
|
|
2587
|
-
}) => void;
|
|
2588
2471
|
/**
|
|
2589
2472
|
* If it is a defined value and also a truthy string, the component will
|
|
2590
2473
|
* change its appearance, showing the error below the password input
|
|
@@ -2595,45 +2478,76 @@ type Props$g = {
|
|
|
2595
2478
|
*/
|
|
2596
2479
|
error?: string;
|
|
2597
2480
|
/**
|
|
2598
|
-
*
|
|
2599
|
-
* password input. This will be checked both when the input element loses the
|
|
2600
|
-
* focus and while typing within it. If the string entered does not match
|
|
2601
|
-
* the pattern, the onBlur and onChange functions will be called with the
|
|
2602
|
-
* current value and an internal error informing that this value does not
|
|
2603
|
-
* match the pattern. If the pattern is met, the error parameter of both
|
|
2604
|
-
* events will not be defined.
|
|
2481
|
+
* Helper text to be placed above the password.
|
|
2605
2482
|
*/
|
|
2606
|
-
|
|
2483
|
+
helperText?: string;
|
|
2607
2484
|
/**
|
|
2608
|
-
*
|
|
2485
|
+
* Text to be placed above the password input.
|
|
2486
|
+
*/
|
|
2487
|
+
label?: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2490
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2491
|
+
*/
|
|
2492
|
+
margin?: Space | Margin;
|
|
2493
|
+
/**
|
|
2494
|
+
* Specifies the maximum length allowed by the password input.
|
|
2609
2495
|
* This will be checked both when the input element loses the
|
|
2610
2496
|
* focus and while typing within it. If the string entered does not
|
|
2611
|
-
* comply the
|
|
2497
|
+
* comply the maximum length, the onBlur and onChange functions will be called
|
|
2612
2498
|
* with the current value and an internal error informing that the value
|
|
2613
2499
|
* length does not comply the specified range. If a valid length is
|
|
2614
2500
|
* reached, the error parameter of both events will not be defined.
|
|
2615
2501
|
*/
|
|
2616
|
-
|
|
2502
|
+
maxLength?: number;
|
|
2617
2503
|
/**
|
|
2618
|
-
* Specifies the
|
|
2504
|
+
* Specifies the minimum length allowed by the password input.
|
|
2619
2505
|
* This will be checked both when the input element loses the
|
|
2620
2506
|
* focus and while typing within it. If the string entered does not
|
|
2621
|
-
* comply the
|
|
2507
|
+
* comply the minimum length, the onBlur and onChange functions will be called
|
|
2622
2508
|
* with the current value and an internal error informing that the value
|
|
2623
2509
|
* length does not comply the specified range. If a valid length is
|
|
2624
2510
|
* reached, the error parameter of both events will not be defined.
|
|
2625
2511
|
*/
|
|
2626
|
-
|
|
2512
|
+
minLength?: number;
|
|
2627
2513
|
/**
|
|
2628
|
-
*
|
|
2629
|
-
|
|
2514
|
+
* Name attribute of the input element.
|
|
2515
|
+
*/
|
|
2516
|
+
name?: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* This function will be called when the input element loses the focus.
|
|
2519
|
+
* An object including the input value and the error (if the value entered is
|
|
2520
|
+
* not valid) will be passed to this function. If there is no error, error will
|
|
2521
|
+
* not be defined.
|
|
2522
|
+
*/
|
|
2523
|
+
onBlur?: (val: {
|
|
2524
|
+
value: string;
|
|
2525
|
+
error?: string;
|
|
2526
|
+
}) => void;
|
|
2527
|
+
/**
|
|
2528
|
+
* This function will be called when the user types within the input
|
|
2529
|
+
* element of the component. An object including the current value and
|
|
2530
|
+
* the error (if the value entered is not valid) will be passed to this
|
|
2531
|
+
* function. If there is no error, error will not be defined.
|
|
2532
|
+
* */
|
|
2533
|
+
onChange?: (val: {
|
|
2534
|
+
value: string;
|
|
2535
|
+
error?: string;
|
|
2536
|
+
}) => void;
|
|
2537
|
+
/**
|
|
2538
|
+
* Regular expression that defines the valid format allowed by the
|
|
2539
|
+
* password input. This will be checked both when the input element loses the
|
|
2540
|
+
* focus and while typing within it. If the string entered does not match
|
|
2541
|
+
* the pattern, the onBlur and onChange functions will be called with the
|
|
2542
|
+
* current value and an internal error informing that this value does not
|
|
2543
|
+
* match the pattern. If the pattern is met, the error parameter of both
|
|
2544
|
+
* events will not be defined.
|
|
2630
2545
|
*/
|
|
2631
|
-
|
|
2546
|
+
pattern?: string;
|
|
2632
2547
|
/**
|
|
2633
|
-
*
|
|
2634
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2548
|
+
* Reference to the input element.
|
|
2635
2549
|
*/
|
|
2636
|
-
|
|
2550
|
+
ref?: RefType$6;
|
|
2637
2551
|
/**
|
|
2638
2552
|
* Size of the component.
|
|
2639
2553
|
*/
|
|
@@ -2643,14 +2557,17 @@ type Props$g = {
|
|
|
2643
2557
|
*/
|
|
2644
2558
|
tabIndex?: number;
|
|
2645
2559
|
/**
|
|
2646
|
-
*
|
|
2560
|
+
* Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
2647
2561
|
*/
|
|
2648
|
-
|
|
2562
|
+
value?: string;
|
|
2649
2563
|
};
|
|
2650
2564
|
|
|
2651
|
-
declare const DxcPasswordInput:
|
|
2565
|
+
declare const DxcPasswordInput: {
|
|
2566
|
+
({ label, name, value, helperText, clearable, onChange, onBlur, error, pattern, minLength, maxLength, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: PasswordInputProps): react.JSX.Element;
|
|
2567
|
+
displayName: string;
|
|
2568
|
+
};
|
|
2652
2569
|
|
|
2653
|
-
type
|
|
2570
|
+
type PopoverProps = {
|
|
2654
2571
|
/** Action that triggers the popover to open. */
|
|
2655
2572
|
actionToOpen?: "click" | "hover";
|
|
2656
2573
|
/** Alignment of the popover relative to the trigger element. */
|
|
@@ -2682,15 +2599,9 @@ type PopoverPropsType = {
|
|
|
2682
2599
|
side?: "top" | "bottom" | "left" | "right";
|
|
2683
2600
|
};
|
|
2684
2601
|
|
|
2685
|
-
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }:
|
|
2602
|
+
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }: PopoverProps) => JSX.Element;
|
|
2686
2603
|
|
|
2687
|
-
type
|
|
2688
|
-
top?: Space$1;
|
|
2689
|
-
bottom?: Space$1;
|
|
2690
|
-
left?: Space$1;
|
|
2691
|
-
right?: Space$1;
|
|
2692
|
-
};
|
|
2693
|
-
type Props$f = {
|
|
2604
|
+
type ProgressBarProps = {
|
|
2694
2605
|
/**
|
|
2695
2606
|
* Text to be placed above the progress bar.
|
|
2696
2607
|
*/
|
|
@@ -2717,16 +2628,16 @@ type Props$f = {
|
|
|
2717
2628
|
* an object with 'top', 'bottom', 'left' and 'right' properties
|
|
2718
2629
|
* in order to specify different margin sizes.
|
|
2719
2630
|
*/
|
|
2720
|
-
margin?: Space
|
|
2631
|
+
margin?: Space | Margin;
|
|
2721
2632
|
/**
|
|
2722
2633
|
* Specifies a string to be used as the name for the progress bar element when no `label` is provided.
|
|
2723
2634
|
*/
|
|
2724
2635
|
ariaLabel?: string;
|
|
2725
2636
|
};
|
|
2726
2637
|
|
|
2727
|
-
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }:
|
|
2638
|
+
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: ProgressBarProps) => JSX.Element;
|
|
2728
2639
|
|
|
2729
|
-
type
|
|
2640
|
+
type QuickNavLink = {
|
|
2730
2641
|
/**
|
|
2731
2642
|
* Label to be shown in the link.
|
|
2732
2643
|
*/
|
|
@@ -2734,9 +2645,9 @@ type Link = {
|
|
|
2734
2645
|
/**
|
|
2735
2646
|
* Sublinks of the link.
|
|
2736
2647
|
*/
|
|
2737
|
-
links?:
|
|
2648
|
+
links?: QuickNavLink[];
|
|
2738
2649
|
};
|
|
2739
|
-
type
|
|
2650
|
+
type QuickNavProps = {
|
|
2740
2651
|
/**
|
|
2741
2652
|
* Title of the quick nav component.
|
|
2742
2653
|
*/
|
|
@@ -2744,12 +2655,16 @@ type Props$e = {
|
|
|
2744
2655
|
/**
|
|
2745
2656
|
* Links to be shown inside the quick nav component.
|
|
2746
2657
|
*/
|
|
2747
|
-
links:
|
|
2658
|
+
links: QuickNavLink[];
|
|
2748
2659
|
};
|
|
2749
2660
|
|
|
2750
|
-
declare function DxcQuickNav({ links, title }:
|
|
2661
|
+
declare function DxcQuickNav({ links, title }: QuickNavProps): react.JSX.Element;
|
|
2751
2662
|
|
|
2752
|
-
|
|
2663
|
+
/**
|
|
2664
|
+
* Reference to the component.
|
|
2665
|
+
*/
|
|
2666
|
+
type RefType$5 = React.Ref<HTMLDivElement>;
|
|
2667
|
+
type RadioGroupOption = {
|
|
2753
2668
|
/**
|
|
2754
2669
|
* Label of the option placed next to the radio input.
|
|
2755
2670
|
*/
|
|
@@ -2815,7 +2730,7 @@ type RadioGroupProps = {
|
|
|
2815
2730
|
/**
|
|
2816
2731
|
* An array of objects representing the selectable options.
|
|
2817
2732
|
*/
|
|
2818
|
-
options:
|
|
2733
|
+
options: RadioGroupOption[];
|
|
2819
2734
|
/**
|
|
2820
2735
|
* This function will be called when the radio group loses the focus. An
|
|
2821
2736
|
* object including the value and the error will be passed to this
|
|
@@ -2834,6 +2749,10 @@ type RadioGroupProps = {
|
|
|
2834
2749
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
2835
2750
|
*/
|
|
2836
2751
|
readOnly?: boolean;
|
|
2752
|
+
/**
|
|
2753
|
+
* Reference to the component.
|
|
2754
|
+
*/
|
|
2755
|
+
ref?: RefType$5;
|
|
2837
2756
|
/**
|
|
2838
2757
|
* Sets the orientation of the options within the radio group.
|
|
2839
2758
|
*/
|
|
@@ -2850,9 +2769,12 @@ type RadioGroupProps = {
|
|
|
2850
2769
|
value?: string;
|
|
2851
2770
|
};
|
|
2852
2771
|
|
|
2853
|
-
declare const DxcRadioGroup:
|
|
2772
|
+
declare const DxcRadioGroup: {
|
|
2773
|
+
({ ariaLabel, defaultValue, disabled, error, helperText, label, name, onBlur, onChange, optional, optionalItemLabel, options, readOnly, ref, stacking, tabIndex, value, }: RadioGroupProps): react.JSX.Element;
|
|
2774
|
+
displayName: string;
|
|
2775
|
+
};
|
|
2854
2776
|
|
|
2855
|
-
type
|
|
2777
|
+
type ResultSetTableColumn = {
|
|
2856
2778
|
/**
|
|
2857
2779
|
* Column display value.
|
|
2858
2780
|
*/
|
|
@@ -2862,7 +2784,7 @@ type Column = {
|
|
|
2862
2784
|
*/
|
|
2863
2785
|
isSortable?: boolean;
|
|
2864
2786
|
};
|
|
2865
|
-
type
|
|
2787
|
+
type ResultSetTableRow = {
|
|
2866
2788
|
/**
|
|
2867
2789
|
* Value to be displayed in the cell.
|
|
2868
2790
|
*/
|
|
@@ -2872,18 +2794,17 @@ type Cell = {
|
|
|
2872
2794
|
* column. If not indicated displayValue will be used for sorting.
|
|
2873
2795
|
*/
|
|
2874
2796
|
sortValue?: string | number | Date;
|
|
2875
|
-
};
|
|
2876
|
-
type Row = Cell[];
|
|
2797
|
+
}[];
|
|
2877
2798
|
type CommonProps$3 = {
|
|
2878
2799
|
/**
|
|
2879
2800
|
* An array of objects representing the columns of the table.
|
|
2880
2801
|
*/
|
|
2881
|
-
columns:
|
|
2802
|
+
columns: ResultSetTableColumn[];
|
|
2882
2803
|
/**
|
|
2883
2804
|
* Size of the margin to be applied to the component. You can pass an object with 'top',
|
|
2884
2805
|
* 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2885
2806
|
*/
|
|
2886
|
-
margin?: Space
|
|
2807
|
+
margin?: Space | Margin;
|
|
2887
2808
|
/**
|
|
2888
2809
|
* Determines the visual style and layout
|
|
2889
2810
|
* - "default": The default mode with big spacing
|
|
@@ -2894,7 +2815,7 @@ type CommonProps$3 = {
|
|
|
2894
2815
|
* An array of objects representing the rows of the table, you will have
|
|
2895
2816
|
* as many objects as columns in the table.
|
|
2896
2817
|
*/
|
|
2897
|
-
rows:
|
|
2818
|
+
rows: ResultSetTableRow[];
|
|
2898
2819
|
/**
|
|
2899
2820
|
* Value of the tabindex attribute applied to the sortable icon.
|
|
2900
2821
|
*/
|
|
@@ -2948,14 +2869,18 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2948
2869
|
*/
|
|
2949
2870
|
showGoToPage?: never;
|
|
2950
2871
|
};
|
|
2951
|
-
type
|
|
2872
|
+
type ResultSetTableProps = PrettifyTypes<PaginatedProps | NonPaginatedProps>;
|
|
2952
2873
|
|
|
2953
2874
|
declare const DxcResultsetTable: {
|
|
2954
|
-
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }:
|
|
2955
|
-
ActionsCell: ({ actions }:
|
|
2875
|
+
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: ResultSetTableProps): react.JSX.Element;
|
|
2876
|
+
ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
|
|
2956
2877
|
};
|
|
2957
2878
|
|
|
2958
|
-
|
|
2879
|
+
/**
|
|
2880
|
+
* Reference to the select component.
|
|
2881
|
+
*/
|
|
2882
|
+
type RefType$4 = React.Ref<HTMLDivElement>;
|
|
2883
|
+
type SelectOption = {
|
|
2959
2884
|
/**
|
|
2960
2885
|
* Element used as the icon that will be placed before the option label.
|
|
2961
2886
|
* It can be an inline SVG or Material Symbol name. If the url option
|
|
@@ -2974,7 +2899,7 @@ type ListOptionType = {
|
|
|
2974
2899
|
*/
|
|
2975
2900
|
value: string;
|
|
2976
2901
|
};
|
|
2977
|
-
type
|
|
2902
|
+
type SelectOptionGroup = {
|
|
2978
2903
|
/**
|
|
2979
2904
|
* Label of the group to be shown in the select's listbox.
|
|
2980
2905
|
*/
|
|
@@ -2982,7 +2907,7 @@ type ListOptionGroupType = {
|
|
|
2982
2907
|
/**
|
|
2983
2908
|
* List of the grouped options.
|
|
2984
2909
|
*/
|
|
2985
|
-
options:
|
|
2910
|
+
options: SelectOption[];
|
|
2986
2911
|
};
|
|
2987
2912
|
type CommonProps$2 = {
|
|
2988
2913
|
/**
|
|
@@ -3014,7 +2939,7 @@ type CommonProps$2 = {
|
|
|
3014
2939
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3015
2940
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3016
2941
|
*/
|
|
3017
|
-
margin?: Space
|
|
2942
|
+
margin?: Space | Margin;
|
|
3018
2943
|
/**
|
|
3019
2944
|
* Name attribute of the input element. This attribute will allow users
|
|
3020
2945
|
* to find the component's value during the submit event. In this event,
|
|
@@ -3034,11 +2959,15 @@ type CommonProps$2 = {
|
|
|
3034
2959
|
/**
|
|
3035
2960
|
* An array of objects representing the selectable options.
|
|
3036
2961
|
*/
|
|
3037
|
-
options:
|
|
2962
|
+
options: SelectOption[] | SelectOptionGroup[];
|
|
3038
2963
|
/**
|
|
3039
2964
|
* Text to be put as placeholder of the select.
|
|
3040
2965
|
*/
|
|
3041
2966
|
placeholder?: string;
|
|
2967
|
+
/**
|
|
2968
|
+
* Reference to the select component.
|
|
2969
|
+
*/
|
|
2970
|
+
ref?: RefType$4;
|
|
3042
2971
|
/**
|
|
3043
2972
|
* If true, enables search functionality.
|
|
3044
2973
|
*/
|
|
@@ -3143,11 +3072,18 @@ type MultipleSelect = CommonProps$2 & {
|
|
|
3143
3072
|
*/
|
|
3144
3073
|
value?: string[];
|
|
3145
3074
|
};
|
|
3146
|
-
type
|
|
3075
|
+
type SelectProps = PrettifyTypes<SingleSelect | MultipleSelect>;
|
|
3147
3076
|
|
|
3148
|
-
declare const DxcSelect:
|
|
3077
|
+
declare const DxcSelect: {
|
|
3078
|
+
({ ariaLabel, defaultValue, disabled, enableSelectAll, error, helperText, label, margin, multiple, name, onBlur, onChange, optional, options, placeholder, ref, searchable, searchByStartsWith, size, tabIndex, value, virtualizedHeight, }: SelectProps): react.JSX.Element;
|
|
3079
|
+
displayName: string;
|
|
3080
|
+
};
|
|
3149
3081
|
|
|
3150
|
-
|
|
3082
|
+
/**
|
|
3083
|
+
* Reference to the component.
|
|
3084
|
+
*/
|
|
3085
|
+
type RefType$3 = React.Ref<HTMLDivElement>;
|
|
3086
|
+
type SliderProps = {
|
|
3151
3087
|
/**
|
|
3152
3088
|
* Specifies a string to be used as the name for the slider element when no `label` is provided.
|
|
3153
3089
|
*/
|
|
@@ -3177,7 +3113,7 @@ type Props$b = {
|
|
|
3177
3113
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3178
3114
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3179
3115
|
*/
|
|
3180
|
-
margin?: Space
|
|
3116
|
+
margin?: Space | Margin;
|
|
3181
3117
|
/**
|
|
3182
3118
|
* Whether the marks between each step should be shown or not.
|
|
3183
3119
|
*/
|
|
@@ -3204,6 +3140,10 @@ type Props$b = {
|
|
|
3204
3140
|
* The new value will be passed as a parameter when this function is executed.
|
|
3205
3141
|
*/
|
|
3206
3142
|
onDragEnd?: (value: number) => void;
|
|
3143
|
+
/**
|
|
3144
|
+
* Reference to the component.
|
|
3145
|
+
*/
|
|
3146
|
+
ref?: RefType$3;
|
|
3207
3147
|
/**
|
|
3208
3148
|
* Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
|
|
3209
3149
|
*/
|
|
@@ -3226,9 +3166,12 @@ type Props$b = {
|
|
|
3226
3166
|
value?: number;
|
|
3227
3167
|
};
|
|
3228
3168
|
|
|
3229
|
-
declare const DxcSlider:
|
|
3169
|
+
declare const DxcSlider: {
|
|
3170
|
+
({ ariaLabel, defaultValue, disabled, helperText, label, labelFormatCallback, margin, marks, maxValue, minValue, name, onChange, onDragEnd, ref, showLimitsValues, showInput, size, step, value, }: SliderProps): react.JSX.Element;
|
|
3171
|
+
displayName: string;
|
|
3172
|
+
};
|
|
3230
3173
|
|
|
3231
|
-
type
|
|
3174
|
+
type SpinnerProps = {
|
|
3232
3175
|
/**
|
|
3233
3176
|
* Specifies a string to be used as the name for the spinner element when no `label` is provided or the `mode` is set to small.
|
|
3234
3177
|
*/
|
|
@@ -3246,7 +3189,7 @@ type Props$a = {
|
|
|
3246
3189
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3247
3190
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3248
3191
|
*/
|
|
3249
|
-
margin?: Space
|
|
3192
|
+
margin?: Space | Margin;
|
|
3250
3193
|
/**
|
|
3251
3194
|
* Available modes of the spinner.
|
|
3252
3195
|
*/
|
|
@@ -3262,11 +3205,9 @@ type Props$a = {
|
|
|
3262
3205
|
value?: number;
|
|
3263
3206
|
};
|
|
3264
3207
|
|
|
3265
|
-
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }:
|
|
3208
|
+
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: SpinnerProps) => react.JSX.Element;
|
|
3266
3209
|
|
|
3267
|
-
type
|
|
3268
|
-
type Size = "small" | "medium" | "large";
|
|
3269
|
-
type Props$9 = {
|
|
3210
|
+
type StatusLightProps = {
|
|
3270
3211
|
/**
|
|
3271
3212
|
* It will define the color of the light based on its semantic meaning.
|
|
3272
3213
|
*/
|
|
@@ -3278,12 +3219,16 @@ type Props$9 = {
|
|
|
3278
3219
|
/**
|
|
3279
3220
|
* Size of the component. Should be defined based on its importance and/or available space.
|
|
3280
3221
|
*/
|
|
3281
|
-
size?:
|
|
3222
|
+
size?: "small" | "medium" | "large";
|
|
3282
3223
|
};
|
|
3283
3224
|
|
|
3284
|
-
declare function DxcStatusLight({ label, mode, size }:
|
|
3225
|
+
declare function DxcStatusLight({ label, mode, size }: StatusLightProps): react.JSX.Element;
|
|
3285
3226
|
|
|
3286
|
-
|
|
3227
|
+
/**
|
|
3228
|
+
* Reference to the component.
|
|
3229
|
+
*/
|
|
3230
|
+
type RefType$2 = React.Ref<HTMLDivElement>;
|
|
3231
|
+
type SwitchProps = {
|
|
3287
3232
|
/**
|
|
3288
3233
|
* Specifies a string to be used as the name for the switch element when no `label` is provided.
|
|
3289
3234
|
*/
|
|
@@ -3313,7 +3258,7 @@ type Props$8 = {
|
|
|
3313
3258
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3314
3259
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3315
3260
|
*/
|
|
3316
|
-
margin?: Space
|
|
3261
|
+
margin?: Space | Margin;
|
|
3317
3262
|
/**
|
|
3318
3263
|
* Name attribute of the input element.
|
|
3319
3264
|
*/
|
|
@@ -3327,6 +3272,10 @@ type Props$8 = {
|
|
|
3327
3272
|
* If true, the component will display '(Optional)' next to the label.
|
|
3328
3273
|
*/
|
|
3329
3274
|
optional?: boolean;
|
|
3275
|
+
/**
|
|
3276
|
+
* Reference to the component.
|
|
3277
|
+
*/
|
|
3278
|
+
ref?: RefType$2;
|
|
3330
3279
|
/**
|
|
3331
3280
|
* Size of the component.
|
|
3332
3281
|
*/
|
|
@@ -3342,11 +3291,56 @@ type Props$8 = {
|
|
|
3342
3291
|
value?: string;
|
|
3343
3292
|
};
|
|
3344
3293
|
|
|
3345
|
-
declare const DxcSwitch:
|
|
3294
|
+
declare const DxcSwitch: {
|
|
3295
|
+
({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, ref, size, tabIndex, value, }: SwitchProps): react.JSX.Element;
|
|
3296
|
+
displayName: string;
|
|
3297
|
+
};
|
|
3298
|
+
|
|
3299
|
+
type BaseActionCell = {
|
|
3300
|
+
disabled?: boolean;
|
|
3301
|
+
tabIndex?: number;
|
|
3302
|
+
title: string;
|
|
3303
|
+
};
|
|
3304
|
+
type TableActionCell = PrettifyTypes<BaseActionCell & ({
|
|
3305
|
+
icon: string | SVG;
|
|
3306
|
+
onClick: () => void;
|
|
3307
|
+
options?: never;
|
|
3308
|
+
} | {
|
|
3309
|
+
icon?: never;
|
|
3310
|
+
onClick: (value?: string) => void;
|
|
3311
|
+
options: DropdownOption[];
|
|
3312
|
+
})>;
|
|
3313
|
+
type ActionsCellProps = {
|
|
3314
|
+
/**
|
|
3315
|
+
* It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
|
|
3316
|
+
* or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
|
|
3317
|
+
* Only the first action with options will be displayed and only up to 3 actions.
|
|
3318
|
+
* In the case of the dropdown the click function will pass the value assigned to the option.
|
|
3319
|
+
*/
|
|
3320
|
+
actions: TableActionCell[];
|
|
3321
|
+
};
|
|
3322
|
+
type TableProps = {
|
|
3323
|
+
/**
|
|
3324
|
+
* The center section of the table. Can be used to render custom
|
|
3325
|
+
* content in this area.
|
|
3326
|
+
*/
|
|
3327
|
+
children: ReactNode;
|
|
3328
|
+
/**
|
|
3329
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3330
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3331
|
+
*/
|
|
3332
|
+
margin?: Space | Margin;
|
|
3333
|
+
/**
|
|
3334
|
+
* Determines the visual style and layout
|
|
3335
|
+
* - "default": Default table size.
|
|
3336
|
+
* - "reduced": More compact table with less spacing for high density information.
|
|
3337
|
+
*/
|
|
3338
|
+
mode?: "default" | "reduced";
|
|
3339
|
+
};
|
|
3346
3340
|
|
|
3347
3341
|
declare const DxcTable: {
|
|
3348
|
-
({ children, margin, mode }:
|
|
3349
|
-
ActionsCell: ({ actions }:
|
|
3342
|
+
({ children, margin, mode }: TableProps): react.JSX.Element;
|
|
3343
|
+
ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
|
|
3350
3344
|
};
|
|
3351
3345
|
|
|
3352
3346
|
type CommonTabProps = {
|
|
@@ -3358,16 +3352,17 @@ type CommonTabProps = {
|
|
|
3358
3352
|
children: ReactNode;
|
|
3359
3353
|
onClick?: () => void;
|
|
3360
3354
|
onHover?: () => void;
|
|
3355
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
3361
3356
|
};
|
|
3362
|
-
type
|
|
3357
|
+
type TabsTabProps = PrettifyTypes<CommonTabProps & ({
|
|
3363
3358
|
tabId: string;
|
|
3364
3359
|
label?: string;
|
|
3365
3360
|
icon?: string | SVG;
|
|
3366
|
-
}
|
|
3361
|
+
} | (CommonTabProps & {
|
|
3367
3362
|
tabId?: string;
|
|
3368
3363
|
label: string;
|
|
3369
3364
|
icon?: string | SVG;
|
|
3370
|
-
})
|
|
3365
|
+
}))>;
|
|
3371
3366
|
type TabsProps = {
|
|
3372
3367
|
/**
|
|
3373
3368
|
* Whether the icon should appear above or to the left of the label.
|
|
@@ -3377,7 +3372,7 @@ type TabsProps = {
|
|
|
3377
3372
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3378
3373
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3379
3374
|
*/
|
|
3380
|
-
margin?: Space
|
|
3375
|
+
margin?: Space | Margin;
|
|
3381
3376
|
/**
|
|
3382
3377
|
* Value of the tabindex attribute applied to each tab.
|
|
3383
3378
|
*/
|
|
@@ -3387,14 +3382,20 @@ type TabsProps = {
|
|
|
3387
3382
|
*/
|
|
3388
3383
|
children?: ReactNode;
|
|
3389
3384
|
};
|
|
3390
|
-
type Props$7 = TabsProps;
|
|
3391
3385
|
|
|
3392
3386
|
declare const DxcTabs: {
|
|
3393
|
-
({ children, iconPosition, margin, tabIndex }:
|
|
3394
|
-
Tab:
|
|
3387
|
+
({ children, iconPosition, margin, tabIndex }: TabsProps): react.JSX.Element;
|
|
3388
|
+
Tab: {
|
|
3389
|
+
({ active, disabled, icon, label, notificationNumber, onClick, onHover, ref, title, tabId, }: TabsTabProps): react.JSX.Element;
|
|
3390
|
+
displayName: string;
|
|
3391
|
+
};
|
|
3395
3392
|
};
|
|
3396
3393
|
|
|
3397
|
-
|
|
3394
|
+
/**
|
|
3395
|
+
* Reference to the component.
|
|
3396
|
+
*/
|
|
3397
|
+
type RefType$1 = React.Ref<HTMLDivElement>;
|
|
3398
|
+
type TextAreaProps = {
|
|
3398
3399
|
/**
|
|
3399
3400
|
* Specifies a string to be used as the name for the textarea element when no `label` is provided.
|
|
3400
3401
|
*/
|
|
@@ -3443,7 +3444,7 @@ type Props$6 = {
|
|
|
3443
3444
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3444
3445
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3445
3446
|
*/
|
|
3446
|
-
margin?: Space
|
|
3447
|
+
margin?: Space | Margin;
|
|
3447
3448
|
/**
|
|
3448
3449
|
* Specifies the minimum length allowed by the textarea.
|
|
3449
3450
|
* This will be checked both when the textarea loses the
|
|
@@ -3503,6 +3504,10 @@ type Props$6 = {
|
|
|
3503
3504
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
3504
3505
|
*/
|
|
3505
3506
|
readOnly?: boolean;
|
|
3507
|
+
/**
|
|
3508
|
+
* Reference to the container element of the textarea component.
|
|
3509
|
+
*/
|
|
3510
|
+
ref?: RefType$1;
|
|
3506
3511
|
/**
|
|
3507
3512
|
* Number of rows of the textarea.
|
|
3508
3513
|
*/
|
|
@@ -3528,25 +3533,12 @@ type Props$6 = {
|
|
|
3528
3533
|
verticalGrow?: "auto" | "manual" | "none";
|
|
3529
3534
|
};
|
|
3530
3535
|
|
|
3531
|
-
declare const DxcTextarea:
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
/**
|
|
3535
|
-
* This function will be called when the user clicks the action.
|
|
3536
|
-
*/
|
|
3537
|
-
onClick: () => void;
|
|
3538
|
-
/**
|
|
3539
|
-
* Icon to be placed in the action..
|
|
3540
|
-
*/
|
|
3541
|
-
icon: string | SVG;
|
|
3542
|
-
/**
|
|
3543
|
-
* Text representing advisory information related
|
|
3544
|
-
* to the button's action. Under the hood, this prop also serves
|
|
3545
|
-
* as an accessible label for the component.
|
|
3546
|
-
*/
|
|
3547
|
-
title?: string;
|
|
3536
|
+
declare const DxcTextarea: {
|
|
3537
|
+
({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, onBlur, onChange, optional, pattern, placeholder, readOnly, ref, rows, size, tabIndex, value, verticalGrow, }: TextAreaProps): react.JSX.Element;
|
|
3538
|
+
displayName: string;
|
|
3548
3539
|
};
|
|
3549
|
-
|
|
3540
|
+
|
|
3541
|
+
type TextInputProps = {
|
|
3550
3542
|
/**
|
|
3551
3543
|
* Sets the alignment inside the input.
|
|
3552
3544
|
*/
|
|
@@ -3593,6 +3585,10 @@ type Props$5 = {
|
|
|
3593
3585
|
* and the custom action will not execute its onClick event.
|
|
3594
3586
|
*/
|
|
3595
3587
|
readOnly?: boolean;
|
|
3588
|
+
/**
|
|
3589
|
+
* Ref to the input element.
|
|
3590
|
+
*/
|
|
3591
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
3596
3592
|
/**
|
|
3597
3593
|
* If true, the input will be optional, showing '(Optional)'
|
|
3598
3594
|
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
@@ -3684,7 +3680,7 @@ type Props$5 = {
|
|
|
3684
3680
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3685
3681
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3686
3682
|
*/
|
|
3687
|
-
margin?: Space
|
|
3683
|
+
margin?: Space | Margin;
|
|
3688
3684
|
/**
|
|
3689
3685
|
* Size of the component.
|
|
3690
3686
|
*/
|
|
@@ -3699,9 +3695,16 @@ type Props$5 = {
|
|
|
3699
3695
|
ariaLabel?: string;
|
|
3700
3696
|
};
|
|
3701
3697
|
|
|
3702
|
-
declare const DxcTextInput:
|
|
3698
|
+
declare const DxcTextInput: {
|
|
3699
|
+
({ alignment, action, ariaLabel, autocomplete, clearable, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, optional, placeholder, prefix, readOnly, suffix, onBlur, onChange, pattern, ref, size, suggestions, tabIndex, value, }: TextInputProps): JSX.Element;
|
|
3700
|
+
displayName: string;
|
|
3701
|
+
};
|
|
3703
3702
|
|
|
3704
|
-
|
|
3703
|
+
/**
|
|
3704
|
+
* Reference to the component.
|
|
3705
|
+
*/
|
|
3706
|
+
type RefType = React.Ref<HTMLDivElement>;
|
|
3707
|
+
type TimeInputProps = {
|
|
3705
3708
|
/**
|
|
3706
3709
|
* Specifies a string to be used as the name for the timeInput element when no `label` is provided.
|
|
3707
3710
|
*/
|
|
@@ -3766,6 +3769,10 @@ type Props$4 = {
|
|
|
3766
3769
|
* In addition, the clear action will not be displayed even if the flag is set to true.
|
|
3767
3770
|
*/
|
|
3768
3771
|
readOnly?: boolean;
|
|
3772
|
+
/**
|
|
3773
|
+
* Reference to the component.
|
|
3774
|
+
*/
|
|
3775
|
+
ref?: RefType;
|
|
3769
3776
|
/**
|
|
3770
3777
|
* If true, the component will display seconds and allow the user to input them. Otherwise, seconds will not be shown and the user will not be able to input them.
|
|
3771
3778
|
*/
|
|
@@ -3788,7 +3795,7 @@ type Props$4 = {
|
|
|
3788
3795
|
value?: string;
|
|
3789
3796
|
};
|
|
3790
3797
|
|
|
3791
|
-
declare const DxcTimeInput:
|
|
3798
|
+
declare const DxcTimeInput: ({ ariaLabel, clearable, defaultValue, disabled, error, helperText, label, name, optional, readOnly, onBlur, onChange, ref, showSeconds, size, tabIndex, timeFormat, value, }: TimeInputProps) => react.JSX.Element;
|
|
3792
3799
|
|
|
3793
3800
|
type Action = {
|
|
3794
3801
|
/**
|
|
@@ -3814,24 +3821,35 @@ type CommonProps$1 = {
|
|
|
3814
3821
|
*/
|
|
3815
3822
|
message: string;
|
|
3816
3823
|
};
|
|
3817
|
-
type DefaultToast = CommonProps$1 & {
|
|
3824
|
+
type DefaultToast = PrettifyTypes<CommonProps$1 & {
|
|
3818
3825
|
/**
|
|
3819
3826
|
* Material Symbol name or SVG element as the icon that will be placed next to the panel label.
|
|
3820
3827
|
* When using Material Symbols, replace spaces with underscores.
|
|
3821
3828
|
* By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
|
|
3822
3829
|
*/
|
|
3823
3830
|
icon?: string | SVG;
|
|
3824
|
-
}
|
|
3825
|
-
type LoadingToast = CommonProps$1 & {
|
|
3831
|
+
}>;
|
|
3832
|
+
type LoadingToast = PrettifyTypes<CommonProps$1 & {
|
|
3826
3833
|
loading: boolean;
|
|
3827
|
-
}
|
|
3828
|
-
type SemanticToast = CommonProps$1 & {
|
|
3834
|
+
}>;
|
|
3835
|
+
type SemanticToast = PrettifyTypes<CommonProps$1 & {
|
|
3829
3836
|
/**
|
|
3830
3837
|
* Flag that allows to hide the semantic icon of the toast.
|
|
3831
3838
|
*/
|
|
3832
3839
|
hideSemanticIcon?: boolean;
|
|
3840
|
+
}>;
|
|
3841
|
+
type Semantic = "default" | "info" | "success" | "warning";
|
|
3842
|
+
type ToastProps = {
|
|
3843
|
+
action?: Action;
|
|
3844
|
+
duration: number;
|
|
3845
|
+
icon?: string | SVG;
|
|
3846
|
+
loading?: boolean;
|
|
3847
|
+
message: string;
|
|
3848
|
+
onClear: () => void;
|
|
3849
|
+
semantic: Semantic;
|
|
3850
|
+
hideSemanticIcon?: boolean;
|
|
3833
3851
|
};
|
|
3834
|
-
type
|
|
3852
|
+
type ToastsQueueProps = {
|
|
3835
3853
|
/**
|
|
3836
3854
|
* Tree of components from which the useToast hook can be triggered.
|
|
3837
3855
|
*/
|
|
@@ -3843,9 +3861,9 @@ type ToastsQueuePropsType = {
|
|
|
3843
3861
|
duration?: number;
|
|
3844
3862
|
};
|
|
3845
3863
|
|
|
3846
|
-
declare function DxcToastsQueue({ children, duration }:
|
|
3864
|
+
declare function DxcToastsQueue({ children, duration }: ToastsQueueProps): react.JSX.Element;
|
|
3847
3865
|
|
|
3848
|
-
type
|
|
3866
|
+
type ToggleOptionIcon = {
|
|
3849
3867
|
/**
|
|
3850
3868
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3851
3869
|
*/
|
|
@@ -3860,7 +3878,7 @@ type OptionIcon = {
|
|
|
3860
3878
|
*/
|
|
3861
3879
|
title: string;
|
|
3862
3880
|
};
|
|
3863
|
-
type
|
|
3881
|
+
type ToggleOptionLabel = {
|
|
3864
3882
|
/**
|
|
3865
3883
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3866
3884
|
*/
|
|
@@ -3875,7 +3893,7 @@ type OptionLabel = {
|
|
|
3875
3893
|
*/
|
|
3876
3894
|
title?: never;
|
|
3877
3895
|
};
|
|
3878
|
-
type
|
|
3896
|
+
type ToggleOption = PrettifyTypes<{
|
|
3879
3897
|
/**
|
|
3880
3898
|
* If true, the option will be disabled.
|
|
3881
3899
|
*/
|
|
@@ -3884,17 +3902,17 @@ type Option = {
|
|
|
3884
3902
|
* Number with the option inner value.
|
|
3885
3903
|
*/
|
|
3886
3904
|
value: number;
|
|
3887
|
-
} & (
|
|
3905
|
+
} & (ToggleOptionIcon | ToggleOptionLabel)>;
|
|
3888
3906
|
type CommonProps = {
|
|
3889
3907
|
/**
|
|
3890
3908
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3891
3909
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3892
3910
|
*/
|
|
3893
|
-
margin?: Space
|
|
3911
|
+
margin?: Space | Margin;
|
|
3894
3912
|
/**
|
|
3895
3913
|
* An array of objects representing the selectable options.
|
|
3896
3914
|
*/
|
|
3897
|
-
options:
|
|
3915
|
+
options: ToggleOption[];
|
|
3898
3916
|
/**
|
|
3899
3917
|
* The orientation of the toggle group.
|
|
3900
3918
|
*/
|
|
@@ -3944,11 +3962,11 @@ type SingleSelectionToggleGroup = {
|
|
|
3944
3962
|
*/
|
|
3945
3963
|
value?: number;
|
|
3946
3964
|
};
|
|
3947
|
-
type
|
|
3965
|
+
type ToggleGroupProps = PrettifyTypes<CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup)>;
|
|
3948
3966
|
|
|
3949
|
-
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }:
|
|
3967
|
+
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: ToggleGroupProps): react.JSX.Element;
|
|
3950
3968
|
|
|
3951
|
-
type
|
|
3969
|
+
type TooltipProps = {
|
|
3952
3970
|
/**
|
|
3953
3971
|
* Content in which the Tooltip will be displayed.
|
|
3954
3972
|
*/
|
|
@@ -3963,9 +3981,9 @@ type Props$2 = {
|
|
|
3963
3981
|
position?: "bottom" | "top" | "left" | "right";
|
|
3964
3982
|
};
|
|
3965
3983
|
|
|
3966
|
-
declare const DxcTooltip: (props:
|
|
3984
|
+
declare const DxcTooltip: (props: TooltipProps) => react.JSX.Element;
|
|
3967
3985
|
|
|
3968
|
-
type
|
|
3986
|
+
type TypographyProps = {
|
|
3969
3987
|
as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
|
|
3970
3988
|
children: ReactNode;
|
|
3971
3989
|
color?: string;
|
|
@@ -3982,9 +4000,9 @@ type Props$1 = {
|
|
|
3982
4000
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
3983
4001
|
};
|
|
3984
4002
|
|
|
3985
|
-
declare function DxcTypography({ children, ...props }:
|
|
4003
|
+
declare function DxcTypography({ children, ...props }: TypographyProps): react.JSX.Element;
|
|
3986
4004
|
|
|
3987
|
-
type
|
|
4005
|
+
type WizardStepProps = {
|
|
3988
4006
|
/**
|
|
3989
4007
|
* Step label.
|
|
3990
4008
|
*/
|
|
@@ -4006,7 +4024,7 @@ type StepProps = {
|
|
|
4006
4024
|
*/
|
|
4007
4025
|
valid?: boolean;
|
|
4008
4026
|
};
|
|
4009
|
-
type
|
|
4027
|
+
type WizardProps = {
|
|
4010
4028
|
/**
|
|
4011
4029
|
* The wizard can be shown in horizontal or vertical.
|
|
4012
4030
|
*/
|
|
@@ -4027,19 +4045,19 @@ type Props = {
|
|
|
4027
4045
|
/**
|
|
4028
4046
|
* An array of objects representing the steps.
|
|
4029
4047
|
*/
|
|
4030
|
-
steps:
|
|
4048
|
+
steps: WizardStepProps[];
|
|
4031
4049
|
/**
|
|
4032
4050
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
4033
4051
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
4034
4052
|
*/
|
|
4035
|
-
margin?: Space
|
|
4053
|
+
margin?: Space | Margin;
|
|
4036
4054
|
/**
|
|
4037
4055
|
* Value of the tabindex attribute that is given to all the steps.
|
|
4038
4056
|
*/
|
|
4039
4057
|
tabIndex?: number;
|
|
4040
4058
|
};
|
|
4041
4059
|
|
|
4042
|
-
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }:
|
|
4060
|
+
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: WizardProps): react.JSX.Element;
|
|
4043
4061
|
|
|
4044
4062
|
declare const defaultTranslatedComponentLabels: {
|
|
4045
4063
|
applicationLayout: {
|
|
@@ -4190,4 +4208,547 @@ declare function useToast(): {
|
|
|
4190
4208
|
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
4191
4209
|
};
|
|
4192
4210
|
|
|
4193
|
-
|
|
4211
|
+
declare const coreTokens: {
|
|
4212
|
+
/**************/
|
|
4213
|
+
/** POSITION **/
|
|
4214
|
+
/**************/
|
|
4215
|
+
"--z-app-layout-sidenav": number;
|
|
4216
|
+
"--z-app-layout-header": number;
|
|
4217
|
+
"--z-header-overlay": number;
|
|
4218
|
+
"--z-header-menu": number;
|
|
4219
|
+
"--z-date-input": number;
|
|
4220
|
+
"--z-dropdown": number;
|
|
4221
|
+
"--z-textinput": number;
|
|
4222
|
+
"--z-select": number;
|
|
4223
|
+
"--z-contextualmenu": number;
|
|
4224
|
+
"--z-dialog": number;
|
|
4225
|
+
"--z-spinner-overlay": number;
|
|
4226
|
+
"--z-progressbar-overlay": number;
|
|
4227
|
+
"--z-alert": number;
|
|
4228
|
+
"--z-toast": number;
|
|
4229
|
+
"--z-tooltip": number;
|
|
4230
|
+
/************/
|
|
4231
|
+
/** TOKENS **/
|
|
4232
|
+
/************/
|
|
4233
|
+
"--color-absolutes-black": string;
|
|
4234
|
+
"--color-absolutes-white": string;
|
|
4235
|
+
"--color-alpha-100-a": string;
|
|
4236
|
+
"--color-alpha-200-a": string;
|
|
4237
|
+
"--color-alpha-300-a": string;
|
|
4238
|
+
"--color-alpha-400-a": string;
|
|
4239
|
+
"--color-alpha-500-a": string;
|
|
4240
|
+
"--color-alpha-600-a": string;
|
|
4241
|
+
"--color-alpha-700-a": string;
|
|
4242
|
+
"--color-alpha-800-a": string;
|
|
4243
|
+
"--color-alpha-900-a": string;
|
|
4244
|
+
"--color-primary-50": string;
|
|
4245
|
+
"--color-primary-100": string;
|
|
4246
|
+
"--color-primary-200": string;
|
|
4247
|
+
"--color-primary-300": string;
|
|
4248
|
+
"--color-primary-400": string;
|
|
4249
|
+
"--color-primary-500": string;
|
|
4250
|
+
"--color-primary-600": string;
|
|
4251
|
+
"--color-primary-700": string;
|
|
4252
|
+
"--color-primary-800": string;
|
|
4253
|
+
"--color-primary-900": string;
|
|
4254
|
+
"--color-secondary-50": string;
|
|
4255
|
+
"--color-secondary-100": string;
|
|
4256
|
+
"--color-secondary-200": string;
|
|
4257
|
+
"--color-secondary-300": string;
|
|
4258
|
+
"--color-secondary-400": string;
|
|
4259
|
+
"--color-secondary-500": string;
|
|
4260
|
+
"--color-secondary-600": string;
|
|
4261
|
+
"--color-secondary-700": string;
|
|
4262
|
+
"--color-secondary-800": string;
|
|
4263
|
+
"--color-secondary-900": string;
|
|
4264
|
+
"--color-tertiary-50": string;
|
|
4265
|
+
"--color-tertiary-100": string;
|
|
4266
|
+
"--color-tertiary-200": string;
|
|
4267
|
+
"--color-tertiary-300": string;
|
|
4268
|
+
"--color-tertiary-400": string;
|
|
4269
|
+
"--color-tertiary-500": string;
|
|
4270
|
+
"--color-tertiary-600": string;
|
|
4271
|
+
"--color-tertiary-700": string;
|
|
4272
|
+
"--color-tertiary-800": string;
|
|
4273
|
+
"--color-tertiary-900": string;
|
|
4274
|
+
"--color-semantic01-50": string;
|
|
4275
|
+
"--color-semantic01-100": string;
|
|
4276
|
+
"--color-semantic01-200": string;
|
|
4277
|
+
"--color-semantic01-300": string;
|
|
4278
|
+
"--color-semantic01-400": string;
|
|
4279
|
+
"--color-semantic01-500": string;
|
|
4280
|
+
"--color-semantic01-600": string;
|
|
4281
|
+
"--color-semantic01-700": string;
|
|
4282
|
+
"--color-semantic01-800": string;
|
|
4283
|
+
"--color-semantic01-900": string;
|
|
4284
|
+
"--color-semantic02-50": string;
|
|
4285
|
+
"--color-semantic02-100": string;
|
|
4286
|
+
"--color-semantic02-200": string;
|
|
4287
|
+
"--color-semantic02-300": string;
|
|
4288
|
+
"--color-semantic02-400": string;
|
|
4289
|
+
"--color-semantic02-500": string;
|
|
4290
|
+
"--color-semantic02-600": string;
|
|
4291
|
+
"--color-semantic02-700": string;
|
|
4292
|
+
"--color-semantic02-800": string;
|
|
4293
|
+
"--color-semantic02-900": string;
|
|
4294
|
+
"--color-semantic03-50": string;
|
|
4295
|
+
"--color-semantic03-100": string;
|
|
4296
|
+
"--color-semantic03-200": string;
|
|
4297
|
+
"--color-semantic03-300": string;
|
|
4298
|
+
"--color-semantic03-400": string;
|
|
4299
|
+
"--color-semantic03-500": string;
|
|
4300
|
+
"--color-semantic03-600": string;
|
|
4301
|
+
"--color-semantic03-700": string;
|
|
4302
|
+
"--color-semantic03-800": string;
|
|
4303
|
+
"--color-semantic03-900": string;
|
|
4304
|
+
"--color-semantic04-50": string;
|
|
4305
|
+
"--color-semantic04-100": string;
|
|
4306
|
+
"--color-semantic04-200": string;
|
|
4307
|
+
"--color-semantic04-300": string;
|
|
4308
|
+
"--color-semantic04-400": string;
|
|
4309
|
+
"--color-semantic04-500": string;
|
|
4310
|
+
"--color-semantic04-600": string;
|
|
4311
|
+
"--color-semantic04-700": string;
|
|
4312
|
+
"--color-semantic04-800": string;
|
|
4313
|
+
"--color-semantic04-900": string;
|
|
4314
|
+
"--color-neutral-50": string;
|
|
4315
|
+
"--color-neutral-100": string;
|
|
4316
|
+
"--color-neutral-200": string;
|
|
4317
|
+
"--color-neutral-300": string;
|
|
4318
|
+
"--color-neutral-400": string;
|
|
4319
|
+
"--color-neutral-500": string;
|
|
4320
|
+
"--color-neutral-600": string;
|
|
4321
|
+
"--color-neutral-700": string;
|
|
4322
|
+
"--color-neutral-800": string;
|
|
4323
|
+
"--color-neutral-900": string;
|
|
4324
|
+
"--dimensions-0": string;
|
|
4325
|
+
"--dimensions-1": string;
|
|
4326
|
+
"--dimensions-2": string;
|
|
4327
|
+
"--dimensions-4": string;
|
|
4328
|
+
"--dimensions-8": string;
|
|
4329
|
+
"--dimensions-12": string;
|
|
4330
|
+
"--dimensions-16": string;
|
|
4331
|
+
"--dimensions-20": string;
|
|
4332
|
+
"--dimensions-24": string;
|
|
4333
|
+
"--dimensions-28": string;
|
|
4334
|
+
"--dimensions-32": string;
|
|
4335
|
+
"--dimensions-36": string;
|
|
4336
|
+
"--dimensions-40": string;
|
|
4337
|
+
"--dimensions-44": string;
|
|
4338
|
+
"--dimensions-48": string;
|
|
4339
|
+
"--dimensions-56": string;
|
|
4340
|
+
"--dimensions-64": string;
|
|
4341
|
+
"--dimensions-72": string;
|
|
4342
|
+
"--dimensions-80": string;
|
|
4343
|
+
"--dimensions-96": string;
|
|
4344
|
+
"--font-size-12": string;
|
|
4345
|
+
"--font-size-14": string;
|
|
4346
|
+
"--font-size-16": string;
|
|
4347
|
+
"--font-size-18": string;
|
|
4348
|
+
"--font-size-20": string;
|
|
4349
|
+
"--font-size-24": string;
|
|
4350
|
+
"--font-size-32": string;
|
|
4351
|
+
"--font-size-40": string;
|
|
4352
|
+
"--font-size-48": string;
|
|
4353
|
+
"--font-size-60": string;
|
|
4354
|
+
"--font-weight-light": string;
|
|
4355
|
+
"--font-weight-regular": string;
|
|
4356
|
+
"--font-weight-semibold": string;
|
|
4357
|
+
"--font-weight-bold": string;
|
|
4358
|
+
"--font-family-mono": string;
|
|
4359
|
+
"--font-family-sans": string;
|
|
4360
|
+
"--font-style-lightitalic": string;
|
|
4361
|
+
"--font-style-normal": string;
|
|
4362
|
+
"--line-style-dashed": string;
|
|
4363
|
+
"--line-style-solid": string;
|
|
4364
|
+
};
|
|
4365
|
+
declare const aliasTokens: {
|
|
4366
|
+
/************/
|
|
4367
|
+
/** TOKENS **/
|
|
4368
|
+
/************/
|
|
4369
|
+
"--border-color-info-lightest": string;
|
|
4370
|
+
"--border-color-info-lighter": string;
|
|
4371
|
+
"--border-color-info-light": string;
|
|
4372
|
+
"--border-color-info-medium": string;
|
|
4373
|
+
"--border-color-info-strong": string;
|
|
4374
|
+
"--border-color-info-stronger": string;
|
|
4375
|
+
"--border-color-info-strongest": string;
|
|
4376
|
+
"--border-color-success-light": string;
|
|
4377
|
+
"--border-color-success-medium": string;
|
|
4378
|
+
"--border-color-success-strong": string;
|
|
4379
|
+
"--border-color-warning-light": string;
|
|
4380
|
+
"--border-color-warning-medium": string;
|
|
4381
|
+
"--border-color-warning-strong": string;
|
|
4382
|
+
"--border-color-error-light": string;
|
|
4383
|
+
"--border-color-error-medium": string;
|
|
4384
|
+
"--border-color-error-strong": string;
|
|
4385
|
+
"--border-color-error-stronger": string;
|
|
4386
|
+
"--border-color-neutral-bright": string;
|
|
4387
|
+
"--border-color-neutral-brighter": string;
|
|
4388
|
+
"--border-color-neutral-dark": string;
|
|
4389
|
+
"--border-color-neutral-light": string;
|
|
4390
|
+
"--border-color-neutral-lighter": string;
|
|
4391
|
+
"--border-color-neutral-lightest": string;
|
|
4392
|
+
"--border-color-neutral-medium": string;
|
|
4393
|
+
"--border-color-neutral-strong": string;
|
|
4394
|
+
"--border-color-neutral-stronger": string;
|
|
4395
|
+
"--border-color-neutral-strongest": string;
|
|
4396
|
+
"--border-color-primary-light": string;
|
|
4397
|
+
"--border-color-primary-lighter": string;
|
|
4398
|
+
"--border-color-primary-medium": string;
|
|
4399
|
+
"--border-color-primary-strong": string;
|
|
4400
|
+
"--border-color-primary-stronger": string;
|
|
4401
|
+
"--border-color-secondary-light": string;
|
|
4402
|
+
"--border-color-secondary-medium": string;
|
|
4403
|
+
"--border-color-secondary-strong": string;
|
|
4404
|
+
"--border-color-secondary-stronger": string;
|
|
4405
|
+
"--border-color-secondary-strongest": string;
|
|
4406
|
+
"--color-bg-overlay-dark": string;
|
|
4407
|
+
"--color-bg-yellow-light": string;
|
|
4408
|
+
"--color-bg-alpha-light": string;
|
|
4409
|
+
"--color-bg-alpha-medium": string;
|
|
4410
|
+
"--color-bg-alpha-strong": string;
|
|
4411
|
+
"--color-bg-neutral-light": string;
|
|
4412
|
+
"--color-bg-neutral-lighter": string;
|
|
4413
|
+
"--color-bg-neutral-lightest": string;
|
|
4414
|
+
"--color-bg-neutral-medium": string;
|
|
4415
|
+
"--color-bg-neutral-strong": string;
|
|
4416
|
+
"--color-bg-neutral-stronger": string;
|
|
4417
|
+
"--color-bg-neutral-strongest": string;
|
|
4418
|
+
"--color-bg-primary-light": string;
|
|
4419
|
+
"--color-bg-primary-lighter": string;
|
|
4420
|
+
"--color-bg-primary-lightest": string;
|
|
4421
|
+
"--color-bg-primary-medium": string;
|
|
4422
|
+
"--color-bg-primary-strong": string;
|
|
4423
|
+
"--color-bg-primary-stronger": string;
|
|
4424
|
+
"--color-bg-primary-strongest": string;
|
|
4425
|
+
"--color-bg-secondary-light": string;
|
|
4426
|
+
"--color-bg-secondary-lighter": string;
|
|
4427
|
+
"--color-bg-secondary-lightest": string;
|
|
4428
|
+
"--color-bg-secondary-medium": string;
|
|
4429
|
+
"--color-bg-secondary-strong": string;
|
|
4430
|
+
"--color-bg-secondary-stronger": string;
|
|
4431
|
+
"--color-bg-secondary-strongest": string;
|
|
4432
|
+
"--color-bg-info-lightest": string;
|
|
4433
|
+
"--color-bg-info-lighter": string;
|
|
4434
|
+
"--color-bg-info-light": string;
|
|
4435
|
+
"--color-bg-info-medium": string;
|
|
4436
|
+
"--color-bg-info-strong": string;
|
|
4437
|
+
"--color-bg-info-stronger": string;
|
|
4438
|
+
"--color-bg-info-strongest": string;
|
|
4439
|
+
"--color-bg-success-light": string;
|
|
4440
|
+
"--color-bg-success-lighter": string;
|
|
4441
|
+
"--color-bg-success-lightest": string;
|
|
4442
|
+
"--color-bg-success-medium": string;
|
|
4443
|
+
"--color-bg-success-strong": string;
|
|
4444
|
+
"--color-bg-success-stronger": string;
|
|
4445
|
+
"--color-bg-success-strongest": string;
|
|
4446
|
+
"--color-bg-warning-light": string;
|
|
4447
|
+
"--color-bg-warning-lighter": string;
|
|
4448
|
+
"--color-bg-warning-lightest": string;
|
|
4449
|
+
"--color-bg-warning-medium": string;
|
|
4450
|
+
"--color-bg-warning-strong": string;
|
|
4451
|
+
"--color-bg-warning-stronger": string;
|
|
4452
|
+
"--color-bg-warning-strongest": string;
|
|
4453
|
+
"--color-bg-error-light": string;
|
|
4454
|
+
"--color-bg-error-lighter": string;
|
|
4455
|
+
"--color-bg-error-lightest": string;
|
|
4456
|
+
"--color-bg-error-medium": string;
|
|
4457
|
+
"--color-bg-error-strong": string;
|
|
4458
|
+
"--color-bg-error-stronger": string;
|
|
4459
|
+
"--color-bg-error-strongest": string;
|
|
4460
|
+
"--color-fg-info-lightest": string;
|
|
4461
|
+
"--color-fg-info-lighter": string;
|
|
4462
|
+
"--color-fg-info-light": string;
|
|
4463
|
+
"--color-fg-info-medium": string;
|
|
4464
|
+
"--color-fg-info-strong": string;
|
|
4465
|
+
"--color-fg-info-stronger": string;
|
|
4466
|
+
"--color-fg-info-strongest": string;
|
|
4467
|
+
"--color-fg-success-light": string;
|
|
4468
|
+
"--color-fg-success-lighter": string;
|
|
4469
|
+
"--color-fg-success-medium": string;
|
|
4470
|
+
"--color-fg-success-strong": string;
|
|
4471
|
+
"--color-fg-success-stronger": string;
|
|
4472
|
+
"--color-fg-warning-light": string;
|
|
4473
|
+
"--color-fg-warning-medium": string;
|
|
4474
|
+
"--color-fg-warning-strong": string;
|
|
4475
|
+
"--color-fg-warning-stronger": string;
|
|
4476
|
+
"--color-fg-error-light": string;
|
|
4477
|
+
"--color-fg-error-lighter": string;
|
|
4478
|
+
"--color-fg-error-medium": string;
|
|
4479
|
+
"--color-fg-error-strong": string;
|
|
4480
|
+
"--color-fg-error-stronger": string;
|
|
4481
|
+
"--color-fg-neutral-bright": string;
|
|
4482
|
+
"--color-fg-neutral-dark": string;
|
|
4483
|
+
"--color-fg-neutral-light": string;
|
|
4484
|
+
"--color-fg-neutral-lighter": string;
|
|
4485
|
+
"--color-fg-neutral-lightest": string;
|
|
4486
|
+
"--color-fg-neutral-medium": string;
|
|
4487
|
+
"--color-fg-neutral-strong": string;
|
|
4488
|
+
"--color-fg-neutral-stronger": string;
|
|
4489
|
+
"--color-fg-neutral-strongest": string;
|
|
4490
|
+
"--color-fg-neutral-yellow-dark": string;
|
|
4491
|
+
"--color-fg-primary-light": string;
|
|
4492
|
+
"--color-fg-primary-lighter": string;
|
|
4493
|
+
"--color-fg-primary-medium": string;
|
|
4494
|
+
"--color-fg-primary-strong": string;
|
|
4495
|
+
"--color-fg-primary-stronger": string;
|
|
4496
|
+
"--color-fg-primary-strongest": string;
|
|
4497
|
+
"--color-fg-secondary-light": string;
|
|
4498
|
+
"--color-fg-secondary-lighter": string;
|
|
4499
|
+
"--color-fg-secondary-medium": string;
|
|
4500
|
+
"--color-fg-secondary-strong": string;
|
|
4501
|
+
"--color-fg-secondary-stronger": string;
|
|
4502
|
+
"--color-fg-secondary-strongest": string;
|
|
4503
|
+
"--border-radius-none": string;
|
|
4504
|
+
"--border-radius-xs": string;
|
|
4505
|
+
"--border-radius-s": string;
|
|
4506
|
+
"--border-radius-m": string;
|
|
4507
|
+
"--border-radius-l": string;
|
|
4508
|
+
"--border-radius-xl": string;
|
|
4509
|
+
"--border-width-none": string;
|
|
4510
|
+
"--border-width-s": string;
|
|
4511
|
+
"--border-width-m": string;
|
|
4512
|
+
"--border-width-l": string;
|
|
4513
|
+
"--height-xxxs": string;
|
|
4514
|
+
"--height-xxs": string;
|
|
4515
|
+
"--height-xs": string;
|
|
4516
|
+
"--height-s": string;
|
|
4517
|
+
"--height-m": string;
|
|
4518
|
+
"--height-l": string;
|
|
4519
|
+
"--height-xl": string;
|
|
4520
|
+
"--height-xxl": string;
|
|
4521
|
+
"--height-xxxl": string;
|
|
4522
|
+
"--shadow-100": string;
|
|
4523
|
+
"--shadow-200": string;
|
|
4524
|
+
"--shadow-300": string;
|
|
4525
|
+
"--shadow-400": string;
|
|
4526
|
+
"--spacing-gap-none": string;
|
|
4527
|
+
"--spacing-gap-xxs": string;
|
|
4528
|
+
"--spacing-gap-xs": string;
|
|
4529
|
+
"--spacing-gap-s": string;
|
|
4530
|
+
"--spacing-gap-m": string;
|
|
4531
|
+
"--spacing-gap-ml": string;
|
|
4532
|
+
"--spacing-gap-l": string;
|
|
4533
|
+
"--spacing-gap-xl": string;
|
|
4534
|
+
"--spacing-gap-xxl": string;
|
|
4535
|
+
"--spacing-padding-none": string;
|
|
4536
|
+
"--spacing-padding-xxxs": string;
|
|
4537
|
+
"--spacing-padding-xxs": string;
|
|
4538
|
+
"--spacing-padding-xs": string;
|
|
4539
|
+
"--spacing-padding-s": string;
|
|
4540
|
+
"--spacing-padding-m": string;
|
|
4541
|
+
"--spacing-padding-ml": string;
|
|
4542
|
+
"--spacing-padding-l": string;
|
|
4543
|
+
"--spacing-padding-xl": string;
|
|
4544
|
+
"--spacing-padding-xxl": string;
|
|
4545
|
+
"--typography-body-xs": string;
|
|
4546
|
+
"--typography-body-s": string;
|
|
4547
|
+
"--typography-body-m": string;
|
|
4548
|
+
"--typography-body-l": string;
|
|
4549
|
+
"--typography-body-xl": string;
|
|
4550
|
+
"--typography-body-xxl": string;
|
|
4551
|
+
"--typography-body-regular": string;
|
|
4552
|
+
"--typography-heading-xs": string;
|
|
4553
|
+
"--typography-heading-s": string;
|
|
4554
|
+
"--typography-heading-m": string;
|
|
4555
|
+
"--typography-heading-l": string;
|
|
4556
|
+
"--typography-heading-xl": string;
|
|
4557
|
+
"--typography-heading-xxl": string;
|
|
4558
|
+
"--typography-heading-light": string;
|
|
4559
|
+
"--typography-heading-regular": string;
|
|
4560
|
+
"--typography-heading-semibold": string;
|
|
4561
|
+
"--typography-helper-text-s": string;
|
|
4562
|
+
"--typography-helper-text-m": string;
|
|
4563
|
+
"--typography-helper-text-l": string;
|
|
4564
|
+
"--typography-helper-text-light": string;
|
|
4565
|
+
"--typography-helper-text-regular": string;
|
|
4566
|
+
"--typography-helper-text-semibold": string;
|
|
4567
|
+
"--typography-helper-text-italic": string;
|
|
4568
|
+
"--typography-label-s": string;
|
|
4569
|
+
"--typography-label-m": string;
|
|
4570
|
+
"--typography-label-l": string;
|
|
4571
|
+
"--typography-label-xl": string;
|
|
4572
|
+
"--typography-label-regular": string;
|
|
4573
|
+
"--typography-label-semibold": string;
|
|
4574
|
+
"--typography-link-m": string;
|
|
4575
|
+
"--typography-link-regular": string;
|
|
4576
|
+
"--typography-title-s": string;
|
|
4577
|
+
"--typography-title-m": string;
|
|
4578
|
+
"--typography-title-l": string;
|
|
4579
|
+
"--typography-title-xl": string;
|
|
4580
|
+
"--typography-title-bold": string;
|
|
4581
|
+
"--border-style-default": string;
|
|
4582
|
+
"--border-style-outline": string;
|
|
4583
|
+
"--typography-font-family": string;
|
|
4584
|
+
};
|
|
4585
|
+
|
|
4586
|
+
type FooterSocialLink = {
|
|
4587
|
+
/**
|
|
4588
|
+
* URL of the page the link goes to.
|
|
4589
|
+
*/
|
|
4590
|
+
href: string;
|
|
4591
|
+
/**
|
|
4592
|
+
* Material Symbol name or SVG element as the icon used for the link.
|
|
4593
|
+
*/
|
|
4594
|
+
logo: string | SVG;
|
|
4595
|
+
/**
|
|
4596
|
+
* Value for the HTML properties title and aria-label.
|
|
4597
|
+
*/
|
|
4598
|
+
title: string;
|
|
4599
|
+
};
|
|
4600
|
+
type FooterBottomLink = {
|
|
4601
|
+
/**
|
|
4602
|
+
* URL of the page the link goes to.
|
|
4603
|
+
*/
|
|
4604
|
+
href: string;
|
|
4605
|
+
/**
|
|
4606
|
+
* Text for the link.
|
|
4607
|
+
*/
|
|
4608
|
+
text: string;
|
|
4609
|
+
};
|
|
4610
|
+
type FooterLogo = {
|
|
4611
|
+
/**
|
|
4612
|
+
* Source of the logo image.
|
|
4613
|
+
*/
|
|
4614
|
+
src: string | SVG;
|
|
4615
|
+
/**
|
|
4616
|
+
* Alternative text for the logo image.
|
|
4617
|
+
*/
|
|
4618
|
+
alt: string;
|
|
4619
|
+
};
|
|
4620
|
+
type FooterProps = {
|
|
4621
|
+
/**
|
|
4622
|
+
* An array of objects representing the links that will be rendered at
|
|
4623
|
+
* the bottom part of the footer.
|
|
4624
|
+
*/
|
|
4625
|
+
bottomLinks?: FooterBottomLink[];
|
|
4626
|
+
/**
|
|
4627
|
+
* The text that will be displayed as copyright disclaimer.
|
|
4628
|
+
*/
|
|
4629
|
+
copyright?: string;
|
|
4630
|
+
/**
|
|
4631
|
+
* Content to be displayed on the left side of the footer under the logo.
|
|
4632
|
+
*/
|
|
4633
|
+
leftContent?: ReactNode;
|
|
4634
|
+
/**
|
|
4635
|
+
* Logo to be displayed inside the footer
|
|
4636
|
+
*/
|
|
4637
|
+
logo?: FooterLogo;
|
|
4638
|
+
/**
|
|
4639
|
+
* Determines the visual style and layout
|
|
4640
|
+
* - "default": The default mode with full content and styling.
|
|
4641
|
+
* - "reduced": A reduced mode with minimal content and styling.
|
|
4642
|
+
*/
|
|
4643
|
+
mode?: "default" | "reduced";
|
|
4644
|
+
/**
|
|
4645
|
+
* Content to be displayed on the right side of the footer before the socialLinks if provided.
|
|
4646
|
+
*/
|
|
4647
|
+
rightContent?: ReactNode;
|
|
4648
|
+
/**
|
|
4649
|
+
* An array of objects representing the links that will be rendered as
|
|
4650
|
+
* icons at the top-right side of the footer.
|
|
4651
|
+
*/
|
|
4652
|
+
socialLinks?: FooterSocialLink[];
|
|
4653
|
+
/**
|
|
4654
|
+
* Value of the tabindex for all interactive elements, except those
|
|
4655
|
+
* inside the leftContent and rightContent.
|
|
4656
|
+
*/
|
|
4657
|
+
tabIndex?: number;
|
|
4658
|
+
/**
|
|
4659
|
+
* Visual variant of the footer.
|
|
4660
|
+
*/
|
|
4661
|
+
variant?: "branded" | "neutral";
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
type SearchBarProps = {
|
|
4665
|
+
/**
|
|
4666
|
+
* If true, the search bar input will be focused when rendered.
|
|
4667
|
+
*/
|
|
4668
|
+
autoFocus?: boolean;
|
|
4669
|
+
/**
|
|
4670
|
+
* If true, the component will be disabled.
|
|
4671
|
+
*/
|
|
4672
|
+
disabled?: boolean;
|
|
4673
|
+
/**
|
|
4674
|
+
* Function invoked when the search bar loses focus.
|
|
4675
|
+
*/
|
|
4676
|
+
onBlur?: (value: string) => void;
|
|
4677
|
+
/**
|
|
4678
|
+
* Function invoked when the user cancels the search.
|
|
4679
|
+
*/
|
|
4680
|
+
onCancel?: () => void;
|
|
4681
|
+
/**
|
|
4682
|
+
* Function invoked when the user changes the input value.
|
|
4683
|
+
*/
|
|
4684
|
+
onChange?: (value: string) => void;
|
|
4685
|
+
/**
|
|
4686
|
+
* Function invoked when the Enter key is pressed.
|
|
4687
|
+
*/
|
|
4688
|
+
onEnter?: (value: string) => void;
|
|
4689
|
+
/**
|
|
4690
|
+
* Placeholder text displayed in the search bar input field.
|
|
4691
|
+
*/
|
|
4692
|
+
placeholder?: string;
|
|
4693
|
+
};
|
|
4694
|
+
|
|
4695
|
+
type HeaderGroupItem = PrettifyTypes<BaseCommonItemProps & {
|
|
4696
|
+
items: BaseItem[];
|
|
4697
|
+
}>;
|
|
4698
|
+
type HeaderMainNavProps = (HeaderGroupItem | PrettifyTypes<BaseItem>)[];
|
|
4699
|
+
type HeaderSearchBarProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
|
|
4700
|
+
type HeaderProps = {
|
|
4701
|
+
appTitle?: string;
|
|
4702
|
+
navItems?: HeaderMainNavProps;
|
|
4703
|
+
responsiveBottomContent?: ReactNode;
|
|
4704
|
+
searchBar?: HeaderSearchBarProps;
|
|
4705
|
+
sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
|
|
4706
|
+
};
|
|
4707
|
+
|
|
4708
|
+
type SidenavSection = {
|
|
4709
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
4710
|
+
title?: string;
|
|
4711
|
+
};
|
|
4712
|
+
type SidenavSearchbarProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
|
|
4713
|
+
type SidenavProps = {
|
|
4714
|
+
/**
|
|
4715
|
+
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
4716
|
+
*/
|
|
4717
|
+
bottomContent?: ReactNode;
|
|
4718
|
+
/**
|
|
4719
|
+
* Object with the properties of the branding placed at the top of the sidenav.
|
|
4720
|
+
*/
|
|
4721
|
+
appTitle?: string | ReactNode;
|
|
4722
|
+
/**
|
|
4723
|
+
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
4724
|
+
*/
|
|
4725
|
+
defaultExpanded?: boolean;
|
|
4726
|
+
/**
|
|
4727
|
+
* If true the nav menu will have lines marking the groups.
|
|
4728
|
+
*/
|
|
4729
|
+
displayGroupLines?: boolean;
|
|
4730
|
+
/**
|
|
4731
|
+
* If true, the sidenav is expanded.
|
|
4732
|
+
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
4733
|
+
*/
|
|
4734
|
+
expanded?: boolean;
|
|
4735
|
+
/**
|
|
4736
|
+
* Array of items to be displayed in the navigation menu.
|
|
4737
|
+
* Each item can be a single/simple item, a group item or a section.
|
|
4738
|
+
*/
|
|
4739
|
+
navItems?: (BaseItem | BaseGroupItem)[] | SidenavSection[];
|
|
4740
|
+
/**
|
|
4741
|
+
* Function called when the expansion state of the sidenav changes.
|
|
4742
|
+
*/
|
|
4743
|
+
onExpandedChange?: (value: boolean) => void;
|
|
4744
|
+
/**
|
|
4745
|
+
* When provided, a search bar will be rendered at the top of the sidenav.
|
|
4746
|
+
*/
|
|
4747
|
+
searchBar?: SidenavSearchbarProps;
|
|
4748
|
+
/**
|
|
4749
|
+
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
4750
|
+
*/
|
|
4751
|
+
topContent?: ReactNode;
|
|
4752
|
+
};
|
|
4753
|
+
|
|
4754
|
+
export { DxcAccordion, type AccordionItemProps as DxcAccordionItemProps, type AccordionProps as DxcAccordionProps, type Action$1 as DxcAction, type ActionsCellProps as DxcActionsCellProps, DxcAlert, type AlertAction as DxcAlertAction, type AlertMessage as DxcAlertMessage, type AlertProps as DxcAlertProps, aliasTokens as DxcAliasTokens, type AppLayoutLogo as DxcAppLayoutLogo, type AppLayoutMainProps as DxcAppLayoutMainProps, type ApplicationLayoutProps as DxcAppLayoutProps, type AppLayoutSidenavProps as DxcAppLayoutSidenavProps, DxcApplicationLayout, DxcAvatar, type AvatarProps as DxcAvatarProps, type AvatarStatus as DxcAvatarStatus, DxcBadge, type BadgeProps as DxcBadgeProps, type BaseGroupItem as DxcBaseGroupItem, type BaseItem as DxcBaseItem, type BaseSection as DxcBaseSection, DxcBleed, type BleedProps as DxcBleedProps, DxcBreadcrumbs, type BreadcrumbsItemProps as DxcBreadcrumbsItemProps, type BreadcrumbsProps as DxcBreadcrumbsProps, DxcBulletedList, type BulletedListItemProps as DxcBulletedListItemProps, type BulletedListProps as DxcBulletedListProps, DxcButton, type ButtonMode as DxcButtonMode, type ButtonProps as DxcButtonProps, type ButtonSemantic as DxcButtonSemantic, type ButtonSize as DxcButtonSize, DxcCard, type CardProps as DxcCardProps, DxcCheckbox, type CheckboxProps as DxcCheckboxProps, DxcChip, type ChipProps as DxcChipProps, type Color as DxcColor, DxcContainer, type ContainerBackground as DxcContainerBackground, type ContainerBorder as DxcContainerBorder, type ContainerBorderProperties as DxcContainerBorderProperties, type ContainerOutline as DxcContainerOutline, type ContainerOverflow as DxcContainerOverflow, type ContainerProps as DxcContainerProps, type ContainerSpacing as DxcContainerSpacing, DxcContextualMenu, type ContextualMenuProps as DxcContextualMenuProps, coreTokens as DxcCoreTokens, DxcDataGrid, type DataGridBasicProps as DxcDataGridBasicProps, type DataGridColumn as DxcDataGridColumn, type DataGridExpandableRow as DxcDataGridExpandableRow, type DataGridExpandableRows as DxcDataGridExpandableRows, type DataGridHierarchyRow as DxcDataGridHierarchyRow, type DataGridHierarchyRows as DxcDataGridHierarchyRows, type DataGridProps as DxcDataGridProps, type DataGridRow as DxcDataGridRow, type DataGridSelectableProps as DxcDataGridSelectableProps, DxcDateInput, type DateInputProps as DxcDateInputProps, type DefaultToast as DxcDefaultToast, DxcDialog, type DialogProps as DxcDialogProps, DxcDivider, type DividerProps as DxcDividerProps, DxcDropdown, type DropdownOption as DxcDropdownOption, type DropdownProps as DxcDropdownProps, type FileData as DxcFileData, DxcFileInput, type FileInputProps as DxcFileInputProps, DxcFlex, type FlexGap as DxcFlexGap, type FlexProps as DxcFlexProps, type FooterBottomLink as DxcFooterBottomLink, type FooterLogo as DxcFooterLogo, type FooterProps as DxcFooterProps, type FooterSocialLink as DxcFooterSocialLink, DxcGrid, type GridCell as DxcGridCell, type GridGap as DxcGridGap, type GridItemProps as DxcGridItemProps, type GridPlaceContentValues as DxcGridPlaceContentValues, type GridPlaceItemsValues as DxcGridPlaceItemsValues, type GridPlaceSelfValues as DxcGridPlaceSelfValues, type GridProps as DxcGridProps, type HeaderGroupItem as DxcHeaderGroupItem, type HeaderMainNavProps as DxcHeaderMainNavProps, type HeaderProps as DxcHeaderProps, type HeaderSearchBarProps as DxcHeaderSearchBarProps, DxcHeading, type HeadingProps as DxcHeadingProps, DxcImage, type ImageProps as DxcImageProps, DxcInset, type InsetProps as DxcInsetProps, DxcLink, type LinkProps as DxcLinkProps, type LoadingToast as DxcLoadingToast, type Margin as DxcMargin, DxcMessageInput, type MessageInputProps as DxcMessageInputProps, DxcNavTabs, type NavTabsProps as DxcNavTabsProps, type NavTabsTabProps as DxcNavTabsTabProps, DxcNumberInput, type NumberInputProps as DxcNumberInputProps, DxcPaginator, type PaginatorProps as DxcPaginatorProps, DxcParagraph, DxcPasswordInput, type PasswordInputProps as DxcPasswordInputProps, DxcPopover, type PopoverProps as DxcPopoverProps, DxcProgressBar, type ProgressBarProps as DxcProgressBarProps, DxcQuickNav, type QuickNavLink as DxcQuickNavLink, type QuickNavProps as DxcQuickNavProps, DxcRadioGroup, type RadioGroupOption as DxcRadioGroupOption, type RadioGroupProps as DxcRadioGroupProps, type ResultSetTableColumn as DxcResultSetTableColumn, type ResultSetTableProps as DxcResultSetTableProps, type ResultSetTableRow as DxcResultSetTableRow, DxcResultsetTable, type SVG as DxcSVG, DxcSelect, type SelectOption as DxcSelectOption, type SelectOptionGroup as DxcSelectOptionGroup, type SelectProps as DxcSelectProps, type SemanticToast as DxcSemanticToast, type Shape as DxcShape, type SidenavProps as DxcSidenavProps, type SidenavSearchbarProps as DxcSidenavSearchbarProps, type SidenavSection as DxcSidenavSection, type Size$1 as DxcSize, DxcSlider, type SliderProps as DxcSliderProps, type Space as DxcSpace, DxcSpinner, type SpinnerProps as DxcSpinnerProps, DxcStatusLight, type StatusLightProps as DxcStatusLightProps, DxcSwitch, type SwitchProps as DxcSwitchProps, DxcTable, type TableProps as DxcTableProps, DxcTabs, type TabsProps as DxcTabsProps, type TabsTabProps as DxcTabsTabProps, DxcTextInput, type TextInputProps as DxcTextInputProps, DxcTextarea, type TextAreaProps as DxcTextareaProps, DxcTimeInput, type TimeInputProps as DxcTimeInputProps, type ToastProps as DxcToastProps, DxcToastsQueue, type ToastsQueueProps as DxcToastsQueueProps, DxcToggleGroup, type ToggleGroupProps as DxcToggleGroupProps, type ToggleOption as DxcToggleOption, DxcTooltip, type TooltipProps as DxcTooltipProps, DxcTypography, type TypographyProps as DxcTypographyProps, DxcWizard, type WizardProps as DxcWizardProps, type WizardStepProps as DxcWizardStepProps, HalstackLanguageContext, HalstackProvider, useToast };
|