@dxc-technology/halstack-react 0.0.0-163a7b2 → 0.0.0-1664045
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/README.md +2 -2
- package/dist/index.d.mts +1983 -900
- package/dist/index.d.ts +1983 -900
- package/dist/index.js +13900 -8000
- package/dist/index.mjs +15735 -9843
- package/package.json +29 -26
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
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
|
/**
|
|
@@ -59,18 +84,18 @@ type AccordionItemProps = {
|
|
|
59
84
|
*/
|
|
60
85
|
tabIndex?: number;
|
|
61
86
|
};
|
|
62
|
-
type CommonProps$
|
|
87
|
+
type CommonProps$b = {
|
|
63
88
|
/**
|
|
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
|
*/
|
|
71
96
|
children: ReactElement<AccordionItemProps>[] | ReactElement<AccordionItemProps>;
|
|
72
97
|
};
|
|
73
|
-
type IndependentProps = CommonProps$
|
|
98
|
+
type IndependentProps = CommonProps$b & {
|
|
74
99
|
/**
|
|
75
100
|
* When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
|
|
76
101
|
*/
|
|
@@ -91,7 +116,7 @@ type IndependentProps = CommonProps$9 & {
|
|
|
91
116
|
*/
|
|
92
117
|
onActiveChange?: (index: number) => void;
|
|
93
118
|
};
|
|
94
|
-
type NonIndependentProps = CommonProps$
|
|
119
|
+
type NonIndependentProps = CommonProps$b & {
|
|
95
120
|
/**
|
|
96
121
|
* When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
|
|
97
122
|
*/
|
|
@@ -112,14 +137,14 @@ type NonIndependentProps = CommonProps$9 & {
|
|
|
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
|
*/
|
|
@@ -145,7 +170,7 @@ type Message = {
|
|
|
145
170
|
*/
|
|
146
171
|
text: ReactNode;
|
|
147
172
|
};
|
|
148
|
-
type CommonProps$
|
|
173
|
+
type CommonProps$a = {
|
|
149
174
|
/**
|
|
150
175
|
* If true, the alert will have a close button that will remove the message from the alert,
|
|
151
176
|
* only in banner and inline modes. The rest of the functionality will depend
|
|
@@ -155,11 +180,11 @@ type CommonProps$8 = {
|
|
|
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,305 +217,195 @@ 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
|
|
226
|
+
type AlertProps = PrettifyTypes<CommonProps$a & ModeSpecificProps>;
|
|
202
227
|
|
|
203
|
-
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }:
|
|
228
|
+
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: AlertProps) => react.JSX.Element;
|
|
204
229
|
|
|
205
|
-
type
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
collapsable?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Material Symbol name or SVG icon to be displayed next to the title of the group.
|
|
229
|
-
*/
|
|
230
|
-
icon?: string | SVG;
|
|
231
|
-
/**
|
|
232
|
-
* The area inside the sidenav group. This area can be used to render sidenav links.
|
|
233
|
-
*/
|
|
234
|
-
children: ReactNode;
|
|
235
|
-
};
|
|
236
|
-
type SidenavLinkPropsType = {
|
|
237
|
-
/**
|
|
238
|
-
* Page to be opened when the user clicks on the link.
|
|
239
|
-
*/
|
|
240
|
-
href?: string;
|
|
230
|
+
type CurrencyConfigType = {
|
|
231
|
+
currency: string;
|
|
232
|
+
currencyDisplay?: "code" | "symbol" | "narrowSymbol" | "name";
|
|
233
|
+
currencySign?: "standard" | "accounting";
|
|
234
|
+
};
|
|
235
|
+
type UnitsConfigType = {
|
|
236
|
+
unit: string;
|
|
237
|
+
unitDisplay?: "short" | "long" | "narrow";
|
|
238
|
+
};
|
|
239
|
+
type ConfigType = PrettifyTypes<{
|
|
240
|
+
thousandSeparator?: string;
|
|
241
|
+
decimalSeparator?: string;
|
|
242
|
+
symbolPosition?: "before" | "after";
|
|
243
|
+
} & ({
|
|
244
|
+
currencyConfig?: CurrencyConfigType;
|
|
245
|
+
unitsConfig?: never;
|
|
246
|
+
} | {
|
|
247
|
+
currencyConfig?: never;
|
|
248
|
+
unitsConfig?: UnitsConfigType;
|
|
249
|
+
})>;
|
|
250
|
+
type AmountInputProps = {
|
|
241
251
|
/**
|
|
242
|
-
*
|
|
252
|
+
* Sets the alignment inside the input.
|
|
243
253
|
*/
|
|
244
|
-
|
|
254
|
+
alignment?: "left" | "right";
|
|
245
255
|
/**
|
|
246
|
-
*
|
|
256
|
+
* Specifies a string to be used as the name for the textInput element when no `label` is provided.
|
|
247
257
|
*/
|
|
248
|
-
|
|
258
|
+
ariaLabel?: string;
|
|
249
259
|
/**
|
|
250
|
-
* If true, the
|
|
251
|
-
* if it is contained within a collapsed group, and consequently, the currently selected link is not visible,
|
|
252
|
-
* the group title will appear as selected too.
|
|
260
|
+
* If true, the input will have an action to clear the entered value.
|
|
253
261
|
*/
|
|
254
|
-
|
|
262
|
+
clearable?: boolean;
|
|
255
263
|
/**
|
|
256
|
-
*
|
|
264
|
+
* Configuration for the amount input, including currency and units.
|
|
265
|
+
* This includes settings for currency, units, and formatting options like thousand and decimal separators, as well as the position of the currency symbol.
|
|
257
266
|
*/
|
|
258
|
-
|
|
267
|
+
config?: ConfigType;
|
|
259
268
|
/**
|
|
260
|
-
*
|
|
269
|
+
* Initial value of the input, only when it is uncontrolled.
|
|
261
270
|
*/
|
|
262
|
-
|
|
271
|
+
defaultValue?: string;
|
|
263
272
|
/**
|
|
264
|
-
*
|
|
273
|
+
* If true, the component will be disabled.
|
|
265
274
|
*/
|
|
266
|
-
|
|
267
|
-
};
|
|
268
|
-
type Props$H = {
|
|
275
|
+
disabled?: boolean;
|
|
269
276
|
/**
|
|
270
|
-
*
|
|
277
|
+
* If it is a defined value and also a truthy string, the component will
|
|
278
|
+
* change its appearance, showing the error below the input component. If
|
|
279
|
+
* the defined value is an empty string, it will reserve a space below
|
|
280
|
+
* the component for a future error, but it would not change its look. In
|
|
281
|
+
* case of being undefined or null, both the appearance and the space for
|
|
282
|
+
* the error message would not be modified.
|
|
271
283
|
*/
|
|
272
|
-
|
|
284
|
+
error?: string;
|
|
273
285
|
/**
|
|
274
|
-
*
|
|
286
|
+
* Helper text to be placed above the input.
|
|
275
287
|
*/
|
|
276
|
-
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
type Size$5 = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
280
|
-
type Option$2 = {
|
|
288
|
+
helperText?: string;
|
|
281
289
|
/**
|
|
282
|
-
*
|
|
290
|
+
* Text to be placed above the input. This label will be used as the aria-label attribute of the list of suggestions.
|
|
283
291
|
*/
|
|
284
292
|
label?: string;
|
|
285
293
|
/**
|
|
286
|
-
*
|
|
287
|
-
*/
|
|
288
|
-
icon?: string | SVG;
|
|
289
|
-
/**
|
|
290
|
-
* Option inner value.
|
|
294
|
+
* Specifies the maximum value allowed in the input.
|
|
291
295
|
*/
|
|
292
|
-
|
|
293
|
-
};
|
|
294
|
-
type Props$G = {
|
|
296
|
+
maxValue?: number;
|
|
295
297
|
/**
|
|
296
|
-
*
|
|
298
|
+
* Specifies the minimum value allowed in the input.
|
|
297
299
|
*/
|
|
298
|
-
|
|
300
|
+
minValue?: number;
|
|
299
301
|
/**
|
|
300
|
-
*
|
|
301
|
-
* after or before the label.
|
|
302
|
+
* Name attribute of the input element.
|
|
302
303
|
*/
|
|
303
|
-
|
|
304
|
+
name?: string;
|
|
304
305
|
/**
|
|
305
|
-
*
|
|
306
|
+
* Specifies the number of decimal places allowed in the input.
|
|
306
307
|
*/
|
|
307
|
-
|
|
308
|
+
numberOfDecimals?: number;
|
|
308
309
|
/**
|
|
309
|
-
*
|
|
310
|
+
* Specifies the number of integer places allowed in the input.
|
|
310
311
|
*/
|
|
311
|
-
|
|
312
|
+
numberOfIntegers?: number;
|
|
312
313
|
/**
|
|
313
|
-
*
|
|
314
|
+
* This function will be called when the user types within the input
|
|
315
|
+
* element of the component. An object including the current value and
|
|
316
|
+
* the error (if the value entered is not valid) will be passed to this
|
|
317
|
+
* function. If there is no error, error will not be defined.
|
|
314
318
|
*/
|
|
315
|
-
|
|
319
|
+
onChange?: (val: {
|
|
320
|
+
value: string;
|
|
321
|
+
error?: string;
|
|
322
|
+
}) => void;
|
|
316
323
|
/**
|
|
317
|
-
*
|
|
324
|
+
* This function will be called when the input element loses the focus.
|
|
325
|
+
* An object including the input value and the error (if the value
|
|
326
|
+
* entered is not valid) will be passed to this function. If there is no error,
|
|
327
|
+
* error will not be defined.
|
|
318
328
|
*/
|
|
319
|
-
|
|
329
|
+
onBlur?: (val: {
|
|
330
|
+
value: string;
|
|
331
|
+
error?: string;
|
|
332
|
+
}) => void;
|
|
320
333
|
/**
|
|
321
|
-
* If true, the
|
|
334
|
+
* If true, the input will be optional, showing '(Optional)'
|
|
335
|
+
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
336
|
+
* passed as a parameter to the OnBlur and onChange functions when it has
|
|
337
|
+
* not been filled.
|
|
322
338
|
*/
|
|
323
|
-
|
|
339
|
+
optional?: boolean;
|
|
324
340
|
/**
|
|
325
|
-
*
|
|
341
|
+
* Text to be put as placeholder of the input.
|
|
326
342
|
*/
|
|
327
|
-
|
|
343
|
+
placeholder?: string;
|
|
328
344
|
/**
|
|
329
|
-
*
|
|
330
|
-
*
|
|
345
|
+
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
346
|
+
* In addition, the clear action will not be displayed even if the flag is set to true
|
|
347
|
+
* and the custom action will not execute its onClick event.
|
|
331
348
|
*/
|
|
332
|
-
|
|
349
|
+
readOnly?: boolean;
|
|
333
350
|
/**
|
|
334
|
-
*
|
|
335
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right'
|
|
336
|
-
* properties in order to specify different margin sizes.
|
|
351
|
+
* Ref to the input element.
|
|
337
352
|
*/
|
|
338
|
-
|
|
353
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
339
354
|
/**
|
|
340
355
|
* Size of the component.
|
|
341
356
|
*/
|
|
342
|
-
size?:
|
|
357
|
+
size?: "small" | "medium" | "large" | "fillParent";
|
|
343
358
|
/**
|
|
344
359
|
* Value of the tabindex attribute.
|
|
345
360
|
*/
|
|
346
361
|
tabIndex?: number;
|
|
347
362
|
/**
|
|
348
|
-
*
|
|
349
|
-
* Under the hood, this prop also serves as an accessible label for the component.
|
|
363
|
+
* Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
350
364
|
*/
|
|
351
|
-
|
|
365
|
+
value?: string;
|
|
352
366
|
};
|
|
353
367
|
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* URL to navigate when the logo is clicked.
|
|
357
|
-
*/
|
|
358
|
-
href?: string;
|
|
359
|
-
/**
|
|
360
|
-
* Source of the logo image.
|
|
361
|
-
*/
|
|
362
|
-
src: string;
|
|
363
|
-
/**
|
|
364
|
-
* Alternative text for the logo image.
|
|
365
|
-
*/
|
|
366
|
-
title?: string;
|
|
367
|
-
};
|
|
368
|
-
type Props$F = {
|
|
369
|
-
/**
|
|
370
|
-
* Whether a contrast line should appear at the bottom of the header.
|
|
371
|
-
*/
|
|
372
|
-
underlined?: boolean;
|
|
373
|
-
/**
|
|
374
|
-
* Content shown in the header. Take into account that the component applies styles
|
|
375
|
-
* for the first child in the content, so we recommend the use of Fragment
|
|
376
|
-
* to be applied correctly. Otherwise, the styles can be modified.
|
|
377
|
-
*/
|
|
378
|
-
content?: ReactNode;
|
|
379
|
-
/**
|
|
380
|
-
* Content shown in responsive version. It receives the close menu handler that can
|
|
381
|
-
* be used to add that functionality when a element is clicked.
|
|
382
|
-
*/
|
|
383
|
-
responsiveContent?: (closeHandler: () => void) => ReactNode;
|
|
384
|
-
/**
|
|
385
|
-
* Logo to be displayed inside the header
|
|
386
|
-
*/
|
|
387
|
-
logo?: Logo$1;
|
|
388
|
-
/**
|
|
389
|
-
* Size of the bottom margin to be applied to the header.
|
|
390
|
-
*/
|
|
391
|
-
margin?: Space$1;
|
|
392
|
-
/**
|
|
393
|
-
* This function will be called when the user clicks the header logo.
|
|
394
|
-
*/
|
|
395
|
-
onClick?: () => void;
|
|
396
|
-
/**
|
|
397
|
-
* Value of the tabindex for all interactive elements, except those inside the
|
|
398
|
-
* custom area.
|
|
399
|
-
*/
|
|
400
|
-
tabIndex?: number;
|
|
401
|
-
};
|
|
368
|
+
declare const AmountInput: ({ alignment, ariaLabel, clearable, config, defaultValue, disabled, error, helperText, label, maxValue, minValue, name, numberOfDecimals, numberOfIntegers, onChange, onBlur, optional, placeholder, readOnly, ref, size, tabIndex, value, }: AmountInputProps) => react.JSX.Element;
|
|
402
369
|
|
|
403
|
-
type
|
|
404
|
-
/**
|
|
405
|
-
* URL of the page the link goes to.
|
|
406
|
-
*/
|
|
407
|
-
href: string;
|
|
370
|
+
type AppLayoutMainProps = {
|
|
408
371
|
/**
|
|
409
|
-
*
|
|
410
|
-
*/
|
|
411
|
-
logo: string | SVG;
|
|
412
|
-
/**
|
|
413
|
-
* Value for the HTML properties title and aria-label.
|
|
372
|
+
* Everything between the tags will be displayed as the content of the main part of the application.
|
|
414
373
|
*/
|
|
415
|
-
|
|
374
|
+
children: ReactNode;
|
|
416
375
|
};
|
|
417
|
-
type
|
|
376
|
+
type AppLayoutLogo = {
|
|
418
377
|
/**
|
|
419
|
-
*
|
|
420
|
-
*/
|
|
421
|
-
href: string;
|
|
422
|
-
/**
|
|
423
|
-
* Text for the link.
|
|
378
|
+
* Alternative text for the logo image.
|
|
424
379
|
*/
|
|
425
|
-
|
|
426
|
-
};
|
|
427
|
-
type Logo = {
|
|
380
|
+
alt: string;
|
|
428
381
|
/**
|
|
429
382
|
* URL to navigate when the logo is clicked.
|
|
430
383
|
*/
|
|
431
384
|
href?: string;
|
|
432
385
|
/**
|
|
433
|
-
*
|
|
386
|
+
* Function to be called on logo click.
|
|
434
387
|
*/
|
|
435
|
-
|
|
388
|
+
onClick?: () => void;
|
|
436
389
|
/**
|
|
437
|
-
*
|
|
390
|
+
* URL or SVG of the image that will be placed in the logo.
|
|
438
391
|
*/
|
|
439
|
-
|
|
392
|
+
src: string | SVG;
|
|
440
393
|
};
|
|
441
|
-
type
|
|
442
|
-
/**
|
|
443
|
-
* An array of objects representing the links that will be rendered at
|
|
444
|
-
* the bottom part of the footer.
|
|
445
|
-
*/
|
|
446
|
-
bottomLinks?: BottomLink[];
|
|
447
|
-
/**
|
|
448
|
-
* The center section of the footer. Can be used to render custom
|
|
449
|
-
* content in this area.
|
|
450
|
-
*/
|
|
451
|
-
children?: ReactNode;
|
|
452
|
-
/**
|
|
453
|
-
* The text that will be displayed as copyright disclaimer.
|
|
454
|
-
*/
|
|
455
|
-
copyright?: string;
|
|
456
|
-
/**
|
|
457
|
-
* Logo to be displayed inside the footer
|
|
458
|
-
*/
|
|
459
|
-
logo?: Logo;
|
|
460
|
-
/**
|
|
461
|
-
* Size of the top margin to be applied to the footer.
|
|
462
|
-
*/
|
|
463
|
-
margin?: Space$1;
|
|
394
|
+
type AppLayoutSidenavProps = {
|
|
464
395
|
/**
|
|
465
|
-
*
|
|
466
|
-
* - "default": The default mode with full content and styling.
|
|
467
|
-
* - "reduced": A reduced mode with minimal content and styling.
|
|
468
|
-
*/
|
|
469
|
-
mode?: "default" | "reduced";
|
|
470
|
-
/**
|
|
471
|
-
* An array of objects representing the links that will be rendered as
|
|
472
|
-
* icons at the top-right side of the footer.
|
|
473
|
-
*/
|
|
474
|
-
socialLinks?: SocialLink[];
|
|
475
|
-
/**
|
|
476
|
-
* Value of the tabindex for all interactive elements, except those
|
|
477
|
-
* inside the custom area.
|
|
396
|
+
* The area inside the sidenav. This area can be used to render the content inside the sidenav.
|
|
478
397
|
*/
|
|
479
|
-
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
type AppLayoutMainPropsType = {
|
|
398
|
+
children: ReactNode;
|
|
483
399
|
/**
|
|
484
|
-
*
|
|
400
|
+
* The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
|
|
485
401
|
*/
|
|
486
|
-
|
|
402
|
+
title?: ReactNode;
|
|
487
403
|
};
|
|
488
|
-
type
|
|
404
|
+
type ApplicationLayoutProps = {
|
|
489
405
|
/**
|
|
490
|
-
*
|
|
491
|
-
* visibility of the sidenav.
|
|
406
|
+
* Logo properties.
|
|
492
407
|
*/
|
|
493
|
-
|
|
408
|
+
logo?: AppLayoutLogo;
|
|
494
409
|
/**
|
|
495
410
|
* Header content.
|
|
496
411
|
*/
|
|
@@ -506,35 +421,22 @@ type ApplicationLayoutPropsType = {
|
|
|
506
421
|
/**
|
|
507
422
|
* Use the DxcApplicationLayout.Main provided to render main content.
|
|
508
423
|
*/
|
|
509
|
-
children: ReactElement<
|
|
424
|
+
children: ReactElement<AppLayoutMainProps>;
|
|
510
425
|
};
|
|
511
426
|
|
|
512
427
|
declare const DxcApplicationLayout: {
|
|
513
|
-
({
|
|
514
|
-
Footer: ({ bottomLinks,
|
|
515
|
-
Header: {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
};
|
|
519
|
-
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
520
|
-
SideNav: {
|
|
521
|
-
({ title, children }: Props$H): JSX.Element;
|
|
522
|
-
Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
|
|
523
|
-
Group: ({ title, collapsable, icon, children }: SidenavGroupPropsType) => JSX.Element;
|
|
524
|
-
Link: react.ForwardRefExoticComponent<SidenavLinkPropsType & react.RefAttributes<HTMLAnchorElement>>;
|
|
525
|
-
Title: ({ children }: SidenavTitlePropsType) => JSX.Element;
|
|
526
|
-
};
|
|
527
|
-
useResponsiveSidenavVisibility: () => ((_isSidenavVisible: boolean) => void) | null;
|
|
428
|
+
({ logo, header, sidenav, footer, children }: ApplicationLayoutProps): JSX.Element;
|
|
429
|
+
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, variant, tabIndex, }: FooterProps) => JSX.Element;
|
|
430
|
+
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: HeaderProps) => JSX.Element;
|
|
431
|
+
Main: ({ children }: AppLayoutMainProps) => JSX.Element;
|
|
432
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: SidenavProps) => JSX.Element;
|
|
528
433
|
};
|
|
529
434
|
|
|
530
|
-
type
|
|
531
|
-
|
|
532
|
-
type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
|
|
533
|
-
interface Status {
|
|
534
|
-
mode: "default" | "info" | "success" | "warning" | "error";
|
|
435
|
+
type AvatarStatus = {
|
|
436
|
+
mode: Mode;
|
|
535
437
|
position: "top" | "bottom";
|
|
536
|
-
}
|
|
537
|
-
type
|
|
438
|
+
};
|
|
439
|
+
type AvatarProps = {
|
|
538
440
|
/**
|
|
539
441
|
* Affects the visual style of the avatar. It can be used following semantic purposes or not.
|
|
540
442
|
*/
|
|
@@ -564,6 +466,18 @@ type Props$E = {
|
|
|
564
466
|
* This function will be called when the user clicks the avatar. Makes it behave as a button.
|
|
565
467
|
*/
|
|
566
468
|
onClick?: () => void;
|
|
469
|
+
/**
|
|
470
|
+
* Text to be displayed as label next to the avatar.
|
|
471
|
+
*/
|
|
472
|
+
primaryText?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Ref to the avatar container element.
|
|
475
|
+
*/
|
|
476
|
+
ref?: Ref<HTMLDivElement>;
|
|
477
|
+
/**
|
|
478
|
+
* Text to be displayed as sublabel next to the avatar.
|
|
479
|
+
*/
|
|
480
|
+
secondaryText?: string;
|
|
567
481
|
/**
|
|
568
482
|
* This will determine if the avatar will be rounded square or a circle.
|
|
569
483
|
*/
|
|
@@ -571,12 +485,12 @@ type Props$E = {
|
|
|
571
485
|
/**
|
|
572
486
|
* Size of the component.
|
|
573
487
|
*/
|
|
574
|
-
size?: Size$
|
|
488
|
+
size?: Size$1;
|
|
575
489
|
/**
|
|
576
490
|
* Defines the color of the status indicator displayed on the avatar and where it will be placed.
|
|
577
491
|
* If not provided, no indicator will be rendered.
|
|
578
492
|
*/
|
|
579
|
-
status?:
|
|
493
|
+
status?: AvatarStatus;
|
|
580
494
|
/**
|
|
581
495
|
* Value of the tabindex attribute. It will only apply when the onClick property is passed.
|
|
582
496
|
*/
|
|
@@ -587,9 +501,27 @@ type Props$E = {
|
|
|
587
501
|
title?: string;
|
|
588
502
|
};
|
|
589
503
|
|
|
590
|
-
declare const DxcAvatar:
|
|
504
|
+
declare const DxcAvatar: ({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, ref, secondaryText, shape, size, status, tabIndex, title, }: AvatarProps) => react.JSX.Element;
|
|
591
505
|
|
|
592
|
-
type
|
|
506
|
+
type CommonProps$9 = {
|
|
507
|
+
/**
|
|
508
|
+
* Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
|
|
509
|
+
*/
|
|
510
|
+
title?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
|
|
513
|
+
*/
|
|
514
|
+
icon?: string | SVG;
|
|
515
|
+
/**
|
|
516
|
+
* Ref to be forwarded to the badge container element.
|
|
517
|
+
*/
|
|
518
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
519
|
+
/**
|
|
520
|
+
* Size of the component.
|
|
521
|
+
*/
|
|
522
|
+
size?: "small" | "medium" | "large";
|
|
523
|
+
};
|
|
524
|
+
type ContextualBadgeProps = CommonProps$9 & {
|
|
593
525
|
/**
|
|
594
526
|
* Text to be placed in the badge.
|
|
595
527
|
*/
|
|
@@ -605,9 +537,9 @@ type ContextualProps = {
|
|
|
605
537
|
/**
|
|
606
538
|
* Affects the visual style of the badge. It can be used following semantic purposes or not.
|
|
607
539
|
*/
|
|
608
|
-
color?:
|
|
540
|
+
color?: Color;
|
|
609
541
|
};
|
|
610
|
-
type
|
|
542
|
+
type NotificationBadgeProps = CommonProps$9 & {
|
|
611
543
|
/**
|
|
612
544
|
* Text to be placed in the badge.
|
|
613
545
|
*/
|
|
@@ -625,25 +557,11 @@ type NotificationProps = {
|
|
|
625
557
|
*/
|
|
626
558
|
color?: never;
|
|
627
559
|
};
|
|
628
|
-
type
|
|
629
|
-
/**
|
|
630
|
-
* Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
|
|
631
|
-
*/
|
|
632
|
-
title?: string;
|
|
633
|
-
/**
|
|
634
|
-
* Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
|
|
635
|
-
*/
|
|
636
|
-
icon?: string | SVG;
|
|
637
|
-
/**
|
|
638
|
-
* Size of the component.
|
|
639
|
-
*/
|
|
640
|
-
size?: "small" | "medium" | "large";
|
|
641
|
-
};
|
|
642
|
-
type Props$D = (ContextualProps | NotificationProps) & CommonProps$7;
|
|
560
|
+
type BadgeProps = PrettifyTypes<ContextualBadgeProps> | PrettifyTypes<NotificationBadgeProps>;
|
|
643
561
|
|
|
644
|
-
declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }:
|
|
562
|
+
declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, ref, size, }: BadgeProps) => react.JSX.Element;
|
|
645
563
|
|
|
646
|
-
type
|
|
564
|
+
type BleedProps = {
|
|
647
565
|
/**
|
|
648
566
|
* Applies the spacing scale to all sides.
|
|
649
567
|
*/
|
|
@@ -678,13 +596,13 @@ type Props$C = {
|
|
|
678
596
|
children: ReactNode;
|
|
679
597
|
};
|
|
680
598
|
|
|
681
|
-
declare
|
|
599
|
+
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: BleedProps) => react.JSX.Element;
|
|
682
600
|
|
|
683
|
-
type
|
|
601
|
+
type BreadcrumbsItem = {
|
|
684
602
|
href?: string;
|
|
685
603
|
label: string;
|
|
686
604
|
};
|
|
687
|
-
type
|
|
605
|
+
type BreadcrumbsProps = {
|
|
688
606
|
/**
|
|
689
607
|
* Provides a label that describes the type of navigation enabled by
|
|
690
608
|
* the component.
|
|
@@ -693,7 +611,7 @@ type Props$B = {
|
|
|
693
611
|
/**
|
|
694
612
|
* Array of objects representing the items of the breadcrumbs.
|
|
695
613
|
*/
|
|
696
|
-
items:
|
|
614
|
+
items: BreadcrumbsItem[];
|
|
697
615
|
/**
|
|
698
616
|
* Number of items before showing a collapsed version of the
|
|
699
617
|
* breadcrumbs. It can't be lower than two (root/collapsed action and
|
|
@@ -715,10 +633,14 @@ type Props$B = {
|
|
|
715
633
|
*/
|
|
716
634
|
showRoot?: boolean;
|
|
717
635
|
};
|
|
636
|
+
type BreadcrumbsItemProps = PrettifyTypes<BreadcrumbsItem & {
|
|
637
|
+
isCurrentPage?: boolean;
|
|
638
|
+
onClick?: (href: string) => void;
|
|
639
|
+
}>;
|
|
718
640
|
|
|
719
|
-
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }:
|
|
641
|
+
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: BreadcrumbsProps) => react.JSX.Element;
|
|
720
642
|
|
|
721
|
-
type
|
|
643
|
+
type BulletedListIconProps = {
|
|
722
644
|
/**
|
|
723
645
|
* Defines the style of the bullet point in the list.
|
|
724
646
|
*/
|
|
@@ -732,7 +654,7 @@ type IconProps = {
|
|
|
732
654
|
*/
|
|
733
655
|
children: ReactNode;
|
|
734
656
|
};
|
|
735
|
-
type
|
|
657
|
+
type BulletedListWithoutIconProps = {
|
|
736
658
|
/**
|
|
737
659
|
* Defines the style of the bullet point in the list.
|
|
738
660
|
*/
|
|
@@ -746,145 +668,342 @@ type OtherProps = {
|
|
|
746
668
|
*/
|
|
747
669
|
children: ReactNode;
|
|
748
670
|
};
|
|
749
|
-
type
|
|
750
|
-
type
|
|
671
|
+
type BulletedListProps = PrettifyTypes<BulletedListIconProps | BulletedListWithoutIconProps>;
|
|
672
|
+
type BulletedListItemProps = {
|
|
673
|
+
/**
|
|
674
|
+
* Text to be shown in the list.
|
|
675
|
+
*/
|
|
676
|
+
children?: ReactNode;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
declare const DxcBulletedList: {
|
|
680
|
+
({ children, type, icon }: BulletedListProps): JSX.Element;
|
|
681
|
+
Item: ({ children }: BulletedListItemProps) => JSX.Element;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
type ButtonSemantic = "default" | "error" | "warning" | "success" | "info";
|
|
685
|
+
type ButtonMode = "primary" | "secondary" | "tertiary";
|
|
686
|
+
type ButtonSize = {
|
|
687
|
+
/**
|
|
688
|
+
* Height of the button.
|
|
689
|
+
*/
|
|
690
|
+
height?: "small" | "medium" | "large";
|
|
691
|
+
width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
692
|
+
};
|
|
693
|
+
type ButtonProps = {
|
|
694
|
+
/**
|
|
695
|
+
* If true, the component will be disabled.
|
|
696
|
+
*/
|
|
697
|
+
disabled?: boolean;
|
|
698
|
+
/**
|
|
699
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
700
|
+
*/
|
|
701
|
+
icon?: string | SVG;
|
|
702
|
+
/**
|
|
703
|
+
* Whether the icon should appear after or before the label.
|
|
704
|
+
*/
|
|
705
|
+
iconPosition?: "before" | "after";
|
|
706
|
+
/**
|
|
707
|
+
* Text to be placed in the button.
|
|
708
|
+
*/
|
|
709
|
+
label?: string;
|
|
710
|
+
/**
|
|
711
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
712
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
713
|
+
*/
|
|
714
|
+
margin?: Space | Margin;
|
|
715
|
+
/**
|
|
716
|
+
* The available button modes.
|
|
717
|
+
*/
|
|
718
|
+
mode?: ButtonMode;
|
|
719
|
+
/**
|
|
720
|
+
* This function will be called when the user clicks the button.
|
|
721
|
+
*/
|
|
722
|
+
onClick?: () => void;
|
|
723
|
+
/**
|
|
724
|
+
* ref to the button element.
|
|
725
|
+
*/
|
|
726
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
727
|
+
/**
|
|
728
|
+
* Specifies the semantic meaning of the buttons, which determines its color.
|
|
729
|
+
*/
|
|
730
|
+
semantic?: ButtonSemantic;
|
|
731
|
+
/**
|
|
732
|
+
* Size of the component.
|
|
733
|
+
*/
|
|
734
|
+
size?: ButtonSize;
|
|
735
|
+
/**
|
|
736
|
+
* Value of the tabindex attribute.
|
|
737
|
+
*/
|
|
738
|
+
tabIndex?: number;
|
|
739
|
+
/**
|
|
740
|
+
* Value for the HTML properties title and aria-label.
|
|
741
|
+
*/
|
|
742
|
+
title?: string;
|
|
743
|
+
/**
|
|
744
|
+
* 'type' html prop of the button.
|
|
745
|
+
*/
|
|
746
|
+
type?: "button" | "reset" | "submit";
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, ref, semantic, size, tabIndex, title, type, }: ButtonProps) => react.JSX.Element;
|
|
750
|
+
|
|
751
|
+
type CommonProps$8 = {
|
|
752
|
+
/**
|
|
753
|
+
* If true, the link will be disabled.
|
|
754
|
+
*/
|
|
755
|
+
disabled?: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Page to be opened when the user clicks on the link.
|
|
758
|
+
*/
|
|
759
|
+
href: string;
|
|
760
|
+
/**
|
|
761
|
+
* Indicates the position of the icon in the component.
|
|
762
|
+
*/
|
|
763
|
+
iconPosition?: "before" | "after";
|
|
764
|
+
/**
|
|
765
|
+
* The available button link modes.
|
|
766
|
+
*/
|
|
767
|
+
mode?: ButtonMode;
|
|
768
|
+
/**
|
|
769
|
+
* If true, the page is opened in a new browser tab.
|
|
770
|
+
*/
|
|
771
|
+
newWindow?: boolean;
|
|
772
|
+
/**
|
|
773
|
+
* If defined, the link will be displayed as a button. This
|
|
774
|
+
* function will be called when the user clicks the link.
|
|
775
|
+
*/
|
|
776
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
777
|
+
/**
|
|
778
|
+
* Ref of the link element.
|
|
779
|
+
*/
|
|
780
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
781
|
+
/**
|
|
782
|
+
* Size of the component.
|
|
783
|
+
*/
|
|
784
|
+
size?: ButtonSize;
|
|
785
|
+
/**
|
|
786
|
+
* Value of the tabindex.
|
|
787
|
+
*/
|
|
788
|
+
tabIndex?: number;
|
|
789
|
+
/**
|
|
790
|
+
* Text to be displayed as a tooltip when hovering over the link.
|
|
791
|
+
* If there is no aria-label or label, the title will be used as the aria-label.
|
|
792
|
+
*/
|
|
793
|
+
title?: string;
|
|
794
|
+
};
|
|
795
|
+
type LabelProps = {
|
|
796
|
+
/**
|
|
797
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the link text.
|
|
798
|
+
*/
|
|
799
|
+
icon?: string | SVG;
|
|
800
|
+
/**
|
|
801
|
+
* Text to be placed in the button link.
|
|
802
|
+
*/
|
|
803
|
+
label: string;
|
|
804
|
+
/**
|
|
805
|
+
* Text to be used as aria-label for the button link. If provided, it takes precedence over the label as the accessible name.
|
|
806
|
+
*/
|
|
807
|
+
ariaLabel?: string;
|
|
808
|
+
};
|
|
809
|
+
type IconProps$1 = {
|
|
810
|
+
/**
|
|
811
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the link text.
|
|
812
|
+
*/
|
|
813
|
+
icon: string | SVG;
|
|
814
|
+
/**
|
|
815
|
+
* Text to be placed in the button link.
|
|
816
|
+
*/
|
|
817
|
+
label?: string;
|
|
818
|
+
} & ({
|
|
819
|
+
/**
|
|
820
|
+
* Text to be displayed as a tooltip when hovering over the link. Required when no ariaLabel is provided.
|
|
821
|
+
*/
|
|
822
|
+
title: string;
|
|
823
|
+
ariaLabel?: string;
|
|
824
|
+
} | {
|
|
825
|
+
/**
|
|
826
|
+
* Text to be used as aria-label for the button link. Required when no title is provided.
|
|
827
|
+
*/
|
|
828
|
+
ariaLabel: string;
|
|
829
|
+
title?: string;
|
|
830
|
+
});
|
|
831
|
+
type ButtonLinkProps = CommonProps$8 & (LabelProps | IconProps$1);
|
|
832
|
+
|
|
833
|
+
declare const DxcButtonLink: {
|
|
834
|
+
({ disabled, href, icon, iconPosition, label, ariaLabel, mode, newWindow, onClick, size, tabIndex, title, ref, ...otherProps }: ButtonLinkProps): react.JSX.Element;
|
|
835
|
+
displayName: string;
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
type ImageProps = {
|
|
839
|
+
/**
|
|
840
|
+
* Alternative text description displayed when the specified image is not loaded.
|
|
841
|
+
*
|
|
842
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
|
|
843
|
+
* See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
|
|
844
|
+
*/
|
|
845
|
+
alt: string;
|
|
846
|
+
/**
|
|
847
|
+
* Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
|
|
848
|
+
* which is required regardless of the presence of the caption or not.
|
|
849
|
+
*/
|
|
850
|
+
caption?: string;
|
|
851
|
+
/**
|
|
852
|
+
* Sets the rendered height of the image.
|
|
853
|
+
*/
|
|
854
|
+
height?: string;
|
|
855
|
+
/**
|
|
856
|
+
* If true, the image will be loaded only when it is visible on the screen (lazy loading).
|
|
857
|
+
* Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
|
|
858
|
+
*/
|
|
859
|
+
lazyLoading?: boolean;
|
|
860
|
+
/**
|
|
861
|
+
* Sets the object-fit CSS property.
|
|
862
|
+
*
|
|
863
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
|
|
864
|
+
*/
|
|
865
|
+
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
866
|
+
/**
|
|
867
|
+
* Sets the object-position CSS property.
|
|
868
|
+
*
|
|
869
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
|
|
870
|
+
*/
|
|
871
|
+
objectPosition?: string;
|
|
751
872
|
/**
|
|
752
|
-
*
|
|
873
|
+
* This function will be called when the image fails to load.
|
|
753
874
|
*/
|
|
754
|
-
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
declare const DxcBulletedList: {
|
|
758
|
-
({ children, type, icon }: Props$A): JSX.Element;
|
|
759
|
-
Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
type Semantic = "default" | "error" | "warning" | "success" | "info";
|
|
763
|
-
type Mode$1 = "primary" | "secondary" | "tertiary";
|
|
764
|
-
type Size$3 = {
|
|
875
|
+
onError?: ReactEventHandler<HTMLImageElement>;
|
|
765
876
|
/**
|
|
766
|
-
*
|
|
877
|
+
* This function will be called when the image is loaded.
|
|
767
878
|
*/
|
|
768
|
-
|
|
769
|
-
width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
770
|
-
};
|
|
771
|
-
type Props$z = {
|
|
879
|
+
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
772
880
|
/**
|
|
773
|
-
*
|
|
881
|
+
* One or more strings separated by commas, indicating a set of source sizes.
|
|
882
|
+
* If the srcSet attribute is absent or contains no values with a width descriptor,
|
|
883
|
+
* then this attribute has no effect.
|
|
884
|
+
*
|
|
885
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
|
|
774
886
|
*/
|
|
775
|
-
|
|
887
|
+
sizes?: string;
|
|
776
888
|
/**
|
|
777
|
-
*
|
|
889
|
+
* URL of the image. This prop is required and must be valid.
|
|
778
890
|
*/
|
|
779
|
-
|
|
891
|
+
src: string;
|
|
780
892
|
/**
|
|
781
|
-
*
|
|
893
|
+
* List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
|
|
894
|
+
*
|
|
895
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
|
|
782
896
|
*/
|
|
783
|
-
|
|
897
|
+
srcSet?: string;
|
|
784
898
|
/**
|
|
785
|
-
*
|
|
899
|
+
* Sets the rendered width of the image.
|
|
786
900
|
*/
|
|
787
|
-
|
|
901
|
+
width?: string;
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
type Size = {
|
|
905
|
+
width?: "fillParent" | "fitContent";
|
|
906
|
+
height?: "fillParent" | "fitContent";
|
|
907
|
+
};
|
|
908
|
+
type CardProps = {
|
|
788
909
|
/**
|
|
789
|
-
*
|
|
910
|
+
* Custom content that will be placed inside the component.
|
|
790
911
|
*/
|
|
791
|
-
|
|
912
|
+
children?: ReactNode;
|
|
792
913
|
/**
|
|
793
|
-
*
|
|
914
|
+
* Initial state of the checkbox, only when it is uncontrolled.
|
|
794
915
|
*/
|
|
795
|
-
|
|
916
|
+
defaultSelected?: boolean;
|
|
796
917
|
/**
|
|
797
|
-
*
|
|
918
|
+
* Defines the direction of the content inside the card. It can be set to "row" or "column". The default value is "column".
|
|
798
919
|
*/
|
|
799
|
-
|
|
920
|
+
direction?: "row" | "column";
|
|
800
921
|
/**
|
|
801
|
-
*
|
|
922
|
+
* Defines the size of the card when it is empty.
|
|
802
923
|
*/
|
|
803
|
-
|
|
924
|
+
emptySize?: {
|
|
925
|
+
width?: string;
|
|
926
|
+
height?: string;
|
|
927
|
+
iconSize?: "small" | "medium" | "large";
|
|
928
|
+
};
|
|
804
929
|
/**
|
|
805
|
-
*
|
|
930
|
+
* URL to navigate to when the card is clicked.
|
|
931
|
+
* If href is defined selectable will be ignored and the link will be always considered as an anchor.
|
|
806
932
|
*/
|
|
807
|
-
|
|
933
|
+
href?: string;
|
|
808
934
|
/**
|
|
809
|
-
*
|
|
810
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
935
|
+
* Image to be displayed inside the card.
|
|
811
936
|
*/
|
|
812
|
-
|
|
937
|
+
image?: ImageProps;
|
|
813
938
|
/**
|
|
814
|
-
*
|
|
939
|
+
* Position of the image inside the card. It can be set to "before" or "after" the content.
|
|
815
940
|
*/
|
|
816
|
-
|
|
941
|
+
imagePosition?: "before" | "after";
|
|
817
942
|
/**
|
|
818
|
-
*
|
|
943
|
+
* If true, the card will be displayed as empty state.
|
|
819
944
|
*/
|
|
820
|
-
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$z) => JSX.Element;
|
|
824
|
-
|
|
825
|
-
type Size$2 = {
|
|
826
|
-
top?: Space$1;
|
|
827
|
-
bottom?: Space$1;
|
|
828
|
-
left?: Space$1;
|
|
829
|
-
right?: Space$1;
|
|
830
|
-
};
|
|
831
|
-
type Props$y = {
|
|
945
|
+
isEmpty?: boolean;
|
|
832
946
|
/**
|
|
833
|
-
*
|
|
834
|
-
* In case of omission, the image container will not appear and
|
|
835
|
-
* the content will occupy its space.
|
|
947
|
+
* If true, a loading state will be displayed inside the card.
|
|
836
948
|
*/
|
|
837
|
-
|
|
949
|
+
isLoading?: boolean;
|
|
838
950
|
/**
|
|
839
|
-
*
|
|
951
|
+
* Defines the size of the loading card when isLoading is true.
|
|
840
952
|
*/
|
|
841
|
-
|
|
953
|
+
loadingSize?: {
|
|
954
|
+
width?: string;
|
|
955
|
+
height?: string;
|
|
956
|
+
};
|
|
842
957
|
/**
|
|
843
|
-
*
|
|
844
|
-
* component. You can pass an object with 'top', 'bottom', 'left'
|
|
845
|
-
* and 'right' properties in order to specify different padding sizes.
|
|
958
|
+
* Defines the visual style of the card. It can be set to "elevated" or "outlined".
|
|
846
959
|
*/
|
|
847
|
-
|
|
960
|
+
mode?: "elevated" | "outlined";
|
|
848
961
|
/**
|
|
849
|
-
*
|
|
962
|
+
* If true, the link will open in a new window. href must be provided for this to work.
|
|
850
963
|
*/
|
|
851
|
-
|
|
964
|
+
newWindow?: boolean;
|
|
852
965
|
/**
|
|
853
|
-
*
|
|
854
|
-
*
|
|
966
|
+
* Callback function that is called when the card is clicked.
|
|
967
|
+
* It receives a boolean value indicating whether the card is selected or not.
|
|
968
|
+
* selectable must be true for this to work.
|
|
855
969
|
*/
|
|
856
|
-
|
|
970
|
+
onSelectionChange?: (selected: boolean) => void;
|
|
857
971
|
/**
|
|
858
|
-
*
|
|
859
|
-
* will show some visual feedback on hover.
|
|
972
|
+
* Callback function that is called when the card is clicked.
|
|
860
973
|
*/
|
|
861
|
-
onClick?: () => void;
|
|
974
|
+
onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
862
975
|
/**
|
|
863
|
-
*
|
|
976
|
+
* Ref to the card element.
|
|
864
977
|
*/
|
|
865
|
-
|
|
978
|
+
ref?: React.Ref<HTMLDivElement | HTMLAnchorElement>;
|
|
866
979
|
/**
|
|
867
|
-
*
|
|
868
|
-
*
|
|
980
|
+
* 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.
|
|
981
|
+
* If href is defined, the card won't be selectable, even if this prop is true.
|
|
869
982
|
*/
|
|
870
|
-
|
|
983
|
+
selectable?: boolean;
|
|
871
984
|
/**
|
|
872
|
-
*
|
|
985
|
+
* If true, the card is selected and if defined it will behave as a controlled component.
|
|
873
986
|
*/
|
|
874
|
-
|
|
987
|
+
selected?: boolean;
|
|
875
988
|
/**
|
|
876
|
-
*
|
|
989
|
+
* Defines the size of the card. Width and height can be set to "fillParent" or "fitContent".
|
|
990
|
+
* The default value is { width: "fitContent", height: "fitContent" }.
|
|
877
991
|
*/
|
|
878
|
-
|
|
992
|
+
size?: Size;
|
|
879
993
|
/**
|
|
880
|
-
*
|
|
994
|
+
* Specifies the tab index of the card.
|
|
995
|
+
* The default value is 0.
|
|
881
996
|
*/
|
|
882
|
-
|
|
997
|
+
tabIndex?: number;
|
|
883
998
|
};
|
|
884
999
|
|
|
885
|
-
declare const DxcCard: ({
|
|
1000
|
+
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;
|
|
886
1001
|
|
|
887
|
-
|
|
1002
|
+
/**
|
|
1003
|
+
* Reference to the component.
|
|
1004
|
+
*/
|
|
1005
|
+
type RefType$a = HTMLDivElement;
|
|
1006
|
+
type CheckboxProps = {
|
|
888
1007
|
/**
|
|
889
1008
|
* Specifies a string to be used as the name for the checkbox element when no `label` is provided.
|
|
890
1009
|
*/
|
|
@@ -916,7 +1035,7 @@ type Props$x = {
|
|
|
916
1035
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties
|
|
917
1036
|
* in order to specify different margin sizes.
|
|
918
1037
|
*/
|
|
919
|
-
margin?: Space
|
|
1038
|
+
margin?: Space | Margin;
|
|
920
1039
|
/**
|
|
921
1040
|
* Name attribute of the input element.
|
|
922
1041
|
*/
|
|
@@ -934,6 +1053,10 @@ type Props$x = {
|
|
|
934
1053
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
935
1054
|
*/
|
|
936
1055
|
readOnly?: boolean;
|
|
1056
|
+
/**
|
|
1057
|
+
* ref to the checkbox container element.
|
|
1058
|
+
*/
|
|
1059
|
+
ref?: React.Ref<RefType$a>;
|
|
937
1060
|
/**
|
|
938
1061
|
* Size of the component.
|
|
939
1062
|
*/
|
|
@@ -949,59 +1072,97 @@ type Props$x = {
|
|
|
949
1072
|
value?: string;
|
|
950
1073
|
};
|
|
951
1074
|
|
|
952
|
-
declare const DxcCheckbox:
|
|
1075
|
+
declare const DxcCheckbox: {
|
|
1076
|
+
({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, readOnly, ref, size, tabIndex, value, }: CheckboxProps): react.JSX.Element;
|
|
1077
|
+
displayName: string;
|
|
1078
|
+
};
|
|
953
1079
|
|
|
954
|
-
type
|
|
1080
|
+
type ChipAvatarType = {
|
|
1081
|
+
color: AvatarProps["color"];
|
|
1082
|
+
profileName?: AvatarProps["label"];
|
|
1083
|
+
imageSrc?: AvatarProps["imageSrc"];
|
|
1084
|
+
icon?: AvatarProps["icon"];
|
|
1085
|
+
};
|
|
1086
|
+
type CommonProps$7 = {
|
|
955
1087
|
/**
|
|
956
|
-
*
|
|
1088
|
+
* Function to be called when the chip is clicked or the dismiss action is triggered.
|
|
957
1089
|
*/
|
|
958
|
-
|
|
1090
|
+
onClick?: () => void;
|
|
1091
|
+
/**
|
|
1092
|
+
* Ref to the chip element.
|
|
1093
|
+
*/
|
|
1094
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1095
|
+
/**
|
|
1096
|
+
* Value of the tabindex attribute.
|
|
1097
|
+
*/
|
|
1098
|
+
tabIndex?: number;
|
|
1099
|
+
};
|
|
1100
|
+
type SelectableChipProps = PrettifyTypes<CommonProps$7 & {
|
|
1101
|
+
/**
|
|
1102
|
+
* If true, the component will be disabled.
|
|
1103
|
+
*/
|
|
1104
|
+
disabled?: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* The whole chip is an interactive element that allows users to activate or clear options directly within the interface.
|
|
1107
|
+
*/
|
|
1108
|
+
mode?: "selectable";
|
|
1109
|
+
/**
|
|
1110
|
+
* If true, the component will be selected. This property is only applicable when the mode is "selectable".
|
|
1111
|
+
* If undefined, the component manages its own internal state (uncontrolled mode).
|
|
1112
|
+
*/
|
|
1113
|
+
selected?: boolean;
|
|
1114
|
+
} & ({
|
|
959
1115
|
/**
|
|
960
|
-
* Element or
|
|
1116
|
+
* Element, path or avatar used as icon to be placed before the chip label.
|
|
961
1117
|
*/
|
|
962
|
-
|
|
1118
|
+
prefix: ChipAvatarType;
|
|
1119
|
+
/**
|
|
1120
|
+
* Text to be placed on the chip. Required when using an avatar prefix.
|
|
1121
|
+
*/
|
|
1122
|
+
label: string;
|
|
1123
|
+
} | {
|
|
963
1124
|
/**
|
|
964
1125
|
* Element or path used as icon to be placed before the chip label.
|
|
965
1126
|
*/
|
|
966
|
-
|
|
1127
|
+
prefix: string | SVG;
|
|
967
1128
|
/**
|
|
968
|
-
*
|
|
1129
|
+
* Text to be placed on the chip. Optional when using an icon prefix.
|
|
969
1130
|
*/
|
|
970
|
-
|
|
1131
|
+
label?: string;
|
|
1132
|
+
} | {
|
|
1133
|
+
prefix?: undefined;
|
|
971
1134
|
/**
|
|
972
|
-
*
|
|
1135
|
+
* Text to be placed on the chip.
|
|
973
1136
|
*/
|
|
974
|
-
|
|
1137
|
+
label: string;
|
|
1138
|
+
})>;
|
|
1139
|
+
type DismissibleChipProps = PrettifyTypes<CommonProps$7 & {
|
|
975
1140
|
/**
|
|
976
|
-
*
|
|
1141
|
+
* Dismissible chip is used to represent information generated by user input within an interface.
|
|
977
1142
|
*/
|
|
978
|
-
|
|
1143
|
+
mode: "dismissible";
|
|
979
1144
|
/**
|
|
980
|
-
*
|
|
981
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1145
|
+
* Text to be placed on the chip.
|
|
982
1146
|
*/
|
|
983
|
-
|
|
1147
|
+
label: string;
|
|
984
1148
|
/**
|
|
985
|
-
*
|
|
1149
|
+
* Element, path or avatar used as icon to be placed before the chip label.
|
|
986
1150
|
*/
|
|
987
|
-
|
|
988
|
-
|
|
1151
|
+
prefix?: string | SVG | ChipAvatarType;
|
|
1152
|
+
selected?: never;
|
|
1153
|
+
disabled?: never;
|
|
1154
|
+
}>;
|
|
1155
|
+
type ChipProps = PrettifyTypes<SelectableChipProps | DismissibleChipProps>;
|
|
989
1156
|
|
|
990
|
-
declare const DxcChip: ({
|
|
1157
|
+
declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, ref, }: ChipProps) => react.JSX.Element | null;
|
|
991
1158
|
|
|
992
|
-
type
|
|
993
|
-
top?: string;
|
|
994
|
-
right?: string;
|
|
995
|
-
bottom?: string;
|
|
996
|
-
left?: string;
|
|
997
|
-
};
|
|
998
|
-
type Inset = {
|
|
1159
|
+
type ContainerSpacing = {
|
|
999
1160
|
top?: string;
|
|
1000
1161
|
right?: string;
|
|
1001
1162
|
bottom?: string;
|
|
1002
1163
|
left?: string;
|
|
1003
1164
|
};
|
|
1004
|
-
type
|
|
1165
|
+
type ContainerBackground = {
|
|
1005
1166
|
attachment?: string;
|
|
1006
1167
|
clip?: string;
|
|
1007
1168
|
color?: string;
|
|
@@ -1011,36 +1172,36 @@ type Background = {
|
|
|
1011
1172
|
repeat?: string;
|
|
1012
1173
|
size?: string;
|
|
1013
1174
|
};
|
|
1014
|
-
type
|
|
1175
|
+
type ContainerBorderProperties = {
|
|
1015
1176
|
width?: string;
|
|
1016
1177
|
style?: string;
|
|
1017
1178
|
color?: string;
|
|
1018
1179
|
};
|
|
1019
|
-
type
|
|
1020
|
-
top?:
|
|
1021
|
-
right?:
|
|
1022
|
-
bottom?:
|
|
1023
|
-
left?:
|
|
1024
|
-
}
|
|
1025
|
-
type
|
|
1180
|
+
type ContainerBorder = PrettifyTypes<ContainerBorderProperties | {
|
|
1181
|
+
top?: ContainerBorderProperties;
|
|
1182
|
+
right?: ContainerBorderProperties;
|
|
1183
|
+
bottom?: ContainerBorderProperties;
|
|
1184
|
+
left?: ContainerBorderProperties;
|
|
1185
|
+
}>;
|
|
1186
|
+
type ContainerOutline = PrettifyTypes<ContainerBorderProperties & {
|
|
1026
1187
|
offset?: string;
|
|
1027
|
-
}
|
|
1188
|
+
}>;
|
|
1028
1189
|
type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
|
|
1029
|
-
type
|
|
1190
|
+
type ContainerOverflow = PrettifyTypes<OverflowValues | {
|
|
1030
1191
|
x?: OverflowValues;
|
|
1031
1192
|
y?: OverflowValues;
|
|
1032
|
-
}
|
|
1033
|
-
type
|
|
1193
|
+
}>;
|
|
1194
|
+
type ContainerProps = {
|
|
1034
1195
|
/**
|
|
1035
1196
|
* Based on the CSS property background allows configuring all properties related to the background of a container.
|
|
1036
1197
|
*
|
|
1037
1198
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
|
|
1038
1199
|
*/
|
|
1039
|
-
background?:
|
|
1200
|
+
background?: ContainerBackground;
|
|
1040
1201
|
/**
|
|
1041
1202
|
* Based on the CSS property border allows configuring all properties related to the border of a container.
|
|
1042
1203
|
*/
|
|
1043
|
-
border?:
|
|
1204
|
+
border?: ContainerBorder;
|
|
1044
1205
|
/**
|
|
1045
1206
|
* Sets the border-radius CSS property.
|
|
1046
1207
|
*
|
|
@@ -1063,6 +1224,10 @@ type Props$v = {
|
|
|
1063
1224
|
* Custom content inside the container.
|
|
1064
1225
|
*/
|
|
1065
1226
|
children?: ReactNode;
|
|
1227
|
+
/**
|
|
1228
|
+
* Reference to the container element.
|
|
1229
|
+
*/
|
|
1230
|
+
ref?: Ref<HTMLDivElement>;
|
|
1066
1231
|
/**
|
|
1067
1232
|
* Sets the display CSS property.
|
|
1068
1233
|
* The set of values is limited to the ones related to the outer display type.
|
|
@@ -1088,11 +1253,11 @@ type Props$v = {
|
|
|
1088
1253
|
* Based on the CSS property inset this prop is a shorthand that corresponds
|
|
1089
1254
|
* to the top, right, bottom, and/or left properties.
|
|
1090
1255
|
*/
|
|
1091
|
-
inset?:
|
|
1256
|
+
inset?: ContainerSpacing;
|
|
1092
1257
|
/**
|
|
1093
1258
|
* Size of the margin to be applied to the container.
|
|
1094
1259
|
*/
|
|
1095
|
-
margin?: string |
|
|
1260
|
+
margin?: string | ContainerSpacing;
|
|
1096
1261
|
/**
|
|
1097
1262
|
* Sets the max-width CSS property.
|
|
1098
1263
|
*
|
|
@@ -1121,17 +1286,17 @@ type Props$v = {
|
|
|
1121
1286
|
* Based on the CSS property outline allows configuring all properties related
|
|
1122
1287
|
* to the outline of a container.
|
|
1123
1288
|
*/
|
|
1124
|
-
outline?:
|
|
1289
|
+
outline?: ContainerOutline;
|
|
1125
1290
|
/**
|
|
1126
1291
|
* Sets the overflow CSS property.
|
|
1127
1292
|
*
|
|
1128
1293
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
|
|
1129
1294
|
*/
|
|
1130
|
-
overflow?:
|
|
1295
|
+
overflow?: ContainerOverflow;
|
|
1131
1296
|
/**
|
|
1132
1297
|
* Size of the padding to be applied to the container.
|
|
1133
1298
|
*/
|
|
1134
|
-
padding?: string |
|
|
1299
|
+
padding?: string | ContainerSpacing;
|
|
1135
1300
|
/**
|
|
1136
1301
|
* Sets the position CSS property.
|
|
1137
1302
|
*
|
|
@@ -1152,77 +1317,67 @@ type Props$v = {
|
|
|
1152
1317
|
zIndex?: "auto" | number;
|
|
1153
1318
|
};
|
|
1154
1319
|
|
|
1155
|
-
declare
|
|
1320
|
+
declare const DxcContainer: ({ display, width, height, overflow, ref, ...props }: ContainerProps) => react.JSX.Element;
|
|
1156
1321
|
|
|
1157
|
-
type
|
|
1322
|
+
type BaseCommonItemProps = {
|
|
1158
1323
|
badge?: ReactElement;
|
|
1159
1324
|
icon?: string | SVG;
|
|
1160
1325
|
label: string;
|
|
1161
1326
|
};
|
|
1162
|
-
type
|
|
1327
|
+
type BaseItem = PrettifyTypes<BaseCommonItemProps & {
|
|
1163
1328
|
onSelect?: () => void;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1329
|
+
selected?: boolean;
|
|
1330
|
+
href?: string;
|
|
1331
|
+
renderItem?: (props: {
|
|
1332
|
+
children: ReactNode;
|
|
1333
|
+
}) => ReactNode;
|
|
1334
|
+
}>;
|
|
1335
|
+
type BaseGroupItem = PrettifyTypes<BaseCommonItemProps & {
|
|
1336
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
1337
|
+
defaultOpen?: boolean;
|
|
1338
|
+
}>;
|
|
1339
|
+
type BaseSection = {
|
|
1340
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
1171
1341
|
title?: string;
|
|
1172
1342
|
};
|
|
1173
|
-
type
|
|
1343
|
+
type BaseMenuProps = {
|
|
1174
1344
|
/**
|
|
1175
|
-
* Array of items to be displayed in the
|
|
1345
|
+
* Array of items to be displayed in the menu.
|
|
1176
1346
|
* Each item can be a single/simple item, a group item or a section.
|
|
1177
1347
|
*/
|
|
1178
|
-
items: (
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
declare function DxcContextualMenu({ items }: Props$u): react_jsx_runtime.JSX.Element;
|
|
1182
|
-
|
|
1183
|
-
type BaseActionCell = {
|
|
1184
|
-
disabled?: boolean;
|
|
1185
|
-
tabIndex?: number;
|
|
1186
|
-
title: string;
|
|
1187
|
-
};
|
|
1188
|
-
type ActionCell = BaseActionCell & ({
|
|
1189
|
-
icon: string | SVG;
|
|
1190
|
-
onClick: () => void;
|
|
1191
|
-
options?: never;
|
|
1192
|
-
} | {
|
|
1193
|
-
icon?: never;
|
|
1194
|
-
onClick: (value?: string) => void;
|
|
1195
|
-
options: Option$2[];
|
|
1196
|
-
});
|
|
1197
|
-
type ActionsCellPropsType = {
|
|
1348
|
+
items: (BaseItem | BaseGroupItem)[] | BaseSection[];
|
|
1198
1349
|
/**
|
|
1199
|
-
*
|
|
1200
|
-
* or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
|
|
1201
|
-
* Only the first action with options will be displayed and only up to 3 actions.
|
|
1202
|
-
* In the case of the dropdown the click function will pass the value assigned to the option.
|
|
1350
|
+
* If true the menu will be displayed with a border.
|
|
1203
1351
|
*/
|
|
1204
|
-
|
|
1205
|
-
};
|
|
1206
|
-
type Props$t = {
|
|
1352
|
+
displayBorder?: boolean;
|
|
1207
1353
|
/**
|
|
1208
|
-
*
|
|
1209
|
-
* content in this area.
|
|
1354
|
+
* If true the menu will have lines marking the groups.
|
|
1210
1355
|
*/
|
|
1211
|
-
|
|
1356
|
+
displayGroupLines?: boolean;
|
|
1212
1357
|
/**
|
|
1213
|
-
*
|
|
1214
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1358
|
+
* If true the menu will have controls at the end.
|
|
1215
1359
|
*/
|
|
1216
|
-
|
|
1360
|
+
displayControlsAfter?: boolean;
|
|
1217
1361
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
* - "default": Default table size.
|
|
1220
|
-
* - "reduced": More compact table with less spacing for high density information.
|
|
1362
|
+
* If true the menu will be icons only and display a popover on click.
|
|
1221
1363
|
*/
|
|
1222
|
-
|
|
1364
|
+
hasPopOver?: boolean;
|
|
1365
|
+
/**
|
|
1366
|
+
* If true the menu will be displayed horizontally.
|
|
1367
|
+
*/
|
|
1368
|
+
isHorizontal?: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* Function that will be called when an option is clicked.
|
|
1371
|
+
* This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
|
|
1372
|
+
*/
|
|
1373
|
+
onSelectItem?: () => void;
|
|
1223
1374
|
};
|
|
1224
1375
|
|
|
1225
|
-
type
|
|
1376
|
+
type ContextualMenuProps = Omit<BaseMenuProps, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1377
|
+
|
|
1378
|
+
declare function DxcContextualMenu({ items }: ContextualMenuProps): react.JSX.Element;
|
|
1379
|
+
|
|
1380
|
+
type DataGridColumn = {
|
|
1226
1381
|
/**
|
|
1227
1382
|
* Key that will be rendered from each row in rows.
|
|
1228
1383
|
*/
|
|
@@ -1260,23 +1415,23 @@ type GridColumn = {
|
|
|
1260
1415
|
*/
|
|
1261
1416
|
alignment?: "left" | "right" | "center";
|
|
1262
1417
|
};
|
|
1263
|
-
type
|
|
1418
|
+
type DataGridRow = {
|
|
1264
1419
|
/**
|
|
1265
1420
|
* List of rows that will be rendered in each cell based on the key in each column.
|
|
1266
1421
|
*/
|
|
1267
1422
|
[key: string]: ReactNode | undefined;
|
|
1268
1423
|
};
|
|
1269
|
-
type
|
|
1424
|
+
type DataGridHierarchyRow = PrettifyTypes<DataGridRow & {
|
|
1270
1425
|
/**
|
|
1271
1426
|
* Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
|
|
1272
1427
|
* These child rows will be displayed when the parent row is expanded.
|
|
1273
1428
|
*/
|
|
1274
|
-
childRows?:
|
|
1429
|
+
childRows?: DataGridHierarchyRow[] | DataGridRow[];
|
|
1275
1430
|
/**
|
|
1276
1431
|
* Function called when a row with children is expanded or collapsed (based on the value of `open`).
|
|
1277
1432
|
* Returns (or resolves to) the array of child rows nested under this row to display when expanded.
|
|
1278
1433
|
*/
|
|
1279
|
-
childrenTrigger?: (open?: boolean, triggerRow?:
|
|
1434
|
+
childrenTrigger?: (open?: boolean, triggerRow?: DataGridHierarchyRow) => (DataGridHierarchyRow[] | DataGridRow[]) | Promise<DataGridHierarchyRow[] | DataGridRow[]>;
|
|
1280
1435
|
/**
|
|
1281
1436
|
* Indicates whether child rows are currently being loaded.
|
|
1282
1437
|
*/
|
|
@@ -1293,27 +1448,27 @@ type HierarchyGridRow = GridRow & {
|
|
|
1293
1448
|
* Indicates whether child rows are currently visible.
|
|
1294
1449
|
*/
|
|
1295
1450
|
visibleChildren?: boolean;
|
|
1296
|
-
}
|
|
1297
|
-
type
|
|
1451
|
+
}>;
|
|
1452
|
+
type DataGridExpandableRow = PrettifyTypes<DataGridRow & {
|
|
1298
1453
|
expandedContent?: ReactNode;
|
|
1299
1454
|
expandedContentHeight?: number;
|
|
1300
1455
|
contentIsExpanded?: boolean;
|
|
1301
|
-
}
|
|
1302
|
-
type
|
|
1303
|
-
rows:
|
|
1456
|
+
}>;
|
|
1457
|
+
type DataGridExpandableRows = {
|
|
1458
|
+
rows: DataGridExpandableRow[];
|
|
1304
1459
|
/**
|
|
1305
1460
|
* Whether the rows can expand or not.
|
|
1306
1461
|
*/
|
|
1307
1462
|
expandable: true;
|
|
1308
1463
|
/**
|
|
1309
|
-
* 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
|
|
1464
|
+
* 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[].
|
|
1310
1465
|
*/
|
|
1311
1466
|
uniqueRowId: string;
|
|
1312
1467
|
};
|
|
1313
|
-
type
|
|
1314
|
-
rows:
|
|
1468
|
+
type DataGridHierarchyRows = {
|
|
1469
|
+
rows: DataGridHierarchyRow[];
|
|
1315
1470
|
/**
|
|
1316
|
-
* 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
|
|
1471
|
+
* 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[].
|
|
1317
1472
|
*/
|
|
1318
1473
|
uniqueRowId: string;
|
|
1319
1474
|
/**
|
|
@@ -1321,7 +1476,7 @@ type HierarchyRows = {
|
|
|
1321
1476
|
*/
|
|
1322
1477
|
expandable?: false;
|
|
1323
1478
|
};
|
|
1324
|
-
type
|
|
1479
|
+
type DataGridSelectableProps = {
|
|
1325
1480
|
/**
|
|
1326
1481
|
* Whether the rows are selectable or not.
|
|
1327
1482
|
*/
|
|
@@ -1335,7 +1490,7 @@ type SelectableGridProps = {
|
|
|
1335
1490
|
*/
|
|
1336
1491
|
onSelectRows: (selectedRows: Set<number | string>) => void;
|
|
1337
1492
|
/**
|
|
1338
|
-
* 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
|
|
1493
|
+
* 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[].
|
|
1339
1494
|
*/
|
|
1340
1495
|
uniqueRowId: string;
|
|
1341
1496
|
} | {
|
|
@@ -1344,7 +1499,7 @@ type SelectableGridProps = {
|
|
|
1344
1499
|
onSelectRows?: never;
|
|
1345
1500
|
uniqueRowId?: string;
|
|
1346
1501
|
};
|
|
1347
|
-
type
|
|
1502
|
+
type DataGridPaginatedProps = {
|
|
1348
1503
|
/**
|
|
1349
1504
|
* If true, paginator will be displayed.
|
|
1350
1505
|
*/
|
|
@@ -1379,7 +1534,7 @@ type PaginatedProps$1 = {
|
|
|
1379
1534
|
*/
|
|
1380
1535
|
defaultPage?: number;
|
|
1381
1536
|
};
|
|
1382
|
-
type
|
|
1537
|
+
type DataGridNonPaginatedProps = {
|
|
1383
1538
|
/**
|
|
1384
1539
|
* If true, paginator will be displayed.
|
|
1385
1540
|
*/
|
|
@@ -1415,36 +1570,37 @@ type NonPaginatedProps$1 = {
|
|
|
1415
1570
|
defaultPage?: never;
|
|
1416
1571
|
};
|
|
1417
1572
|
type CommonProps$6 = {
|
|
1418
|
-
columns:
|
|
1573
|
+
columns: DataGridColumn[];
|
|
1419
1574
|
/**
|
|
1420
1575
|
* Extra row that will be always visible.
|
|
1421
1576
|
*/
|
|
1422
|
-
summaryRow?:
|
|
1577
|
+
summaryRow?: DataGridRow;
|
|
1423
1578
|
/**
|
|
1424
1579
|
* Function called whenever a cell is edited.
|
|
1425
1580
|
*/
|
|
1426
|
-
onGridRowsChange?: (_rows:
|
|
1581
|
+
onGridRowsChange?: (_rows: DataGridRow[] | DataGridHierarchyRow[] | DataGridExpandableRow[]) => void;
|
|
1427
1582
|
/**
|
|
1428
1583
|
* Function called whenever a column is sorted. Receives the sorted
|
|
1429
1584
|
* column and direction, or `undefined` if no sorting is applied.
|
|
1430
1585
|
*/
|
|
1431
1586
|
onSort?: (_sortColumn?: SortColumn) => void;
|
|
1432
1587
|
};
|
|
1433
|
-
type
|
|
1434
|
-
rows:
|
|
1588
|
+
type DataGridBasicProps = {
|
|
1589
|
+
rows: DataGridRow[];
|
|
1435
1590
|
/**
|
|
1436
1591
|
* Whether the rows can expand or not.
|
|
1437
1592
|
*/
|
|
1438
1593
|
expandable?: false;
|
|
1439
1594
|
};
|
|
1440
|
-
type
|
|
1595
|
+
type DataGridProps = PrettifyTypes<CommonProps$6 & (DataGridPaginatedProps | DataGridNonPaginatedProps) & (DataGridBasicProps | DataGridExpandableRows | DataGridHierarchyRows) & DataGridSelectableProps>;
|
|
1441
1596
|
|
|
1442
1597
|
declare const DxcDataGrid: {
|
|
1443
|
-
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }:
|
|
1444
|
-
ActionsCell: ({ actions }:
|
|
1598
|
+
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: DataGridProps): JSX.Element;
|
|
1599
|
+
ActionsCell: ({ actions }: ActionsCellProps) => JSX.Element;
|
|
1445
1600
|
};
|
|
1446
1601
|
|
|
1447
|
-
type
|
|
1602
|
+
type RefType$9 = React.Ref<HTMLDivElement>;
|
|
1603
|
+
type DateInputProps = {
|
|
1448
1604
|
/**
|
|
1449
1605
|
* Initial value of the input element, only when it is uncontrolled.
|
|
1450
1606
|
*/
|
|
@@ -1535,7 +1691,7 @@ type Props$r = {
|
|
|
1535
1691
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1536
1692
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1537
1693
|
*/
|
|
1538
|
-
margin?: Space
|
|
1694
|
+
margin?: Space | Margin;
|
|
1539
1695
|
/**
|
|
1540
1696
|
* Size of the component.
|
|
1541
1697
|
*/
|
|
@@ -1548,11 +1704,18 @@ type Props$r = {
|
|
|
1548
1704
|
* Specifies a string to be used as the name for the date input element when no `label` is provided.
|
|
1549
1705
|
*/
|
|
1550
1706
|
ariaLabel?: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* Ref object to access the date input element.
|
|
1709
|
+
*/
|
|
1710
|
+
ref?: RefType$9;
|
|
1551
1711
|
};
|
|
1552
1712
|
|
|
1553
|
-
declare const DxcDateInput:
|
|
1713
|
+
declare const DxcDateInput: {
|
|
1714
|
+
({ label, name, defaultValue, value, format, helperText, placeholder, clearable, disabled, readOnly, optional, onChange, onBlur, error, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: DateInputProps): react.JSX.Element;
|
|
1715
|
+
displayName: string;
|
|
1716
|
+
};
|
|
1554
1717
|
|
|
1555
|
-
type
|
|
1718
|
+
type DialogProps = {
|
|
1556
1719
|
/**
|
|
1557
1720
|
* If true, the close button will be visible.
|
|
1558
1721
|
*/
|
|
@@ -1592,9 +1755,9 @@ type Props$q = {
|
|
|
1592
1755
|
disableFocusLock?: boolean;
|
|
1593
1756
|
};
|
|
1594
1757
|
|
|
1595
|
-
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }:
|
|
1758
|
+
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: DialogProps) => JSX.Element;
|
|
1596
1759
|
|
|
1597
|
-
type
|
|
1760
|
+
type DividerProps = {
|
|
1598
1761
|
/**
|
|
1599
1762
|
* The divider can be shown in horizontal or vertical.
|
|
1600
1763
|
*/
|
|
@@ -1608,17 +1771,99 @@ type Props$p = {
|
|
|
1608
1771
|
*/
|
|
1609
1772
|
color?: "lightGrey" | "mediumGrey" | "darkGrey";
|
|
1610
1773
|
/**
|
|
1611
|
-
* Specifies whether the divider serves a purely decorative purpose
|
|
1612
|
-
* or functions as a semantic separator for content. Additionally, it
|
|
1613
|
-
* determines whether the divider is accessible to screen readers.
|
|
1774
|
+
* Specifies whether the divider serves a purely decorative purpose
|
|
1775
|
+
* or functions as a semantic separator for content. Additionally, it
|
|
1776
|
+
* determines whether the divider is accessible to screen readers.
|
|
1777
|
+
*/
|
|
1778
|
+
decorative?: boolean;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
declare function DxcDivider({ color, decorative, orientation, weight, }: DividerProps): react.JSX.Element;
|
|
1782
|
+
|
|
1783
|
+
type DropdownOption = {
|
|
1784
|
+
/**
|
|
1785
|
+
* Option display value.
|
|
1786
|
+
*/
|
|
1787
|
+
label?: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
1790
|
+
*/
|
|
1791
|
+
icon?: string | SVG;
|
|
1792
|
+
/**
|
|
1793
|
+
* Option inner value.
|
|
1794
|
+
*/
|
|
1795
|
+
value: string;
|
|
1796
|
+
/**
|
|
1797
|
+
* Whether the option has a divider below it.
|
|
1798
|
+
*/
|
|
1799
|
+
hasDivider?: boolean;
|
|
1800
|
+
};
|
|
1801
|
+
type DropdownProps = {
|
|
1802
|
+
/**
|
|
1803
|
+
* An array of objects representing the options.
|
|
1804
|
+
*/
|
|
1805
|
+
options: DropdownOption[];
|
|
1806
|
+
/**
|
|
1807
|
+
* In case options include icons, whether the icon should appear
|
|
1808
|
+
* after or before the label.
|
|
1809
|
+
*/
|
|
1810
|
+
optionsIconPosition?: "before" | "after";
|
|
1811
|
+
/**
|
|
1812
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the label.
|
|
1813
|
+
*/
|
|
1814
|
+
icon?: string | SVG;
|
|
1815
|
+
/**
|
|
1816
|
+
* Whether the icon should appear after or before the label.
|
|
1817
|
+
*/
|
|
1818
|
+
iconPosition?: "before" | "after";
|
|
1819
|
+
/**
|
|
1820
|
+
* Text to be placed within the dropdown.
|
|
1821
|
+
*/
|
|
1822
|
+
label?: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* Whether the arrow next to the label must be displayed or not.
|
|
1825
|
+
*/
|
|
1826
|
+
caretHidden?: boolean;
|
|
1827
|
+
/**
|
|
1828
|
+
* If true, the component will be disabled.
|
|
1829
|
+
*/
|
|
1830
|
+
disabled?: boolean;
|
|
1831
|
+
/**
|
|
1832
|
+
* If true, the options are shown when the dropdown is hover.
|
|
1833
|
+
*/
|
|
1834
|
+
expandOnHover?: boolean;
|
|
1835
|
+
/**
|
|
1836
|
+
* This function will be called every time the selection changes.
|
|
1837
|
+
* The value of the selected option will be passed as a parameter.
|
|
1838
|
+
*/
|
|
1839
|
+
onSelectOption: (value: string) => void;
|
|
1840
|
+
/**
|
|
1841
|
+
* Size of the margin to be applied to the component.
|
|
1842
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right'
|
|
1843
|
+
* properties in order to specify different margin sizes.
|
|
1844
|
+
*/
|
|
1845
|
+
margin?: Space | Margin;
|
|
1846
|
+
/**
|
|
1847
|
+
* Size of the component.
|
|
1848
|
+
*/
|
|
1849
|
+
size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
1850
|
+
/**
|
|
1851
|
+
* Value of the tabindex attribute.
|
|
1852
|
+
*/
|
|
1853
|
+
tabIndex?: number;
|
|
1854
|
+
/**
|
|
1855
|
+
* Text representing advisory information related to the dropdown's trigger action.
|
|
1856
|
+
* Under the hood, this prop also serves as an accessible label for the component.
|
|
1614
1857
|
*/
|
|
1615
|
-
|
|
1858
|
+
title?: string;
|
|
1616
1859
|
};
|
|
1617
1860
|
|
|
1618
|
-
declare
|
|
1619
|
-
|
|
1620
|
-
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => react_jsx_runtime.JSX.Element;
|
|
1861
|
+
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: DropdownProps) => react.JSX.Element;
|
|
1621
1862
|
|
|
1863
|
+
/**
|
|
1864
|
+
* Reference to the component.
|
|
1865
|
+
*/
|
|
1866
|
+
type RefType$8 = React.Ref<HTMLDivElement>;
|
|
1622
1867
|
type FileData = {
|
|
1623
1868
|
/**
|
|
1624
1869
|
* Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
|
|
@@ -1663,7 +1908,7 @@ type CommonProps$5 = {
|
|
|
1663
1908
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1664
1909
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1665
1910
|
*/
|
|
1666
|
-
margin?: Space
|
|
1911
|
+
margin?: Space | Margin;
|
|
1667
1912
|
/**
|
|
1668
1913
|
* The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
|
|
1669
1914
|
*/
|
|
@@ -1682,10 +1927,18 @@ type CommonProps$5 = {
|
|
|
1682
1927
|
* next to the label.
|
|
1683
1928
|
*/
|
|
1684
1929
|
optional?: boolean;
|
|
1930
|
+
/**
|
|
1931
|
+
* Reference to the component.
|
|
1932
|
+
*/
|
|
1933
|
+
ref?: RefType$8;
|
|
1685
1934
|
/**
|
|
1686
1935
|
* 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.
|
|
1687
1936
|
*/
|
|
1688
1937
|
showPreview?: boolean;
|
|
1938
|
+
/**
|
|
1939
|
+
* Size of the component.
|
|
1940
|
+
*/
|
|
1941
|
+
size?: "medium" | "fillParent";
|
|
1689
1942
|
/**
|
|
1690
1943
|
* Value of the tabindex attribute.
|
|
1691
1944
|
*/
|
|
@@ -1723,11 +1976,14 @@ type FileModeProps = CommonProps$5 & {
|
|
|
1723
1976
|
*/
|
|
1724
1977
|
mode?: "file";
|
|
1725
1978
|
};
|
|
1726
|
-
type
|
|
1979
|
+
type FileInputProps = PrettifyTypes<DropModeProps | FileModeProps>;
|
|
1727
1980
|
|
|
1728
|
-
declare const DxcFileInput:
|
|
1981
|
+
declare const DxcFileInput: {
|
|
1982
|
+
({ mode, label, buttonLabel, dropAreaLabel, helperText, accept, minSize, maxSize, showPreview, multiple, disabled, callbackFile, size, value, margin, tabIndex, optional, ref, }: FileInputProps): react.JSX.Element;
|
|
1983
|
+
displayName: string;
|
|
1984
|
+
};
|
|
1729
1985
|
|
|
1730
|
-
type
|
|
1986
|
+
type FlexGap = {
|
|
1731
1987
|
rowGap: string;
|
|
1732
1988
|
columnGap?: string;
|
|
1733
1989
|
} | {
|
|
@@ -1760,7 +2016,7 @@ type CommonProps$4 = {
|
|
|
1760
2016
|
*/
|
|
1761
2017
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
1762
2018
|
};
|
|
1763
|
-
type
|
|
2019
|
+
type FlexProps = PrettifyTypes<CommonProps$4 & {
|
|
1764
2020
|
/**
|
|
1765
2021
|
* Sets the flex-direction CSS property.
|
|
1766
2022
|
*
|
|
@@ -1778,13 +2034,17 @@ type Props$n = CommonProps$4 & {
|
|
|
1778
2034
|
*
|
|
1779
2035
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
1780
2036
|
*/
|
|
1781
|
-
gap?:
|
|
2037
|
+
gap?: FlexGap;
|
|
1782
2038
|
/**
|
|
1783
2039
|
* Sets the order CSS property.
|
|
1784
2040
|
*
|
|
1785
2041
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/order
|
|
1786
2042
|
*/
|
|
1787
2043
|
order?: number;
|
|
2044
|
+
/**
|
|
2045
|
+
* If true, the flex container will take the full height of its parent.
|
|
2046
|
+
*/
|
|
2047
|
+
fullHeight?: boolean;
|
|
1788
2048
|
/**
|
|
1789
2049
|
* Sets the flex-grow CSS property.
|
|
1790
2050
|
*
|
|
@@ -1811,11 +2071,11 @@ type Props$n = CommonProps$4 & {
|
|
|
1811
2071
|
* Custom content inside the flex container.
|
|
1812
2072
|
*/
|
|
1813
2073
|
children: ReactNode;
|
|
1814
|
-
}
|
|
2074
|
+
}>;
|
|
1815
2075
|
|
|
1816
|
-
declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }:
|
|
2076
|
+
declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: FlexProps) => react.JSX.Element;
|
|
1817
2077
|
|
|
1818
|
-
type
|
|
2078
|
+
type GridGap = string | {
|
|
1819
2079
|
columnGap?: string;
|
|
1820
2080
|
rowGap: string;
|
|
1821
2081
|
} | {
|
|
@@ -1826,17 +2086,17 @@ type GridCell = {
|
|
|
1826
2086
|
end: number | string;
|
|
1827
2087
|
start: number | string;
|
|
1828
2088
|
};
|
|
1829
|
-
type
|
|
1830
|
-
type
|
|
1831
|
-
type
|
|
2089
|
+
type GridPlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
|
|
2090
|
+
type GridPlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
|
|
2091
|
+
type GridPlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
|
|
1832
2092
|
type PlaceObject<Type, Suffix extends string> = {
|
|
1833
|
-
[Property in keyof Type as
|
|
2093
|
+
[Property in keyof Type as Property extends string ? `${Property}${Capitalize<Suffix>}` : never]: Type[Property];
|
|
1834
2094
|
};
|
|
1835
2095
|
type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
|
|
1836
|
-
align
|
|
2096
|
+
align?: PlaceValues;
|
|
1837
2097
|
justify?: PlaceValues;
|
|
1838
2098
|
}, Element> | PlaceObject<{
|
|
1839
|
-
align
|
|
2099
|
+
align: PlaceValues;
|
|
1840
2100
|
justify: PlaceValues;
|
|
1841
2101
|
}, Element> | PlaceValues;
|
|
1842
2102
|
type GridItemProps = {
|
|
@@ -1863,7 +2123,7 @@ type GridItemProps = {
|
|
|
1863
2123
|
*
|
|
1864
2124
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
|
|
1865
2125
|
*/
|
|
1866
|
-
placeSelf?: PlaceGeneric<
|
|
2126
|
+
placeSelf?: PlaceGeneric<GridPlaceSelfValues, "self">;
|
|
1867
2127
|
/**
|
|
1868
2128
|
* Sets the grid-row CSS property.
|
|
1869
2129
|
*
|
|
@@ -1871,7 +2131,7 @@ type GridItemProps = {
|
|
|
1871
2131
|
*/
|
|
1872
2132
|
row?: number | string | GridCell;
|
|
1873
2133
|
};
|
|
1874
|
-
type
|
|
2134
|
+
type GridProps = PrettifyTypes<GridItemProps & {
|
|
1875
2135
|
/**
|
|
1876
2136
|
* Sets the grid-auto-columns CSS property.
|
|
1877
2137
|
*
|
|
@@ -1895,19 +2155,19 @@ type Props$m = GridItemProps & {
|
|
|
1895
2155
|
*
|
|
1896
2156
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
1897
2157
|
*/
|
|
1898
|
-
gap?:
|
|
2158
|
+
gap?: GridGap;
|
|
1899
2159
|
/**
|
|
1900
2160
|
* Sets the place-content CSS property.
|
|
1901
2161
|
*
|
|
1902
2162
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
|
|
1903
2163
|
*/
|
|
1904
|
-
placeContent?: PlaceGeneric<
|
|
2164
|
+
placeContent?: PlaceGeneric<GridPlaceContentValues, "content">;
|
|
1905
2165
|
/**
|
|
1906
2166
|
* Sets the place-items CSS property.
|
|
1907
2167
|
*
|
|
1908
2168
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
|
|
1909
2169
|
*/
|
|
1910
|
-
placeItems?: PlaceGeneric<
|
|
2170
|
+
placeItems?: PlaceGeneric<GridPlaceItemsValues, "items">;
|
|
1911
2171
|
/**
|
|
1912
2172
|
* Sets the grid-template-areas CSS property.
|
|
1913
2173
|
*
|
|
@@ -1926,17 +2186,17 @@ type Props$m = GridItemProps & {
|
|
|
1926
2186
|
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
|
|
1927
2187
|
*/
|
|
1928
2188
|
templateRows?: string[];
|
|
1929
|
-
}
|
|
2189
|
+
}>;
|
|
1930
2190
|
|
|
1931
2191
|
declare const DxcGrid: {
|
|
1932
|
-
(props:
|
|
2192
|
+
(props: GridProps): react.JSX.Element;
|
|
1933
2193
|
Item: _emotion_styled.StyledComponent<{
|
|
1934
2194
|
theme?: _emotion_react.Theme;
|
|
1935
2195
|
as?: React.ElementType;
|
|
1936
2196
|
} & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1937
2197
|
};
|
|
1938
2198
|
|
|
1939
|
-
type
|
|
2199
|
+
type HeadingProps = {
|
|
1940
2200
|
/**
|
|
1941
2201
|
* Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
|
|
1942
2202
|
* The html tag of the heading will be the one specified in the 'as' prop.
|
|
@@ -1959,80 +2219,35 @@ type Props$l = {
|
|
|
1959
2219
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
1960
2220
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1961
2221
|
*/
|
|
1962
|
-
margin?: Space
|
|
2222
|
+
margin?: Space | Margin;
|
|
1963
2223
|
};
|
|
1964
2224
|
|
|
1965
|
-
declare function DxcHeading({ as, level, margin, text, weight }:
|
|
2225
|
+
declare function DxcHeading({ as, level, margin, text, weight }: HeadingProps): react.JSX.Element;
|
|
1966
2226
|
|
|
1967
|
-
type
|
|
1968
|
-
/**
|
|
1969
|
-
* Alternative text description displayed when the specified image is not loaded.
|
|
1970
|
-
*
|
|
1971
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
|
|
1972
|
-
* See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
|
|
1973
|
-
*/
|
|
1974
|
-
alt: string;
|
|
1975
|
-
/**
|
|
1976
|
-
* Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
|
|
1977
|
-
* which is required regardless of the presence of the caption or not.
|
|
1978
|
-
*/
|
|
1979
|
-
caption?: string;
|
|
1980
|
-
/**
|
|
1981
|
-
* Sets the rendered height of the image.
|
|
1982
|
-
*/
|
|
1983
|
-
height?: string;
|
|
1984
|
-
/**
|
|
1985
|
-
* If true, the image will be loaded only when it is visible on the screen (lazy loading).
|
|
1986
|
-
* Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
|
|
1987
|
-
*/
|
|
1988
|
-
lazyLoading?: boolean;
|
|
1989
|
-
/**
|
|
1990
|
-
* Sets the object-fit CSS property.
|
|
1991
|
-
*
|
|
1992
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
|
|
1993
|
-
*/
|
|
1994
|
-
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
1995
|
-
/**
|
|
1996
|
-
* Sets the object-position CSS property.
|
|
1997
|
-
*
|
|
1998
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
|
|
1999
|
-
*/
|
|
2000
|
-
objectPosition?: string;
|
|
2001
|
-
/**
|
|
2002
|
-
* This function will be called when the image fails to load.
|
|
2003
|
-
*/
|
|
2004
|
-
onError?: ReactEventHandler<HTMLImageElement>;
|
|
2005
|
-
/**
|
|
2006
|
-
* This function will be called when the image is loaded.
|
|
2007
|
-
*/
|
|
2008
|
-
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
2227
|
+
type IconProps = {
|
|
2009
2228
|
/**
|
|
2010
|
-
*
|
|
2011
|
-
* If the srcSet attribute is absent or contains no values with a width descriptor,
|
|
2012
|
-
* then this attribute has no effect.
|
|
2013
|
-
*
|
|
2014
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
|
|
2229
|
+
* Accessible name of the icon. Set it only when the icon conveys meaning on its own; otherwise the icon is hidden from assistive technologies.
|
|
2015
2230
|
*/
|
|
2016
|
-
|
|
2231
|
+
ariaLabel?: string;
|
|
2017
2232
|
/**
|
|
2018
|
-
*
|
|
2233
|
+
* Color of the icon. Use a design token or a CSS color.
|
|
2019
2234
|
*/
|
|
2020
|
-
|
|
2235
|
+
color?: string;
|
|
2021
2236
|
/**
|
|
2022
|
-
*
|
|
2023
|
-
*
|
|
2024
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
|
|
2237
|
+
* Name of the Material Symbols icon to display (for example "home"). Prefix the name with "filled_" (for example "filled_home") to render the filled variant. An SVG element can also be passed, in which case it is rendered as is.
|
|
2025
2238
|
*/
|
|
2026
|
-
|
|
2239
|
+
icon: string | SVG;
|
|
2027
2240
|
/**
|
|
2028
|
-
*
|
|
2241
|
+
* Font size of the icon. Use a design token or a CSS value.
|
|
2029
2242
|
*/
|
|
2030
|
-
|
|
2243
|
+
size?: string;
|
|
2031
2244
|
};
|
|
2032
2245
|
|
|
2033
|
-
declare function
|
|
2246
|
+
declare function DxcIcon({ ariaLabel, color, icon, size }: IconProps): react.JSX.Element;
|
|
2247
|
+
|
|
2248
|
+
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: ImageProps): react.JSX.Element;
|
|
2034
2249
|
|
|
2035
|
-
type
|
|
2250
|
+
type InsetProps = {
|
|
2036
2251
|
/**
|
|
2037
2252
|
* Applies the spacing scale to the bottom side.
|
|
2038
2253
|
*/
|
|
@@ -2067,13 +2282,21 @@ type Props$j = {
|
|
|
2067
2282
|
vertical?: string;
|
|
2068
2283
|
};
|
|
2069
2284
|
|
|
2070
|
-
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }:
|
|
2285
|
+
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: InsetProps): react.JSX.Element;
|
|
2071
2286
|
|
|
2072
2287
|
type LinkProps = {
|
|
2288
|
+
/**
|
|
2289
|
+
* Text of the link.
|
|
2290
|
+
*/
|
|
2291
|
+
children: string;
|
|
2073
2292
|
/**
|
|
2074
2293
|
* If true, the link will be disabled.
|
|
2075
2294
|
*/
|
|
2076
2295
|
disabled?: boolean;
|
|
2296
|
+
/**
|
|
2297
|
+
* Page to be opened when the user clicks on the link.
|
|
2298
|
+
*/
|
|
2299
|
+
href?: string;
|
|
2077
2300
|
/**
|
|
2078
2301
|
* If true, the color is inherited from parent.
|
|
2079
2302
|
*/
|
|
@@ -2087,9 +2310,10 @@ type LinkProps = {
|
|
|
2087
2310
|
*/
|
|
2088
2311
|
iconPosition?: "before" | "after";
|
|
2089
2312
|
/**
|
|
2090
|
-
*
|
|
2313
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2314
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2091
2315
|
*/
|
|
2092
|
-
|
|
2316
|
+
margin?: Space | Margin;
|
|
2093
2317
|
/**
|
|
2094
2318
|
* If true, the page is opened in a new browser tab.
|
|
2095
2319
|
*/
|
|
@@ -2100,23 +2324,136 @@ type LinkProps = {
|
|
|
2100
2324
|
*/
|
|
2101
2325
|
onClick?: () => void;
|
|
2102
2326
|
/**
|
|
2103
|
-
*
|
|
2327
|
+
* Ref of the link element.
|
|
2104
2328
|
*/
|
|
2105
|
-
|
|
2329
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
2106
2330
|
/**
|
|
2107
|
-
*
|
|
2108
|
-
|
|
2331
|
+
* Value of the tabindex.
|
|
2332
|
+
*/
|
|
2333
|
+
tabIndex?: number;
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
declare const DxcLink: {
|
|
2337
|
+
({ children, disabled, href, icon, iconPosition, inheritColor, margin, newWindow, onClick, tabIndex, ref, ...otherProps }: LinkProps): react.JSX.Element;
|
|
2338
|
+
displayName: string;
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
type SelectOption$1 = {
|
|
2342
|
+
label?: string;
|
|
2343
|
+
value: string;
|
|
2344
|
+
onSelect: (value: string) => void;
|
|
2345
|
+
selected?: boolean;
|
|
2346
|
+
};
|
|
2347
|
+
type MessageInputProps = {
|
|
2348
|
+
/**
|
|
2349
|
+
* If true, the voice recording button will be shown.
|
|
2109
2350
|
*/
|
|
2110
|
-
|
|
2351
|
+
allowRecording?: boolean;
|
|
2111
2352
|
/**
|
|
2112
|
-
*
|
|
2353
|
+
* This function will be called when the selection of top items changes.
|
|
2354
|
+
* If this function is provided the message input will allow file selection.
|
|
2355
|
+
*/
|
|
2356
|
+
callbackFile?: (files: File[]) => void;
|
|
2357
|
+
/**
|
|
2358
|
+
* Initial value of the input, only when it is uncontrolled.
|
|
2359
|
+
*/
|
|
2360
|
+
defaultValue?: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* If true, the component will be disabled.
|
|
2363
|
+
*/
|
|
2364
|
+
disabled?: boolean;
|
|
2365
|
+
/**
|
|
2366
|
+
* If it is a defined value and also a truthy string, the component will
|
|
2367
|
+
* change its appearance, showing the error below the input component. If
|
|
2368
|
+
* the defined value is an empty string, it will reserve a space below
|
|
2369
|
+
* the component for a future error, but it would not change its look. In
|
|
2370
|
+
* case of being undefined or null, both the appearance and the space for
|
|
2371
|
+
* the error message would not be modified.
|
|
2372
|
+
*/
|
|
2373
|
+
error?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* Items to be shown at the top.
|
|
2376
|
+
*/
|
|
2377
|
+
files?: File[];
|
|
2378
|
+
/**
|
|
2379
|
+
* If true, it indicates that a request is being processed after the user submits a query.
|
|
2380
|
+
*/
|
|
2381
|
+
isGenerating?: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* Specifies the maximum length allowed by the input.
|
|
2384
|
+
* This will be checked both when the input element loses the
|
|
2385
|
+
* focus and while typing within it. If the string entered does not
|
|
2386
|
+
* comply the maximum length, the onBlur and onChange functions will be called
|
|
2387
|
+
* with the current value and an internal error informing that the value
|
|
2388
|
+
* length does not comply the specified range. If a valid length is
|
|
2389
|
+
* reached, the error parameter of both events will not be defined.
|
|
2390
|
+
*/
|
|
2391
|
+
maxLength?: number;
|
|
2392
|
+
/**
|
|
2393
|
+
* Specifies the minimum length allowed by the input.
|
|
2394
|
+
* This will be checked both when the input element loses the
|
|
2395
|
+
* focus and while typing within it. If the string entered does not
|
|
2396
|
+
* comply the minimum length, the onBlur and onChange functions will be called
|
|
2397
|
+
* with the current value and an internal error informing that the value
|
|
2398
|
+
* length does not comply the specified range. If a valid length is
|
|
2399
|
+
* reached, the error parameter of both events will not be defined.
|
|
2400
|
+
*/
|
|
2401
|
+
minLength?: number;
|
|
2402
|
+
/**
|
|
2403
|
+
* Options to be shown on the dropdown under the input.
|
|
2404
|
+
*/
|
|
2405
|
+
selectOptions?: SelectOption$1[];
|
|
2406
|
+
/**
|
|
2407
|
+
* This function will be called when the input element loses the focus.
|
|
2408
|
+
* An object including the input value and the error (if the value
|
|
2409
|
+
* entered is not valid) will be passed to this function. If there is no error,
|
|
2410
|
+
* error will not be defined.
|
|
2411
|
+
*/
|
|
2412
|
+
onBlur?: (val: {
|
|
2413
|
+
value: string;
|
|
2414
|
+
error?: string;
|
|
2415
|
+
}) => void;
|
|
2416
|
+
/**
|
|
2417
|
+
* This function will be called when the user types within the input
|
|
2418
|
+
* element of the component. An object including the current value and
|
|
2419
|
+
* the error (if the value entered is not valid) will be passed to this
|
|
2420
|
+
* function. If there is no error, error will not be defined.
|
|
2421
|
+
*/
|
|
2422
|
+
onChange?: (val: {
|
|
2423
|
+
value: string;
|
|
2424
|
+
error?: string;
|
|
2425
|
+
}) => void;
|
|
2426
|
+
/**
|
|
2427
|
+
* This function will be called when the user clicks on the button (submit or stop) or presses enter.
|
|
2428
|
+
* The type parameter indicates whether it's a "submit" or "stop" event. For submit events, "value", "files" and "selectedOption" are provided.
|
|
2429
|
+
*/
|
|
2430
|
+
onButtonClick?: (val: {
|
|
2431
|
+
type: "submit" | "stop";
|
|
2432
|
+
value?: string;
|
|
2433
|
+
files?: File[];
|
|
2434
|
+
selectedOption?: SelectOption$1;
|
|
2435
|
+
}) => void;
|
|
2436
|
+
/**
|
|
2437
|
+
* Text to be put as placeholder of the input.
|
|
2438
|
+
*/
|
|
2439
|
+
placeholder?: string;
|
|
2440
|
+
/**
|
|
2441
|
+
* Specifies the size of the component. The size will affect the width of the input.
|
|
2442
|
+
*/
|
|
2443
|
+
size?: "small" | "medium" | "large" | "fillParent";
|
|
2444
|
+
/**
|
|
2445
|
+
* Value of the tabindex attribute.
|
|
2113
2446
|
*/
|
|
2114
2447
|
tabIndex?: number;
|
|
2448
|
+
/**
|
|
2449
|
+
* Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
2450
|
+
*/
|
|
2451
|
+
value?: string;
|
|
2115
2452
|
};
|
|
2116
2453
|
|
|
2117
|
-
declare const
|
|
2454
|
+
declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }: MessageInputProps) => react.JSX.Element;
|
|
2118
2455
|
|
|
2119
|
-
type
|
|
2456
|
+
type NavTabsTabProps = {
|
|
2120
2457
|
/**
|
|
2121
2458
|
* Whether the tab is active or not.
|
|
2122
2459
|
*/
|
|
@@ -2137,10 +2474,6 @@ type TabProps$1 = {
|
|
|
2137
2474
|
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
2138
2475
|
*/
|
|
2139
2476
|
icon?: string | SVG;
|
|
2140
|
-
/**
|
|
2141
|
-
* This function will be called when the user clicks on this tab.
|
|
2142
|
-
*/
|
|
2143
|
-
onClick?: () => void;
|
|
2144
2477
|
/**
|
|
2145
2478
|
* If the value is 'true', an empty badge will appear.
|
|
2146
2479
|
* If it is 'false', no badge will appear.
|
|
@@ -2149,8 +2482,16 @@ type TabProps$1 = {
|
|
|
2149
2482
|
* it will appear as '+99' in the badge.
|
|
2150
2483
|
*/
|
|
2151
2484
|
notificationNumber?: boolean | number;
|
|
2485
|
+
/**
|
|
2486
|
+
* This function will be called when the user clicks on this tab.
|
|
2487
|
+
*/
|
|
2488
|
+
onClick?: () => void;
|
|
2489
|
+
/**
|
|
2490
|
+
* Ref of the tab element.
|
|
2491
|
+
*/
|
|
2492
|
+
ref?: React.Ref<HTMLAnchorElement | HTMLDivElement>;
|
|
2152
2493
|
};
|
|
2153
|
-
type
|
|
2494
|
+
type NavTabsProps = {
|
|
2154
2495
|
/**
|
|
2155
2496
|
* Contains one or more DxcNavTabs.Tab.
|
|
2156
2497
|
*/
|
|
@@ -2166,11 +2507,18 @@ type Props$i = {
|
|
|
2166
2507
|
};
|
|
2167
2508
|
|
|
2168
2509
|
declare const DxcNavTabs: {
|
|
2169
|
-
({ iconPosition, tabIndex, children }:
|
|
2170
|
-
Tab:
|
|
2510
|
+
({ iconPosition, tabIndex, children }: NavTabsProps): JSX.Element;
|
|
2511
|
+
Tab: {
|
|
2512
|
+
({ active, children, disabled, href, icon, notificationNumber, onClick, ref, ...otherProps }: NavTabsTabProps): JSX.Element;
|
|
2513
|
+
displayName: string;
|
|
2514
|
+
};
|
|
2171
2515
|
};
|
|
2172
2516
|
|
|
2173
|
-
|
|
2517
|
+
/**
|
|
2518
|
+
* Reference to the component.
|
|
2519
|
+
*/
|
|
2520
|
+
type RefType$7 = React.Ref<HTMLInputElement>;
|
|
2521
|
+
type NumberInputProps = {
|
|
2174
2522
|
/**
|
|
2175
2523
|
* Text to be placed above the number.
|
|
2176
2524
|
*/
|
|
@@ -2206,6 +2554,10 @@ type Props$h = {
|
|
|
2206
2554
|
* functions when it has not been filled.
|
|
2207
2555
|
*/
|
|
2208
2556
|
optional?: boolean;
|
|
2557
|
+
/**
|
|
2558
|
+
* Prefix to be placed before the number value.
|
|
2559
|
+
*/
|
|
2560
|
+
prefix?: string;
|
|
2209
2561
|
/**
|
|
2210
2562
|
* If true, the component will not be mutable, meaning the user can
|
|
2211
2563
|
* not edit the control. The value won't change when pressing on the
|
|
@@ -2213,9 +2565,9 @@ type Props$h = {
|
|
|
2213
2565
|
*/
|
|
2214
2566
|
readOnly?: boolean;
|
|
2215
2567
|
/**
|
|
2216
|
-
*
|
|
2568
|
+
* Ref of the component.
|
|
2217
2569
|
*/
|
|
2218
|
-
|
|
2570
|
+
ref?: RefType$7;
|
|
2219
2571
|
/**
|
|
2220
2572
|
* Suffix to be placed after the number value.
|
|
2221
2573
|
*/
|
|
@@ -2278,7 +2630,7 @@ type Props$h = {
|
|
|
2278
2630
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2279
2631
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2280
2632
|
*/
|
|
2281
|
-
margin?: Space
|
|
2633
|
+
margin?: Space | Margin;
|
|
2282
2634
|
/**
|
|
2283
2635
|
* Size of the component.
|
|
2284
2636
|
*/
|
|
@@ -2297,9 +2649,12 @@ type Props$h = {
|
|
|
2297
2649
|
showControls?: boolean;
|
|
2298
2650
|
};
|
|
2299
2651
|
|
|
2300
|
-
declare const DxcNumberInput:
|
|
2652
|
+
declare const DxcNumberInput: {
|
|
2653
|
+
({ 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;
|
|
2654
|
+
displayName: string;
|
|
2655
|
+
};
|
|
2301
2656
|
|
|
2302
|
-
type
|
|
2657
|
+
type PaginatorProps = {
|
|
2303
2658
|
/**
|
|
2304
2659
|
* Number of the current selected page.
|
|
2305
2660
|
*/
|
|
@@ -2337,53 +2692,30 @@ type Props$g = {
|
|
|
2337
2692
|
tabIndex?: number;
|
|
2338
2693
|
};
|
|
2339
2694
|
|
|
2340
|
-
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }:
|
|
2695
|
+
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: PaginatorProps) => JSX.Element;
|
|
2341
2696
|
|
|
2342
2697
|
declare function DxcParagraph({ children }: {
|
|
2343
2698
|
children: ReactNode;
|
|
2344
|
-
}):
|
|
2699
|
+
}): react.JSX.Element;
|
|
2345
2700
|
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
/**
|
|
2352
|
-
* Name attribute of the input element.
|
|
2353
|
-
*/
|
|
2354
|
-
name?: string;
|
|
2355
|
-
/**
|
|
2356
|
-
* Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
2357
|
-
*/
|
|
2358
|
-
value?: string;
|
|
2359
|
-
/**
|
|
2360
|
-
* Helper text to be placed above the password.
|
|
2361
|
-
*/
|
|
2362
|
-
helperText?: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* Reference to the component.
|
|
2703
|
+
*/
|
|
2704
|
+
type RefType$6 = React.Ref<HTMLDivElement>;
|
|
2705
|
+
type PasswordInputProps = {
|
|
2363
2706
|
/**
|
|
2364
|
-
*
|
|
2707
|
+
* Specifies a string to be used as the name for the password input element when no `label` is provided.
|
|
2365
2708
|
*/
|
|
2366
|
-
|
|
2367
|
-
/**
|
|
2368
|
-
* This function will be called when the user types within the input
|
|
2369
|
-
* element of the component. An object including the current value and
|
|
2370
|
-
* the error (if the value entered is not valid) will be passed to this
|
|
2371
|
-
* function. If there is no error, error will not be defined.
|
|
2372
|
-
* */
|
|
2373
|
-
onChange?: (val: {
|
|
2374
|
-
value: string;
|
|
2375
|
-
error?: string;
|
|
2376
|
-
}) => void;
|
|
2709
|
+
ariaLabel?: string;
|
|
2377
2710
|
/**
|
|
2378
|
-
*
|
|
2379
|
-
*
|
|
2380
|
-
* not valid) will be passed to this function. If there is no error, error will
|
|
2381
|
-
* not be defined.
|
|
2711
|
+
* HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
|
|
2712
|
+
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
2382
2713
|
*/
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2714
|
+
autocomplete?: string;
|
|
2715
|
+
/**
|
|
2716
|
+
* If true, the password input will have an action to clear the entered value.
|
|
2717
|
+
*/
|
|
2718
|
+
clearable?: boolean;
|
|
2387
2719
|
/**
|
|
2388
2720
|
* If it is a defined value and also a truthy string, the component will
|
|
2389
2721
|
* change its appearance, showing the error below the password input
|
|
@@ -2394,45 +2726,76 @@ type Props$f = {
|
|
|
2394
2726
|
*/
|
|
2395
2727
|
error?: string;
|
|
2396
2728
|
/**
|
|
2397
|
-
*
|
|
2398
|
-
* password input. This will be checked both when the input element loses the
|
|
2399
|
-
* focus and while typing within it. If the string entered does not match
|
|
2400
|
-
* the pattern, the onBlur and onChange functions will be called with the
|
|
2401
|
-
* current value and an internal error informing that this value does not
|
|
2402
|
-
* match the pattern. If the pattern is met, the error parameter of both
|
|
2403
|
-
* events will not be defined.
|
|
2729
|
+
* Helper text to be placed above the password.
|
|
2404
2730
|
*/
|
|
2405
|
-
|
|
2731
|
+
helperText?: string;
|
|
2406
2732
|
/**
|
|
2407
|
-
*
|
|
2733
|
+
* Text to be placed above the password input.
|
|
2734
|
+
*/
|
|
2735
|
+
label?: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2738
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2739
|
+
*/
|
|
2740
|
+
margin?: Space | Margin;
|
|
2741
|
+
/**
|
|
2742
|
+
* Specifies the maximum length allowed by the password input.
|
|
2408
2743
|
* This will be checked both when the input element loses the
|
|
2409
2744
|
* focus and while typing within it. If the string entered does not
|
|
2410
|
-
* comply the
|
|
2745
|
+
* comply the maximum length, the onBlur and onChange functions will be called
|
|
2411
2746
|
* with the current value and an internal error informing that the value
|
|
2412
2747
|
* length does not comply the specified range. If a valid length is
|
|
2413
2748
|
* reached, the error parameter of both events will not be defined.
|
|
2414
2749
|
*/
|
|
2415
|
-
|
|
2750
|
+
maxLength?: number;
|
|
2416
2751
|
/**
|
|
2417
|
-
* Specifies the
|
|
2752
|
+
* Specifies the minimum length allowed by the password input.
|
|
2418
2753
|
* This will be checked both when the input element loses the
|
|
2419
2754
|
* focus and while typing within it. If the string entered does not
|
|
2420
|
-
* comply the
|
|
2755
|
+
* comply the minimum length, the onBlur and onChange functions will be called
|
|
2421
2756
|
* with the current value and an internal error informing that the value
|
|
2422
2757
|
* length does not comply the specified range. If a valid length is
|
|
2423
2758
|
* reached, the error parameter of both events will not be defined.
|
|
2424
2759
|
*/
|
|
2425
|
-
|
|
2760
|
+
minLength?: number;
|
|
2426
2761
|
/**
|
|
2427
|
-
*
|
|
2428
|
-
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
2762
|
+
* Name attribute of the input element.
|
|
2429
2763
|
*/
|
|
2430
|
-
|
|
2764
|
+
name?: string;
|
|
2431
2765
|
/**
|
|
2432
|
-
*
|
|
2433
|
-
*
|
|
2766
|
+
* This function will be called when the input element loses the focus.
|
|
2767
|
+
* An object including the input value and the error (if the value entered is
|
|
2768
|
+
* not valid) will be passed to this function. If there is no error, error will
|
|
2769
|
+
* not be defined.
|
|
2770
|
+
*/
|
|
2771
|
+
onBlur?: (val: {
|
|
2772
|
+
value: string;
|
|
2773
|
+
error?: string;
|
|
2774
|
+
}) => void;
|
|
2775
|
+
/**
|
|
2776
|
+
* This function will be called when the user types within the input
|
|
2777
|
+
* element of the component. An object including the current value and
|
|
2778
|
+
* the error (if the value entered is not valid) will be passed to this
|
|
2779
|
+
* function. If there is no error, error will not be defined.
|
|
2780
|
+
* */
|
|
2781
|
+
onChange?: (val: {
|
|
2782
|
+
value: string;
|
|
2783
|
+
error?: string;
|
|
2784
|
+
}) => void;
|
|
2785
|
+
/**
|
|
2786
|
+
* Regular expression that defines the valid format allowed by the
|
|
2787
|
+
* password input. This will be checked both when the input element loses the
|
|
2788
|
+
* focus and while typing within it. If the string entered does not match
|
|
2789
|
+
* the pattern, the onBlur and onChange functions will be called with the
|
|
2790
|
+
* current value and an internal error informing that this value does not
|
|
2791
|
+
* match the pattern. If the pattern is met, the error parameter of both
|
|
2792
|
+
* events will not be defined.
|
|
2793
|
+
*/
|
|
2794
|
+
pattern?: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* Reference to the input element.
|
|
2434
2797
|
*/
|
|
2435
|
-
|
|
2798
|
+
ref?: RefType$6;
|
|
2436
2799
|
/**
|
|
2437
2800
|
* Size of the component.
|
|
2438
2801
|
*/
|
|
@@ -2442,20 +2805,51 @@ type Props$f = {
|
|
|
2442
2805
|
*/
|
|
2443
2806
|
tabIndex?: number;
|
|
2444
2807
|
/**
|
|
2445
|
-
*
|
|
2808
|
+
* Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
2446
2809
|
*/
|
|
2447
|
-
|
|
2810
|
+
value?: string;
|
|
2448
2811
|
};
|
|
2449
2812
|
|
|
2450
|
-
declare const DxcPasswordInput:
|
|
2813
|
+
declare const DxcPasswordInput: {
|
|
2814
|
+
({ label, name, value, helperText, clearable, onChange, onBlur, error, pattern, minLength, maxLength, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: PasswordInputProps): react.JSX.Element;
|
|
2815
|
+
displayName: string;
|
|
2816
|
+
};
|
|
2451
2817
|
|
|
2452
|
-
type
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2818
|
+
type PopoverProps = {
|
|
2819
|
+
/** Action that triggers the popover to open. */
|
|
2820
|
+
actionToOpen?: "click" | "hover";
|
|
2821
|
+
/** Alignment of the popover relative to the trigger element. */
|
|
2822
|
+
align?: "start" | "center" | "end";
|
|
2823
|
+
/** Set to true if child controls the events. It will render the child directly without wrapping it. */
|
|
2824
|
+
asChild?: boolean;
|
|
2825
|
+
/** Element that triggers the popover and works as the anchor. */
|
|
2826
|
+
children: React.ReactNode;
|
|
2827
|
+
/** Whether the popover should display a tip (arrow). */
|
|
2828
|
+
hasTip?: boolean;
|
|
2829
|
+
/** Controlled open state of the popover. If it is left undefined, it will be uncontrolled. */
|
|
2830
|
+
isOpen?: boolean;
|
|
2831
|
+
/** Distance in pixels from the trigger element to the popover. */
|
|
2832
|
+
offset?: number;
|
|
2833
|
+
/** Callback function when the popover is opened.
|
|
2834
|
+
* Used only in controlled mode and if the trigger lacks the events to manage the controlled behavior. */
|
|
2835
|
+
onOpen?: () => void;
|
|
2836
|
+
/** Callback function when the popover is opened and the focus is set to the first focusable element inside the popover.
|
|
2837
|
+
* */
|
|
2838
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2839
|
+
/** Callback function when the popover is closed. */
|
|
2840
|
+
onClose?: () => void;
|
|
2841
|
+
/** Callback function when the popover is closed and the focus is set back to the trigger element.
|
|
2842
|
+
* */
|
|
2843
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2844
|
+
/** Content to be displayed inside the popover. */
|
|
2845
|
+
popoverContent: React.ReactNode;
|
|
2846
|
+
/** Side of the trigger where the popover will appear. */
|
|
2847
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
2457
2848
|
};
|
|
2458
|
-
|
|
2849
|
+
|
|
2850
|
+
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }: PopoverProps) => JSX.Element;
|
|
2851
|
+
|
|
2852
|
+
type ProgressBarProps = {
|
|
2459
2853
|
/**
|
|
2460
2854
|
* Text to be placed above the progress bar.
|
|
2461
2855
|
*/
|
|
@@ -2482,16 +2876,16 @@ type Props$e = {
|
|
|
2482
2876
|
* an object with 'top', 'bottom', 'left' and 'right' properties
|
|
2483
2877
|
* in order to specify different margin sizes.
|
|
2484
2878
|
*/
|
|
2485
|
-
margin?: Space
|
|
2879
|
+
margin?: Space | Margin;
|
|
2486
2880
|
/**
|
|
2487
2881
|
* Specifies a string to be used as the name for the progress bar element when no `label` is provided.
|
|
2488
2882
|
*/
|
|
2489
2883
|
ariaLabel?: string;
|
|
2490
2884
|
};
|
|
2491
2885
|
|
|
2492
|
-
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }:
|
|
2886
|
+
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: ProgressBarProps) => JSX.Element;
|
|
2493
2887
|
|
|
2494
|
-
type
|
|
2888
|
+
type QuickNavLink = {
|
|
2495
2889
|
/**
|
|
2496
2890
|
* Label to be shown in the link.
|
|
2497
2891
|
*/
|
|
@@ -2499,9 +2893,9 @@ type Link = {
|
|
|
2499
2893
|
/**
|
|
2500
2894
|
* Sublinks of the link.
|
|
2501
2895
|
*/
|
|
2502
|
-
links?:
|
|
2896
|
+
links?: QuickNavLink[];
|
|
2503
2897
|
};
|
|
2504
|
-
type
|
|
2898
|
+
type QuickNavProps = {
|
|
2505
2899
|
/**
|
|
2506
2900
|
* Title of the quick nav component.
|
|
2507
2901
|
*/
|
|
@@ -2509,12 +2903,16 @@ type Props$d = {
|
|
|
2509
2903
|
/**
|
|
2510
2904
|
* Links to be shown inside the quick nav component.
|
|
2511
2905
|
*/
|
|
2512
|
-
links:
|
|
2906
|
+
links: QuickNavLink[];
|
|
2513
2907
|
};
|
|
2514
2908
|
|
|
2515
|
-
declare function DxcQuickNav({ links, title }:
|
|
2909
|
+
declare function DxcQuickNav({ links, title }: QuickNavProps): react.JSX.Element;
|
|
2516
2910
|
|
|
2517
|
-
|
|
2911
|
+
/**
|
|
2912
|
+
* Reference to the component.
|
|
2913
|
+
*/
|
|
2914
|
+
type RefType$5 = React.Ref<HTMLDivElement>;
|
|
2915
|
+
type RadioGroupOption = {
|
|
2518
2916
|
/**
|
|
2519
2917
|
* Label of the option placed next to the radio input.
|
|
2520
2918
|
*/
|
|
@@ -2580,7 +2978,7 @@ type RadioGroupProps = {
|
|
|
2580
2978
|
/**
|
|
2581
2979
|
* An array of objects representing the selectable options.
|
|
2582
2980
|
*/
|
|
2583
|
-
options:
|
|
2981
|
+
options: RadioGroupOption[];
|
|
2584
2982
|
/**
|
|
2585
2983
|
* This function will be called when the radio group loses the focus. An
|
|
2586
2984
|
* object including the value and the error will be passed to this
|
|
@@ -2599,6 +2997,10 @@ type RadioGroupProps = {
|
|
|
2599
2997
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
2600
2998
|
*/
|
|
2601
2999
|
readOnly?: boolean;
|
|
3000
|
+
/**
|
|
3001
|
+
* Reference to the component.
|
|
3002
|
+
*/
|
|
3003
|
+
ref?: RefType$5;
|
|
2602
3004
|
/**
|
|
2603
3005
|
* Sets the orientation of the options within the radio group.
|
|
2604
3006
|
*/
|
|
@@ -2615,9 +3017,12 @@ type RadioGroupProps = {
|
|
|
2615
3017
|
value?: string;
|
|
2616
3018
|
};
|
|
2617
3019
|
|
|
2618
|
-
declare const DxcRadioGroup:
|
|
3020
|
+
declare const DxcRadioGroup: {
|
|
3021
|
+
({ ariaLabel, defaultValue, disabled, error, helperText, label, name, onBlur, onChange, optional, optionalItemLabel, options, readOnly, ref, stacking, tabIndex, value, }: RadioGroupProps): react.JSX.Element;
|
|
3022
|
+
displayName: string;
|
|
3023
|
+
};
|
|
2619
3024
|
|
|
2620
|
-
type
|
|
3025
|
+
type ResultSetTableColumn = {
|
|
2621
3026
|
/**
|
|
2622
3027
|
* Column display value.
|
|
2623
3028
|
*/
|
|
@@ -2627,7 +3032,7 @@ type Column = {
|
|
|
2627
3032
|
*/
|
|
2628
3033
|
isSortable?: boolean;
|
|
2629
3034
|
};
|
|
2630
|
-
type
|
|
3035
|
+
type ResultSetTableRow = {
|
|
2631
3036
|
/**
|
|
2632
3037
|
* Value to be displayed in the cell.
|
|
2633
3038
|
*/
|
|
@@ -2637,18 +3042,17 @@ type Cell = {
|
|
|
2637
3042
|
* column. If not indicated displayValue will be used for sorting.
|
|
2638
3043
|
*/
|
|
2639
3044
|
sortValue?: string | number | Date;
|
|
2640
|
-
};
|
|
2641
|
-
type Row = Cell[];
|
|
3045
|
+
}[];
|
|
2642
3046
|
type CommonProps$3 = {
|
|
2643
3047
|
/**
|
|
2644
3048
|
* An array of objects representing the columns of the table.
|
|
2645
3049
|
*/
|
|
2646
|
-
columns:
|
|
3050
|
+
columns: ResultSetTableColumn[];
|
|
2647
3051
|
/**
|
|
2648
3052
|
* Size of the margin to be applied to the component. You can pass an object with 'top',
|
|
2649
3053
|
* 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2650
3054
|
*/
|
|
2651
|
-
margin?: Space
|
|
3055
|
+
margin?: Space | Margin;
|
|
2652
3056
|
/**
|
|
2653
3057
|
* Determines the visual style and layout
|
|
2654
3058
|
* - "default": The default mode with big spacing
|
|
@@ -2659,7 +3063,7 @@ type CommonProps$3 = {
|
|
|
2659
3063
|
* An array of objects representing the rows of the table, you will have
|
|
2660
3064
|
* as many objects as columns in the table.
|
|
2661
3065
|
*/
|
|
2662
|
-
rows:
|
|
3066
|
+
rows: ResultSetTableRow[];
|
|
2663
3067
|
/**
|
|
2664
3068
|
* Value of the tabindex attribute applied to the sortable icon.
|
|
2665
3069
|
*/
|
|
@@ -2713,14 +3117,18 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2713
3117
|
*/
|
|
2714
3118
|
showGoToPage?: never;
|
|
2715
3119
|
};
|
|
2716
|
-
type
|
|
3120
|
+
type ResultSetTableProps = PrettifyTypes<PaginatedProps | NonPaginatedProps>;
|
|
2717
3121
|
|
|
2718
3122
|
declare const DxcResultsetTable: {
|
|
2719
|
-
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }:
|
|
2720
|
-
ActionsCell: ({ actions }:
|
|
3123
|
+
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: ResultSetTableProps): react.JSX.Element;
|
|
3124
|
+
ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
|
|
2721
3125
|
};
|
|
2722
3126
|
|
|
2723
|
-
|
|
3127
|
+
/**
|
|
3128
|
+
* Reference to the select component.
|
|
3129
|
+
*/
|
|
3130
|
+
type RefType$4 = React.Ref<HTMLDivElement>;
|
|
3131
|
+
type SelectOption = {
|
|
2724
3132
|
/**
|
|
2725
3133
|
* Element used as the icon that will be placed before the option label.
|
|
2726
3134
|
* It can be an inline SVG or Material Symbol name. If the url option
|
|
@@ -2739,7 +3147,7 @@ type ListOptionType = {
|
|
|
2739
3147
|
*/
|
|
2740
3148
|
value: string;
|
|
2741
3149
|
};
|
|
2742
|
-
type
|
|
3150
|
+
type SelectOptionGroup = {
|
|
2743
3151
|
/**
|
|
2744
3152
|
* Label of the group to be shown in the select's listbox.
|
|
2745
3153
|
*/
|
|
@@ -2747,7 +3155,7 @@ type ListOptionGroupType = {
|
|
|
2747
3155
|
/**
|
|
2748
3156
|
* List of the grouped options.
|
|
2749
3157
|
*/
|
|
2750
|
-
options:
|
|
3158
|
+
options: SelectOption[];
|
|
2751
3159
|
};
|
|
2752
3160
|
type CommonProps$2 = {
|
|
2753
3161
|
/**
|
|
@@ -2779,7 +3187,7 @@ type CommonProps$2 = {
|
|
|
2779
3187
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2780
3188
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2781
3189
|
*/
|
|
2782
|
-
margin?: Space
|
|
3190
|
+
margin?: Space | Margin;
|
|
2783
3191
|
/**
|
|
2784
3192
|
* Name attribute of the input element. This attribute will allow users
|
|
2785
3193
|
* to find the component's value during the submit event. In this event,
|
|
@@ -2799,15 +3207,25 @@ type CommonProps$2 = {
|
|
|
2799
3207
|
/**
|
|
2800
3208
|
* An array of objects representing the selectable options.
|
|
2801
3209
|
*/
|
|
2802
|
-
options:
|
|
3210
|
+
options: SelectOption[] | SelectOptionGroup[];
|
|
2803
3211
|
/**
|
|
2804
3212
|
* Text to be put as placeholder of the select.
|
|
2805
3213
|
*/
|
|
2806
3214
|
placeholder?: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* Reference to the select component.
|
|
3217
|
+
*/
|
|
3218
|
+
ref?: RefType$4;
|
|
2807
3219
|
/**
|
|
2808
3220
|
* If true, enables search functionality.
|
|
2809
3221
|
*/
|
|
2810
3222
|
searchable?: boolean;
|
|
3223
|
+
/**
|
|
3224
|
+
* Defines the search mode when searchable is true.
|
|
3225
|
+
* If true, matches options that start with the search text.
|
|
3226
|
+
* If false, matches options that contain the search text anywhere in their label.
|
|
3227
|
+
*/
|
|
3228
|
+
searchByStartsWith?: boolean;
|
|
2811
3229
|
/**
|
|
2812
3230
|
* Size of the component.
|
|
2813
3231
|
*/
|
|
@@ -2902,11 +3320,18 @@ type MultipleSelect = CommonProps$2 & {
|
|
|
2902
3320
|
*/
|
|
2903
3321
|
value?: string[];
|
|
2904
3322
|
};
|
|
2905
|
-
type
|
|
3323
|
+
type SelectProps = PrettifyTypes<SingleSelect | MultipleSelect>;
|
|
2906
3324
|
|
|
2907
|
-
declare const DxcSelect:
|
|
3325
|
+
declare const DxcSelect: {
|
|
3326
|
+
({ 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;
|
|
3327
|
+
displayName: string;
|
|
3328
|
+
};
|
|
2908
3329
|
|
|
2909
|
-
|
|
3330
|
+
/**
|
|
3331
|
+
* Reference to the component.
|
|
3332
|
+
*/
|
|
3333
|
+
type RefType$3 = React.Ref<HTMLDivElement>;
|
|
3334
|
+
type SliderProps = {
|
|
2910
3335
|
/**
|
|
2911
3336
|
* Specifies a string to be used as the name for the slider element when no `label` is provided.
|
|
2912
3337
|
*/
|
|
@@ -2936,7 +3361,7 @@ type Props$a = {
|
|
|
2936
3361
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2937
3362
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2938
3363
|
*/
|
|
2939
|
-
margin?: Space
|
|
3364
|
+
margin?: Space | Margin;
|
|
2940
3365
|
/**
|
|
2941
3366
|
* Whether the marks between each step should be shown or not.
|
|
2942
3367
|
*/
|
|
@@ -2963,6 +3388,10 @@ type Props$a = {
|
|
|
2963
3388
|
* The new value will be passed as a parameter when this function is executed.
|
|
2964
3389
|
*/
|
|
2965
3390
|
onDragEnd?: (value: number) => void;
|
|
3391
|
+
/**
|
|
3392
|
+
* Reference to the component.
|
|
3393
|
+
*/
|
|
3394
|
+
ref?: RefType$3;
|
|
2966
3395
|
/**
|
|
2967
3396
|
* Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
|
|
2968
3397
|
*/
|
|
@@ -2985,9 +3414,12 @@ type Props$a = {
|
|
|
2985
3414
|
value?: number;
|
|
2986
3415
|
};
|
|
2987
3416
|
|
|
2988
|
-
declare const DxcSlider:
|
|
3417
|
+
declare const DxcSlider: {
|
|
3418
|
+
({ ariaLabel, defaultValue, disabled, helperText, label, labelFormatCallback, margin, marks, maxValue, minValue, name, onChange, onDragEnd, ref, showLimitsValues, showInput, size, step, value, }: SliderProps): react.JSX.Element;
|
|
3419
|
+
displayName: string;
|
|
3420
|
+
};
|
|
2989
3421
|
|
|
2990
|
-
type
|
|
3422
|
+
type SpinnerProps = {
|
|
2991
3423
|
/**
|
|
2992
3424
|
* 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.
|
|
2993
3425
|
*/
|
|
@@ -3005,7 +3437,7 @@ type Props$9 = {
|
|
|
3005
3437
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3006
3438
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3007
3439
|
*/
|
|
3008
|
-
margin?: Space
|
|
3440
|
+
margin?: Space | Margin;
|
|
3009
3441
|
/**
|
|
3010
3442
|
* Available modes of the spinner.
|
|
3011
3443
|
*/
|
|
@@ -3021,11 +3453,9 @@ type Props$9 = {
|
|
|
3021
3453
|
value?: number;
|
|
3022
3454
|
};
|
|
3023
3455
|
|
|
3024
|
-
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }:
|
|
3456
|
+
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: SpinnerProps) => react.JSX.Element;
|
|
3025
3457
|
|
|
3026
|
-
type
|
|
3027
|
-
type Size = "small" | "medium" | "large";
|
|
3028
|
-
type Props$8 = {
|
|
3458
|
+
type StatusLightProps = {
|
|
3029
3459
|
/**
|
|
3030
3460
|
* It will define the color of the light based on its semantic meaning.
|
|
3031
3461
|
*/
|
|
@@ -3037,12 +3467,16 @@ type Props$8 = {
|
|
|
3037
3467
|
/**
|
|
3038
3468
|
* Size of the component. Should be defined based on its importance and/or available space.
|
|
3039
3469
|
*/
|
|
3040
|
-
size?:
|
|
3470
|
+
size?: "small" | "medium" | "large";
|
|
3041
3471
|
};
|
|
3042
3472
|
|
|
3043
|
-
declare function DxcStatusLight({ label, mode, size }:
|
|
3473
|
+
declare function DxcStatusLight({ label, mode, size }: StatusLightProps): react.JSX.Element;
|
|
3044
3474
|
|
|
3045
|
-
|
|
3475
|
+
/**
|
|
3476
|
+
* Reference to the component.
|
|
3477
|
+
*/
|
|
3478
|
+
type RefType$2 = React.Ref<HTMLDivElement>;
|
|
3479
|
+
type SwitchProps = {
|
|
3046
3480
|
/**
|
|
3047
3481
|
* Specifies a string to be used as the name for the switch element when no `label` is provided.
|
|
3048
3482
|
*/
|
|
@@ -3072,7 +3506,7 @@ type Props$7 = {
|
|
|
3072
3506
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3073
3507
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3074
3508
|
*/
|
|
3075
|
-
margin?: Space
|
|
3509
|
+
margin?: Space | Margin;
|
|
3076
3510
|
/**
|
|
3077
3511
|
* Name attribute of the input element.
|
|
3078
3512
|
*/
|
|
@@ -3086,6 +3520,10 @@ type Props$7 = {
|
|
|
3086
3520
|
* If true, the component will display '(Optional)' next to the label.
|
|
3087
3521
|
*/
|
|
3088
3522
|
optional?: boolean;
|
|
3523
|
+
/**
|
|
3524
|
+
* Reference to the component.
|
|
3525
|
+
*/
|
|
3526
|
+
ref?: RefType$2;
|
|
3089
3527
|
/**
|
|
3090
3528
|
* Size of the component.
|
|
3091
3529
|
*/
|
|
@@ -3101,11 +3539,56 @@ type Props$7 = {
|
|
|
3101
3539
|
value?: string;
|
|
3102
3540
|
};
|
|
3103
3541
|
|
|
3104
|
-
declare const DxcSwitch:
|
|
3542
|
+
declare const DxcSwitch: {
|
|
3543
|
+
({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, ref, size, tabIndex, value, }: SwitchProps): react.JSX.Element;
|
|
3544
|
+
displayName: string;
|
|
3545
|
+
};
|
|
3546
|
+
|
|
3547
|
+
type BaseActionCell = {
|
|
3548
|
+
disabled?: boolean;
|
|
3549
|
+
tabIndex?: number;
|
|
3550
|
+
title: string;
|
|
3551
|
+
};
|
|
3552
|
+
type TableActionCell = PrettifyTypes<BaseActionCell & ({
|
|
3553
|
+
icon: string | SVG;
|
|
3554
|
+
onClick: () => void;
|
|
3555
|
+
options?: never;
|
|
3556
|
+
} | {
|
|
3557
|
+
icon?: never;
|
|
3558
|
+
onClick: (value?: string) => void;
|
|
3559
|
+
options: DropdownOption[];
|
|
3560
|
+
})>;
|
|
3561
|
+
type ActionsCellProps = {
|
|
3562
|
+
/**
|
|
3563
|
+
* It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
|
|
3564
|
+
* or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
|
|
3565
|
+
* Only the first action with options will be displayed and only up to 3 actions.
|
|
3566
|
+
* In the case of the dropdown the click function will pass the value assigned to the option.
|
|
3567
|
+
*/
|
|
3568
|
+
actions: TableActionCell[];
|
|
3569
|
+
};
|
|
3570
|
+
type TableProps = {
|
|
3571
|
+
/**
|
|
3572
|
+
* The center section of the table. Can be used to render custom
|
|
3573
|
+
* content in this area.
|
|
3574
|
+
*/
|
|
3575
|
+
children: ReactNode;
|
|
3576
|
+
/**
|
|
3577
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3578
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3579
|
+
*/
|
|
3580
|
+
margin?: Space | Margin;
|
|
3581
|
+
/**
|
|
3582
|
+
* Determines the visual style and layout
|
|
3583
|
+
* - "default": Default table size.
|
|
3584
|
+
* - "reduced": More compact table with less spacing for high density information.
|
|
3585
|
+
*/
|
|
3586
|
+
mode?: "default" | "reduced";
|
|
3587
|
+
};
|
|
3105
3588
|
|
|
3106
3589
|
declare const DxcTable: {
|
|
3107
|
-
({ children, margin, mode }:
|
|
3108
|
-
ActionsCell: ({ actions }:
|
|
3590
|
+
({ children, margin, mode }: TableProps): react.JSX.Element;
|
|
3591
|
+
ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
|
|
3109
3592
|
};
|
|
3110
3593
|
|
|
3111
3594
|
type CommonTabProps = {
|
|
@@ -3117,16 +3600,17 @@ type CommonTabProps = {
|
|
|
3117
3600
|
children: ReactNode;
|
|
3118
3601
|
onClick?: () => void;
|
|
3119
3602
|
onHover?: () => void;
|
|
3603
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
3120
3604
|
};
|
|
3121
|
-
type
|
|
3605
|
+
type TabsTabProps = PrettifyTypes<CommonTabProps & ({
|
|
3122
3606
|
tabId: string;
|
|
3123
3607
|
label?: string;
|
|
3124
3608
|
icon?: string | SVG;
|
|
3125
|
-
}
|
|
3609
|
+
} | (CommonTabProps & {
|
|
3126
3610
|
tabId?: string;
|
|
3127
3611
|
label: string;
|
|
3128
3612
|
icon?: string | SVG;
|
|
3129
|
-
})
|
|
3613
|
+
}))>;
|
|
3130
3614
|
type TabsProps = {
|
|
3131
3615
|
/**
|
|
3132
3616
|
* Whether the icon should appear above or to the left of the label.
|
|
@@ -3136,7 +3620,7 @@ type TabsProps = {
|
|
|
3136
3620
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3137
3621
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3138
3622
|
*/
|
|
3139
|
-
margin?: Space
|
|
3623
|
+
margin?: Space | Margin;
|
|
3140
3624
|
/**
|
|
3141
3625
|
* Value of the tabindex attribute applied to each tab.
|
|
3142
3626
|
*/
|
|
@@ -3146,14 +3630,20 @@ type TabsProps = {
|
|
|
3146
3630
|
*/
|
|
3147
3631
|
children?: ReactNode;
|
|
3148
3632
|
};
|
|
3149
|
-
type Props$6 = TabsProps;
|
|
3150
3633
|
|
|
3151
3634
|
declare const DxcTabs: {
|
|
3152
|
-
({ children, iconPosition, margin, tabIndex }:
|
|
3153
|
-
Tab:
|
|
3635
|
+
({ children, iconPosition, margin, tabIndex }: TabsProps): react.JSX.Element;
|
|
3636
|
+
Tab: {
|
|
3637
|
+
({ active, disabled, icon, label, notificationNumber, onClick, onHover, ref, title, tabId, }: TabsTabProps): react.JSX.Element;
|
|
3638
|
+
displayName: string;
|
|
3639
|
+
};
|
|
3154
3640
|
};
|
|
3155
3641
|
|
|
3156
|
-
|
|
3642
|
+
/**
|
|
3643
|
+
* Reference to the component.
|
|
3644
|
+
*/
|
|
3645
|
+
type RefType$1 = React.Ref<HTMLDivElement>;
|
|
3646
|
+
type TextAreaProps = {
|
|
3157
3647
|
/**
|
|
3158
3648
|
* Specifies a string to be used as the name for the textarea element when no `label` is provided.
|
|
3159
3649
|
*/
|
|
@@ -3202,7 +3692,7 @@ type Props$5 = {
|
|
|
3202
3692
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3203
3693
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3204
3694
|
*/
|
|
3205
|
-
margin?: Space
|
|
3695
|
+
margin?: Space | Margin;
|
|
3206
3696
|
/**
|
|
3207
3697
|
* Specifies the minimum length allowed by the textarea.
|
|
3208
3698
|
* This will be checked both when the textarea loses the
|
|
@@ -3262,6 +3752,10 @@ type Props$5 = {
|
|
|
3262
3752
|
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
3263
3753
|
*/
|
|
3264
3754
|
readOnly?: boolean;
|
|
3755
|
+
/**
|
|
3756
|
+
* Reference to the container element of the textarea component.
|
|
3757
|
+
*/
|
|
3758
|
+
ref?: RefType$1;
|
|
3265
3759
|
/**
|
|
3266
3760
|
* Number of rows of the textarea.
|
|
3267
3761
|
*/
|
|
@@ -3287,25 +3781,12 @@ type Props$5 = {
|
|
|
3287
3781
|
verticalGrow?: "auto" | "manual" | "none";
|
|
3288
3782
|
};
|
|
3289
3783
|
|
|
3290
|
-
declare const DxcTextarea:
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
/**
|
|
3294
|
-
* This function will be called when the user clicks the action.
|
|
3295
|
-
*/
|
|
3296
|
-
onClick: () => void;
|
|
3297
|
-
/**
|
|
3298
|
-
* Icon to be placed in the action..
|
|
3299
|
-
*/
|
|
3300
|
-
icon: string | SVG;
|
|
3301
|
-
/**
|
|
3302
|
-
* Text representing advisory information related
|
|
3303
|
-
* to the button's action. Under the hood, this prop also serves
|
|
3304
|
-
* as an accessible label for the component.
|
|
3305
|
-
*/
|
|
3306
|
-
title?: string;
|
|
3784
|
+
declare const DxcTextarea: {
|
|
3785
|
+
({ 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;
|
|
3786
|
+
displayName: string;
|
|
3307
3787
|
};
|
|
3308
|
-
|
|
3788
|
+
|
|
3789
|
+
type TextInputProps = {
|
|
3309
3790
|
/**
|
|
3310
3791
|
* Sets the alignment inside the input.
|
|
3311
3792
|
*/
|
|
@@ -3352,6 +3833,10 @@ type Props$4 = {
|
|
|
3352
3833
|
* and the custom action will not execute its onClick event.
|
|
3353
3834
|
*/
|
|
3354
3835
|
readOnly?: boolean;
|
|
3836
|
+
/**
|
|
3837
|
+
* Ref to the input element.
|
|
3838
|
+
*/
|
|
3839
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
3355
3840
|
/**
|
|
3356
3841
|
* If true, the input will be optional, showing '(Optional)'
|
|
3357
3842
|
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
@@ -3423,27 +3908,123 @@ type Props$4 = {
|
|
|
3423
3908
|
* length does not comply the specified range. If a valid length is
|
|
3424
3909
|
* reached, the error parameter of both events will not be defined.
|
|
3425
3910
|
*/
|
|
3426
|
-
minLength?: number;
|
|
3911
|
+
minLength?: number;
|
|
3912
|
+
/**
|
|
3913
|
+
* Specifies the maximum length allowed by the input.
|
|
3914
|
+
* This will be checked both when the input element loses the
|
|
3915
|
+
* focus and while typing within it. If the string entered does not
|
|
3916
|
+
* comply the maximum length, the onBlur and onChange functions will be called
|
|
3917
|
+
* with the current value and an internal error informing that the value
|
|
3918
|
+
* length does not comply the specified range. If a valid length is
|
|
3919
|
+
* reached, the error parameter of both events will not be defined.
|
|
3920
|
+
*/
|
|
3921
|
+
maxLength?: number;
|
|
3922
|
+
/**
|
|
3923
|
+
* HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
|
|
3924
|
+
* Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
|
|
3925
|
+
*/
|
|
3926
|
+
autocomplete?: string;
|
|
3927
|
+
/**
|
|
3928
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3929
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3930
|
+
*/
|
|
3931
|
+
margin?: Space | Margin;
|
|
3932
|
+
/**
|
|
3933
|
+
* Size of the component.
|
|
3934
|
+
*/
|
|
3935
|
+
size?: "small" | "medium" | "large" | "fillParent";
|
|
3936
|
+
/**
|
|
3937
|
+
* Value of the tabindex attribute.
|
|
3938
|
+
*/
|
|
3939
|
+
tabIndex?: number;
|
|
3940
|
+
/**
|
|
3941
|
+
* Specifies a string to be used as the name for the textInput element when no `label` is provided.
|
|
3942
|
+
*/
|
|
3943
|
+
ariaLabel?: string;
|
|
3944
|
+
};
|
|
3945
|
+
|
|
3946
|
+
declare const DxcTextInput: {
|
|
3947
|
+
({ 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;
|
|
3948
|
+
displayName: string;
|
|
3949
|
+
};
|
|
3950
|
+
|
|
3951
|
+
/**
|
|
3952
|
+
* Reference to the component.
|
|
3953
|
+
*/
|
|
3954
|
+
type RefType = React.Ref<HTMLDivElement>;
|
|
3955
|
+
type TimeInputProps = {
|
|
3956
|
+
/**
|
|
3957
|
+
* Specifies a string to be used as the name for the timeInput element when no `label` is provided.
|
|
3958
|
+
*/
|
|
3959
|
+
ariaLabel?: string;
|
|
3960
|
+
/**
|
|
3961
|
+
* If true, the input will have an action to clear the entered value.
|
|
3962
|
+
*/
|
|
3963
|
+
clearable?: boolean;
|
|
3964
|
+
/**
|
|
3965
|
+
* Initial value of the input, only when it is uncontrolled.
|
|
3966
|
+
*/
|
|
3967
|
+
defaultValue?: string;
|
|
3968
|
+
/**
|
|
3969
|
+
* If true, the component will be disabled.
|
|
3970
|
+
*/
|
|
3971
|
+
disabled?: boolean;
|
|
3972
|
+
/**
|
|
3973
|
+
* If it is a defined value and also a truthy string, the component will
|
|
3974
|
+
* change its appearance, showing the error below the input component. If
|
|
3975
|
+
* the defined value is an empty string, it will reserve a space below
|
|
3976
|
+
* the component for a future error, but it would not change its look. In
|
|
3977
|
+
* case of being undefined or null, both the appearance and the space for
|
|
3978
|
+
* the error message would not be modified.
|
|
3979
|
+
*/
|
|
3980
|
+
error?: string;
|
|
3981
|
+
/**
|
|
3982
|
+
* Helper text to be placed above the input.
|
|
3983
|
+
*/
|
|
3984
|
+
helperText?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* Text to be placed above the input.
|
|
3987
|
+
*/
|
|
3988
|
+
label?: string;
|
|
3989
|
+
/**
|
|
3990
|
+
* Name attribute of the input element.
|
|
3991
|
+
*/
|
|
3992
|
+
name?: string;
|
|
3993
|
+
/**
|
|
3994
|
+
* This function will be called when the input element loses the focus.
|
|
3995
|
+
* An object including the input value and the error (if the value
|
|
3996
|
+
* entered is not valid) will be passed to this function. If there is no error,
|
|
3997
|
+
* error will not be defined.
|
|
3998
|
+
*/
|
|
3999
|
+
onBlur?: (val: {
|
|
4000
|
+
value: string;
|
|
4001
|
+
error?: string;
|
|
4002
|
+
}) => void;
|
|
4003
|
+
/**
|
|
4004
|
+
* This function will be called when the user types within the input
|
|
4005
|
+
* or selects a value in the dropdown element of the component.
|
|
4006
|
+
*/
|
|
4007
|
+
onChange?: (value: string) => void;
|
|
3427
4008
|
/**
|
|
3428
|
-
*
|
|
3429
|
-
*
|
|
3430
|
-
*
|
|
3431
|
-
*
|
|
3432
|
-
* with the current value and an internal error informing that the value
|
|
3433
|
-
* length does not comply the specified range. If a valid length is
|
|
3434
|
-
* reached, the error parameter of both events will not be defined.
|
|
4009
|
+
* If true, the input will be optional, showing '(Optional)'
|
|
4010
|
+
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
4011
|
+
* passed as a parameter to the OnBlur function when it has
|
|
4012
|
+
* not been filled.
|
|
3435
4013
|
*/
|
|
3436
|
-
|
|
4014
|
+
optional?: boolean;
|
|
3437
4015
|
/**
|
|
3438
|
-
*
|
|
3439
|
-
*
|
|
4016
|
+
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
4017
|
+
* In addition, the clear action will not be displayed even if the flag is set to true.
|
|
3440
4018
|
*/
|
|
3441
|
-
|
|
4019
|
+
readOnly?: boolean;
|
|
3442
4020
|
/**
|
|
3443
|
-
*
|
|
3444
|
-
|
|
4021
|
+
* Reference to the component.
|
|
4022
|
+
*/
|
|
4023
|
+
ref?: RefType;
|
|
4024
|
+
/**
|
|
4025
|
+
* 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.
|
|
3445
4026
|
*/
|
|
3446
|
-
|
|
4027
|
+
showSeconds?: boolean;
|
|
3447
4028
|
/**
|
|
3448
4029
|
* Size of the component.
|
|
3449
4030
|
*/
|
|
@@ -3453,12 +4034,16 @@ type Props$4 = {
|
|
|
3453
4034
|
*/
|
|
3454
4035
|
tabIndex?: number;
|
|
3455
4036
|
/**
|
|
3456
|
-
*
|
|
4037
|
+
* Time format of the input. It can be either 12 or 24.
|
|
3457
4038
|
*/
|
|
3458
|
-
|
|
4039
|
+
timeFormat?: "12" | "24";
|
|
4040
|
+
/**
|
|
4041
|
+
* Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
4042
|
+
*/
|
|
4043
|
+
value?: string;
|
|
3459
4044
|
};
|
|
3460
4045
|
|
|
3461
|
-
declare const
|
|
4046
|
+
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;
|
|
3462
4047
|
|
|
3463
4048
|
type Action = {
|
|
3464
4049
|
/**
|
|
@@ -3484,24 +4069,35 @@ type CommonProps$1 = {
|
|
|
3484
4069
|
*/
|
|
3485
4070
|
message: string;
|
|
3486
4071
|
};
|
|
3487
|
-
type DefaultToast = CommonProps$1 & {
|
|
4072
|
+
type DefaultToast = PrettifyTypes<CommonProps$1 & {
|
|
3488
4073
|
/**
|
|
3489
4074
|
* Material Symbol name or SVG element as the icon that will be placed next to the panel label.
|
|
3490
4075
|
* When using Material Symbols, replace spaces with underscores.
|
|
3491
4076
|
* By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
|
|
3492
4077
|
*/
|
|
3493
4078
|
icon?: string | SVG;
|
|
3494
|
-
}
|
|
3495
|
-
type LoadingToast = CommonProps$1 & {
|
|
4079
|
+
}>;
|
|
4080
|
+
type LoadingToast = PrettifyTypes<CommonProps$1 & {
|
|
3496
4081
|
loading: boolean;
|
|
3497
|
-
}
|
|
3498
|
-
type SemanticToast = CommonProps$1 & {
|
|
4082
|
+
}>;
|
|
4083
|
+
type SemanticToast = PrettifyTypes<CommonProps$1 & {
|
|
3499
4084
|
/**
|
|
3500
4085
|
* Flag that allows to hide the semantic icon of the toast.
|
|
3501
4086
|
*/
|
|
3502
4087
|
hideSemanticIcon?: boolean;
|
|
4088
|
+
}>;
|
|
4089
|
+
type Semantic = "default" | "info" | "success" | "warning";
|
|
4090
|
+
type ToastProps = {
|
|
4091
|
+
action?: Action;
|
|
4092
|
+
duration: number;
|
|
4093
|
+
icon?: string | SVG;
|
|
4094
|
+
loading?: boolean;
|
|
4095
|
+
message: string;
|
|
4096
|
+
onClear: () => void;
|
|
4097
|
+
semantic: Semantic;
|
|
4098
|
+
hideSemanticIcon?: boolean;
|
|
3503
4099
|
};
|
|
3504
|
-
type
|
|
4100
|
+
type ToastsQueueProps = {
|
|
3505
4101
|
/**
|
|
3506
4102
|
* Tree of components from which the useToast hook can be triggered.
|
|
3507
4103
|
*/
|
|
@@ -3513,9 +4109,9 @@ type ToastsQueuePropsType = {
|
|
|
3513
4109
|
duration?: number;
|
|
3514
4110
|
};
|
|
3515
4111
|
|
|
3516
|
-
declare function DxcToastsQueue({ children, duration }:
|
|
4112
|
+
declare function DxcToastsQueue({ children, duration }: ToastsQueueProps): react.JSX.Element;
|
|
3517
4113
|
|
|
3518
|
-
type
|
|
4114
|
+
type ToggleOptionIcon = {
|
|
3519
4115
|
/**
|
|
3520
4116
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3521
4117
|
*/
|
|
@@ -3530,7 +4126,7 @@ type OptionIcon = {
|
|
|
3530
4126
|
*/
|
|
3531
4127
|
title: string;
|
|
3532
4128
|
};
|
|
3533
|
-
type
|
|
4129
|
+
type ToggleOptionLabel = {
|
|
3534
4130
|
/**
|
|
3535
4131
|
* Material Symbols icon or SVG element. Icon and label can't be used at same time.
|
|
3536
4132
|
*/
|
|
@@ -3545,7 +4141,7 @@ type OptionLabel = {
|
|
|
3545
4141
|
*/
|
|
3546
4142
|
title?: never;
|
|
3547
4143
|
};
|
|
3548
|
-
type
|
|
4144
|
+
type ToggleOption = PrettifyTypes<{
|
|
3549
4145
|
/**
|
|
3550
4146
|
* If true, the option will be disabled.
|
|
3551
4147
|
*/
|
|
@@ -3554,17 +4150,17 @@ type Option = {
|
|
|
3554
4150
|
* Number with the option inner value.
|
|
3555
4151
|
*/
|
|
3556
4152
|
value: number;
|
|
3557
|
-
} & (
|
|
4153
|
+
} & (ToggleOptionIcon | ToggleOptionLabel)>;
|
|
3558
4154
|
type CommonProps = {
|
|
3559
4155
|
/**
|
|
3560
4156
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3561
4157
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3562
4158
|
*/
|
|
3563
|
-
margin?: Space
|
|
4159
|
+
margin?: Space | Margin;
|
|
3564
4160
|
/**
|
|
3565
4161
|
* An array of objects representing the selectable options.
|
|
3566
4162
|
*/
|
|
3567
|
-
options:
|
|
4163
|
+
options: ToggleOption[];
|
|
3568
4164
|
/**
|
|
3569
4165
|
* The orientation of the toggle group.
|
|
3570
4166
|
*/
|
|
@@ -3614,11 +4210,11 @@ type SingleSelectionToggleGroup = {
|
|
|
3614
4210
|
*/
|
|
3615
4211
|
value?: number;
|
|
3616
4212
|
};
|
|
3617
|
-
type
|
|
4213
|
+
type ToggleGroupProps = PrettifyTypes<CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup)>;
|
|
3618
4214
|
|
|
3619
|
-
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }:
|
|
4215
|
+
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: ToggleGroupProps): react.JSX.Element;
|
|
3620
4216
|
|
|
3621
|
-
type
|
|
4217
|
+
type TooltipProps = {
|
|
3622
4218
|
/**
|
|
3623
4219
|
* Content in which the Tooltip will be displayed.
|
|
3624
4220
|
*/
|
|
@@ -3633,9 +4229,9 @@ type Props$2 = {
|
|
|
3633
4229
|
position?: "bottom" | "top" | "left" | "right";
|
|
3634
4230
|
};
|
|
3635
4231
|
|
|
3636
|
-
declare const DxcTooltip: (props:
|
|
4232
|
+
declare const DxcTooltip: (props: TooltipProps) => react.JSX.Element;
|
|
3637
4233
|
|
|
3638
|
-
type
|
|
4234
|
+
type TypographyProps = {
|
|
3639
4235
|
as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
|
|
3640
4236
|
children: ReactNode;
|
|
3641
4237
|
color?: string;
|
|
@@ -3652,9 +4248,9 @@ type Props$1 = {
|
|
|
3652
4248
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
3653
4249
|
};
|
|
3654
4250
|
|
|
3655
|
-
declare function DxcTypography({ children, ...props }:
|
|
4251
|
+
declare function DxcTypography({ children, ...props }: TypographyProps): react.JSX.Element;
|
|
3656
4252
|
|
|
3657
|
-
type
|
|
4253
|
+
type WizardStepProps = {
|
|
3658
4254
|
/**
|
|
3659
4255
|
* Step label.
|
|
3660
4256
|
*/
|
|
@@ -3676,7 +4272,7 @@ type StepProps = {
|
|
|
3676
4272
|
*/
|
|
3677
4273
|
valid?: boolean;
|
|
3678
4274
|
};
|
|
3679
|
-
type
|
|
4275
|
+
type WizardProps = {
|
|
3680
4276
|
/**
|
|
3681
4277
|
* The wizard can be shown in horizontal or vertical.
|
|
3682
4278
|
*/
|
|
@@ -3697,38 +4293,46 @@ type Props = {
|
|
|
3697
4293
|
/**
|
|
3698
4294
|
* An array of objects representing the steps.
|
|
3699
4295
|
*/
|
|
3700
|
-
steps:
|
|
4296
|
+
steps: WizardStepProps[];
|
|
3701
4297
|
/**
|
|
3702
4298
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
3703
4299
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
3704
4300
|
*/
|
|
3705
|
-
margin?: Space
|
|
4301
|
+
margin?: Space | Margin;
|
|
3706
4302
|
/**
|
|
3707
4303
|
* Value of the tabindex attribute that is given to all the steps.
|
|
3708
4304
|
*/
|
|
3709
4305
|
tabIndex?: number;
|
|
3710
4306
|
};
|
|
3711
4307
|
|
|
3712
|
-
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }:
|
|
4308
|
+
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: WizardProps): react.JSX.Element;
|
|
3713
4309
|
|
|
3714
4310
|
declare const defaultTranslatedComponentLabels: {
|
|
3715
|
-
applicationLayout: {
|
|
3716
|
-
visibilityToggleTitle: string;
|
|
3717
|
-
};
|
|
3718
4311
|
alert: {
|
|
3719
4312
|
previousMessageActionTitle: string;
|
|
3720
4313
|
nextMessageActionTitle: string;
|
|
3721
4314
|
closeAlertActionTitle: string;
|
|
3722
4315
|
closeMessageActionTitle: string;
|
|
3723
4316
|
};
|
|
4317
|
+
applicationLayout: {
|
|
4318
|
+
visibilityToggleTitle: string;
|
|
4319
|
+
};
|
|
4320
|
+
amountInput: {
|
|
4321
|
+
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
4322
|
+
valueLessThanOrEqualToErrorMessage: (value: number) => string;
|
|
4323
|
+
};
|
|
3724
4324
|
calendar: {
|
|
3725
4325
|
daysShort: string[];
|
|
3726
4326
|
months: string[];
|
|
3727
4327
|
previousMonthTitle: string;
|
|
3728
4328
|
nextMonthTitle: string;
|
|
3729
4329
|
};
|
|
4330
|
+
card: {
|
|
4331
|
+
noContent: string;
|
|
4332
|
+
};
|
|
3730
4333
|
dateInput: {
|
|
3731
4334
|
invalidDateErrorMessage: string;
|
|
4335
|
+
datePickerActionTitle: string;
|
|
3732
4336
|
};
|
|
3733
4337
|
dialog: {
|
|
3734
4338
|
closeIconAriaLabel: string;
|
|
@@ -3751,13 +4355,21 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3751
4355
|
requiredSelectionErrorMessage: string;
|
|
3752
4356
|
requiredValueErrorMessage: string;
|
|
3753
4357
|
formatRequestedErrorMessage: string;
|
|
3754
|
-
|
|
3755
|
-
|
|
4358
|
+
minLengthErrorMessage: (minLength: number) => string;
|
|
4359
|
+
maxLengthErrorMessage: (maxLength: number) => string;
|
|
3756
4360
|
};
|
|
3757
4361
|
header: {
|
|
3758
4362
|
closeIcon: string;
|
|
3759
4363
|
hamburgerTitle: string;
|
|
3760
4364
|
};
|
|
4365
|
+
messageInput: {
|
|
4366
|
+
inputAriaLabel: string;
|
|
4367
|
+
sendButtonTitle: string;
|
|
4368
|
+
stopButtonTitle: string;
|
|
4369
|
+
attachFileButtonTitle: string;
|
|
4370
|
+
recordAudioButtonTitle: string;
|
|
4371
|
+
stopRecordingButtonTitle: string;
|
|
4372
|
+
};
|
|
3761
4373
|
numberInput: {
|
|
3762
4374
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
3763
4375
|
valueLessThanOrEqualToErrorMessage: (value: number) => string;
|
|
@@ -3784,6 +4396,12 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3784
4396
|
radioGroup: {
|
|
3785
4397
|
optionalItemLabelDefault: string;
|
|
3786
4398
|
};
|
|
4399
|
+
searchBar: {
|
|
4400
|
+
clearFieldActionTitle: string;
|
|
4401
|
+
inputAriaLabel: string;
|
|
4402
|
+
triggerTitle: string;
|
|
4403
|
+
cancelButtonLabel: string;
|
|
4404
|
+
};
|
|
3787
4405
|
select: {
|
|
3788
4406
|
actionClearSelectionTitle: string;
|
|
3789
4407
|
actionClearSearchTitle: string;
|
|
@@ -3799,11 +4417,20 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3799
4417
|
searchingMessage: string;
|
|
3800
4418
|
fetchingDataErrorMessage: string;
|
|
3801
4419
|
};
|
|
4420
|
+
timeInput: {
|
|
4421
|
+
timePickerActionTitle: string;
|
|
4422
|
+
timePeriodAM: string;
|
|
4423
|
+
timePeriodPM: string;
|
|
4424
|
+
};
|
|
3802
4425
|
toast: {
|
|
3803
4426
|
clearToastActionTitle: string;
|
|
3804
4427
|
};
|
|
3805
4428
|
};
|
|
3806
4429
|
type TranslatedLabels = typeof defaultTranslatedComponentLabels;
|
|
4430
|
+
type LocalizedContext = {
|
|
4431
|
+
labels: TranslatedLabels;
|
|
4432
|
+
locale?: string;
|
|
4433
|
+
};
|
|
3807
4434
|
|
|
3808
4435
|
/**
|
|
3809
4436
|
* This type is used to allow labels objects to be passed to the HalstackProvider.
|
|
@@ -3812,105 +4439,18 @@ type TranslatedLabels = typeof defaultTranslatedComponentLabels;
|
|
|
3812
4439
|
type DeepPartial<T> = {
|
|
3813
4440
|
[P in keyof T]?: Partial<T[P]>;
|
|
3814
4441
|
};
|
|
3815
|
-
declare const HalstackLanguageContext: react.Context<
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
previousMessageActionTitle: string;
|
|
3821
|
-
nextMessageActionTitle: string;
|
|
3822
|
-
closeAlertActionTitle: string;
|
|
3823
|
-
closeMessageActionTitle: string;
|
|
3824
|
-
};
|
|
3825
|
-
calendar: {
|
|
3826
|
-
daysShort: string[];
|
|
3827
|
-
months: string[];
|
|
3828
|
-
previousMonthTitle: string;
|
|
3829
|
-
nextMonthTitle: string;
|
|
3830
|
-
};
|
|
3831
|
-
dateInput: {
|
|
3832
|
-
invalidDateErrorMessage: string;
|
|
3833
|
-
};
|
|
3834
|
-
dialog: {
|
|
3835
|
-
closeIconAriaLabel: string;
|
|
3836
|
-
};
|
|
3837
|
-
fileInput: {
|
|
3838
|
-
fileSizeGreaterThanErrorMessage: string;
|
|
3839
|
-
fileSizeLessThanErrorMessage: string;
|
|
3840
|
-
multipleButtonLabelDefault: string;
|
|
3841
|
-
singleButtonLabelDefault: string;
|
|
3842
|
-
dropAreaButtonLabelDefault: string;
|
|
3843
|
-
multipleDropAreaLabelDefault: string;
|
|
3844
|
-
singleDropAreaLabelDefault: string;
|
|
3845
|
-
deleteFileActionTitle: string;
|
|
3846
|
-
};
|
|
3847
|
-
footer: {
|
|
3848
|
-
copyrightText: (year: number) => string;
|
|
3849
|
-
};
|
|
3850
|
-
formFields: {
|
|
3851
|
-
optionalLabel: string;
|
|
3852
|
-
requiredSelectionErrorMessage: string;
|
|
3853
|
-
requiredValueErrorMessage: string;
|
|
3854
|
-
formatRequestedErrorMessage: string;
|
|
3855
|
-
lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
|
|
3856
|
-
logoAlternativeText: string;
|
|
3857
|
-
};
|
|
3858
|
-
header: {
|
|
3859
|
-
closeIcon: string;
|
|
3860
|
-
hamburgerTitle: string;
|
|
3861
|
-
};
|
|
3862
|
-
numberInput: {
|
|
3863
|
-
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
3864
|
-
valueLessThanOrEqualToErrorMessage: (value: number) => string;
|
|
3865
|
-
decrementValueTitle: string;
|
|
3866
|
-
incrementValueTitle: string;
|
|
3867
|
-
};
|
|
3868
|
-
paginator: {
|
|
3869
|
-
itemsPerPageText: string;
|
|
3870
|
-
minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
|
|
3871
|
-
goToPageText: string;
|
|
3872
|
-
pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
|
|
3873
|
-
firstResultsTitle: string;
|
|
3874
|
-
previousResultsTitle: string;
|
|
3875
|
-
nextResultsTitle: string;
|
|
3876
|
-
lastResultsTitle: string;
|
|
3877
|
-
};
|
|
3878
|
-
passwordInput: {
|
|
3879
|
-
inputShowPasswordTitle: string;
|
|
3880
|
-
inputHidePasswordTitle: string;
|
|
3881
|
-
};
|
|
3882
|
-
quickNav: {
|
|
3883
|
-
contentTitle: string;
|
|
3884
|
-
};
|
|
3885
|
-
radioGroup: {
|
|
3886
|
-
optionalItemLabelDefault: string;
|
|
3887
|
-
};
|
|
3888
|
-
select: {
|
|
3889
|
-
actionClearSelectionTitle: string;
|
|
3890
|
-
actionClearSearchTitle: string;
|
|
3891
|
-
noMatchesErrorMessage: string;
|
|
3892
|
-
selectAllLabel: string;
|
|
3893
|
-
};
|
|
3894
|
-
tabs: {
|
|
3895
|
-
scrollLeft: string;
|
|
3896
|
-
scrollRight: string;
|
|
3897
|
-
};
|
|
3898
|
-
textInput: {
|
|
3899
|
-
clearFieldActionTitle: string;
|
|
3900
|
-
searchingMessage: string;
|
|
3901
|
-
fetchingDataErrorMessage: string;
|
|
3902
|
-
};
|
|
3903
|
-
toast: {
|
|
3904
|
-
clearToastActionTitle: string;
|
|
3905
|
-
};
|
|
3906
|
-
}>;
|
|
3907
|
-
type ThemeType = Record<string, string | number>;
|
|
4442
|
+
declare const HalstackLanguageContext: react.Context<LocalizedContext>;
|
|
4443
|
+
type ThemeType = {
|
|
4444
|
+
tokens?: Record<string, string | number>;
|
|
4445
|
+
logos?: Record<string, string | undefined>;
|
|
4446
|
+
};
|
|
3908
4447
|
type HalstackProviderPropsType = {
|
|
3909
4448
|
labels?: DeepPartial<TranslatedLabels>;
|
|
3910
4449
|
children: ReactNode;
|
|
3911
4450
|
opinionatedTheme?: ThemeType;
|
|
4451
|
+
localeTag?: string;
|
|
3912
4452
|
};
|
|
3913
|
-
declare const HalstackProvider: ({ labels, children, opinionatedTheme }: HalstackProviderPropsType) => JSX.Element;
|
|
4453
|
+
declare const HalstackProvider: ({ labels, children, opinionatedTheme, localeTag, }: HalstackProviderPropsType) => JSX.Element;
|
|
3914
4454
|
|
|
3915
4455
|
declare function useToast(): {
|
|
3916
4456
|
default: (toast: DefaultToast) => (() => void) | undefined;
|
|
@@ -3920,4 +4460,547 @@ declare function useToast(): {
|
|
|
3920
4460
|
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
3921
4461
|
};
|
|
3922
4462
|
|
|
3923
|
-
|
|
4463
|
+
declare const coreTokens: {
|
|
4464
|
+
/**************/
|
|
4465
|
+
/** POSITION **/
|
|
4466
|
+
/**************/
|
|
4467
|
+
"--z-app-layout-sidenav": number;
|
|
4468
|
+
"--z-app-layout-header": number;
|
|
4469
|
+
"--z-header-overlay": number;
|
|
4470
|
+
"--z-header-menu": number;
|
|
4471
|
+
"--z-date-input": number;
|
|
4472
|
+
"--z-dropdown": number;
|
|
4473
|
+
"--z-textinput": number;
|
|
4474
|
+
"--z-select": number;
|
|
4475
|
+
"--z-contextualmenu": number;
|
|
4476
|
+
"--z-dialog": number;
|
|
4477
|
+
"--z-spinner-overlay": number;
|
|
4478
|
+
"--z-progressbar-overlay": number;
|
|
4479
|
+
"--z-alert": number;
|
|
4480
|
+
"--z-toast": number;
|
|
4481
|
+
"--z-tooltip": number;
|
|
4482
|
+
/************/
|
|
4483
|
+
/** TOKENS **/
|
|
4484
|
+
/************/
|
|
4485
|
+
"--color-absolutes-black": string;
|
|
4486
|
+
"--color-absolutes-white": string;
|
|
4487
|
+
"--color-alpha-100-a": string;
|
|
4488
|
+
"--color-alpha-200-a": string;
|
|
4489
|
+
"--color-alpha-300-a": string;
|
|
4490
|
+
"--color-alpha-400-a": string;
|
|
4491
|
+
"--color-alpha-500-a": string;
|
|
4492
|
+
"--color-alpha-600-a": string;
|
|
4493
|
+
"--color-alpha-700-a": string;
|
|
4494
|
+
"--color-alpha-800-a": string;
|
|
4495
|
+
"--color-alpha-900-a": string;
|
|
4496
|
+
"--color-primary-50": string;
|
|
4497
|
+
"--color-primary-100": string;
|
|
4498
|
+
"--color-primary-200": string;
|
|
4499
|
+
"--color-primary-300": string;
|
|
4500
|
+
"--color-primary-400": string;
|
|
4501
|
+
"--color-primary-500": string;
|
|
4502
|
+
"--color-primary-600": string;
|
|
4503
|
+
"--color-primary-700": string;
|
|
4504
|
+
"--color-primary-800": string;
|
|
4505
|
+
"--color-primary-900": string;
|
|
4506
|
+
"--color-secondary-50": string;
|
|
4507
|
+
"--color-secondary-100": string;
|
|
4508
|
+
"--color-secondary-200": string;
|
|
4509
|
+
"--color-secondary-300": string;
|
|
4510
|
+
"--color-secondary-400": string;
|
|
4511
|
+
"--color-secondary-500": string;
|
|
4512
|
+
"--color-secondary-600": string;
|
|
4513
|
+
"--color-secondary-700": string;
|
|
4514
|
+
"--color-secondary-800": string;
|
|
4515
|
+
"--color-secondary-900": string;
|
|
4516
|
+
"--color-tertiary-50": string;
|
|
4517
|
+
"--color-tertiary-100": string;
|
|
4518
|
+
"--color-tertiary-200": string;
|
|
4519
|
+
"--color-tertiary-300": string;
|
|
4520
|
+
"--color-tertiary-400": string;
|
|
4521
|
+
"--color-tertiary-500": string;
|
|
4522
|
+
"--color-tertiary-600": string;
|
|
4523
|
+
"--color-tertiary-700": string;
|
|
4524
|
+
"--color-tertiary-800": string;
|
|
4525
|
+
"--color-tertiary-900": string;
|
|
4526
|
+
"--color-semantic01-50": string;
|
|
4527
|
+
"--color-semantic01-100": string;
|
|
4528
|
+
"--color-semantic01-200": string;
|
|
4529
|
+
"--color-semantic01-300": string;
|
|
4530
|
+
"--color-semantic01-400": string;
|
|
4531
|
+
"--color-semantic01-500": string;
|
|
4532
|
+
"--color-semantic01-600": string;
|
|
4533
|
+
"--color-semantic01-700": string;
|
|
4534
|
+
"--color-semantic01-800": string;
|
|
4535
|
+
"--color-semantic01-900": string;
|
|
4536
|
+
"--color-semantic02-50": string;
|
|
4537
|
+
"--color-semantic02-100": string;
|
|
4538
|
+
"--color-semantic02-200": string;
|
|
4539
|
+
"--color-semantic02-300": string;
|
|
4540
|
+
"--color-semantic02-400": string;
|
|
4541
|
+
"--color-semantic02-500": string;
|
|
4542
|
+
"--color-semantic02-600": string;
|
|
4543
|
+
"--color-semantic02-700": string;
|
|
4544
|
+
"--color-semantic02-800": string;
|
|
4545
|
+
"--color-semantic02-900": string;
|
|
4546
|
+
"--color-semantic03-50": string;
|
|
4547
|
+
"--color-semantic03-100": string;
|
|
4548
|
+
"--color-semantic03-200": string;
|
|
4549
|
+
"--color-semantic03-300": string;
|
|
4550
|
+
"--color-semantic03-400": string;
|
|
4551
|
+
"--color-semantic03-500": string;
|
|
4552
|
+
"--color-semantic03-600": string;
|
|
4553
|
+
"--color-semantic03-700": string;
|
|
4554
|
+
"--color-semantic03-800": string;
|
|
4555
|
+
"--color-semantic03-900": string;
|
|
4556
|
+
"--color-semantic04-50": string;
|
|
4557
|
+
"--color-semantic04-100": string;
|
|
4558
|
+
"--color-semantic04-200": string;
|
|
4559
|
+
"--color-semantic04-300": string;
|
|
4560
|
+
"--color-semantic04-400": string;
|
|
4561
|
+
"--color-semantic04-500": string;
|
|
4562
|
+
"--color-semantic04-600": string;
|
|
4563
|
+
"--color-semantic04-700": string;
|
|
4564
|
+
"--color-semantic04-800": string;
|
|
4565
|
+
"--color-semantic04-900": string;
|
|
4566
|
+
"--color-neutral-50": string;
|
|
4567
|
+
"--color-neutral-100": string;
|
|
4568
|
+
"--color-neutral-200": string;
|
|
4569
|
+
"--color-neutral-300": string;
|
|
4570
|
+
"--color-neutral-400": string;
|
|
4571
|
+
"--color-neutral-500": string;
|
|
4572
|
+
"--color-neutral-600": string;
|
|
4573
|
+
"--color-neutral-700": string;
|
|
4574
|
+
"--color-neutral-800": string;
|
|
4575
|
+
"--color-neutral-900": string;
|
|
4576
|
+
"--dimensions-0": string;
|
|
4577
|
+
"--dimensions-1": string;
|
|
4578
|
+
"--dimensions-2": string;
|
|
4579
|
+
"--dimensions-4": string;
|
|
4580
|
+
"--dimensions-8": string;
|
|
4581
|
+
"--dimensions-12": string;
|
|
4582
|
+
"--dimensions-16": string;
|
|
4583
|
+
"--dimensions-20": string;
|
|
4584
|
+
"--dimensions-24": string;
|
|
4585
|
+
"--dimensions-28": string;
|
|
4586
|
+
"--dimensions-32": string;
|
|
4587
|
+
"--dimensions-36": string;
|
|
4588
|
+
"--dimensions-40": string;
|
|
4589
|
+
"--dimensions-44": string;
|
|
4590
|
+
"--dimensions-48": string;
|
|
4591
|
+
"--dimensions-56": string;
|
|
4592
|
+
"--dimensions-64": string;
|
|
4593
|
+
"--dimensions-72": string;
|
|
4594
|
+
"--dimensions-80": string;
|
|
4595
|
+
"--dimensions-96": string;
|
|
4596
|
+
"--font-size-12": string;
|
|
4597
|
+
"--font-size-14": string;
|
|
4598
|
+
"--font-size-16": string;
|
|
4599
|
+
"--font-size-18": string;
|
|
4600
|
+
"--font-size-20": string;
|
|
4601
|
+
"--font-size-24": string;
|
|
4602
|
+
"--font-size-32": string;
|
|
4603
|
+
"--font-size-40": string;
|
|
4604
|
+
"--font-size-48": string;
|
|
4605
|
+
"--font-size-60": string;
|
|
4606
|
+
"--font-weight-light": string;
|
|
4607
|
+
"--font-weight-regular": string;
|
|
4608
|
+
"--font-weight-semibold": string;
|
|
4609
|
+
"--font-weight-bold": string;
|
|
4610
|
+
"--font-family-mono": string;
|
|
4611
|
+
"--font-family-sans": string;
|
|
4612
|
+
"--font-style-lightitalic": string;
|
|
4613
|
+
"--font-style-normal": string;
|
|
4614
|
+
"--line-style-dashed": string;
|
|
4615
|
+
"--line-style-solid": string;
|
|
4616
|
+
};
|
|
4617
|
+
declare const aliasTokens: {
|
|
4618
|
+
/************/
|
|
4619
|
+
/** TOKENS **/
|
|
4620
|
+
/************/
|
|
4621
|
+
"--border-color-info-lightest": string;
|
|
4622
|
+
"--border-color-info-lighter": string;
|
|
4623
|
+
"--border-color-info-light": string;
|
|
4624
|
+
"--border-color-info-medium": string;
|
|
4625
|
+
"--border-color-info-strong": string;
|
|
4626
|
+
"--border-color-info-stronger": string;
|
|
4627
|
+
"--border-color-info-strongest": string;
|
|
4628
|
+
"--border-color-success-light": string;
|
|
4629
|
+
"--border-color-success-medium": string;
|
|
4630
|
+
"--border-color-success-strong": string;
|
|
4631
|
+
"--border-color-warning-light": string;
|
|
4632
|
+
"--border-color-warning-medium": string;
|
|
4633
|
+
"--border-color-warning-strong": string;
|
|
4634
|
+
"--border-color-error-light": string;
|
|
4635
|
+
"--border-color-error-medium": string;
|
|
4636
|
+
"--border-color-error-strong": string;
|
|
4637
|
+
"--border-color-error-stronger": string;
|
|
4638
|
+
"--border-color-neutral-bright": string;
|
|
4639
|
+
"--border-color-neutral-brighter": string;
|
|
4640
|
+
"--border-color-neutral-dark": string;
|
|
4641
|
+
"--border-color-neutral-light": string;
|
|
4642
|
+
"--border-color-neutral-lighter": string;
|
|
4643
|
+
"--border-color-neutral-lightest": string;
|
|
4644
|
+
"--border-color-neutral-medium": string;
|
|
4645
|
+
"--border-color-neutral-strong": string;
|
|
4646
|
+
"--border-color-neutral-stronger": string;
|
|
4647
|
+
"--border-color-neutral-strongest": string;
|
|
4648
|
+
"--border-color-primary-light": string;
|
|
4649
|
+
"--border-color-primary-lighter": string;
|
|
4650
|
+
"--border-color-primary-medium": string;
|
|
4651
|
+
"--border-color-primary-strong": string;
|
|
4652
|
+
"--border-color-primary-stronger": string;
|
|
4653
|
+
"--border-color-secondary-light": string;
|
|
4654
|
+
"--border-color-secondary-medium": string;
|
|
4655
|
+
"--border-color-secondary-strong": string;
|
|
4656
|
+
"--border-color-secondary-stronger": string;
|
|
4657
|
+
"--border-color-secondary-strongest": string;
|
|
4658
|
+
"--color-bg-overlay-dark": string;
|
|
4659
|
+
"--color-bg-yellow-light": string;
|
|
4660
|
+
"--color-bg-alpha-light": string;
|
|
4661
|
+
"--color-bg-alpha-medium": string;
|
|
4662
|
+
"--color-bg-alpha-strong": string;
|
|
4663
|
+
"--color-bg-neutral-light": string;
|
|
4664
|
+
"--color-bg-neutral-lighter": string;
|
|
4665
|
+
"--color-bg-neutral-lightest": string;
|
|
4666
|
+
"--color-bg-neutral-medium": string;
|
|
4667
|
+
"--color-bg-neutral-strong": string;
|
|
4668
|
+
"--color-bg-neutral-stronger": string;
|
|
4669
|
+
"--color-bg-neutral-strongest": string;
|
|
4670
|
+
"--color-bg-primary-light": string;
|
|
4671
|
+
"--color-bg-primary-lighter": string;
|
|
4672
|
+
"--color-bg-primary-lightest": string;
|
|
4673
|
+
"--color-bg-primary-medium": string;
|
|
4674
|
+
"--color-bg-primary-strong": string;
|
|
4675
|
+
"--color-bg-primary-stronger": string;
|
|
4676
|
+
"--color-bg-primary-strongest": string;
|
|
4677
|
+
"--color-bg-secondary-light": string;
|
|
4678
|
+
"--color-bg-secondary-lighter": string;
|
|
4679
|
+
"--color-bg-secondary-lightest": string;
|
|
4680
|
+
"--color-bg-secondary-medium": string;
|
|
4681
|
+
"--color-bg-secondary-strong": string;
|
|
4682
|
+
"--color-bg-secondary-stronger": string;
|
|
4683
|
+
"--color-bg-secondary-strongest": string;
|
|
4684
|
+
"--color-bg-info-lightest": string;
|
|
4685
|
+
"--color-bg-info-lighter": string;
|
|
4686
|
+
"--color-bg-info-light": string;
|
|
4687
|
+
"--color-bg-info-medium": string;
|
|
4688
|
+
"--color-bg-info-strong": string;
|
|
4689
|
+
"--color-bg-info-stronger": string;
|
|
4690
|
+
"--color-bg-info-strongest": string;
|
|
4691
|
+
"--color-bg-success-light": string;
|
|
4692
|
+
"--color-bg-success-lighter": string;
|
|
4693
|
+
"--color-bg-success-lightest": string;
|
|
4694
|
+
"--color-bg-success-medium": string;
|
|
4695
|
+
"--color-bg-success-strong": string;
|
|
4696
|
+
"--color-bg-success-stronger": string;
|
|
4697
|
+
"--color-bg-success-strongest": string;
|
|
4698
|
+
"--color-bg-warning-light": string;
|
|
4699
|
+
"--color-bg-warning-lighter": string;
|
|
4700
|
+
"--color-bg-warning-lightest": string;
|
|
4701
|
+
"--color-bg-warning-medium": string;
|
|
4702
|
+
"--color-bg-warning-strong": string;
|
|
4703
|
+
"--color-bg-warning-stronger": string;
|
|
4704
|
+
"--color-bg-warning-strongest": string;
|
|
4705
|
+
"--color-bg-error-light": string;
|
|
4706
|
+
"--color-bg-error-lighter": string;
|
|
4707
|
+
"--color-bg-error-lightest": string;
|
|
4708
|
+
"--color-bg-error-medium": string;
|
|
4709
|
+
"--color-bg-error-strong": string;
|
|
4710
|
+
"--color-bg-error-stronger": string;
|
|
4711
|
+
"--color-bg-error-strongest": string;
|
|
4712
|
+
"--color-fg-info-lightest": string;
|
|
4713
|
+
"--color-fg-info-lighter": string;
|
|
4714
|
+
"--color-fg-info-light": string;
|
|
4715
|
+
"--color-fg-info-medium": string;
|
|
4716
|
+
"--color-fg-info-strong": string;
|
|
4717
|
+
"--color-fg-info-stronger": string;
|
|
4718
|
+
"--color-fg-info-strongest": string;
|
|
4719
|
+
"--color-fg-success-light": string;
|
|
4720
|
+
"--color-fg-success-lighter": string;
|
|
4721
|
+
"--color-fg-success-medium": string;
|
|
4722
|
+
"--color-fg-success-strong": string;
|
|
4723
|
+
"--color-fg-success-stronger": string;
|
|
4724
|
+
"--color-fg-warning-light": string;
|
|
4725
|
+
"--color-fg-warning-medium": string;
|
|
4726
|
+
"--color-fg-warning-strong": string;
|
|
4727
|
+
"--color-fg-warning-stronger": string;
|
|
4728
|
+
"--color-fg-error-light": string;
|
|
4729
|
+
"--color-fg-error-lighter": string;
|
|
4730
|
+
"--color-fg-error-medium": string;
|
|
4731
|
+
"--color-fg-error-strong": string;
|
|
4732
|
+
"--color-fg-error-stronger": string;
|
|
4733
|
+
"--color-fg-neutral-bright": string;
|
|
4734
|
+
"--color-fg-neutral-dark": string;
|
|
4735
|
+
"--color-fg-neutral-light": string;
|
|
4736
|
+
"--color-fg-neutral-lighter": string;
|
|
4737
|
+
"--color-fg-neutral-lightest": string;
|
|
4738
|
+
"--color-fg-neutral-medium": string;
|
|
4739
|
+
"--color-fg-neutral-strong": string;
|
|
4740
|
+
"--color-fg-neutral-stronger": string;
|
|
4741
|
+
"--color-fg-neutral-strongest": string;
|
|
4742
|
+
"--color-fg-neutral-yellow-dark": string;
|
|
4743
|
+
"--color-fg-primary-light": string;
|
|
4744
|
+
"--color-fg-primary-lighter": string;
|
|
4745
|
+
"--color-fg-primary-medium": string;
|
|
4746
|
+
"--color-fg-primary-strong": string;
|
|
4747
|
+
"--color-fg-primary-stronger": string;
|
|
4748
|
+
"--color-fg-primary-strongest": string;
|
|
4749
|
+
"--color-fg-secondary-light": string;
|
|
4750
|
+
"--color-fg-secondary-lighter": string;
|
|
4751
|
+
"--color-fg-secondary-medium": string;
|
|
4752
|
+
"--color-fg-secondary-strong": string;
|
|
4753
|
+
"--color-fg-secondary-stronger": string;
|
|
4754
|
+
"--color-fg-secondary-strongest": string;
|
|
4755
|
+
"--border-radius-none": string;
|
|
4756
|
+
"--border-radius-xs": string;
|
|
4757
|
+
"--border-radius-s": string;
|
|
4758
|
+
"--border-radius-m": string;
|
|
4759
|
+
"--border-radius-l": string;
|
|
4760
|
+
"--border-radius-xl": string;
|
|
4761
|
+
"--border-width-none": string;
|
|
4762
|
+
"--border-width-s": string;
|
|
4763
|
+
"--border-width-m": string;
|
|
4764
|
+
"--border-width-l": string;
|
|
4765
|
+
"--height-xxxs": string;
|
|
4766
|
+
"--height-xxs": string;
|
|
4767
|
+
"--height-xs": string;
|
|
4768
|
+
"--height-s": string;
|
|
4769
|
+
"--height-m": string;
|
|
4770
|
+
"--height-l": string;
|
|
4771
|
+
"--height-xl": string;
|
|
4772
|
+
"--height-xxl": string;
|
|
4773
|
+
"--height-xxxl": string;
|
|
4774
|
+
"--shadow-100": string;
|
|
4775
|
+
"--shadow-200": string;
|
|
4776
|
+
"--shadow-300": string;
|
|
4777
|
+
"--shadow-400": string;
|
|
4778
|
+
"--spacing-gap-none": string;
|
|
4779
|
+
"--spacing-gap-xxs": string;
|
|
4780
|
+
"--spacing-gap-xs": string;
|
|
4781
|
+
"--spacing-gap-s": string;
|
|
4782
|
+
"--spacing-gap-m": string;
|
|
4783
|
+
"--spacing-gap-ml": string;
|
|
4784
|
+
"--spacing-gap-l": string;
|
|
4785
|
+
"--spacing-gap-xl": string;
|
|
4786
|
+
"--spacing-gap-xxl": string;
|
|
4787
|
+
"--spacing-padding-none": string;
|
|
4788
|
+
"--spacing-padding-xxxs": string;
|
|
4789
|
+
"--spacing-padding-xxs": string;
|
|
4790
|
+
"--spacing-padding-xs": string;
|
|
4791
|
+
"--spacing-padding-s": string;
|
|
4792
|
+
"--spacing-padding-m": string;
|
|
4793
|
+
"--spacing-padding-ml": string;
|
|
4794
|
+
"--spacing-padding-l": string;
|
|
4795
|
+
"--spacing-padding-xl": string;
|
|
4796
|
+
"--spacing-padding-xxl": string;
|
|
4797
|
+
"--typography-body-xs": string;
|
|
4798
|
+
"--typography-body-s": string;
|
|
4799
|
+
"--typography-body-m": string;
|
|
4800
|
+
"--typography-body-l": string;
|
|
4801
|
+
"--typography-body-xl": string;
|
|
4802
|
+
"--typography-body-xxl": string;
|
|
4803
|
+
"--typography-body-regular": string;
|
|
4804
|
+
"--typography-heading-xs": string;
|
|
4805
|
+
"--typography-heading-s": string;
|
|
4806
|
+
"--typography-heading-m": string;
|
|
4807
|
+
"--typography-heading-l": string;
|
|
4808
|
+
"--typography-heading-xl": string;
|
|
4809
|
+
"--typography-heading-xxl": string;
|
|
4810
|
+
"--typography-heading-light": string;
|
|
4811
|
+
"--typography-heading-regular": string;
|
|
4812
|
+
"--typography-heading-semibold": string;
|
|
4813
|
+
"--typography-helper-text-s": string;
|
|
4814
|
+
"--typography-helper-text-m": string;
|
|
4815
|
+
"--typography-helper-text-l": string;
|
|
4816
|
+
"--typography-helper-text-light": string;
|
|
4817
|
+
"--typography-helper-text-regular": string;
|
|
4818
|
+
"--typography-helper-text-semibold": string;
|
|
4819
|
+
"--typography-helper-text-italic": string;
|
|
4820
|
+
"--typography-label-s": string;
|
|
4821
|
+
"--typography-label-m": string;
|
|
4822
|
+
"--typography-label-l": string;
|
|
4823
|
+
"--typography-label-xl": string;
|
|
4824
|
+
"--typography-label-regular": string;
|
|
4825
|
+
"--typography-label-semibold": string;
|
|
4826
|
+
"--typography-link-m": string;
|
|
4827
|
+
"--typography-link-regular": string;
|
|
4828
|
+
"--typography-title-s": string;
|
|
4829
|
+
"--typography-title-m": string;
|
|
4830
|
+
"--typography-title-l": string;
|
|
4831
|
+
"--typography-title-xl": string;
|
|
4832
|
+
"--typography-title-bold": string;
|
|
4833
|
+
"--border-style-default": string;
|
|
4834
|
+
"--border-style-outline": string;
|
|
4835
|
+
"--typography-font-family": string;
|
|
4836
|
+
};
|
|
4837
|
+
|
|
4838
|
+
type FooterSocialLink = {
|
|
4839
|
+
/**
|
|
4840
|
+
* URL of the page the link goes to.
|
|
4841
|
+
*/
|
|
4842
|
+
href: string;
|
|
4843
|
+
/**
|
|
4844
|
+
* Material Symbol name or SVG element as the icon used for the link.
|
|
4845
|
+
*/
|
|
4846
|
+
logo: string | SVG;
|
|
4847
|
+
/**
|
|
4848
|
+
* Value for the HTML properties title and aria-label.
|
|
4849
|
+
*/
|
|
4850
|
+
title: string;
|
|
4851
|
+
};
|
|
4852
|
+
type FooterBottomLink = {
|
|
4853
|
+
/**
|
|
4854
|
+
* URL of the page the link goes to.
|
|
4855
|
+
*/
|
|
4856
|
+
href: string;
|
|
4857
|
+
/**
|
|
4858
|
+
* Text for the link.
|
|
4859
|
+
*/
|
|
4860
|
+
text: string;
|
|
4861
|
+
};
|
|
4862
|
+
type FooterLogo = {
|
|
4863
|
+
/**
|
|
4864
|
+
* Source of the logo image.
|
|
4865
|
+
*/
|
|
4866
|
+
src: string | SVG;
|
|
4867
|
+
/**
|
|
4868
|
+
* Alternative text for the logo image.
|
|
4869
|
+
*/
|
|
4870
|
+
alt: string;
|
|
4871
|
+
};
|
|
4872
|
+
type FooterProps = {
|
|
4873
|
+
/**
|
|
4874
|
+
* An array of objects representing the links that will be rendered at
|
|
4875
|
+
* the bottom part of the footer.
|
|
4876
|
+
*/
|
|
4877
|
+
bottomLinks?: FooterBottomLink[];
|
|
4878
|
+
/**
|
|
4879
|
+
* The text that will be displayed as copyright disclaimer.
|
|
4880
|
+
*/
|
|
4881
|
+
copyright?: string;
|
|
4882
|
+
/**
|
|
4883
|
+
* Content to be displayed on the left side of the footer under the logo.
|
|
4884
|
+
*/
|
|
4885
|
+
leftContent?: ReactNode;
|
|
4886
|
+
/**
|
|
4887
|
+
* Logo to be displayed inside the footer
|
|
4888
|
+
*/
|
|
4889
|
+
logo?: FooterLogo;
|
|
4890
|
+
/**
|
|
4891
|
+
* Determines the visual style and layout
|
|
4892
|
+
* - "default": The default mode with full content and styling.
|
|
4893
|
+
* - "reduced": A reduced mode with minimal content and styling.
|
|
4894
|
+
*/
|
|
4895
|
+
mode?: "default" | "reduced";
|
|
4896
|
+
/**
|
|
4897
|
+
* Content to be displayed on the right side of the footer before the socialLinks if provided.
|
|
4898
|
+
*/
|
|
4899
|
+
rightContent?: ReactNode;
|
|
4900
|
+
/**
|
|
4901
|
+
* An array of objects representing the links that will be rendered as
|
|
4902
|
+
* icons at the top-right side of the footer.
|
|
4903
|
+
*/
|
|
4904
|
+
socialLinks?: FooterSocialLink[];
|
|
4905
|
+
/**
|
|
4906
|
+
* Value of the tabindex for all interactive elements, except those
|
|
4907
|
+
* inside the leftContent and rightContent.
|
|
4908
|
+
*/
|
|
4909
|
+
tabIndex?: number;
|
|
4910
|
+
/**
|
|
4911
|
+
* Visual variant of the footer.
|
|
4912
|
+
*/
|
|
4913
|
+
variant?: "branded" | "neutral";
|
|
4914
|
+
};
|
|
4915
|
+
|
|
4916
|
+
type SearchBarProps = {
|
|
4917
|
+
/**
|
|
4918
|
+
* If true, the search bar input will be focused when rendered.
|
|
4919
|
+
*/
|
|
4920
|
+
autoFocus?: boolean;
|
|
4921
|
+
/**
|
|
4922
|
+
* If true, the component will be disabled.
|
|
4923
|
+
*/
|
|
4924
|
+
disabled?: boolean;
|
|
4925
|
+
/**
|
|
4926
|
+
* Function invoked when the search bar loses focus.
|
|
4927
|
+
*/
|
|
4928
|
+
onBlur?: (value: string) => void;
|
|
4929
|
+
/**
|
|
4930
|
+
* Function invoked when the user cancels the search.
|
|
4931
|
+
*/
|
|
4932
|
+
onCancel?: () => void;
|
|
4933
|
+
/**
|
|
4934
|
+
* Function invoked when the user changes the input value.
|
|
4935
|
+
*/
|
|
4936
|
+
onChange?: (value: string) => void;
|
|
4937
|
+
/**
|
|
4938
|
+
* Function invoked when the Enter key is pressed.
|
|
4939
|
+
*/
|
|
4940
|
+
onEnter?: (value: string) => void;
|
|
4941
|
+
/**
|
|
4942
|
+
* Placeholder text displayed in the search bar input field.
|
|
4943
|
+
*/
|
|
4944
|
+
placeholder?: string;
|
|
4945
|
+
};
|
|
4946
|
+
|
|
4947
|
+
type HeaderGroupItem = PrettifyTypes<BaseCommonItemProps & {
|
|
4948
|
+
items: BaseItem[];
|
|
4949
|
+
}>;
|
|
4950
|
+
type HeaderMainNavProps = (HeaderGroupItem | PrettifyTypes<BaseItem>)[];
|
|
4951
|
+
type HeaderSearchBarProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
|
|
4952
|
+
type HeaderProps = {
|
|
4953
|
+
appTitle?: string;
|
|
4954
|
+
navItems?: HeaderMainNavProps;
|
|
4955
|
+
responsiveBottomContent?: ReactNode;
|
|
4956
|
+
searchBar?: HeaderSearchBarProps;
|
|
4957
|
+
sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
|
|
4958
|
+
};
|
|
4959
|
+
|
|
4960
|
+
type SidenavSection = {
|
|
4961
|
+
items: (BaseItem | BaseGroupItem)[];
|
|
4962
|
+
title?: string;
|
|
4963
|
+
};
|
|
4964
|
+
type SidenavSearchbarProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
|
|
4965
|
+
type SidenavProps = {
|
|
4966
|
+
/**
|
|
4967
|
+
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
4968
|
+
*/
|
|
4969
|
+
bottomContent?: ReactNode;
|
|
4970
|
+
/**
|
|
4971
|
+
* Object with the properties of the branding placed at the top of the sidenav.
|
|
4972
|
+
*/
|
|
4973
|
+
appTitle?: string | ReactNode;
|
|
4974
|
+
/**
|
|
4975
|
+
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
4976
|
+
*/
|
|
4977
|
+
defaultExpanded?: boolean;
|
|
4978
|
+
/**
|
|
4979
|
+
* If true the nav menu will have lines marking the groups.
|
|
4980
|
+
*/
|
|
4981
|
+
displayGroupLines?: boolean;
|
|
4982
|
+
/**
|
|
4983
|
+
* If true, the sidenav is expanded.
|
|
4984
|
+
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
4985
|
+
*/
|
|
4986
|
+
expanded?: boolean;
|
|
4987
|
+
/**
|
|
4988
|
+
* Array of items to be displayed in the navigation menu.
|
|
4989
|
+
* Each item can be a single/simple item, a group item or a section.
|
|
4990
|
+
*/
|
|
4991
|
+
navItems?: (BaseItem | BaseGroupItem)[] | SidenavSection[];
|
|
4992
|
+
/**
|
|
4993
|
+
* Function called when the expansion state of the sidenav changes.
|
|
4994
|
+
*/
|
|
4995
|
+
onExpandedChange?: (value: boolean) => void;
|
|
4996
|
+
/**
|
|
4997
|
+
* When provided, a search bar will be rendered at the top of the sidenav.
|
|
4998
|
+
*/
|
|
4999
|
+
searchBar?: SidenavSearchbarProps;
|
|
5000
|
+
/**
|
|
5001
|
+
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
5002
|
+
*/
|
|
5003
|
+
topContent?: ReactNode;
|
|
5004
|
+
};
|
|
5005
|
+
|
|
5006
|
+
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, AmountInput as DxcAmountInput, type AmountInputProps as DxcAmountInputProps, 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, DxcButtonLink, type ButtonLinkProps as DxcButtonLinkProps, 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, type CurrencyConfigType as DxcCurrencyConfigType, 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, DxcIcon, type IconProps as DxcIconProps, 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, type UnitsConfigType as DxcUnitsConfigType, DxcWizard, type WizardProps as DxcWizardProps, type WizardStepProps as DxcWizardStepProps, HalstackLanguageContext, HalstackProvider, useToast };
|