@dxc-technology/halstack-react 17.0.0 → 17.1.0
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.mts +222 -77
- package/dist/index.d.ts +222 -77
- package/dist/index.js +1723 -1157
- package/dist/index.mjs +1498 -933
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, SVGProps, ReactElement, ReactEventHandler } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
import { SortColumn } from 'react-data-grid';
|
|
5
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
5
|
import * as _emotion_react from '@emotion/react';
|
|
@@ -112,10 +111,10 @@ type NonIndependentProps = CommonProps$a & {
|
|
|
112
111
|
*/
|
|
113
112
|
onActiveChange?: (index: number[]) => void;
|
|
114
113
|
};
|
|
115
|
-
type Props$
|
|
114
|
+
type Props$M = IndependentProps | NonIndependentProps;
|
|
116
115
|
|
|
117
116
|
declare const DxcAccordion: {
|
|
118
|
-
(props: Props$
|
|
117
|
+
(props: Props$M): JSX.Element;
|
|
119
118
|
AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
|
|
120
119
|
};
|
|
121
120
|
|
|
@@ -198,9 +197,9 @@ type ModeSpecificProps = {
|
|
|
198
197
|
*/
|
|
199
198
|
mode: "modal";
|
|
200
199
|
};
|
|
201
|
-
type Props$
|
|
200
|
+
type Props$L = CommonProps$9 & ModeSpecificProps;
|
|
202
201
|
|
|
203
|
-
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$
|
|
202
|
+
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$L) => react.JSX.Element;
|
|
204
203
|
|
|
205
204
|
type SearchBarProps = {
|
|
206
205
|
/**
|
|
@@ -254,7 +253,7 @@ type Section$1 = {
|
|
|
254
253
|
items: (Item$1 | GroupItem$1)[];
|
|
255
254
|
title?: string;
|
|
256
255
|
};
|
|
257
|
-
type Props$
|
|
256
|
+
type Props$K = {
|
|
258
257
|
/**
|
|
259
258
|
* Array of items to be displayed in the menu.
|
|
260
259
|
* Each item can be a single/simple item, a group item or a section.
|
|
@@ -280,6 +279,11 @@ type Props$J = {
|
|
|
280
279
|
* If true the menu will be displayed horizontally.
|
|
281
280
|
*/
|
|
282
281
|
isHorizontal?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Function that will be called when an option is clicked.
|
|
284
|
+
* This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
|
|
285
|
+
*/
|
|
286
|
+
onSelectItem?: () => void;
|
|
283
287
|
};
|
|
284
288
|
|
|
285
289
|
type Section = {
|
|
@@ -287,7 +291,7 @@ type Section = {
|
|
|
287
291
|
title?: string;
|
|
288
292
|
};
|
|
289
293
|
type SearchbarSidenavProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
|
|
290
|
-
type Props$
|
|
294
|
+
type Props$J = {
|
|
291
295
|
/**
|
|
292
296
|
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
293
297
|
*/
|
|
@@ -333,7 +337,7 @@ type GroupItem = CommonItemProps & {
|
|
|
333
337
|
};
|
|
334
338
|
type MainNavPropsType = (GroupItem | Item$1)[];
|
|
335
339
|
type SearchBarHeaderProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
|
|
336
|
-
type Props$
|
|
340
|
+
type Props$I = {
|
|
337
341
|
appTitle?: string;
|
|
338
342
|
navItems?: MainNavPropsType;
|
|
339
343
|
responsiveBottomContent?: ReactNode;
|
|
@@ -465,9 +469,9 @@ type ApplicationLayoutPropsType = {
|
|
|
465
469
|
declare const DxcApplicationLayout: {
|
|
466
470
|
({ logo, header, sidenav, footer, children }: ApplicationLayoutPropsType): JSX.Element;
|
|
467
471
|
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
|
|
468
|
-
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: Props$
|
|
472
|
+
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: Props$I) => JSX.Element;
|
|
469
473
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
470
|
-
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: Props$
|
|
474
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: Props$J) => JSX.Element;
|
|
471
475
|
};
|
|
472
476
|
|
|
473
477
|
type Size$5 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
@@ -477,7 +481,7 @@ interface Status {
|
|
|
477
481
|
mode: "default" | "info" | "success" | "warning" | "error";
|
|
478
482
|
position: "top" | "bottom";
|
|
479
483
|
}
|
|
480
|
-
type Props$
|
|
484
|
+
type Props$H = {
|
|
481
485
|
/**
|
|
482
486
|
* Affects the visual style of the avatar. It can be used following semantic purposes or not.
|
|
483
487
|
*/
|
|
@@ -538,7 +542,7 @@ type Props$G = {
|
|
|
538
542
|
title?: string;
|
|
539
543
|
};
|
|
540
544
|
|
|
541
|
-
declare const DxcAvatar: react.
|
|
545
|
+
declare const DxcAvatar: react.ForwardRefExoticComponent<Props$H & react.RefAttributes<HTMLDivElement>>;
|
|
542
546
|
|
|
543
547
|
type ContextualProps = {
|
|
544
548
|
/**
|
|
@@ -590,11 +594,11 @@ type CommonProps$8 = {
|
|
|
590
594
|
*/
|
|
591
595
|
size?: "small" | "medium" | "large";
|
|
592
596
|
};
|
|
593
|
-
type Props$
|
|
597
|
+
type Props$G = (ContextualProps | NotificationProps) & CommonProps$8;
|
|
594
598
|
|
|
595
|
-
declare const DxcBadge:
|
|
599
|
+
declare const DxcBadge: react.ForwardRefExoticComponent<Props$G & react.RefAttributes<HTMLDivElement>>;
|
|
596
600
|
|
|
597
|
-
type Props$
|
|
601
|
+
type Props$F = {
|
|
598
602
|
/**
|
|
599
603
|
* Applies the spacing scale to all sides.
|
|
600
604
|
*/
|
|
@@ -629,13 +633,13 @@ type Props$E = {
|
|
|
629
633
|
children: ReactNode;
|
|
630
634
|
};
|
|
631
635
|
|
|
632
|
-
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$
|
|
636
|
+
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$F) => react.JSX.Element;
|
|
633
637
|
|
|
634
638
|
type Item = {
|
|
635
639
|
href?: string;
|
|
636
640
|
label: string;
|
|
637
641
|
};
|
|
638
|
-
type Props$
|
|
642
|
+
type Props$E = {
|
|
639
643
|
/**
|
|
640
644
|
* Provides a label that describes the type of navigation enabled by
|
|
641
645
|
* the component.
|
|
@@ -667,7 +671,7 @@ type Props$D = {
|
|
|
667
671
|
showRoot?: boolean;
|
|
668
672
|
};
|
|
669
673
|
|
|
670
|
-
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$
|
|
674
|
+
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$E) => react.JSX.Element;
|
|
671
675
|
|
|
672
676
|
type IconProps = {
|
|
673
677
|
/**
|
|
@@ -697,7 +701,7 @@ type OtherProps = {
|
|
|
697
701
|
*/
|
|
698
702
|
children: ReactNode;
|
|
699
703
|
};
|
|
700
|
-
type Props$
|
|
704
|
+
type Props$D = IconProps | OtherProps;
|
|
701
705
|
type BulletedListItemPropsType = {
|
|
702
706
|
/**
|
|
703
707
|
* Text to be shown in the list.
|
|
@@ -706,7 +710,7 @@ type BulletedListItemPropsType = {
|
|
|
706
710
|
};
|
|
707
711
|
|
|
708
712
|
declare const DxcBulletedList: {
|
|
709
|
-
({ children, type, icon }: Props$
|
|
713
|
+
({ children, type, icon }: Props$D): JSX.Element;
|
|
710
714
|
Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
|
|
711
715
|
};
|
|
712
716
|
|
|
@@ -719,7 +723,7 @@ type Size$4 = {
|
|
|
719
723
|
height?: "small" | "medium" | "large";
|
|
720
724
|
width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
721
725
|
};
|
|
722
|
-
type Props$
|
|
726
|
+
type Props$C = {
|
|
723
727
|
/**
|
|
724
728
|
* Text to be placed in the button.
|
|
725
729
|
*/
|
|
@@ -771,9 +775,9 @@ type Props$B = {
|
|
|
771
775
|
tabIndex?: number;
|
|
772
776
|
};
|
|
773
777
|
|
|
774
|
-
declare const DxcButton:
|
|
778
|
+
declare const DxcButton: react.ForwardRefExoticComponent<Props$C & react.RefAttributes<HTMLButtonElement>>;
|
|
775
779
|
|
|
776
|
-
type Props$
|
|
780
|
+
type Props$B = {
|
|
777
781
|
/**
|
|
778
782
|
* Alternative text description displayed when the specified image is not loaded.
|
|
779
783
|
*
|
|
@@ -843,7 +847,7 @@ type Size$3 = {
|
|
|
843
847
|
width?: "fillParent" | "fitContent";
|
|
844
848
|
height?: "fillParent" | "fitContent";
|
|
845
849
|
};
|
|
846
|
-
type Props$
|
|
850
|
+
type Props$A = {
|
|
847
851
|
/**
|
|
848
852
|
* Custom content that will be placed inside the component.
|
|
849
853
|
*/
|
|
@@ -872,7 +876,7 @@ type Props$z = {
|
|
|
872
876
|
/**
|
|
873
877
|
* Image to be displayed inside the card.
|
|
874
878
|
*/
|
|
875
|
-
image?: Props$
|
|
879
|
+
image?: Props$B;
|
|
876
880
|
/**
|
|
877
881
|
* Position of the image inside the card. It can be set to "before" or "after" the content.
|
|
878
882
|
*/
|
|
@@ -931,9 +935,9 @@ type Props$z = {
|
|
|
931
935
|
tabIndex?: number;
|
|
932
936
|
};
|
|
933
937
|
|
|
934
|
-
declare const DxcCard: react.ForwardRefExoticComponent<Props$
|
|
938
|
+
declare const DxcCard: react.ForwardRefExoticComponent<Props$A & react.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
935
939
|
|
|
936
|
-
type Props$
|
|
940
|
+
type Props$z = {
|
|
937
941
|
/**
|
|
938
942
|
* Specifies a string to be used as the name for the checkbox element when no `label` is provided.
|
|
939
943
|
*/
|
|
@@ -998,13 +1002,13 @@ type Props$y = {
|
|
|
998
1002
|
value?: string;
|
|
999
1003
|
};
|
|
1000
1004
|
|
|
1001
|
-
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$
|
|
1005
|
+
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$z & react.RefAttributes<HTMLDivElement>>;
|
|
1002
1006
|
|
|
1003
1007
|
type ChipAvatarType = {
|
|
1004
|
-
color: Props$
|
|
1005
|
-
profileName?: Props$
|
|
1006
|
-
imageSrc?: Props$
|
|
1007
|
-
icon?: Props$
|
|
1008
|
+
color: Props$H["color"];
|
|
1009
|
+
profileName?: Props$H["label"];
|
|
1010
|
+
imageSrc?: Props$H["imageSrc"];
|
|
1011
|
+
icon?: Props$H["icon"];
|
|
1008
1012
|
};
|
|
1009
1013
|
type CommonProps$7 = {
|
|
1010
1014
|
/**
|
|
@@ -1071,9 +1075,9 @@ type DismissibleChipProps = CommonProps$7 & {
|
|
|
1071
1075
|
selected?: never;
|
|
1072
1076
|
disabled?: never;
|
|
1073
1077
|
};
|
|
1074
|
-
type Props$
|
|
1078
|
+
type Props$y = SelectableChipProps | DismissibleChipProps;
|
|
1075
1079
|
|
|
1076
|
-
declare const DxcChip:
|
|
1080
|
+
declare const DxcChip: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
|
|
1077
1081
|
|
|
1078
1082
|
type Space = {
|
|
1079
1083
|
top?: string;
|
|
@@ -1116,7 +1120,7 @@ type Overflow = OverflowValues | {
|
|
|
1116
1120
|
x?: OverflowValues;
|
|
1117
1121
|
y?: OverflowValues;
|
|
1118
1122
|
};
|
|
1119
|
-
type Props$
|
|
1123
|
+
type Props$x = {
|
|
1120
1124
|
/**
|
|
1121
1125
|
* Based on the CSS property background allows configuring all properties related to the background of a container.
|
|
1122
1126
|
*
|
|
@@ -1238,11 +1242,11 @@ type Props$w = {
|
|
|
1238
1242
|
zIndex?: "auto" | number;
|
|
1239
1243
|
};
|
|
1240
1244
|
|
|
1241
|
-
declare const DxcContainer: react.ForwardRefExoticComponent<Props$
|
|
1245
|
+
declare const DxcContainer: react.ForwardRefExoticComponent<Props$x & react.RefAttributes<HTMLDivElement>>;
|
|
1242
1246
|
|
|
1243
|
-
type Props$
|
|
1247
|
+
type Props$w = Omit<Props$K, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1244
1248
|
|
|
1245
|
-
declare function DxcContextualMenu({ items }: Props$
|
|
1249
|
+
declare function DxcContextualMenu({ items }: Props$w): react.JSX.Element;
|
|
1246
1250
|
|
|
1247
1251
|
type Size$2 = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
1248
1252
|
type Option$2 = {
|
|
@@ -1258,8 +1262,12 @@ type Option$2 = {
|
|
|
1258
1262
|
* Option inner value.
|
|
1259
1263
|
*/
|
|
1260
1264
|
value: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Whether the option has a divider below it.
|
|
1267
|
+
*/
|
|
1268
|
+
hasDivider?: boolean;
|
|
1261
1269
|
};
|
|
1262
|
-
type Props$
|
|
1270
|
+
type Props$v = {
|
|
1263
1271
|
/**
|
|
1264
1272
|
* An array of objects representing the options.
|
|
1265
1273
|
*/
|
|
@@ -1342,7 +1350,7 @@ type ActionsCellPropsType = {
|
|
|
1342
1350
|
*/
|
|
1343
1351
|
actions: ActionCell[];
|
|
1344
1352
|
};
|
|
1345
|
-
type Props$
|
|
1353
|
+
type Props$u = {
|
|
1346
1354
|
/**
|
|
1347
1355
|
* The center section of the table. Can be used to render custom
|
|
1348
1356
|
* content in this area.
|
|
@@ -1576,14 +1584,14 @@ type BasicGridProps = {
|
|
|
1576
1584
|
*/
|
|
1577
1585
|
expandable?: false;
|
|
1578
1586
|
};
|
|
1579
|
-
type Props$
|
|
1587
|
+
type Props$t = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
|
|
1580
1588
|
|
|
1581
1589
|
declare const DxcDataGrid: {
|
|
1582
|
-
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$
|
|
1583
|
-
ActionsCell: ({ actions }: ActionsCellPropsType) =>
|
|
1590
|
+
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$t): JSX.Element;
|
|
1591
|
+
ActionsCell: ({ actions }: ActionsCellPropsType) => react.JSX.Element;
|
|
1584
1592
|
};
|
|
1585
1593
|
|
|
1586
|
-
type Props$
|
|
1594
|
+
type Props$s = {
|
|
1587
1595
|
/**
|
|
1588
1596
|
* Initial value of the input element, only when it is uncontrolled.
|
|
1589
1597
|
*/
|
|
@@ -1689,9 +1697,9 @@ type Props$r = {
|
|
|
1689
1697
|
ariaLabel?: string;
|
|
1690
1698
|
};
|
|
1691
1699
|
|
|
1692
|
-
declare const DxcDateInput: react.ForwardRefExoticComponent<Props$
|
|
1700
|
+
declare const DxcDateInput: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLDivElement>>;
|
|
1693
1701
|
|
|
1694
|
-
type Props$
|
|
1702
|
+
type Props$r = {
|
|
1695
1703
|
/**
|
|
1696
1704
|
* If true, the close button will be visible.
|
|
1697
1705
|
*/
|
|
@@ -1731,9 +1739,9 @@ type Props$q = {
|
|
|
1731
1739
|
disableFocusLock?: boolean;
|
|
1732
1740
|
};
|
|
1733
1741
|
|
|
1734
|
-
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: Props$
|
|
1742
|
+
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: Props$r) => JSX.Element;
|
|
1735
1743
|
|
|
1736
|
-
type Props$
|
|
1744
|
+
type Props$q = {
|
|
1737
1745
|
/**
|
|
1738
1746
|
* The divider can be shown in horizontal or vertical.
|
|
1739
1747
|
*/
|
|
@@ -1754,9 +1762,9 @@ type Props$p = {
|
|
|
1754
1762
|
decorative?: boolean;
|
|
1755
1763
|
};
|
|
1756
1764
|
|
|
1757
|
-
declare function DxcDivider({ color, decorative, orientation, weight, }: Props$
|
|
1765
|
+
declare function DxcDivider({ color, decorative, orientation, weight, }: Props$q): react.JSX.Element;
|
|
1758
1766
|
|
|
1759
|
-
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$
|
|
1767
|
+
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$v) => react.JSX.Element;
|
|
1760
1768
|
|
|
1761
1769
|
type FileData = {
|
|
1762
1770
|
/**
|
|
@@ -1866,9 +1874,9 @@ type FileModeProps = CommonProps$5 & {
|
|
|
1866
1874
|
*/
|
|
1867
1875
|
mode?: "file";
|
|
1868
1876
|
};
|
|
1869
|
-
type Props$
|
|
1877
|
+
type Props$p = DropModeProps | FileModeProps;
|
|
1870
1878
|
|
|
1871
|
-
declare const DxcFileInput: react.ForwardRefExoticComponent<Props$
|
|
1879
|
+
declare const DxcFileInput: react.ForwardRefExoticComponent<Props$p & react.RefAttributes<HTMLDivElement>>;
|
|
1872
1880
|
|
|
1873
1881
|
type Gap$1 = {
|
|
1874
1882
|
rowGap: string;
|
|
@@ -1903,7 +1911,7 @@ type CommonProps$4 = {
|
|
|
1903
1911
|
*/
|
|
1904
1912
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
1905
1913
|
};
|
|
1906
|
-
type Props$
|
|
1914
|
+
type Props$o = CommonProps$4 & {
|
|
1907
1915
|
/**
|
|
1908
1916
|
* Sets the flex-direction CSS property.
|
|
1909
1917
|
*
|
|
@@ -1960,7 +1968,7 @@ type Props$n = CommonProps$4 & {
|
|
|
1960
1968
|
children: ReactNode;
|
|
1961
1969
|
};
|
|
1962
1970
|
|
|
1963
|
-
declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: Props$
|
|
1971
|
+
declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: Props$o) => react.JSX.Element;
|
|
1964
1972
|
|
|
1965
1973
|
type Gap = string | {
|
|
1966
1974
|
columnGap?: string;
|
|
@@ -2018,7 +2026,7 @@ type GridItemProps = {
|
|
|
2018
2026
|
*/
|
|
2019
2027
|
row?: number | string | GridCell;
|
|
2020
2028
|
};
|
|
2021
|
-
type Props$
|
|
2029
|
+
type Props$n = GridItemProps & {
|
|
2022
2030
|
/**
|
|
2023
2031
|
* Sets the grid-auto-columns CSS property.
|
|
2024
2032
|
*
|
|
@@ -2076,14 +2084,14 @@ type Props$m = GridItemProps & {
|
|
|
2076
2084
|
};
|
|
2077
2085
|
|
|
2078
2086
|
declare const DxcGrid: {
|
|
2079
|
-
(props: Props$
|
|
2087
|
+
(props: Props$n): react.JSX.Element;
|
|
2080
2088
|
Item: _emotion_styled.StyledComponent<{
|
|
2081
2089
|
theme?: _emotion_react.Theme;
|
|
2082
2090
|
as?: React.ElementType;
|
|
2083
2091
|
} & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2084
2092
|
};
|
|
2085
2093
|
|
|
2086
|
-
type Props$
|
|
2094
|
+
type Props$m = {
|
|
2087
2095
|
/**
|
|
2088
2096
|
* Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
|
|
2089
2097
|
* The html tag of the heading will be the one specified in the 'as' prop.
|
|
@@ -2109,11 +2117,11 @@ type Props$l = {
|
|
|
2109
2117
|
margin?: Space$1 | Margin;
|
|
2110
2118
|
};
|
|
2111
2119
|
|
|
2112
|
-
declare function DxcHeading({ as, level, margin, text, weight }: Props$
|
|
2120
|
+
declare function DxcHeading({ as, level, margin, text, weight }: Props$m): react.JSX.Element;
|
|
2113
2121
|
|
|
2114
|
-
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$
|
|
2122
|
+
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$B): react.JSX.Element;
|
|
2115
2123
|
|
|
2116
|
-
type Props$
|
|
2124
|
+
type Props$l = {
|
|
2117
2125
|
/**
|
|
2118
2126
|
* Applies the spacing scale to the bottom side.
|
|
2119
2127
|
*/
|
|
@@ -2148,7 +2156,7 @@ type Props$k = {
|
|
|
2148
2156
|
vertical?: string;
|
|
2149
2157
|
};
|
|
2150
2158
|
|
|
2151
|
-
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$
|
|
2159
|
+
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$l): react.JSX.Element;
|
|
2152
2160
|
|
|
2153
2161
|
type LinkProps = {
|
|
2154
2162
|
/**
|
|
@@ -2197,6 +2205,121 @@ type LinkProps = {
|
|
|
2197
2205
|
|
|
2198
2206
|
declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
2199
2207
|
|
|
2208
|
+
type SelectOption = {
|
|
2209
|
+
label?: string;
|
|
2210
|
+
value: string;
|
|
2211
|
+
onSelect: (value: string) => void;
|
|
2212
|
+
selected?: boolean;
|
|
2213
|
+
};
|
|
2214
|
+
type Props$k = {
|
|
2215
|
+
/**
|
|
2216
|
+
* If true, the voice recording button will be shown.
|
|
2217
|
+
*/
|
|
2218
|
+
allowRecording?: boolean;
|
|
2219
|
+
/**
|
|
2220
|
+
* This function will be called when the selection of top items changes.
|
|
2221
|
+
* If this function is provided the message input will allow file selection.
|
|
2222
|
+
*/
|
|
2223
|
+
callbackFile?: (files: File[]) => void;
|
|
2224
|
+
/**
|
|
2225
|
+
* Initial value of the input, only when it is uncontrolled.
|
|
2226
|
+
*/
|
|
2227
|
+
defaultValue?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* If true, the component will be disabled.
|
|
2230
|
+
*/
|
|
2231
|
+
disabled?: boolean;
|
|
2232
|
+
/**
|
|
2233
|
+
* If it is a defined value and also a truthy string, the component will
|
|
2234
|
+
* change its appearance, showing the error below the input component. If
|
|
2235
|
+
* the defined value is an empty string, it will reserve a space below
|
|
2236
|
+
* the component for a future error, but it would not change its look. In
|
|
2237
|
+
* case of being undefined or null, both the appearance and the space for
|
|
2238
|
+
* the error message would not be modified.
|
|
2239
|
+
*/
|
|
2240
|
+
error?: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* Items to be shown at the top.
|
|
2243
|
+
*/
|
|
2244
|
+
files?: File[];
|
|
2245
|
+
/**
|
|
2246
|
+
* If true, it indicates that a request is being processed after the user submits a query.
|
|
2247
|
+
*/
|
|
2248
|
+
isGenerating?: boolean;
|
|
2249
|
+
/**
|
|
2250
|
+
* Specifies the maximum length allowed by the input.
|
|
2251
|
+
* This will be checked both when the input element loses the
|
|
2252
|
+
* focus and while typing within it. If the string entered does not
|
|
2253
|
+
* comply the maximum length, the onBlur and onChange functions will be called
|
|
2254
|
+
* with the current value and an internal error informing that the value
|
|
2255
|
+
* length does not comply the specified range. If a valid length is
|
|
2256
|
+
* reached, the error parameter of both events will not be defined.
|
|
2257
|
+
*/
|
|
2258
|
+
maxLength?: number;
|
|
2259
|
+
/**
|
|
2260
|
+
* Specifies the minimum length allowed by the input.
|
|
2261
|
+
* This will be checked both when the input element loses the
|
|
2262
|
+
* focus and while typing within it. If the string entered does not
|
|
2263
|
+
* comply the minimum length, the onBlur and onChange functions will be called
|
|
2264
|
+
* with the current value and an internal error informing that the value
|
|
2265
|
+
* length does not comply the specified range. If a valid length is
|
|
2266
|
+
* reached, the error parameter of both events will not be defined.
|
|
2267
|
+
*/
|
|
2268
|
+
minLength?: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Options to be shown on the dropdown under the input.
|
|
2271
|
+
*/
|
|
2272
|
+
selectOptions?: SelectOption[];
|
|
2273
|
+
/**
|
|
2274
|
+
* This function will be called when the input element loses the focus.
|
|
2275
|
+
* An object including the input value and the error (if the value
|
|
2276
|
+
* entered is not valid) will be passed to this function. If there is no error,
|
|
2277
|
+
* error will not be defined.
|
|
2278
|
+
*/
|
|
2279
|
+
onBlur?: (val: {
|
|
2280
|
+
value: string;
|
|
2281
|
+
error?: string;
|
|
2282
|
+
}) => void;
|
|
2283
|
+
/**
|
|
2284
|
+
* This function will be called when the user types within the input
|
|
2285
|
+
* element of the component. An object including the current value and
|
|
2286
|
+
* the error (if the value entered is not valid) will be passed to this
|
|
2287
|
+
* function. If there is no error, error will not be defined.
|
|
2288
|
+
*/
|
|
2289
|
+
onChange?: (val: {
|
|
2290
|
+
value: string;
|
|
2291
|
+
error?: string;
|
|
2292
|
+
}) => void;
|
|
2293
|
+
/**
|
|
2294
|
+
* This function will be called when the user clicks on the button (submit or stop) or presses enter.
|
|
2295
|
+
* The type parameter indicates whether it's a "submit" or "stop" event. For submit events, "value", "files" and "selectedOption" are provided.
|
|
2296
|
+
*/
|
|
2297
|
+
onButtonClick?: (val: {
|
|
2298
|
+
type: "submit" | "stop";
|
|
2299
|
+
value?: string;
|
|
2300
|
+
files?: File[];
|
|
2301
|
+
selectedOption?: SelectOption;
|
|
2302
|
+
}) => void;
|
|
2303
|
+
/**
|
|
2304
|
+
* Text to be put as placeholder of the input.
|
|
2305
|
+
*/
|
|
2306
|
+
placeholder?: string;
|
|
2307
|
+
/**
|
|
2308
|
+
* Specifies the size of the component. The size will affect the width of the input.
|
|
2309
|
+
*/
|
|
2310
|
+
size?: "small" | "medium" | "large" | "fillParent";
|
|
2311
|
+
/**
|
|
2312
|
+
* Value of the tabindex attribute.
|
|
2313
|
+
*/
|
|
2314
|
+
tabIndex?: number;
|
|
2315
|
+
/**
|
|
2316
|
+
* Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
2317
|
+
*/
|
|
2318
|
+
value?: string;
|
|
2319
|
+
};
|
|
2320
|
+
|
|
2321
|
+
declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }: Props$k) => react.JSX.Element;
|
|
2322
|
+
|
|
2200
2323
|
type TabProps$1 = {
|
|
2201
2324
|
/**
|
|
2202
2325
|
* Whether the tab is active or not.
|
|
@@ -2422,7 +2545,7 @@ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, t
|
|
|
2422
2545
|
|
|
2423
2546
|
declare function DxcParagraph({ children }: {
|
|
2424
2547
|
children: ReactNode;
|
|
2425
|
-
}):
|
|
2548
|
+
}): react.JSX.Element;
|
|
2426
2549
|
|
|
2427
2550
|
type Props$g = {
|
|
2428
2551
|
/**
|
|
@@ -2548,15 +2671,21 @@ type PopoverPropsType = {
|
|
|
2548
2671
|
/** Callback function when the popover is opened.
|
|
2549
2672
|
* Used only in controlled mode and if the trigger lacks the events to manage the controlled behavior. */
|
|
2550
2673
|
onOpen?: () => void;
|
|
2674
|
+
/** Callback function when the popover is opened and the focus is set to the first focusable element inside the popover.
|
|
2675
|
+
* */
|
|
2676
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
2551
2677
|
/** Callback function when the popover is closed. */
|
|
2552
2678
|
onClose?: () => void;
|
|
2679
|
+
/** Callback function when the popover is closed and the focus is set back to the trigger element.
|
|
2680
|
+
* */
|
|
2681
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2553
2682
|
/** Content to be displayed inside the popover. */
|
|
2554
2683
|
popoverContent: React.ReactNode;
|
|
2555
2684
|
/** Side of the trigger where the popover will appear. */
|
|
2556
2685
|
side?: "top" | "bottom" | "left" | "right";
|
|
2557
2686
|
};
|
|
2558
2687
|
|
|
2559
|
-
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onClose, popoverContent, side, }: PopoverPropsType) => JSX.Element;
|
|
2688
|
+
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }: PopoverPropsType) => JSX.Element;
|
|
2560
2689
|
|
|
2561
2690
|
type Size$1 = {
|
|
2562
2691
|
top?: Space$1;
|
|
@@ -2621,7 +2750,7 @@ type Props$e = {
|
|
|
2621
2750
|
links: Link[];
|
|
2622
2751
|
};
|
|
2623
2752
|
|
|
2624
|
-
declare function DxcQuickNav({ links, title }: Props$e):
|
|
2753
|
+
declare function DxcQuickNav({ links, title }: Props$e): react.JSX.Element;
|
|
2625
2754
|
|
|
2626
2755
|
type Option$1 = {
|
|
2627
2756
|
/**
|
|
@@ -2825,8 +2954,8 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2825
2954
|
type Props$d = PaginatedProps | NonPaginatedProps;
|
|
2826
2955
|
|
|
2827
2956
|
declare const DxcResultsetTable: {
|
|
2828
|
-
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$d):
|
|
2829
|
-
ActionsCell: ({ actions }: ActionsCellPropsType) =>
|
|
2957
|
+
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$d): react.JSX.Element;
|
|
2958
|
+
ActionsCell: ({ actions }: ActionsCellPropsType) => react.JSX.Element;
|
|
2830
2959
|
};
|
|
2831
2960
|
|
|
2832
2961
|
type ListOptionType = {
|
|
@@ -3136,7 +3265,7 @@ type Props$a = {
|
|
|
3136
3265
|
value?: number;
|
|
3137
3266
|
};
|
|
3138
3267
|
|
|
3139
|
-
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$a) =>
|
|
3268
|
+
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$a) => react.JSX.Element;
|
|
3140
3269
|
|
|
3141
3270
|
type Mode = "default" | "info" | "success" | "warning" | "error";
|
|
3142
3271
|
type Size = "small" | "medium" | "large";
|
|
@@ -3155,7 +3284,7 @@ type Props$9 = {
|
|
|
3155
3284
|
size?: Size;
|
|
3156
3285
|
};
|
|
3157
3286
|
|
|
3158
|
-
declare function DxcStatusLight({ label, mode, size }: Props$9):
|
|
3287
|
+
declare function DxcStatusLight({ label, mode, size }: Props$9): react.JSX.Element;
|
|
3159
3288
|
|
|
3160
3289
|
type Props$8 = {
|
|
3161
3290
|
/**
|
|
@@ -3219,8 +3348,8 @@ type Props$8 = {
|
|
|
3219
3348
|
declare const DxcSwitch: react.ForwardRefExoticComponent<Props$8 & react.RefAttributes<HTMLDivElement>>;
|
|
3220
3349
|
|
|
3221
3350
|
declare const DxcTable: {
|
|
3222
|
-
({ children, margin, mode }: Props$
|
|
3223
|
-
ActionsCell: ({ actions }: ActionsCellPropsType) =>
|
|
3351
|
+
({ children, margin, mode }: Props$u): react.JSX.Element;
|
|
3352
|
+
ActionsCell: ({ actions }: ActionsCellPropsType) => react.JSX.Element;
|
|
3224
3353
|
};
|
|
3225
3354
|
|
|
3226
3355
|
type CommonTabProps = {
|
|
@@ -3264,7 +3393,7 @@ type TabsProps = {
|
|
|
3264
3393
|
type Props$7 = TabsProps;
|
|
3265
3394
|
|
|
3266
3395
|
declare const DxcTabs: {
|
|
3267
|
-
({ children, iconPosition, margin, tabIndex }: Props$7):
|
|
3396
|
+
({ children, iconPosition, margin, tabIndex }: Props$7): react.JSX.Element;
|
|
3268
3397
|
Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3269
3398
|
};
|
|
3270
3399
|
|
|
@@ -3717,7 +3846,7 @@ type ToastsQueuePropsType = {
|
|
|
3717
3846
|
duration?: number;
|
|
3718
3847
|
};
|
|
3719
3848
|
|
|
3720
|
-
declare function DxcToastsQueue({ children, duration }: ToastsQueuePropsType):
|
|
3849
|
+
declare function DxcToastsQueue({ children, duration }: ToastsQueuePropsType): react.JSX.Element;
|
|
3721
3850
|
|
|
3722
3851
|
type OptionIcon = {
|
|
3723
3852
|
/**
|
|
@@ -3820,7 +3949,7 @@ type SingleSelectionToggleGroup = {
|
|
|
3820
3949
|
};
|
|
3821
3950
|
type Props$3 = CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup);
|
|
3822
3951
|
|
|
3823
|
-
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: Props$3):
|
|
3952
|
+
declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: Props$3): react.JSX.Element;
|
|
3824
3953
|
|
|
3825
3954
|
type Props$2 = {
|
|
3826
3955
|
/**
|
|
@@ -3837,7 +3966,7 @@ type Props$2 = {
|
|
|
3837
3966
|
position?: "bottom" | "top" | "left" | "right";
|
|
3838
3967
|
};
|
|
3839
3968
|
|
|
3840
|
-
declare const DxcTooltip: (props: Props$2) =>
|
|
3969
|
+
declare const DxcTooltip: (props: Props$2) => react.JSX.Element;
|
|
3841
3970
|
|
|
3842
3971
|
type Props$1 = {
|
|
3843
3972
|
as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
|
|
@@ -3856,7 +3985,7 @@ type Props$1 = {
|
|
|
3856
3985
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
3857
3986
|
};
|
|
3858
3987
|
|
|
3859
|
-
declare function DxcTypography({ children, ...props }: Props$1):
|
|
3988
|
+
declare function DxcTypography({ children, ...props }: Props$1): react.JSX.Element;
|
|
3860
3989
|
|
|
3861
3990
|
type StepProps = {
|
|
3862
3991
|
/**
|
|
@@ -3913,7 +4042,7 @@ type Props = {
|
|
|
3913
4042
|
tabIndex?: number;
|
|
3914
4043
|
};
|
|
3915
4044
|
|
|
3916
|
-
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: Props):
|
|
4045
|
+
declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: Props): react.JSX.Element;
|
|
3917
4046
|
|
|
3918
4047
|
declare const defaultTranslatedComponentLabels: {
|
|
3919
4048
|
applicationLayout: {
|
|
@@ -3966,6 +4095,14 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3966
4095
|
closeIcon: string;
|
|
3967
4096
|
hamburgerTitle: string;
|
|
3968
4097
|
};
|
|
4098
|
+
messageInput: {
|
|
4099
|
+
inputAriaLabel: string;
|
|
4100
|
+
sendButtonTitle: string;
|
|
4101
|
+
stopButtonTitle: string;
|
|
4102
|
+
attachFileButtonTitle: string;
|
|
4103
|
+
recordAudioButtonTitle: string;
|
|
4104
|
+
stopRecordingButtonTitle: string;
|
|
4105
|
+
};
|
|
3969
4106
|
numberInput: {
|
|
3970
4107
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
3971
4108
|
valueLessThanOrEqualToErrorMessage: (value: number) => string;
|
|
@@ -4080,6 +4217,14 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
4080
4217
|
closeIcon: string;
|
|
4081
4218
|
hamburgerTitle: string;
|
|
4082
4219
|
};
|
|
4220
|
+
messageInput: {
|
|
4221
|
+
inputAriaLabel: string;
|
|
4222
|
+
sendButtonTitle: string;
|
|
4223
|
+
stopButtonTitle: string;
|
|
4224
|
+
attachFileButtonTitle: string;
|
|
4225
|
+
recordAudioButtonTitle: string;
|
|
4226
|
+
stopRecordingButtonTitle: string;
|
|
4227
|
+
};
|
|
4083
4228
|
numberInput: {
|
|
4084
4229
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
4085
4230
|
valueLessThanOrEqualToErrorMessage: (value: number) => string;
|
|
@@ -4153,4 +4298,4 @@ declare function useToast(): {
|
|
|
4153
4298
|
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
4154
4299
|
};
|
|
4155
4300
|
|
|
4156
|
-
export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcAvatar, DxcBadge, DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcPopover, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTextInput, DxcTextarea, DxcTimeInput, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackLanguageContext, HalstackProvider, useToast };
|
|
4301
|
+
export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcAvatar, DxcBadge, DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, DxcInset, DxcLink, DxcMessageInput, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcPopover, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTextInput, DxcTextarea, DxcTimeInput, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackLanguageContext, HalstackProvider, useToast };
|