@dxc-technology/halstack-react 14.0.0 → 14.1.1

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,5 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
+ import { ReactNode } from 'react';
4
+ import { SortColumn } from 'react-data-grid';
3
5
  import * as styled_components from 'styled-components';
4
6
 
5
7
  type Space$t = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
@@ -251,77 +253,14 @@ type Props$H = {
251
253
  };
252
254
 
253
255
  type Space$q = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
254
- type SVG$g = React.ReactNode & React.SVGProps<SVGSVGElement>;
255
- type SocialLink = {
256
- /**
257
- * URL of the page the link goes to.
258
- */
259
- href: string;
260
- /**
261
- * Material Symbol name or SVG element as the icon used for the link.
262
- */
263
- logo: string | SVG$g;
264
- /**
265
- * Value for the HTML properties title and aria-label.
266
- */
267
- title: string;
268
- };
269
- type BottomLink = {
270
- /**
271
- * URL of the page the link goes to.
272
- */
273
- href: string;
274
- /**
275
- * Text for the link.
276
- */
277
- text: string;
278
- };
279
- type FooterPropsType = {
280
- /**
281
- * An array of objects representing the links that will be rendered as
282
- * icons at the top-right side of the footer.
283
- */
284
- socialLinks?: SocialLink[];
285
- /**
286
- * An array of objects representing the links that will be rendered at
287
- * the bottom part of the footer.
288
- */
289
- bottomLinks?: BottomLink[];
290
- /**
291
- * The text that will be displayed as copyright disclaimer.
292
- */
293
- copyright?: string;
294
- /**
295
- * The center section of the footer. Can be used to render custom
296
- * content in this area.
297
- */
298
- children?: React.ReactNode;
299
- /**
300
- * Size of the top margin to be applied to the footer.
301
- */
302
- margin?: Space$q;
303
- /**
304
- * Value of the tabindex for all interactive elements, except those
305
- * inside the custom area.
306
- */
307
- tabIndex?: number;
308
- /**
309
- * Determines the visual style and layout
310
- * - "default": The default mode with full content and styling.
311
- * - "reduced": A reduced mode with minimal content and styling.
312
- */
313
- mode?: "default" | "reduced";
314
- };
315
-
316
- type Space$p = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
317
256
  type Margin$l = {
318
- top?: Space$p;
319
- bottom?: Space$p;
320
- left?: Space$p;
321
- right?: Space$p;
257
+ top?: Space$q;
258
+ bottom?: Space$q;
259
+ left?: Space$q;
260
+ right?: Space$q;
322
261
  };
323
262
  type Size$4 = "small" | "medium" | "large" | "fillParent" | "fitContent";
324
- type SVG$f = React.ReactNode & React.SVGProps<SVGSVGElement>;
263
+ type SVG$g = React.ReactNode & React.SVGProps<SVGSVGElement>;
325
264
  type Option$1 = {
326
265
  /**
327
266
  * Option display value.
@@ -330,7 +269,7 @@ type Option$1 = {
330
269
  /**
331
270
  * Material Symbol name or SVG element as the icon that will be placed next to the label.
332
271
  */
333
- icon?: string | SVG$f;
272
+ icon?: string | SVG$g;
334
273
  /**
335
274
  * Option inner value.
336
275
  */
@@ -349,7 +288,7 @@ type Props$G = {
349
288
  /**
350
289
  * Material Symbol name or SVG element as the icon that will be placed next to the label.
351
290
  */
352
- icon?: string | SVG$f;
291
+ icon?: string | SVG$g;
353
292
  /**
354
293
  * Whether the icon should appear after or before the label.
355
294
  */
@@ -380,7 +319,7 @@ type Props$G = {
380
319
  * You can pass an object with 'top', 'bottom', 'left' and 'right'
381
320
  * properties in order to specify different margin sizes.
382
321
  */
383
- margin?: Space$p | Margin$l;
322
+ margin?: Space$q | Margin$l;
384
323
  /**
385
324
  * Size of the component.
386
325
  */
@@ -389,9 +328,14 @@ type Props$G = {
389
328
  * Value of the tabindex attribute.
390
329
  */
391
330
  tabIndex?: number;
331
+ /**
332
+ * Text representing advisory information related to the dropdown's trigger action.
333
+ * Under the hood, this prop also serves as an accessible label for the component.
334
+ */
335
+ title?: string;
392
336
  };
393
337
 
394
- type Space$o = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
338
+ type Space$p = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
395
339
  type Props$F = {
396
340
  /**
397
341
  * Whether a contrast line should appear at the bottom of the header.
@@ -415,7 +359,7 @@ type Props$F = {
415
359
  /**
416
360
  * Size of the bottom margin to be applied to the header.
417
361
  */
418
- margin?: Space$o;
362
+ margin?: Space$p;
419
363
  /**
420
364
  * Value of the tabindex for all interactive elements, except those inside the
421
365
  * custom area.
@@ -423,13 +367,76 @@ type Props$F = {
423
367
  tabIndex?: number;
424
368
  };
425
369
 
370
+ type Space$o = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
371
+ type SVG$f = React.ReactNode & React.SVGProps<SVGSVGElement>;
372
+ type SocialLink = {
373
+ /**
374
+ * URL of the page the link goes to.
375
+ */
376
+ href: string;
377
+ /**
378
+ * Material Symbol name or SVG element as the icon used for the link.
379
+ */
380
+ logo: string | SVG$f;
381
+ /**
382
+ * Value for the HTML properties title and aria-label.
383
+ */
384
+ title: string;
385
+ };
386
+ type BottomLink = {
387
+ /**
388
+ * URL of the page the link goes to.
389
+ */
390
+ href: string;
391
+ /**
392
+ * Text for the link.
393
+ */
394
+ text: string;
395
+ };
396
+ type FooterPropsType = {
397
+ /**
398
+ * An array of objects representing the links that will be rendered as
399
+ * icons at the top-right side of the footer.
400
+ */
401
+ socialLinks?: SocialLink[];
402
+ /**
403
+ * An array of objects representing the links that will be rendered at
404
+ * the bottom part of the footer.
405
+ */
406
+ bottomLinks?: BottomLink[];
407
+ /**
408
+ * The text that will be displayed as copyright disclaimer.
409
+ */
410
+ copyright?: string;
411
+ /**
412
+ * The center section of the footer. Can be used to render custom
413
+ * content in this area.
414
+ */
415
+ children?: React.ReactNode;
416
+ /**
417
+ * Size of the top margin to be applied to the footer.
418
+ */
419
+ margin?: Space$o;
420
+ /**
421
+ * Value of the tabindex for all interactive elements, except those
422
+ * inside the custom area.
423
+ */
424
+ tabIndex?: number;
425
+ /**
426
+ * Determines the visual style and layout
427
+ * - "default": The default mode with full content and styling.
428
+ * - "reduced": A reduced mode with minimal content and styling.
429
+ */
430
+ mode?: "default" | "reduced";
431
+ };
432
+
426
433
  type AppLayoutMainPropsType = {
427
434
  /**
428
435
  * Everything between the tags will be displayed as the content of the main part of the application.
429
436
  */
430
437
  children: React.ReactNode;
431
438
  };
432
- type AppLayoutPropsType = {
439
+ type ApplicationLayoutPropsType = {
433
440
  /**
434
441
  * Text to be placed next to the hamburger button that toggles the
435
442
  * visibility of the sidenav.
@@ -454,13 +461,13 @@ type AppLayoutPropsType = {
454
461
  };
455
462
 
456
463
  declare const DxcApplicationLayout: {
457
- ({ visibilityToggleLabel, header, sidenav, footer, children, }: AppLayoutPropsType): JSX.Element;
464
+ ({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
465
+ Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
458
466
  Header: {
459
467
  ({ underlined, content, responsiveContent, onClick, margin, tabIndex, }: Props$F): JSX.Element;
460
- Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, }: Props$G) => JSX.Element>) => react_jsx_runtime.JSX.Element;
468
+ Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => JSX.Element>) => react_jsx_runtime.JSX.Element;
461
469
  };
462
470
  Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
463
- Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
464
471
  SideNav: {
465
472
  ({ title, children }: Props$H): JSX.Element;
466
473
  Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
@@ -526,43 +533,134 @@ type Props$E = (ContextualProps | NotificationProps) & CommonProps$7;
526
533
 
527
534
  declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$E) => JSX.Element;
528
535
 
529
- type Spacing$1 = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
536
+ /**
537
+ * Halstack Color Palette
538
+ * @link https://developer.dxc.com/halstack/next/principles/color/#color-tokens-core-color-tokens
539
+ */
540
+ declare const CoreColorTokens: {
541
+ color_black: string;
542
+ color_white: string;
543
+ color_transparent: string;
544
+ color_grey_50: string;
545
+ color_grey_100: string;
546
+ color_grey_200: string;
547
+ color_grey_300: string;
548
+ color_grey_400: string;
549
+ color_grey_500: string;
550
+ color_grey_600: string;
551
+ color_grey_700: string;
552
+ color_grey_800: string;
553
+ color_grey_900: string;
554
+ color_grey_50_a: string;
555
+ color_grey_100_a: string;
556
+ color_grey_200_a: string;
557
+ color_grey_300_a: string;
558
+ color_grey_400_a: string;
559
+ color_grey_500_a: string;
560
+ color_grey_600_a: string;
561
+ color_grey_700_a: string;
562
+ color_grey_800_a: string;
563
+ color_grey_900_a: string;
564
+ color_purple_50: string;
565
+ color_purple_100: string;
566
+ color_purple_200: string;
567
+ color_purple_300: string;
568
+ color_purple_400: string;
569
+ color_purple_500: string;
570
+ color_purple_600: string;
571
+ color_purple_700: string;
572
+ color_purple_800: string;
573
+ color_purple_900: string;
574
+ color_blue_50: string;
575
+ color_blue_100: string;
576
+ color_blue_200: string;
577
+ color_blue_300: string;
578
+ color_blue_400: string;
579
+ color_blue_500: string;
580
+ color_blue_600: string;
581
+ color_blue_700: string;
582
+ color_blue_800: string;
583
+ color_blue_900: string;
584
+ color_red_50: string;
585
+ color_red_100: string;
586
+ color_red_200: string;
587
+ color_red_300: string;
588
+ color_red_400: string;
589
+ color_red_500: string;
590
+ color_red_600: string;
591
+ color_red_700: string;
592
+ color_red_800: string;
593
+ color_red_900: string;
594
+ color_green_50: string;
595
+ color_green_100: string;
596
+ color_green_200: string;
597
+ color_green_300: string;
598
+ color_green_400: string;
599
+ color_green_500: string;
600
+ color_green_600: string;
601
+ color_green_700: string;
602
+ color_green_800: string;
603
+ color_green_900: string;
604
+ color_yellow_50: string;
605
+ color_yellow_100: string;
606
+ color_yellow_200: string;
607
+ color_yellow_300: string;
608
+ color_yellow_400: string;
609
+ color_yellow_500: string;
610
+ color_yellow_600: string;
611
+ color_yellow_700: string;
612
+ color_yellow_800: string;
613
+ color_yellow_900: string;
614
+ color_orange_50: string;
615
+ color_orange_100: string;
616
+ color_orange_200: string;
617
+ color_orange_300: string;
618
+ color_orange_400: string;
619
+ color_orange_500: string;
620
+ color_orange_600: string;
621
+ color_orange_700: string;
622
+ color_orange_800: string;
623
+ color_orange_900: string;
624
+ };
625
+ type CoreColorTokensType = keyof typeof CoreColorTokens;
626
+ type CoreSpacingTokensType = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "0.75rem" | "1rem" | "1.5rem" | "2rem" | "2.5rem" | "3rem" | "3.5rem" | "4rem" | "5rem" | "6rem" | "7rem";
627
+
530
628
  type Props$D = {
531
629
  /**
532
630
  * Applies the spacing scale to all sides.
533
631
  */
534
- space?: Spacing$1;
632
+ space?: CoreSpacingTokensType;
535
633
  /**
536
634
  * Applies the spacing scale to the left and right sides.
537
635
  */
538
- horizontal?: Spacing$1;
636
+ horizontal?: CoreSpacingTokensType;
539
637
  /**
540
638
  * Applies the spacing scale to the top and bottom sides.
541
639
  */
542
- vertical?: Spacing$1;
640
+ vertical?: CoreSpacingTokensType;
543
641
  /**
544
642
  * Applies the spacing scale to the top side.
545
643
  */
546
- top?: Spacing$1;
644
+ top?: CoreSpacingTokensType;
547
645
  /**
548
646
  * Applies the spacing scale to the right side.
549
647
  */
550
- right?: Spacing$1;
648
+ right?: CoreSpacingTokensType;
551
649
  /**
552
650
  * Applies the spacing scale to the bottom side.
553
651
  */
554
- bottom?: Spacing$1;
652
+ bottom?: CoreSpacingTokensType;
555
653
  /**
556
654
  * Applies the spacing scale to the left side.
557
655
  */
558
- left?: Spacing$1;
656
+ left?: CoreSpacingTokensType;
559
657
  /**
560
658
  * Custom content inside the bleed.
561
659
  */
562
660
  children: React.ReactNode;
563
661
  };
564
662
 
565
- declare function Bleed({ space, horizontal, vertical, top, right, bottom, left, children, }: Props$D): JSX.Element;
663
+ declare const Bleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$D) => react_jsx_runtime.JSX.Element;
566
664
 
567
665
  type Item$1 = {
568
666
  href?: string;
@@ -893,97 +991,6 @@ type Props$x = {
893
991
 
894
992
  declare const DxcChip: ({ label, suffixIcon, prefixIcon, onClickSuffix, onClickPrefix, disabled, margin, tabIndex, }: Props$x) => JSX.Element;
895
993
 
896
- /**
897
- * Halstack Color Palette
898
- * @link https://developer.dxc.com/halstack/next/principles/color/#color-tokens-core-color-tokens
899
- */
900
- declare const CoreColorTokens: {
901
- color_black: string;
902
- color_white: string;
903
- color_transparent: string;
904
- color_grey_50: string;
905
- color_grey_100: string;
906
- color_grey_200: string;
907
- color_grey_300: string;
908
- color_grey_400: string;
909
- color_grey_500: string;
910
- color_grey_600: string;
911
- color_grey_700: string;
912
- color_grey_800: string;
913
- color_grey_900: string;
914
- color_grey_50_a: string;
915
- color_grey_100_a: string;
916
- color_grey_200_a: string;
917
- color_grey_300_a: string;
918
- color_grey_400_a: string;
919
- color_grey_500_a: string;
920
- color_grey_600_a: string;
921
- color_grey_700_a: string;
922
- color_grey_800_a: string;
923
- color_grey_900_a: string;
924
- color_purple_50: string;
925
- color_purple_100: string;
926
- color_purple_200: string;
927
- color_purple_300: string;
928
- color_purple_400: string;
929
- color_purple_500: string;
930
- color_purple_600: string;
931
- color_purple_700: string;
932
- color_purple_800: string;
933
- color_purple_900: string;
934
- color_blue_50: string;
935
- color_blue_100: string;
936
- color_blue_200: string;
937
- color_blue_300: string;
938
- color_blue_400: string;
939
- color_blue_500: string;
940
- color_blue_600: string;
941
- color_blue_700: string;
942
- color_blue_800: string;
943
- color_blue_900: string;
944
- color_red_50: string;
945
- color_red_100: string;
946
- color_red_200: string;
947
- color_red_300: string;
948
- color_red_400: string;
949
- color_red_500: string;
950
- color_red_600: string;
951
- color_red_700: string;
952
- color_red_800: string;
953
- color_red_900: string;
954
- color_green_50: string;
955
- color_green_100: string;
956
- color_green_200: string;
957
- color_green_300: string;
958
- color_green_400: string;
959
- color_green_500: string;
960
- color_green_600: string;
961
- color_green_700: string;
962
- color_green_800: string;
963
- color_green_900: string;
964
- color_yellow_50: string;
965
- color_yellow_100: string;
966
- color_yellow_200: string;
967
- color_yellow_300: string;
968
- color_yellow_400: string;
969
- color_yellow_500: string;
970
- color_yellow_600: string;
971
- color_yellow_700: string;
972
- color_yellow_800: string;
973
- color_yellow_900: string;
974
- color_orange_50: string;
975
- color_orange_100: string;
976
- color_orange_200: string;
977
- color_orange_300: string;
978
- color_orange_400: string;
979
- color_orange_500: string;
980
- color_orange_600: string;
981
- color_orange_700: string;
982
- color_orange_800: string;
983
- color_orange_900: string;
984
- };
985
- type CoreColorTokensType = keyof typeof CoreColorTokens;
986
-
987
994
  type SpacingValues = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
988
995
  type Space$j = SpacingValues | {
989
996
  top?: SpacingValues;
@@ -1173,14 +1180,59 @@ type Section = {
1173
1180
  };
1174
1181
  type Props$v = {
1175
1182
  /**
1176
- * Array of items to be displayed in the Contextual menu.
1177
- * Each item can be a single/simple item, a group item or a section.
1183
+ * Array of items to be displayed in the Contextual menu.
1184
+ * Each item can be a single/simple item, a group item or a section.
1185
+ */
1186
+ items: (Item | GroupItem)[] | Section[];
1187
+ };
1188
+
1189
+ declare const DxcContextualMenu: ({ items }: Props$v) => react_jsx_runtime.JSX.Element;
1190
+
1191
+ type Space$i = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1192
+ type Margin$h = {
1193
+ top?: Space$i;
1194
+ bottom?: Space$i;
1195
+ left?: Space$i;
1196
+ right?: Space$i;
1197
+ };
1198
+ type SVG$9 = React.ReactNode & React.SVGProps<SVGSVGElement>;
1199
+ type ActionCellsPropsType = {
1200
+ actions: ActionsPropsType;
1201
+ };
1202
+ type ActionsPropsType = Array<{
1203
+ icon: string | SVG$9;
1204
+ title: string;
1205
+ onClick: () => void;
1206
+ disabled?: boolean;
1207
+ tabIndex?: number;
1208
+ options?: never;
1209
+ } | {
1210
+ icon?: never;
1211
+ title: string;
1212
+ onClick: (value?: string) => void;
1213
+ disabled?: boolean;
1214
+ tabIndex?: number;
1215
+ options: Option$1[];
1216
+ }>;
1217
+ type Props$u = {
1218
+ /**
1219
+ * The center section of the table. Can be used to render custom
1220
+ * content in this area.
1221
+ */
1222
+ children: React.ReactNode;
1223
+ /**
1224
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1225
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1178
1226
  */
1179
- items: (Item | GroupItem)[] | Section[];
1227
+ margin?: Space$i | Margin$h;
1228
+ /**
1229
+ * Determines the visual style and layout
1230
+ * - "default": Default table size.
1231
+ * - "reduced": More compact table with less spacing for high density information.
1232
+ */
1233
+ mode?: "default" | "reduced";
1180
1234
  };
1181
1235
 
1182
- declare const DxcContextualMenu: ({ items }: Props$v) => react_jsx_runtime.JSX.Element;
1183
-
1184
1236
  type GridColumn = {
1185
1237
  /**
1186
1238
  * Key that will be rendered from each row in rows.
@@ -1198,6 +1250,10 @@ type GridColumn = {
1198
1250
  * Whether the column is sortable or not.
1199
1251
  */
1200
1252
  sortable?: boolean;
1253
+ /**
1254
+ * Custom criteria for sorting the column.
1255
+ */
1256
+ sortFn?: (_a: ReactNode, _b: ReactNode) => number;
1201
1257
  /**
1202
1258
  * Whether the column is draggable or not.
1203
1259
  */
@@ -1219,13 +1275,13 @@ type GridRow = {
1219
1275
  /**
1220
1276
  * List of rows that will be rendered in each cell based on the key in each column.
1221
1277
  */
1222
- [key: string]: React.ReactNode | undefined;
1278
+ [key: string]: ReactNode | undefined;
1223
1279
  };
1224
1280
  type HierarchyGridRow = GridRow & {
1225
1281
  childRows?: HierarchyGridRow[] | GridRow[];
1226
1282
  };
1227
1283
  type ExpandableGridRow = GridRow & {
1228
- expandedContent?: React.ReactNode;
1284
+ expandedContent?: ReactNode;
1229
1285
  expandedContentHeight?: number;
1230
1286
  };
1231
1287
  type ExpandableRows = {
@@ -1273,6 +1329,68 @@ type SelectableGridProps = {
1273
1329
  onSelectRows?: never;
1274
1330
  uniqueRowId?: string;
1275
1331
  };
1332
+ type PaginatedProps$1 = {
1333
+ /**
1334
+ * If true, paginator will be displayed.
1335
+ */
1336
+ showPaginator?: true;
1337
+ /**
1338
+ * Number of total items.
1339
+ */
1340
+ totalItems?: number;
1341
+ /**
1342
+ * If true, a select component for navigation between pages will be displayed.
1343
+ */
1344
+ showGoToPage?: boolean;
1345
+ /**
1346
+ * Number of items per page.
1347
+ */
1348
+ itemsPerPage?: number;
1349
+ /**
1350
+ * An array of numbers representing the items per page options.
1351
+ */
1352
+ itemsPerPageOptions?: number[];
1353
+ /**
1354
+ * This function will be called when the user selects an item per page
1355
+ * option. The value selected will be passed as a parameter.
1356
+ */
1357
+ itemsPerPageFunction?: (value: number) => void;
1358
+ /**
1359
+ * Function called whenever the current page is changed.
1360
+ */
1361
+ onPageChange?: (_page: number) => void;
1362
+ };
1363
+ type NonPaginatedProps$1 = {
1364
+ /**
1365
+ * If true, paginator will be displayed.
1366
+ */
1367
+ showPaginator: false;
1368
+ /**
1369
+ * Number of total items.
1370
+ */
1371
+ totalItems?: never;
1372
+ /**
1373
+ * If true, a select component for navigation between pages will be displayed.
1374
+ */
1375
+ showGoToPage?: never;
1376
+ /**
1377
+ * Number of items per page.
1378
+ */
1379
+ itemsPerPage?: never;
1380
+ /**
1381
+ * An array of numbers representing the items per page options.
1382
+ */
1383
+ itemsPerPageOptions?: never;
1384
+ /**
1385
+ * This function will be called when the user selects an item per page
1386
+ * option. The value selected will be passed as a parameter.
1387
+ */
1388
+ itemsPerPageFunction?: never;
1389
+ /**
1390
+ * Function called whenever the current page is changed.
1391
+ */
1392
+ onPageChange?: never;
1393
+ };
1276
1394
  type CommonProps$6 = {
1277
1395
  columns: GridColumn[];
1278
1396
  /**
@@ -1282,7 +1400,12 @@ type CommonProps$6 = {
1282
1400
  /**
1283
1401
  * Function called whenever a cell is edited.
1284
1402
  */
1285
- onGridRowsChange?: (rows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => void;
1403
+ onGridRowsChange?: (_rows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => void;
1404
+ /**
1405
+ * Function called whenever a column is sorted. Receives the sorted
1406
+ * column and direction, or `undefined` if no sorting is applied.
1407
+ */
1408
+ onSort?: (_sortColumn?: SortColumn) => void;
1286
1409
  };
1287
1410
  type BasicGridProps = {
1288
1411
  rows: GridRow[];
@@ -1291,18 +1414,21 @@ type BasicGridProps = {
1291
1414
  */
1292
1415
  expandable?: false;
1293
1416
  };
1294
- type Props$u = CommonProps$6 & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
1417
+ type Props$t = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
1295
1418
 
1296
- declare const DxcDataGrid: ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, }: Props$u) => JSX.Element;
1419
+ declare const DxcDataGrid: {
1420
+ ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, }: Props$t): JSX.Element;
1421
+ ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
1422
+ };
1297
1423
 
1298
- type Space$i = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1299
- type Margin$h = {
1300
- top?: Space$i;
1301
- bottom?: Space$i;
1302
- left?: Space$i;
1303
- right?: Space$i;
1424
+ type Space$h = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1425
+ type Margin$g = {
1426
+ top?: Space$h;
1427
+ bottom?: Space$h;
1428
+ left?: Space$h;
1429
+ right?: Space$h;
1304
1430
  };
1305
- type Props$t = {
1431
+ type Props$s = {
1306
1432
  /**
1307
1433
  * Initial value of the input element, only when it is uncontrolled.
1308
1434
  */
@@ -1393,20 +1519,20 @@ type Props$t = {
1393
1519
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1394
1520
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1395
1521
  */
1396
- margin?: Space$i | Margin$h;
1522
+ margin?: Space$h | Margin$g;
1397
1523
  /**
1398
1524
  * Size of the component.
1399
1525
  */
1400
- size?: "medium" | "large" | "fillParent";
1526
+ size?: "small" | "medium" | "large" | "fillParent";
1401
1527
  /**
1402
1528
  * Value of the tabindex attribute.
1403
1529
  */
1404
1530
  tabIndex?: number;
1405
1531
  };
1406
1532
 
1407
- declare const DxcDateInput: react.ForwardRefExoticComponent<Props$t & react.RefAttributes<HTMLDivElement>>;
1533
+ declare const DxcDateInput: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLDivElement>>;
1408
1534
 
1409
- type Props$s = {
1535
+ type Props$r = {
1410
1536
  /**
1411
1537
  * If true, the close button will be visible.
1412
1538
  */
@@ -1441,9 +1567,9 @@ type Props$s = {
1441
1567
  tabIndex?: number;
1442
1568
  };
1443
1569
 
1444
- declare const DxcDialog: ({ isCloseVisible, onCloseClick, children, overlay, onBackgroundClick, tabIndex, }: Props$s) => JSX.Element;
1570
+ declare const DxcDialog: ({ isCloseVisible, onCloseClick, children, overlay, onBackgroundClick, tabIndex, }: Props$r) => JSX.Element;
1445
1571
 
1446
- type Props$r = {
1572
+ type Props$q = {
1447
1573
  /**
1448
1574
  * The divider can be shown in horizontal or vertical.
1449
1575
  */
@@ -1464,16 +1590,16 @@ type Props$r = {
1464
1590
  decorative?: boolean;
1465
1591
  };
1466
1592
 
1467
- declare const DxcDivider: ({ orientation, weight, color, decorative, }: Props$r) => JSX.Element;
1593
+ declare const DxcDivider: ({ orientation, weight, color, decorative, }: Props$q) => JSX.Element;
1468
1594
 
1469
- declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, }: Props$G) => JSX.Element;
1595
+ declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => JSX.Element;
1470
1596
 
1471
- type Space$h = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1472
- type Margin$g = {
1473
- top?: Space$h;
1474
- bottom?: Space$h;
1475
- left?: Space$h;
1476
- right?: Space$h;
1597
+ type Space$g = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1598
+ type Margin$f = {
1599
+ top?: Space$g;
1600
+ bottom?: Space$g;
1601
+ left?: Space$g;
1602
+ right?: Space$g;
1477
1603
  };
1478
1604
  type FileData = {
1479
1605
  /**
@@ -1540,7 +1666,7 @@ type CommonProps$5 = {
1540
1666
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1541
1667
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1542
1668
  */
1543
- margin?: Space$h | Margin$g;
1669
+ margin?: Space$g | Margin$f;
1544
1670
  /**
1545
1671
  * Value of the tabindex attribute.
1546
1672
  */
@@ -1574,31 +1700,30 @@ type FileModeProps = CommonProps$5 & {
1574
1700
  */
1575
1701
  dropAreaLabel?: never;
1576
1702
  };
1577
- type Props$q = DropModeProps | FileModeProps;
1703
+ type Props$p = DropModeProps | FileModeProps;
1578
1704
 
1579
- declare const DxcFileInput: react.ForwardRefExoticComponent<Props$q & react.RefAttributes<HTMLDivElement>>;
1705
+ declare const DxcFileInput: react.ForwardRefExoticComponent<Props$p & react.RefAttributes<HTMLDivElement>>;
1580
1706
 
1581
- type Spaces$1 = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
1582
1707
  type Gap$1 = {
1583
- rowGap: Spaces$1;
1584
- columnGap?: Spaces$1;
1708
+ rowGap: CoreSpacingTokensType;
1709
+ columnGap?: CoreSpacingTokensType;
1585
1710
  } | {
1586
- rowGap?: Spaces$1;
1587
- columnGap: Spaces$1;
1588
- } | Spaces$1;
1711
+ rowGap?: CoreSpacingTokensType;
1712
+ columnGap: CoreSpacingTokensType;
1713
+ } | CoreSpacingTokensType;
1589
1714
  type CommonProps$4 = {
1590
1715
  /**
1591
1716
  * Sets the justify-content CSS property.
1592
1717
  *
1593
1718
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
1594
1719
  */
1595
- justifyContent?: "flex-start" | "flex-end" | "start" | "end" | "left" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
1720
+ justifyContent?: "flex-start" | "flex-end" | "start" | "end" | "left" | "normal" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
1596
1721
  /**
1597
1722
  * Sets the align-items CSS property.
1598
1723
  *
1599
1724
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
1600
1725
  */
1601
- alignItems?: "stretch" | "flex-start" | "flex-end" | "start" | "end" | "self-start" | "self-end" | "center" | "baseline";
1726
+ alignItems?: "stretch" | "flex-start" | "flex-end" | "start" | "end" | "self-start" | "self-end" | "center" | "baseline" | "normal";
1602
1727
  /**
1603
1728
  * Sets the align-content CSS property.
1604
1729
  *
@@ -1612,7 +1737,7 @@ type CommonProps$4 = {
1612
1737
  */
1613
1738
  alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
1614
1739
  };
1615
- type Props$p = CommonProps$4 & {
1740
+ type Props$o = CommonProps$4 & {
1616
1741
  /**
1617
1742
  * Sets the flex-direction CSS property.
1618
1743
  *
@@ -1665,16 +1790,15 @@ type Props$p = CommonProps$4 & {
1665
1790
  children: React.ReactNode;
1666
1791
  };
1667
1792
 
1668
- declare const DxcFlex: ({ direction, wrap, gap, order, grow, shrink, basis, children, ...props }: Props$p) => JSX.Element;
1793
+ declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }: Props$o) => react_jsx_runtime.JSX.Element;
1669
1794
 
1670
- type Spaces = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
1671
1795
  type Gap = {
1672
- rowGap: Spaces;
1673
- columnGap?: Spaces;
1796
+ rowGap: CoreSpacingTokensType;
1797
+ columnGap?: CoreSpacingTokensType;
1674
1798
  } | {
1675
- rowGap?: Spaces;
1676
- columnGap: Spaces;
1677
- } | Spaces;
1799
+ rowGap?: CoreSpacingTokensType;
1800
+ columnGap: CoreSpacingTokensType;
1801
+ } | CoreSpacingTokensType;
1678
1802
  type GridCell = {
1679
1803
  start: number | string;
1680
1804
  end: number | string;
@@ -1724,7 +1848,7 @@ type GridItemProps = {
1724
1848
  */
1725
1849
  children: React.ReactNode;
1726
1850
  };
1727
- type Props$o = GridItemProps & {
1851
+ type Props$n = GridItemProps & {
1728
1852
  /**
1729
1853
  * Sets the grid-auto-columns CSS property.
1730
1854
  *
@@ -1748,7 +1872,7 @@ type Props$o = GridItemProps & {
1748
1872
  *
1749
1873
  * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1750
1874
  */
1751
- gap?: Spaces | Gap;
1875
+ gap?: CoreSpacingTokensType | Gap;
1752
1876
  /**
1753
1877
  * Sets the place-content CSS property.
1754
1878
  *
@@ -1782,18 +1906,18 @@ type Props$o = GridItemProps & {
1782
1906
  };
1783
1907
 
1784
1908
  declare const DxcGrid: {
1785
- (props: Props$o): JSX.Element;
1909
+ (props: Props$n): react_jsx_runtime.JSX.Element;
1786
1910
  Item: styled_components.StyledComponent<"div", any, GridItemProps, never>;
1787
1911
  };
1788
1912
 
1789
- type Space$g = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1790
- type Margin$f = {
1791
- top?: Space$g;
1792
- bottom?: Space$g;
1793
- left?: Space$g;
1794
- right?: Space$g;
1913
+ type Space$f = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1914
+ type Margin$e = {
1915
+ top?: Space$f;
1916
+ bottom?: Space$f;
1917
+ left?: Space$f;
1918
+ right?: Space$f;
1795
1919
  };
1796
- type Props$n = {
1920
+ type Props$m = {
1797
1921
  /**
1798
1922
  * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
1799
1923
  * The html tag of the heading will be the one specified in the 'as' prop.
@@ -1816,12 +1940,12 @@ type Props$n = {
1816
1940
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1817
1941
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1818
1942
  */
1819
- margin?: Space$g | Margin$f;
1943
+ margin?: Space$f | Margin$e;
1820
1944
  };
1821
1945
 
1822
- declare const DxcHeading: ({ level, text, as, weight, margin }: Props$n) => JSX.Element;
1946
+ declare const DxcHeading: ({ level, text, as, weight, margin }: Props$m) => JSX.Element;
1823
1947
 
1824
- type Props$m = {
1948
+ type Props$l = {
1825
1949
  /**
1826
1950
  * Alternative text description displayed when the specified image is not loaded.
1827
1951
  *
@@ -1887,54 +2011,53 @@ type Props$m = {
1887
2011
  onError?: React.ReactEventHandler<HTMLImageElement>;
1888
2012
  };
1889
2013
 
1890
- declare const DxcImage: ({ alt, caption, lazyLoading, src, srcSet, sizes, width, height, objectFit, objectPosition, onLoad, onError, }: Props$m) => react_jsx_runtime.JSX.Element;
2014
+ declare const DxcImage: ({ alt, caption, lazyLoading, src, srcSet, sizes, width, height, objectFit, objectPosition, onLoad, onError, }: Props$l) => react_jsx_runtime.JSX.Element;
1891
2015
 
1892
- type Spacing = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
1893
- type Props$l = {
2016
+ type Props$k = {
1894
2017
  /**
1895
2018
  * Applies the spacing scale to all sides.
1896
2019
  */
1897
- space?: Spacing;
2020
+ space?: CoreSpacingTokensType;
1898
2021
  /**
1899
2022
  * Applies the spacing scale to the left and right sides.
1900
2023
  */
1901
- horizontal?: Spacing;
2024
+ horizontal?: CoreSpacingTokensType;
1902
2025
  /**
1903
2026
  * Applies the spacing scale to the top and bottom sides.
1904
2027
  */
1905
- vertical?: Spacing;
2028
+ vertical?: CoreSpacingTokensType;
1906
2029
  /**
1907
2030
  * Applies the spacing scale to the top side.
1908
2031
  */
1909
- top?: Spacing;
2032
+ top?: CoreSpacingTokensType;
1910
2033
  /**
1911
2034
  * Applies the spacing scale to the right side.
1912
2035
  */
1913
- right?: Spacing;
2036
+ right?: CoreSpacingTokensType;
1914
2037
  /**
1915
2038
  * Applies the spacing scale to the bottom side.
1916
2039
  */
1917
- bottom?: Spacing;
2040
+ bottom?: CoreSpacingTokensType;
1918
2041
  /**
1919
2042
  * Applies the spacing scale to the left side.
1920
2043
  */
1921
- left?: Spacing;
2044
+ left?: CoreSpacingTokensType;
1922
2045
  /**
1923
2046
  * Custom content inside the inset.
1924
2047
  */
1925
2048
  children: React.ReactNode;
1926
2049
  };
1927
2050
 
1928
- declare function Inset({ space, horizontal, vertical, top, right, bottom, left, children, }: Props$l): JSX.Element;
2051
+ declare const Inset: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$k) => react_jsx_runtime.JSX.Element;
1929
2052
 
1930
- type Space$f = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
1931
- type Margin$e = {
1932
- top?: Space$f;
1933
- bottom?: Space$f;
1934
- left?: Space$f;
1935
- right?: Space$f;
2053
+ type Space$e = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2054
+ type Margin$d = {
2055
+ top?: Space$e;
2056
+ bottom?: Space$e;
2057
+ left?: Space$e;
2058
+ right?: Space$e;
1936
2059
  };
1937
- type SVG$9 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2060
+ type SVG$8 = React.ReactNode & React.SVGProps<SVGSVGElement>;
1938
2061
  type LinkProps = {
1939
2062
  /**
1940
2063
  * If true, the link is disabled.
@@ -1947,7 +2070,7 @@ type LinkProps = {
1947
2070
  /**
1948
2071
  * Material Symbol name or SVG element as the icon that will be placed next to the link text.
1949
2072
  */
1950
- icon?: string | SVG$9;
2073
+ icon?: string | SVG$8;
1951
2074
  /**
1952
2075
  * Indicates the position of the icon in the component.
1953
2076
  */
@@ -1973,7 +2096,7 @@ type LinkProps = {
1973
2096
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1974
2097
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1975
2098
  */
1976
- margin?: Space$f | Margin$e;
2099
+ margin?: Space$e | Margin$d;
1977
2100
  /**
1978
2101
  * Value of the tabindex.
1979
2102
  */
@@ -1982,7 +2105,7 @@ type LinkProps = {
1982
2105
 
1983
2106
  declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
1984
2107
 
1985
- type SVG$8 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2108
+ type SVG$7 = React.ReactNode & React.SVGProps<SVGSVGElement>;
1986
2109
  type TabProps$1 = {
1987
2110
  /**
1988
2111
  * Whether the tab is active or not.
@@ -1999,7 +2122,7 @@ type TabProps$1 = {
1999
2122
  /**
2000
2123
  * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2001
2124
  */
2002
- icon?: string | SVG$8;
2125
+ icon?: string | SVG$7;
2003
2126
  /**
2004
2127
  * If the value is 'true', an empty badge will appear.
2005
2128
  * If it is 'false', no badge will appear.
@@ -2013,7 +2136,7 @@ type TabProps$1 = {
2013
2136
  */
2014
2137
  children: string;
2015
2138
  };
2016
- type Props$k = {
2139
+ type Props$j = {
2017
2140
  /**
2018
2141
  * Whether the icon should appear above or to the left of the label.
2019
2142
  */
@@ -2029,18 +2152,18 @@ type Props$k = {
2029
2152
  };
2030
2153
 
2031
2154
  declare const DxcNavTabs: {
2032
- ({ iconPosition, tabIndex, children }: Props$k): JSX.Element;
2155
+ ({ iconPosition, tabIndex, children }: Props$j): JSX.Element;
2033
2156
  Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
2034
2157
  };
2035
2158
 
2036
- type Space$e = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2037
- type Margin$d = {
2038
- top?: Space$e;
2039
- bottom?: Space$e;
2040
- left?: Space$e;
2041
- right?: Space$e;
2159
+ type Space$d = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2160
+ type Margin$c = {
2161
+ top?: Space$d;
2162
+ bottom?: Space$d;
2163
+ left?: Space$d;
2164
+ right?: Space$d;
2042
2165
  };
2043
- type Props$j = {
2166
+ type Props$i = {
2044
2167
  /**
2045
2168
  * Text to be placed above the number.
2046
2169
  */
@@ -2148,7 +2271,7 @@ type Props$j = {
2148
2271
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2149
2272
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2150
2273
  */
2151
- margin?: Space$e | Margin$d;
2274
+ margin?: Space$d | Margin$c;
2152
2275
  /**
2153
2276
  * Size of the component.
2154
2277
  */
@@ -2159,9 +2282,9 @@ type Props$j = {
2159
2282
  tabIndex?: number;
2160
2283
  };
2161
2284
 
2162
- declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$j & react.RefAttributes<HTMLDivElement>>;
2285
+ declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLDivElement>>;
2163
2286
 
2164
- type Props$i = {
2287
+ type Props$h = {
2165
2288
  /**
2166
2289
  * Number of the current selected page.
2167
2290
  */
@@ -2199,20 +2322,20 @@ type Props$i = {
2199
2322
  tabIndex?: number;
2200
2323
  };
2201
2324
 
2202
- declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$i) => JSX.Element;
2325
+ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$h) => JSX.Element;
2203
2326
 
2204
2327
  declare const DxcParagraph: ({ children }: {
2205
2328
  children: React.ReactNode;
2206
2329
  }) => JSX.Element;
2207
2330
 
2208
- type Space$d = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2209
- type Margin$c = {
2210
- top?: Space$d;
2211
- bottom?: Space$d;
2212
- left?: Space$d;
2213
- right?: Space$d;
2331
+ type Space$c = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2332
+ type Margin$b = {
2333
+ top?: Space$c;
2334
+ bottom?: Space$c;
2335
+ left?: Space$c;
2336
+ right?: Space$c;
2214
2337
  };
2215
- type Props$h = {
2338
+ type Props$g = {
2216
2339
  /**
2217
2340
  * Text to be placed above the password input.
2218
2341
  */
@@ -2301,7 +2424,7 @@ type Props$h = {
2301
2424
  * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2302
2425
  * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2303
2426
  */
2304
- margin?: Space$d | Margin$c;
2427
+ margin?: Space$c | Margin$b;
2305
2428
  /**
2306
2429
  * Size of the component.
2307
2430
  */
@@ -2312,16 +2435,16 @@ type Props$h = {
2312
2435
  tabIndex?: number;
2313
2436
  };
2314
2437
 
2315
- declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLDivElement>>;
2438
+ declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
2316
2439
 
2317
- type Space$c = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2440
+ type Space$b = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2318
2441
  type Size$1 = {
2319
- top?: Space$c;
2320
- bottom?: Space$c;
2321
- left?: Space$c;
2322
- right?: Space$c;
2442
+ top?: Space$b;
2443
+ bottom?: Space$b;
2444
+ left?: Space$b;
2445
+ right?: Space$b;
2323
2446
  };
2324
- type Props$g = {
2447
+ type Props$f = {
2325
2448
  /**
2326
2449
  * Text to be placed above the progress bar.
2327
2450
  */
@@ -2348,10 +2471,10 @@ type Props$g = {
2348
2471
  * an object with 'top', 'bottom', 'left' and 'right' properties
2349
2472
  * in order to specify different margin sizes.
2350
2473
  */
2351
- margin?: Space$c | Size$1;
2474
+ margin?: Space$b | Size$1;
2352
2475
  };
2353
2476
 
2354
- declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, }: Props$g) => JSX.Element;
2477
+ declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, }: Props$f) => JSX.Element;
2355
2478
 
2356
2479
  type Link = {
2357
2480
  /**
@@ -2363,7 +2486,7 @@ type Link = {
2363
2486
  */
2364
2487
  links?: Link[];
2365
2488
  };
2366
- type Props$f = {
2489
+ type Props$e = {
2367
2490
  /**
2368
2491
  * Title of the quick nav component.
2369
2492
  */
@@ -2374,7 +2497,7 @@ type Props$f = {
2374
2497
  links: Link[];
2375
2498
  };
2376
2499
 
2377
- declare const DxcQuickNav: ({ title, links }: Props$f) => JSX.Element;
2500
+ declare const DxcQuickNav: ({ title, links }: Props$e) => JSX.Element;
2378
2501
 
2379
2502
  type RadioOption = {
2380
2503
  /**
@@ -2475,50 +2598,6 @@ type RadioGroupProps = {
2475
2598
 
2476
2599
  declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
2477
2600
 
2478
- type Space$b = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2479
- type Margin$b = {
2480
- top?: Space$b;
2481
- bottom?: Space$b;
2482
- left?: Space$b;
2483
- right?: Space$b;
2484
- };
2485
- type SVG$7 = React.ReactNode & React.SVGProps<SVGSVGElement>;
2486
- type ActionCellsPropsType = {
2487
- actions: Array<{
2488
- icon: string | SVG$7;
2489
- title: string;
2490
- onClick: () => void;
2491
- disabled?: boolean;
2492
- tabIndex?: number;
2493
- options?: never;
2494
- } | {
2495
- icon?: never;
2496
- title: string;
2497
- onClick: (value?: string) => void;
2498
- disabled?: boolean;
2499
- tabIndex?: number;
2500
- options: Option$1[];
2501
- }>;
2502
- };
2503
- type Props$e = {
2504
- /**
2505
- * The center section of the table. Can be used to render custom
2506
- * content in this area.
2507
- */
2508
- children: React.ReactNode;
2509
- /**
2510
- * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2511
- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2512
- */
2513
- margin?: Space$b | Margin$b;
2514
- /**
2515
- * Determines the visual style and layout
2516
- * - "default": Default table size.
2517
- * - "reduced": More compact table with less spacing for high density information.
2518
- */
2519
- mode?: "default" | "reduced";
2520
- };
2521
-
2522
2601
  type Space$a = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
2523
2602
  type Margin$a = {
2524
2603
  top?: Space$a;
@@ -3003,7 +3082,7 @@ type Props$8 = {
3003
3082
  declare const DxcSwitch: react.ForwardRefExoticComponent<Props$8 & react.RefAttributes<HTMLDivElement>>;
3004
3083
 
3005
3084
  declare const DxcTable: {
3006
- ({ children, margin, mode }: Props$e): JSX.Element;
3085
+ ({ children, margin, mode }: Props$u): JSX.Element;
3007
3086
  ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
3008
3087
  };
3009
3088
 
@@ -3664,7 +3743,7 @@ type Props$2 = {
3664
3743
  children: React.ReactNode;
3665
3744
  };
3666
3745
 
3667
- declare const DxcTooltip: ({ position, label, children }: Props$2) => JSX.Element;
3746
+ declare function DxcTooltip(props: Props$2): react_jsx_runtime.JSX.Element;
3668
3747
 
3669
3748
  type Props$1 = {
3670
3749
  as?: keyof HTMLElementTagNameMap;
@@ -3750,14 +3829,6 @@ type Props = {
3750
3829
 
3751
3830
  declare const DxcWizard: ({ mode, defaultCurrentStep, currentStep, onStepClick, steps, margin, tabIndex, }: Props) => JSX.Element;
3752
3831
 
3753
- declare const useToast: () => {
3754
- default: (toast: DefaultToast) => () => void;
3755
- success: (toast: SemanticToast) => () => void;
3756
- warning: (toast: SemanticToast) => () => void;
3757
- info: (toast: SemanticToast) => () => void;
3758
- loading: (toast: LoadingToast) => () => void;
3759
- };
3760
-
3761
3832
  declare const componentTokens: {
3762
3833
  accordion: {
3763
3834
  backgroundColor: string;
@@ -4124,6 +4195,16 @@ declare const componentTokens: {
4124
4195
  focusColor: string;
4125
4196
  scrollBarThumbColor: string;
4126
4197
  scrollBarTrackColor: string;
4198
+ actionIconColor: string;
4199
+ disabledActionIconColor: string;
4200
+ hoverActionIconColor: string;
4201
+ focusActionIconColor: string;
4202
+ activeActionIconColor: string;
4203
+ actionBackgroundColor: string;
4204
+ disabledActionBackgroundColor: string;
4205
+ hoverActionBackgroundColor: string;
4206
+ focusActionBorderColor: string;
4207
+ activeActionBackgroundColor: string;
4127
4208
  };
4128
4209
  dateInput: {
4129
4210
  pickerBackgroundColor: string;
@@ -5666,6 +5747,16 @@ declare const HalstackContext: react.Context<DeepPartial<{
5666
5747
  focusColor: string;
5667
5748
  scrollBarThumbColor: string;
5668
5749
  scrollBarTrackColor: string;
5750
+ actionIconColor: string;
5751
+ disabledActionIconColor: string;
5752
+ hoverActionIconColor: string;
5753
+ focusActionIconColor: string;
5754
+ activeActionIconColor: string;
5755
+ actionBackgroundColor: string;
5756
+ disabledActionBackgroundColor: string;
5757
+ hoverActionBackgroundColor: string;
5758
+ focusActionBorderColor: string;
5759
+ activeActionBackgroundColor: string;
5669
5760
  };
5670
5761
  dateInput: {
5671
5762
  pickerBackgroundColor: string;
@@ -6700,4 +6791,12 @@ type HalstackProviderPropsType = {
6700
6791
  };
6701
6792
  declare const HalstackProvider: ({ theme, advancedTheme, labels, children }: HalstackProviderPropsType) => JSX.Element;
6702
6793
 
6794
+ declare const useToast: () => {
6795
+ default: (toast: DefaultToast) => () => void;
6796
+ success: (toast: SemanticToast) => () => void;
6797
+ warning: (toast: SemanticToast) => () => void;
6798
+ info: (toast: SemanticToast) => () => void;
6799
+ loading: (toast: Omit<LoadingToast, "loading">) => () => void;
6800
+ };
6801
+
6703
6802
  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 };