@dxc-technology/halstack-react 0.0.0-2552d78 → 0.0.0-2581beb

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,17 +1,18 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
- import { ReactNode } from 'react';
2
+ import { ReactNode, SVGProps, ReactElement, MouseEvent, ReactEventHandler } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { SortColumn } from 'react-data-grid';
5
5
  import * as styled_components from 'styled-components';
6
6
 
7
- type Space$s = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
8
- type Margin$n = {
9
- top?: Space$s;
10
- bottom?: Space$s;
11
- left?: Space$s;
12
- right?: Space$s;
13
- };
14
- type SVG$k = React.ReactNode & React.SVGProps<SVGSVGElement>;
7
+ type Space$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
8
+ type Margin = {
9
+ top?: Space$1;
10
+ bottom?: Space$1;
11
+ left?: Space$1;
12
+ right?: Space$1;
13
+ };
14
+ type SVG = ReactNode & SVGProps<SVGSVGElement>;
15
+
15
16
  type Props$K = {
16
17
  /**
17
18
  * The panel label.
@@ -30,7 +31,7 @@ type Props$K = {
30
31
  /**
31
32
  * Material Symbol name or SVG element used as the icon that will be placed next to panel label.
32
33
  */
33
- icon?: string | SVG$k;
34
+ icon?: string | SVG;
34
35
  /**
35
36
  * Assistive text to be placed on the right side of the panel.
36
37
  */
@@ -48,12 +49,12 @@ type Props$K = {
48
49
  * The expanded panel of the accordion. This area can be used to render
49
50
  * custom content.
50
51
  */
51
- children: React.ReactNode;
52
+ children: ReactNode;
52
53
  /**
53
54
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
54
55
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
55
56
  */
56
- margin?: Space$s | Margin$n;
57
+ margin?: Space$1 | Margin;
57
58
  /**
58
59
  * Value of the tabindex attribute.
59
60
  */
@@ -62,14 +63,6 @@ type Props$K = {
62
63
 
63
64
  declare const DxcAccordion: ({ label, defaultIsExpanded, isExpanded, icon, assistiveText, disabled, onChange, children, margin, tabIndex, }: Props$K) => JSX.Element;
64
65
 
65
- type Space$r = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
66
- type Margin$m = {
67
- top?: Space$r;
68
- bottom?: Space$r;
69
- left?: Space$r;
70
- right?: Space$r;
71
- };
72
- type SVG$j = React.ReactNode & React.SVGProps<SVGSVGElement>;
73
66
  type AccordionPropsType = {
74
67
  /**
75
68
  * The panel label.
@@ -78,7 +71,7 @@ type AccordionPropsType = {
78
71
  /**
79
72
  * Material Symbol name or SVG element used as the icon that will be placed next to panel label.
80
73
  */
81
- icon?: string | SVG$j;
74
+ icon?: string | SVG;
82
75
  /**
83
76
  * Assistive text to be placed on the right side of the panel.
84
77
  */
@@ -91,7 +84,7 @@ type AccordionPropsType = {
91
84
  * The expanded panel of the accordion. This area can be used to render
92
85
  * custom content.
93
86
  */
94
- children: React.ReactNode;
87
+ children: ReactNode;
95
88
  };
96
89
  type Props$J = {
97
90
  /**
@@ -115,11 +108,11 @@ type Props$J = {
115
108
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
116
109
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
117
110
  */
118
- margin?: Space$r | Margin$m;
111
+ margin?: Space$1 | Margin;
119
112
  /**
120
113
  * Customized accordion(s) that are allowed inside an Accordion Group.
121
114
  */
122
- children: React.ReactElement<AccordionPropsType>[] | React.ReactElement<AccordionPropsType>;
115
+ children: ReactElement<AccordionPropsType>[] | ReactElement<AccordionPropsType>;
123
116
  };
124
117
 
125
118
  declare const DxcAccordionGroup: {
@@ -127,15 +120,14 @@ declare const DxcAccordionGroup: {
127
120
  Accordion: ({ ...childProps }: AccordionPropsType) => JSX.Element;
128
121
  };
129
122
 
130
- type SVG$i = React.ReactNode & React.SVGProps<SVGSVGElement>;
131
123
  type Action$2 = {
132
- icon?: string | SVG$i;
124
+ icon?: string | SVG;
133
125
  label: string;
134
126
  onClick: () => void;
135
127
  };
136
128
  type Message = {
137
129
  onClose?: () => void;
138
- text: React.ReactNode;
130
+ text: ReactNode;
139
131
  };
140
132
  type CommonProps$8 = {
141
133
  closable?: boolean;
@@ -155,18 +147,17 @@ type Props$I = CommonProps$8 & ModeSpecificProps;
155
147
 
156
148
  declare function DxcAlert({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$I): react_jsx_runtime.JSX.Element;
157
149
 
158
- type SVG$h = React.ReactNode & React.SVGProps<SVGSVGElement>;
159
150
  type SidenavTitlePropsType = {
160
151
  /**
161
152
  * The area inside the sidenav title. This area can be used to render custom content.
162
153
  */
163
- children: React.ReactNode;
154
+ children: ReactNode;
164
155
  };
165
156
  type SidenavSectionPropsType = {
166
157
  /**
167
158
  * The area inside the sidenav section. This area can be used to render sidenav groups, links and custom content.
168
159
  */
169
- children: React.ReactNode;
160
+ children: ReactNode;
170
161
  };
171
162
  type SidenavGroupPropsType = {
172
163
  /**
@@ -181,11 +172,11 @@ type SidenavGroupPropsType = {
181
172
  /**
182
173
  * Material Symbol name or SVG icon to be displayed next to the title of the group.
183
174
  */
184
- icon?: string | SVG$h;
175
+ icon?: string | SVG;
185
176
  /**
186
177
  * The area inside the sidenav group. This area can be used to render sidenav links.
187
178
  */
188
- children: React.ReactNode;
179
+ children: ReactNode;
189
180
  };
190
181
  type SidenavLinkPropsType = {
191
182
  /**
@@ -199,7 +190,7 @@ type SidenavLinkPropsType = {
199
190
  /**
200
191
  * The Material symbol or SVG element used as the icon that will be placed to the left of the link text.
201
192
  */
202
- icon?: string | SVG$h;
193
+ icon?: string | SVG;
203
194
  /**
204
195
  * If true, the link will be marked as selected. Moreover, in that same case,
205
196
  * if it is contained within a collapsed group, and consequently, the currently selected link is not visible,
@@ -209,11 +200,11 @@ type SidenavLinkPropsType = {
209
200
  /**
210
201
  * This function will be called when the user clicks the link and the event will be passed to this function.
211
202
  */
212
- onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
203
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
213
204
  /**
214
205
  * The area inside the sidenav link.
215
206
  */
216
- children: React.ReactNode;
207
+ children: ReactNode;
217
208
  /**
218
209
  * Value of the tabindex.
219
210
  */
@@ -223,22 +214,14 @@ type Props$H = {
223
214
  /**
224
215
  * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
225
216
  */
226
- title?: React.ReactNode;
217
+ title?: ReactNode;
227
218
  /**
228
219
  * The area inside the sidenav. This area can be used to render the content inside the sidenav.
229
220
  */
230
- children: React.ReactNode;
221
+ children: ReactNode;
231
222
  };
232
223
 
233
- type Space$q = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
234
- type Margin$l = {
235
- top?: Space$q;
236
- bottom?: Space$q;
237
- left?: Space$q;
238
- right?: Space$q;
239
- };
240
224
  type Size$4 = "small" | "medium" | "large" | "fillParent" | "fitContent";
241
- type SVG$g = React.ReactNode & React.SVGProps<SVGSVGElement>;
242
225
  type Option$1 = {
243
226
  /**
244
227
  * Option display value.
@@ -247,7 +230,7 @@ type Option$1 = {
247
230
  /**
248
231
  * Material Symbol name or SVG element as the icon that will be placed next to the label.
249
232
  */
250
- icon?: string | SVG$g;
233
+ icon?: string | SVG;
251
234
  /**
252
235
  * Option inner value.
253
236
  */
@@ -266,7 +249,7 @@ type Props$G = {
266
249
  /**
267
250
  * Material Symbol name or SVG element as the icon that will be placed next to the label.
268
251
  */
269
- icon?: string | SVG$g;
252
+ icon?: string | SVG;
270
253
  /**
271
254
  * Whether the icon should appear after or before the label.
272
255
  */
@@ -297,7 +280,7 @@ type Props$G = {
297
280
  * You can pass an object with 'top', 'bottom', 'left' and 'right'
298
281
  * properties in order to specify different margin sizes.
299
282
  */
300
- margin?: Space$q | Margin$l;
283
+ margin?: Space$1 | Margin;
301
284
  /**
302
285
  * Size of the component.
303
286
  */
@@ -313,7 +296,6 @@ type Props$G = {
313
296
  title?: string;
314
297
  };
315
298
 
316
- type Space$p = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
317
299
  type Props$F = {
318
300
  /**
319
301
  * Whether a contrast line should appear at the bottom of the header.
@@ -324,12 +306,12 @@ type Props$F = {
324
306
  * for the first child in the content, so we recommend the use of React.Fragment
325
307
  * to be applied correctly. Otherwise, the styles can be modified.
326
308
  */
327
- content?: React.ReactNode;
309
+ content?: ReactNode;
328
310
  /**
329
311
  * Content shown in responsive version. It receives the close menu handler that can
330
312
  * be used to add that functionality when a element is clicked.
331
313
  */
332
- responsiveContent?: (closeHandler: () => void) => React.ReactNode;
314
+ responsiveContent?: (closeHandler: () => void) => ReactNode;
333
315
  /**
334
316
  * This function will be called when the user clicks the header logo.
335
317
  */
@@ -337,7 +319,7 @@ type Props$F = {
337
319
  /**
338
320
  * Size of the bottom margin to be applied to the header.
339
321
  */
340
- margin?: Space$p;
322
+ margin?: Space$1;
341
323
  /**
342
324
  * Value of the tabindex for all interactive elements, except those inside the
343
325
  * custom area.
@@ -345,8 +327,6 @@ type Props$F = {
345
327
  tabIndex?: number;
346
328
  };
347
329
 
348
- type Space$o = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
349
- type SVG$f = React.ReactNode & React.SVGProps<SVGSVGElement>;
350
330
  type SocialLink = {
351
331
  /**
352
332
  * URL of the page the link goes to.
@@ -355,7 +335,7 @@ type SocialLink = {
355
335
  /**
356
336
  * Material Symbol name or SVG element as the icon used for the link.
357
337
  */
358
- logo: string | SVG$f;
338
+ logo: string | SVG;
359
339
  /**
360
340
  * Value for the HTML properties title and aria-label.
361
341
  */
@@ -390,11 +370,11 @@ type FooterPropsType = {
390
370
  * The center section of the footer. Can be used to render custom
391
371
  * content in this area.
392
372
  */
393
- children?: React.ReactNode;
373
+ children?: ReactNode;
394
374
  /**
395
375
  * Size of the top margin to be applied to the footer.
396
376
  */
397
- margin?: Space$o;
377
+ margin?: Space$1;
398
378
  /**
399
379
  * Value of the tabindex for all interactive elements, except those
400
380
  * inside the custom area.
@@ -412,7 +392,7 @@ type AppLayoutMainPropsType = {
412
392
  /**
413
393
  * Everything between the tags will be displayed as the content of the main part of the application.
414
394
  */
415
- children: React.ReactNode;
395
+ children: ReactNode;
416
396
  };
417
397
  type ApplicationLayoutPropsType = {
418
398
  /**
@@ -423,19 +403,19 @@ type ApplicationLayoutPropsType = {
423
403
  /**
424
404
  * Header content.
425
405
  */
426
- header?: React.ReactNode;
406
+ header?: ReactNode;
427
407
  /**
428
408
  * Sidenav content
429
409
  */
430
- sidenav?: React.ReactNode;
410
+ sidenav?: ReactNode;
431
411
  /**
432
412
  * Footer content
433
413
  */
434
- footer?: React.ReactNode;
414
+ footer?: ReactNode;
435
415
  /**
436
416
  * Use the DxcApplicationLayout.Main provided to render main content.
437
417
  */
438
- children: React.ReactElement<AppLayoutMainPropsType>;
418
+ children: ReactElement<AppLayoutMainPropsType>;
439
419
  };
440
420
 
441
421
  declare const DxcApplicationLayout: {
@@ -453,10 +433,9 @@ declare const DxcApplicationLayout: {
453
433
  Link: react.ForwardRefExoticComponent<SidenavLinkPropsType & react.RefAttributes<HTMLAnchorElement>>;
454
434
  Title: ({ children }: SidenavTitlePropsType) => JSX.Element;
455
435
  };
456
- useResponsiveSidenavVisibility: () => (isSidenavVisible: boolean) => void;
436
+ useResponsiveSidenavVisibility: () => ((_isSidenavVisible: boolean) => void) | null;
457
437
  };
458
438
 
459
- type SVG$e = React.ReactNode & React.SVGProps<SVGSVGElement>;
460
439
  type ContextualProps = {
461
440
  /**
462
441
  * Text to be placed in the badge.
@@ -501,7 +480,7 @@ type CommonProps$7 = {
501
480
  /**
502
481
  * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
503
482
  */
504
- icon?: string | SVG$e;
483
+ icon?: string | SVG;
505
484
  /**
506
485
  * Size of the component.
507
486
  */
@@ -635,7 +614,7 @@ type Props$D = {
635
614
  /**
636
615
  * Custom content inside the bleed.
637
616
  */
638
- children: React.ReactNode;
617
+ children: ReactNode;
639
618
  };
640
619
 
641
620
  declare const Bleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$D) => react_jsx_runtime.JSX.Element;
@@ -678,7 +657,6 @@ type Props$C = {
678
657
 
679
658
  declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$C) => react_jsx_runtime.JSX.Element;
680
659
 
681
- type SVG$d = React.ReactNode & React.SVGProps<SVGSVGElement>;
682
660
  type IconProps = {
683
661
  /**
684
662
  * Defines the style of the bullet point in the list.
@@ -687,11 +665,11 @@ type IconProps = {
687
665
  /**
688
666
  * Icon to display as bullet.
689
667
  */
690
- icon: string | SVG$d;
668
+ icon: string | SVG;
691
669
  /**
692
670
  * Text to be shown in the list.
693
671
  */
694
- children: React.ReactNode;
672
+ children: ReactNode;
695
673
  };
696
674
  type OtherProps = {
697
675
  /**
@@ -705,7 +683,7 @@ type OtherProps = {
705
683
  /**
706
684
  * Text to be shown in the list.
707
685
  */
708
- children: React.ReactNode;
686
+ children: ReactNode;
709
687
  };
710
688
  type Props$B = IconProps | OtherProps;
711
689
 
@@ -713,7 +691,7 @@ type BulletedListItemPropsType = {
713
691
  /**
714
692
  * Text to be shown in the list.
715
693
  */
716
- children?: React.ReactNode;
694
+ children?: ReactNode;
717
695
  };
718
696
 
719
697
  declare const DxcBulletedList: {
@@ -721,14 +699,6 @@ declare const DxcBulletedList: {
721
699
  Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
722
700
  };
723
701
 
724
- type Space$n = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
725
- type Margin$k = {
726
- top?: Space$n;
727
- bottom?: Space$n;
728
- left?: Space$n;
729
- right?: Space$n;
730
- };
731
- type SVG$c = React.ReactNode & React.SVGProps<SVGSVGElement>;
732
702
  type Size$3 = {
733
703
  /**
734
704
  * Height of the component.
@@ -768,7 +738,7 @@ type Props$A = {
768
738
  /**
769
739
  * Material Symbol name or SVG element as the icon that will be placed next to the label.
770
740
  */
771
- icon?: string | SVG$c;
741
+ icon?: string | SVG;
772
742
  /**
773
743
  * This function will be called when the user clicks the button.
774
744
  */
@@ -777,7 +747,7 @@ type Props$A = {
777
747
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
778
748
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
779
749
  */
780
- margin?: Space$n | Margin$k;
750
+ margin?: Space$1 | Margin;
781
751
  /**
782
752
  * Size of the component.
783
753
  */
@@ -790,12 +760,11 @@ type Props$A = {
790
760
 
791
761
  declare const DxcButton: ({ label, mode, semantic, disabled, iconPosition, title, type, icon, onClick, margin, size, tabIndex, }: Props$A) => JSX.Element;
792
762
 
793
- type Space$m = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
794
763
  type Size$2 = {
795
- top?: Space$m;
796
- bottom?: Space$m;
797
- left?: Space$m;
798
- right?: Space$m;
764
+ top?: Space$1;
765
+ bottom?: Space$1;
766
+ left?: Space$1;
767
+ right?: Space$1;
799
768
  };
800
769
  type Props$z = {
801
770
  /**
@@ -813,7 +782,7 @@ type Props$z = {
813
782
  * component. You can pass an object with 'top', 'bottom', 'left'
814
783
  * and 'right' properties in order to specify different padding sizes.
815
784
  */
816
- imagePadding?: Space$m | Size$2;
785
+ imagePadding?: Space$1 | Size$2;
817
786
  /**
818
787
  * Whether the image should appear in relation to the content.
819
788
  */
@@ -836,7 +805,7 @@ type Props$z = {
836
805
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
837
806
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
838
807
  */
839
- margin?: Space$m | Size$2;
808
+ margin?: Space$1 | Size$2;
840
809
  /**
841
810
  * Value of the tabindex attribute applied when the component is clickable.
842
811
  */
@@ -848,18 +817,11 @@ type Props$z = {
848
817
  /**
849
818
  * Custom content that will be placed inside the component.
850
819
  */
851
- children?: React.ReactNode;
820
+ children?: ReactNode;
852
821
  };
853
822
 
854
823
  declare const DxcCard: ({ imageSrc, imageBgColor, imagePadding, imagePosition, linkHref, onClick, imageCover, margin, tabIndex, outlined, children, }: Props$z) => JSX.Element;
855
824
 
856
- type Space$l = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
857
- type Margin$j = {
858
- top?: Space$l;
859
- bottom?: Space$l;
860
- left?: Space$l;
861
- right?: Space$l;
862
- };
863
825
  type Props$y = {
864
826
  /**
865
827
  * Initial state of the checkbox, only when it is uncontrolled.
@@ -910,7 +872,7 @@ type Props$y = {
910
872
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
911
873
  * in order to specify different margin sizes.
912
874
  */
913
- margin?: Space$l | Margin$j;
875
+ margin?: Space$1 | Margin;
914
876
  /**
915
877
  * Size of the component.
916
878
  */
@@ -923,14 +885,6 @@ type Props$y = {
923
885
 
924
886
  declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
925
887
 
926
- type Space$k = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
927
- type Margin$i = {
928
- top?: Space$k;
929
- bottom?: Space$k;
930
- left?: Space$k;
931
- right?: Space$k;
932
- };
933
- type SVG$b = React.ReactNode & React.SVGProps<SVGSVGElement>;
934
888
  type Props$x = {
935
889
  /**
936
890
  * Text to be placed on the chip.
@@ -939,11 +893,11 @@ type Props$x = {
939
893
  /**
940
894
  * Element or path used as icon to be placed after the chip label.
941
895
  */
942
- suffixIcon?: string | SVG$b;
896
+ suffixIcon?: string | SVG;
943
897
  /**
944
898
  * Element or path used as icon to be placed before the chip label.
945
899
  */
946
- prefixIcon?: string | SVG$b;
900
+ prefixIcon?: string | SVG;
947
901
  /**
948
902
  * This function will be called when the suffix is clicked.
949
903
  */
@@ -960,7 +914,7 @@ type Props$x = {
960
914
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
961
915
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
962
916
  */
963
- margin?: Space$k | Margin$i;
917
+ margin?: Space$1 | Margin;
964
918
  /**
965
919
  * Value of the tabindex attribute.
966
920
  */
@@ -969,12 +923,11 @@ type Props$x = {
969
923
 
970
924
  declare const DxcChip: ({ label, suffixIcon, prefixIcon, onClickSuffix, onClickPrefix, disabled, margin, tabIndex, }: Props$x) => JSX.Element;
971
925
 
972
- type SpacingValues = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
973
- type Space$j = SpacingValues | {
974
- top?: SpacingValues;
975
- right?: SpacingValues;
976
- bottom?: SpacingValues;
977
- left?: SpacingValues;
926
+ type Space = Space$1 | {
927
+ top?: Space$1;
928
+ right?: Space$1;
929
+ bottom?: Space$1;
930
+ left?: Space$1;
978
931
  };
979
932
  type Inset$1 = {
980
933
  top?: string;
@@ -1043,7 +996,7 @@ type Props$w = {
1043
996
  /**
1044
997
  * Custom content inside the container.
1045
998
  */
1046
- children: React.ReactNode;
999
+ children: ReactNode;
1047
1000
  /**
1048
1001
  * Sets the display CSS property.
1049
1002
  * The set of values is limited to the ones related to the outer display type.
@@ -1075,7 +1028,7 @@ type Props$w = {
1075
1028
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
1076
1029
  * in order to specify different margin sizes.
1077
1030
  */
1078
- margin?: Space$j;
1031
+ margin?: Space;
1079
1032
  /**
1080
1033
  * Sets the max-height CSS property.
1081
1034
  *
@@ -1116,7 +1069,7 @@ type Props$w = {
1116
1069
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
1117
1070
  * in order to specify different margin sizes.
1118
1071
  */
1119
- padding?: Space$j;
1072
+ padding?: Space;
1120
1073
  /**
1121
1074
  * Sets the position CSS property.
1122
1075
  *
@@ -1137,12 +1090,11 @@ type Props$w = {
1137
1090
  zIndex?: "auto" | number;
1138
1091
  };
1139
1092
 
1140
- declare const DxcContainer: ({ display, width, height, overflow, ...props }: Props$w) => react_jsx_runtime.JSX.Element;
1093
+ declare function DxcContainer({ display, width, height, overflow, ...props }: Props$w): react_jsx_runtime.JSX.Element;
1141
1094
 
1142
- type SVG$a = React.ReactNode & React.SVGProps<SVGSVGElement>;
1143
1095
  type CommonItemProps = {
1144
- badge?: React.ReactElement;
1145
- icon?: string | SVG$a;
1096
+ badge?: ReactElement;
1097
+ icon?: string | SVG;
1146
1098
  label: string;
1147
1099
  };
1148
1100
  type Item = CommonItemProps & {
@@ -1164,21 +1116,13 @@ type Props$v = {
1164
1116
  items: (Item | GroupItem)[] | Section[];
1165
1117
  };
1166
1118
 
1167
- declare const DxcContextualMenu: ({ items }: Props$v) => react_jsx_runtime.JSX.Element;
1119
+ declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
1168
1120
 
1169
- type Space$i = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1170
- type Margin$h = {
1171
- top?: Space$i;
1172
- bottom?: Space$i;
1173
- left?: Space$i;
1174
- right?: Space$i;
1175
- };
1176
- type SVG$9 = React.ReactNode & React.SVGProps<SVGSVGElement>;
1177
1121
  type ActionCellsPropsType = {
1178
1122
  actions: ActionsPropsType;
1179
1123
  };
1180
1124
  type ActionsPropsType = Array<{
1181
- icon: string | SVG$9;
1125
+ icon: string | SVG;
1182
1126
  title: string;
1183
1127
  onClick: () => void;
1184
1128
  disabled?: boolean;
@@ -1197,12 +1141,12 @@ type Props$u = {
1197
1141
  * The center section of the table. Can be used to render custom
1198
1142
  * content in this area.
1199
1143
  */
1200
- children: React.ReactNode;
1144
+ children: ReactNode;
1201
1145
  /**
1202
1146
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1203
1147
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1204
1148
  */
1205
- margin?: Space$i | Margin$h;
1149
+ margin?: Space$1 | Margin;
1206
1150
  /**
1207
1151
  * Determines the visual style and layout
1208
1152
  * - "default": Default table size.
@@ -1231,7 +1175,7 @@ type GridColumn = {
1231
1175
  /**
1232
1176
  * Custom criteria for sorting the column.
1233
1177
  */
1234
- sortFn?: (_a: ReactNode, _b: ReactNode) => number;
1178
+ sortFn?: (_a: ReactNode, _b: ReactNode) => 0 | 1 | -1;
1235
1179
  /**
1236
1180
  * Whether the column is draggable or not.
1237
1181
  */
@@ -1399,13 +1343,6 @@ declare const DxcDataGrid: {
1399
1343
  ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
1400
1344
  };
1401
1345
 
1402
- type Space$h = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1403
- type Margin$g = {
1404
- top?: Space$h;
1405
- bottom?: Space$h;
1406
- left?: Space$h;
1407
- right?: Space$h;
1408
- };
1409
1346
  type Props$s = {
1410
1347
  /**
1411
1348
  * Initial value of the input element, only when it is uncontrolled.
@@ -1497,7 +1434,7 @@ type Props$s = {
1497
1434
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1498
1435
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1499
1436
  */
1500
- margin?: Space$h | Margin$g;
1437
+ margin?: Space$1 | Margin;
1501
1438
  /**
1502
1439
  * Size of the component.
1503
1440
  */
@@ -1536,7 +1473,7 @@ type Props$r = {
1536
1473
  * can lead to unpredictable behaviour for keyboard users, affecting
1537
1474
  * the order of focus and focus locking within the dialog.
1538
1475
  */
1539
- children: React.ReactNode;
1476
+ children: ReactNode;
1540
1477
  /**
1541
1478
  * Value of the tabindex applied to the close button.
1542
1479
  * Note that values greater than 0 are strongly discouraged. It can
@@ -1572,13 +1509,6 @@ declare const DxcDivider: ({ orientation, weight, color, decorative, }: Props$q)
1572
1509
 
1573
1510
  declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => JSX.Element;
1574
1511
 
1575
- type Space$g = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1576
- type Margin$f = {
1577
- top?: Space$g;
1578
- bottom?: Space$g;
1579
- left?: Space$g;
1580
- right?: Space$g;
1581
- };
1582
1512
  type FileData = {
1583
1513
  /**
1584
1514
  * Selected file.
@@ -1644,7 +1574,7 @@ type CommonProps$5 = {
1644
1574
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1645
1575
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1646
1576
  */
1647
- margin?: Space$g | Margin$f;
1577
+ margin?: Space$1 | Margin;
1648
1578
  /**
1649
1579
  * Value of the tabindex attribute.
1650
1580
  */
@@ -1765,7 +1695,7 @@ type Props$o = CommonProps$4 & {
1765
1695
  /**
1766
1696
  * Custom content inside the flex container.
1767
1697
  */
1768
- children: React.ReactNode;
1698
+ children: ReactNode;
1769
1699
  };
1770
1700
 
1771
1701
  declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }: Props$o) => react_jsx_runtime.JSX.Element;
@@ -1824,7 +1754,7 @@ type GridItemProps = {
1824
1754
  /**
1825
1755
  * Custom content inside the grid container.
1826
1756
  */
1827
- children: React.ReactNode;
1757
+ children: ReactNode;
1828
1758
  };
1829
1759
  type Props$n = GridItemProps & {
1830
1760
  /**
@@ -1888,13 +1818,6 @@ declare const DxcGrid: {
1888
1818
  Item: styled_components.StyledComponent<"div", any, GridItemProps, never>;
1889
1819
  };
1890
1820
 
1891
- type Space$f = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1892
- type Margin$e = {
1893
- top?: Space$f;
1894
- bottom?: Space$f;
1895
- left?: Space$f;
1896
- right?: Space$f;
1897
- };
1898
1821
  type Props$m = {
1899
1822
  /**
1900
1823
  * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
@@ -1918,7 +1841,7 @@ type Props$m = {
1918
1841
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1919
1842
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1920
1843
  */
1921
- margin?: Space$f | Margin$e;
1844
+ margin?: Space$1 | Margin;
1922
1845
  };
1923
1846
 
1924
1847
  declare const DxcHeading: ({ level, text, as, weight, margin }: Props$m) => JSX.Element;
@@ -1982,11 +1905,11 @@ type Props$l = {
1982
1905
  /**
1983
1906
  * This function will be called when the image is loaded.
1984
1907
  */
1985
- onLoad?: React.ReactEventHandler<HTMLImageElement>;
1908
+ onLoad?: ReactEventHandler<HTMLImageElement>;
1986
1909
  /**
1987
1910
  * This function will be called when the image fails to load.
1988
1911
  */
1989
- onError?: React.ReactEventHandler<HTMLImageElement>;
1912
+ onError?: ReactEventHandler<HTMLImageElement>;
1990
1913
  };
1991
1914
 
1992
1915
  declare function DxcImage({ alt, caption, lazyLoading, src, srcSet, sizes, width, height, objectFit, objectPosition, onLoad, onError, }: Props$l): react_jsx_runtime.JSX.Element;
@@ -2023,19 +1946,11 @@ type Props$k = {
2023
1946
  /**
2024
1947
  * Custom content inside the inset.
2025
1948
  */
2026
- children: React.ReactNode;
1949
+ children: ReactNode;
2027
1950
  };
2028
1951
 
2029
1952
  declare const Inset: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$k) => react_jsx_runtime.JSX.Element;
2030
1953
 
2031
- type Space$e = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2032
- type Margin$d = {
2033
- top?: Space$e;
2034
- bottom?: Space$e;
2035
- left?: Space$e;
2036
- right?: Space$e;
2037
- };
2038
- type SVG$8 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2039
1954
  type LinkProps = {
2040
1955
  /**
2041
1956
  * If true, the link is disabled.
@@ -2048,7 +1963,7 @@ type LinkProps = {
2048
1963
  /**
2049
1964
  * Material Symbol name or SVG element as the icon that will be placed next to the link text.
2050
1965
  */
2051
- icon?: string | SVG$8;
1966
+ icon?: string | SVG;
2052
1967
  /**
2053
1968
  * Indicates the position of the icon in the component.
2054
1969
  */
@@ -2074,7 +1989,7 @@ type LinkProps = {
2074
1989
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2075
1990
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2076
1991
  */
2077
- margin?: Space$e | Margin$d;
1992
+ margin?: Space$1 | Margin;
2078
1993
  /**
2079
1994
  * Value of the tabindex.
2080
1995
  */
@@ -2083,7 +1998,6 @@ type LinkProps = {
2083
1998
 
2084
1999
  declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
2085
2000
 
2086
- type SVG$7 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2087
2001
  type TabProps$1 = {
2088
2002
  /**
2089
2003
  * Whether the tab is active or not.
@@ -2100,7 +2014,7 @@ type TabProps$1 = {
2100
2014
  /**
2101
2015
  * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2102
2016
  */
2103
- icon?: string | SVG$7;
2017
+ icon?: string | SVG;
2104
2018
  /**
2105
2019
  * If the value is 'true', an empty badge will appear.
2106
2020
  * If it is 'false', no badge will appear.
@@ -2122,7 +2036,7 @@ type Props$j = {
2122
2036
  /**
2123
2037
  * Contains one or more DxcNavTabs.Tab.
2124
2038
  */
2125
- children: React.ReactNode;
2039
+ children: ReactNode;
2126
2040
  /**
2127
2041
  * Value of the tabindex attribute applied to each tab.
2128
2042
  */
@@ -2134,13 +2048,6 @@ declare const DxcNavTabs: {
2134
2048
  Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
2135
2049
  };
2136
2050
 
2137
- type Space$d = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2138
- type Margin$c = {
2139
- top?: Space$d;
2140
- bottom?: Space$d;
2141
- left?: Space$d;
2142
- right?: Space$d;
2143
- };
2144
2051
  type Props$i = {
2145
2052
  /**
2146
2053
  * Text to be placed above the number.
@@ -2249,7 +2156,7 @@ type Props$i = {
2249
2156
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2250
2157
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2251
2158
  */
2252
- margin?: Space$d | Margin$c;
2159
+ margin?: Space$1 | Margin;
2253
2160
  /**
2254
2161
  * Size of the component.
2255
2162
  */
@@ -2303,16 +2210,9 @@ type Props$h = {
2303
2210
  declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$h) => JSX.Element;
2304
2211
 
2305
2212
  declare function DxcParagraph({ children }: {
2306
- children: React.ReactNode;
2213
+ children: ReactNode;
2307
2214
  }): react_jsx_runtime.JSX.Element;
2308
2215
 
2309
- type Space$c = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2310
- type Margin$b = {
2311
- top?: Space$c;
2312
- bottom?: Space$c;
2313
- left?: Space$c;
2314
- right?: Space$c;
2315
- };
2316
2216
  type Props$g = {
2317
2217
  /**
2318
2218
  * Text to be placed above the password input.
@@ -2402,7 +2302,7 @@ type Props$g = {
2402
2302
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2403
2303
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2404
2304
  */
2405
- margin?: Space$c | Margin$b;
2305
+ margin?: Space$1 | Margin;
2406
2306
  /**
2407
2307
  * Size of the component.
2408
2308
  */
@@ -2415,12 +2315,11 @@ type Props$g = {
2415
2315
 
2416
2316
  declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
2417
2317
 
2418
- type Space$b = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2419
2318
  type Size$1 = {
2420
- top?: Space$b;
2421
- bottom?: Space$b;
2422
- left?: Space$b;
2423
- right?: Space$b;
2319
+ top?: Space$1;
2320
+ bottom?: Space$1;
2321
+ left?: Space$1;
2322
+ right?: Space$1;
2424
2323
  };
2425
2324
  type Props$f = {
2426
2325
  /**
@@ -2449,7 +2348,7 @@ type Props$f = {
2449
2348
  * an object with 'top', 'bottom', 'left' and 'right' properties
2450
2349
  * in order to specify different margin sizes.
2451
2350
  */
2452
- margin?: Space$b | Size$1;
2351
+ margin?: Space$1 | Size$1;
2453
2352
  };
2454
2353
 
2455
2354
  declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, }: Props$f) => JSX.Element;
@@ -2576,18 +2475,11 @@ type RadioGroupProps = {
2576
2475
 
2577
2476
  declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
2578
2477
 
2579
- type Space$a = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2580
- type Margin$a = {
2581
- top?: Space$a;
2582
- bottom?: Space$a;
2583
- left?: Space$a;
2584
- right?: Space$a;
2585
- };
2586
2478
  type Column = {
2587
2479
  /**
2588
2480
  * Column display value.
2589
2481
  */
2590
- displayValue: React.ReactNode;
2482
+ displayValue: ReactNode;
2591
2483
  /**
2592
2484
  * Boolean value to indicate whether the column is sortable or not.
2593
2485
  */
@@ -2597,7 +2489,7 @@ type Cell = {
2597
2489
  /**
2598
2490
  * Value to be displayed in the cell.
2599
2491
  */
2600
- displayValue: React.ReactNode;
2492
+ displayValue: ReactNode;
2601
2493
  /**
2602
2494
  * Value to be used when sorting the table by that
2603
2495
  * column. If not indicated displayValue will be used for sorting.
@@ -2619,7 +2511,7 @@ type CommonProps$3 = {
2619
2511
  * Size of the margin to be applied to the component. You can pass an object with 'top',
2620
2512
  * 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2621
2513
  */
2622
- margin?: Space$a | Margin$a;
2514
+ margin?: Space$1 | Margin;
2623
2515
  /**
2624
2516
  * Value of the tabindex attribute applied to the sortable icon.
2625
2517
  */
@@ -2681,14 +2573,6 @@ declare const DxcResultsetTable: {
2681
2573
  ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
2682
2574
  };
2683
2575
 
2684
- type Space$9 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2685
- type Margin$9 = {
2686
- top?: Space$9;
2687
- bottom?: Space$9;
2688
- left?: Space$9;
2689
- right?: Space$9;
2690
- };
2691
- type SVG$6 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2692
2576
  type ListOptionGroupType = {
2693
2577
  /**
2694
2578
  * Label of the group to be shown in the select's listbox.
@@ -2706,7 +2590,7 @@ type ListOptionType = {
2706
2590
  * is the chosen one, take into account that the component's
2707
2591
  * color styling tokens will not be applied to the image.
2708
2592
  */
2709
- icon?: string | SVG$6;
2593
+ icon?: string | SVG;
2710
2594
  /**
2711
2595
  * Label of the option to be shown in the select's listbox.
2712
2596
  */
@@ -2772,7 +2656,7 @@ type CommonProps$2 = {
2772
2656
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2773
2657
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2774
2658
  */
2775
- margin?: Space$9 | Margin$9;
2659
+ margin?: Space$1 | Margin;
2776
2660
  /**
2777
2661
  * Size of the component.
2778
2662
  */
@@ -2858,13 +2742,6 @@ type Props$c = SingleSelect | MultipleSelect;
2858
2742
 
2859
2743
  declare const DxcSelect: react.ForwardRefExoticComponent<Props$c & react.RefAttributes<HTMLDivElement>>;
2860
2744
 
2861
- type Space$8 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2862
- type Margin$8 = {
2863
- top?: Space$8;
2864
- bottom?: Space$8;
2865
- left?: Space$8;
2866
- right?: Space$8;
2867
- };
2868
2745
  type Props$b = {
2869
2746
  /**
2870
2747
  * Text to be placed above the slider.
@@ -2933,7 +2810,7 @@ type Props$b = {
2933
2810
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2934
2811
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2935
2812
  */
2936
- margin?: Space$8 | Margin$8;
2813
+ margin?: Space$1 | Margin;
2937
2814
  /**
2938
2815
  * Size of the component.
2939
2816
  */
@@ -2942,13 +2819,6 @@ type Props$b = {
2942
2819
 
2943
2820
  declare const DxcSlider: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
2944
2821
 
2945
- type Space$7 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2946
- type Margin$7 = {
2947
- top?: Space$7;
2948
- bottom?: Space$7;
2949
- left?: Space$7;
2950
- right?: Space$7;
2951
- };
2952
2822
  type Props$a = {
2953
2823
  /**
2954
2824
  * Text to be placed inside the spinner.
@@ -2971,7 +2841,7 @@ type Props$a = {
2971
2841
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2972
2842
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2973
2843
  */
2974
- margin?: Space$7 | Margin$7;
2844
+ margin?: Space$1 | Margin;
2975
2845
  };
2976
2846
 
2977
2847
  declare const DxcSpinner: ({ label, value, showValue, mode, margin }: Props$a) => JSX.Element;
@@ -2995,13 +2865,6 @@ type Props$9 = {
2995
2865
 
2996
2866
  declare const DxcStatusLight: ({ mode, label, size }: Props$9) => JSX.Element;
2997
2867
 
2998
- type Space$6 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2999
- type Margin$6 = {
3000
- top?: Space$6;
3001
- bottom?: Space$6;
3002
- left?: Space$6;
3003
- right?: Space$6;
3004
- };
3005
2868
  type Props$8 = {
3006
2869
  /**
3007
2870
  * Initial state of the switch, only when it is uncontrolled.
@@ -3046,7 +2909,7 @@ type Props$8 = {
3046
2909
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3047
2910
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3048
2911
  */
3049
- margin?: Space$6 | Margin$6;
2912
+ margin?: Space$1 | Margin;
3050
2913
  /**
3051
2914
  * Size of the component.
3052
2915
  */
@@ -3064,14 +2927,6 @@ declare const DxcTable: {
3064
2927
  ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
3065
2928
  };
3066
2929
 
3067
- type Space$5 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3068
- type Margin$5 = {
3069
- top?: Space$5;
3070
- bottom?: Space$5;
3071
- left?: Space$5;
3072
- right?: Space$5;
3073
- };
3074
- type SVG$5 = React.ReactNode & React.SVGProps<SVGSVGElement>;
3075
2930
  type TabCommonProps = {
3076
2931
  /**
3077
2932
  * Whether the tab is disabled or not.
@@ -3094,7 +2949,7 @@ type TabLabelProps = TabCommonProps & {
3094
2949
  /**
3095
2950
  * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3096
2951
  */
3097
- icon?: string | SVG$5;
2952
+ icon?: string | SVG;
3098
2953
  };
3099
2954
  type TabIconProps = TabCommonProps & {
3100
2955
  /**
@@ -3104,17 +2959,17 @@ type TabIconProps = TabCommonProps & {
3104
2959
  /**
3105
2960
  * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3106
2961
  */
3107
- icon: string | SVG$5;
2962
+ icon: string | SVG;
3108
2963
  };
3109
2964
  type TabProps = {
3110
2965
  defaultActive?: boolean;
3111
2966
  active?: boolean;
3112
- icon?: string | SVG$5;
3113
- label?: string;
2967
+ icon?: string | SVG;
2968
+ label: string;
3114
2969
  title?: string;
3115
2970
  disabled?: boolean;
3116
2971
  notificationNumber?: boolean | number;
3117
- children: React.ReactNode;
2972
+ children: ReactNode;
3118
2973
  onClick?: () => void;
3119
2974
  onHover?: () => void;
3120
2975
  };
@@ -3145,12 +3000,12 @@ type LegacyProps = {
3145
3000
  * This function will be called when the user hovers a tab.The index of the
3146
3001
  * hovered tab will be passed as a parameter.
3147
3002
  */
3148
- onTabHover?: (index: number) => void;
3003
+ onTabHover?: (index: number | null) => void;
3149
3004
  /**
3150
3005
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3151
3006
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3152
3007
  */
3153
- margin?: Space$5 | Margin$5;
3008
+ margin?: Space$1 | Margin;
3154
3009
  /**
3155
3010
  * Value of the tabindex attribute applied to each tab.
3156
3011
  */
@@ -3165,7 +3020,7 @@ type NewProps = {
3165
3020
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3166
3021
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3167
3022
  */
3168
- margin?: Space$5 | Margin$5;
3023
+ margin?: Space$1 | Margin;
3169
3024
  /**
3170
3025
  * Value of the tabindex attribute applied to each tab.
3171
3026
  */
@@ -3173,23 +3028,15 @@ type NewProps = {
3173
3028
  /**
3174
3029
  * Contains one or more DxcTabs.Tab.
3175
3030
  */
3176
- children?: React.ReactNode;
3031
+ children?: ReactNode;
3177
3032
  };
3178
3033
  type Props$7 = LegacyProps & NewProps;
3179
3034
 
3180
3035
  declare const DxcTabs: {
3181
- ({ defaultActiveTabIndex, activeTabIndex, tabs, onTabClick, onTabHover, margin, iconPosition, tabIndex, children, }: Props$7): JSX.Element;
3036
+ ({ defaultActiveTabIndex, activeTabIndex, tabs, onTabClick, onTabHover, margin, iconPosition, tabIndex, children, }: Props$7): false | react_jsx_runtime.JSX.Element;
3182
3037
  Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
3183
3038
  };
3184
3039
 
3185
- type Space$4 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3186
- type Margin$4 = {
3187
- top?: Space$4;
3188
- bottom?: Space$4;
3189
- left?: Space$4;
3190
- right?: Space$4;
3191
- };
3192
- type SVG$4 = React.ReactNode & React.SVGProps<SVGSVGElement>;
3193
3040
  type TagCommonProps = {
3194
3041
  /**
3195
3042
  * If defined, the tag will be displayed as an anchor, using this prop as "href".
@@ -3218,7 +3065,7 @@ type TagCommonProps = {
3218
3065
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3219
3066
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3220
3067
  */
3221
- margin?: Space$4 | Margin$4;
3068
+ margin?: Space$1 | Margin;
3222
3069
  /**
3223
3070
  * Size of the component.
3224
3071
  */
@@ -3232,7 +3079,7 @@ type TagLabelProps = TagCommonProps & {
3232
3079
  /**
3233
3080
  * Material Symbol name or SVG element used as the icon that will be placed next to the label.
3234
3081
  */
3235
- icon?: string | SVG$4;
3082
+ icon?: string | SVG;
3236
3083
  /**
3237
3084
  * Text to be placed next inside the tag.
3238
3085
  */
@@ -3242,7 +3089,7 @@ type TagIconProps = TagCommonProps & {
3242
3089
  /**
3243
3090
  * Material Symbol name or SVG element used as the icon that will be placed next to the label.
3244
3091
  */
3245
- icon: string | SVG$4;
3092
+ icon: string | SVG;
3246
3093
  /**
3247
3094
  * Text to be placed next inside the tag.
3248
3095
  */
@@ -3255,13 +3102,6 @@ type Props$6 = TagLabelProps | TagIconProps;
3255
3102
  */
3256
3103
  declare const DxcTag: ({ icon, label, linkHref, onClick, iconBgColor, labelPosition, newWindow, margin, size, tabIndex, }: Props$6) => JSX.Element;
3257
3104
 
3258
- type Space$3 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3259
- type Margin$3 = {
3260
- top?: Space$3;
3261
- bottom?: Space$3;
3262
- left?: Space$3;
3263
- right?: Space$3;
3264
- };
3265
3105
  type Props$5 = {
3266
3106
  /**
3267
3107
  * Text to be placed above the textarea.
@@ -3381,7 +3221,7 @@ type Props$5 = {
3381
3221
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3382
3222
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3383
3223
  */
3384
- margin?: Space$3 | Margin$3;
3224
+ margin?: Space$1 | Margin;
3385
3225
  /**
3386
3226
  * Size of the component.
3387
3227
  */
@@ -3394,14 +3234,6 @@ type Props$5 = {
3394
3234
 
3395
3235
  declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
3396
3236
 
3397
- type Space$2 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3398
- type Margin$2 = {
3399
- top?: Space$2;
3400
- bottom?: Space$2;
3401
- left?: Space$2;
3402
- right?: Space$2;
3403
- };
3404
- type SVG$3 = React.ReactNode & React.SVGProps<SVGSVGElement>;
3405
3237
  type Action$1 = {
3406
3238
  /**
3407
3239
  * This function will be called when the user clicks the action.
@@ -3410,7 +3242,7 @@ type Action$1 = {
3410
3242
  /**
3411
3243
  * Icon to be placed in the action..
3412
3244
  */
3413
- icon: string | SVG$3;
3245
+ icon: string | SVG;
3414
3246
  /**
3415
3247
  * Text representing advisory information related
3416
3248
  * to the button's action. Under the hood, this prop also serves
@@ -3552,7 +3384,7 @@ type Props$4 = {
3552
3384
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3553
3385
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3554
3386
  */
3555
- margin?: Space$2 | Margin$2;
3387
+ margin?: Space$1 | Margin;
3556
3388
  /**
3557
3389
  * Size of the component.
3558
3390
  */
@@ -3565,9 +3397,8 @@ type Props$4 = {
3565
3397
 
3566
3398
  declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
3567
3399
 
3568
- type SVG$2 = React.ReactNode & React.SVGProps<SVGSVGElement>;
3569
3400
  type Action = {
3570
- icon?: string | SVG$2;
3401
+ icon?: string | SVG;
3571
3402
  label: string;
3572
3403
  onClick: () => void;
3573
3404
  };
@@ -3576,7 +3407,7 @@ type CommonProps$1 = {
3576
3407
  message: string;
3577
3408
  };
3578
3409
  type DefaultToast = CommonProps$1 & {
3579
- icon?: string | SVG$2;
3410
+ icon?: string | SVG;
3580
3411
  };
3581
3412
  type LoadingToast = CommonProps$1 & {
3582
3413
  loading: boolean;
@@ -3586,19 +3417,11 @@ type SemanticToast = CommonProps$1 & {
3586
3417
  };
3587
3418
  type ToastsQueuePropsType = {
3588
3419
  duration?: number;
3589
- children: React.ReactNode;
3420
+ children: ReactNode;
3590
3421
  };
3591
3422
 
3592
3423
  declare const DxcToastsQueue: ({ children, duration }: ToastsQueuePropsType) => react_jsx_runtime.JSX.Element;
3593
3424
 
3594
- type Space$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3595
- type Margin$1 = {
3596
- top?: Space$1;
3597
- bottom?: Space$1;
3598
- left?: Space$1;
3599
- right?: Space$1;
3600
- };
3601
- type SVG$1 = React.ReactNode & React.SVGProps<SVGSVGElement>;
3602
3425
  type OptionIcon = {
3603
3426
  /**
3604
3427
  * String with the option display value.
@@ -3607,7 +3430,7 @@ type OptionIcon = {
3607
3430
  /**
3608
3431
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3609
3432
  */
3610
- icon: string | SVG$1;
3433
+ icon: string | SVG;
3611
3434
  /**
3612
3435
  * Value for the HTML properties title and aria-label.
3613
3436
  * When a label is defined, this prop can not be use.
@@ -3622,7 +3445,7 @@ type OptionLabel = {
3622
3445
  /**
3623
3446
  * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3624
3447
  */
3625
- icon?: string | SVG$1;
3448
+ icon?: string | SVG;
3626
3449
  /**
3627
3450
  * Value for the HTML properties title and aria-label.
3628
3451
  * When a label is defined, this prop can not be use.
@@ -3656,7 +3479,7 @@ type CommonProps = {
3656
3479
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3657
3480
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3658
3481
  */
3659
- margin?: Space$1 | Margin$1;
3482
+ margin?: Space$1 | Margin;
3660
3483
  /**
3661
3484
  * Value of the tabindex.
3662
3485
  */
@@ -3714,18 +3537,18 @@ type Props$2 = {
3714
3537
  /**
3715
3538
  * Text to be displayed inside the tooltip.
3716
3539
  */
3717
- label: string;
3540
+ label?: string;
3718
3541
  /**
3719
3542
  * Content in which the Tooltip will be displayed.
3720
3543
  */
3721
- children: React.ReactNode;
3544
+ children: ReactNode;
3722
3545
  };
3723
3546
 
3724
3547
  declare function DxcTooltip(props: Props$2): react_jsx_runtime.JSX.Element;
3725
3548
 
3726
3549
  type Props$1 = {
3727
3550
  as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
3728
- children: React.ReactNode;
3551
+ children: ReactNode;
3729
3552
  color?: string;
3730
3553
  display?: "inline" | "block";
3731
3554
  fontFamily?: "Open Sans, sans-serif" | "Source Code Pro, monospace";
@@ -3740,16 +3563,8 @@ type Props$1 = {
3740
3563
  whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
3741
3564
  };
3742
3565
 
3743
- declare function DxcTypography({ as, color, children, display, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textDecoration, textOverflow, whiteSpace, }: Props$1): react_jsx_runtime.JSX.Element;
3566
+ declare function DxcTypography({ children, ...props }: Props$1): react_jsx_runtime.JSX.Element;
3744
3567
 
3745
- type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3746
- type Margin = {
3747
- top?: Space;
3748
- bottom?: Space;
3749
- left?: Space;
3750
- right?: Space;
3751
- };
3752
- type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
3753
3568
  type StepProps = {
3754
3569
  /**
3755
3570
  * Step label.
@@ -3798,7 +3613,7 @@ type Props = {
3798
3613
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3799
3614
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3800
3615
  */
3801
- margin?: Space | Margin;
3616
+ margin?: Space$1 | Margin;
3802
3617
  /**
3803
3618
  * Value of the tabindex attribute that is given to all the steps.
3804
3619
  */
@@ -5336,7 +5151,14 @@ declare const defaultTranslatedComponentLabels: {
5336
5151
  };
5337
5152
  type TranslatedLabels = typeof defaultTranslatedComponentLabels;
5338
5153
 
5339
- declare const HalstackContext: react.Context<DeepPartial<{
5154
+ /**
5155
+ * This type is used to allow partial themes and labels objects to be passed to the HalstackProvider.
5156
+ * This is an extension of the already existing Partial type, which only allows one level of partiality.
5157
+ */
5158
+ type DeepPartial<T> = {
5159
+ [P in keyof T]?: Partial<T[P]>;
5160
+ };
5161
+ declare const HalstackContext: react.Context<{
5340
5162
  accordion: {
5341
5163
  backgroundColor: string;
5342
5164
  hoverBackgroundColor: string;
@@ -6620,8 +6442,8 @@ declare const HalstackContext: react.Context<DeepPartial<{
6620
6442
  separatorColor: string;
6621
6443
  focusColor: string;
6622
6444
  };
6623
- }>>;
6624
- declare const HalstackLanguageContext: react.Context<DeepPartial<{
6445
+ }>;
6446
+ declare const HalstackLanguageContext: react.Context<{
6625
6447
  applicationLayout: {
6626
6448
  visibilityToggleTitle: string;
6627
6449
  };
@@ -6707,28 +6529,21 @@ declare const HalstackLanguageContext: react.Context<DeepPartial<{
6707
6529
  toast: {
6708
6530
  clearToastActionTitle: string;
6709
6531
  };
6710
- }>>;
6711
- /**
6712
- * This type is used to allow partial themes and labels objects to be passed to the HalstackProvider.
6713
- * This is an extension of the already existing Partial type, which only allows one level of partiality.
6714
- */
6715
- type DeepPartial<T> = {
6716
- [P in keyof T]?: Partial<T[P]>;
6717
- };
6532
+ }>;
6718
6533
  type HalstackProviderPropsType = {
6719
6534
  theme?: DeepPartial<OpinionatedTheme>;
6720
6535
  advancedTheme?: DeepPartial<AdvancedTheme>;
6721
6536
  labels?: DeepPartial<TranslatedLabels>;
6722
- children: React.ReactNode;
6537
+ children: ReactNode;
6723
6538
  };
6724
6539
  declare const HalstackProvider: ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType) => JSX.Element;
6725
6540
 
6726
6541
  declare const useToast: () => {
6727
- default: (toast: DefaultToast) => () => void;
6728
- success: (toast: SemanticToast) => () => void;
6729
- warning: (toast: SemanticToast) => () => void;
6730
- info: (toast: SemanticToast) => () => void;
6731
- loading: (toast: Omit<LoadingToast, "loading">) => () => void;
6542
+ default: (toast: DefaultToast) => (() => void) | undefined;
6543
+ success: (toast: SemanticToast) => (() => void) | undefined;
6544
+ warning: (toast: SemanticToast) => (() => void) | undefined;
6545
+ info: (toast: SemanticToast) => (() => void) | undefined;
6546
+ loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
6732
6547
  };
6733
6548
 
6734
6549
  export { DxcAccordion, DxcAccordionGroup, DxcAlert, DxcApplicationLayout, DxcBadge, Bleed as DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, Inset as DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTag, DxcTextInput, DxcTextarea, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackContext, HalstackLanguageContext, HalstackProvider, useToast };