@dxc-technology/halstack-react 0.0.0-327b6af → 0.0.0-331c804

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, 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;
14
13
  };
15
- type SVG = ReactNode & SVGProps<SVGSVGElement>;
14
+ type SVG = react__default.ReactNode & react__default.SVGProps<SVGSVGElement>;
15
+ type Size$1 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
16
+ type Shape = "circle" | "square";
17
+ type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
18
+ type Mode = "default" | "info" | "success" | "warning" | "error";
19
+ type Action$1 = {
20
+ /**
21
+ * This function will be called when the user clicks the action.
22
+ */
23
+ onClick: () => void;
24
+ /**
25
+ * Icon to be placed in the action..
26
+ */
27
+ icon: string | SVG;
28
+ /**
29
+ * Text representing advisory information related
30
+ * to the button's action. Under the hood, this prop also serves
31
+ * as an accessible label for the component.
32
+ */
33
+ title?: string;
34
+ };
35
+ /**
36
+ * Utility type to make complex types more readable in TypeScript.
37
+ */
38
+ type PrettifyTypes<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
16
41
 
17
42
  type AccordionItemProps = {
18
43
  /**
@@ -59,18 +84,18 @@ type AccordionItemProps = {
59
84
  */
60
85
  tabIndex?: number;
61
86
  };
62
- type CommonProps$9 = {
87
+ type CommonProps$a = {
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$a & {
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$a & {
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$K = IndependentProps | NonIndependentProps;
140
+ type AccordionProps = PrettifyTypes<IndependentProps | NonIndependentProps>;
116
141
 
117
142
  declare const DxcAccordion: {
118
- (props: Props$K): 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$3 = {
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$3 = {
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$9 = {
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$3;
183
+ primaryAction?: AlertAction;
159
184
  /**
160
185
  * Secondary action of the alert.
161
186
  */
162
- secondaryAction?: Action$3;
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,247 +217,23 @@ type ModeSpecificProps = {
192
217
  * and the presence of the onClose attribute is mandatory, since the management of the closing
193
218
  * of the alert relies completely on the user.
194
219
  */
195
- message: Required<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$J = CommonProps$8 & ModeSpecificProps;
202
-
203
- declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$J) => react_jsx_runtime.JSX.Element;
204
-
205
- type SearchBarProps = {
206
- /**
207
- * If true, the search bar input will be focused when rendered.
208
- */
209
- autoFocus?: boolean;
210
- /**
211
- * If true, the component will be disabled.
212
- */
213
- disabled?: boolean;
214
- /**
215
- * Function invoked when the search bar loses focus.
216
- */
217
- onBlur?: (value: string) => void;
218
- /**
219
- * Function invoked when the user cancels the search.
220
- */
221
- onCancel?: () => void;
222
- /**
223
- * Function invoked when the user changes the input value.
224
- */
225
- onChange?: (value: string) => void;
226
- /**
227
- * Function invoked when the Enter key is pressed.
228
- */
229
- onEnter?: (value: string) => void;
230
- /**
231
- * Placeholder text displayed in the search bar input field.
232
- */
233
- placeholder?: string;
234
- };
235
-
236
- type Section$1 = {
237
- items: (Item$2 | GroupItem$2)[];
238
- title?: string;
239
- };
240
- type SearchbarSidenavProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
241
- type Props$I = {
242
- /**
243
- * The content rendered in the bottom part of the sidenav, under the navigation menu.
244
- */
245
- bottomContent?: ReactNode;
246
- /**
247
- * Object with the properties of the branding placed at the top of the sidenav.
248
- */
249
- appTitle?: string | ReactNode;
250
- /**
251
- * Initial state of the expansion of the sidenav, only when it is uncontrolled.
252
- */
253
- defaultExpanded?: boolean;
254
- /**
255
- * If true the nav menu will have lines marking the groups.
256
- */
257
- displayGroupLines?: boolean;
258
- /**
259
- * If true, the sidenav is expanded.
260
- * If undefined the component will be uncontrolled and the value will be managed internally by the component.
261
- */
262
- expanded?: boolean;
263
- /**
264
- * Array of items to be displayed in the navigation menu.
265
- * Each item can be a single/simple item, a group item or a section.
266
- */
267
- navItems?: (Item$2 | GroupItem$2)[] | Section$1[];
268
- /**
269
- * Function called when the expansion state of the sidenav changes.
270
- */
271
- onExpandedChange?: (value: boolean) => void;
272
- /**
273
- * When provided, a search bar will be rendered at the top of the sidenav.
274
- */
275
- searchBar?: SearchbarSidenavProps;
276
- /**
277
- * The additional content rendered in the upper part of the sidenav, under the branding.
278
- */
279
- topContent?: ReactNode;
280
- };
281
- type CommonItemProps$1 = {
282
- badge?: ReactElement;
283
- icon?: string | SVG;
284
- label: string;
285
- };
286
- type Item$2 = CommonItemProps$1 & {
287
- onSelect?: () => void;
288
- selected?: boolean;
289
- };
290
- type GroupItem$2 = CommonItemProps$1 & {
291
- items: (Item$2 | GroupItem$2)[];
292
- };
293
-
294
- type CommonItemProps = {
295
- badge?: ReactElement;
296
- icon?: string | SVG;
297
- label: string;
298
- };
299
- type Item$1 = CommonItemProps & {
300
- onSelect?: () => void;
301
- selected?: boolean;
302
- href?: string;
303
- renderItem?: (props: {
304
- children: ReactNode;
305
- }) => ReactNode;
306
- };
307
- type GroupItem$1 = CommonItemProps & {
308
- items: (Item$1 | GroupItem$1)[];
309
- };
310
- type Section = {
311
- items: (Item$1 | GroupItem$1)[];
312
- title?: string;
313
- };
314
- type Props$H = {
315
- /**
316
- * Array of items to be displayed in the menu.
317
- * Each item can be a single/simple item, a group item or a section.
318
- */
319
- items: (Item$1 | GroupItem$1)[] | Section[];
320
- /**
321
- * If true the menu will be displayed with a border.
322
- */
323
- displayBorder?: boolean;
324
- /**
325
- * If true the menu will have lines marking the groups.
326
- */
327
- displayGroupLines?: boolean;
328
- /**
329
- * If true the menu will have controls at the end.
330
- */
331
- displayControlsAfter?: boolean;
332
- /**
333
- * If true the menu will be icons only and display a popover on click.
334
- */
335
- hasPopOver?: boolean;
336
- /**
337
- * If true the menu will be displayed horizontally.
338
- */
339
- isHorizontal?: boolean;
340
- };
226
+ type AlertProps = PrettifyTypes<CommonProps$9 & ModeSpecificProps>;
341
227
 
342
- type GroupItem = CommonItemProps & {
343
- items: Item$1[];
344
- };
345
- type MainNavPropsType = (GroupItem | Item$1)[];
346
- type SearchBarHeaderProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
347
- type Props$G = {
348
- appTitle?: string;
349
- navItems?: MainNavPropsType;
350
- responsiveBottomContent?: ReactNode;
351
- searchBar?: SearchBarHeaderProps;
352
- sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
353
- };
354
-
355
- type SocialLink = {
356
- /**
357
- * URL of the page the link goes to.
358
- */
359
- href: string;
360
- /**
361
- * Material Symbol name or SVG element as the icon used for the link.
362
- */
363
- logo: string | SVG;
364
- /**
365
- * Value for the HTML properties title and aria-label.
366
- */
367
- title: string;
368
- };
369
- type BottomLink = {
370
- /**
371
- * URL of the page the link goes to.
372
- */
373
- href: string;
374
- /**
375
- * Text for the link.
376
- */
377
- text: string;
378
- };
379
- type Logo = {
380
- /**
381
- * Source of the logo image.
382
- */
383
- src: string;
384
- /**
385
- * Alternative text for the logo image.
386
- */
387
- alt: string;
388
- };
389
- type FooterPropsType = {
390
- /**
391
- * An array of objects representing the links that will be rendered at
392
- * the bottom part of the footer.
393
- */
394
- bottomLinks?: BottomLink[];
395
- /**
396
- * The text that will be displayed as copyright disclaimer.
397
- */
398
- copyright?: string;
399
- /**
400
- * Content to be displayed on the left side of the footer under the logo.
401
- */
402
- leftContent?: ReactNode;
403
- /**
404
- * Logo to be displayed inside the footer
405
- */
406
- logo?: Logo;
407
- /**
408
- * Determines the visual style and layout
409
- * - "default": The default mode with full content and styling.
410
- * - "reduced": A reduced mode with minimal content and styling.
411
- */
412
- mode?: "default" | "reduced";
413
- /**
414
- * Content to be displayed on the right side of the footer before the socialLinks if provided.
415
- */
416
- rightContent?: ReactNode;
417
- /**
418
- * An array of objects representing the links that will be rendered as
419
- * icons at the top-right side of the footer.
420
- */
421
- socialLinks?: SocialLink[];
422
- /**
423
- * Value of the tabindex for all interactive elements, except those
424
- * inside the leftContent and rightContent.
425
- */
426
- tabIndex?: number;
427
- };
228
+ declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: AlertProps) => react.JSX.Element;
428
229
 
429
- type AppLayoutMainPropsType = {
230
+ type AppLayoutMainProps = {
430
231
  /**
431
232
  * Everything between the tags will be displayed as the content of the main part of the application.
432
233
  */
433
234
  children: ReactNode;
434
235
  };
435
- type LogoPropsType = {
236
+ type AppLayoutLogo = {
436
237
  /**
437
238
  * Alternative text for the logo image.
438
239
  */
@@ -450,11 +251,21 @@ type LogoPropsType = {
450
251
  */
451
252
  src: string | SVG;
452
253
  };
453
- type ApplicationLayoutPropsType = {
254
+ type AppLayoutSidenavProps = {
255
+ /**
256
+ * The area inside the sidenav. This area can be used to render the content inside the sidenav.
257
+ */
258
+ children: ReactNode;
259
+ /**
260
+ * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
261
+ */
262
+ title?: ReactNode;
263
+ };
264
+ type ApplicationLayoutProps = {
454
265
  /**
455
266
  * Logo properties.
456
267
  */
457
- logo?: LogoPropsType;
268
+ logo?: AppLayoutLogo;
458
269
  /**
459
270
  * Header content.
460
271
  */
@@ -470,25 +281,22 @@ type ApplicationLayoutPropsType = {
470
281
  /**
471
282
  * Use the DxcApplicationLayout.Main provided to render main content.
472
283
  */
473
- children: ReactElement<AppLayoutMainPropsType>;
284
+ children: ReactElement<AppLayoutMainProps>;
474
285
  };
475
286
 
476
287
  declare const DxcApplicationLayout: {
477
- ({ logo, header, sidenav, footer, children }: ApplicationLayoutPropsType): JSX.Element;
478
- Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
479
- Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: Props$G) => JSX.Element;
480
- Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
481
- Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: Props$I) => JSX.Element;
288
+ ({ logo, header, sidenav, footer, children }: ApplicationLayoutProps): JSX.Element;
289
+ Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, variant, tabIndex, }: FooterProps) => JSX.Element;
290
+ Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: HeaderProps) => JSX.Element;
291
+ Main: ({ children }: AppLayoutMainProps) => JSX.Element;
292
+ Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: SidenavProps) => JSX.Element;
482
293
  };
483
294
 
484
- type Size$6 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
485
- type Shape = "circle" | "square";
486
- type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
487
- interface Status {
488
- mode: "default" | "info" | "success" | "warning" | "error";
295
+ type AvatarStatus = {
296
+ mode: Mode;
489
297
  position: "top" | "bottom";
490
- }
491
- type Props$F = {
298
+ };
299
+ type AvatarProps = {
492
300
  /**
493
301
  * Affects the visual style of the avatar. It can be used following semantic purposes or not.
494
302
  */
@@ -522,6 +330,10 @@ type Props$F = {
522
330
  * Text to be displayed as label next to the avatar.
523
331
  */
524
332
  primaryText?: string;
333
+ /**
334
+ * Ref to the avatar container element.
335
+ */
336
+ ref?: Ref<HTMLDivElement>;
525
337
  /**
526
338
  * Text to be displayed as sublabel next to the avatar.
527
339
  */
@@ -533,12 +345,12 @@ type Props$F = {
533
345
  /**
534
346
  * Size of the component.
535
347
  */
536
- size?: Size$6;
348
+ size?: Size$1;
537
349
  /**
538
350
  * Defines the color of the status indicator displayed on the avatar and where it will be placed.
539
351
  * If not provided, no indicator will be rendered.
540
352
  */
541
- status?: Status;
353
+ status?: AvatarStatus;
542
354
  /**
543
355
  * Value of the tabindex attribute. It will only apply when the onClick property is passed.
544
356
  */
@@ -549,9 +361,27 @@ type Props$F = {
549
361
  title?: string;
550
362
  };
551
363
 
552
- declare const DxcAvatar: react.MemoExoticComponent<({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, secondaryText, shape, size, status, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element>;
364
+ declare const DxcAvatar: ({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, ref, secondaryText, shape, size, status, tabIndex, title, }: AvatarProps) => react.JSX.Element;
553
365
 
554
- type ContextualProps = {
366
+ type CommonProps$8 = {
367
+ /**
368
+ * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
369
+ */
370
+ title?: string;
371
+ /**
372
+ * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
373
+ */
374
+ icon?: string | SVG;
375
+ /**
376
+ * Ref to be forwarded to the badge container element.
377
+ */
378
+ ref?: React.Ref<HTMLDivElement>;
379
+ /**
380
+ * Size of the component.
381
+ */
382
+ size?: "small" | "medium" | "large";
383
+ };
384
+ type ContextualBadgeProps = CommonProps$8 & {
555
385
  /**
556
386
  * Text to be placed in the badge.
557
387
  */
@@ -567,9 +397,9 @@ type ContextualProps = {
567
397
  /**
568
398
  * Affects the visual style of the badge. It can be used following semantic purposes or not.
569
399
  */
570
- color?: "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
400
+ color?: Color;
571
401
  };
572
- type NotificationProps = {
402
+ type NotificationBadgeProps = CommonProps$8 & {
573
403
  /**
574
404
  * Text to be placed in the badge.
575
405
  */
@@ -587,33 +417,19 @@ type NotificationProps = {
587
417
  */
588
418
  color?: never;
589
419
  };
590
- type CommonProps$7 = {
420
+ type BadgeProps = PrettifyTypes<ContextualBadgeProps> | PrettifyTypes<NotificationBadgeProps>;
421
+
422
+ declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, ref, size, }: BadgeProps) => react.JSX.Element;
423
+
424
+ type BleedProps = {
591
425
  /**
592
- * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
426
+ * Applies the spacing scale to all sides.
593
427
  */
594
- title?: string;
428
+ space?: string;
595
429
  /**
596
- * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
430
+ * Applies the spacing scale to the left and right sides.
597
431
  */
598
- icon?: string | SVG;
599
- /**
600
- * Size of the component.
601
- */
602
- size?: "small" | "medium" | "large";
603
- };
604
- type Props$E = (ContextualProps | NotificationProps) & CommonProps$7;
605
-
606
- declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$E) => JSX.Element;
607
-
608
- type Props$D = {
609
- /**
610
- * Applies the spacing scale to all sides.
611
- */
612
- space?: string;
613
- /**
614
- * Applies the spacing scale to the left and right sides.
615
- */
616
- horizontal?: string;
432
+ horizontal?: string;
617
433
  /**
618
434
  * Applies the spacing scale to the top and bottom sides.
619
435
  */
@@ -640,13 +456,13 @@ type Props$D = {
640
456
  children: ReactNode;
641
457
  };
642
458
 
643
- declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$D) => react_jsx_runtime.JSX.Element;
459
+ declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: BleedProps) => react.JSX.Element;
644
460
 
645
- type Item = {
461
+ type BreadcrumbsItem = {
646
462
  href?: string;
647
463
  label: string;
648
464
  };
649
- type Props$C = {
465
+ type BreadcrumbsProps = {
650
466
  /**
651
467
  * Provides a label that describes the type of navigation enabled by
652
468
  * the component.
@@ -655,7 +471,7 @@ type Props$C = {
655
471
  /**
656
472
  * Array of objects representing the items of the breadcrumbs.
657
473
  */
658
- items: Item[];
474
+ items: BreadcrumbsItem[];
659
475
  /**
660
476
  * Number of items before showing a collapsed version of the
661
477
  * breadcrumbs. It can't be lower than two (root/collapsed action and
@@ -677,10 +493,14 @@ type Props$C = {
677
493
  */
678
494
  showRoot?: boolean;
679
495
  };
496
+ type BreadcrumbsItemProps = PrettifyTypes<BreadcrumbsItem & {
497
+ isCurrentPage?: boolean;
498
+ onClick?: (href: string) => void;
499
+ }>;
680
500
 
681
- declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$C) => react_jsx_runtime.JSX.Element;
501
+ declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: BreadcrumbsProps) => react.JSX.Element;
682
502
 
683
- type IconProps = {
503
+ type BulletedListIconProps = {
684
504
  /**
685
505
  * Defines the style of the bullet point in the list.
686
506
  */
@@ -694,7 +514,7 @@ type IconProps = {
694
514
  */
695
515
  children: ReactNode;
696
516
  };
697
- type OtherProps = {
517
+ type BulletedListWithoutIconProps = {
698
518
  /**
699
519
  * Defines the style of the bullet point in the list.
700
520
  */
@@ -708,8 +528,8 @@ type OtherProps = {
708
528
  */
709
529
  children: ReactNode;
710
530
  };
711
- type Props$B = IconProps | OtherProps;
712
- type BulletedListItemPropsType = {
531
+ type BulletedListProps = PrettifyTypes<BulletedListIconProps | BulletedListWithoutIconProps>;
532
+ type BulletedListItemProps = {
713
533
  /**
714
534
  * Text to be shown in the list.
715
535
  */
@@ -717,40 +537,65 @@ type BulletedListItemPropsType = {
717
537
  };
718
538
 
719
539
  declare const DxcBulletedList: {
720
- ({ children, type, icon }: Props$B): JSX.Element;
721
- Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
540
+ ({ children, type, icon }: BulletedListProps): JSX.Element;
541
+ Item: ({ children }: BulletedListItemProps) => JSX.Element;
722
542
  };
723
543
 
724
- type Semantic = "default" | "error" | "warning" | "success" | "info";
725
- type Mode$1 = "primary" | "secondary" | "tertiary";
726
- type Size$5 = {
544
+ type ButtonSemantic = "default" | "error" | "warning" | "success" | "info";
545
+ type ButtonMode = "primary" | "secondary" | "tertiary";
546
+ type ButtonSize = {
727
547
  /**
728
548
  * Height of the button.
729
549
  */
730
550
  height?: "small" | "medium" | "large";
731
551
  width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
732
552
  };
733
- type Props$A = {
553
+ type ButtonProps = {
554
+ /**
555
+ * If true, the component will be disabled.
556
+ */
557
+ disabled?: boolean;
558
+ /**
559
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
560
+ */
561
+ icon?: string | SVG;
562
+ /**
563
+ * Whether the icon should appear after or before the label.
564
+ */
565
+ iconPosition?: "before" | "after";
734
566
  /**
735
567
  * Text to be placed in the button.
736
568
  */
737
569
  label?: string;
570
+ /**
571
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
572
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
573
+ */
574
+ margin?: Space | Margin;
738
575
  /**
739
576
  * The available button modes.
740
577
  */
741
- mode?: Mode$1;
578
+ mode?: ButtonMode;
579
+ /**
580
+ * This function will be called when the user clicks the button.
581
+ */
582
+ onClick?: () => void;
583
+ /**
584
+ * ref to the button element.
585
+ */
586
+ ref?: React.Ref<HTMLButtonElement>;
742
587
  /**
743
588
  * Specifies the semantic meaning of the buttons, which determines its color.
744
589
  */
745
- semantic?: Semantic;
590
+ semantic?: ButtonSemantic;
746
591
  /**
747
- * If true, the component will be disabled.
592
+ * Size of the component.
748
593
  */
749
- disabled?: boolean;
594
+ size?: ButtonSize;
750
595
  /**
751
- * Whether the icon should appear after or before the label.
596
+ * Value of the tabindex attribute.
752
597
  */
753
- iconPosition?: "before" | "after";
598
+ tabIndex?: number;
754
599
  /**
755
600
  * Value for the HTML properties title and aria-label.
756
601
  */
@@ -759,94 +604,179 @@ type Props$A = {
759
604
  * 'type' html prop of the button.
760
605
  */
761
606
  type?: "button" | "reset" | "submit";
607
+ };
608
+
609
+ declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, ref, semantic, size, tabIndex, title, type, }: ButtonProps) => react.JSX.Element;
610
+
611
+ type ImageProps = {
762
612
  /**
763
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
613
+ * Alternative text description displayed when the specified image is not loaded.
614
+ *
615
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
616
+ * See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
764
617
  */
765
- icon?: string | SVG;
618
+ alt: string;
766
619
  /**
767
- * This function will be called when the user clicks the button.
620
+ * Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
621
+ * which is required regardless of the presence of the caption or not.
768
622
  */
769
- onClick?: () => void;
623
+ caption?: string;
770
624
  /**
771
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
772
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
625
+ * Sets the rendered height of the image.
773
626
  */
774
- margin?: Space$1 | Margin;
627
+ height?: string;
775
628
  /**
776
- * Size of the component.
629
+ * If true, the image will be loaded only when it is visible on the screen (lazy loading).
630
+ * Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
777
631
  */
778
- size?: Size$5;
632
+ lazyLoading?: boolean;
779
633
  /**
780
- * Value of the tabindex attribute.
634
+ * Sets the object-fit CSS property.
635
+ *
636
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
781
637
  */
782
- tabIndex?: number;
638
+ objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
639
+ /**
640
+ * Sets the object-position CSS property.
641
+ *
642
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
643
+ */
644
+ objectPosition?: string;
645
+ /**
646
+ * This function will be called when the image fails to load.
647
+ */
648
+ onError?: ReactEventHandler<HTMLImageElement>;
649
+ /**
650
+ * This function will be called when the image is loaded.
651
+ */
652
+ onLoad?: ReactEventHandler<HTMLImageElement>;
653
+ /**
654
+ * One or more strings separated by commas, indicating a set of source sizes.
655
+ * If the srcSet attribute is absent or contains no values with a width descriptor,
656
+ * then this attribute has no effect.
657
+ *
658
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
659
+ */
660
+ sizes?: string;
661
+ /**
662
+ * URL of the image. This prop is required and must be valid.
663
+ */
664
+ src: string;
665
+ /**
666
+ * List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
667
+ *
668
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
669
+ */
670
+ srcSet?: string;
671
+ /**
672
+ * Sets the rendered width of the image.
673
+ */
674
+ width?: string;
783
675
  };
784
676
 
785
- declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$A) => JSX.Element;
786
-
787
- type Size$4 = {
788
- top?: Space$1;
789
- bottom?: Space$1;
790
- left?: Space$1;
791
- right?: Space$1;
677
+ type Size = {
678
+ width?: "fillParent" | "fitContent";
679
+ height?: "fillParent" | "fitContent";
792
680
  };
793
- type Props$z = {
681
+ type CardProps = {
794
682
  /**
795
- * URL of the image that will be placed in the card component.
796
- * In case of omission, the image container will not appear and
797
- * the content will occupy its space.
683
+ * Custom content that will be placed inside the component.
798
684
  */
799
- imageSrc?: string;
685
+ children?: ReactNode;
686
+ /**
687
+ * Initial state of the checkbox, only when it is uncontrolled.
688
+ */
689
+ defaultSelected?: boolean;
690
+ /**
691
+ * Defines the direction of the content inside the card. It can be set to "row" or "column". The default value is "column".
692
+ */
693
+ direction?: "row" | "column";
694
+ /**
695
+ * Defines the size of the card when it is empty.
696
+ */
697
+ emptySize?: {
698
+ width?: string;
699
+ height?: string;
700
+ iconSize?: "small" | "medium" | "large";
701
+ };
800
702
  /**
801
- * Color of the image background.
703
+ * URL to navigate to when the card is clicked.
704
+ * If href is defined selectable will be ignored and the link will be always considered as an anchor.
802
705
  */
803
- imageBgColor?: string;
706
+ href?: string;
804
707
  /**
805
- * Size of the padding to be applied to the image section of the
806
- * component. You can pass an object with 'top', 'bottom', 'left'
807
- * and 'right' properties in order to specify different padding sizes.
708
+ * Image to be displayed inside the card.
808
709
  */
809
- imagePadding?: Space$1 | Size$4;
710
+ image?: ImageProps;
810
711
  /**
811
- * Whether the image should appear in relation to the content.
712
+ * Position of the image inside the card. It can be set to "before" or "after" the content.
812
713
  */
813
714
  imagePosition?: "before" | "after";
814
715
  /**
815
- * If defined, the tag will be displayed as an anchor, using this prop
816
- * as "href". Component will show some visual feedback on hover.
716
+ * If true, the card will be displayed as empty state.
817
717
  */
818
- linkHref?: string;
718
+ isEmpty?: boolean;
819
719
  /**
820
- * This function will be called when the user clicks the card. Component
821
- * will show some visual feedback on hover.
720
+ * If true, a loading state will be displayed inside the card.
822
721
  */
823
- onClick?: () => void;
722
+ isLoading?: boolean;
824
723
  /**
825
- * Whether the image must cover the whole image area of the card.
724
+ * Defines the size of the loading card when isLoading is true.
826
725
  */
827
- imageCover?: boolean;
726
+ loadingSize?: {
727
+ width?: string;
728
+ height?: string;
729
+ };
828
730
  /**
829
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
830
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
731
+ * Defines the visual style of the card. It can be set to "elevated" or "outlined".
831
732
  */
832
- margin?: Space$1 | Size$4;
733
+ mode?: "elevated" | "outlined";
833
734
  /**
834
- * Value of the tabindex attribute applied when the component is clickable.
735
+ * If true, the link will open in a new window. href must be provided for this to work.
835
736
  */
836
- tabIndex?: number;
737
+ newWindow?: boolean;
837
738
  /**
838
- * Determines whether or not the component should have an outline.
739
+ * Callback function that is called when the card is clicked.
740
+ * It receives a boolean value indicating whether the card is selected or not.
741
+ * selectable must be true for this to work.
839
742
  */
840
- outlined?: boolean;
743
+ onSelectionChange?: (selected: boolean) => void;
841
744
  /**
842
- * Custom content that will be placed inside the component.
745
+ * Callback function that is called when the card is clicked.
843
746
  */
844
- children?: ReactNode;
747
+ onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
748
+ /**
749
+ * Ref to the card element.
750
+ */
751
+ ref?: React.Ref<HTMLDivElement | HTMLAnchorElement>;
752
+ /**
753
+ * If true, the card can be selected. When the card is clicked, the onSelectionChange callback will be called with the new selected state of the card.
754
+ * If href is defined, the card won't be selectable, even if this prop is true.
755
+ */
756
+ selectable?: boolean;
757
+ /**
758
+ * If true, the card is selected and if defined it will behave as a controlled component.
759
+ */
760
+ selected?: boolean;
761
+ /**
762
+ * Defines the size of the card. Width and height can be set to "fillParent" or "fitContent".
763
+ * The default value is { width: "fitContent", height: "fitContent" }.
764
+ */
765
+ size?: Size;
766
+ /**
767
+ * Specifies the tab index of the card.
768
+ * The default value is 0.
769
+ */
770
+ tabIndex?: number;
845
771
  };
846
772
 
847
- declare const DxcCard: ({ imageSrc, imageBgColor, imagePadding, imagePosition, linkHref, onClick, imageCover, margin, tabIndex, outlined, children, }: Props$z) => react_jsx_runtime.JSX.Element;
773
+ declare const DxcCard: ({ children, defaultSelected, direction, emptySize, href, imagePosition, image, isEmpty, isLoading, loadingSize, mode, newWindow, onSelectionChange, onClick, ref, selectable, selected, size, tabIndex, }: CardProps) => react.JSX.Element;
848
774
 
849
- type Props$y = {
775
+ /**
776
+ * Reference to the component.
777
+ */
778
+ type RefType$a = HTMLDivElement;
779
+ type CheckboxProps = {
850
780
  /**
851
781
  * Specifies a string to be used as the name for the checkbox element when no `label` is provided.
852
782
  */
@@ -878,7 +808,7 @@ type Props$y = {
878
808
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
879
809
  * in order to specify different margin sizes.
880
810
  */
881
- margin?: Space$1 | Margin;
811
+ margin?: Space | Margin;
882
812
  /**
883
813
  * Name attribute of the input element.
884
814
  */
@@ -896,6 +826,10 @@ type Props$y = {
896
826
  * If true, the component will not be mutable, meaning the user can not edit the control.
897
827
  */
898
828
  readOnly?: boolean;
829
+ /**
830
+ * ref to the checkbox container element.
831
+ */
832
+ ref?: React.Ref<RefType$a>;
899
833
  /**
900
834
  * Size of the component.
901
835
  */
@@ -911,78 +845,97 @@ type Props$y = {
911
845
  value?: string;
912
846
  };
913
847
 
914
- declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
848
+ declare const DxcCheckbox: {
849
+ ({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, readOnly, ref, size, tabIndex, value, }: CheckboxProps): react.JSX.Element;
850
+ displayName: string;
851
+ };
915
852
 
916
- type Size$3 = "small" | "medium" | "large";
917
853
  type ChipAvatarType = {
918
- color: Props$F["color"];
919
- profileName?: Props$F["label"];
920
- imageSrc?: Props$F["imageSrc"];
921
- icon?: Props$F["icon"];
854
+ color: AvatarProps["color"];
855
+ profileName?: AvatarProps["label"];
856
+ imageSrc?: AvatarProps["imageSrc"];
857
+ icon?: AvatarProps["icon"];
922
858
  };
923
- type Action$2 = {
859
+ type CommonProps$7 = {
924
860
  /**
925
- * Icon to be placed in the action.
861
+ * Function to be called when the chip is clicked or the dismiss action is triggered.
926
862
  */
927
- icon: string | SVG;
863
+ onClick?: () => void;
928
864
  /**
929
- * This function will be called when the user clicks the action.
865
+ * Ref to the chip element.
930
866
  */
931
- onClick: () => void;
867
+ ref?: React.Ref<HTMLDivElement>;
932
868
  /**
933
- * Text representing advisory information related
934
- * to the button's action. Under the hood, this prop also serves
935
- * as an accessible label for the component.
869
+ * Value of the tabindex attribute.
936
870
  */
937
- title?: string;
871
+ tabIndex?: number;
938
872
  };
939
- type Props$x = {
940
- /**
941
- * Action to be displayed on the right side of the chip after the label.
942
- */
943
- action?: Action$2;
873
+ type SelectableChipProps = PrettifyTypes<CommonProps$7 & {
944
874
  /**
945
875
  * If true, the component will be disabled.
946
876
  */
947
877
  disabled?: boolean;
948
878
  /**
949
- * Text to be placed on the chip.
879
+ * The whole chip is an interactive element that allows users to activate or clear options directly within the interface.
950
880
  */
951
- label: string;
881
+ mode?: "selectable";
952
882
  /**
953
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
954
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
883
+ * If true, the component will be selected. This property is only applicable when the mode is "selectable".
884
+ * If undefined, the component manages its own internal state (uncontrolled mode).
955
885
  */
956
- margin?: Space$1 | Margin;
886
+ selected?: boolean;
887
+ } & ({
957
888
  /**
958
889
  * Element, path or avatar used as icon to be placed before the chip label.
959
890
  */
960
- prefix?: string | SVG | ChipAvatarType;
891
+ prefix: ChipAvatarType;
961
892
  /**
962
- * Size of the component.
893
+ * Text to be placed on the chip. Required when using an avatar prefix.
963
894
  */
964
- size?: Size$3;
895
+ label: string;
896
+ } | {
965
897
  /**
966
- * Value of the tabindex attribute.
898
+ * Element or path used as icon to be placed before the chip label.
967
899
  */
968
- tabIndex?: number;
969
- };
900
+ prefix: string | SVG;
901
+ /**
902
+ * Text to be placed on the chip. Optional when using an icon prefix.
903
+ */
904
+ label?: string;
905
+ } | {
906
+ prefix?: undefined;
907
+ /**
908
+ * Text to be placed on the chip.
909
+ */
910
+ label: string;
911
+ })>;
912
+ type DismissibleChipProps = PrettifyTypes<CommonProps$7 & {
913
+ /**
914
+ * Dismissible chip is used to represent information generated by user input within an interface.
915
+ */
916
+ mode: "dismissible";
917
+ /**
918
+ * Text to be placed on the chip.
919
+ */
920
+ label: string;
921
+ /**
922
+ * Element, path or avatar used as icon to be placed before the chip label.
923
+ */
924
+ prefix?: string | SVG | ChipAvatarType;
925
+ selected?: never;
926
+ disabled?: never;
927
+ }>;
928
+ type ChipProps = PrettifyTypes<SelectableChipProps | DismissibleChipProps>;
970
929
 
971
- declare const DxcChip: ({ action, disabled, label, margin, prefix, size, tabIndex }: Props$x) => react_jsx_runtime.JSX.Element;
930
+ declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, ref, }: ChipProps) => react.JSX.Element | null;
972
931
 
973
- type Space = {
974
- top?: string;
975
- right?: string;
976
- bottom?: string;
977
- left?: string;
978
- };
979
- type Inset = {
932
+ type ContainerSpacing = {
980
933
  top?: string;
981
934
  right?: string;
982
935
  bottom?: string;
983
936
  left?: string;
984
937
  };
985
- type Background = {
938
+ type ContainerBackground = {
986
939
  attachment?: string;
987
940
  clip?: string;
988
941
  color?: string;
@@ -992,36 +945,36 @@ type Background = {
992
945
  repeat?: string;
993
946
  size?: string;
994
947
  };
995
- type BorderProperties = {
948
+ type ContainerBorderProperties = {
996
949
  width?: string;
997
950
  style?: string;
998
951
  color?: string;
999
952
  };
1000
- type Border = BorderProperties | {
1001
- top?: BorderProperties;
1002
- right?: BorderProperties;
1003
- bottom?: BorderProperties;
1004
- left?: BorderProperties;
1005
- };
1006
- type Outline = BorderProperties & {
953
+ type ContainerBorder = PrettifyTypes<ContainerBorderProperties | {
954
+ top?: ContainerBorderProperties;
955
+ right?: ContainerBorderProperties;
956
+ bottom?: ContainerBorderProperties;
957
+ left?: ContainerBorderProperties;
958
+ }>;
959
+ type ContainerOutline = PrettifyTypes<ContainerBorderProperties & {
1007
960
  offset?: string;
1008
- };
961
+ }>;
1009
962
  type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
1010
- type Overflow = OverflowValues | {
963
+ type ContainerOverflow = PrettifyTypes<OverflowValues | {
1011
964
  x?: OverflowValues;
1012
965
  y?: OverflowValues;
1013
- };
1014
- type Props$w = {
966
+ }>;
967
+ type ContainerProps = {
1015
968
  /**
1016
969
  * Based on the CSS property background allows configuring all properties related to the background of a container.
1017
970
  *
1018
971
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
1019
972
  */
1020
- background?: Background;
973
+ background?: ContainerBackground;
1021
974
  /**
1022
975
  * Based on the CSS property border allows configuring all properties related to the border of a container.
1023
976
  */
1024
- border?: Border;
977
+ border?: ContainerBorder;
1025
978
  /**
1026
979
  * Sets the border-radius CSS property.
1027
980
  *
@@ -1044,6 +997,10 @@ type Props$w = {
1044
997
  * Custom content inside the container.
1045
998
  */
1046
999
  children?: ReactNode;
1000
+ /**
1001
+ * Reference to the container element.
1002
+ */
1003
+ ref?: Ref<HTMLDivElement>;
1047
1004
  /**
1048
1005
  * Sets the display CSS property.
1049
1006
  * The set of values is limited to the ones related to the outer display type.
@@ -1069,11 +1026,11 @@ type Props$w = {
1069
1026
  * Based on the CSS property inset this prop is a shorthand that corresponds
1070
1027
  * to the top, right, bottom, and/or left properties.
1071
1028
  */
1072
- inset?: Inset;
1029
+ inset?: ContainerSpacing;
1073
1030
  /**
1074
1031
  * Size of the margin to be applied to the container.
1075
1032
  */
1076
- margin?: string | Space;
1033
+ margin?: string | ContainerSpacing;
1077
1034
  /**
1078
1035
  * Sets the max-width CSS property.
1079
1036
  *
@@ -1102,17 +1059,17 @@ type Props$w = {
1102
1059
  * Based on the CSS property outline allows configuring all properties related
1103
1060
  * to the outline of a container.
1104
1061
  */
1105
- outline?: Outline;
1062
+ outline?: ContainerOutline;
1106
1063
  /**
1107
1064
  * Sets the overflow CSS property.
1108
1065
  *
1109
1066
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
1110
1067
  */
1111
- overflow?: Overflow;
1068
+ overflow?: ContainerOverflow;
1112
1069
  /**
1113
1070
  * Size of the padding to be applied to the container.
1114
1071
  */
1115
- padding?: string | Space;
1072
+ padding?: string | ContainerSpacing;
1116
1073
  /**
1117
1074
  * Sets the position CSS property.
1118
1075
  *
@@ -1133,130 +1090,67 @@ type Props$w = {
1133
1090
  zIndex?: "auto" | number;
1134
1091
  };
1135
1092
 
1136
- declare const DxcContainer: react.ForwardRefExoticComponent<Props$w & react.RefAttributes<HTMLDivElement>>;
1137
-
1138
- type Props$v = Omit<Props$H, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
1139
-
1140
- declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
1093
+ declare const DxcContainer: ({ display, width, height, overflow, ref, ...props }: ContainerProps) => react.JSX.Element;
1141
1094
 
1142
- type Size$2 = "small" | "medium" | "large" | "fillParent" | "fitContent";
1143
- type Option$2 = {
1144
- /**
1145
- * Option display value.
1146
- */
1147
- label?: string;
1148
- /**
1149
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
1150
- */
1095
+ type BaseCommonItemProps = {
1096
+ badge?: ReactElement;
1151
1097
  icon?: string | SVG;
1152
- /**
1153
- * Option inner value.
1154
- */
1155
- value: string;
1098
+ label: string;
1099
+ };
1100
+ type BaseItem = PrettifyTypes<BaseCommonItemProps & {
1101
+ onSelect?: () => void;
1102
+ selected?: boolean;
1103
+ href?: string;
1104
+ renderItem?: (props: {
1105
+ children: ReactNode;
1106
+ }) => ReactNode;
1107
+ }>;
1108
+ type BaseGroupItem = PrettifyTypes<BaseCommonItemProps & {
1109
+ items: (BaseItem | BaseGroupItem)[];
1110
+ defaultOpen?: boolean;
1111
+ }>;
1112
+ type BaseSection = {
1113
+ items: (BaseItem | BaseGroupItem)[];
1114
+ title?: string;
1156
1115
  };
1157
- type Props$u = {
1116
+ type BaseMenuProps = {
1158
1117
  /**
1159
- * An array of objects representing the options.
1118
+ * Array of items to be displayed in the menu.
1119
+ * Each item can be a single/simple item, a group item or a section.
1160
1120
  */
1161
- options: Option$2[];
1121
+ items: (BaseItem | BaseGroupItem)[] | BaseSection[];
1162
1122
  /**
1163
- * In case options include icons, whether the icon should appear
1164
- * after or before the label.
1123
+ * If true the menu will be displayed with a border.
1165
1124
  */
1166
- optionsIconPosition?: "before" | "after";
1125
+ displayBorder?: boolean;
1167
1126
  /**
1168
- * Material Symbol name or SVG element as the icon that will be placed next to the label.
1127
+ * If true the menu will have lines marking the groups.
1169
1128
  */
1170
- icon?: string | SVG;
1129
+ displayGroupLines?: boolean;
1171
1130
  /**
1172
- * Whether the icon should appear after or before the label.
1131
+ * If true the menu will have controls at the end.
1173
1132
  */
1174
- iconPosition?: "before" | "after";
1133
+ displayControlsAfter?: boolean;
1175
1134
  /**
1176
- * Text to be placed within the dropdown.
1135
+ * If true the menu will be icons only and display a popover on click.
1177
1136
  */
1178
- label?: string;
1137
+ hasPopOver?: boolean;
1179
1138
  /**
1180
- * Whether the arrow next to the label must be displayed or not.
1139
+ * If true the menu will be displayed horizontally.
1181
1140
  */
1182
- caretHidden?: boolean;
1141
+ isHorizontal?: boolean;
1183
1142
  /**
1184
- * If true, the component will be disabled.
1143
+ * Function that will be called when an option is clicked.
1144
+ * This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
1185
1145
  */
1186
- disabled?: boolean;
1187
- /**
1188
- * If true, the options are shown when the dropdown is hover.
1189
- */
1190
- expandOnHover?: boolean;
1191
- /**
1192
- * This function will be called every time the selection changes.
1193
- * The value of the selected option will be passed as a parameter.
1194
- */
1195
- onSelectOption: (value: string) => void;
1196
- /**
1197
- * Size of the margin to be applied to the component.
1198
- * You can pass an object with 'top', 'bottom', 'left' and 'right'
1199
- * properties in order to specify different margin sizes.
1200
- */
1201
- margin?: Space$1 | Margin;
1202
- /**
1203
- * Size of the component.
1204
- */
1205
- size?: Size$2;
1206
- /**
1207
- * Value of the tabindex attribute.
1208
- */
1209
- tabIndex?: number;
1210
- /**
1211
- * Text representing advisory information related to the dropdown's trigger action.
1212
- * Under the hood, this prop also serves as an accessible label for the component.
1213
- */
1214
- title?: string;
1146
+ onSelectItem?: () => void;
1215
1147
  };
1216
1148
 
1217
- type BaseActionCell = {
1218
- disabled?: boolean;
1219
- tabIndex?: number;
1220
- title: string;
1221
- };
1222
- type ActionCell = BaseActionCell & ({
1223
- icon: string | SVG;
1224
- onClick: () => void;
1225
- options?: never;
1226
- } | {
1227
- icon?: never;
1228
- onClick: (value?: string) => void;
1229
- options: Option$2[];
1230
- });
1231
- type ActionsCellPropsType = {
1232
- /**
1233
- * It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
1234
- * or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
1235
- * Only the first action with options will be displayed and only up to 3 actions.
1236
- * In the case of the dropdown the click function will pass the value assigned to the option.
1237
- */
1238
- actions: ActionCell[];
1239
- };
1240
- type Props$t = {
1241
- /**
1242
- * The center section of the table. Can be used to render custom
1243
- * content in this area.
1244
- */
1245
- children: ReactNode;
1246
- /**
1247
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1248
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1249
- */
1250
- margin?: Space$1 | Margin;
1251
- /**
1252
- * Determines the visual style and layout
1253
- * - "default": Default table size.
1254
- * - "reduced": More compact table with less spacing for high density information.
1255
- */
1256
- mode?: "default" | "reduced";
1257
- };
1149
+ type ContextualMenuProps = Omit<BaseMenuProps, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
1150
+
1151
+ declare function DxcContextualMenu({ items }: ContextualMenuProps): react.JSX.Element;
1258
1152
 
1259
- type GridColumn = {
1153
+ type DataGridColumn = {
1260
1154
  /**
1261
1155
  * Key that will be rendered from each row in rows.
1262
1156
  */
@@ -1294,23 +1188,23 @@ type GridColumn = {
1294
1188
  */
1295
1189
  alignment?: "left" | "right" | "center";
1296
1190
  };
1297
- type GridRow = {
1191
+ type DataGridRow = {
1298
1192
  /**
1299
1193
  * List of rows that will be rendered in each cell based on the key in each column.
1300
1194
  */
1301
1195
  [key: string]: ReactNode | undefined;
1302
1196
  };
1303
- type HierarchyGridRow = GridRow & {
1197
+ type DataGridHierarchyRow = PrettifyTypes<DataGridRow & {
1304
1198
  /**
1305
1199
  * Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
1306
1200
  * These child rows will be displayed when the parent row is expanded.
1307
1201
  */
1308
- childRows?: HierarchyGridRow[] | GridRow[];
1202
+ childRows?: DataGridHierarchyRow[] | DataGridRow[];
1309
1203
  /**
1310
1204
  * Function called when a row with children is expanded or collapsed (based on the value of `open`).
1311
1205
  * Returns (or resolves to) the array of child rows nested under this row to display when expanded.
1312
1206
  */
1313
- childrenTrigger?: (open?: boolean, triggerRow?: HierarchyGridRow) => (HierarchyGridRow[] | GridRow[]) | Promise<HierarchyGridRow[] | GridRow[]>;
1207
+ childrenTrigger?: (open?: boolean, triggerRow?: DataGridHierarchyRow) => (DataGridHierarchyRow[] | DataGridRow[]) | Promise<DataGridHierarchyRow[] | DataGridRow[]>;
1314
1208
  /**
1315
1209
  * Indicates whether child rows are currently being loaded.
1316
1210
  */
@@ -1327,27 +1221,27 @@ type HierarchyGridRow = GridRow & {
1327
1221
  * Indicates whether child rows are currently visible.
1328
1222
  */
1329
1223
  visibleChildren?: boolean;
1330
- };
1331
- type ExpandableGridRow = GridRow & {
1224
+ }>;
1225
+ type DataGridExpandableRow = PrettifyTypes<DataGridRow & {
1332
1226
  expandedContent?: ReactNode;
1333
1227
  expandedContentHeight?: number;
1334
1228
  contentIsExpanded?: boolean;
1335
- };
1336
- type ExpandableRows = {
1337
- rows: ExpandableGridRow[];
1229
+ }>;
1230
+ type DataGridExpandableRows = {
1231
+ rows: DataGridExpandableRow[];
1338
1232
  /**
1339
1233
  * Whether the rows can expand or not.
1340
1234
  */
1341
1235
  expandable: true;
1342
1236
  /**
1343
- * 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[].
1237
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
1344
1238
  */
1345
1239
  uniqueRowId: string;
1346
1240
  };
1347
- type HierarchyRows = {
1348
- rows: HierarchyGridRow[];
1241
+ type DataGridHierarchyRows = {
1242
+ rows: DataGridHierarchyRow[];
1349
1243
  /**
1350
- * 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[].
1244
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
1351
1245
  */
1352
1246
  uniqueRowId: string;
1353
1247
  /**
@@ -1355,7 +1249,7 @@ type HierarchyRows = {
1355
1249
  */
1356
1250
  expandable?: false;
1357
1251
  };
1358
- type SelectableGridProps = {
1252
+ type DataGridSelectableProps = {
1359
1253
  /**
1360
1254
  * Whether the rows are selectable or not.
1361
1255
  */
@@ -1369,7 +1263,7 @@ type SelectableGridProps = {
1369
1263
  */
1370
1264
  onSelectRows: (selectedRows: Set<number | string>) => void;
1371
1265
  /**
1372
- * 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[].
1266
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type DataGridHierarchyRow[].
1373
1267
  */
1374
1268
  uniqueRowId: string;
1375
1269
  } | {
@@ -1378,7 +1272,7 @@ type SelectableGridProps = {
1378
1272
  onSelectRows?: never;
1379
1273
  uniqueRowId?: string;
1380
1274
  };
1381
- type PaginatedProps$1 = {
1275
+ type DataGridPaginatedProps = {
1382
1276
  /**
1383
1277
  * If true, paginator will be displayed.
1384
1278
  */
@@ -1413,7 +1307,7 @@ type PaginatedProps$1 = {
1413
1307
  */
1414
1308
  defaultPage?: number;
1415
1309
  };
1416
- type NonPaginatedProps$1 = {
1310
+ type DataGridNonPaginatedProps = {
1417
1311
  /**
1418
1312
  * If true, paginator will be displayed.
1419
1313
  */
@@ -1449,36 +1343,37 @@ type NonPaginatedProps$1 = {
1449
1343
  defaultPage?: never;
1450
1344
  };
1451
1345
  type CommonProps$6 = {
1452
- columns: GridColumn[];
1346
+ columns: DataGridColumn[];
1453
1347
  /**
1454
1348
  * Extra row that will be always visible.
1455
1349
  */
1456
- summaryRow?: GridRow;
1350
+ summaryRow?: DataGridRow;
1457
1351
  /**
1458
1352
  * Function called whenever a cell is edited.
1459
1353
  */
1460
- onGridRowsChange?: (_rows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => void;
1354
+ onGridRowsChange?: (_rows: DataGridRow[] | DataGridHierarchyRow[] | DataGridExpandableRow[]) => void;
1461
1355
  /**
1462
1356
  * Function called whenever a column is sorted. Receives the sorted
1463
1357
  * column and direction, or `undefined` if no sorting is applied.
1464
1358
  */
1465
1359
  onSort?: (_sortColumn?: SortColumn) => void;
1466
1360
  };
1467
- type BasicGridProps = {
1468
- rows: GridRow[];
1361
+ type DataGridBasicProps = {
1362
+ rows: DataGridRow[];
1469
1363
  /**
1470
1364
  * Whether the rows can expand or not.
1471
1365
  */
1472
1366
  expandable?: false;
1473
1367
  };
1474
- type Props$s = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
1368
+ type DataGridProps = PrettifyTypes<CommonProps$6 & (DataGridPaginatedProps | DataGridNonPaginatedProps) & (DataGridBasicProps | DataGridExpandableRows | DataGridHierarchyRows) & DataGridSelectableProps>;
1475
1369
 
1476
1370
  declare const DxcDataGrid: {
1477
- ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$s): JSX.Element;
1478
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
1371
+ ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: DataGridProps): JSX.Element;
1372
+ ActionsCell: ({ actions }: ActionsCellProps) => JSX.Element;
1479
1373
  };
1480
1374
 
1481
- type Props$r = {
1375
+ type RefType$9 = React.Ref<HTMLDivElement>;
1376
+ type DateInputProps = {
1482
1377
  /**
1483
1378
  * Initial value of the input element, only when it is uncontrolled.
1484
1379
  */
@@ -1569,7 +1464,7 @@ type Props$r = {
1569
1464
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1570
1465
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1571
1466
  */
1572
- margin?: Space$1 | Margin;
1467
+ margin?: Space | Margin;
1573
1468
  /**
1574
1469
  * Size of the component.
1575
1470
  */
@@ -1582,11 +1477,18 @@ type Props$r = {
1582
1477
  * Specifies a string to be used as the name for the date input element when no `label` is provided.
1583
1478
  */
1584
1479
  ariaLabel?: string;
1480
+ /**
1481
+ * Ref object to access the date input element.
1482
+ */
1483
+ ref?: RefType$9;
1585
1484
  };
1586
1485
 
1587
- declare const DxcDateInput: react.ForwardRefExoticComponent<Props$r & react.RefAttributes<HTMLDivElement>>;
1486
+ declare const DxcDateInput: {
1487
+ ({ label, name, defaultValue, value, format, helperText, placeholder, clearable, disabled, readOnly, optional, onChange, onBlur, error, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: DateInputProps): react.JSX.Element;
1488
+ displayName: string;
1489
+ };
1588
1490
 
1589
- type Props$q = {
1491
+ type DialogProps = {
1590
1492
  /**
1591
1493
  * If true, the close button will be visible.
1592
1494
  */
@@ -1626,9 +1528,9 @@ type Props$q = {
1626
1528
  disableFocusLock?: boolean;
1627
1529
  };
1628
1530
 
1629
- declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: Props$q) => JSX.Element;
1531
+ declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: DialogProps) => JSX.Element;
1630
1532
 
1631
- type Props$p = {
1533
+ type DividerProps = {
1632
1534
  /**
1633
1535
  * The divider can be shown in horizontal or vertical.
1634
1536
  */
@@ -1649,10 +1551,92 @@ type Props$p = {
1649
1551
  decorative?: boolean;
1650
1552
  };
1651
1553
 
1652
- declare function DxcDivider({ color, decorative, orientation, weight, }: Props$p): react_jsx_runtime.JSX.Element;
1554
+ declare function DxcDivider({ color, decorative, orientation, weight, }: DividerProps): react.JSX.Element;
1555
+
1556
+ type DropdownOption = {
1557
+ /**
1558
+ * Option display value.
1559
+ */
1560
+ label?: string;
1561
+ /**
1562
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
1563
+ */
1564
+ icon?: string | SVG;
1565
+ /**
1566
+ * Option inner value.
1567
+ */
1568
+ value: string;
1569
+ /**
1570
+ * Whether the option has a divider below it.
1571
+ */
1572
+ hasDivider?: boolean;
1573
+ };
1574
+ type DropdownProps = {
1575
+ /**
1576
+ * An array of objects representing the options.
1577
+ */
1578
+ options: DropdownOption[];
1579
+ /**
1580
+ * In case options include icons, whether the icon should appear
1581
+ * after or before the label.
1582
+ */
1583
+ optionsIconPosition?: "before" | "after";
1584
+ /**
1585
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
1586
+ */
1587
+ icon?: string | SVG;
1588
+ /**
1589
+ * Whether the icon should appear after or before the label.
1590
+ */
1591
+ iconPosition?: "before" | "after";
1592
+ /**
1593
+ * Text to be placed within the dropdown.
1594
+ */
1595
+ label?: string;
1596
+ /**
1597
+ * Whether the arrow next to the label must be displayed or not.
1598
+ */
1599
+ caretHidden?: boolean;
1600
+ /**
1601
+ * If true, the component will be disabled.
1602
+ */
1603
+ disabled?: boolean;
1604
+ /**
1605
+ * If true, the options are shown when the dropdown is hover.
1606
+ */
1607
+ expandOnHover?: boolean;
1608
+ /**
1609
+ * This function will be called every time the selection changes.
1610
+ * The value of the selected option will be passed as a parameter.
1611
+ */
1612
+ onSelectOption: (value: string) => void;
1613
+ /**
1614
+ * Size of the margin to be applied to the component.
1615
+ * You can pass an object with 'top', 'bottom', 'left' and 'right'
1616
+ * properties in order to specify different margin sizes.
1617
+ */
1618
+ margin?: Space | Margin;
1619
+ /**
1620
+ * Size of the component.
1621
+ */
1622
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
1623
+ /**
1624
+ * Value of the tabindex attribute.
1625
+ */
1626
+ tabIndex?: number;
1627
+ /**
1628
+ * Text representing advisory information related to the dropdown's trigger action.
1629
+ * Under the hood, this prop also serves as an accessible label for the component.
1630
+ */
1631
+ title?: string;
1632
+ };
1653
1633
 
1654
- declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$u) => react_jsx_runtime.JSX.Element;
1634
+ declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: DropdownProps) => react.JSX.Element;
1655
1635
 
1636
+ /**
1637
+ * Reference to the component.
1638
+ */
1639
+ type RefType$8 = React.Ref<HTMLDivElement>;
1656
1640
  type FileData = {
1657
1641
  /**
1658
1642
  * Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
@@ -1697,7 +1681,7 @@ type CommonProps$5 = {
1697
1681
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1698
1682
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1699
1683
  */
1700
- margin?: Space$1 | Margin;
1684
+ margin?: Space | Margin;
1701
1685
  /**
1702
1686
  * The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
1703
1687
  */
@@ -1716,10 +1700,18 @@ type CommonProps$5 = {
1716
1700
  * next to the label.
1717
1701
  */
1718
1702
  optional?: boolean;
1703
+ /**
1704
+ * Reference to the component.
1705
+ */
1706
+ ref?: RefType$8;
1719
1707
  /**
1720
1708
  * If true, if the file is an image, a preview of it will be shown. If not, an icon refering to the file type will be shown.
1721
1709
  */
1722
1710
  showPreview?: boolean;
1711
+ /**
1712
+ * Size of the component.
1713
+ */
1714
+ size?: "medium" | "fillParent";
1723
1715
  /**
1724
1716
  * Value of the tabindex attribute.
1725
1717
  */
@@ -1757,11 +1749,14 @@ type FileModeProps = CommonProps$5 & {
1757
1749
  */
1758
1750
  mode?: "file";
1759
1751
  };
1760
- type Props$o = DropModeProps | FileModeProps;
1752
+ type FileInputProps = PrettifyTypes<DropModeProps | FileModeProps>;
1761
1753
 
1762
- declare const DxcFileInput: react.ForwardRefExoticComponent<Props$o & react.RefAttributes<HTMLDivElement>>;
1754
+ declare const DxcFileInput: {
1755
+ ({ mode, label, buttonLabel, dropAreaLabel, helperText, accept, minSize, maxSize, showPreview, multiple, disabled, callbackFile, size, value, margin, tabIndex, optional, ref, }: FileInputProps): react.JSX.Element;
1756
+ displayName: string;
1757
+ };
1763
1758
 
1764
- type Gap$1 = {
1759
+ type FlexGap = {
1765
1760
  rowGap: string;
1766
1761
  columnGap?: string;
1767
1762
  } | {
@@ -1794,7 +1789,7 @@ type CommonProps$4 = {
1794
1789
  */
1795
1790
  alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
1796
1791
  };
1797
- type Props$n = CommonProps$4 & {
1792
+ type FlexProps = PrettifyTypes<CommonProps$4 & {
1798
1793
  /**
1799
1794
  * Sets the flex-direction CSS property.
1800
1795
  *
@@ -1812,7 +1807,7 @@ type Props$n = CommonProps$4 & {
1812
1807
  *
1813
1808
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1814
1809
  */
1815
- gap?: Gap$1;
1810
+ gap?: FlexGap;
1816
1811
  /**
1817
1812
  * Sets the order CSS property.
1818
1813
  *
@@ -1849,11 +1844,11 @@ type Props$n = CommonProps$4 & {
1849
1844
  * Custom content inside the flex container.
1850
1845
  */
1851
1846
  children: ReactNode;
1852
- };
1847
+ }>;
1853
1848
 
1854
- declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: Props$n) => react_jsx_runtime.JSX.Element;
1849
+ declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: FlexProps) => react.JSX.Element;
1855
1850
 
1856
- type Gap = string | {
1851
+ type GridGap = string | {
1857
1852
  columnGap?: string;
1858
1853
  rowGap: string;
1859
1854
  } | {
@@ -1864,17 +1859,17 @@ type GridCell = {
1864
1859
  end: number | string;
1865
1860
  start: number | string;
1866
1861
  };
1867
- type PlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
1868
- type PlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
1869
- type PlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
1862
+ type GridPlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
1863
+ type GridPlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
1864
+ type GridPlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
1870
1865
  type PlaceObject<Type, Suffix extends string> = {
1871
- [Property in Extract<keyof Type, string> as `${Property}${Capitalize<Suffix>}`]: Type[Property];
1866
+ [Property in keyof Type as Property extends string ? `${Property}${Capitalize<Suffix>}` : never]: Type[Property];
1872
1867
  };
1873
1868
  type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
1874
- align: PlaceValues;
1869
+ align?: PlaceValues;
1875
1870
  justify?: PlaceValues;
1876
1871
  }, Element> | PlaceObject<{
1877
- align?: PlaceValues;
1872
+ align: PlaceValues;
1878
1873
  justify: PlaceValues;
1879
1874
  }, Element> | PlaceValues;
1880
1875
  type GridItemProps = {
@@ -1901,7 +1896,7 @@ type GridItemProps = {
1901
1896
  *
1902
1897
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
1903
1898
  */
1904
- placeSelf?: PlaceGeneric<PlaceSelfValues, "self">;
1899
+ placeSelf?: PlaceGeneric<GridPlaceSelfValues, "self">;
1905
1900
  /**
1906
1901
  * Sets the grid-row CSS property.
1907
1902
  *
@@ -1909,7 +1904,7 @@ type GridItemProps = {
1909
1904
  */
1910
1905
  row?: number | string | GridCell;
1911
1906
  };
1912
- type Props$m = GridItemProps & {
1907
+ type GridProps = PrettifyTypes<GridItemProps & {
1913
1908
  /**
1914
1909
  * Sets the grid-auto-columns CSS property.
1915
1910
  *
@@ -1933,19 +1928,19 @@ type Props$m = GridItemProps & {
1933
1928
  *
1934
1929
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1935
1930
  */
1936
- gap?: Gap;
1931
+ gap?: GridGap;
1937
1932
  /**
1938
1933
  * Sets the place-content CSS property.
1939
1934
  *
1940
1935
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
1941
1936
  */
1942
- placeContent?: PlaceGeneric<PlaceContentValues, "content">;
1937
+ placeContent?: PlaceGeneric<GridPlaceContentValues, "content">;
1943
1938
  /**
1944
1939
  * Sets the place-items CSS property.
1945
1940
  *
1946
1941
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
1947
1942
  */
1948
- placeItems?: PlaceGeneric<PlaceItemsValues, "items">;
1943
+ placeItems?: PlaceGeneric<GridPlaceItemsValues, "items">;
1949
1944
  /**
1950
1945
  * Sets the grid-template-areas CSS property.
1951
1946
  *
@@ -1964,17 +1959,17 @@ type Props$m = GridItemProps & {
1964
1959
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
1965
1960
  */
1966
1961
  templateRows?: string[];
1967
- };
1962
+ }>;
1968
1963
 
1969
1964
  declare const DxcGrid: {
1970
- (props: Props$m): react_jsx_runtime.JSX.Element;
1965
+ (props: GridProps): react.JSX.Element;
1971
1966
  Item: _emotion_styled.StyledComponent<{
1972
1967
  theme?: _emotion_react.Theme;
1973
1968
  as?: React.ElementType;
1974
1969
  } & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1975
1970
  };
1976
1971
 
1977
- type Props$l = {
1972
+ type HeadingProps = {
1978
1973
  /**
1979
1974
  * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
1980
1975
  * The html tag of the heading will be the one specified in the 'as' prop.
@@ -1997,80 +1992,14 @@ type Props$l = {
1997
1992
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1998
1993
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1999
1994
  */
2000
- margin?: Space$1 | Margin;
1995
+ margin?: Space | Margin;
2001
1996
  };
2002
1997
 
2003
- declare function DxcHeading({ as, level, margin, text, weight }: Props$l): react_jsx_runtime.JSX.Element;
2004
-
2005
- type Props$k = {
2006
- /**
2007
- * Alternative text description displayed when the specified image is not loaded.
2008
- *
2009
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
2010
- * See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
2011
- */
2012
- alt: string;
2013
- /**
2014
- * Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
2015
- * which is required regardless of the presence of the caption or not.
2016
- */
2017
- caption?: string;
2018
- /**
2019
- * Sets the rendered height of the image.
2020
- */
2021
- height?: string;
2022
- /**
2023
- * If true, the image will be loaded only when it is visible on the screen (lazy loading).
2024
- * Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
2025
- */
2026
- lazyLoading?: boolean;
2027
- /**
2028
- * Sets the object-fit CSS property.
2029
- *
2030
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
2031
- */
2032
- objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
2033
- /**
2034
- * Sets the object-position CSS property.
2035
- *
2036
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
2037
- */
2038
- objectPosition?: string;
2039
- /**
2040
- * This function will be called when the image fails to load.
2041
- */
2042
- onError?: ReactEventHandler<HTMLImageElement>;
2043
- /**
2044
- * This function will be called when the image is loaded.
2045
- */
2046
- onLoad?: ReactEventHandler<HTMLImageElement>;
2047
- /**
2048
- * One or more strings separated by commas, indicating a set of source sizes.
2049
- * If the srcSet attribute is absent or contains no values with a width descriptor,
2050
- * then this attribute has no effect.
2051
- *
2052
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
2053
- */
2054
- sizes?: string;
2055
- /**
2056
- * URL of the image. This prop is required and must be valid.
2057
- */
2058
- src: string;
2059
- /**
2060
- * List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
2061
- *
2062
- * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
2063
- */
2064
- srcSet?: string;
2065
- /**
2066
- * Sets the rendered width of the image.
2067
- */
2068
- width?: string;
2069
- };
1998
+ declare function DxcHeading({ as, level, margin, text, weight }: HeadingProps): react.JSX.Element;
2070
1999
 
2071
- declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$k): react_jsx_runtime.JSX.Element;
2000
+ declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: ImageProps): react.JSX.Element;
2072
2001
 
2073
- type Props$j = {
2002
+ type InsetProps = {
2074
2003
  /**
2075
2004
  * Applies the spacing scale to the bottom side.
2076
2005
  */
@@ -2105,13 +2034,21 @@ type Props$j = {
2105
2034
  vertical?: string;
2106
2035
  };
2107
2036
 
2108
- declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$j): react_jsx_runtime.JSX.Element;
2037
+ declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: InsetProps): react.JSX.Element;
2109
2038
 
2110
2039
  type LinkProps = {
2040
+ /**
2041
+ * Text of the link.
2042
+ */
2043
+ children: string;
2111
2044
  /**
2112
2045
  * If true, the link will be disabled.
2113
2046
  */
2114
2047
  disabled?: boolean;
2048
+ /**
2049
+ * Page to be opened when the user clicks on the link.
2050
+ */
2051
+ href?: string;
2115
2052
  /**
2116
2053
  * If true, the color is inherited from parent.
2117
2054
  */
@@ -2125,9 +2062,10 @@ type LinkProps = {
2125
2062
  */
2126
2063
  iconPosition?: "before" | "after";
2127
2064
  /**
2128
- * Page to be opened when the user clicks on the link.
2065
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2066
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2129
2067
  */
2130
- href?: string;
2068
+ margin?: Space | Margin;
2131
2069
  /**
2132
2070
  * If true, the page is opened in a new browser tab.
2133
2071
  */
@@ -2138,47 +2076,156 @@ type LinkProps = {
2138
2076
  */
2139
2077
  onClick?: () => void;
2140
2078
  /**
2141
- * Text of the link.
2142
- */
2143
- children: string;
2144
- /**
2145
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2146
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2079
+ * Ref of the link element.
2147
2080
  */
2148
- margin?: Space$1 | Margin;
2081
+ ref?: React.Ref<HTMLAnchorElement>;
2149
2082
  /**
2150
2083
  * Value of the tabindex.
2151
2084
  */
2152
2085
  tabIndex?: number;
2153
2086
  };
2154
2087
 
2155
- declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
2088
+ declare const DxcLink: {
2089
+ ({ children, disabled, href, icon, iconPosition, inheritColor, margin, newWindow, onClick, tabIndex, ref, ...otherProps }: LinkProps): react.JSX.Element;
2090
+ displayName: string;
2091
+ };
2156
2092
 
2157
- type TabProps$1 = {
2093
+ type SelectOption$1 = {
2094
+ label?: string;
2095
+ value: string;
2096
+ onSelect: (value: string) => void;
2097
+ selected?: boolean;
2098
+ };
2099
+ type MessageInputProps = {
2158
2100
  /**
2159
- * Whether the tab is active or not.
2101
+ * If true, the voice recording button will be shown.
2160
2102
  */
2161
- active?: boolean;
2103
+ allowRecording?: boolean;
2162
2104
  /**
2163
- * Tab text label.
2105
+ * This function will be called when the selection of top items changes.
2106
+ * If this function is provided the message input will allow file selection.
2164
2107
  */
2165
- children: string;
2108
+ callbackFile?: (files: File[]) => void;
2166
2109
  /**
2167
- * If true, the tab will be disabled.
2110
+ * Initial value of the input, only when it is uncontrolled.
2168
2111
  */
2169
- disabled?: boolean;
2112
+ defaultValue?: string;
2170
2113
  /**
2171
- * Page to be opened when the user clicks on the tab.
2114
+ * If true, the component will be disabled.
2172
2115
  */
2173
- href?: string;
2116
+ disabled?: boolean;
2174
2117
  /**
2175
- * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2118
+ * If it is a defined value and also a truthy string, the component will
2119
+ * change its appearance, showing the error below the input component. If
2120
+ * the defined value is an empty string, it will reserve a space below
2121
+ * the component for a future error, but it would not change its look. In
2122
+ * case of being undefined or null, both the appearance and the space for
2123
+ * the error message would not be modified.
2176
2124
  */
2177
- icon?: string | SVG;
2125
+ error?: string;
2178
2126
  /**
2179
- * This function will be called when the user clicks on this tab.
2127
+ * Items to be shown at the top.
2180
2128
  */
2181
- onClick?: () => void;
2129
+ files?: File[];
2130
+ /**
2131
+ * If true, it indicates that a request is being processed after the user submits a query.
2132
+ */
2133
+ isGenerating?: boolean;
2134
+ /**
2135
+ * Specifies the maximum length allowed by the input.
2136
+ * This will be checked both when the input element loses the
2137
+ * focus and while typing within it. If the string entered does not
2138
+ * comply the maximum length, the onBlur and onChange functions will be called
2139
+ * with the current value and an internal error informing that the value
2140
+ * length does not comply the specified range. If a valid length is
2141
+ * reached, the error parameter of both events will not be defined.
2142
+ */
2143
+ maxLength?: number;
2144
+ /**
2145
+ * Specifies the minimum length allowed by the input.
2146
+ * This will be checked both when the input element loses the
2147
+ * focus and while typing within it. If the string entered does not
2148
+ * comply the minimum length, the onBlur and onChange functions will be called
2149
+ * with the current value and an internal error informing that the value
2150
+ * length does not comply the specified range. If a valid length is
2151
+ * reached, the error parameter of both events will not be defined.
2152
+ */
2153
+ minLength?: number;
2154
+ /**
2155
+ * Options to be shown on the dropdown under the input.
2156
+ */
2157
+ selectOptions?: SelectOption$1[];
2158
+ /**
2159
+ * This function will be called when the input element loses the focus.
2160
+ * An object including the input value and the error (if the value
2161
+ * entered is not valid) will be passed to this function. If there is no error,
2162
+ * error will not be defined.
2163
+ */
2164
+ onBlur?: (val: {
2165
+ value: string;
2166
+ error?: string;
2167
+ }) => void;
2168
+ /**
2169
+ * This function will be called when the user types within the input
2170
+ * element of the component. An object including the current value and
2171
+ * the error (if the value entered is not valid) will be passed to this
2172
+ * function. If there is no error, error will not be defined.
2173
+ */
2174
+ onChange?: (val: {
2175
+ value: string;
2176
+ error?: string;
2177
+ }) => void;
2178
+ /**
2179
+ * This function will be called when the user clicks on the button (submit or stop) or presses enter.
2180
+ * The type parameter indicates whether it's a "submit" or "stop" event. For submit events, "value", "files" and "selectedOption" are provided.
2181
+ */
2182
+ onButtonClick?: (val: {
2183
+ type: "submit" | "stop";
2184
+ value?: string;
2185
+ files?: File[];
2186
+ selectedOption?: SelectOption$1;
2187
+ }) => void;
2188
+ /**
2189
+ * Text to be put as placeholder of the input.
2190
+ */
2191
+ placeholder?: string;
2192
+ /**
2193
+ * Specifies the size of the component. The size will affect the width of the input.
2194
+ */
2195
+ size?: "small" | "medium" | "large" | "fillParent";
2196
+ /**
2197
+ * Value of the tabindex attribute.
2198
+ */
2199
+ tabIndex?: number;
2200
+ /**
2201
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2202
+ */
2203
+ value?: string;
2204
+ };
2205
+
2206
+ declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }: MessageInputProps) => react.JSX.Element;
2207
+
2208
+ type NavTabsTabProps = {
2209
+ /**
2210
+ * Whether the tab is active or not.
2211
+ */
2212
+ active?: boolean;
2213
+ /**
2214
+ * Tab text label.
2215
+ */
2216
+ children: string;
2217
+ /**
2218
+ * If true, the tab will be disabled.
2219
+ */
2220
+ disabled?: boolean;
2221
+ /**
2222
+ * Page to be opened when the user clicks on the tab.
2223
+ */
2224
+ href?: string;
2225
+ /**
2226
+ * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2227
+ */
2228
+ icon?: string | SVG;
2182
2229
  /**
2183
2230
  * If the value is 'true', an empty badge will appear.
2184
2231
  * If it is 'false', no badge will appear.
@@ -2187,8 +2234,16 @@ type TabProps$1 = {
2187
2234
  * it will appear as '+99' in the badge.
2188
2235
  */
2189
2236
  notificationNumber?: boolean | number;
2237
+ /**
2238
+ * This function will be called when the user clicks on this tab.
2239
+ */
2240
+ onClick?: () => void;
2241
+ /**
2242
+ * Ref of the tab element.
2243
+ */
2244
+ ref?: React.Ref<HTMLAnchorElement | HTMLDivElement>;
2190
2245
  };
2191
- type Props$i = {
2246
+ type NavTabsProps = {
2192
2247
  /**
2193
2248
  * Contains one or more DxcNavTabs.Tab.
2194
2249
  */
@@ -2204,11 +2259,18 @@ type Props$i = {
2204
2259
  };
2205
2260
 
2206
2261
  declare const DxcNavTabs: {
2207
- ({ iconPosition, tabIndex, children }: Props$i): JSX.Element;
2208
- Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
2262
+ ({ iconPosition, tabIndex, children }: NavTabsProps): JSX.Element;
2263
+ Tab: {
2264
+ ({ active, children, disabled, href, icon, notificationNumber, onClick, ref, ...otherProps }: NavTabsTabProps): JSX.Element;
2265
+ displayName: string;
2266
+ };
2209
2267
  };
2210
2268
 
2211
- type Props$h = {
2269
+ /**
2270
+ * Reference to the component.
2271
+ */
2272
+ type RefType$7 = React.Ref<HTMLInputElement>;
2273
+ type NumberInputProps = {
2212
2274
  /**
2213
2275
  * Text to be placed above the number.
2214
2276
  */
@@ -2244,6 +2306,10 @@ type Props$h = {
2244
2306
  * functions when it has not been filled.
2245
2307
  */
2246
2308
  optional?: boolean;
2309
+ /**
2310
+ * Prefix to be placed before the number value.
2311
+ */
2312
+ prefix?: string;
2247
2313
  /**
2248
2314
  * If true, the component will not be mutable, meaning the user can
2249
2315
  * not edit the control. The value won't change when pressing on the
@@ -2251,9 +2317,9 @@ type Props$h = {
2251
2317
  */
2252
2318
  readOnly?: boolean;
2253
2319
  /**
2254
- * Prefix to be placed before the number value.
2320
+ * Ref of the component.
2255
2321
  */
2256
- prefix?: string;
2322
+ ref?: RefType$7;
2257
2323
  /**
2258
2324
  * Suffix to be placed after the number value.
2259
2325
  */
@@ -2316,7 +2382,7 @@ type Props$h = {
2316
2382
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2317
2383
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2318
2384
  */
2319
- margin?: Space$1 | Margin;
2385
+ margin?: Space | Margin;
2320
2386
  /**
2321
2387
  * Size of the component.
2322
2388
  */
@@ -2335,9 +2401,12 @@ type Props$h = {
2335
2401
  showControls?: boolean;
2336
2402
  };
2337
2403
 
2338
- declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLDivElement>>;
2404
+ declare const DxcNumberInput: {
2405
+ ({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, max, min, name, onBlur, onChange, optional, placeholder, prefix, readOnly, ref, showControls, size, step, suffix, tabIndex, value, }: NumberInputProps): react.JSX.Element;
2406
+ displayName: string;
2407
+ };
2339
2408
 
2340
- type Props$g = {
2409
+ type PaginatorProps = {
2341
2410
  /**
2342
2411
  * Number of the current selected page.
2343
2412
  */
@@ -2375,53 +2444,30 @@ type Props$g = {
2375
2444
  tabIndex?: number;
2376
2445
  };
2377
2446
 
2378
- declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$g) => JSX.Element;
2447
+ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: PaginatorProps) => JSX.Element;
2379
2448
 
2380
2449
  declare function DxcParagraph({ children }: {
2381
2450
  children: ReactNode;
2382
- }): react_jsx_runtime.JSX.Element;
2451
+ }): react.JSX.Element;
2383
2452
 
2384
- type Props$f = {
2385
- /**
2386
- * Text to be placed above the password input.
2387
- */
2388
- label?: string;
2389
- /**
2390
- * Name attribute of the input element.
2391
- */
2392
- name?: string;
2453
+ /**
2454
+ * Reference to the component.
2455
+ */
2456
+ type RefType$6 = React.Ref<HTMLDivElement>;
2457
+ type PasswordInputProps = {
2393
2458
  /**
2394
- * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2459
+ * Specifies a string to be used as the name for the password input element when no `label` is provided.
2395
2460
  */
2396
- value?: string;
2461
+ ariaLabel?: string;
2397
2462
  /**
2398
- * Helper text to be placed above the password.
2463
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2464
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2399
2465
  */
2400
- helperText?: string;
2466
+ autocomplete?: string;
2401
2467
  /**
2402
2468
  * If true, the password input will have an action to clear the entered value.
2403
2469
  */
2404
2470
  clearable?: boolean;
2405
- /**
2406
- * This function will be called when the user types within the input
2407
- * element of the component. An object including the current value and
2408
- * the error (if the value entered is not valid) will be passed to this
2409
- * function. If there is no error, error will not be defined.
2410
- * */
2411
- onChange?: (val: {
2412
- value: string;
2413
- error?: string;
2414
- }) => void;
2415
- /**
2416
- * This function will be called when the input element loses the focus.
2417
- * An object including the input value and the error (if the value entered is
2418
- * not valid) will be passed to this function. If there is no error, error will
2419
- * not be defined.
2420
- */
2421
- onBlur?: (val: {
2422
- value: string;
2423
- error?: string;
2424
- }) => void;
2425
2471
  /**
2426
2472
  * If it is a defined value and also a truthy string, the component will
2427
2473
  * change its appearance, showing the error below the password input
@@ -2432,45 +2478,76 @@ type Props$f = {
2432
2478
  */
2433
2479
  error?: string;
2434
2480
  /**
2435
- * Regular expression that defines the valid format allowed by the
2436
- * password input. This will be checked both when the input element loses the
2437
- * focus and while typing within it. If the string entered does not match
2438
- * the pattern, the onBlur and onChange functions will be called with the
2439
- * current value and an internal error informing that this value does not
2440
- * match the pattern. If the pattern is met, the error parameter of both
2441
- * events will not be defined.
2481
+ * Helper text to be placed above the password.
2442
2482
  */
2443
- pattern?: string;
2483
+ helperText?: string;
2444
2484
  /**
2445
- * Specifies the minimum length allowed by the password input.
2485
+ * Text to be placed above the password input.
2486
+ */
2487
+ label?: string;
2488
+ /**
2489
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2490
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2491
+ */
2492
+ margin?: Space | Margin;
2493
+ /**
2494
+ * Specifies the maximum length allowed by the password input.
2446
2495
  * This will be checked both when the input element loses the
2447
2496
  * focus and while typing within it. If the string entered does not
2448
- * comply the minimum length, the onBlur and onChange functions will be called
2497
+ * comply the maximum length, the onBlur and onChange functions will be called
2449
2498
  * with the current value and an internal error informing that the value
2450
2499
  * length does not comply the specified range. If a valid length is
2451
2500
  * reached, the error parameter of both events will not be defined.
2452
2501
  */
2453
- minLength?: number;
2502
+ maxLength?: number;
2454
2503
  /**
2455
- * Specifies the maximum length allowed by the password input.
2504
+ * Specifies the minimum length allowed by the password input.
2456
2505
  * This will be checked both when the input element loses the
2457
2506
  * focus and while typing within it. If the string entered does not
2458
- * comply the maximum length, the onBlur and onChange functions will be called
2507
+ * comply the minimum length, the onBlur and onChange functions will be called
2459
2508
  * with the current value and an internal error informing that the value
2460
2509
  * length does not comply the specified range. If a valid length is
2461
2510
  * reached, the error parameter of both events will not be defined.
2462
2511
  */
2463
- maxLength?: number;
2512
+ minLength?: number;
2464
2513
  /**
2465
- * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2466
- * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2514
+ * Name attribute of the input element.
2467
2515
  */
2468
- autocomplete?: string;
2516
+ name?: string;
2469
2517
  /**
2470
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2471
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2518
+ * This function will be called when the input element loses the focus.
2519
+ * An object including the input value and the error (if the value entered is
2520
+ * not valid) will be passed to this function. If there is no error, error will
2521
+ * not be defined.
2522
+ */
2523
+ onBlur?: (val: {
2524
+ value: string;
2525
+ error?: string;
2526
+ }) => void;
2527
+ /**
2528
+ * This function will be called when the user types within the input
2529
+ * element of the component. An object including the current value and
2530
+ * the error (if the value entered is not valid) will be passed to this
2531
+ * function. If there is no error, error will not be defined.
2532
+ * */
2533
+ onChange?: (val: {
2534
+ value: string;
2535
+ error?: string;
2536
+ }) => void;
2537
+ /**
2538
+ * Regular expression that defines the valid format allowed by the
2539
+ * password input. This will be checked both when the input element loses the
2540
+ * focus and while typing within it. If the string entered does not match
2541
+ * the pattern, the onBlur and onChange functions will be called with the
2542
+ * current value and an internal error informing that this value does not
2543
+ * match the pattern. If the pattern is met, the error parameter of both
2544
+ * events will not be defined.
2545
+ */
2546
+ pattern?: string;
2547
+ /**
2548
+ * Reference to the input element.
2472
2549
  */
2473
- margin?: Space$1 | Margin;
2550
+ ref?: RefType$6;
2474
2551
  /**
2475
2552
  * Size of the component.
2476
2553
  */
@@ -2480,20 +2557,51 @@ type Props$f = {
2480
2557
  */
2481
2558
  tabIndex?: number;
2482
2559
  /**
2483
- * Specifies a string to be used as the name for the password input element when no `label` is provided.
2560
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2484
2561
  */
2485
- ariaLabel?: string;
2562
+ value?: string;
2486
2563
  };
2487
2564
 
2488
- declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLDivElement>>;
2565
+ declare const DxcPasswordInput: {
2566
+ ({ label, name, value, helperText, clearable, onChange, onBlur, error, pattern, minLength, maxLength, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: PasswordInputProps): react.JSX.Element;
2567
+ displayName: string;
2568
+ };
2489
2569
 
2490
- type Size$1 = {
2491
- top?: Space$1;
2492
- bottom?: Space$1;
2493
- left?: Space$1;
2494
- right?: Space$1;
2570
+ type PopoverProps = {
2571
+ /** Action that triggers the popover to open. */
2572
+ actionToOpen?: "click" | "hover";
2573
+ /** Alignment of the popover relative to the trigger element. */
2574
+ align?: "start" | "center" | "end";
2575
+ /** Set to true if child controls the events. It will render the child directly without wrapping it. */
2576
+ asChild?: boolean;
2577
+ /** Element that triggers the popover and works as the anchor. */
2578
+ children: React.ReactNode;
2579
+ /** Whether the popover should display a tip (arrow). */
2580
+ hasTip?: boolean;
2581
+ /** Controlled open state of the popover. If it is left undefined, it will be uncontrolled. */
2582
+ isOpen?: boolean;
2583
+ /** Distance in pixels from the trigger element to the popover. */
2584
+ offset?: number;
2585
+ /** Callback function when the popover is opened.
2586
+ * Used only in controlled mode and if the trigger lacks the events to manage the controlled behavior. */
2587
+ onOpen?: () => void;
2588
+ /** Callback function when the popover is opened and the focus is set to the first focusable element inside the popover.
2589
+ * */
2590
+ onOpenAutoFocus?: (event: Event) => void;
2591
+ /** Callback function when the popover is closed. */
2592
+ onClose?: () => void;
2593
+ /** Callback function when the popover is closed and the focus is set back to the trigger element.
2594
+ * */
2595
+ onCloseAutoFocus?: (event: Event) => void;
2596
+ /** Content to be displayed inside the popover. */
2597
+ popoverContent: React.ReactNode;
2598
+ /** Side of the trigger where the popover will appear. */
2599
+ side?: "top" | "bottom" | "left" | "right";
2495
2600
  };
2496
- type Props$e = {
2601
+
2602
+ declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }: PopoverProps) => JSX.Element;
2603
+
2604
+ type ProgressBarProps = {
2497
2605
  /**
2498
2606
  * Text to be placed above the progress bar.
2499
2607
  */
@@ -2520,16 +2628,16 @@ type Props$e = {
2520
2628
  * an object with 'top', 'bottom', 'left' and 'right' properties
2521
2629
  * in order to specify different margin sizes.
2522
2630
  */
2523
- margin?: Space$1 | Size$1;
2631
+ margin?: Space | Margin;
2524
2632
  /**
2525
2633
  * Specifies a string to be used as the name for the progress bar element when no `label` is provided.
2526
2634
  */
2527
2635
  ariaLabel?: string;
2528
2636
  };
2529
2637
 
2530
- declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: Props$e) => JSX.Element;
2638
+ declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: ProgressBarProps) => JSX.Element;
2531
2639
 
2532
- type Link = {
2640
+ type QuickNavLink = {
2533
2641
  /**
2534
2642
  * Label to be shown in the link.
2535
2643
  */
@@ -2537,9 +2645,9 @@ type Link = {
2537
2645
  /**
2538
2646
  * Sublinks of the link.
2539
2647
  */
2540
- links?: Link[];
2648
+ links?: QuickNavLink[];
2541
2649
  };
2542
- type Props$d = {
2650
+ type QuickNavProps = {
2543
2651
  /**
2544
2652
  * Title of the quick nav component.
2545
2653
  */
@@ -2547,12 +2655,16 @@ type Props$d = {
2547
2655
  /**
2548
2656
  * Links to be shown inside the quick nav component.
2549
2657
  */
2550
- links: Link[];
2658
+ links: QuickNavLink[];
2551
2659
  };
2552
2660
 
2553
- declare function DxcQuickNav({ links, title }: Props$d): react_jsx_runtime.JSX.Element;
2661
+ declare function DxcQuickNav({ links, title }: QuickNavProps): react.JSX.Element;
2554
2662
 
2555
- type Option$1 = {
2663
+ /**
2664
+ * Reference to the component.
2665
+ */
2666
+ type RefType$5 = React.Ref<HTMLDivElement>;
2667
+ type RadioGroupOption = {
2556
2668
  /**
2557
2669
  * Label of the option placed next to the radio input.
2558
2670
  */
@@ -2618,7 +2730,7 @@ type RadioGroupProps = {
2618
2730
  /**
2619
2731
  * An array of objects representing the selectable options.
2620
2732
  */
2621
- options: Option$1[];
2733
+ options: RadioGroupOption[];
2622
2734
  /**
2623
2735
  * This function will be called when the radio group loses the focus. An
2624
2736
  * object including the value and the error will be passed to this
@@ -2637,6 +2749,10 @@ type RadioGroupProps = {
2637
2749
  * If true, the component will not be mutable, meaning the user can not edit the control.
2638
2750
  */
2639
2751
  readOnly?: boolean;
2752
+ /**
2753
+ * Reference to the component.
2754
+ */
2755
+ ref?: RefType$5;
2640
2756
  /**
2641
2757
  * Sets the orientation of the options within the radio group.
2642
2758
  */
@@ -2653,9 +2769,12 @@ type RadioGroupProps = {
2653
2769
  value?: string;
2654
2770
  };
2655
2771
 
2656
- declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
2772
+ declare const DxcRadioGroup: {
2773
+ ({ ariaLabel, defaultValue, disabled, error, helperText, label, name, onBlur, onChange, optional, optionalItemLabel, options, readOnly, ref, stacking, tabIndex, value, }: RadioGroupProps): react.JSX.Element;
2774
+ displayName: string;
2775
+ };
2657
2776
 
2658
- type Column = {
2777
+ type ResultSetTableColumn = {
2659
2778
  /**
2660
2779
  * Column display value.
2661
2780
  */
@@ -2665,7 +2784,7 @@ type Column = {
2665
2784
  */
2666
2785
  isSortable?: boolean;
2667
2786
  };
2668
- type Cell = {
2787
+ type ResultSetTableRow = {
2669
2788
  /**
2670
2789
  * Value to be displayed in the cell.
2671
2790
  */
@@ -2675,18 +2794,17 @@ type Cell = {
2675
2794
  * column. If not indicated displayValue will be used for sorting.
2676
2795
  */
2677
2796
  sortValue?: string | number | Date;
2678
- };
2679
- type Row = Cell[];
2797
+ }[];
2680
2798
  type CommonProps$3 = {
2681
2799
  /**
2682
2800
  * An array of objects representing the columns of the table.
2683
2801
  */
2684
- columns: Column[];
2802
+ columns: ResultSetTableColumn[];
2685
2803
  /**
2686
2804
  * Size of the margin to be applied to the component. You can pass an object with 'top',
2687
2805
  * 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2688
2806
  */
2689
- margin?: Space$1 | Margin;
2807
+ margin?: Space | Margin;
2690
2808
  /**
2691
2809
  * Determines the visual style and layout
2692
2810
  * - "default": The default mode with big spacing
@@ -2697,7 +2815,7 @@ type CommonProps$3 = {
2697
2815
  * An array of objects representing the rows of the table, you will have
2698
2816
  * as many objects as columns in the table.
2699
2817
  */
2700
- rows: Row[];
2818
+ rows: ResultSetTableRow[];
2701
2819
  /**
2702
2820
  * Value of the tabindex attribute applied to the sortable icon.
2703
2821
  */
@@ -2751,14 +2869,18 @@ type NonPaginatedProps = CommonProps$3 & {
2751
2869
  */
2752
2870
  showGoToPage?: never;
2753
2871
  };
2754
- type Props$c = PaginatedProps | NonPaginatedProps;
2872
+ type ResultSetTableProps = PrettifyTypes<PaginatedProps | NonPaginatedProps>;
2755
2873
 
2756
2874
  declare const DxcResultsetTable: {
2757
- ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$c): react_jsx_runtime.JSX.Element;
2758
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
2875
+ ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: ResultSetTableProps): react.JSX.Element;
2876
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
2759
2877
  };
2760
2878
 
2761
- type ListOptionType = {
2879
+ /**
2880
+ * Reference to the select component.
2881
+ */
2882
+ type RefType$4 = React.Ref<HTMLDivElement>;
2883
+ type SelectOption = {
2762
2884
  /**
2763
2885
  * Element used as the icon that will be placed before the option label.
2764
2886
  * It can be an inline SVG or Material Symbol name. If the url option
@@ -2777,7 +2899,7 @@ type ListOptionType = {
2777
2899
  */
2778
2900
  value: string;
2779
2901
  };
2780
- type ListOptionGroupType = {
2902
+ type SelectOptionGroup = {
2781
2903
  /**
2782
2904
  * Label of the group to be shown in the select's listbox.
2783
2905
  */
@@ -2785,7 +2907,7 @@ type ListOptionGroupType = {
2785
2907
  /**
2786
2908
  * List of the grouped options.
2787
2909
  */
2788
- options: ListOptionType[];
2910
+ options: SelectOption[];
2789
2911
  };
2790
2912
  type CommonProps$2 = {
2791
2913
  /**
@@ -2817,7 +2939,7 @@ type CommonProps$2 = {
2817
2939
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2818
2940
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2819
2941
  */
2820
- margin?: Space$1 | Margin;
2942
+ margin?: Space | Margin;
2821
2943
  /**
2822
2944
  * Name attribute of the input element. This attribute will allow users
2823
2945
  * to find the component's value during the submit event. In this event,
@@ -2837,11 +2959,15 @@ type CommonProps$2 = {
2837
2959
  /**
2838
2960
  * An array of objects representing the selectable options.
2839
2961
  */
2840
- options: ListOptionType[] | ListOptionGroupType[];
2962
+ options: SelectOption[] | SelectOptionGroup[];
2841
2963
  /**
2842
2964
  * Text to be put as placeholder of the select.
2843
2965
  */
2844
2966
  placeholder?: string;
2967
+ /**
2968
+ * Reference to the select component.
2969
+ */
2970
+ ref?: RefType$4;
2845
2971
  /**
2846
2972
  * If true, enables search functionality.
2847
2973
  */
@@ -2946,11 +3072,18 @@ type MultipleSelect = CommonProps$2 & {
2946
3072
  */
2947
3073
  value?: string[];
2948
3074
  };
2949
- type Props$b = SingleSelect | MultipleSelect;
3075
+ type SelectProps = PrettifyTypes<SingleSelect | MultipleSelect>;
2950
3076
 
2951
- declare const DxcSelect: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
3077
+ declare const DxcSelect: {
3078
+ ({ ariaLabel, defaultValue, disabled, enableSelectAll, error, helperText, label, margin, multiple, name, onBlur, onChange, optional, options, placeholder, ref, searchable, searchByStartsWith, size, tabIndex, value, virtualizedHeight, }: SelectProps): react.JSX.Element;
3079
+ displayName: string;
3080
+ };
2952
3081
 
2953
- type Props$a = {
3082
+ /**
3083
+ * Reference to the component.
3084
+ */
3085
+ type RefType$3 = React.Ref<HTMLDivElement>;
3086
+ type SliderProps = {
2954
3087
  /**
2955
3088
  * Specifies a string to be used as the name for the slider element when no `label` is provided.
2956
3089
  */
@@ -2980,7 +3113,7 @@ type Props$a = {
2980
3113
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2981
3114
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2982
3115
  */
2983
- margin?: Space$1 | Margin;
3116
+ margin?: Space | Margin;
2984
3117
  /**
2985
3118
  * Whether the marks between each step should be shown or not.
2986
3119
  */
@@ -3007,6 +3140,10 @@ type Props$a = {
3007
3140
  * The new value will be passed as a parameter when this function is executed.
3008
3141
  */
3009
3142
  onDragEnd?: (value: number) => void;
3143
+ /**
3144
+ * Reference to the component.
3145
+ */
3146
+ ref?: RefType$3;
3010
3147
  /**
3011
3148
  * Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
3012
3149
  */
@@ -3029,9 +3166,12 @@ type Props$a = {
3029
3166
  value?: number;
3030
3167
  };
3031
3168
 
3032
- declare const DxcSlider: react.ForwardRefExoticComponent<Props$a & react.RefAttributes<HTMLDivElement>>;
3169
+ declare const DxcSlider: {
3170
+ ({ ariaLabel, defaultValue, disabled, helperText, label, labelFormatCallback, margin, marks, maxValue, minValue, name, onChange, onDragEnd, ref, showLimitsValues, showInput, size, step, value, }: SliderProps): react.JSX.Element;
3171
+ displayName: string;
3172
+ };
3033
3173
 
3034
- type Props$9 = {
3174
+ type SpinnerProps = {
3035
3175
  /**
3036
3176
  * Specifies a string to be used as the name for the spinner element when no `label` is provided or the `mode` is set to small.
3037
3177
  */
@@ -3049,7 +3189,7 @@ type Props$9 = {
3049
3189
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3050
3190
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3051
3191
  */
3052
- margin?: Space$1 | Margin;
3192
+ margin?: Space | Margin;
3053
3193
  /**
3054
3194
  * Available modes of the spinner.
3055
3195
  */
@@ -3065,11 +3205,9 @@ type Props$9 = {
3065
3205
  value?: number;
3066
3206
  };
3067
3207
 
3068
- declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$9) => react_jsx_runtime.JSX.Element;
3208
+ declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: SpinnerProps) => react.JSX.Element;
3069
3209
 
3070
- type Mode = "default" | "info" | "success" | "warning" | "error";
3071
- type Size = "small" | "medium" | "large";
3072
- type Props$8 = {
3210
+ type StatusLightProps = {
3073
3211
  /**
3074
3212
  * It will define the color of the light based on its semantic meaning.
3075
3213
  */
@@ -3081,12 +3219,16 @@ type Props$8 = {
3081
3219
  /**
3082
3220
  * Size of the component. Should be defined based on its importance and/or available space.
3083
3221
  */
3084
- size?: Size;
3222
+ size?: "small" | "medium" | "large";
3085
3223
  };
3086
3224
 
3087
- declare function DxcStatusLight({ label, mode, size }: Props$8): react_jsx_runtime.JSX.Element;
3225
+ declare function DxcStatusLight({ label, mode, size }: StatusLightProps): react.JSX.Element;
3088
3226
 
3089
- type Props$7 = {
3227
+ /**
3228
+ * Reference to the component.
3229
+ */
3230
+ type RefType$2 = React.Ref<HTMLDivElement>;
3231
+ type SwitchProps = {
3090
3232
  /**
3091
3233
  * Specifies a string to be used as the name for the switch element when no `label` is provided.
3092
3234
  */
@@ -3116,7 +3258,7 @@ type Props$7 = {
3116
3258
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3117
3259
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3118
3260
  */
3119
- margin?: Space$1 | Margin;
3261
+ margin?: Space | Margin;
3120
3262
  /**
3121
3263
  * Name attribute of the input element.
3122
3264
  */
@@ -3130,6 +3272,10 @@ type Props$7 = {
3130
3272
  * If true, the component will display '(Optional)' next to the label.
3131
3273
  */
3132
3274
  optional?: boolean;
3275
+ /**
3276
+ * Reference to the component.
3277
+ */
3278
+ ref?: RefType$2;
3133
3279
  /**
3134
3280
  * Size of the component.
3135
3281
  */
@@ -3145,14 +3291,59 @@ type Props$7 = {
3145
3291
  value?: string;
3146
3292
  };
3147
3293
 
3148
- declare const DxcSwitch: react.ForwardRefExoticComponent<Props$7 & react.RefAttributes<HTMLDivElement>>;
3149
-
3150
- declare const DxcTable: {
3151
- ({ children, margin, mode }: Props$t): react_jsx_runtime.JSX.Element;
3152
- ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
3294
+ declare const DxcSwitch: {
3295
+ ({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, ref, size, tabIndex, value, }: SwitchProps): react.JSX.Element;
3296
+ displayName: string;
3153
3297
  };
3154
3298
 
3155
- type CommonTabProps = {
3299
+ type BaseActionCell = {
3300
+ disabled?: boolean;
3301
+ tabIndex?: number;
3302
+ title: string;
3303
+ };
3304
+ type TableActionCell = PrettifyTypes<BaseActionCell & ({
3305
+ icon: string | SVG;
3306
+ onClick: () => void;
3307
+ options?: never;
3308
+ } | {
3309
+ icon?: never;
3310
+ onClick: (value?: string) => void;
3311
+ options: DropdownOption[];
3312
+ })>;
3313
+ type ActionsCellProps = {
3314
+ /**
3315
+ * It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
3316
+ * or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
3317
+ * Only the first action with options will be displayed and only up to 3 actions.
3318
+ * In the case of the dropdown the click function will pass the value assigned to the option.
3319
+ */
3320
+ actions: TableActionCell[];
3321
+ };
3322
+ type TableProps = {
3323
+ /**
3324
+ * The center section of the table. Can be used to render custom
3325
+ * content in this area.
3326
+ */
3327
+ children: ReactNode;
3328
+ /**
3329
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3330
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3331
+ */
3332
+ margin?: Space | Margin;
3333
+ /**
3334
+ * Determines the visual style and layout
3335
+ * - "default": Default table size.
3336
+ * - "reduced": More compact table with less spacing for high density information.
3337
+ */
3338
+ mode?: "default" | "reduced";
3339
+ };
3340
+
3341
+ declare const DxcTable: {
3342
+ ({ children, margin, mode }: TableProps): react.JSX.Element;
3343
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
3344
+ };
3345
+
3346
+ type CommonTabProps = {
3156
3347
  defaultActive?: boolean;
3157
3348
  active?: boolean;
3158
3349
  title?: string;
@@ -3161,16 +3352,17 @@ type CommonTabProps = {
3161
3352
  children: ReactNode;
3162
3353
  onClick?: () => void;
3163
3354
  onHover?: () => void;
3355
+ ref?: React.Ref<HTMLButtonElement>;
3164
3356
  };
3165
- type TabProps = (CommonTabProps & {
3357
+ type TabsTabProps = PrettifyTypes<CommonTabProps & ({
3166
3358
  tabId: string;
3167
3359
  label?: string;
3168
3360
  icon?: string | SVG;
3169
- }) | (CommonTabProps & {
3361
+ } | (CommonTabProps & {
3170
3362
  tabId?: string;
3171
3363
  label: string;
3172
3364
  icon?: string | SVG;
3173
- });
3365
+ }))>;
3174
3366
  type TabsProps = {
3175
3367
  /**
3176
3368
  * Whether the icon should appear above or to the left of the label.
@@ -3180,7 +3372,7 @@ type TabsProps = {
3180
3372
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3181
3373
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3182
3374
  */
3183
- margin?: Space$1 | Margin;
3375
+ margin?: Space | Margin;
3184
3376
  /**
3185
3377
  * Value of the tabindex attribute applied to each tab.
3186
3378
  */
@@ -3190,14 +3382,20 @@ type TabsProps = {
3190
3382
  */
3191
3383
  children?: ReactNode;
3192
3384
  };
3193
- type Props$6 = TabsProps;
3194
3385
 
3195
3386
  declare const DxcTabs: {
3196
- ({ children, iconPosition, margin, tabIndex }: Props$6): react_jsx_runtime.JSX.Element;
3197
- Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
3387
+ ({ children, iconPosition, margin, tabIndex }: TabsProps): react.JSX.Element;
3388
+ Tab: {
3389
+ ({ active, disabled, icon, label, notificationNumber, onClick, onHover, ref, title, tabId, }: TabsTabProps): react.JSX.Element;
3390
+ displayName: string;
3391
+ };
3198
3392
  };
3199
3393
 
3200
- type Props$5 = {
3394
+ /**
3395
+ * Reference to the component.
3396
+ */
3397
+ type RefType$1 = React.Ref<HTMLDivElement>;
3398
+ type TextAreaProps = {
3201
3399
  /**
3202
3400
  * Specifies a string to be used as the name for the textarea element when no `label` is provided.
3203
3401
  */
@@ -3246,7 +3444,7 @@ type Props$5 = {
3246
3444
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3247
3445
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3248
3446
  */
3249
- margin?: Space$1 | Margin;
3447
+ margin?: Space | Margin;
3250
3448
  /**
3251
3449
  * Specifies the minimum length allowed by the textarea.
3252
3450
  * This will be checked both when the textarea loses the
@@ -3306,6 +3504,10 @@ type Props$5 = {
3306
3504
  * If true, the component will not be mutable, meaning the user can not edit the control.
3307
3505
  */
3308
3506
  readOnly?: boolean;
3507
+ /**
3508
+ * Reference to the container element of the textarea component.
3509
+ */
3510
+ ref?: RefType$1;
3309
3511
  /**
3310
3512
  * Number of rows of the textarea.
3311
3513
  */
@@ -3331,25 +3533,12 @@ type Props$5 = {
3331
3533
  verticalGrow?: "auto" | "manual" | "none";
3332
3534
  };
3333
3535
 
3334
- declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
3335
-
3336
- type Action$1 = {
3337
- /**
3338
- * This function will be called when the user clicks the action.
3339
- */
3340
- onClick: () => void;
3341
- /**
3342
- * Icon to be placed in the action..
3343
- */
3344
- icon: string | SVG;
3345
- /**
3346
- * Text representing advisory information related
3347
- * to the button's action. Under the hood, this prop also serves
3348
- * as an accessible label for the component.
3349
- */
3350
- title?: string;
3536
+ declare const DxcTextarea: {
3537
+ ({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, onBlur, onChange, optional, pattern, placeholder, readOnly, ref, rows, size, tabIndex, value, verticalGrow, }: TextAreaProps): react.JSX.Element;
3538
+ displayName: string;
3351
3539
  };
3352
- type Props$4 = {
3540
+
3541
+ type TextInputProps = {
3353
3542
  /**
3354
3543
  * Sets the alignment inside the input.
3355
3544
  */
@@ -3396,6 +3585,10 @@ type Props$4 = {
3396
3585
  * and the custom action will not execute its onClick event.
3397
3586
  */
3398
3587
  readOnly?: boolean;
3588
+ /**
3589
+ * Ref to the input element.
3590
+ */
3591
+ ref?: React.Ref<HTMLInputElement>;
3399
3592
  /**
3400
3593
  * If true, the input will be optional, showing '(Optional)'
3401
3594
  * next to the label. Otherwise, the field will be considered required and an error will be
@@ -3487,7 +3680,7 @@ type Props$4 = {
3487
3680
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3488
3681
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3489
3682
  */
3490
- margin?: Space$1 | Margin;
3683
+ margin?: Space | Margin;
3491
3684
  /**
3492
3685
  * Size of the component.
3493
3686
  */
@@ -3502,7 +3695,107 @@ type Props$4 = {
3502
3695
  ariaLabel?: string;
3503
3696
  };
3504
3697
 
3505
- declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
3698
+ declare const DxcTextInput: {
3699
+ ({ alignment, action, ariaLabel, autocomplete, clearable, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, optional, placeholder, prefix, readOnly, suffix, onBlur, onChange, pattern, ref, size, suggestions, tabIndex, value, }: TextInputProps): JSX.Element;
3700
+ displayName: string;
3701
+ };
3702
+
3703
+ /**
3704
+ * Reference to the component.
3705
+ */
3706
+ type RefType = React.Ref<HTMLDivElement>;
3707
+ type TimeInputProps = {
3708
+ /**
3709
+ * Specifies a string to be used as the name for the timeInput element when no `label` is provided.
3710
+ */
3711
+ ariaLabel?: string;
3712
+ /**
3713
+ * If true, the input will have an action to clear the entered value.
3714
+ */
3715
+ clearable?: boolean;
3716
+ /**
3717
+ * Initial value of the input, only when it is uncontrolled.
3718
+ */
3719
+ defaultValue?: string;
3720
+ /**
3721
+ * If true, the component will be disabled.
3722
+ */
3723
+ disabled?: boolean;
3724
+ /**
3725
+ * If it is a defined value and also a truthy string, the component will
3726
+ * change its appearance, showing the error below the input component. If
3727
+ * the defined value is an empty string, it will reserve a space below
3728
+ * the component for a future error, but it would not change its look. In
3729
+ * case of being undefined or null, both the appearance and the space for
3730
+ * the error message would not be modified.
3731
+ */
3732
+ error?: string;
3733
+ /**
3734
+ * Helper text to be placed above the input.
3735
+ */
3736
+ helperText?: string;
3737
+ /**
3738
+ * Text to be placed above the input.
3739
+ */
3740
+ label?: string;
3741
+ /**
3742
+ * Name attribute of the input element.
3743
+ */
3744
+ name?: string;
3745
+ /**
3746
+ * This function will be called when the input element loses the focus.
3747
+ * An object including the input value and the error (if the value
3748
+ * entered is not valid) will be passed to this function. If there is no error,
3749
+ * error will not be defined.
3750
+ */
3751
+ onBlur?: (val: {
3752
+ value: string;
3753
+ error?: string;
3754
+ }) => void;
3755
+ /**
3756
+ * This function will be called when the user types within the input
3757
+ * or selects a value in the dropdown element of the component.
3758
+ */
3759
+ onChange?: (value: string) => void;
3760
+ /**
3761
+ * If true, the input will be optional, showing '(Optional)'
3762
+ * next to the label. Otherwise, the field will be considered required and an error will be
3763
+ * passed as a parameter to the OnBlur function when it has
3764
+ * not been filled.
3765
+ */
3766
+ optional?: boolean;
3767
+ /**
3768
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3769
+ * In addition, the clear action will not be displayed even if the flag is set to true.
3770
+ */
3771
+ readOnly?: boolean;
3772
+ /**
3773
+ * Reference to the component.
3774
+ */
3775
+ ref?: RefType;
3776
+ /**
3777
+ * If true, the component will display seconds and allow the user to input them. Otherwise, seconds will not be shown and the user will not be able to input them.
3778
+ */
3779
+ showSeconds?: boolean;
3780
+ /**
3781
+ * Size of the component.
3782
+ */
3783
+ size?: "small" | "medium" | "large" | "fillParent";
3784
+ /**
3785
+ * Value of the tabindex attribute.
3786
+ */
3787
+ tabIndex?: number;
3788
+ /**
3789
+ * Time format of the input. It can be either 12 or 24.
3790
+ */
3791
+ timeFormat?: "12" | "24";
3792
+ /**
3793
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3794
+ */
3795
+ value?: string;
3796
+ };
3797
+
3798
+ declare const DxcTimeInput: ({ ariaLabel, clearable, defaultValue, disabled, error, helperText, label, name, optional, readOnly, onBlur, onChange, ref, showSeconds, size, tabIndex, timeFormat, value, }: TimeInputProps) => react.JSX.Element;
3506
3799
 
3507
3800
  type Action = {
3508
3801
  /**
@@ -3528,24 +3821,35 @@ type CommonProps$1 = {
3528
3821
  */
3529
3822
  message: string;
3530
3823
  };
3531
- type DefaultToast = CommonProps$1 & {
3824
+ type DefaultToast = PrettifyTypes<CommonProps$1 & {
3532
3825
  /**
3533
3826
  * Material Symbol name or SVG element as the icon that will be placed next to the panel label.
3534
3827
  * When using Material Symbols, replace spaces with underscores.
3535
3828
  * By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
3536
3829
  */
3537
3830
  icon?: string | SVG;
3538
- };
3539
- type LoadingToast = CommonProps$1 & {
3831
+ }>;
3832
+ type LoadingToast = PrettifyTypes<CommonProps$1 & {
3540
3833
  loading: boolean;
3541
- };
3542
- type SemanticToast = CommonProps$1 & {
3834
+ }>;
3835
+ type SemanticToast = PrettifyTypes<CommonProps$1 & {
3543
3836
  /**
3544
3837
  * Flag that allows to hide the semantic icon of the toast.
3545
3838
  */
3546
3839
  hideSemanticIcon?: boolean;
3840
+ }>;
3841
+ type Semantic = "default" | "info" | "success" | "warning";
3842
+ type ToastProps = {
3843
+ action?: Action;
3844
+ duration: number;
3845
+ icon?: string | SVG;
3846
+ loading?: boolean;
3847
+ message: string;
3848
+ onClear: () => void;
3849
+ semantic: Semantic;
3850
+ hideSemanticIcon?: boolean;
3547
3851
  };
3548
- type ToastsQueuePropsType = {
3852
+ type ToastsQueueProps = {
3549
3853
  /**
3550
3854
  * Tree of components from which the useToast hook can be triggered.
3551
3855
  */
@@ -3557,9 +3861,9 @@ type ToastsQueuePropsType = {
3557
3861
  duration?: number;
3558
3862
  };
3559
3863
 
3560
- declare function DxcToastsQueue({ children, duration }: ToastsQueuePropsType): react_jsx_runtime.JSX.Element;
3864
+ declare function DxcToastsQueue({ children, duration }: ToastsQueueProps): react.JSX.Element;
3561
3865
 
3562
- type OptionIcon = {
3866
+ type ToggleOptionIcon = {
3563
3867
  /**
3564
3868
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3565
3869
  */
@@ -3574,7 +3878,7 @@ type OptionIcon = {
3574
3878
  */
3575
3879
  title: string;
3576
3880
  };
3577
- type OptionLabel = {
3881
+ type ToggleOptionLabel = {
3578
3882
  /**
3579
3883
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3580
3884
  */
@@ -3589,7 +3893,7 @@ type OptionLabel = {
3589
3893
  */
3590
3894
  title?: never;
3591
3895
  };
3592
- type Option = {
3896
+ type ToggleOption = PrettifyTypes<{
3593
3897
  /**
3594
3898
  * If true, the option will be disabled.
3595
3899
  */
@@ -3598,17 +3902,17 @@ type Option = {
3598
3902
  * Number with the option inner value.
3599
3903
  */
3600
3904
  value: number;
3601
- } & (OptionIcon | OptionLabel);
3905
+ } & (ToggleOptionIcon | ToggleOptionLabel)>;
3602
3906
  type CommonProps = {
3603
3907
  /**
3604
3908
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3605
3909
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3606
3910
  */
3607
- margin?: Space$1 | Margin;
3911
+ margin?: Space | Margin;
3608
3912
  /**
3609
3913
  * An array of objects representing the selectable options.
3610
3914
  */
3611
- options: Option[];
3915
+ options: ToggleOption[];
3612
3916
  /**
3613
3917
  * The orientation of the toggle group.
3614
3918
  */
@@ -3658,11 +3962,11 @@ type SingleSelectionToggleGroup = {
3658
3962
  */
3659
3963
  value?: number;
3660
3964
  };
3661
- type Props$3 = CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup);
3965
+ type ToggleGroupProps = PrettifyTypes<CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup)>;
3662
3966
 
3663
- declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: Props$3): react_jsx_runtime.JSX.Element;
3967
+ declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: ToggleGroupProps): react.JSX.Element;
3664
3968
 
3665
- type Props$2 = {
3969
+ type TooltipProps = {
3666
3970
  /**
3667
3971
  * Content in which the Tooltip will be displayed.
3668
3972
  */
@@ -3677,9 +3981,9 @@ type Props$2 = {
3677
3981
  position?: "bottom" | "top" | "left" | "right";
3678
3982
  };
3679
3983
 
3680
- declare const DxcTooltip: (props: Props$2) => react_jsx_runtime.JSX.Element;
3984
+ declare const DxcTooltip: (props: TooltipProps) => react.JSX.Element;
3681
3985
 
3682
- type Props$1 = {
3986
+ type TypographyProps = {
3683
3987
  as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
3684
3988
  children: ReactNode;
3685
3989
  color?: string;
@@ -3696,9 +4000,9 @@ type Props$1 = {
3696
4000
  whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
3697
4001
  };
3698
4002
 
3699
- declare function DxcTypography({ children, ...props }: Props$1): react_jsx_runtime.JSX.Element;
4003
+ declare function DxcTypography({ children, ...props }: TypographyProps): react.JSX.Element;
3700
4004
 
3701
- type StepProps = {
4005
+ type WizardStepProps = {
3702
4006
  /**
3703
4007
  * Step label.
3704
4008
  */
@@ -3720,7 +4024,7 @@ type StepProps = {
3720
4024
  */
3721
4025
  valid?: boolean;
3722
4026
  };
3723
- type Props = {
4027
+ type WizardProps = {
3724
4028
  /**
3725
4029
  * The wizard can be shown in horizontal or vertical.
3726
4030
  */
@@ -3741,19 +4045,19 @@ type Props = {
3741
4045
  /**
3742
4046
  * An array of objects representing the steps.
3743
4047
  */
3744
- steps: StepProps[];
4048
+ steps: WizardStepProps[];
3745
4049
  /**
3746
4050
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3747
4051
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3748
4052
  */
3749
- margin?: Space$1 | Margin;
4053
+ margin?: Space | Margin;
3750
4054
  /**
3751
4055
  * Value of the tabindex attribute that is given to all the steps.
3752
4056
  */
3753
4057
  tabIndex?: number;
3754
4058
  };
3755
4059
 
3756
- declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: Props): react_jsx_runtime.JSX.Element;
4060
+ declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: WizardProps): react.JSX.Element;
3757
4061
 
3758
4062
  declare const defaultTranslatedComponentLabels: {
3759
4063
  applicationLayout: {
@@ -3771,8 +4075,12 @@ declare const defaultTranslatedComponentLabels: {
3771
4075
  previousMonthTitle: string;
3772
4076
  nextMonthTitle: string;
3773
4077
  };
4078
+ card: {
4079
+ noContent: string;
4080
+ };
3774
4081
  dateInput: {
3775
4082
  invalidDateErrorMessage: string;
4083
+ datePickerActionTitle: string;
3776
4084
  };
3777
4085
  dialog: {
3778
4086
  closeIconAriaLabel: string;
@@ -3795,13 +4103,21 @@ declare const defaultTranslatedComponentLabels: {
3795
4103
  requiredSelectionErrorMessage: string;
3796
4104
  requiredValueErrorMessage: string;
3797
4105
  formatRequestedErrorMessage: string;
3798
- lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3799
- logoAlternativeText: string;
4106
+ minLengthErrorMessage: (minLength: number) => string;
4107
+ maxLengthErrorMessage: (maxLength: number) => string;
3800
4108
  };
3801
4109
  header: {
3802
4110
  closeIcon: string;
3803
4111
  hamburgerTitle: string;
3804
4112
  };
4113
+ messageInput: {
4114
+ inputAriaLabel: string;
4115
+ sendButtonTitle: string;
4116
+ stopButtonTitle: string;
4117
+ attachFileButtonTitle: string;
4118
+ recordAudioButtonTitle: string;
4119
+ stopRecordingButtonTitle: string;
4120
+ };
3805
4121
  numberInput: {
3806
4122
  valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3807
4123
  valueLessThanOrEqualToErrorMessage: (value: number) => string;
@@ -3849,11 +4165,20 @@ declare const defaultTranslatedComponentLabels: {
3849
4165
  searchingMessage: string;
3850
4166
  fetchingDataErrorMessage: string;
3851
4167
  };
4168
+ timeInput: {
4169
+ timePickerActionTitle: string;
4170
+ timePeriodAM: string;
4171
+ timePeriodPM: string;
4172
+ };
3852
4173
  toast: {
3853
4174
  clearToastActionTitle: string;
3854
4175
  };
3855
4176
  };
3856
4177
  type TranslatedLabels = typeof defaultTranslatedComponentLabels;
4178
+ type LocalizedContext = {
4179
+ labels: TranslatedLabels;
4180
+ locale?: string;
4181
+ };
3857
4182
 
3858
4183
  /**
3859
4184
  * This type is used to allow labels objects to be passed to the HalstackProvider.
@@ -3862,111 +4187,18 @@ type TranslatedLabels = typeof defaultTranslatedComponentLabels;
3862
4187
  type DeepPartial<T> = {
3863
4188
  [P in keyof T]?: Partial<T[P]>;
3864
4189
  };
3865
- declare const HalstackLanguageContext: react.Context<{
3866
- applicationLayout: {
3867
- visibilityToggleTitle: string;
3868
- };
3869
- alert: {
3870
- previousMessageActionTitle: string;
3871
- nextMessageActionTitle: string;
3872
- closeAlertActionTitle: string;
3873
- closeMessageActionTitle: string;
3874
- };
3875
- calendar: {
3876
- daysShort: string[];
3877
- months: string[];
3878
- previousMonthTitle: string;
3879
- nextMonthTitle: string;
3880
- };
3881
- dateInput: {
3882
- invalidDateErrorMessage: string;
3883
- };
3884
- dialog: {
3885
- closeIconAriaLabel: string;
3886
- };
3887
- fileInput: {
3888
- fileSizeGreaterThanErrorMessage: string;
3889
- fileSizeLessThanErrorMessage: string;
3890
- multipleButtonLabelDefault: string;
3891
- singleButtonLabelDefault: string;
3892
- dropAreaButtonLabelDefault: string;
3893
- multipleDropAreaLabelDefault: string;
3894
- singleDropAreaLabelDefault: string;
3895
- deleteFileActionTitle: string;
3896
- };
3897
- footer: {
3898
- copyrightText: (year: number) => string;
3899
- };
3900
- formFields: {
3901
- optionalLabel: string;
3902
- requiredSelectionErrorMessage: string;
3903
- requiredValueErrorMessage: string;
3904
- formatRequestedErrorMessage: string;
3905
- lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3906
- logoAlternativeText: string;
3907
- };
3908
- header: {
3909
- closeIcon: string;
3910
- hamburgerTitle: string;
3911
- };
3912
- numberInput: {
3913
- valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3914
- valueLessThanOrEqualToErrorMessage: (value: number) => string;
3915
- decrementValueTitle: string;
3916
- incrementValueTitle: string;
3917
- };
3918
- paginator: {
3919
- itemsPerPageText: string;
3920
- minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
3921
- goToPageText: string;
3922
- pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
3923
- firstResultsTitle: string;
3924
- previousResultsTitle: string;
3925
- nextResultsTitle: string;
3926
- lastResultsTitle: string;
3927
- };
3928
- passwordInput: {
3929
- inputShowPasswordTitle: string;
3930
- inputHidePasswordTitle: string;
3931
- };
3932
- quickNav: {
3933
- contentTitle: string;
3934
- };
3935
- radioGroup: {
3936
- optionalItemLabelDefault: string;
3937
- };
3938
- searchBar: {
3939
- clearFieldActionTitle: string;
3940
- inputAriaLabel: string;
3941
- triggerTitle: string;
3942
- cancelButtonLabel: string;
3943
- };
3944
- select: {
3945
- actionClearSelectionTitle: string;
3946
- actionClearSearchTitle: string;
3947
- noMatchesErrorMessage: string;
3948
- selectAllLabel: string;
3949
- };
3950
- tabs: {
3951
- scrollLeft: string;
3952
- scrollRight: string;
3953
- };
3954
- textInput: {
3955
- clearFieldActionTitle: string;
3956
- searchingMessage: string;
3957
- fetchingDataErrorMessage: string;
3958
- };
3959
- toast: {
3960
- clearToastActionTitle: string;
3961
- };
3962
- }>;
3963
- type ThemeType = Record<string, string | number>;
4190
+ declare const HalstackLanguageContext: react.Context<LocalizedContext>;
4191
+ type ThemeType = {
4192
+ tokens?: Record<string, string | number>;
4193
+ logos?: Record<string, string | undefined>;
4194
+ };
3964
4195
  type HalstackProviderPropsType = {
3965
4196
  labels?: DeepPartial<TranslatedLabels>;
3966
4197
  children: ReactNode;
3967
4198
  opinionatedTheme?: ThemeType;
4199
+ localeTag?: string;
3968
4200
  };
3969
- declare const HalstackProvider: ({ labels, children, opinionatedTheme }: HalstackProviderPropsType) => JSX.Element;
4201
+ declare const HalstackProvider: ({ labels, children, opinionatedTheme, localeTag, }: HalstackProviderPropsType) => JSX.Element;
3970
4202
 
3971
4203
  declare function useToast(): {
3972
4204
  default: (toast: DefaultToast) => (() => void) | undefined;
@@ -3976,4 +4208,547 @@ declare function useToast(): {
3976
4208
  loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
3977
4209
  };
3978
4210
 
3979
- export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcAvatar, 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 };
4211
+ declare const coreTokens: {
4212
+ /**************/
4213
+ /** POSITION **/
4214
+ /**************/
4215
+ "--z-app-layout-sidenav": number;
4216
+ "--z-app-layout-header": number;
4217
+ "--z-header-overlay": number;
4218
+ "--z-header-menu": number;
4219
+ "--z-date-input": number;
4220
+ "--z-dropdown": number;
4221
+ "--z-textinput": number;
4222
+ "--z-select": number;
4223
+ "--z-contextualmenu": number;
4224
+ "--z-dialog": number;
4225
+ "--z-spinner-overlay": number;
4226
+ "--z-progressbar-overlay": number;
4227
+ "--z-alert": number;
4228
+ "--z-toast": number;
4229
+ "--z-tooltip": number;
4230
+ /************/
4231
+ /** TOKENS **/
4232
+ /************/
4233
+ "--color-absolutes-black": string;
4234
+ "--color-absolutes-white": string;
4235
+ "--color-alpha-100-a": string;
4236
+ "--color-alpha-200-a": string;
4237
+ "--color-alpha-300-a": string;
4238
+ "--color-alpha-400-a": string;
4239
+ "--color-alpha-500-a": string;
4240
+ "--color-alpha-600-a": string;
4241
+ "--color-alpha-700-a": string;
4242
+ "--color-alpha-800-a": string;
4243
+ "--color-alpha-900-a": string;
4244
+ "--color-primary-50": string;
4245
+ "--color-primary-100": string;
4246
+ "--color-primary-200": string;
4247
+ "--color-primary-300": string;
4248
+ "--color-primary-400": string;
4249
+ "--color-primary-500": string;
4250
+ "--color-primary-600": string;
4251
+ "--color-primary-700": string;
4252
+ "--color-primary-800": string;
4253
+ "--color-primary-900": string;
4254
+ "--color-secondary-50": string;
4255
+ "--color-secondary-100": string;
4256
+ "--color-secondary-200": string;
4257
+ "--color-secondary-300": string;
4258
+ "--color-secondary-400": string;
4259
+ "--color-secondary-500": string;
4260
+ "--color-secondary-600": string;
4261
+ "--color-secondary-700": string;
4262
+ "--color-secondary-800": string;
4263
+ "--color-secondary-900": string;
4264
+ "--color-tertiary-50": string;
4265
+ "--color-tertiary-100": string;
4266
+ "--color-tertiary-200": string;
4267
+ "--color-tertiary-300": string;
4268
+ "--color-tertiary-400": string;
4269
+ "--color-tertiary-500": string;
4270
+ "--color-tertiary-600": string;
4271
+ "--color-tertiary-700": string;
4272
+ "--color-tertiary-800": string;
4273
+ "--color-tertiary-900": string;
4274
+ "--color-semantic01-50": string;
4275
+ "--color-semantic01-100": string;
4276
+ "--color-semantic01-200": string;
4277
+ "--color-semantic01-300": string;
4278
+ "--color-semantic01-400": string;
4279
+ "--color-semantic01-500": string;
4280
+ "--color-semantic01-600": string;
4281
+ "--color-semantic01-700": string;
4282
+ "--color-semantic01-800": string;
4283
+ "--color-semantic01-900": string;
4284
+ "--color-semantic02-50": string;
4285
+ "--color-semantic02-100": string;
4286
+ "--color-semantic02-200": string;
4287
+ "--color-semantic02-300": string;
4288
+ "--color-semantic02-400": string;
4289
+ "--color-semantic02-500": string;
4290
+ "--color-semantic02-600": string;
4291
+ "--color-semantic02-700": string;
4292
+ "--color-semantic02-800": string;
4293
+ "--color-semantic02-900": string;
4294
+ "--color-semantic03-50": string;
4295
+ "--color-semantic03-100": string;
4296
+ "--color-semantic03-200": string;
4297
+ "--color-semantic03-300": string;
4298
+ "--color-semantic03-400": string;
4299
+ "--color-semantic03-500": string;
4300
+ "--color-semantic03-600": string;
4301
+ "--color-semantic03-700": string;
4302
+ "--color-semantic03-800": string;
4303
+ "--color-semantic03-900": string;
4304
+ "--color-semantic04-50": string;
4305
+ "--color-semantic04-100": string;
4306
+ "--color-semantic04-200": string;
4307
+ "--color-semantic04-300": string;
4308
+ "--color-semantic04-400": string;
4309
+ "--color-semantic04-500": string;
4310
+ "--color-semantic04-600": string;
4311
+ "--color-semantic04-700": string;
4312
+ "--color-semantic04-800": string;
4313
+ "--color-semantic04-900": string;
4314
+ "--color-neutral-50": string;
4315
+ "--color-neutral-100": string;
4316
+ "--color-neutral-200": string;
4317
+ "--color-neutral-300": string;
4318
+ "--color-neutral-400": string;
4319
+ "--color-neutral-500": string;
4320
+ "--color-neutral-600": string;
4321
+ "--color-neutral-700": string;
4322
+ "--color-neutral-800": string;
4323
+ "--color-neutral-900": string;
4324
+ "--dimensions-0": string;
4325
+ "--dimensions-1": string;
4326
+ "--dimensions-2": string;
4327
+ "--dimensions-4": string;
4328
+ "--dimensions-8": string;
4329
+ "--dimensions-12": string;
4330
+ "--dimensions-16": string;
4331
+ "--dimensions-20": string;
4332
+ "--dimensions-24": string;
4333
+ "--dimensions-28": string;
4334
+ "--dimensions-32": string;
4335
+ "--dimensions-36": string;
4336
+ "--dimensions-40": string;
4337
+ "--dimensions-44": string;
4338
+ "--dimensions-48": string;
4339
+ "--dimensions-56": string;
4340
+ "--dimensions-64": string;
4341
+ "--dimensions-72": string;
4342
+ "--dimensions-80": string;
4343
+ "--dimensions-96": string;
4344
+ "--font-size-12": string;
4345
+ "--font-size-14": string;
4346
+ "--font-size-16": string;
4347
+ "--font-size-18": string;
4348
+ "--font-size-20": string;
4349
+ "--font-size-24": string;
4350
+ "--font-size-32": string;
4351
+ "--font-size-40": string;
4352
+ "--font-size-48": string;
4353
+ "--font-size-60": string;
4354
+ "--font-weight-light": string;
4355
+ "--font-weight-regular": string;
4356
+ "--font-weight-semibold": string;
4357
+ "--font-weight-bold": string;
4358
+ "--font-family-mono": string;
4359
+ "--font-family-sans": string;
4360
+ "--font-style-lightitalic": string;
4361
+ "--font-style-normal": string;
4362
+ "--line-style-dashed": string;
4363
+ "--line-style-solid": string;
4364
+ };
4365
+ declare const aliasTokens: {
4366
+ /************/
4367
+ /** TOKENS **/
4368
+ /************/
4369
+ "--border-color-info-lightest": string;
4370
+ "--border-color-info-lighter": string;
4371
+ "--border-color-info-light": string;
4372
+ "--border-color-info-medium": string;
4373
+ "--border-color-info-strong": string;
4374
+ "--border-color-info-stronger": string;
4375
+ "--border-color-info-strongest": string;
4376
+ "--border-color-success-light": string;
4377
+ "--border-color-success-medium": string;
4378
+ "--border-color-success-strong": string;
4379
+ "--border-color-warning-light": string;
4380
+ "--border-color-warning-medium": string;
4381
+ "--border-color-warning-strong": string;
4382
+ "--border-color-error-light": string;
4383
+ "--border-color-error-medium": string;
4384
+ "--border-color-error-strong": string;
4385
+ "--border-color-error-stronger": string;
4386
+ "--border-color-neutral-bright": string;
4387
+ "--border-color-neutral-brighter": string;
4388
+ "--border-color-neutral-dark": string;
4389
+ "--border-color-neutral-light": string;
4390
+ "--border-color-neutral-lighter": string;
4391
+ "--border-color-neutral-lightest": string;
4392
+ "--border-color-neutral-medium": string;
4393
+ "--border-color-neutral-strong": string;
4394
+ "--border-color-neutral-stronger": string;
4395
+ "--border-color-neutral-strongest": string;
4396
+ "--border-color-primary-light": string;
4397
+ "--border-color-primary-lighter": string;
4398
+ "--border-color-primary-medium": string;
4399
+ "--border-color-primary-strong": string;
4400
+ "--border-color-primary-stronger": string;
4401
+ "--border-color-secondary-light": string;
4402
+ "--border-color-secondary-medium": string;
4403
+ "--border-color-secondary-strong": string;
4404
+ "--border-color-secondary-stronger": string;
4405
+ "--border-color-secondary-strongest": string;
4406
+ "--color-bg-overlay-dark": string;
4407
+ "--color-bg-yellow-light": string;
4408
+ "--color-bg-alpha-light": string;
4409
+ "--color-bg-alpha-medium": string;
4410
+ "--color-bg-alpha-strong": string;
4411
+ "--color-bg-neutral-light": string;
4412
+ "--color-bg-neutral-lighter": string;
4413
+ "--color-bg-neutral-lightest": string;
4414
+ "--color-bg-neutral-medium": string;
4415
+ "--color-bg-neutral-strong": string;
4416
+ "--color-bg-neutral-stronger": string;
4417
+ "--color-bg-neutral-strongest": string;
4418
+ "--color-bg-primary-light": string;
4419
+ "--color-bg-primary-lighter": string;
4420
+ "--color-bg-primary-lightest": string;
4421
+ "--color-bg-primary-medium": string;
4422
+ "--color-bg-primary-strong": string;
4423
+ "--color-bg-primary-stronger": string;
4424
+ "--color-bg-primary-strongest": string;
4425
+ "--color-bg-secondary-light": string;
4426
+ "--color-bg-secondary-lighter": string;
4427
+ "--color-bg-secondary-lightest": string;
4428
+ "--color-bg-secondary-medium": string;
4429
+ "--color-bg-secondary-strong": string;
4430
+ "--color-bg-secondary-stronger": string;
4431
+ "--color-bg-secondary-strongest": string;
4432
+ "--color-bg-info-lightest": string;
4433
+ "--color-bg-info-lighter": string;
4434
+ "--color-bg-info-light": string;
4435
+ "--color-bg-info-medium": string;
4436
+ "--color-bg-info-strong": string;
4437
+ "--color-bg-info-stronger": string;
4438
+ "--color-bg-info-strongest": string;
4439
+ "--color-bg-success-light": string;
4440
+ "--color-bg-success-lighter": string;
4441
+ "--color-bg-success-lightest": string;
4442
+ "--color-bg-success-medium": string;
4443
+ "--color-bg-success-strong": string;
4444
+ "--color-bg-success-stronger": string;
4445
+ "--color-bg-success-strongest": string;
4446
+ "--color-bg-warning-light": string;
4447
+ "--color-bg-warning-lighter": string;
4448
+ "--color-bg-warning-lightest": string;
4449
+ "--color-bg-warning-medium": string;
4450
+ "--color-bg-warning-strong": string;
4451
+ "--color-bg-warning-stronger": string;
4452
+ "--color-bg-warning-strongest": string;
4453
+ "--color-bg-error-light": string;
4454
+ "--color-bg-error-lighter": string;
4455
+ "--color-bg-error-lightest": string;
4456
+ "--color-bg-error-medium": string;
4457
+ "--color-bg-error-strong": string;
4458
+ "--color-bg-error-stronger": string;
4459
+ "--color-bg-error-strongest": string;
4460
+ "--color-fg-info-lightest": string;
4461
+ "--color-fg-info-lighter": string;
4462
+ "--color-fg-info-light": string;
4463
+ "--color-fg-info-medium": string;
4464
+ "--color-fg-info-strong": string;
4465
+ "--color-fg-info-stronger": string;
4466
+ "--color-fg-info-strongest": string;
4467
+ "--color-fg-success-light": string;
4468
+ "--color-fg-success-lighter": string;
4469
+ "--color-fg-success-medium": string;
4470
+ "--color-fg-success-strong": string;
4471
+ "--color-fg-success-stronger": string;
4472
+ "--color-fg-warning-light": string;
4473
+ "--color-fg-warning-medium": string;
4474
+ "--color-fg-warning-strong": string;
4475
+ "--color-fg-warning-stronger": string;
4476
+ "--color-fg-error-light": string;
4477
+ "--color-fg-error-lighter": string;
4478
+ "--color-fg-error-medium": string;
4479
+ "--color-fg-error-strong": string;
4480
+ "--color-fg-error-stronger": string;
4481
+ "--color-fg-neutral-bright": string;
4482
+ "--color-fg-neutral-dark": string;
4483
+ "--color-fg-neutral-light": string;
4484
+ "--color-fg-neutral-lighter": string;
4485
+ "--color-fg-neutral-lightest": string;
4486
+ "--color-fg-neutral-medium": string;
4487
+ "--color-fg-neutral-strong": string;
4488
+ "--color-fg-neutral-stronger": string;
4489
+ "--color-fg-neutral-strongest": string;
4490
+ "--color-fg-neutral-yellow-dark": string;
4491
+ "--color-fg-primary-light": string;
4492
+ "--color-fg-primary-lighter": string;
4493
+ "--color-fg-primary-medium": string;
4494
+ "--color-fg-primary-strong": string;
4495
+ "--color-fg-primary-stronger": string;
4496
+ "--color-fg-primary-strongest": string;
4497
+ "--color-fg-secondary-light": string;
4498
+ "--color-fg-secondary-lighter": string;
4499
+ "--color-fg-secondary-medium": string;
4500
+ "--color-fg-secondary-strong": string;
4501
+ "--color-fg-secondary-stronger": string;
4502
+ "--color-fg-secondary-strongest": string;
4503
+ "--border-radius-none": string;
4504
+ "--border-radius-xs": string;
4505
+ "--border-radius-s": string;
4506
+ "--border-radius-m": string;
4507
+ "--border-radius-l": string;
4508
+ "--border-radius-xl": string;
4509
+ "--border-width-none": string;
4510
+ "--border-width-s": string;
4511
+ "--border-width-m": string;
4512
+ "--border-width-l": string;
4513
+ "--height-xxxs": string;
4514
+ "--height-xxs": string;
4515
+ "--height-xs": string;
4516
+ "--height-s": string;
4517
+ "--height-m": string;
4518
+ "--height-l": string;
4519
+ "--height-xl": string;
4520
+ "--height-xxl": string;
4521
+ "--height-xxxl": string;
4522
+ "--shadow-100": string;
4523
+ "--shadow-200": string;
4524
+ "--shadow-300": string;
4525
+ "--shadow-400": string;
4526
+ "--spacing-gap-none": string;
4527
+ "--spacing-gap-xxs": string;
4528
+ "--spacing-gap-xs": string;
4529
+ "--spacing-gap-s": string;
4530
+ "--spacing-gap-m": string;
4531
+ "--spacing-gap-ml": string;
4532
+ "--spacing-gap-l": string;
4533
+ "--spacing-gap-xl": string;
4534
+ "--spacing-gap-xxl": string;
4535
+ "--spacing-padding-none": string;
4536
+ "--spacing-padding-xxxs": string;
4537
+ "--spacing-padding-xxs": string;
4538
+ "--spacing-padding-xs": string;
4539
+ "--spacing-padding-s": string;
4540
+ "--spacing-padding-m": string;
4541
+ "--spacing-padding-ml": string;
4542
+ "--spacing-padding-l": string;
4543
+ "--spacing-padding-xl": string;
4544
+ "--spacing-padding-xxl": string;
4545
+ "--typography-body-xs": string;
4546
+ "--typography-body-s": string;
4547
+ "--typography-body-m": string;
4548
+ "--typography-body-l": string;
4549
+ "--typography-body-xl": string;
4550
+ "--typography-body-xxl": string;
4551
+ "--typography-body-regular": string;
4552
+ "--typography-heading-xs": string;
4553
+ "--typography-heading-s": string;
4554
+ "--typography-heading-m": string;
4555
+ "--typography-heading-l": string;
4556
+ "--typography-heading-xl": string;
4557
+ "--typography-heading-xxl": string;
4558
+ "--typography-heading-light": string;
4559
+ "--typography-heading-regular": string;
4560
+ "--typography-heading-semibold": string;
4561
+ "--typography-helper-text-s": string;
4562
+ "--typography-helper-text-m": string;
4563
+ "--typography-helper-text-l": string;
4564
+ "--typography-helper-text-light": string;
4565
+ "--typography-helper-text-regular": string;
4566
+ "--typography-helper-text-semibold": string;
4567
+ "--typography-helper-text-italic": string;
4568
+ "--typography-label-s": string;
4569
+ "--typography-label-m": string;
4570
+ "--typography-label-l": string;
4571
+ "--typography-label-xl": string;
4572
+ "--typography-label-regular": string;
4573
+ "--typography-label-semibold": string;
4574
+ "--typography-link-m": string;
4575
+ "--typography-link-regular": string;
4576
+ "--typography-title-s": string;
4577
+ "--typography-title-m": string;
4578
+ "--typography-title-l": string;
4579
+ "--typography-title-xl": string;
4580
+ "--typography-title-bold": string;
4581
+ "--border-style-default": string;
4582
+ "--border-style-outline": string;
4583
+ "--typography-font-family": string;
4584
+ };
4585
+
4586
+ type FooterSocialLink = {
4587
+ /**
4588
+ * URL of the page the link goes to.
4589
+ */
4590
+ href: string;
4591
+ /**
4592
+ * Material Symbol name or SVG element as the icon used for the link.
4593
+ */
4594
+ logo: string | SVG;
4595
+ /**
4596
+ * Value for the HTML properties title and aria-label.
4597
+ */
4598
+ title: string;
4599
+ };
4600
+ type FooterBottomLink = {
4601
+ /**
4602
+ * URL of the page the link goes to.
4603
+ */
4604
+ href: string;
4605
+ /**
4606
+ * Text for the link.
4607
+ */
4608
+ text: string;
4609
+ };
4610
+ type FooterLogo = {
4611
+ /**
4612
+ * Source of the logo image.
4613
+ */
4614
+ src: string | SVG;
4615
+ /**
4616
+ * Alternative text for the logo image.
4617
+ */
4618
+ alt: string;
4619
+ };
4620
+ type FooterProps = {
4621
+ /**
4622
+ * An array of objects representing the links that will be rendered at
4623
+ * the bottom part of the footer.
4624
+ */
4625
+ bottomLinks?: FooterBottomLink[];
4626
+ /**
4627
+ * The text that will be displayed as copyright disclaimer.
4628
+ */
4629
+ copyright?: string;
4630
+ /**
4631
+ * Content to be displayed on the left side of the footer under the logo.
4632
+ */
4633
+ leftContent?: ReactNode;
4634
+ /**
4635
+ * Logo to be displayed inside the footer
4636
+ */
4637
+ logo?: FooterLogo;
4638
+ /**
4639
+ * Determines the visual style and layout
4640
+ * - "default": The default mode with full content and styling.
4641
+ * - "reduced": A reduced mode with minimal content and styling.
4642
+ */
4643
+ mode?: "default" | "reduced";
4644
+ /**
4645
+ * Content to be displayed on the right side of the footer before the socialLinks if provided.
4646
+ */
4647
+ rightContent?: ReactNode;
4648
+ /**
4649
+ * An array of objects representing the links that will be rendered as
4650
+ * icons at the top-right side of the footer.
4651
+ */
4652
+ socialLinks?: FooterSocialLink[];
4653
+ /**
4654
+ * Value of the tabindex for all interactive elements, except those
4655
+ * inside the leftContent and rightContent.
4656
+ */
4657
+ tabIndex?: number;
4658
+ /**
4659
+ * Visual variant of the footer.
4660
+ */
4661
+ variant?: "branded" | "neutral";
4662
+ };
4663
+
4664
+ type SearchBarProps = {
4665
+ /**
4666
+ * If true, the search bar input will be focused when rendered.
4667
+ */
4668
+ autoFocus?: boolean;
4669
+ /**
4670
+ * If true, the component will be disabled.
4671
+ */
4672
+ disabled?: boolean;
4673
+ /**
4674
+ * Function invoked when the search bar loses focus.
4675
+ */
4676
+ onBlur?: (value: string) => void;
4677
+ /**
4678
+ * Function invoked when the user cancels the search.
4679
+ */
4680
+ onCancel?: () => void;
4681
+ /**
4682
+ * Function invoked when the user changes the input value.
4683
+ */
4684
+ onChange?: (value: string) => void;
4685
+ /**
4686
+ * Function invoked when the Enter key is pressed.
4687
+ */
4688
+ onEnter?: (value: string) => void;
4689
+ /**
4690
+ * Placeholder text displayed in the search bar input field.
4691
+ */
4692
+ placeholder?: string;
4693
+ };
4694
+
4695
+ type HeaderGroupItem = PrettifyTypes<BaseCommonItemProps & {
4696
+ items: BaseItem[];
4697
+ }>;
4698
+ type HeaderMainNavProps = (HeaderGroupItem | PrettifyTypes<BaseItem>)[];
4699
+ type HeaderSearchBarProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
4700
+ type HeaderProps = {
4701
+ appTitle?: string;
4702
+ navItems?: HeaderMainNavProps;
4703
+ responsiveBottomContent?: ReactNode;
4704
+ searchBar?: HeaderSearchBarProps;
4705
+ sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
4706
+ };
4707
+
4708
+ type SidenavSection = {
4709
+ items: (BaseItem | BaseGroupItem)[];
4710
+ title?: string;
4711
+ };
4712
+ type SidenavSearchbarProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
4713
+ type SidenavProps = {
4714
+ /**
4715
+ * The content rendered in the bottom part of the sidenav, under the navigation menu.
4716
+ */
4717
+ bottomContent?: ReactNode;
4718
+ /**
4719
+ * Object with the properties of the branding placed at the top of the sidenav.
4720
+ */
4721
+ appTitle?: string | ReactNode;
4722
+ /**
4723
+ * Initial state of the expansion of the sidenav, only when it is uncontrolled.
4724
+ */
4725
+ defaultExpanded?: boolean;
4726
+ /**
4727
+ * If true the nav menu will have lines marking the groups.
4728
+ */
4729
+ displayGroupLines?: boolean;
4730
+ /**
4731
+ * If true, the sidenav is expanded.
4732
+ * If undefined the component will be uncontrolled and the value will be managed internally by the component.
4733
+ */
4734
+ expanded?: boolean;
4735
+ /**
4736
+ * Array of items to be displayed in the navigation menu.
4737
+ * Each item can be a single/simple item, a group item or a section.
4738
+ */
4739
+ navItems?: (BaseItem | BaseGroupItem)[] | SidenavSection[];
4740
+ /**
4741
+ * Function called when the expansion state of the sidenav changes.
4742
+ */
4743
+ onExpandedChange?: (value: boolean) => void;
4744
+ /**
4745
+ * When provided, a search bar will be rendered at the top of the sidenav.
4746
+ */
4747
+ searchBar?: SidenavSearchbarProps;
4748
+ /**
4749
+ * The additional content rendered in the upper part of the sidenav, under the branding.
4750
+ */
4751
+ topContent?: ReactNode;
4752
+ };
4753
+
4754
+ export { DxcAccordion, type AccordionItemProps as DxcAccordionItemProps, type AccordionProps as DxcAccordionProps, type Action$1 as DxcAction, type ActionsCellProps as DxcActionsCellProps, DxcAlert, type AlertAction as DxcAlertAction, type AlertMessage as DxcAlertMessage, type AlertProps as DxcAlertProps, aliasTokens as DxcAliasTokens, type AppLayoutLogo as DxcAppLayoutLogo, type AppLayoutMainProps as DxcAppLayoutMainProps, type ApplicationLayoutProps as DxcAppLayoutProps, type AppLayoutSidenavProps as DxcAppLayoutSidenavProps, DxcApplicationLayout, DxcAvatar, type AvatarProps as DxcAvatarProps, type AvatarStatus as DxcAvatarStatus, DxcBadge, type BadgeProps as DxcBadgeProps, type BaseGroupItem as DxcBaseGroupItem, type BaseItem as DxcBaseItem, type BaseSection as DxcBaseSection, DxcBleed, type BleedProps as DxcBleedProps, DxcBreadcrumbs, type BreadcrumbsItemProps as DxcBreadcrumbsItemProps, type BreadcrumbsProps as DxcBreadcrumbsProps, DxcBulletedList, type BulletedListItemProps as DxcBulletedListItemProps, type BulletedListProps as DxcBulletedListProps, DxcButton, type ButtonMode as DxcButtonMode, type ButtonProps as DxcButtonProps, type ButtonSemantic as DxcButtonSemantic, type ButtonSize as DxcButtonSize, DxcCard, type CardProps as DxcCardProps, DxcCheckbox, type CheckboxProps as DxcCheckboxProps, DxcChip, type ChipProps as DxcChipProps, type Color as DxcColor, DxcContainer, type ContainerBackground as DxcContainerBackground, type ContainerBorder as DxcContainerBorder, type ContainerBorderProperties as DxcContainerBorderProperties, type ContainerOutline as DxcContainerOutline, type ContainerOverflow as DxcContainerOverflow, type ContainerProps as DxcContainerProps, type ContainerSpacing as DxcContainerSpacing, DxcContextualMenu, type ContextualMenuProps as DxcContextualMenuProps, coreTokens as DxcCoreTokens, DxcDataGrid, type DataGridBasicProps as DxcDataGridBasicProps, type DataGridColumn as DxcDataGridColumn, type DataGridExpandableRow as DxcDataGridExpandableRow, type DataGridExpandableRows as DxcDataGridExpandableRows, type DataGridHierarchyRow as DxcDataGridHierarchyRow, type DataGridHierarchyRows as DxcDataGridHierarchyRows, type DataGridProps as DxcDataGridProps, type DataGridRow as DxcDataGridRow, type DataGridSelectableProps as DxcDataGridSelectableProps, DxcDateInput, type DateInputProps as DxcDateInputProps, type DefaultToast as DxcDefaultToast, DxcDialog, type DialogProps as DxcDialogProps, DxcDivider, type DividerProps as DxcDividerProps, DxcDropdown, type DropdownOption as DxcDropdownOption, type DropdownProps as DxcDropdownProps, type FileData as DxcFileData, DxcFileInput, type FileInputProps as DxcFileInputProps, DxcFlex, type FlexGap as DxcFlexGap, type FlexProps as DxcFlexProps, type FooterBottomLink as DxcFooterBottomLink, type FooterLogo as DxcFooterLogo, type FooterProps as DxcFooterProps, type FooterSocialLink as DxcFooterSocialLink, DxcGrid, type GridCell as DxcGridCell, type GridGap as DxcGridGap, type GridItemProps as DxcGridItemProps, type GridPlaceContentValues as DxcGridPlaceContentValues, type GridPlaceItemsValues as DxcGridPlaceItemsValues, type GridPlaceSelfValues as DxcGridPlaceSelfValues, type GridProps as DxcGridProps, type HeaderGroupItem as DxcHeaderGroupItem, type HeaderMainNavProps as DxcHeaderMainNavProps, type HeaderProps as DxcHeaderProps, type HeaderSearchBarProps as DxcHeaderSearchBarProps, DxcHeading, type HeadingProps as DxcHeadingProps, DxcImage, type ImageProps as DxcImageProps, DxcInset, type InsetProps as DxcInsetProps, DxcLink, type LinkProps as DxcLinkProps, type LoadingToast as DxcLoadingToast, type Margin as DxcMargin, DxcMessageInput, type MessageInputProps as DxcMessageInputProps, DxcNavTabs, type NavTabsProps as DxcNavTabsProps, type NavTabsTabProps as DxcNavTabsTabProps, DxcNumberInput, type NumberInputProps as DxcNumberInputProps, DxcPaginator, type PaginatorProps as DxcPaginatorProps, DxcParagraph, DxcPasswordInput, type PasswordInputProps as DxcPasswordInputProps, DxcPopover, type PopoverProps as DxcPopoverProps, DxcProgressBar, type ProgressBarProps as DxcProgressBarProps, DxcQuickNav, type QuickNavLink as DxcQuickNavLink, type QuickNavProps as DxcQuickNavProps, DxcRadioGroup, type RadioGroupOption as DxcRadioGroupOption, type RadioGroupProps as DxcRadioGroupProps, type ResultSetTableColumn as DxcResultSetTableColumn, type ResultSetTableProps as DxcResultSetTableProps, type ResultSetTableRow as DxcResultSetTableRow, DxcResultsetTable, type SVG as DxcSVG, DxcSelect, type SelectOption as DxcSelectOption, type SelectOptionGroup as DxcSelectOptionGroup, type SelectProps as DxcSelectProps, type SemanticToast as DxcSemanticToast, type Shape as DxcShape, type SidenavProps as DxcSidenavProps, type SidenavSearchbarProps as DxcSidenavSearchbarProps, type SidenavSection as DxcSidenavSection, type Size$1 as DxcSize, DxcSlider, type SliderProps as DxcSliderProps, type Space as DxcSpace, DxcSpinner, type SpinnerProps as DxcSpinnerProps, DxcStatusLight, type StatusLightProps as DxcStatusLightProps, DxcSwitch, type SwitchProps as DxcSwitchProps, DxcTable, type TableProps as DxcTableProps, DxcTabs, type TabsProps as DxcTabsProps, type TabsTabProps as DxcTabsTabProps, DxcTextInput, type TextInputProps as DxcTextInputProps, DxcTextarea, type TextAreaProps as DxcTextareaProps, DxcTimeInput, type TimeInputProps as DxcTimeInputProps, type ToastProps as DxcToastProps, DxcToastsQueue, type ToastsQueueProps as DxcToastsQueueProps, DxcToggleGroup, type ToggleGroupProps as DxcToggleGroupProps, type ToggleOption as DxcToggleOption, DxcTooltip, type TooltipProps as DxcTooltipProps, DxcTypography, type TypographyProps as DxcTypographyProps, DxcWizard, type WizardProps as DxcWizardProps, type WizardStepProps as DxcWizardStepProps, HalstackLanguageContext, HalstackProvider, useToast };