@dxc-technology/halstack-react 0.0.0-162b958 → 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/dist/index.d.ts CHANGED
@@ -1,18 +1,43 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, SVGProps, ReactElement, MouseEvent, ReactEventHandler } from 'react';
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$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
7
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
9
8
  type Margin = {
10
- top?: Space$1;
11
- bottom?: Space$1;
12
- left?: Space$1;
13
- right?: Space$1;
9
+ top?: Space;
10
+ bottom?: Space;
11
+ left?: Space;
12
+ right?: Space;
13
+ };
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;
14
34
  };
15
- type SVG = ReactNode & SVGProps<SVGSVGElement>;
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$9 = {
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$1 | Margin;
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$9 & {
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$9 & {
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 Props$I = IndependentProps | NonIndependentProps;
140
+ type AccordionProps = PrettifyTypes<IndependentProps | NonIndependentProps>;
116
141
 
117
142
  declare const DxcAccordion: {
118
- (props: Props$I): JSX.Element;
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 Action$2 = {
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 Message = {
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$8 = {
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?: Action$2;
183
+ primaryAction?: AlertAction;
159
184
  /**
160
185
  * Secondary action of the alert.
161
186
  */
162
- secondaryAction?: Action$2;
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?: Message | Message[];
206
+ message?: AlertMessage | AlertMessage[];
182
207
  /**
183
208
  * The mode of the alert.
184
209
  */
@@ -192,638 +217,793 @@ 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<Message>;
220
+ message: Required<AlertMessage>;
196
221
  /**
197
222
  * The mode of the alert.
198
223
  */
199
224
  mode: "modal";
200
225
  };
201
- type Props$H = CommonProps$8 & ModeSpecificProps;
226
+ type AlertProps = PrettifyTypes<CommonProps$a & ModeSpecificProps>;
202
227
 
203
- declare function DxcAlert({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$H): react_jsx_runtime.JSX.Element;
228
+ declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: AlertProps) => react.JSX.Element;
204
229
 
205
- type SidenavTitlePropsType = {
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 = {
206
251
  /**
207
- * The area inside the sidenav title. This area can be used to render custom content.
252
+ * Sets the alignment inside the input.
208
253
  */
209
- children: ReactNode;
210
- };
211
- type SidenavSectionPropsType = {
254
+ alignment?: "left" | "right";
212
255
  /**
213
- * The area inside the sidenav section. This area can be used to render sidenav groups, links and custom content.
256
+ * Specifies a string to be used as the name for the textInput element when no `label` is provided.
214
257
  */
215
- children: ReactNode;
216
- };
217
- type SidenavGroupPropsType = {
258
+ ariaLabel?: string;
218
259
  /**
219
- * The title of the sidenav group.
260
+ * If true, the input will have an action to clear the entered value.
220
261
  */
221
- title?: string;
262
+ clearable?: boolean;
222
263
  /**
223
- * If true, the sidenav group will be a button that will allow you to collapse the links contained within it.
224
- * In addition, if it's collapsed and contains the currently selected link, the group title will also be marked as selected.
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.
225
266
  */
226
- collapsable?: boolean;
267
+ config?: ConfigType;
227
268
  /**
228
- * Material Symbol name or SVG icon to be displayed next to the title of the group.
269
+ * Initial value of the input, only when it is uncontrolled.
229
270
  */
230
- icon?: string | SVG;
271
+ defaultValue?: string;
231
272
  /**
232
- * The area inside the sidenav group. This area can be used to render sidenav links.
273
+ * If true, the component will be disabled.
233
274
  */
234
- children: ReactNode;
235
- };
236
- type SidenavLinkPropsType = {
275
+ disabled?: boolean;
237
276
  /**
238
- * Page to be opened when the user clicks on the link.
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.
239
283
  */
240
- href?: string;
284
+ error?: string;
241
285
  /**
242
- * If true, the page is opened in a new browser tab.
286
+ * Helper text to be placed above the input.
243
287
  */
244
- newWindow?: boolean;
288
+ helperText?: string;
245
289
  /**
246
- * The Material symbol or SVG element used as the icon that will be placed to the left of the link text.
290
+ * Text to be placed above the input. This label will be used as the aria-label attribute of the list of suggestions.
247
291
  */
248
- icon?: string | SVG;
292
+ label?: string;
249
293
  /**
250
- * If true, the link will be marked as selected. Moreover, in that same case,
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.
294
+ * Specifies the maximum value allowed in the input.
253
295
  */
254
- selected?: boolean;
296
+ maxValue?: number;
255
297
  /**
256
- * This function will be called when the user clicks the link and the event will be passed to this function.
298
+ * Specifies the minimum value allowed in the input.
257
299
  */
258
- onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
300
+ minValue?: number;
259
301
  /**
260
- * The area inside the sidenav link.
302
+ * Name attribute of the input element.
261
303
  */
262
- children: ReactNode;
304
+ name?: string;
263
305
  /**
264
- * Value of the tabindex.
306
+ * Specifies the number of decimal places allowed in the input.
307
+ */
308
+ numberOfDecimals?: number;
309
+ /**
310
+ * Specifies the number of integer places allowed in the input.
311
+ */
312
+ numberOfIntegers?: number;
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.
318
+ */
319
+ onChange?: (val: {
320
+ value: string;
321
+ error?: string;
322
+ }) => void;
323
+ /**
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.
328
+ */
329
+ onBlur?: (val: {
330
+ value: string;
331
+ error?: string;
332
+ }) => void;
333
+ /**
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.
338
+ */
339
+ optional?: boolean;
340
+ /**
341
+ * Text to be put as placeholder of the input.
342
+ */
343
+ placeholder?: string;
344
+ /**
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.
348
+ */
349
+ readOnly?: boolean;
350
+ /**
351
+ * Ref to the input element.
352
+ */
353
+ ref?: React.Ref<HTMLInputElement>;
354
+ /**
355
+ * Size of the component.
356
+ */
357
+ size?: "small" | "medium" | "large" | "fillParent";
358
+ /**
359
+ * Value of the tabindex attribute.
265
360
  */
266
361
  tabIndex?: number;
362
+ /**
363
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
364
+ */
365
+ value?: string;
267
366
  };
268
- type Props$G = {
367
+
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;
369
+
370
+ type AppLayoutMainProps = {
269
371
  /**
270
- * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
372
+ * Everything between the tags will be displayed as the content of the main part of the application.
271
373
  */
272
- title?: ReactNode;
374
+ children: ReactNode;
375
+ };
376
+ type AppLayoutLogo = {
377
+ /**
378
+ * Alternative text for the logo image.
379
+ */
380
+ alt: string;
381
+ /**
382
+ * URL to navigate when the logo is clicked.
383
+ */
384
+ href?: string;
385
+ /**
386
+ * Function to be called on logo click.
387
+ */
388
+ onClick?: () => void;
389
+ /**
390
+ * URL or SVG of the image that will be placed in the logo.
391
+ */
392
+ src: string | SVG;
393
+ };
394
+ type AppLayoutSidenavProps = {
273
395
  /**
274
396
  * The area inside the sidenav. This area can be used to render the content inside the sidenav.
275
397
  */
276
398
  children: ReactNode;
399
+ /**
400
+ * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
401
+ */
402
+ title?: ReactNode;
277
403
  };
278
-
279
- type Size$4 = "small" | "medium" | "large" | "fillParent" | "fitContent";
280
- type Option$2 = {
404
+ type ApplicationLayoutProps = {
281
405
  /**
282
- * Option display value.
406
+ * Logo properties.
283
407
  */
284
- label?: string;
408
+ logo?: AppLayoutLogo;
285
409
  /**
286
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
410
+ * Header content.
287
411
  */
288
- icon?: string | SVG;
412
+ header?: ReactNode;
289
413
  /**
290
- * Option inner value.
414
+ * Sidenav content
291
415
  */
292
- value: string;
416
+ sidenav?: ReactNode;
417
+ /**
418
+ * Footer content
419
+ */
420
+ footer?: ReactNode;
421
+ /**
422
+ * Use the DxcApplicationLayout.Main provided to render main content.
423
+ */
424
+ children: ReactElement<AppLayoutMainProps>;
293
425
  };
294
- type Props$F = {
426
+
427
+ declare const DxcApplicationLayout: {
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;
433
+ };
434
+
435
+ type AvatarStatus = {
436
+ mode: Mode;
437
+ position: "top" | "bottom";
438
+ };
439
+ type AvatarProps = {
295
440
  /**
296
- * An array of objects representing the options.
441
+ * Affects the visual style of the avatar. It can be used following semantic purposes or not.
297
442
  */
298
- options: Option$2[];
443
+ color?: Color;
299
444
  /**
300
- * In case options include icons, whether the icon should appear
301
- * after or before the label.
445
+ * If true, the component will be disabled.
302
446
  */
303
- optionsIconPosition?: "before" | "after";
447
+ disabled?: boolean;
304
448
  /**
305
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
449
+ * Material Symbol name or SVG element as the icon that will be placed as avatar.
306
450
  */
307
451
  icon?: string | SVG;
308
452
  /**
309
- * Whether the icon should appear after or before the label.
453
+ * URL of the image.
310
454
  */
311
- iconPosition?: "before" | "after";
455
+ imageSrc?: string;
312
456
  /**
313
- * Text to be placed within the dropdown.
457
+ * Text label associated with the avatar.
458
+ * Used to generate and display initials inside the avatar.
314
459
  */
315
460
  label?: string;
316
461
  /**
317
- * Whether the arrow next to the label must be displayed or not.
462
+ * Page to be opened when the user clicks on the link.
318
463
  */
319
- caretHidden?: boolean;
464
+ linkHref?: string;
320
465
  /**
321
- * If true, the component will be disabled.
466
+ * This function will be called when the user clicks the avatar. Makes it behave as a button.
322
467
  */
323
- disabled?: boolean;
468
+ onClick?: () => void;
324
469
  /**
325
- * If true, the options are shown when the dropdown is hover.
470
+ * Text to be displayed as label next to the avatar.
326
471
  */
327
- expandOnHover?: boolean;
472
+ primaryText?: string;
328
473
  /**
329
- * This function will be called every time the selection changes.
330
- * The value of the selected option will be passed as a parameter.
474
+ * Ref to the avatar container element.
331
475
  */
332
- onSelectOption: (value: string) => void;
476
+ ref?: Ref<HTMLDivElement>;
333
477
  /**
334
- * Size of the margin to be applied to the component.
335
- * You can pass an object with 'top', 'bottom', 'left' and 'right'
336
- * properties in order to specify different margin sizes.
478
+ * Text to be displayed as sublabel next to the avatar.
337
479
  */
338
- margin?: Space$1 | Margin;
480
+ secondaryText?: string;
481
+ /**
482
+ * This will determine if the avatar will be rounded square or a circle.
483
+ */
484
+ shape?: Shape;
339
485
  /**
340
486
  * Size of the component.
341
487
  */
342
- size?: Size$4;
488
+ size?: Size$1;
343
489
  /**
344
- * Value of the tabindex attribute.
490
+ * Defines the color of the status indicator displayed on the avatar and where it will be placed.
491
+ * If not provided, no indicator will be rendered.
492
+ */
493
+ status?: AvatarStatus;
494
+ /**
495
+ * Value of the tabindex attribute. It will only apply when the onClick property is passed.
345
496
  */
346
497
  tabIndex?: number;
347
498
  /**
348
- * Text representing advisory information related to the dropdown's trigger action.
349
- * Under the hood, this prop also serves as an accessible label for the component.
499
+ * Text to be displayed inside a tooltip when hovering the avatar.
350
500
  */
351
501
  title?: string;
352
502
  };
353
503
 
354
- type Logo$1 = {
504
+ declare const DxcAvatar: ({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, ref, secondaryText, shape, size, status, tabIndex, title, }: AvatarProps) => react.JSX.Element;
505
+
506
+ type CommonProps$9 = {
355
507
  /**
356
- * URL to navigate when the logo is clicked.
508
+ * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
357
509
  */
358
- href?: string;
510
+ title?: string;
359
511
  /**
360
- * Source of the logo image.
512
+ * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
361
513
  */
362
- src: string;
514
+ icon?: string | SVG;
363
515
  /**
364
- * Alternative text for the logo image.
516
+ * Ref to be forwarded to the badge container element.
365
517
  */
366
- title?: string;
518
+ ref?: React.Ref<HTMLDivElement>;
519
+ /**
520
+ * Size of the component.
521
+ */
522
+ size?: "small" | "medium" | "large";
367
523
  };
368
- type Props$E = {
524
+ type ContextualBadgeProps = CommonProps$9 & {
369
525
  /**
370
- * Whether a contrast line should appear at the bottom of the header.
526
+ * Text to be placed in the badge.
371
527
  */
372
- underlined?: boolean;
528
+ label: string;
373
529
  /**
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 React.Fragment
376
- * to be applied correctly. Otherwise, the styles can be modified.
530
+ * The available badge modes.
377
531
  */
378
- content?: ReactNode;
532
+ mode?: "contextual";
379
533
  /**
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.
534
+ * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
382
535
  */
383
- responsiveContent?: (closeHandler: () => void) => ReactNode;
536
+ notificationLimit?: never;
384
537
  /**
385
- * Logo to be displayed inside the header
538
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
386
539
  */
387
- logo?: Logo$1;
540
+ color?: Color;
541
+ };
542
+ type NotificationBadgeProps = CommonProps$9 & {
388
543
  /**
389
- * Size of the bottom margin to be applied to the header.
544
+ * Text to be placed in the badge.
390
545
  */
391
- margin?: Space$1;
546
+ label?: number;
392
547
  /**
393
- * This function will be called when the user clicks the header logo.
548
+ * The available badge modes.
394
549
  */
395
- onClick?: () => void;
550
+ mode: "notification";
396
551
  /**
397
- * Value of the tabindex for all interactive elements, except those inside the
398
- * custom area.
552
+ * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
399
553
  */
400
- tabIndex?: number;
554
+ notificationLimit?: number;
555
+ /**
556
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
557
+ */
558
+ color?: never;
401
559
  };
560
+ type BadgeProps = PrettifyTypes<ContextualBadgeProps> | PrettifyTypes<NotificationBadgeProps>;
561
+
562
+ declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, ref, size, }: BadgeProps) => react.JSX.Element;
402
563
 
403
- type SocialLink = {
564
+ type BleedProps = {
404
565
  /**
405
- * URL of the page the link goes to.
566
+ * Applies the spacing scale to all sides.
406
567
  */
407
- href: string;
568
+ space?: string;
408
569
  /**
409
- * Material Symbol name or SVG element as the icon used for the link.
570
+ * Applies the spacing scale to the left and right sides.
410
571
  */
411
- logo: string | SVG;
572
+ horizontal?: string;
412
573
  /**
413
- * Value for the HTML properties title and aria-label.
574
+ * Applies the spacing scale to the top and bottom sides.
414
575
  */
415
- title: string;
416
- };
417
- type BottomLink = {
576
+ vertical?: string;
418
577
  /**
419
- * URL of the page the link goes to.
578
+ * Applies the spacing scale to the top side.
420
579
  */
421
- href: string;
580
+ top?: string;
422
581
  /**
423
- * Text for the link.
582
+ * Applies the spacing scale to the right side.
424
583
  */
425
- text: string;
426
- };
427
- type Logo = {
584
+ right?: string;
428
585
  /**
429
- * URL to navigate when the logo is clicked.
586
+ * Applies the spacing scale to the bottom side.
430
587
  */
431
- href?: string;
588
+ bottom?: string;
432
589
  /**
433
- * Source of the logo image.
590
+ * Applies the spacing scale to the left side.
434
591
  */
435
- src: string;
592
+ left?: string;
436
593
  /**
437
- * Alternative text for the logo image.
594
+ * Custom content inside the bleed.
438
595
  */
439
- title?: string;
596
+ children: ReactNode;
440
597
  };
441
- type FooterPropsType = {
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[];
598
+
599
+ declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: BleedProps) => react.JSX.Element;
600
+
601
+ type BreadcrumbsItem = {
602
+ href?: string;
603
+ label: string;
604
+ };
605
+ type BreadcrumbsProps = {
447
606
  /**
448
- * The center section of the footer. Can be used to render custom
449
- * content in this area.
607
+ * Provides a label that describes the type of navigation enabled by
608
+ * the component.
450
609
  */
451
- children?: ReactNode;
610
+ ariaLabel?: string;
452
611
  /**
453
- * The text that will be displayed as copyright disclaimer.
612
+ * Array of objects representing the items of the breadcrumbs.
454
613
  */
455
- copyright?: string;
614
+ items: BreadcrumbsItem[];
456
615
  /**
457
- * Logo to be displayed inside the footer
616
+ * Number of items before showing a collapsed version of the
617
+ * breadcrumbs. It can't be lower than two (root/collapsed action and
618
+ * current page).
458
619
  */
459
- logo?: Logo;
620
+ itemsBeforeCollapse?: number;
460
621
  /**
461
- * Size of the top margin to be applied to the footer.
622
+ * Callback for custom navigation with third-party libraries such as
623
+ * Next ('useRouter') or React Router ('useNavigate').
624
+ * This function will be called when an item is clicked,
625
+ * receiving its 'href' as a parameter.
626
+ * @param href
627
+ * @returns
462
628
  */
463
- margin?: Space$1;
629
+ onItemClick?: (href: string) => void;
464
630
  /**
465
- * Determines the visual style and layout
466
- * - "default": The default mode with full content and styling.
467
- * - "reduced": A reduced mode with minimal content and styling.
631
+ * When items are collapsed, whether the root item should always be
632
+ * displayed or not.
468
633
  */
469
- mode?: "default" | "reduced";
634
+ showRoot?: boolean;
635
+ };
636
+ type BreadcrumbsItemProps = PrettifyTypes<BreadcrumbsItem & {
637
+ isCurrentPage?: boolean;
638
+ onClick?: (href: string) => void;
639
+ }>;
640
+
641
+ declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: BreadcrumbsProps) => react.JSX.Element;
642
+
643
+ type BulletedListIconProps = {
470
644
  /**
471
- * An array of objects representing the links that will be rendered as
472
- * icons at the top-right side of the footer.
645
+ * Defines the style of the bullet point in the list.
473
646
  */
474
- socialLinks?: SocialLink[];
647
+ type: "icon";
475
648
  /**
476
- * Value of the tabindex for all interactive elements, except those
477
- * inside the custom area.
649
+ * Icon to display as bullet.
478
650
  */
479
- tabIndex?: number;
480
- };
481
-
482
- type AppLayoutMainPropsType = {
651
+ icon: string | SVG;
483
652
  /**
484
- * Everything between the tags will be displayed as the content of the main part of the application.
653
+ * Text to be shown in the list.
485
654
  */
486
655
  children: ReactNode;
487
656
  };
488
- type ApplicationLayoutPropsType = {
489
- /**
490
- * Text to be placed next to the hamburger button that toggles the
491
- * visibility of the sidenav.
492
- */
493
- visibilityToggleLabel?: string;
657
+ type BulletedListWithoutIconProps = {
494
658
  /**
495
- * Header content.
659
+ * Defines the style of the bullet point in the list.
496
660
  */
497
- header?: ReactNode;
661
+ type?: "disc" | "circle" | "square" | "number";
498
662
  /**
499
- * Sidenav content
663
+ * Icon to display as bullet.
500
664
  */
501
- sidenav?: ReactNode;
665
+ icon?: never;
502
666
  /**
503
- * Footer content
667
+ * Text to be shown in the list.
504
668
  */
505
- footer?: ReactNode;
669
+ children: ReactNode;
670
+ };
671
+ type BulletedListProps = PrettifyTypes<BulletedListIconProps | BulletedListWithoutIconProps>;
672
+ type BulletedListItemProps = {
506
673
  /**
507
- * Use the DxcApplicationLayout.Main provided to render main content.
674
+ * Text to be shown in the list.
508
675
  */
509
- children: ReactElement<AppLayoutMainPropsType>;
676
+ children?: ReactNode;
510
677
  };
511
678
 
512
- declare const DxcApplicationLayout: {
513
- ({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
514
- Footer: ({ bottomLinks, children, copyright, logo, margin, mode, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
515
- Header: {
516
- ({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$E): JSX.Element;
517
- Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element>) => react_jsx_runtime.JSX.Element;
518
- };
519
- Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
520
- SideNav: {
521
- ({ title, children }: Props$G): 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;
679
+ declare const DxcBulletedList: {
680
+ ({ children, type, icon }: BulletedListProps): JSX.Element;
681
+ Item: ({ children }: BulletedListItemProps) => JSX.Element;
528
682
  };
529
683
 
530
- type ContextualProps = {
684
+ type ButtonSemantic = "default" | "error" | "warning" | "success" | "info";
685
+ type ButtonMode = "primary" | "secondary" | "tertiary";
686
+ type ButtonSize = {
531
687
  /**
532
- * Text to be placed in the badge.
688
+ * Height of the button.
533
689
  */
534
- label: string;
690
+ height?: "small" | "medium" | "large";
691
+ width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
692
+ };
693
+ type ButtonProps = {
535
694
  /**
536
- * The available badge modes.
695
+ * If true, the component will be disabled.
537
696
  */
538
- mode?: "contextual";
697
+ disabled?: boolean;
539
698
  /**
540
- * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
699
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
541
700
  */
542
- notificationLimit?: never;
701
+ icon?: string | SVG;
543
702
  /**
544
- * Affects the visual style of the badge. It can be used following semantic purposes or not.
703
+ * Whether the icon should appear after or before the label.
545
704
  */
546
- color?: "grey" | "blue" | "green" | "orange" | "red" | "yellow" | "purple";
547
- };
548
- type NotificationProps = {
705
+ iconPosition?: "before" | "after";
549
706
  /**
550
- * Text to be placed in the badge.
707
+ * Text to be placed in the button.
551
708
  */
552
- label?: number;
709
+ label?: string;
553
710
  /**
554
- * The available badge modes.
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.
555
713
  */
556
- mode: "notification";
714
+ margin?: Space | Margin;
557
715
  /**
558
- * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
716
+ * The available button modes.
559
717
  */
560
- notificationLimit?: number;
718
+ mode?: ButtonMode;
561
719
  /**
562
- * Affects the visual style of the badge. It can be used following semantic purposes or not.
720
+ * This function will be called when the user clicks the button.
563
721
  */
564
- color?: never;
565
- };
566
- type CommonProps$7 = {
722
+ onClick?: () => void;
567
723
  /**
568
- * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
724
+ * ref to the button element.
569
725
  */
570
- title?: string;
726
+ ref?: React.Ref<HTMLButtonElement>;
571
727
  /**
572
- * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
728
+ * Specifies the semantic meaning of the buttons, which determines its color.
573
729
  */
574
- icon?: string | SVG;
730
+ semantic?: ButtonSemantic;
575
731
  /**
576
732
  * Size of the component.
577
733
  */
578
- size?: "small" | "medium" | "large";
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";
579
747
  };
580
- type Props$D = (ContextualProps | NotificationProps) & CommonProps$7;
581
748
 
582
- declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$D) => JSX.Element;
749
+ declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, ref, semantic, size, tabIndex, title, type, }: ButtonProps) => react.JSX.Element;
583
750
 
584
- type Props$C = {
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;
585
760
  /**
586
- * Applies the spacing scale to all sides.
761
+ * Indicates the position of the icon in the component.
587
762
  */
588
- space?: string;
763
+ iconPosition?: "before" | "after";
589
764
  /**
590
- * Applies the spacing scale to the left and right sides.
765
+ * The available button link modes.
591
766
  */
592
- horizontal?: string;
767
+ mode?: ButtonMode;
593
768
  /**
594
- * Applies the spacing scale to the top and bottom sides.
769
+ * If true, the page is opened in a new browser tab.
595
770
  */
596
- vertical?: string;
771
+ newWindow?: boolean;
597
772
  /**
598
- * Applies the spacing scale to the top side.
773
+ * If defined, the link will be displayed as a button. This
774
+ * function will be called when the user clicks the link.
599
775
  */
600
- top?: string;
776
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
601
777
  /**
602
- * Applies the spacing scale to the right side.
778
+ * Ref of the link element.
603
779
  */
604
- right?: string;
780
+ ref?: React.Ref<HTMLAnchorElement>;
605
781
  /**
606
- * Applies the spacing scale to the bottom side.
782
+ * Size of the component.
607
783
  */
608
- bottom?: string;
784
+ size?: ButtonSize;
609
785
  /**
610
- * Applies the spacing scale to the left side.
786
+ * Value of the tabindex.
611
787
  */
612
- left?: string;
788
+ tabIndex?: number;
613
789
  /**
614
- * Custom content inside the bleed.
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.
615
792
  */
616
- children: ReactNode;
793
+ title?: string;
617
794
  };
618
-
619
- declare function DxcBleed({ space, horizontal, vertical, top, right, bottom, left, children }: Props$C): react_jsx_runtime.JSX.Element;
620
-
621
- type Item$1 = {
622
- href?: string;
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
+ */
623
803
  label: string;
624
- };
625
- type Props$B = {
626
804
  /**
627
- * Provides a label that describes the type of navigation enabled by
628
- * the component.
805
+ * Text to be used as aria-label for the button link. If provided, it takes precedence over the label as the accessible name.
629
806
  */
630
807
  ariaLabel?: string;
808
+ };
809
+ type IconProps$1 = {
631
810
  /**
632
- * Array of objects representing the items of the breadcrumbs.
811
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
633
812
  */
634
- items: Item$1[];
813
+ icon: string | SVG;
635
814
  /**
636
- * Number of items before showing a collapsed version of the
637
- * breadcrumbs. It can't be lower than two (root/collapsed action and
638
- * current page).
815
+ * Text to be placed in the button link.
639
816
  */
640
- itemsBeforeCollapse?: number;
817
+ label?: string;
818
+ } & ({
641
819
  /**
642
- * Callback for custom navigation with third-party libraries such as
643
- * Next ('useRouter') or React Router ('useNavigate').
644
- * This function will be called when an item is clicked,
645
- * receiving its 'href' as a parameter.
646
- * @param href
647
- * @returns
820
+ * Text to be displayed as a tooltip when hovering over the link. Required when no ariaLabel is provided.
648
821
  */
649
- onItemClick?: (href: string) => void;
822
+ title: string;
823
+ ariaLabel?: string;
824
+ } | {
650
825
  /**
651
- * When items are collapsed, whether the root item should always be
652
- * displayed or not.
826
+ * Text to be used as aria-label for the button link. Required when no title is provided.
653
827
  */
654
- showRoot?: boolean;
655
- };
828
+ ariaLabel: string;
829
+ title?: string;
830
+ });
831
+ type ButtonLinkProps = CommonProps$8 & (LabelProps | IconProps$1);
656
832
 
657
- declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$B) => react_jsx_runtime.JSX.Element;
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
+ };
658
837
 
659
- type IconProps = {
838
+ type ImageProps = {
660
839
  /**
661
- * Defines the style of the bullet point in the list.
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/
662
844
  */
663
- type: "icon";
845
+ alt: string;
664
846
  /**
665
- * Icon to display as bullet.
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.
666
849
  */
667
- icon: string | SVG;
850
+ caption?: string;
668
851
  /**
669
- * Text to be shown in the list.
852
+ * Sets the rendered height of the image.
670
853
  */
671
- children: ReactNode;
672
- };
673
- type OtherProps = {
854
+ height?: string;
674
855
  /**
675
- * Defines the style of the bullet point in the list.
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).
676
858
  */
677
- type?: "disc" | "circle" | "square" | "number";
859
+ lazyLoading?: boolean;
678
860
  /**
679
- * Icon to display as bullet.
861
+ * Sets the object-fit CSS property.
862
+ *
863
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
680
864
  */
681
- icon?: never;
865
+ objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
682
866
  /**
683
- * Text to be shown in the list.
867
+ * Sets the object-position CSS property.
868
+ *
869
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
684
870
  */
685
- children: ReactNode;
686
- };
687
- type Props$A = IconProps | OtherProps;
688
-
689
- type BulletedListItemPropsType = {
871
+ objectPosition?: string;
690
872
  /**
691
- * Text to be shown in the list.
873
+ * This function will be called when the image fails to load.
692
874
  */
693
- children?: ReactNode;
694
- };
695
-
696
- declare const DxcBulletedList: {
697
- ({ children, type, icon }: Props$A): JSX.Element;
698
- Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
699
- };
700
-
701
- type Semantic = "default" | "error" | "warning" | "success" | "info";
702
- type Mode$1 = "primary" | "secondary" | "tertiary";
703
- type Size$3 = {
875
+ onError?: ReactEventHandler<HTMLImageElement>;
704
876
  /**
705
- * Height of the button.
877
+ * This function will be called when the image is loaded.
706
878
  */
707
- height?: "small" | "medium" | "large";
708
- width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
709
- };
710
- type Props$z = {
879
+ onLoad?: ReactEventHandler<HTMLImageElement>;
711
880
  /**
712
- * Text to be placed in the button.
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
713
886
  */
714
- label?: string;
887
+ sizes?: string;
715
888
  /**
716
- * The available button modes.
889
+ * URL of the image. This prop is required and must be valid.
717
890
  */
718
- mode?: Mode$1;
891
+ src: string;
719
892
  /**
720
- * Specifies the semantic meaning of the buttons, which determines its color.
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
721
896
  */
722
- semantic?: Semantic;
897
+ srcSet?: string;
723
898
  /**
724
- * If true, the component will be disabled.
899
+ * Sets the rendered width of the image.
725
900
  */
726
- disabled?: boolean;
901
+ width?: string;
902
+ };
903
+
904
+ type Size = {
905
+ width?: "fillParent" | "fitContent";
906
+ height?: "fillParent" | "fitContent";
907
+ };
908
+ type CardProps = {
727
909
  /**
728
- * Whether the icon should appear after or before the label.
910
+ * Custom content that will be placed inside the component.
729
911
  */
730
- iconPosition?: "before" | "after";
912
+ children?: ReactNode;
731
913
  /**
732
- * Value for the HTML properties title and aria-label.
914
+ * Initial state of the checkbox, only when it is uncontrolled.
733
915
  */
734
- title?: string;
916
+ defaultSelected?: boolean;
735
917
  /**
736
- * 'type' html prop of the button.
918
+ * Defines the direction of the content inside the card. It can be set to "row" or "column". The default value is "column".
737
919
  */
738
- type?: "button" | "reset" | "submit";
920
+ direction?: "row" | "column";
739
921
  /**
740
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
922
+ * Defines the size of the card when it is empty.
741
923
  */
742
- icon?: string | SVG;
924
+ emptySize?: {
925
+ width?: string;
926
+ height?: string;
927
+ iconSize?: "small" | "medium" | "large";
928
+ };
743
929
  /**
744
- * This function will be called when the user clicks the button.
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.
745
932
  */
746
- onClick?: () => void;
933
+ href?: string;
747
934
  /**
748
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
749
- * 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.
750
936
  */
751
- margin?: Space$1 | Margin;
937
+ image?: ImageProps;
752
938
  /**
753
- * Size of the component.
939
+ * Position of the image inside the card. It can be set to "before" or "after" the content.
754
940
  */
755
- size?: Size$3;
941
+ imagePosition?: "before" | "after";
756
942
  /**
757
- * Value of the tabindex attribute.
943
+ * If true, the card will be displayed as empty state.
758
944
  */
759
- tabIndex?: number;
760
- };
761
-
762
- declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$z) => JSX.Element;
763
-
764
- type Size$2 = {
765
- top?: Space$1;
766
- bottom?: Space$1;
767
- left?: Space$1;
768
- right?: Space$1;
769
- };
770
- type Props$y = {
945
+ isEmpty?: boolean;
771
946
  /**
772
- * URL of the image that will be placed in the card component.
773
- * In case of omission, the image container will not appear and
774
- * the content will occupy its space.
947
+ * If true, a loading state will be displayed inside the card.
775
948
  */
776
- imageSrc?: string;
949
+ isLoading?: boolean;
777
950
  /**
778
- * Color of the image background.
951
+ * Defines the size of the loading card when isLoading is true.
779
952
  */
780
- imageBgColor?: string;
953
+ loadingSize?: {
954
+ width?: string;
955
+ height?: string;
956
+ };
781
957
  /**
782
- * Size of the padding to be applied to the image section of the
783
- * component. You can pass an object with 'top', 'bottom', 'left'
784
- * 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".
785
959
  */
786
- imagePadding?: Space$1 | Size$2;
960
+ mode?: "elevated" | "outlined";
787
961
  /**
788
- * Whether the image should appear in relation to the content.
962
+ * If true, the link will open in a new window. href must be provided for this to work.
789
963
  */
790
- imagePosition?: "before" | "after";
964
+ newWindow?: boolean;
791
965
  /**
792
- * If defined, the tag will be displayed as an anchor, using this prop
793
- * as "href". Component will show some visual feedback on hover.
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.
794
969
  */
795
- linkHref?: string;
970
+ onSelectionChange?: (selected: boolean) => void;
796
971
  /**
797
- * This function will be called when the user clicks the card. Component
798
- * will show some visual feedback on hover.
972
+ * Callback function that is called when the card is clicked.
799
973
  */
800
- onClick?: () => void;
974
+ onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
801
975
  /**
802
- * Whether the image must cover the whole image area of the card.
976
+ * Ref to the card element.
803
977
  */
804
- imageCover?: boolean;
978
+ ref?: React.Ref<HTMLDivElement | HTMLAnchorElement>;
805
979
  /**
806
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
807
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
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.
808
982
  */
809
- margin?: Space$1 | Size$2;
983
+ selectable?: boolean;
810
984
  /**
811
- * Value of the tabindex attribute applied when the component is clickable.
985
+ * If true, the card is selected and if defined it will behave as a controlled component.
812
986
  */
813
- tabIndex?: number;
987
+ selected?: boolean;
814
988
  /**
815
- * Determines whether or not the component should have an outline.
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" }.
816
991
  */
817
- outlined?: boolean;
992
+ size?: Size;
818
993
  /**
819
- * Custom content that will be placed inside the component.
994
+ * Specifies the tab index of the card.
995
+ * The default value is 0.
820
996
  */
821
- children?: ReactNode;
997
+ tabIndex?: number;
822
998
  };
823
999
 
824
- declare const DxcCard: ({ imageSrc, imageBgColor, imagePadding, imagePosition, linkHref, onClick, imageCover, margin, tabIndex, outlined, children, }: Props$y) => react_jsx_runtime.JSX.Element;
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;
825
1001
 
826
- type Props$x = {
1002
+ /**
1003
+ * Reference to the component.
1004
+ */
1005
+ type RefType$a = HTMLDivElement;
1006
+ type CheckboxProps = {
827
1007
  /**
828
1008
  * Specifies a string to be used as the name for the checkbox element when no `label` is provided.
829
1009
  */
@@ -855,7 +1035,7 @@ type Props$x = {
855
1035
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
856
1036
  * in order to specify different margin sizes.
857
1037
  */
858
- margin?: Space$1 | Margin;
1038
+ margin?: Space | Margin;
859
1039
  /**
860
1040
  * Name attribute of the input element.
861
1041
  */
@@ -873,6 +1053,10 @@ type Props$x = {
873
1053
  * If true, the component will not be mutable, meaning the user can not edit the control.
874
1054
  */
875
1055
  readOnly?: boolean;
1056
+ /**
1057
+ * ref to the checkbox container element.
1058
+ */
1059
+ ref?: React.Ref<RefType$a>;
876
1060
  /**
877
1061
  * Size of the component.
878
1062
  */
@@ -888,59 +1072,97 @@ type Props$x = {
888
1072
  value?: string;
889
1073
  };
890
1074
 
891
- declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$x & react.RefAttributes<HTMLDivElement>>;
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
+ };
892
1079
 
893
- type Props$w = {
1080
+ type ChipAvatarType = {
1081
+ color: AvatarProps["color"];
1082
+ profileName?: AvatarProps["label"];
1083
+ imageSrc?: AvatarProps["imageSrc"];
1084
+ icon?: AvatarProps["icon"];
1085
+ };
1086
+ type CommonProps$7 = {
894
1087
  /**
895
- * Text to be placed on the chip.
1088
+ * Function to be called when the chip is clicked or the dismiss action is triggered.
896
1089
  */
897
- label?: string;
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
+ } & ({
898
1115
  /**
899
- * Element or path used as icon to be placed after the chip label.
1116
+ * Element, path or avatar used as icon to be placed before the chip label.
900
1117
  */
901
- suffixIcon?: string | SVG;
1118
+ prefix: ChipAvatarType;
1119
+ /**
1120
+ * Text to be placed on the chip. Required when using an avatar prefix.
1121
+ */
1122
+ label: string;
1123
+ } | {
902
1124
  /**
903
1125
  * Element or path used as icon to be placed before the chip label.
904
1126
  */
905
- prefixIcon?: string | SVG;
1127
+ prefix: string | SVG;
906
1128
  /**
907
- * This function will be called when the suffix is clicked.
1129
+ * Text to be placed on the chip. Optional when using an icon prefix.
908
1130
  */
909
- onClickSuffix?: () => void;
1131
+ label?: string;
1132
+ } | {
1133
+ prefix?: undefined;
910
1134
  /**
911
- * This function will be called when the prefix is clicked.
1135
+ * Text to be placed on the chip.
912
1136
  */
913
- onClickPrefix?: () => void;
1137
+ label: string;
1138
+ })>;
1139
+ type DismissibleChipProps = PrettifyTypes<CommonProps$7 & {
914
1140
  /**
915
- * If true, the component will be disabled.
1141
+ * Dismissible chip is used to represent information generated by user input within an interface.
916
1142
  */
917
- disabled?: boolean;
1143
+ mode: "dismissible";
918
1144
  /**
919
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
920
- * 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.
921
1146
  */
922
- margin?: Space$1 | Margin;
1147
+ label: string;
923
1148
  /**
924
- * Value of the tabindex attribute.
1149
+ * Element, path or avatar used as icon to be placed before the chip label.
925
1150
  */
926
- tabIndex?: number;
927
- };
1151
+ prefix?: string | SVG | ChipAvatarType;
1152
+ selected?: never;
1153
+ disabled?: never;
1154
+ }>;
1155
+ type ChipProps = PrettifyTypes<SelectableChipProps | DismissibleChipProps>;
928
1156
 
929
- declare const DxcChip: ({ label, suffixIcon, prefixIcon, onClickSuffix, onClickPrefix, disabled, margin, tabIndex, }: Props$w) => react_jsx_runtime.JSX.Element;
1157
+ declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, ref, }: ChipProps) => react.JSX.Element | null;
930
1158
 
931
- type Space = {
932
- top?: string;
933
- right?: string;
934
- bottom?: string;
935
- left?: string;
936
- };
937
- type Inset = {
1159
+ type ContainerSpacing = {
938
1160
  top?: string;
939
1161
  right?: string;
940
1162
  bottom?: string;
941
1163
  left?: string;
942
1164
  };
943
- type Background = {
1165
+ type ContainerBackground = {
944
1166
  attachment?: string;
945
1167
  clip?: string;
946
1168
  color?: string;
@@ -950,36 +1172,36 @@ type Background = {
950
1172
  repeat?: string;
951
1173
  size?: string;
952
1174
  };
953
- type BorderProperties = {
1175
+ type ContainerBorderProperties = {
954
1176
  width?: string;
955
1177
  style?: string;
956
1178
  color?: string;
957
1179
  };
958
- type Border = BorderProperties | {
959
- top?: BorderProperties;
960
- right?: BorderProperties;
961
- bottom?: BorderProperties;
962
- left?: BorderProperties;
963
- };
964
- type Outline = BorderProperties & {
1180
+ type ContainerBorder = PrettifyTypes<ContainerBorderProperties | {
1181
+ top?: ContainerBorderProperties;
1182
+ right?: ContainerBorderProperties;
1183
+ bottom?: ContainerBorderProperties;
1184
+ left?: ContainerBorderProperties;
1185
+ }>;
1186
+ type ContainerOutline = PrettifyTypes<ContainerBorderProperties & {
965
1187
  offset?: string;
966
- };
1188
+ }>;
967
1189
  type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
968
- type Overflow = OverflowValues | {
1190
+ type ContainerOverflow = PrettifyTypes<OverflowValues | {
969
1191
  x?: OverflowValues;
970
1192
  y?: OverflowValues;
971
- };
972
- type Props$v = {
1193
+ }>;
1194
+ type ContainerProps = {
973
1195
  /**
974
1196
  * Based on the CSS property background allows configuring all properties related to the background of a container.
975
1197
  *
976
1198
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
977
1199
  */
978
- background?: Background;
1200
+ background?: ContainerBackground;
979
1201
  /**
980
1202
  * Based on the CSS property border allows configuring all properties related to the border of a container.
981
1203
  */
982
- border?: Border;
1204
+ border?: ContainerBorder;
983
1205
  /**
984
1206
  * Sets the border-radius CSS property.
985
1207
  *
@@ -1002,6 +1224,10 @@ type Props$v = {
1002
1224
  * Custom content inside the container.
1003
1225
  */
1004
1226
  children?: ReactNode;
1227
+ /**
1228
+ * Reference to the container element.
1229
+ */
1230
+ ref?: Ref<HTMLDivElement>;
1005
1231
  /**
1006
1232
  * Sets the display CSS property.
1007
1233
  * The set of values is limited to the ones related to the outer display type.
@@ -1027,11 +1253,11 @@ type Props$v = {
1027
1253
  * Based on the CSS property inset this prop is a shorthand that corresponds
1028
1254
  * to the top, right, bottom, and/or left properties.
1029
1255
  */
1030
- inset?: Inset;
1256
+ inset?: ContainerSpacing;
1031
1257
  /**
1032
1258
  * Size of the margin to be applied to the container.
1033
1259
  */
1034
- margin?: string | Space;
1260
+ margin?: string | ContainerSpacing;
1035
1261
  /**
1036
1262
  * Sets the max-width CSS property.
1037
1263
  *
@@ -1060,17 +1286,17 @@ type Props$v = {
1060
1286
  * Based on the CSS property outline allows configuring all properties related
1061
1287
  * to the outline of a container.
1062
1288
  */
1063
- outline?: Outline;
1289
+ outline?: ContainerOutline;
1064
1290
  /**
1065
1291
  * Sets the overflow CSS property.
1066
1292
  *
1067
1293
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
1068
1294
  */
1069
- overflow?: Overflow;
1295
+ overflow?: ContainerOverflow;
1070
1296
  /**
1071
1297
  * Size of the padding to be applied to the container.
1072
1298
  */
1073
- padding?: string | Space;
1299
+ padding?: string | ContainerSpacing;
1074
1300
  /**
1075
1301
  * Sets the position CSS property.
1076
1302
  *
@@ -1091,77 +1317,67 @@ type Props$v = {
1091
1317
  zIndex?: "auto" | number;
1092
1318
  };
1093
1319
 
1094
- declare function DxcContainer({ display, width, height, overflow, ...props }: Props$v): react_jsx_runtime.JSX.Element;
1320
+ declare const DxcContainer: ({ display, width, height, overflow, ref, ...props }: ContainerProps) => react.JSX.Element;
1095
1321
 
1096
- type CommonItemProps = {
1322
+ type BaseCommonItemProps = {
1097
1323
  badge?: ReactElement;
1098
1324
  icon?: string | SVG;
1099
1325
  label: string;
1100
1326
  };
1101
- type Item = CommonItemProps & {
1327
+ type BaseItem = PrettifyTypes<BaseCommonItemProps & {
1102
1328
  onSelect?: () => void;
1103
- selectedByDefault?: boolean;
1104
- };
1105
- type GroupItem = CommonItemProps & {
1106
- items: (Item | GroupItem)[];
1107
- };
1108
- type Section = {
1109
- items: (Item | GroupItem)[];
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)[];
1110
1341
  title?: string;
1111
1342
  };
1112
- type Props$u = {
1343
+ type BaseMenuProps = {
1113
1344
  /**
1114
- * Array of items to be displayed in the Contextual menu.
1345
+ * Array of items to be displayed in the menu.
1115
1346
  * Each item can be a single/simple item, a group item or a section.
1116
1347
  */
1117
- items: (Item | GroupItem)[] | Section[];
1118
- };
1119
-
1120
- declare function DxcContextualMenu({ items }: Props$u): react_jsx_runtime.JSX.Element;
1121
-
1122
- type BaseActionCell = {
1123
- disabled?: boolean;
1124
- tabIndex?: number;
1125
- title: string;
1126
- };
1127
- type ActionCell = BaseActionCell & ({
1128
- icon: string | SVG;
1129
- onClick: () => void;
1130
- options?: never;
1131
- } | {
1132
- icon?: never;
1133
- onClick: (value?: string) => void;
1134
- options: Option$2[];
1135
- });
1136
- type ActionsCellPropsType = {
1348
+ items: (BaseItem | BaseGroupItem)[] | BaseSection[];
1137
1349
  /**
1138
- * It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
1139
- * or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
1140
- * Only the first action with options will be displayed and only up to 3 actions.
1141
- * 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.
1142
1351
  */
1143
- actions: ActionCell[];
1144
- };
1145
- type Props$t = {
1352
+ displayBorder?: boolean;
1146
1353
  /**
1147
- * The center section of the table. Can be used to render custom
1148
- * content in this area.
1354
+ * If true the menu will have lines marking the groups.
1149
1355
  */
1150
- children: ReactNode;
1356
+ displayGroupLines?: boolean;
1151
1357
  /**
1152
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1153
- * 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.
1154
1359
  */
1155
- margin?: Space$1 | Margin;
1360
+ displayControlsAfter?: boolean;
1156
1361
  /**
1157
- * Determines the visual style and layout
1158
- * - "default": Default table size.
1159
- * - "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.
1160
1363
  */
1161
- mode?: "default" | "reduced";
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;
1162
1374
  };
1163
1375
 
1164
- type GridColumn = {
1376
+ type ContextualMenuProps = Omit<BaseMenuProps, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
1377
+
1378
+ declare function DxcContextualMenu({ items }: ContextualMenuProps): react.JSX.Element;
1379
+
1380
+ type DataGridColumn = {
1165
1381
  /**
1166
1382
  * Key that will be rendered from each row in rows.
1167
1383
  */
@@ -1199,23 +1415,23 @@ type GridColumn = {
1199
1415
  */
1200
1416
  alignment?: "left" | "right" | "center";
1201
1417
  };
1202
- type GridRow = {
1418
+ type DataGridRow = {
1203
1419
  /**
1204
1420
  * List of rows that will be rendered in each cell based on the key in each column.
1205
1421
  */
1206
1422
  [key: string]: ReactNode | undefined;
1207
1423
  };
1208
- type HierarchyGridRow = GridRow & {
1424
+ type DataGridHierarchyRow = PrettifyTypes<DataGridRow & {
1209
1425
  /**
1210
1426
  * Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
1211
1427
  * These child rows will be displayed when the parent row is expanded.
1212
1428
  */
1213
- childRows?: HierarchyGridRow[] | GridRow[];
1429
+ childRows?: DataGridHierarchyRow[] | DataGridRow[];
1214
1430
  /**
1215
1431
  * Function called when a row with children is expanded or collapsed (based on the value of `open`).
1216
1432
  * Returns (or resolves to) the array of child rows nested under this row to display when expanded.
1217
1433
  */
1218
- childrenTrigger?: (open?: boolean, triggerRow?: HierarchyGridRow) => (HierarchyGridRow[] | GridRow[]) | Promise<HierarchyGridRow[] | GridRow[]>;
1434
+ childrenTrigger?: (open?: boolean, triggerRow?: DataGridHierarchyRow) => (DataGridHierarchyRow[] | DataGridRow[]) | Promise<DataGridHierarchyRow[] | DataGridRow[]>;
1219
1435
  /**
1220
1436
  * Indicates whether child rows are currently being loaded.
1221
1437
  */
@@ -1232,27 +1448,27 @@ type HierarchyGridRow = GridRow & {
1232
1448
  * Indicates whether child rows are currently visible.
1233
1449
  */
1234
1450
  visibleChildren?: boolean;
1235
- };
1236
- type ExpandableGridRow = GridRow & {
1451
+ }>;
1452
+ type DataGridExpandableRow = PrettifyTypes<DataGridRow & {
1237
1453
  expandedContent?: ReactNode;
1238
1454
  expandedContentHeight?: number;
1239
1455
  contentIsExpanded?: boolean;
1240
- };
1241
- type ExpandableRows = {
1242
- rows: ExpandableGridRow[];
1456
+ }>;
1457
+ type DataGridExpandableRows = {
1458
+ rows: DataGridExpandableRow[];
1243
1459
  /**
1244
1460
  * Whether the rows can expand or not.
1245
1461
  */
1246
1462
  expandable: true;
1247
1463
  /**
1248
- * 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 HierarchyGridRow[].
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[].
1249
1465
  */
1250
1466
  uniqueRowId: string;
1251
1467
  };
1252
- type HierarchyRows = {
1253
- rows: HierarchyGridRow[];
1468
+ type DataGridHierarchyRows = {
1469
+ rows: DataGridHierarchyRow[];
1254
1470
  /**
1255
- * 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 HierarchyGridRow[].
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[].
1256
1472
  */
1257
1473
  uniqueRowId: string;
1258
1474
  /**
@@ -1260,7 +1476,7 @@ type HierarchyRows = {
1260
1476
  */
1261
1477
  expandable?: false;
1262
1478
  };
1263
- type SelectableGridProps = {
1479
+ type DataGridSelectableProps = {
1264
1480
  /**
1265
1481
  * Whether the rows are selectable or not.
1266
1482
  */
@@ -1274,7 +1490,7 @@ type SelectableGridProps = {
1274
1490
  */
1275
1491
  onSelectRows: (selectedRows: Set<number | string>) => void;
1276
1492
  /**
1277
- * 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 HierarchyGridRow[].
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[].
1278
1494
  */
1279
1495
  uniqueRowId: string;
1280
1496
  } | {
@@ -1283,7 +1499,7 @@ type SelectableGridProps = {
1283
1499
  onSelectRows?: never;
1284
1500
  uniqueRowId?: string;
1285
1501
  };
1286
- type PaginatedProps$1 = {
1502
+ type DataGridPaginatedProps = {
1287
1503
  /**
1288
1504
  * If true, paginator will be displayed.
1289
1505
  */
@@ -1318,7 +1534,7 @@ type PaginatedProps$1 = {
1318
1534
  */
1319
1535
  defaultPage?: number;
1320
1536
  };
1321
- type NonPaginatedProps$1 = {
1537
+ type DataGridNonPaginatedProps = {
1322
1538
  /**
1323
1539
  * If true, paginator will be displayed.
1324
1540
  */
@@ -1354,36 +1570,37 @@ type NonPaginatedProps$1 = {
1354
1570
  defaultPage?: never;
1355
1571
  };
1356
1572
  type CommonProps$6 = {
1357
- columns: GridColumn[];
1573
+ columns: DataGridColumn[];
1358
1574
  /**
1359
1575
  * Extra row that will be always visible.
1360
1576
  */
1361
- summaryRow?: GridRow;
1577
+ summaryRow?: DataGridRow;
1362
1578
  /**
1363
1579
  * Function called whenever a cell is edited.
1364
1580
  */
1365
- onGridRowsChange?: (_rows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => void;
1581
+ onGridRowsChange?: (_rows: DataGridRow[] | DataGridHierarchyRow[] | DataGridExpandableRow[]) => void;
1366
1582
  /**
1367
1583
  * Function called whenever a column is sorted. Receives the sorted
1368
1584
  * column and direction, or `undefined` if no sorting is applied.
1369
1585
  */
1370
1586
  onSort?: (_sortColumn?: SortColumn) => void;
1371
1587
  };
1372
- type BasicGridProps = {
1373
- rows: GridRow[];
1588
+ type DataGridBasicProps = {
1589
+ rows: DataGridRow[];
1374
1590
  /**
1375
1591
  * Whether the rows can expand or not.
1376
1592
  */
1377
1593
  expandable?: false;
1378
1594
  };
1379
- type Props$s = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
1595
+ type DataGridProps = PrettifyTypes<CommonProps$6 & (DataGridPaginatedProps | DataGridNonPaginatedProps) & (DataGridBasicProps | DataGridExpandableRows | DataGridHierarchyRows) & DataGridSelectableProps>;
1380
1596
 
1381
1597
  declare const DxcDataGrid: {
1382
- ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$s): JSX.Element;
1383
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
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;
1384
1600
  };
1385
1601
 
1386
- type Props$r = {
1602
+ type RefType$9 = React.Ref<HTMLDivElement>;
1603
+ type DateInputProps = {
1387
1604
  /**
1388
1605
  * Initial value of the input element, only when it is uncontrolled.
1389
1606
  */
@@ -1474,7 +1691,7 @@ type Props$r = {
1474
1691
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1475
1692
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1476
1693
  */
1477
- margin?: Space$1 | Margin;
1694
+ margin?: Space | Margin;
1478
1695
  /**
1479
1696
  * Size of the component.
1480
1697
  */
@@ -1487,11 +1704,18 @@ type Props$r = {
1487
1704
  * Specifies a string to be used as the name for the date input element when no `label` is provided.
1488
1705
  */
1489
1706
  ariaLabel?: string;
1707
+ /**
1708
+ * Ref object to access the date input element.
1709
+ */
1710
+ ref?: RefType$9;
1490
1711
  };
1491
1712
 
1492
- declare const DxcDateInput: react.ForwardRefExoticComponent<Props$r & react.RefAttributes<HTMLDivElement>>;
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
+ };
1493
1717
 
1494
- type Props$q = {
1718
+ type DialogProps = {
1495
1719
  /**
1496
1720
  * If true, the close button will be visible.
1497
1721
  */
@@ -1531,9 +1755,9 @@ type Props$q = {
1531
1755
  disableFocusLock?: boolean;
1532
1756
  };
1533
1757
 
1534
- declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: Props$q) => JSX.Element;
1758
+ declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: DialogProps) => JSX.Element;
1535
1759
 
1536
- type Props$p = {
1760
+ type DividerProps = {
1537
1761
  /**
1538
1762
  * The divider can be shown in horizontal or vertical.
1539
1763
  */
@@ -1554,10 +1778,92 @@ type Props$p = {
1554
1778
  decorative?: boolean;
1555
1779
  };
1556
1780
 
1557
- declare function DxcDivider({ color, decorative, orientation, weight, }: Props$p): react_jsx_runtime.JSX.Element;
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.
1857
+ */
1858
+ title?: string;
1859
+ };
1558
1860
 
1559
- declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => 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;
1560
1862
 
1863
+ /**
1864
+ * Reference to the component.
1865
+ */
1866
+ type RefType$8 = React.Ref<HTMLDivElement>;
1561
1867
  type FileData = {
1562
1868
  /**
1563
1869
  * Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
@@ -1602,7 +1908,7 @@ type CommonProps$5 = {
1602
1908
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1603
1909
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1604
1910
  */
1605
- margin?: Space$1 | Margin;
1911
+ margin?: Space | Margin;
1606
1912
  /**
1607
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.
1608
1914
  */
@@ -1621,10 +1927,18 @@ type CommonProps$5 = {
1621
1927
  * next to the label.
1622
1928
  */
1623
1929
  optional?: boolean;
1930
+ /**
1931
+ * Reference to the component.
1932
+ */
1933
+ ref?: RefType$8;
1624
1934
  /**
1625
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.
1626
1936
  */
1627
1937
  showPreview?: boolean;
1938
+ /**
1939
+ * Size of the component.
1940
+ */
1941
+ size?: "medium" | "fillParent";
1628
1942
  /**
1629
1943
  * Value of the tabindex attribute.
1630
1944
  */
@@ -1662,11 +1976,14 @@ type FileModeProps = CommonProps$5 & {
1662
1976
  */
1663
1977
  mode?: "file";
1664
1978
  };
1665
- type Props$o = DropModeProps | FileModeProps;
1979
+ type FileInputProps = PrettifyTypes<DropModeProps | FileModeProps>;
1666
1980
 
1667
- declare const DxcFileInput: react.ForwardRefExoticComponent<Props$o & react.RefAttributes<HTMLDivElement>>;
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
+ };
1668
1985
 
1669
- type Gap$1 = {
1986
+ type FlexGap = {
1670
1987
  rowGap: string;
1671
1988
  columnGap?: string;
1672
1989
  } | {
@@ -1699,7 +2016,7 @@ type CommonProps$4 = {
1699
2016
  */
1700
2017
  alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
1701
2018
  };
1702
- type Props$n = CommonProps$4 & {
2019
+ type FlexProps = PrettifyTypes<CommonProps$4 & {
1703
2020
  /**
1704
2021
  * Sets the flex-direction CSS property.
1705
2022
  *
@@ -1717,13 +2034,17 @@ type Props$n = CommonProps$4 & {
1717
2034
  *
1718
2035
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1719
2036
  */
1720
- gap?: Gap$1;
2037
+ gap?: FlexGap;
1721
2038
  /**
1722
2039
  * Sets the order CSS property.
1723
2040
  *
1724
2041
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/order
1725
2042
  */
1726
2043
  order?: number;
2044
+ /**
2045
+ * If true, the flex container will take the full height of its parent.
2046
+ */
2047
+ fullHeight?: boolean;
1727
2048
  /**
1728
2049
  * Sets the flex-grow CSS property.
1729
2050
  *
@@ -1750,11 +2071,11 @@ type Props$n = CommonProps$4 & {
1750
2071
  * Custom content inside the flex container.
1751
2072
  */
1752
2073
  children: ReactNode;
1753
- };
2074
+ }>;
1754
2075
 
1755
- declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }: Props$n) => react_jsx_runtime.JSX.Element;
2076
+ declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: FlexProps) => react.JSX.Element;
1756
2077
 
1757
- type Gap = string | {
2078
+ type GridGap = string | {
1758
2079
  columnGap?: string;
1759
2080
  rowGap: string;
1760
2081
  } | {
@@ -1765,17 +2086,17 @@ type GridCell = {
1765
2086
  end: number | string;
1766
2087
  start: number | string;
1767
2088
  };
1768
- type PlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
1769
- type PlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
1770
- type PlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
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";
1771
2092
  type PlaceObject<Type, Suffix extends string> = {
1772
- [Property in keyof Type as `${string & Property}${Capitalize<string & Suffix>}`]: Type[Property];
2093
+ [Property in keyof Type as Property extends string ? `${Property}${Capitalize<Suffix>}` : never]: Type[Property];
1773
2094
  };
1774
2095
  type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
1775
- align: PlaceValues;
2096
+ align?: PlaceValues;
1776
2097
  justify?: PlaceValues;
1777
2098
  }, Element> | PlaceObject<{
1778
- align?: PlaceValues;
2099
+ align: PlaceValues;
1779
2100
  justify: PlaceValues;
1780
2101
  }, Element> | PlaceValues;
1781
2102
  type GridItemProps = {
@@ -1802,7 +2123,7 @@ type GridItemProps = {
1802
2123
  *
1803
2124
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
1804
2125
  */
1805
- placeSelf?: PlaceGeneric<PlaceSelfValues, "self">;
2126
+ placeSelf?: PlaceGeneric<GridPlaceSelfValues, "self">;
1806
2127
  /**
1807
2128
  * Sets the grid-row CSS property.
1808
2129
  *
@@ -1810,7 +2131,7 @@ type GridItemProps = {
1810
2131
  */
1811
2132
  row?: number | string | GridCell;
1812
2133
  };
1813
- type Props$m = GridItemProps & {
2134
+ type GridProps = PrettifyTypes<GridItemProps & {
1814
2135
  /**
1815
2136
  * Sets the grid-auto-columns CSS property.
1816
2137
  *
@@ -1834,19 +2155,19 @@ type Props$m = GridItemProps & {
1834
2155
  *
1835
2156
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1836
2157
  */
1837
- gap?: Gap;
2158
+ gap?: GridGap;
1838
2159
  /**
1839
2160
  * Sets the place-content CSS property.
1840
2161
  *
1841
2162
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
1842
2163
  */
1843
- placeContent?: PlaceGeneric<PlaceContentValues, "content">;
2164
+ placeContent?: PlaceGeneric<GridPlaceContentValues, "content">;
1844
2165
  /**
1845
2166
  * Sets the place-items CSS property.
1846
2167
  *
1847
2168
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
1848
2169
  */
1849
- placeItems?: PlaceGeneric<PlaceItemsValues, "items">;
2170
+ placeItems?: PlaceGeneric<GridPlaceItemsValues, "items">;
1850
2171
  /**
1851
2172
  * Sets the grid-template-areas CSS property.
1852
2173
  *
@@ -1865,17 +2186,17 @@ type Props$m = GridItemProps & {
1865
2186
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
1866
2187
  */
1867
2188
  templateRows?: string[];
1868
- };
2189
+ }>;
1869
2190
 
1870
2191
  declare const DxcGrid: {
1871
- (props: Props$m): react_jsx_runtime.JSX.Element;
2192
+ (props: GridProps): react.JSX.Element;
1872
2193
  Item: _emotion_styled.StyledComponent<{
1873
2194
  theme?: _emotion_react.Theme;
1874
2195
  as?: React.ElementType;
1875
2196
  } & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1876
2197
  };
1877
2198
 
1878
- type Props$l = {
2199
+ type HeadingProps = {
1879
2200
  /**
1880
2201
  * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
1881
2202
  * The html tag of the heading will be the one specified in the 'as' prop.
@@ -1898,80 +2219,35 @@ type Props$l = {
1898
2219
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1899
2220
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1900
2221
  */
1901
- margin?: Space$1 | Margin;
2222
+ margin?: Space | Margin;
1902
2223
  };
1903
2224
 
1904
- declare function DxcHeading({ as, level, margin, text, weight }: Props$l): react_jsx_runtime.JSX.Element;
2225
+ declare function DxcHeading({ as, level, margin, text, weight }: HeadingProps): react.JSX.Element;
1905
2226
 
1906
- type Props$k = {
1907
- /**
1908
- * Alternative text description displayed when the specified image is not loaded.
1909
- *
1910
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
1911
- * See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
1912
- */
1913
- alt: string;
1914
- /**
1915
- * Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
1916
- * which is required regardless of the presence of the caption or not.
1917
- */
1918
- caption?: string;
1919
- /**
1920
- * Sets the rendered height of the image.
1921
- */
1922
- height?: string;
1923
- /**
1924
- * If true, the image will be loaded only when it is visible on the screen (lazy loading).
1925
- * Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
1926
- */
1927
- lazyLoading?: boolean;
1928
- /**
1929
- * Sets the object-fit CSS property.
1930
- *
1931
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
1932
- */
1933
- objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
1934
- /**
1935
- * Sets the object-position CSS property.
1936
- *
1937
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
1938
- */
1939
- objectPosition?: string;
1940
- /**
1941
- * This function will be called when the image fails to load.
1942
- */
1943
- onError?: ReactEventHandler<HTMLImageElement>;
1944
- /**
1945
- * This function will be called when the image is loaded.
1946
- */
1947
- onLoad?: ReactEventHandler<HTMLImageElement>;
2227
+ type IconProps = {
1948
2228
  /**
1949
- * One or more strings separated by commas, indicating a set of source sizes.
1950
- * If the srcSet attribute is absent or contains no values with a width descriptor,
1951
- * then this attribute has no effect.
1952
- *
1953
- * 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.
1954
2230
  */
1955
- sizes?: string;
2231
+ ariaLabel?: string;
1956
2232
  /**
1957
- * URL of the image. This prop is required and must be valid.
2233
+ * Color of the icon. Use a design token or a CSS color.
1958
2234
  */
1959
- src: string;
2235
+ color?: string;
1960
2236
  /**
1961
- * List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
1962
- *
1963
- * 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.
1964
2238
  */
1965
- srcSet?: string;
2239
+ icon: string | SVG;
1966
2240
  /**
1967
- * Sets the rendered width of the image.
2241
+ * Font size of the icon. Use a design token or a CSS value.
1968
2242
  */
1969
- width?: string;
2243
+ size?: string;
1970
2244
  };
1971
2245
 
1972
- declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$k): react_jsx_runtime.JSX.Element;
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;
1973
2249
 
1974
- type Props$j = {
2250
+ type InsetProps = {
1975
2251
  /**
1976
2252
  * Applies the spacing scale to the bottom side.
1977
2253
  */
@@ -2006,56 +2282,178 @@ type Props$j = {
2006
2282
  vertical?: string;
2007
2283
  };
2008
2284
 
2009
- declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$j): react_jsx_runtime.JSX.Element;
2285
+ declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: InsetProps): react.JSX.Element;
2010
2286
 
2011
2287
  type LinkProps = {
2012
2288
  /**
2013
- * If true, the link is disabled.
2289
+ * Text of the link.
2290
+ */
2291
+ children: string;
2292
+ /**
2293
+ * If true, the link will be disabled.
2294
+ */
2295
+ disabled?: boolean;
2296
+ /**
2297
+ * Page to be opened when the user clicks on the link.
2298
+ */
2299
+ href?: string;
2300
+ /**
2301
+ * If true, the color is inherited from parent.
2302
+ */
2303
+ inheritColor?: boolean;
2304
+ /**
2305
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
2306
+ */
2307
+ icon?: string | SVG;
2308
+ /**
2309
+ * Indicates the position of the icon in the component.
2310
+ */
2311
+ iconPosition?: "before" | "after";
2312
+ /**
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.
2315
+ */
2316
+ margin?: Space | Margin;
2317
+ /**
2318
+ * If true, the page is opened in a new browser tab.
2319
+ */
2320
+ newWindow?: boolean;
2321
+ /**
2322
+ * If defined, the link will be displayed as a button. This
2323
+ * function will be called when the user clicks the link.
2324
+ */
2325
+ onClick?: () => void;
2326
+ /**
2327
+ * Ref of the link element.
2328
+ */
2329
+ ref?: React.Ref<HTMLAnchorElement>;
2330
+ /**
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.
2350
+ */
2351
+ allowRecording?: boolean;
2352
+ /**
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.
2014
2390
  */
2015
- disabled?: boolean;
2391
+ maxLength?: number;
2016
2392
  /**
2017
- * If true, the color is inherited from parent.
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.
2018
2400
  */
2019
- inheritColor?: boolean;
2401
+ minLength?: number;
2020
2402
  /**
2021
- * Material Symbol name or SVG element as the icon that will be placed next to the link text.
2403
+ * Options to be shown on the dropdown under the input.
2022
2404
  */
2023
- icon?: string | SVG;
2405
+ selectOptions?: SelectOption$1[];
2024
2406
  /**
2025
- * Indicates the position of the icon in the component.
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.
2026
2411
  */
2027
- iconPosition?: "before" | "after";
2412
+ onBlur?: (val: {
2413
+ value: string;
2414
+ error?: string;
2415
+ }) => void;
2028
2416
  /**
2029
- * Page to be opened when the user clicks on the link.
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.
2030
2421
  */
2031
- href?: string;
2422
+ onChange?: (val: {
2423
+ value: string;
2424
+ error?: string;
2425
+ }) => void;
2032
2426
  /**
2033
- * If true, the page is opened in a new browser tab.
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.
2034
2429
  */
2035
- newWindow?: boolean;
2430
+ onButtonClick?: (val: {
2431
+ type: "submit" | "stop";
2432
+ value?: string;
2433
+ files?: File[];
2434
+ selectedOption?: SelectOption$1;
2435
+ }) => void;
2036
2436
  /**
2037
- * If defined, the link will be displayed as a button. This
2038
- * function will be called when the user clicks the link.
2437
+ * Text to be put as placeholder of the input.
2039
2438
  */
2040
- onClick?: () => void;
2439
+ placeholder?: string;
2041
2440
  /**
2042
- * Text of the link.
2441
+ * Specifies the size of the component. The size will affect the width of the input.
2043
2442
  */
2044
- children: string;
2443
+ size?: "small" | "medium" | "large" | "fillParent";
2045
2444
  /**
2046
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2047
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2445
+ * Value of the tabindex attribute.
2048
2446
  */
2049
- margin?: Space$1 | Margin;
2447
+ tabIndex?: number;
2050
2448
  /**
2051
- * Value of the tabindex.
2449
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2052
2450
  */
2053
- tabIndex?: number;
2451
+ value?: string;
2054
2452
  };
2055
2453
 
2056
- declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
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;
2057
2455
 
2058
- type TabProps$1 = {
2456
+ type NavTabsTabProps = {
2059
2457
  /**
2060
2458
  * Whether the tab is active or not.
2061
2459
  */
@@ -2065,7 +2463,7 @@ type TabProps$1 = {
2065
2463
  */
2066
2464
  children: string;
2067
2465
  /**
2068
- * Whether the tab is disabled or not.
2466
+ * If true, the tab will be disabled.
2069
2467
  */
2070
2468
  disabled?: boolean;
2071
2469
  /**
@@ -2076,10 +2474,6 @@ type TabProps$1 = {
2076
2474
  * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2077
2475
  */
2078
2476
  icon?: string | SVG;
2079
- /**
2080
- * This function will be called when the user clicks on this tab.
2081
- */
2082
- onClick?: () => void;
2083
2477
  /**
2084
2478
  * If the value is 'true', an empty badge will appear.
2085
2479
  * If it is 'false', no badge will appear.
@@ -2088,8 +2482,16 @@ type TabProps$1 = {
2088
2482
  * it will appear as '+99' in the badge.
2089
2483
  */
2090
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>;
2091
2493
  };
2092
- type Props$i = {
2494
+ type NavTabsProps = {
2093
2495
  /**
2094
2496
  * Contains one or more DxcNavTabs.Tab.
2095
2497
  */
@@ -2105,11 +2507,18 @@ type Props$i = {
2105
2507
  };
2106
2508
 
2107
2509
  declare const DxcNavTabs: {
2108
- ({ iconPosition, tabIndex, children }: Props$i): JSX.Element;
2109
- Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
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
+ };
2110
2515
  };
2111
2516
 
2112
- type Props$h = {
2517
+ /**
2518
+ * Reference to the component.
2519
+ */
2520
+ type RefType$7 = React.Ref<HTMLInputElement>;
2521
+ type NumberInputProps = {
2113
2522
  /**
2114
2523
  * Text to be placed above the number.
2115
2524
  */
@@ -2145,6 +2554,10 @@ type Props$h = {
2145
2554
  * functions when it has not been filled.
2146
2555
  */
2147
2556
  optional?: boolean;
2557
+ /**
2558
+ * Prefix to be placed before the number value.
2559
+ */
2560
+ prefix?: string;
2148
2561
  /**
2149
2562
  * If true, the component will not be mutable, meaning the user can
2150
2563
  * not edit the control. The value won't change when pressing on the
@@ -2152,9 +2565,9 @@ type Props$h = {
2152
2565
  */
2153
2566
  readOnly?: boolean;
2154
2567
  /**
2155
- * Prefix to be placed before the number value.
2568
+ * Ref of the component.
2156
2569
  */
2157
- prefix?: string;
2570
+ ref?: RefType$7;
2158
2571
  /**
2159
2572
  * Suffix to be placed after the number value.
2160
2573
  */
@@ -2217,7 +2630,7 @@ type Props$h = {
2217
2630
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2218
2631
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2219
2632
  */
2220
- margin?: Space$1 | Margin;
2633
+ margin?: Space | Margin;
2221
2634
  /**
2222
2635
  * Size of the component.
2223
2636
  */
@@ -2236,9 +2649,12 @@ type Props$h = {
2236
2649
  showControls?: boolean;
2237
2650
  };
2238
2651
 
2239
- declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLDivElement>>;
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
+ };
2240
2656
 
2241
- type Props$g = {
2657
+ type PaginatorProps = {
2242
2658
  /**
2243
2659
  * Number of the current selected page.
2244
2660
  */
@@ -2276,53 +2692,30 @@ type Props$g = {
2276
2692
  tabIndex?: number;
2277
2693
  };
2278
2694
 
2279
- declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$g) => JSX.Element;
2695
+ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: PaginatorProps) => JSX.Element;
2280
2696
 
2281
2697
  declare function DxcParagraph({ children }: {
2282
2698
  children: ReactNode;
2283
- }): react_jsx_runtime.JSX.Element;
2699
+ }): react.JSX.Element;
2284
2700
 
2285
- type Props$f = {
2286
- /**
2287
- * Text to be placed above the password input.
2288
- */
2289
- label?: string;
2290
- /**
2291
- * Name attribute of the input element.
2292
- */
2293
- name?: string;
2701
+ /**
2702
+ * Reference to the component.
2703
+ */
2704
+ type RefType$6 = React.Ref<HTMLDivElement>;
2705
+ type PasswordInputProps = {
2294
2706
  /**
2295
- * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2707
+ * Specifies a string to be used as the name for the password input element when no `label` is provided.
2296
2708
  */
2297
- value?: string;
2709
+ ariaLabel?: string;
2298
2710
  /**
2299
- * Helper text to be placed above the password.
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', ...
2300
2713
  */
2301
- helperText?: string;
2714
+ autocomplete?: string;
2302
2715
  /**
2303
2716
  * If true, the password input will have an action to clear the entered value.
2304
2717
  */
2305
2718
  clearable?: boolean;
2306
- /**
2307
- * This function will be called when the user types within the input
2308
- * element of the component. An object including the current value and
2309
- * the error (if the value entered is not valid) will be passed to this
2310
- * function. If there is no error, error will not be defined.
2311
- * */
2312
- onChange?: (val: {
2313
- value: string;
2314
- error?: string;
2315
- }) => void;
2316
- /**
2317
- * This function will be called when the input element loses the focus.
2318
- * An object including the input value and the error (if the value entered is
2319
- * not valid) will be passed to this function. If there is no error, error will
2320
- * not be defined.
2321
- */
2322
- onBlur?: (val: {
2323
- value: string;
2324
- error?: string;
2325
- }) => void;
2326
2719
  /**
2327
2720
  * If it is a defined value and also a truthy string, the component will
2328
2721
  * change its appearance, showing the error below the password input
@@ -2333,45 +2726,76 @@ type Props$f = {
2333
2726
  */
2334
2727
  error?: string;
2335
2728
  /**
2336
- * Regular expression that defines the valid format allowed by the
2337
- * password input. This will be checked both when the input element loses the
2338
- * focus and while typing within it. If the string entered does not match
2339
- * the pattern, the onBlur and onChange functions will be called with the
2340
- * current value and an internal error informing that this value does not
2341
- * match the pattern. If the pattern is met, the error parameter of both
2342
- * events will not be defined.
2729
+ * Helper text to be placed above the password.
2343
2730
  */
2344
- pattern?: string;
2731
+ helperText?: string;
2345
2732
  /**
2346
- * Specifies the minimum length allowed by the password input.
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.
2347
2743
  * This will be checked both when the input element loses the
2348
2744
  * focus and while typing within it. If the string entered does not
2349
- * comply the minimum length, the onBlur and onChange functions will be called
2745
+ * comply the maximum length, the onBlur and onChange functions will be called
2350
2746
  * with the current value and an internal error informing that the value
2351
2747
  * length does not comply the specified range. If a valid length is
2352
2748
  * reached, the error parameter of both events will not be defined.
2353
2749
  */
2354
- minLength?: number;
2750
+ maxLength?: number;
2355
2751
  /**
2356
- * Specifies the maximum length allowed by the password input.
2752
+ * Specifies the minimum length allowed by the password input.
2357
2753
  * This will be checked both when the input element loses the
2358
2754
  * focus and while typing within it. If the string entered does not
2359
- * comply the maximum length, the onBlur and onChange functions will be called
2755
+ * comply the minimum length, the onBlur and onChange functions will be called
2360
2756
  * with the current value and an internal error informing that the value
2361
2757
  * length does not comply the specified range. If a valid length is
2362
2758
  * reached, the error parameter of both events will not be defined.
2363
2759
  */
2364
- maxLength?: number;
2760
+ minLength?: number;
2365
2761
  /**
2366
- * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2367
- * 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.
2368
2763
  */
2369
- autocomplete?: string;
2764
+ name?: string;
2370
2765
  /**
2371
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2372
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
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.
2373
2797
  */
2374
- margin?: Space$1 | Margin;
2798
+ ref?: RefType$6;
2375
2799
  /**
2376
2800
  * Size of the component.
2377
2801
  */
@@ -2381,20 +2805,51 @@ type Props$f = {
2381
2805
  */
2382
2806
  tabIndex?: number;
2383
2807
  /**
2384
- * Specifies a string to be used as the name for the password input element when no `label` is provided.
2808
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2385
2809
  */
2386
- ariaLabel?: string;
2810
+ value?: string;
2387
2811
  };
2388
2812
 
2389
- declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLDivElement>>;
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
+ };
2390
2817
 
2391
- type Size$1 = {
2392
- top?: Space$1;
2393
- bottom?: Space$1;
2394
- left?: Space$1;
2395
- right?: Space$1;
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";
2396
2848
  };
2397
- type Props$e = {
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 = {
2398
2853
  /**
2399
2854
  * Text to be placed above the progress bar.
2400
2855
  */
@@ -2421,16 +2876,16 @@ type Props$e = {
2421
2876
  * an object with 'top', 'bottom', 'left' and 'right' properties
2422
2877
  * in order to specify different margin sizes.
2423
2878
  */
2424
- margin?: Space$1 | Size$1;
2879
+ margin?: Space | Margin;
2425
2880
  /**
2426
2881
  * Specifies a string to be used as the name for the progress bar element when no `label` is provided.
2427
2882
  */
2428
2883
  ariaLabel?: string;
2429
2884
  };
2430
2885
 
2431
- declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: Props$e) => JSX.Element;
2886
+ declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: ProgressBarProps) => JSX.Element;
2432
2887
 
2433
- type Link = {
2888
+ type QuickNavLink = {
2434
2889
  /**
2435
2890
  * Label to be shown in the link.
2436
2891
  */
@@ -2438,9 +2893,9 @@ type Link = {
2438
2893
  /**
2439
2894
  * Sublinks of the link.
2440
2895
  */
2441
- links?: Link[];
2896
+ links?: QuickNavLink[];
2442
2897
  };
2443
- type Props$d = {
2898
+ type QuickNavProps = {
2444
2899
  /**
2445
2900
  * Title of the quick nav component.
2446
2901
  */
@@ -2448,12 +2903,16 @@ type Props$d = {
2448
2903
  /**
2449
2904
  * Links to be shown inside the quick nav component.
2450
2905
  */
2451
- links: Link[];
2906
+ links: QuickNavLink[];
2452
2907
  };
2453
2908
 
2454
- declare function DxcQuickNav({ links, title }: Props$d): react_jsx_runtime.JSX.Element;
2909
+ declare function DxcQuickNav({ links, title }: QuickNavProps): react.JSX.Element;
2455
2910
 
2456
- type Option$1 = {
2911
+ /**
2912
+ * Reference to the component.
2913
+ */
2914
+ type RefType$5 = React.Ref<HTMLDivElement>;
2915
+ type RadioGroupOption = {
2457
2916
  /**
2458
2917
  * Label of the option placed next to the radio input.
2459
2918
  */
@@ -2519,7 +2978,7 @@ type RadioGroupProps = {
2519
2978
  /**
2520
2979
  * An array of objects representing the selectable options.
2521
2980
  */
2522
- options: Option$1[];
2981
+ options: RadioGroupOption[];
2523
2982
  /**
2524
2983
  * This function will be called when the radio group loses the focus. An
2525
2984
  * object including the value and the error will be passed to this
@@ -2538,6 +2997,10 @@ type RadioGroupProps = {
2538
2997
  * If true, the component will not be mutable, meaning the user can not edit the control.
2539
2998
  */
2540
2999
  readOnly?: boolean;
3000
+ /**
3001
+ * Reference to the component.
3002
+ */
3003
+ ref?: RefType$5;
2541
3004
  /**
2542
3005
  * Sets the orientation of the options within the radio group.
2543
3006
  */
@@ -2554,9 +3017,12 @@ type RadioGroupProps = {
2554
3017
  value?: string;
2555
3018
  };
2556
3019
 
2557
- declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
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
+ };
2558
3024
 
2559
- type Column = {
3025
+ type ResultSetTableColumn = {
2560
3026
  /**
2561
3027
  * Column display value.
2562
3028
  */
@@ -2566,7 +3032,7 @@ type Column = {
2566
3032
  */
2567
3033
  isSortable?: boolean;
2568
3034
  };
2569
- type Cell = {
3035
+ type ResultSetTableRow = {
2570
3036
  /**
2571
3037
  * Value to be displayed in the cell.
2572
3038
  */
@@ -2576,33 +3042,37 @@ type Cell = {
2576
3042
  * column. If not indicated displayValue will be used for sorting.
2577
3043
  */
2578
3044
  sortValue?: string | number | Date;
2579
- };
2580
- type Row = Cell[];
3045
+ }[];
2581
3046
  type CommonProps$3 = {
2582
3047
  /**
2583
3048
  * An array of objects representing the columns of the table.
2584
3049
  */
2585
- columns: Column[];
2586
- /**
2587
- * An array of objects representing the rows of the table, you will have
2588
- * as many objects as columns in the table.
2589
- */
2590
- rows: Row[];
3050
+ columns: ResultSetTableColumn[];
2591
3051
  /**
2592
3052
  * Size of the margin to be applied to the component. You can pass an object with 'top',
2593
3053
  * 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2594
3054
  */
2595
- margin?: Space$1 | Margin;
2596
- /**
2597
- * Value of the tabindex attribute applied to the sortable icon.
2598
- */
2599
- tabIndex?: number;
3055
+ margin?: Space | Margin;
2600
3056
  /**
2601
3057
  * Determines the visual style and layout
2602
3058
  * - "default": The default mode with big spacing
2603
3059
  * - "reduced": A reduced mode with minimal spacing for dense tables
2604
3060
  */
2605
3061
  mode?: "default" | "reduced";
3062
+ /**
3063
+ * An array of objects representing the rows of the table, you will have
3064
+ * as many objects as columns in the table.
3065
+ */
3066
+ rows: ResultSetTableRow[];
3067
+ /**
3068
+ * Value of the tabindex attribute applied to the sortable icon.
3069
+ */
3070
+ tabIndex?: number;
3071
+ /**
3072
+ * A fixed height must be set to enable virtualization.
3073
+ * If no height is provided, the table will automatically adjust to the height of its content, and virtualization will not be applied.
3074
+ */
3075
+ virtualizedHeight?: string;
2606
3076
  };
2607
3077
  type PaginatedProps = CommonProps$3 & {
2608
3078
  hidePaginator?: false;
@@ -2629,10 +3099,6 @@ type NonPaginatedProps = CommonProps$3 & {
2629
3099
  * If true, paginator will not be displayed.
2630
3100
  */
2631
3101
  hidePaginator: true;
2632
- /**
2633
- * If true, a select component for navigation between pages will be displayed.
2634
- */
2635
- showGoToPage?: never;
2636
3102
  /**
2637
3103
  * Number of items per page.
2638
3104
  */
@@ -2646,15 +3112,23 @@ type NonPaginatedProps = CommonProps$3 & {
2646
3112
  * option. The value selected will be passed as a parameter.
2647
3113
  */
2648
3114
  itemsPerPageFunction?: never;
3115
+ /**
3116
+ * If true, a select component for navigation between pages will be displayed.
3117
+ */
3118
+ showGoToPage?: never;
2649
3119
  };
2650
- type Props$c = PaginatedProps | NonPaginatedProps;
3120
+ type ResultSetTableProps = PrettifyTypes<PaginatedProps | NonPaginatedProps>;
2651
3121
 
2652
3122
  declare const DxcResultsetTable: {
2653
- ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, }: Props$c): react_jsx_runtime.JSX.Element;
2654
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
3123
+ ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: ResultSetTableProps): react.JSX.Element;
3124
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
2655
3125
  };
2656
3126
 
2657
- type ListOptionType = {
3127
+ /**
3128
+ * Reference to the select component.
3129
+ */
3130
+ type RefType$4 = React.Ref<HTMLDivElement>;
3131
+ type SelectOption = {
2658
3132
  /**
2659
3133
  * Element used as the icon that will be placed before the option label.
2660
3134
  * It can be an inline SVG or Material Symbol name. If the url option
@@ -2673,7 +3147,7 @@ type ListOptionType = {
2673
3147
  */
2674
3148
  value: string;
2675
3149
  };
2676
- type ListOptionGroupType = {
3150
+ type SelectOptionGroup = {
2677
3151
  /**
2678
3152
  * Label of the group to be shown in the select's listbox.
2679
3153
  */
@@ -2681,37 +3155,47 @@ type ListOptionGroupType = {
2681
3155
  /**
2682
3156
  * List of the grouped options.
2683
3157
  */
2684
- options: ListOptionType[];
3158
+ options: SelectOption[];
2685
3159
  };
2686
3160
  type CommonProps$2 = {
2687
3161
  /**
2688
- * Text to be placed above the select.
3162
+ * Specifies a string to be used as the name for the select element when no `label` is provided.
2689
3163
  */
2690
- label?: string;
3164
+ ariaLabel?: string;
2691
3165
  /**
2692
- * Name attribute of the input element. This attribute will allow users
2693
- * to find the component's value during the submit event. In this event,
2694
- * the component's value will always be a regular string, for both single
2695
- * and multiple selection modes, being a single option value in the first case
2696
- * and more than one value when multiple selection is available, separated by commas.
3166
+ * If true, the component will be disabled.
2697
3167
  */
2698
- name?: string;
3168
+ disabled?: boolean;
2699
3169
  /**
2700
- * An array of objects representing the selectable options.
3170
+ * If it is a defined value and also a truthy string, the component will
3171
+ * change its appearance, showing the error below the select component.
3172
+ * If the defined value is an empty string, it will reserve a space below
3173
+ * the component for a future error, but it would not change its look. In
3174
+ * case of being undefined or null, both the appearance and the space for
3175
+ * the error message would not be modified.
2701
3176
  */
2702
- options: ListOptionType[] | ListOptionGroupType[];
3177
+ error?: string;
2703
3178
  /**
2704
3179
  * Helper text to be placed above the select.
2705
3180
  */
2706
3181
  helperText?: string;
2707
3182
  /**
2708
- * Text to be put as placeholder of the select.
3183
+ * Text to be placed above the select.
2709
3184
  */
2710
- placeholder?: string;
3185
+ label?: string;
3186
+ /**
3187
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3188
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3189
+ */
3190
+ margin?: Space | Margin;
2711
3191
  /**
2712
- * If true, the component will be disabled.
3192
+ * Name attribute of the input element. This attribute will allow users
3193
+ * to find the component's value during the submit event. In this event,
3194
+ * the component's value will always be a regular string, for both single
3195
+ * and multiple selection modes, being a single option value in the first case
3196
+ * and more than one value when multiple selection is available, separated by commas.
2713
3197
  */
2714
- disabled?: boolean;
3198
+ name?: string;
2715
3199
  /**
2716
3200
  * If true, the select will be optional, showing '(Optional)'
2717
3201
  * next to the label and adding a default first option with an empty string as value,
@@ -2721,23 +3205,27 @@ type CommonProps$2 = {
2721
3205
  */
2722
3206
  optional?: boolean;
2723
3207
  /**
2724
- * If true, enables search functionality.
3208
+ * An array of objects representing the selectable options.
2725
3209
  */
2726
- searchable?: boolean;
3210
+ options: SelectOption[] | SelectOptionGroup[];
2727
3211
  /**
2728
- * If it is a defined value and also a truthy string, the component will
2729
- * change its appearance, showing the error below the select component.
2730
- * If the defined value is an empty string, it will reserve a space below
2731
- * the component for a future error, but it would not change its look. In
2732
- * case of being undefined or null, both the appearance and the space for
2733
- * the error message would not be modified.
3212
+ * Text to be put as placeholder of the select.
2734
3213
  */
2735
- error?: string;
3214
+ placeholder?: string;
2736
3215
  /**
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.
3216
+ * Reference to the select component.
3217
+ */
3218
+ ref?: RefType$4;
3219
+ /**
3220
+ * If true, enables search functionality.
3221
+ */
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.
2739
3227
  */
2740
- margin?: Space$1 | Margin;
3228
+ searchByStartsWith?: boolean;
2741
3229
  /**
2742
3230
  * Size of the component.
2743
3231
  */
@@ -2747,11 +3235,16 @@ type CommonProps$2 = {
2747
3235
  */
2748
3236
  tabIndex?: number;
2749
3237
  /**
2750
- * Specifies a string to be used as the name for the select element when no `label` is provided.
3238
+ * A fixed height must be set to enable virtualization.
3239
+ * If no height is provided, the select will automatically adjust to the height of its content, and virtualization will not be applied.
2751
3240
  */
2752
- ariaLabel?: string;
3241
+ virtualizedHeight?: string;
2753
3242
  };
2754
3243
  type SingleSelect = CommonProps$2 & {
3244
+ /**
3245
+ * Initial value of the select, only when it is uncontrolled.
3246
+ */
3247
+ defaultValue?: string;
2755
3248
  /**
2756
3249
  * Enables users to select multiple items from the list.
2757
3250
  */
@@ -2763,14 +3256,15 @@ type SingleSelect = CommonProps$2 & {
2763
3256
  */
2764
3257
  multiple?: false;
2765
3258
  /**
2766
- * Initial value of the select, only when it is uncontrolled.
2767
- */
2768
- defaultValue?: string;
2769
- /**
2770
- * Value of the select. If undefined, the component will be uncontrolled
2771
- * and the value will be managed internally by the component.
3259
+ * This function will be called when the select loses the focus. An
3260
+ * object including the value and the error (if the value
3261
+ * selected is not valid) will be passed to this function. If there is no error,
3262
+ * error will not be defined.
2772
3263
  */
2773
- value?: string;
3264
+ onBlur?: (val: {
3265
+ value: string;
3266
+ error?: string;
3267
+ }) => void;
2774
3268
  /**
2775
3269
  * This function will be called when the user selects an option.
2776
3270
  * An object including the current value and the error (if the value entered is not valid)
@@ -2781,17 +3275,16 @@ type SingleSelect = CommonProps$2 & {
2781
3275
  error?: string;
2782
3276
  }) => void;
2783
3277
  /**
2784
- * This function will be called when the select loses the focus. An
2785
- * object including the value and the error (if the value
2786
- * selected is not valid) will be passed to this function. If there is no error,
2787
- * error will not be defined.
3278
+ * Value of the select. If undefined, the component will be uncontrolled
3279
+ * and the value will be managed internally by the component.
2788
3280
  */
2789
- onBlur?: (val: {
2790
- value: string;
2791
- error?: string;
2792
- }) => void;
3281
+ value?: string;
2793
3282
  };
2794
3283
  type MultipleSelect = CommonProps$2 & {
3284
+ /**
3285
+ * Initial value of the select, only when it is uncontrolled.
3286
+ */
3287
+ defaultValue?: string[];
2795
3288
  /**
2796
3289
  * Enables users to select multiple items from the list.
2797
3290
  */
@@ -2803,14 +3296,15 @@ type MultipleSelect = CommonProps$2 & {
2803
3296
  */
2804
3297
  multiple: true;
2805
3298
  /**
2806
- * Initial value of the select, only when it is uncontrolled.
2807
- */
2808
- defaultValue?: string[];
2809
- /**
2810
- * Value of the select. If undefined, the component will be uncontrolled
2811
- * and the value will be managed internally by the component.
3299
+ * This function will be called when the select loses the focus. An
3300
+ * object including the selected values and the error (if the value
3301
+ * selected is not valid) will be passed to this function. If there is no error,
3302
+ * error will be null.
2812
3303
  */
2813
- value?: string[];
3304
+ onBlur?: (val: {
3305
+ value: string[];
3306
+ error?: string;
3307
+ }) => void;
2814
3308
  /**
2815
3309
  * This function will be called when the user selects an option.
2816
3310
  * An object including the current selected values and the error (if the value entered is not valid)
@@ -2821,21 +3315,23 @@ type MultipleSelect = CommonProps$2 & {
2821
3315
  error?: string;
2822
3316
  }) => void;
2823
3317
  /**
2824
- * This function will be called when the select loses the focus. An
2825
- * object including the selected values and the error (if the value
2826
- * selected is not valid) will be passed to this function. If there is no error,
2827
- * error will be null.
3318
+ * Value of the select. If undefined, the component will be uncontrolled
3319
+ * and the value will be managed internally by the component.
2828
3320
  */
2829
- onBlur?: (val: {
2830
- value: string[];
2831
- error?: string;
2832
- }) => void;
3321
+ value?: string[];
2833
3322
  };
2834
- type Props$b = SingleSelect | MultipleSelect;
3323
+ type SelectProps = PrettifyTypes<SingleSelect | MultipleSelect>;
2835
3324
 
2836
- declare const DxcSelect: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
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
+ };
2837
3329
 
2838
- type Props$a = {
3330
+ /**
3331
+ * Reference to the component.
3332
+ */
3333
+ type RefType$3 = React.Ref<HTMLDivElement>;
3334
+ type SliderProps = {
2839
3335
  /**
2840
3336
  * Specifies a string to be used as the name for the slider element when no `label` is provided.
2841
3337
  */
@@ -2865,7 +3361,7 @@ type Props$a = {
2865
3361
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2866
3362
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2867
3363
  */
2868
- margin?: Space$1 | Margin;
3364
+ margin?: Space | Margin;
2869
3365
  /**
2870
3366
  * Whether the marks between each step should be shown or not.
2871
3367
  */
@@ -2892,6 +3388,10 @@ type Props$a = {
2892
3388
  * The new value will be passed as a parameter when this function is executed.
2893
3389
  */
2894
3390
  onDragEnd?: (value: number) => void;
3391
+ /**
3392
+ * Reference to the component.
3393
+ */
3394
+ ref?: RefType$3;
2895
3395
  /**
2896
3396
  * Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
2897
3397
  */
@@ -2914,9 +3414,12 @@ type Props$a = {
2914
3414
  value?: number;
2915
3415
  };
2916
3416
 
2917
- declare const DxcSlider: react.ForwardRefExoticComponent<Props$a & react.RefAttributes<HTMLDivElement>>;
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
+ };
2918
3421
 
2919
- type Props$9 = {
3422
+ type SpinnerProps = {
2920
3423
  /**
2921
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.
2922
3425
  */
@@ -2934,7 +3437,7 @@ type Props$9 = {
2934
3437
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2935
3438
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2936
3439
  */
2937
- margin?: Space$1 | Margin;
3440
+ margin?: Space | Margin;
2938
3441
  /**
2939
3442
  * Available modes of the spinner.
2940
3443
  */
@@ -2950,11 +3453,9 @@ type Props$9 = {
2950
3453
  value?: number;
2951
3454
  };
2952
3455
 
2953
- declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$9) => react_jsx_runtime.JSX.Element;
3456
+ declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: SpinnerProps) => react.JSX.Element;
2954
3457
 
2955
- type Mode = "default" | "info" | "success" | "warning" | "error";
2956
- type Size = "small" | "medium" | "large";
2957
- type Props$8 = {
3458
+ type StatusLightProps = {
2958
3459
  /**
2959
3460
  * It will define the color of the light based on its semantic meaning.
2960
3461
  */
@@ -2966,12 +3467,16 @@ type Props$8 = {
2966
3467
  /**
2967
3468
  * Size of the component. Should be defined based on its importance and/or available space.
2968
3469
  */
2969
- size?: Size;
3470
+ size?: "small" | "medium" | "large";
2970
3471
  };
2971
3472
 
2972
- declare function DxcStatusLight({ label, mode, size }: Props$8): react_jsx_runtime.JSX.Element;
3473
+ declare function DxcStatusLight({ label, mode, size }: StatusLightProps): react.JSX.Element;
2973
3474
 
2974
- type Props$7 = {
3475
+ /**
3476
+ * Reference to the component.
3477
+ */
3478
+ type RefType$2 = React.Ref<HTMLDivElement>;
3479
+ type SwitchProps = {
2975
3480
  /**
2976
3481
  * Specifies a string to be used as the name for the switch element when no `label` is provided.
2977
3482
  */
@@ -3001,7 +3506,7 @@ type Props$7 = {
3001
3506
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3002
3507
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3003
3508
  */
3004
- margin?: Space$1 | Margin;
3509
+ margin?: Space | Margin;
3005
3510
  /**
3006
3511
  * Name attribute of the input element.
3007
3512
  */
@@ -3015,6 +3520,10 @@ type Props$7 = {
3015
3520
  * If true, the component will display '(Optional)' next to the label.
3016
3521
  */
3017
3522
  optional?: boolean;
3523
+ /**
3524
+ * Reference to the component.
3525
+ */
3526
+ ref?: RefType$2;
3018
3527
  /**
3019
3528
  * Size of the component.
3020
3529
  */
@@ -3030,44 +3539,78 @@ type Props$7 = {
3030
3539
  value?: string;
3031
3540
  };
3032
3541
 
3033
- declare const DxcSwitch: react.ForwardRefExoticComponent<Props$7 & react.RefAttributes<HTMLDivElement>>;
3034
-
3035
- declare const DxcTable: {
3036
- ({ children, margin, mode }: Props$t): react_jsx_runtime.JSX.Element;
3037
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
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;
3038
3545
  };
3039
3546
 
3040
- type TabLabelProps = {
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 = {
3041
3562
  /**
3042
- * Tab label.
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.
3043
3567
  */
3044
- label: string;
3568
+ actions: TableActionCell[];
3569
+ };
3570
+ type TableProps = {
3045
3571
  /**
3046
- * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3572
+ * The center section of the table. Can be used to render custom
3573
+ * content in this area.
3047
3574
  */
3048
- icon?: string | SVG;
3049
- };
3050
- type TabIconProps = {
3575
+ children: ReactNode;
3051
3576
  /**
3052
- * Tab label.
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.
3053
3579
  */
3054
- label?: string;
3580
+ margin?: Space | Margin;
3055
3581
  /**
3056
- * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3582
+ * Determines the visual style and layout
3583
+ * - "default": Default table size.
3584
+ * - "reduced": More compact table with less spacing for high density information.
3057
3585
  */
3058
- icon: string | SVG;
3586
+ mode?: "default" | "reduced";
3587
+ };
3588
+
3589
+ declare const DxcTable: {
3590
+ ({ children, margin, mode }: TableProps): react.JSX.Element;
3591
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
3059
3592
  };
3060
- type TabProps = {
3593
+
3594
+ type CommonTabProps = {
3061
3595
  defaultActive?: boolean;
3062
3596
  active?: boolean;
3063
3597
  title?: string;
3064
- tabId?: string;
3065
3598
  disabled?: boolean;
3066
3599
  notificationNumber?: boolean | number;
3067
3600
  children: ReactNode;
3068
3601
  onClick?: () => void;
3069
3602
  onHover?: () => void;
3070
- } & (TabLabelProps | TabIconProps);
3603
+ ref?: React.Ref<HTMLButtonElement>;
3604
+ };
3605
+ type TabsTabProps = PrettifyTypes<CommonTabProps & ({
3606
+ tabId: string;
3607
+ label?: string;
3608
+ icon?: string | SVG;
3609
+ } | (CommonTabProps & {
3610
+ tabId?: string;
3611
+ label: string;
3612
+ icon?: string | SVG;
3613
+ }))>;
3071
3614
  type TabsProps = {
3072
3615
  /**
3073
3616
  * Whether the icon should appear above or to the left of the label.
@@ -3077,7 +3620,7 @@ type TabsProps = {
3077
3620
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3078
3621
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3079
3622
  */
3080
- margin?: Space$1 | Margin;
3623
+ margin?: Space | Margin;
3081
3624
  /**
3082
3625
  * Value of the tabindex attribute applied to each tab.
3083
3626
  */
@@ -3087,14 +3630,20 @@ type TabsProps = {
3087
3630
  */
3088
3631
  children?: ReactNode;
3089
3632
  };
3090
- type Props$6 = TabsProps;
3091
3633
 
3092
3634
  declare const DxcTabs: {
3093
- ({ children, iconPosition, margin, tabIndex }: Props$6): react_jsx_runtime.JSX.Element;
3094
- Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
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
+ };
3095
3640
  };
3096
3641
 
3097
- type Props$5 = {
3642
+ /**
3643
+ * Reference to the component.
3644
+ */
3645
+ type RefType$1 = React.Ref<HTMLDivElement>;
3646
+ type TextAreaProps = {
3098
3647
  /**
3099
3648
  * Specifies a string to be used as the name for the textarea element when no `label` is provided.
3100
3649
  */
@@ -3143,7 +3692,7 @@ type Props$5 = {
3143
3692
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3144
3693
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3145
3694
  */
3146
- margin?: Space$1 | Margin;
3695
+ margin?: Space | Margin;
3147
3696
  /**
3148
3697
  * Specifies the minimum length allowed by the textarea.
3149
3698
  * This will be checked both when the textarea loses the
@@ -3203,6 +3752,10 @@ type Props$5 = {
3203
3752
  * If true, the component will not be mutable, meaning the user can not edit the control.
3204
3753
  */
3205
3754
  readOnly?: boolean;
3755
+ /**
3756
+ * Reference to the container element of the textarea component.
3757
+ */
3758
+ ref?: RefType$1;
3206
3759
  /**
3207
3760
  * Number of rows of the textarea.
3208
3761
  */
@@ -3228,25 +3781,12 @@ type Props$5 = {
3228
3781
  verticalGrow?: "auto" | "manual" | "none";
3229
3782
  };
3230
3783
 
3231
- declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
3232
-
3233
- type Action$1 = {
3234
- /**
3235
- * This function will be called when the user clicks the action.
3236
- */
3237
- onClick: () => void;
3238
- /**
3239
- * Icon to be placed in the action..
3240
- */
3241
- icon: string | SVG;
3242
- /**
3243
- * Text representing advisory information related
3244
- * to the button's action. Under the hood, this prop also serves
3245
- * as an accessible label for the component.
3246
- */
3247
- 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;
3248
3787
  };
3249
- type Props$4 = {
3788
+
3789
+ type TextInputProps = {
3250
3790
  /**
3251
3791
  * Sets the alignment inside the input.
3252
3792
  */
@@ -3293,6 +3833,10 @@ type Props$4 = {
3293
3833
  * and the custom action will not execute its onClick event.
3294
3834
  */
3295
3835
  readOnly?: boolean;
3836
+ /**
3837
+ * Ref to the input element.
3838
+ */
3839
+ ref?: React.Ref<HTMLInputElement>;
3296
3840
  /**
3297
3841
  * If true, the input will be optional, showing '(Optional)'
3298
3842
  * next to the label. Otherwise, the field will be considered required and an error will be
@@ -3364,27 +3908,123 @@ type Props$4 = {
3364
3908
  * length does not comply the specified range. If a valid length is
3365
3909
  * reached, the error parameter of both events will not be defined.
3366
3910
  */
3367
- 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;
3368
4008
  /**
3369
- * Specifies the maximum length allowed by the input.
3370
- * This will be checked both when the input element loses the
3371
- * focus and while typing within it. If the string entered does not
3372
- * comply the maximum length, the onBlur and onChange functions will be called
3373
- * with the current value and an internal error informing that the value
3374
- * length does not comply the specified range. If a valid length is
3375
- * 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.
3376
4013
  */
3377
- maxLength?: number;
4014
+ optional?: boolean;
3378
4015
  /**
3379
- * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
3380
- * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
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.
3381
4018
  */
3382
- autocomplete?: string;
4019
+ readOnly?: boolean;
3383
4020
  /**
3384
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3385
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
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.
3386
4026
  */
3387
- margin?: Space$1 | Margin;
4027
+ showSeconds?: boolean;
3388
4028
  /**
3389
4029
  * Size of the component.
3390
4030
  */
@@ -3394,12 +4034,16 @@ type Props$4 = {
3394
4034
  */
3395
4035
  tabIndex?: number;
3396
4036
  /**
3397
- * Specifies a string to be used as the name for the textInput element when no `label` is provided.
4037
+ * Time format of the input. It can be either 12 or 24.
3398
4038
  */
3399
- ariaLabel?: string;
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;
3400
4044
  };
3401
4045
 
3402
- declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
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;
3403
4047
 
3404
4048
  type Action = {
3405
4049
  /**
@@ -3425,24 +4069,35 @@ type CommonProps$1 = {
3425
4069
  */
3426
4070
  message: string;
3427
4071
  };
3428
- type DefaultToast = CommonProps$1 & {
4072
+ type DefaultToast = PrettifyTypes<CommonProps$1 & {
3429
4073
  /**
3430
4074
  * Material Symbol name or SVG element as the icon that will be placed next to the panel label.
3431
4075
  * When using Material Symbols, replace spaces with underscores.
3432
4076
  * By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
3433
4077
  */
3434
4078
  icon?: string | SVG;
3435
- };
3436
- type LoadingToast = CommonProps$1 & {
4079
+ }>;
4080
+ type LoadingToast = PrettifyTypes<CommonProps$1 & {
3437
4081
  loading: boolean;
3438
- };
3439
- type SemanticToast = CommonProps$1 & {
4082
+ }>;
4083
+ type SemanticToast = PrettifyTypes<CommonProps$1 & {
3440
4084
  /**
3441
4085
  * Flag that allows to hide the semantic icon of the toast.
3442
4086
  */
3443
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;
3444
4099
  };
3445
- type ToastsQueuePropsType = {
4100
+ type ToastsQueueProps = {
3446
4101
  /**
3447
4102
  * Tree of components from which the useToast hook can be triggered.
3448
4103
  */
@@ -3454,9 +4109,9 @@ type ToastsQueuePropsType = {
3454
4109
  duration?: number;
3455
4110
  };
3456
4111
 
3457
- declare function DxcToastsQueue({ children, duration }: ToastsQueuePropsType): react_jsx_runtime.JSX.Element;
4112
+ declare function DxcToastsQueue({ children, duration }: ToastsQueueProps): react.JSX.Element;
3458
4113
 
3459
- type OptionIcon = {
4114
+ type ToggleOptionIcon = {
3460
4115
  /**
3461
4116
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3462
4117
  */
@@ -3471,7 +4126,7 @@ type OptionIcon = {
3471
4126
  */
3472
4127
  title: string;
3473
4128
  };
3474
- type OptionLabel = {
4129
+ type ToggleOptionLabel = {
3475
4130
  /**
3476
4131
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3477
4132
  */
@@ -3486,7 +4141,7 @@ type OptionLabel = {
3486
4141
  */
3487
4142
  title?: never;
3488
4143
  };
3489
- type Option = {
4144
+ type ToggleOption = PrettifyTypes<{
3490
4145
  /**
3491
4146
  * If true, the option will be disabled.
3492
4147
  */
@@ -3495,17 +4150,17 @@ type Option = {
3495
4150
  * Number with the option inner value.
3496
4151
  */
3497
4152
  value: number;
3498
- } & (OptionIcon | OptionLabel);
4153
+ } & (ToggleOptionIcon | ToggleOptionLabel)>;
3499
4154
  type CommonProps = {
3500
4155
  /**
3501
4156
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3502
4157
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3503
4158
  */
3504
- margin?: Space$1 | Margin;
4159
+ margin?: Space | Margin;
3505
4160
  /**
3506
4161
  * An array of objects representing the selectable options.
3507
4162
  */
3508
- options: Option[];
4163
+ options: ToggleOption[];
3509
4164
  /**
3510
4165
  * The orientation of the toggle group.
3511
4166
  */
@@ -3555,11 +4210,11 @@ type SingleSelectionToggleGroup = {
3555
4210
  */
3556
4211
  value?: number;
3557
4212
  };
3558
- type Props$3 = CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup);
4213
+ type ToggleGroupProps = PrettifyTypes<CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup)>;
3559
4214
 
3560
- declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: Props$3): react_jsx_runtime.JSX.Element;
4215
+ declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: ToggleGroupProps): react.JSX.Element;
3561
4216
 
3562
- type Props$2 = {
4217
+ type TooltipProps = {
3563
4218
  /**
3564
4219
  * Content in which the Tooltip will be displayed.
3565
4220
  */
@@ -3574,9 +4229,9 @@ type Props$2 = {
3574
4229
  position?: "bottom" | "top" | "left" | "right";
3575
4230
  };
3576
4231
 
3577
- declare function DxcTooltip(props: Props$2): react_jsx_runtime.JSX.Element;
4232
+ declare const DxcTooltip: (props: TooltipProps) => react.JSX.Element;
3578
4233
 
3579
- type Props$1 = {
4234
+ type TypographyProps = {
3580
4235
  as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
3581
4236
  children: ReactNode;
3582
4237
  color?: string;
@@ -3593,9 +4248,9 @@ type Props$1 = {
3593
4248
  whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
3594
4249
  };
3595
4250
 
3596
- declare function DxcTypography({ children, ...props }: Props$1): react_jsx_runtime.JSX.Element;
4251
+ declare function DxcTypography({ children, ...props }: TypographyProps): react.JSX.Element;
3597
4252
 
3598
- type StepProps = {
4253
+ type WizardStepProps = {
3599
4254
  /**
3600
4255
  * Step label.
3601
4256
  */
@@ -3609,7 +4264,7 @@ type StepProps = {
3609
4264
  */
3610
4265
  icon?: string | SVG;
3611
4266
  /**
3612
- * Whether the step is disabled or not.
4267
+ * If true, the step will be disabled.
3613
4268
  */
3614
4269
  disabled?: boolean;
3615
4270
  /**
@@ -3617,7 +4272,7 @@ type StepProps = {
3617
4272
  */
3618
4273
  valid?: boolean;
3619
4274
  };
3620
- type Props = {
4275
+ type WizardProps = {
3621
4276
  /**
3622
4277
  * The wizard can be shown in horizontal or vertical.
3623
4278
  */
@@ -3638,38 +4293,46 @@ type Props = {
3638
4293
  /**
3639
4294
  * An array of objects representing the steps.
3640
4295
  */
3641
- steps: StepProps[];
4296
+ steps: WizardStepProps[];
3642
4297
  /**
3643
4298
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3644
4299
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3645
4300
  */
3646
- margin?: Space$1 | Margin;
4301
+ margin?: Space | Margin;
3647
4302
  /**
3648
4303
  * Value of the tabindex attribute that is given to all the steps.
3649
4304
  */
3650
4305
  tabIndex?: number;
3651
4306
  };
3652
4307
 
3653
- declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: Props): react_jsx_runtime.JSX.Element;
4308
+ declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: WizardProps): react.JSX.Element;
3654
4309
 
3655
4310
  declare const defaultTranslatedComponentLabels: {
3656
- applicationLayout: {
3657
- visibilityToggleTitle: string;
3658
- };
3659
4311
  alert: {
3660
4312
  previousMessageActionTitle: string;
3661
4313
  nextMessageActionTitle: string;
3662
4314
  closeAlertActionTitle: string;
3663
4315
  closeMessageActionTitle: string;
3664
4316
  };
4317
+ applicationLayout: {
4318
+ visibilityToggleTitle: string;
4319
+ };
4320
+ amountInput: {
4321
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
4322
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
4323
+ };
3665
4324
  calendar: {
3666
4325
  daysShort: string[];
3667
4326
  months: string[];
3668
4327
  previousMonthTitle: string;
3669
4328
  nextMonthTitle: string;
3670
4329
  };
4330
+ card: {
4331
+ noContent: string;
4332
+ };
3671
4333
  dateInput: {
3672
4334
  invalidDateErrorMessage: string;
4335
+ datePickerActionTitle: string;
3673
4336
  };
3674
4337
  dialog: {
3675
4338
  closeIconAriaLabel: string;
@@ -3692,13 +4355,21 @@ declare const defaultTranslatedComponentLabels: {
3692
4355
  requiredSelectionErrorMessage: string;
3693
4356
  requiredValueErrorMessage: string;
3694
4357
  formatRequestedErrorMessage: string;
3695
- lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3696
- logoAlternativeText: string;
4358
+ minLengthErrorMessage: (minLength: number) => string;
4359
+ maxLengthErrorMessage: (maxLength: number) => string;
3697
4360
  };
3698
4361
  header: {
3699
4362
  closeIcon: string;
3700
4363
  hamburgerTitle: string;
3701
4364
  };
4365
+ messageInput: {
4366
+ inputAriaLabel: string;
4367
+ sendButtonTitle: string;
4368
+ stopButtonTitle: string;
4369
+ attachFileButtonTitle: string;
4370
+ recordAudioButtonTitle: string;
4371
+ stopRecordingButtonTitle: string;
4372
+ };
3702
4373
  numberInput: {
3703
4374
  valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3704
4375
  valueLessThanOrEqualToErrorMessage: (value: number) => string;
@@ -3725,6 +4396,12 @@ declare const defaultTranslatedComponentLabels: {
3725
4396
  radioGroup: {
3726
4397
  optionalItemLabelDefault: string;
3727
4398
  };
4399
+ searchBar: {
4400
+ clearFieldActionTitle: string;
4401
+ inputAriaLabel: string;
4402
+ triggerTitle: string;
4403
+ cancelButtonLabel: string;
4404
+ };
3728
4405
  select: {
3729
4406
  actionClearSelectionTitle: string;
3730
4407
  actionClearSearchTitle: string;
@@ -3740,11 +4417,20 @@ declare const defaultTranslatedComponentLabels: {
3740
4417
  searchingMessage: string;
3741
4418
  fetchingDataErrorMessage: string;
3742
4419
  };
4420
+ timeInput: {
4421
+ timePickerActionTitle: string;
4422
+ timePeriodAM: string;
4423
+ timePeriodPM: string;
4424
+ };
3743
4425
  toast: {
3744
4426
  clearToastActionTitle: string;
3745
4427
  };
3746
4428
  };
3747
4429
  type TranslatedLabels = typeof defaultTranslatedComponentLabels;
4430
+ type LocalizedContext = {
4431
+ labels: TranslatedLabels;
4432
+ locale?: string;
4433
+ };
3748
4434
 
3749
4435
  /**
3750
4436
  * This type is used to allow labels objects to be passed to the HalstackProvider.
@@ -3753,103 +4439,18 @@ type TranslatedLabels = typeof defaultTranslatedComponentLabels;
3753
4439
  type DeepPartial<T> = {
3754
4440
  [P in keyof T]?: Partial<T[P]>;
3755
4441
  };
3756
- declare const HalstackLanguageContext: react.Context<{
3757
- applicationLayout: {
3758
- visibilityToggleTitle: string;
3759
- };
3760
- alert: {
3761
- previousMessageActionTitle: string;
3762
- nextMessageActionTitle: string;
3763
- closeAlertActionTitle: string;
3764
- closeMessageActionTitle: string;
3765
- };
3766
- calendar: {
3767
- daysShort: string[];
3768
- months: string[];
3769
- previousMonthTitle: string;
3770
- nextMonthTitle: string;
3771
- };
3772
- dateInput: {
3773
- invalidDateErrorMessage: string;
3774
- };
3775
- dialog: {
3776
- closeIconAriaLabel: string;
3777
- };
3778
- fileInput: {
3779
- fileSizeGreaterThanErrorMessage: string;
3780
- fileSizeLessThanErrorMessage: string;
3781
- multipleButtonLabelDefault: string;
3782
- singleButtonLabelDefault: string;
3783
- dropAreaButtonLabelDefault: string;
3784
- multipleDropAreaLabelDefault: string;
3785
- singleDropAreaLabelDefault: string;
3786
- deleteFileActionTitle: string;
3787
- };
3788
- footer: {
3789
- copyrightText: (year: number) => string;
3790
- };
3791
- formFields: {
3792
- optionalLabel: string;
3793
- requiredSelectionErrorMessage: string;
3794
- requiredValueErrorMessage: string;
3795
- formatRequestedErrorMessage: string;
3796
- lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3797
- logoAlternativeText: string;
3798
- };
3799
- header: {
3800
- closeIcon: string;
3801
- hamburgerTitle: string;
3802
- };
3803
- numberInput: {
3804
- valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3805
- valueLessThanOrEqualToErrorMessage: (value: number) => string;
3806
- decrementValueTitle: string;
3807
- incrementValueTitle: string;
3808
- };
3809
- paginator: {
3810
- itemsPerPageText: string;
3811
- minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
3812
- goToPageText: string;
3813
- pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
3814
- firstResultsTitle: string;
3815
- previousResultsTitle: string;
3816
- nextResultsTitle: string;
3817
- lastResultsTitle: string;
3818
- };
3819
- passwordInput: {
3820
- inputShowPasswordTitle: string;
3821
- inputHidePasswordTitle: string;
3822
- };
3823
- quickNav: {
3824
- contentTitle: string;
3825
- };
3826
- radioGroup: {
3827
- optionalItemLabelDefault: string;
3828
- };
3829
- select: {
3830
- actionClearSelectionTitle: string;
3831
- actionClearSearchTitle: string;
3832
- noMatchesErrorMessage: string;
3833
- selectAllLabel: string;
3834
- };
3835
- tabs: {
3836
- scrollLeft: string;
3837
- scrollRight: string;
3838
- };
3839
- textInput: {
3840
- clearFieldActionTitle: string;
3841
- searchingMessage: string;
3842
- fetchingDataErrorMessage: string;
3843
- };
3844
- toast: {
3845
- clearToastActionTitle: string;
3846
- };
3847
- }>;
4442
+ declare const HalstackLanguageContext: react.Context<LocalizedContext>;
4443
+ type ThemeType = {
4444
+ tokens?: Record<string, string | number>;
4445
+ logos?: Record<string, string | undefined>;
4446
+ };
3848
4447
  type HalstackProviderPropsType = {
3849
4448
  labels?: DeepPartial<TranslatedLabels>;
3850
4449
  children: ReactNode;
4450
+ opinionatedTheme?: ThemeType;
4451
+ localeTag?: string;
3851
4452
  };
3852
- declare const HalstackProvider: ({ labels, children }: HalstackProviderPropsType) => JSX.Element;
4453
+ declare const HalstackProvider: ({ labels, children, opinionatedTheme, localeTag, }: HalstackProviderPropsType) => JSX.Element;
3853
4454
 
3854
4455
  declare function useToast(): {
3855
4456
  default: (toast: DefaultToast) => (() => void) | undefined;
@@ -3859,4 +4460,547 @@ declare function useToast(): {
3859
4460
  loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
3860
4461
  };
3861
4462
 
3862
- export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcBadge, DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTextInput, DxcTextarea, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackLanguageContext, HalstackProvider, useToast };
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 };