@dxc-technology/halstack-react 16.1.0 → 17.0.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/README.md +1 -1
- package/dist/index.d.mts +433 -179
- package/dist/index.d.ts +433 -179
- package/dist/index.js +4057 -2446
- package/dist/index.mjs +3938 -2329
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ type AccordionItemProps = {
|
|
|
59
59
|
*/
|
|
60
60
|
tabIndex?: number;
|
|
61
61
|
};
|
|
62
|
-
type CommonProps$
|
|
62
|
+
type CommonProps$a = {
|
|
63
63
|
/**
|
|
64
64
|
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
65
65
|
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
@@ -70,7 +70,7 @@ type CommonProps$9 = {
|
|
|
70
70
|
*/
|
|
71
71
|
children: ReactElement<AccordionItemProps>[] | ReactElement<AccordionItemProps>;
|
|
72
72
|
};
|
|
73
|
-
type IndependentProps = CommonProps$
|
|
73
|
+
type IndependentProps = CommonProps$a & {
|
|
74
74
|
/**
|
|
75
75
|
* When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
|
|
76
76
|
*/
|
|
@@ -91,7 +91,7 @@ type IndependentProps = CommonProps$9 & {
|
|
|
91
91
|
*/
|
|
92
92
|
onActiveChange?: (index: number) => void;
|
|
93
93
|
};
|
|
94
|
-
type NonIndependentProps = CommonProps$
|
|
94
|
+
type NonIndependentProps = CommonProps$a & {
|
|
95
95
|
/**
|
|
96
96
|
* When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
|
|
97
97
|
*/
|
|
@@ -112,10 +112,10 @@ type NonIndependentProps = CommonProps$9 & {
|
|
|
112
112
|
*/
|
|
113
113
|
onActiveChange?: (index: number[]) => void;
|
|
114
114
|
};
|
|
115
|
-
type Props$
|
|
115
|
+
type Props$L = IndependentProps | NonIndependentProps;
|
|
116
116
|
|
|
117
117
|
declare const DxcAccordion: {
|
|
118
|
-
(props: Props$
|
|
118
|
+
(props: Props$L): JSX.Element;
|
|
119
119
|
AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -145,7 +145,7 @@ type Message = {
|
|
|
145
145
|
*/
|
|
146
146
|
text: ReactNode;
|
|
147
147
|
};
|
|
148
|
-
type CommonProps$
|
|
148
|
+
type CommonProps$9 = {
|
|
149
149
|
/**
|
|
150
150
|
* If true, the alert will have a close button that will remove the message from the alert,
|
|
151
151
|
* only in banner and inline modes. The rest of the functionality will depend
|
|
@@ -198,9 +198,40 @@ type ModeSpecificProps = {
|
|
|
198
198
|
*/
|
|
199
199
|
mode: "modal";
|
|
200
200
|
};
|
|
201
|
-
type Props$
|
|
201
|
+
type Props$K = CommonProps$9 & ModeSpecificProps;
|
|
202
202
|
|
|
203
|
-
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$
|
|
203
|
+
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$K) => react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
type SearchBarProps = {
|
|
206
|
+
/**
|
|
207
|
+
* If true, the search bar input will be focused when rendered.
|
|
208
|
+
*/
|
|
209
|
+
autoFocus?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* If true, the component will be disabled.
|
|
212
|
+
*/
|
|
213
|
+
disabled?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Function invoked when the search bar loses focus.
|
|
216
|
+
*/
|
|
217
|
+
onBlur?: (value: string) => void;
|
|
218
|
+
/**
|
|
219
|
+
* Function invoked when the user cancels the search.
|
|
220
|
+
*/
|
|
221
|
+
onCancel?: () => void;
|
|
222
|
+
/**
|
|
223
|
+
* Function invoked when the user changes the input value.
|
|
224
|
+
*/
|
|
225
|
+
onChange?: (value: string) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Function invoked when the Enter key is pressed.
|
|
228
|
+
*/
|
|
229
|
+
onEnter?: (value: string) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Placeholder text displayed in the search bar input field.
|
|
232
|
+
*/
|
|
233
|
+
placeholder?: string;
|
|
234
|
+
};
|
|
204
235
|
|
|
205
236
|
type CommonItemProps = {
|
|
206
237
|
badge?: ReactElement;
|
|
@@ -217,12 +248,13 @@ type Item$1 = CommonItemProps & {
|
|
|
217
248
|
};
|
|
218
249
|
type GroupItem$1 = CommonItemProps & {
|
|
219
250
|
items: (Item$1 | GroupItem$1)[];
|
|
251
|
+
defaultOpen?: boolean;
|
|
220
252
|
};
|
|
221
253
|
type Section$1 = {
|
|
222
254
|
items: (Item$1 | GroupItem$1)[];
|
|
223
255
|
title?: string;
|
|
224
256
|
};
|
|
225
|
-
type Props$
|
|
257
|
+
type Props$J = {
|
|
226
258
|
/**
|
|
227
259
|
* Array of items to be displayed in the menu.
|
|
228
260
|
* Each item can be a single/simple item, a group item or a section.
|
|
@@ -254,7 +286,8 @@ type Section = {
|
|
|
254
286
|
items: (Item$1 | GroupItem$1)[];
|
|
255
287
|
title?: string;
|
|
256
288
|
};
|
|
257
|
-
type
|
|
289
|
+
type SearchbarSidenavProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
|
|
290
|
+
type Props$I = {
|
|
258
291
|
/**
|
|
259
292
|
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
260
293
|
*/
|
|
@@ -285,6 +318,10 @@ type Props$H = {
|
|
|
285
318
|
* Function called when the expansion state of the sidenav changes.
|
|
286
319
|
*/
|
|
287
320
|
onExpandedChange?: (value: boolean) => void;
|
|
321
|
+
/**
|
|
322
|
+
* When provided, a search bar will be rendered at the top of the sidenav.
|
|
323
|
+
*/
|
|
324
|
+
searchBar?: SearchbarSidenavProps;
|
|
288
325
|
/**
|
|
289
326
|
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
290
327
|
*/
|
|
@@ -295,10 +332,12 @@ type GroupItem = CommonItemProps & {
|
|
|
295
332
|
items: Item$1[];
|
|
296
333
|
};
|
|
297
334
|
type MainNavPropsType = (GroupItem | Item$1)[];
|
|
298
|
-
type
|
|
335
|
+
type SearchBarHeaderProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
|
|
336
|
+
type Props$H = {
|
|
299
337
|
appTitle?: string;
|
|
300
338
|
navItems?: MainNavPropsType;
|
|
301
339
|
responsiveBottomContent?: ReactNode;
|
|
340
|
+
searchBar?: SearchBarHeaderProps;
|
|
302
341
|
sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
|
|
303
342
|
};
|
|
304
343
|
|
|
@@ -426,9 +465,9 @@ type ApplicationLayoutPropsType = {
|
|
|
426
465
|
declare const DxcApplicationLayout: {
|
|
427
466
|
({ logo, header, sidenav, footer, children }: ApplicationLayoutPropsType): JSX.Element;
|
|
428
467
|
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
|
|
429
|
-
Header: ({ appTitle, navItems, sideContent,
|
|
468
|
+
Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: Props$H) => JSX.Element;
|
|
430
469
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
431
|
-
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, }: Props$
|
|
470
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: Props$I) => JSX.Element;
|
|
432
471
|
};
|
|
433
472
|
|
|
434
473
|
type Size$5 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
@@ -438,7 +477,7 @@ interface Status {
|
|
|
438
477
|
mode: "default" | "info" | "success" | "warning" | "error";
|
|
439
478
|
position: "top" | "bottom";
|
|
440
479
|
}
|
|
441
|
-
type Props$
|
|
480
|
+
type Props$G = {
|
|
442
481
|
/**
|
|
443
482
|
* Affects the visual style of the avatar. It can be used following semantic purposes or not.
|
|
444
483
|
*/
|
|
@@ -499,7 +538,7 @@ type Props$F = {
|
|
|
499
538
|
title?: string;
|
|
500
539
|
};
|
|
501
540
|
|
|
502
|
-
declare const DxcAvatar: react.MemoExoticComponent<({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, secondaryText, shape, size, status, tabIndex, title, }: Props$
|
|
541
|
+
declare const DxcAvatar: react.MemoExoticComponent<({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, secondaryText, shape, size, status, tabIndex, title, }: Props$G) => react_jsx_runtime.JSX.Element>;
|
|
503
542
|
|
|
504
543
|
type ContextualProps = {
|
|
505
544
|
/**
|
|
@@ -537,7 +576,7 @@ type NotificationProps = {
|
|
|
537
576
|
*/
|
|
538
577
|
color?: never;
|
|
539
578
|
};
|
|
540
|
-
type CommonProps$
|
|
579
|
+
type CommonProps$8 = {
|
|
541
580
|
/**
|
|
542
581
|
* Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
|
|
543
582
|
*/
|
|
@@ -551,11 +590,11 @@ type CommonProps$7 = {
|
|
|
551
590
|
*/
|
|
552
591
|
size?: "small" | "medium" | "large";
|
|
553
592
|
};
|
|
554
|
-
type Props$
|
|
593
|
+
type Props$F = (ContextualProps | NotificationProps) & CommonProps$8;
|
|
555
594
|
|
|
556
|
-
declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$
|
|
595
|
+
declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$F) => JSX.Element;
|
|
557
596
|
|
|
558
|
-
type Props$
|
|
597
|
+
type Props$E = {
|
|
559
598
|
/**
|
|
560
599
|
* Applies the spacing scale to all sides.
|
|
561
600
|
*/
|
|
@@ -590,13 +629,13 @@ type Props$D = {
|
|
|
590
629
|
children: ReactNode;
|
|
591
630
|
};
|
|
592
631
|
|
|
593
|
-
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$
|
|
632
|
+
declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: Props$E) => react_jsx_runtime.JSX.Element;
|
|
594
633
|
|
|
595
634
|
type Item = {
|
|
596
635
|
href?: string;
|
|
597
636
|
label: string;
|
|
598
637
|
};
|
|
599
|
-
type Props$
|
|
638
|
+
type Props$D = {
|
|
600
639
|
/**
|
|
601
640
|
* Provides a label that describes the type of navigation enabled by
|
|
602
641
|
* the component.
|
|
@@ -628,7 +667,7 @@ type Props$C = {
|
|
|
628
667
|
showRoot?: boolean;
|
|
629
668
|
};
|
|
630
669
|
|
|
631
|
-
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$
|
|
670
|
+
declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
632
671
|
|
|
633
672
|
type IconProps = {
|
|
634
673
|
/**
|
|
@@ -658,7 +697,7 @@ type OtherProps = {
|
|
|
658
697
|
*/
|
|
659
698
|
children: ReactNode;
|
|
660
699
|
};
|
|
661
|
-
type Props$
|
|
700
|
+
type Props$C = IconProps | OtherProps;
|
|
662
701
|
type BulletedListItemPropsType = {
|
|
663
702
|
/**
|
|
664
703
|
* Text to be shown in the list.
|
|
@@ -667,7 +706,7 @@ type BulletedListItemPropsType = {
|
|
|
667
706
|
};
|
|
668
707
|
|
|
669
708
|
declare const DxcBulletedList: {
|
|
670
|
-
({ children, type, icon }: Props$
|
|
709
|
+
({ children, type, icon }: Props$C): JSX.Element;
|
|
671
710
|
Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
|
|
672
711
|
};
|
|
673
712
|
|
|
@@ -680,7 +719,7 @@ type Size$4 = {
|
|
|
680
719
|
height?: "small" | "medium" | "large";
|
|
681
720
|
width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
682
721
|
};
|
|
683
|
-
type Props$
|
|
722
|
+
type Props$B = {
|
|
684
723
|
/**
|
|
685
724
|
* Text to be placed in the button.
|
|
686
725
|
*/
|
|
@@ -732,69 +771,167 @@ type Props$A = {
|
|
|
732
771
|
tabIndex?: number;
|
|
733
772
|
};
|
|
734
773
|
|
|
735
|
-
declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$
|
|
774
|
+
declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$B) => JSX.Element;
|
|
775
|
+
|
|
776
|
+
type Props$A = {
|
|
777
|
+
/**
|
|
778
|
+
* Alternative text description displayed when the specified image is not loaded.
|
|
779
|
+
*
|
|
780
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
|
|
781
|
+
* See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
|
|
782
|
+
*/
|
|
783
|
+
alt: string;
|
|
784
|
+
/**
|
|
785
|
+
* Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
|
|
786
|
+
* which is required regardless of the presence of the caption or not.
|
|
787
|
+
*/
|
|
788
|
+
caption?: string;
|
|
789
|
+
/**
|
|
790
|
+
* Sets the rendered height of the image.
|
|
791
|
+
*/
|
|
792
|
+
height?: string;
|
|
793
|
+
/**
|
|
794
|
+
* If true, the image will be loaded only when it is visible on the screen (lazy loading).
|
|
795
|
+
* Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
|
|
796
|
+
*/
|
|
797
|
+
lazyLoading?: boolean;
|
|
798
|
+
/**
|
|
799
|
+
* Sets the object-fit CSS property.
|
|
800
|
+
*
|
|
801
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
|
|
802
|
+
*/
|
|
803
|
+
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
804
|
+
/**
|
|
805
|
+
* Sets the object-position CSS property.
|
|
806
|
+
*
|
|
807
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
|
|
808
|
+
*/
|
|
809
|
+
objectPosition?: string;
|
|
810
|
+
/**
|
|
811
|
+
* This function will be called when the image fails to load.
|
|
812
|
+
*/
|
|
813
|
+
onError?: ReactEventHandler<HTMLImageElement>;
|
|
814
|
+
/**
|
|
815
|
+
* This function will be called when the image is loaded.
|
|
816
|
+
*/
|
|
817
|
+
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
818
|
+
/**
|
|
819
|
+
* One or more strings separated by commas, indicating a set of source sizes.
|
|
820
|
+
* If the srcSet attribute is absent or contains no values with a width descriptor,
|
|
821
|
+
* then this attribute has no effect.
|
|
822
|
+
*
|
|
823
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
|
|
824
|
+
*/
|
|
825
|
+
sizes?: string;
|
|
826
|
+
/**
|
|
827
|
+
* URL of the image. This prop is required and must be valid.
|
|
828
|
+
*/
|
|
829
|
+
src: string;
|
|
830
|
+
/**
|
|
831
|
+
* List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
|
|
832
|
+
*
|
|
833
|
+
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
|
|
834
|
+
*/
|
|
835
|
+
srcSet?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Sets the rendered width of the image.
|
|
838
|
+
*/
|
|
839
|
+
width?: string;
|
|
840
|
+
};
|
|
736
841
|
|
|
737
842
|
type Size$3 = {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
left?: Space$1;
|
|
741
|
-
right?: Space$1;
|
|
843
|
+
width?: "fillParent" | "fitContent";
|
|
844
|
+
height?: "fillParent" | "fitContent";
|
|
742
845
|
};
|
|
743
846
|
type Props$z = {
|
|
744
847
|
/**
|
|
745
|
-
*
|
|
746
|
-
* In case of omission, the image container will not appear and
|
|
747
|
-
* the content will occupy its space.
|
|
848
|
+
* Custom content that will be placed inside the component.
|
|
748
849
|
*/
|
|
749
|
-
|
|
850
|
+
children?: ReactNode;
|
|
851
|
+
/**
|
|
852
|
+
* Initial state of the checkbox, only when it is uncontrolled.
|
|
853
|
+
*/
|
|
854
|
+
defaultSelected?: boolean;
|
|
855
|
+
/**
|
|
856
|
+
* Defines the direction of the content inside the card. It can be set to "row" or "column". The default value is "column".
|
|
857
|
+
*/
|
|
858
|
+
direction?: "row" | "column";
|
|
750
859
|
/**
|
|
751
|
-
*
|
|
860
|
+
* Defines the size of the card when it is empty.
|
|
752
861
|
*/
|
|
753
|
-
|
|
862
|
+
emptySize?: {
|
|
863
|
+
width?: string;
|
|
864
|
+
height?: string;
|
|
865
|
+
iconSize?: "small" | "medium" | "large";
|
|
866
|
+
};
|
|
754
867
|
/**
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
* and 'right' properties in order to specify different padding sizes.
|
|
868
|
+
* URL to navigate to when the card is clicked.
|
|
869
|
+
* If href is defined selectable will be ignored and the link will be always considered as an anchor.
|
|
758
870
|
*/
|
|
759
|
-
|
|
871
|
+
href?: string;
|
|
760
872
|
/**
|
|
761
|
-
*
|
|
873
|
+
* Image to be displayed inside the card.
|
|
874
|
+
*/
|
|
875
|
+
image?: Props$A;
|
|
876
|
+
/**
|
|
877
|
+
* Position of the image inside the card. It can be set to "before" or "after" the content.
|
|
762
878
|
*/
|
|
763
879
|
imagePosition?: "before" | "after";
|
|
764
880
|
/**
|
|
765
|
-
* If
|
|
766
|
-
* as "href". Component will show some visual feedback on hover.
|
|
881
|
+
* If true, the card will be displayed as empty state.
|
|
767
882
|
*/
|
|
768
|
-
|
|
883
|
+
isEmpty?: boolean;
|
|
769
884
|
/**
|
|
770
|
-
*
|
|
771
|
-
* will show some visual feedback on hover.
|
|
885
|
+
* If true, a loading state will be displayed inside the card.
|
|
772
886
|
*/
|
|
773
|
-
|
|
887
|
+
isLoading?: boolean;
|
|
774
888
|
/**
|
|
775
|
-
*
|
|
889
|
+
* Defines the size of the loading card when isLoading is true.
|
|
776
890
|
*/
|
|
777
|
-
|
|
891
|
+
loadingSize?: {
|
|
892
|
+
width?: string;
|
|
893
|
+
height?: string;
|
|
894
|
+
};
|
|
778
895
|
/**
|
|
779
|
-
*
|
|
780
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
896
|
+
* Defines the visual style of the card. It can be set to "elevated" or "outlined".
|
|
781
897
|
*/
|
|
782
|
-
|
|
898
|
+
mode?: "elevated" | "outlined";
|
|
783
899
|
/**
|
|
784
|
-
*
|
|
900
|
+
* If true, the link will open in a new window. href must be provided for this to work.
|
|
785
901
|
*/
|
|
786
|
-
|
|
902
|
+
newWindow?: boolean;
|
|
787
903
|
/**
|
|
788
|
-
*
|
|
904
|
+
* Callback function that is called when the card is clicked.
|
|
905
|
+
* It receives a boolean value indicating whether the card is selected or not.
|
|
906
|
+
* selectable must be true for this to work.
|
|
789
907
|
*/
|
|
790
|
-
|
|
908
|
+
onSelectionChange?: (selected: boolean) => void;
|
|
791
909
|
/**
|
|
792
|
-
*
|
|
910
|
+
* Callback function that is called when the card is clicked.
|
|
793
911
|
*/
|
|
794
|
-
|
|
912
|
+
onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
|
|
913
|
+
/**
|
|
914
|
+
* If true, the card can be selected. When the card is clicked, the onSelectionChange callback will be called with the new selected state of the card.
|
|
915
|
+
* If href is defined, the card won't be selectable, even if this prop is true.
|
|
916
|
+
*/
|
|
917
|
+
selectable?: boolean;
|
|
918
|
+
/**
|
|
919
|
+
* If true, the card is selected and if defined it will behave as a controlled component.
|
|
920
|
+
*/
|
|
921
|
+
selected?: boolean;
|
|
922
|
+
/**
|
|
923
|
+
* Defines the size of the card. Width and height can be set to "fillParent" or "fitContent".
|
|
924
|
+
* The default value is { width: "fitContent", height: "fitContent" }.
|
|
925
|
+
*/
|
|
926
|
+
size?: Size$3;
|
|
927
|
+
/**
|
|
928
|
+
* Specifies the tab index of the card.
|
|
929
|
+
* The default value is 0.
|
|
930
|
+
*/
|
|
931
|
+
tabIndex?: number;
|
|
795
932
|
};
|
|
796
933
|
|
|
797
|
-
declare const DxcCard:
|
|
934
|
+
declare const DxcCard: react.ForwardRefExoticComponent<Props$z & react.RefAttributes<HTMLAnchorElement>>;
|
|
798
935
|
|
|
799
936
|
type Props$y = {
|
|
800
937
|
/**
|
|
@@ -863,43 +1000,80 @@ type Props$y = {
|
|
|
863
1000
|
|
|
864
1001
|
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
|
|
865
1002
|
|
|
866
|
-
type
|
|
1003
|
+
type ChipAvatarType = {
|
|
1004
|
+
color: Props$G["color"];
|
|
1005
|
+
profileName?: Props$G["label"];
|
|
1006
|
+
imageSrc?: Props$G["imageSrc"];
|
|
1007
|
+
icon?: Props$G["icon"];
|
|
1008
|
+
};
|
|
1009
|
+
type CommonProps$7 = {
|
|
867
1010
|
/**
|
|
868
|
-
*
|
|
1011
|
+
* Function to be called when the chip is clicked or the dismiss action is triggered.
|
|
869
1012
|
*/
|
|
870
|
-
|
|
1013
|
+
onClick?: () => void;
|
|
1014
|
+
/**
|
|
1015
|
+
* Value of the tabindex attribute.
|
|
1016
|
+
*/
|
|
1017
|
+
tabIndex?: number;
|
|
1018
|
+
};
|
|
1019
|
+
type SelectableChipProps = CommonProps$7 & {
|
|
1020
|
+
/**
|
|
1021
|
+
* If true, the component will be disabled.
|
|
1022
|
+
*/
|
|
1023
|
+
disabled?: boolean;
|
|
1024
|
+
/**
|
|
1025
|
+
* The whole chip is an interactive element that allows users to activate or clear options directly within the interface.
|
|
1026
|
+
*/
|
|
1027
|
+
mode?: "selectable";
|
|
1028
|
+
/**
|
|
1029
|
+
* If true, the component will be selected. This property is only applicable when the mode is "selectable".
|
|
1030
|
+
* If undefined, the component manages its own internal state (uncontrolled mode).
|
|
1031
|
+
*/
|
|
1032
|
+
selected?: boolean;
|
|
1033
|
+
} & ({
|
|
1034
|
+
/**
|
|
1035
|
+
* Element, path or avatar used as icon to be placed before the chip label.
|
|
1036
|
+
*/
|
|
1037
|
+
prefix: ChipAvatarType;
|
|
871
1038
|
/**
|
|
872
|
-
*
|
|
1039
|
+
* Text to be placed on the chip. Required when using an avatar prefix.
|
|
873
1040
|
*/
|
|
874
|
-
|
|
1041
|
+
label: string;
|
|
1042
|
+
} | {
|
|
875
1043
|
/**
|
|
876
1044
|
* Element or path used as icon to be placed before the chip label.
|
|
877
1045
|
*/
|
|
878
|
-
|
|
1046
|
+
prefix: string | SVG;
|
|
879
1047
|
/**
|
|
880
|
-
*
|
|
1048
|
+
* Text to be placed on the chip. Optional when using an icon prefix.
|
|
881
1049
|
*/
|
|
882
|
-
|
|
1050
|
+
label?: string;
|
|
1051
|
+
} | {
|
|
1052
|
+
prefix?: undefined;
|
|
883
1053
|
/**
|
|
884
|
-
*
|
|
1054
|
+
* Text to be placed on the chip.
|
|
885
1055
|
*/
|
|
886
|
-
|
|
1056
|
+
label: string;
|
|
1057
|
+
});
|
|
1058
|
+
type DismissibleChipProps = CommonProps$7 & {
|
|
887
1059
|
/**
|
|
888
|
-
*
|
|
1060
|
+
* Dismissible chip is used to represent information generated by user input within an interface.
|
|
889
1061
|
*/
|
|
890
|
-
|
|
1062
|
+
mode: "dismissible";
|
|
891
1063
|
/**
|
|
892
|
-
*
|
|
893
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
1064
|
+
* Text to be placed on the chip.
|
|
894
1065
|
*/
|
|
895
|
-
|
|
1066
|
+
label: string;
|
|
896
1067
|
/**
|
|
897
|
-
*
|
|
1068
|
+
* Element, path or avatar used as icon to be placed before the chip label.
|
|
898
1069
|
*/
|
|
899
|
-
|
|
1070
|
+
prefix?: string | SVG | ChipAvatarType;
|
|
1071
|
+
selected?: never;
|
|
1072
|
+
disabled?: never;
|
|
900
1073
|
};
|
|
1074
|
+
type Props$x = SelectableChipProps | DismissibleChipProps;
|
|
901
1075
|
|
|
902
|
-
declare const DxcChip: ({
|
|
1076
|
+
declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, }: Props$x) => react_jsx_runtime.JSX.Element | null;
|
|
903
1077
|
|
|
904
1078
|
type Space = {
|
|
905
1079
|
top?: string;
|
|
@@ -1066,7 +1240,7 @@ type Props$w = {
|
|
|
1066
1240
|
|
|
1067
1241
|
declare const DxcContainer: react.ForwardRefExoticComponent<Props$w & react.RefAttributes<HTMLDivElement>>;
|
|
1068
1242
|
|
|
1069
|
-
type Props$v = Omit<Props$
|
|
1243
|
+
type Props$v = Omit<Props$J, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1070
1244
|
|
|
1071
1245
|
declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
|
|
1072
1246
|
|
|
@@ -1937,75 +2111,9 @@ type Props$l = {
|
|
|
1937
2111
|
|
|
1938
2112
|
declare function DxcHeading({ as, level, margin, text, weight }: Props$l): react_jsx_runtime.JSX.Element;
|
|
1939
2113
|
|
|
1940
|
-
|
|
1941
|
-
/**
|
|
1942
|
-
* Alternative text description displayed when the specified image is not loaded.
|
|
1943
|
-
*
|
|
1944
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
|
|
1945
|
-
* See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
|
|
1946
|
-
*/
|
|
1947
|
-
alt: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
|
|
1950
|
-
* which is required regardless of the presence of the caption or not.
|
|
1951
|
-
*/
|
|
1952
|
-
caption?: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* Sets the rendered height of the image.
|
|
1955
|
-
*/
|
|
1956
|
-
height?: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* If true, the image will be loaded only when it is visible on the screen (lazy loading).
|
|
1959
|
-
* Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
|
|
1960
|
-
*/
|
|
1961
|
-
lazyLoading?: boolean;
|
|
1962
|
-
/**
|
|
1963
|
-
* Sets the object-fit CSS property.
|
|
1964
|
-
*
|
|
1965
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
|
|
1966
|
-
*/
|
|
1967
|
-
objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
1968
|
-
/**
|
|
1969
|
-
* Sets the object-position CSS property.
|
|
1970
|
-
*
|
|
1971
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
|
|
1972
|
-
*/
|
|
1973
|
-
objectPosition?: string;
|
|
1974
|
-
/**
|
|
1975
|
-
* This function will be called when the image fails to load.
|
|
1976
|
-
*/
|
|
1977
|
-
onError?: ReactEventHandler<HTMLImageElement>;
|
|
1978
|
-
/**
|
|
1979
|
-
* This function will be called when the image is loaded.
|
|
1980
|
-
*/
|
|
1981
|
-
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
1982
|
-
/**
|
|
1983
|
-
* One or more strings separated by commas, indicating a set of source sizes.
|
|
1984
|
-
* If the srcSet attribute is absent or contains no values with a width descriptor,
|
|
1985
|
-
* then this attribute has no effect.
|
|
1986
|
-
*
|
|
1987
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
|
|
1988
|
-
*/
|
|
1989
|
-
sizes?: string;
|
|
1990
|
-
/**
|
|
1991
|
-
* URL of the image. This prop is required and must be valid.
|
|
1992
|
-
*/
|
|
1993
|
-
src: string;
|
|
1994
|
-
/**
|
|
1995
|
-
* List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
|
|
1996
|
-
*
|
|
1997
|
-
* See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
|
|
1998
|
-
*/
|
|
1999
|
-
srcSet?: string;
|
|
2000
|
-
/**
|
|
2001
|
-
* Sets the rendered width of the image.
|
|
2002
|
-
*/
|
|
2003
|
-
width?: string;
|
|
2004
|
-
};
|
|
2005
|
-
|
|
2006
|
-
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$k): react_jsx_runtime.JSX.Element;
|
|
2114
|
+
declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$A): react_jsx_runtime.JSX.Element;
|
|
2007
2115
|
|
|
2008
|
-
type Props$
|
|
2116
|
+
type Props$k = {
|
|
2009
2117
|
/**
|
|
2010
2118
|
* Applies the spacing scale to the bottom side.
|
|
2011
2119
|
*/
|
|
@@ -2040,7 +2148,7 @@ type Props$j = {
|
|
|
2040
2148
|
vertical?: string;
|
|
2041
2149
|
};
|
|
2042
2150
|
|
|
2043
|
-
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$
|
|
2151
|
+
declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$k): react_jsx_runtime.JSX.Element;
|
|
2044
2152
|
|
|
2045
2153
|
type LinkProps = {
|
|
2046
2154
|
/**
|
|
@@ -2123,7 +2231,7 @@ type TabProps$1 = {
|
|
|
2123
2231
|
*/
|
|
2124
2232
|
notificationNumber?: boolean | number;
|
|
2125
2233
|
};
|
|
2126
|
-
type Props$
|
|
2234
|
+
type Props$j = {
|
|
2127
2235
|
/**
|
|
2128
2236
|
* Contains one or more DxcNavTabs.Tab.
|
|
2129
2237
|
*/
|
|
@@ -2139,11 +2247,11 @@ type Props$i = {
|
|
|
2139
2247
|
};
|
|
2140
2248
|
|
|
2141
2249
|
declare const DxcNavTabs: {
|
|
2142
|
-
({ iconPosition, tabIndex, children }: Props$
|
|
2250
|
+
({ iconPosition, tabIndex, children }: Props$j): JSX.Element;
|
|
2143
2251
|
Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
2144
2252
|
};
|
|
2145
2253
|
|
|
2146
|
-
type Props$
|
|
2254
|
+
type Props$i = {
|
|
2147
2255
|
/**
|
|
2148
2256
|
* Text to be placed above the number.
|
|
2149
2257
|
*/
|
|
@@ -2270,9 +2378,9 @@ type Props$h = {
|
|
|
2270
2378
|
showControls?: boolean;
|
|
2271
2379
|
};
|
|
2272
2380
|
|
|
2273
|
-
declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$
|
|
2381
|
+
declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLDivElement>>;
|
|
2274
2382
|
|
|
2275
|
-
type Props$
|
|
2383
|
+
type Props$h = {
|
|
2276
2384
|
/**
|
|
2277
2385
|
* Number of the current selected page.
|
|
2278
2386
|
*/
|
|
@@ -2310,13 +2418,13 @@ type Props$g = {
|
|
|
2310
2418
|
tabIndex?: number;
|
|
2311
2419
|
};
|
|
2312
2420
|
|
|
2313
|
-
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$
|
|
2421
|
+
declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$h) => JSX.Element;
|
|
2314
2422
|
|
|
2315
2423
|
declare function DxcParagraph({ children }: {
|
|
2316
2424
|
children: ReactNode;
|
|
2317
2425
|
}): react_jsx_runtime.JSX.Element;
|
|
2318
2426
|
|
|
2319
|
-
type Props$
|
|
2427
|
+
type Props$g = {
|
|
2320
2428
|
/**
|
|
2321
2429
|
* Text to be placed above the password input.
|
|
2322
2430
|
*/
|
|
@@ -2420,7 +2528,35 @@ type Props$f = {
|
|
|
2420
2528
|
ariaLabel?: string;
|
|
2421
2529
|
};
|
|
2422
2530
|
|
|
2423
|
-
declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$
|
|
2531
|
+
declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
|
|
2532
|
+
|
|
2533
|
+
type PopoverPropsType = {
|
|
2534
|
+
/** Action that triggers the popover to open. */
|
|
2535
|
+
actionToOpen?: "click" | "hover";
|
|
2536
|
+
/** Alignment of the popover relative to the trigger element. */
|
|
2537
|
+
align?: "start" | "center" | "end";
|
|
2538
|
+
/** Set to true if child controls the events. It will render the child directly without wrapping it. */
|
|
2539
|
+
asChild?: boolean;
|
|
2540
|
+
/** Element that triggers the popover and works as the anchor. */
|
|
2541
|
+
children: React.ReactNode;
|
|
2542
|
+
/** Whether the popover should display a tip (arrow). */
|
|
2543
|
+
hasTip?: boolean;
|
|
2544
|
+
/** Controlled open state of the popover. If it is left undefined, it will be uncontrolled. */
|
|
2545
|
+
isOpen?: boolean;
|
|
2546
|
+
/** Distance in pixels from the trigger element to the popover. */
|
|
2547
|
+
offset?: number;
|
|
2548
|
+
/** Callback function when the popover is opened.
|
|
2549
|
+
* Used only in controlled mode and if the trigger lacks the events to manage the controlled behavior. */
|
|
2550
|
+
onOpen?: () => void;
|
|
2551
|
+
/** Callback function when the popover is closed. */
|
|
2552
|
+
onClose?: () => void;
|
|
2553
|
+
/** Content to be displayed inside the popover. */
|
|
2554
|
+
popoverContent: React.ReactNode;
|
|
2555
|
+
/** Side of the trigger where the popover will appear. */
|
|
2556
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onClose, popoverContent, side, }: PopoverPropsType) => JSX.Element;
|
|
2424
2560
|
|
|
2425
2561
|
type Size$1 = {
|
|
2426
2562
|
top?: Space$1;
|
|
@@ -2428,7 +2564,7 @@ type Size$1 = {
|
|
|
2428
2564
|
left?: Space$1;
|
|
2429
2565
|
right?: Space$1;
|
|
2430
2566
|
};
|
|
2431
|
-
type Props$
|
|
2567
|
+
type Props$f = {
|
|
2432
2568
|
/**
|
|
2433
2569
|
* Text to be placed above the progress bar.
|
|
2434
2570
|
*/
|
|
@@ -2462,7 +2598,7 @@ type Props$e = {
|
|
|
2462
2598
|
ariaLabel?: string;
|
|
2463
2599
|
};
|
|
2464
2600
|
|
|
2465
|
-
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: Props$
|
|
2601
|
+
declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: Props$f) => JSX.Element;
|
|
2466
2602
|
|
|
2467
2603
|
type Link = {
|
|
2468
2604
|
/**
|
|
@@ -2474,7 +2610,7 @@ type Link = {
|
|
|
2474
2610
|
*/
|
|
2475
2611
|
links?: Link[];
|
|
2476
2612
|
};
|
|
2477
|
-
type Props$
|
|
2613
|
+
type Props$e = {
|
|
2478
2614
|
/**
|
|
2479
2615
|
* Title of the quick nav component.
|
|
2480
2616
|
*/
|
|
@@ -2485,7 +2621,7 @@ type Props$d = {
|
|
|
2485
2621
|
links: Link[];
|
|
2486
2622
|
};
|
|
2487
2623
|
|
|
2488
|
-
declare function DxcQuickNav({ links, title }: Props$
|
|
2624
|
+
declare function DxcQuickNav({ links, title }: Props$e): react_jsx_runtime.JSX.Element;
|
|
2489
2625
|
|
|
2490
2626
|
type Option$1 = {
|
|
2491
2627
|
/**
|
|
@@ -2686,10 +2822,10 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2686
2822
|
*/
|
|
2687
2823
|
showGoToPage?: never;
|
|
2688
2824
|
};
|
|
2689
|
-
type Props$
|
|
2825
|
+
type Props$d = PaginatedProps | NonPaginatedProps;
|
|
2690
2826
|
|
|
2691
2827
|
declare const DxcResultsetTable: {
|
|
2692
|
-
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$
|
|
2828
|
+
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$d): react_jsx_runtime.JSX.Element;
|
|
2693
2829
|
ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
|
|
2694
2830
|
};
|
|
2695
2831
|
|
|
@@ -2881,11 +3017,11 @@ type MultipleSelect = CommonProps$2 & {
|
|
|
2881
3017
|
*/
|
|
2882
3018
|
value?: string[];
|
|
2883
3019
|
};
|
|
2884
|
-
type Props$
|
|
3020
|
+
type Props$c = SingleSelect | MultipleSelect;
|
|
2885
3021
|
|
|
2886
|
-
declare const DxcSelect: react.ForwardRefExoticComponent<Props$
|
|
3022
|
+
declare const DxcSelect: react.ForwardRefExoticComponent<Props$c & react.RefAttributes<HTMLDivElement>>;
|
|
2887
3023
|
|
|
2888
|
-
type Props$
|
|
3024
|
+
type Props$b = {
|
|
2889
3025
|
/**
|
|
2890
3026
|
* Specifies a string to be used as the name for the slider element when no `label` is provided.
|
|
2891
3027
|
*/
|
|
@@ -2964,9 +3100,9 @@ type Props$a = {
|
|
|
2964
3100
|
value?: number;
|
|
2965
3101
|
};
|
|
2966
3102
|
|
|
2967
|
-
declare const DxcSlider: react.ForwardRefExoticComponent<Props$
|
|
3103
|
+
declare const DxcSlider: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
|
|
2968
3104
|
|
|
2969
|
-
type Props$
|
|
3105
|
+
type Props$a = {
|
|
2970
3106
|
/**
|
|
2971
3107
|
* Specifies a string to be used as the name for the spinner element when no `label` is provided or the `mode` is set to small.
|
|
2972
3108
|
*/
|
|
@@ -3000,11 +3136,11 @@ type Props$9 = {
|
|
|
3000
3136
|
value?: number;
|
|
3001
3137
|
};
|
|
3002
3138
|
|
|
3003
|
-
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$
|
|
3139
|
+
declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
3004
3140
|
|
|
3005
3141
|
type Mode = "default" | "info" | "success" | "warning" | "error";
|
|
3006
3142
|
type Size = "small" | "medium" | "large";
|
|
3007
|
-
type Props$
|
|
3143
|
+
type Props$9 = {
|
|
3008
3144
|
/**
|
|
3009
3145
|
* It will define the color of the light based on its semantic meaning.
|
|
3010
3146
|
*/
|
|
@@ -3019,9 +3155,9 @@ type Props$8 = {
|
|
|
3019
3155
|
size?: Size;
|
|
3020
3156
|
};
|
|
3021
3157
|
|
|
3022
|
-
declare function DxcStatusLight({ label, mode, size }: Props$
|
|
3158
|
+
declare function DxcStatusLight({ label, mode, size }: Props$9): react_jsx_runtime.JSX.Element;
|
|
3023
3159
|
|
|
3024
|
-
type Props$
|
|
3160
|
+
type Props$8 = {
|
|
3025
3161
|
/**
|
|
3026
3162
|
* Specifies a string to be used as the name for the switch element when no `label` is provided.
|
|
3027
3163
|
*/
|
|
@@ -3080,7 +3216,7 @@ type Props$7 = {
|
|
|
3080
3216
|
value?: string;
|
|
3081
3217
|
};
|
|
3082
3218
|
|
|
3083
|
-
declare const DxcSwitch: react.ForwardRefExoticComponent<Props$
|
|
3219
|
+
declare const DxcSwitch: react.ForwardRefExoticComponent<Props$8 & react.RefAttributes<HTMLDivElement>>;
|
|
3084
3220
|
|
|
3085
3221
|
declare const DxcTable: {
|
|
3086
3222
|
({ children, margin, mode }: Props$t): react_jsx_runtime.JSX.Element;
|
|
@@ -3125,14 +3261,14 @@ type TabsProps = {
|
|
|
3125
3261
|
*/
|
|
3126
3262
|
children?: ReactNode;
|
|
3127
3263
|
};
|
|
3128
|
-
type Props$
|
|
3264
|
+
type Props$7 = TabsProps;
|
|
3129
3265
|
|
|
3130
3266
|
declare const DxcTabs: {
|
|
3131
|
-
({ children, iconPosition, margin, tabIndex }: Props$
|
|
3267
|
+
({ children, iconPosition, margin, tabIndex }: Props$7): react_jsx_runtime.JSX.Element;
|
|
3132
3268
|
Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3133
3269
|
};
|
|
3134
3270
|
|
|
3135
|
-
type Props$
|
|
3271
|
+
type Props$6 = {
|
|
3136
3272
|
/**
|
|
3137
3273
|
* Specifies a string to be used as the name for the textarea element when no `label` is provided.
|
|
3138
3274
|
*/
|
|
@@ -3266,7 +3402,7 @@ type Props$5 = {
|
|
|
3266
3402
|
verticalGrow?: "auto" | "manual" | "none";
|
|
3267
3403
|
};
|
|
3268
3404
|
|
|
3269
|
-
declare const DxcTextarea: react.ForwardRefExoticComponent<Props$
|
|
3405
|
+
declare const DxcTextarea: react.ForwardRefExoticComponent<Props$6 & react.RefAttributes<HTMLDivElement>>;
|
|
3270
3406
|
|
|
3271
3407
|
type Action$1 = {
|
|
3272
3408
|
/**
|
|
@@ -3284,7 +3420,7 @@ type Action$1 = {
|
|
|
3284
3420
|
*/
|
|
3285
3421
|
title?: string;
|
|
3286
3422
|
};
|
|
3287
|
-
type Props$
|
|
3423
|
+
type Props$5 = {
|
|
3288
3424
|
/**
|
|
3289
3425
|
* Sets the alignment inside the input.
|
|
3290
3426
|
*/
|
|
@@ -3437,7 +3573,96 @@ type Props$4 = {
|
|
|
3437
3573
|
ariaLabel?: string;
|
|
3438
3574
|
};
|
|
3439
3575
|
|
|
3440
|
-
declare const DxcTextInput: react.ForwardRefExoticComponent<Props$
|
|
3576
|
+
declare const DxcTextInput: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
|
|
3577
|
+
|
|
3578
|
+
type Props$4 = {
|
|
3579
|
+
/**
|
|
3580
|
+
* Specifies a string to be used as the name for the timeInput element when no `label` is provided.
|
|
3581
|
+
*/
|
|
3582
|
+
ariaLabel?: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* If true, the input will have an action to clear the entered value.
|
|
3585
|
+
*/
|
|
3586
|
+
clearable?: boolean;
|
|
3587
|
+
/**
|
|
3588
|
+
* Initial value of the input, only when it is uncontrolled.
|
|
3589
|
+
*/
|
|
3590
|
+
defaultValue?: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* If true, the component will be disabled.
|
|
3593
|
+
*/
|
|
3594
|
+
disabled?: boolean;
|
|
3595
|
+
/**
|
|
3596
|
+
* If it is a defined value and also a truthy string, the component will
|
|
3597
|
+
* change its appearance, showing the error below the input component. If
|
|
3598
|
+
* the defined value is an empty string, it will reserve a space below
|
|
3599
|
+
* the component for a future error, but it would not change its look. In
|
|
3600
|
+
* case of being undefined or null, both the appearance and the space for
|
|
3601
|
+
* the error message would not be modified.
|
|
3602
|
+
*/
|
|
3603
|
+
error?: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* Helper text to be placed above the input.
|
|
3606
|
+
*/
|
|
3607
|
+
helperText?: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* Text to be placed above the input.
|
|
3610
|
+
*/
|
|
3611
|
+
label?: string;
|
|
3612
|
+
/**
|
|
3613
|
+
* Name attribute of the input element.
|
|
3614
|
+
*/
|
|
3615
|
+
name?: string;
|
|
3616
|
+
/**
|
|
3617
|
+
* This function will be called when the input element loses the focus.
|
|
3618
|
+
* An object including the input value and the error (if the value
|
|
3619
|
+
* entered is not valid) will be passed to this function. If there is no error,
|
|
3620
|
+
* error will not be defined.
|
|
3621
|
+
*/
|
|
3622
|
+
onBlur?: (val: {
|
|
3623
|
+
value: string;
|
|
3624
|
+
error?: string;
|
|
3625
|
+
}) => void;
|
|
3626
|
+
/**
|
|
3627
|
+
* This function will be called when the user types within the input
|
|
3628
|
+
* or selects a value in the dropdown element of the component.
|
|
3629
|
+
*/
|
|
3630
|
+
onChange?: (value: string) => void;
|
|
3631
|
+
/**
|
|
3632
|
+
* If true, the input will be optional, showing '(Optional)'
|
|
3633
|
+
* next to the label. Otherwise, the field will be considered required and an error will be
|
|
3634
|
+
* passed as a parameter to the OnBlur function when it has
|
|
3635
|
+
* not been filled.
|
|
3636
|
+
*/
|
|
3637
|
+
optional?: boolean;
|
|
3638
|
+
/**
|
|
3639
|
+
* If true, the component will not be mutable, meaning the user can not edit the control.
|
|
3640
|
+
* In addition, the clear action will not be displayed even if the flag is set to true.
|
|
3641
|
+
*/
|
|
3642
|
+
readOnly?: boolean;
|
|
3643
|
+
/**
|
|
3644
|
+
* If true, the component will display seconds and allow the user to input them. Otherwise, seconds will not be shown and the user will not be able to input them.
|
|
3645
|
+
*/
|
|
3646
|
+
showSeconds?: boolean;
|
|
3647
|
+
/**
|
|
3648
|
+
* Size of the component.
|
|
3649
|
+
*/
|
|
3650
|
+
size?: "small" | "medium" | "large" | "fillParent";
|
|
3651
|
+
/**
|
|
3652
|
+
* Value of the tabindex attribute.
|
|
3653
|
+
*/
|
|
3654
|
+
tabIndex?: number;
|
|
3655
|
+
/**
|
|
3656
|
+
* Time format of the input. It can be either 12 or 24.
|
|
3657
|
+
*/
|
|
3658
|
+
timeFormat?: "12" | "24";
|
|
3659
|
+
/**
|
|
3660
|
+
* Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
|
|
3661
|
+
*/
|
|
3662
|
+
value?: string;
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3665
|
+
declare const DxcTimeInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
|
|
3441
3666
|
|
|
3442
3667
|
type Action = {
|
|
3443
3668
|
/**
|
|
@@ -3706,8 +3931,12 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3706
3931
|
previousMonthTitle: string;
|
|
3707
3932
|
nextMonthTitle: string;
|
|
3708
3933
|
};
|
|
3934
|
+
card: {
|
|
3935
|
+
noContent: string;
|
|
3936
|
+
};
|
|
3709
3937
|
dateInput: {
|
|
3710
3938
|
invalidDateErrorMessage: string;
|
|
3939
|
+
datePickerActionTitle: string;
|
|
3711
3940
|
};
|
|
3712
3941
|
dialog: {
|
|
3713
3942
|
closeIconAriaLabel: string;
|
|
@@ -3763,6 +3992,12 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3763
3992
|
radioGroup: {
|
|
3764
3993
|
optionalItemLabelDefault: string;
|
|
3765
3994
|
};
|
|
3995
|
+
searchBar: {
|
|
3996
|
+
clearFieldActionTitle: string;
|
|
3997
|
+
inputAriaLabel: string;
|
|
3998
|
+
triggerTitle: string;
|
|
3999
|
+
cancelButtonLabel: string;
|
|
4000
|
+
};
|
|
3766
4001
|
select: {
|
|
3767
4002
|
actionClearSelectionTitle: string;
|
|
3768
4003
|
actionClearSearchTitle: string;
|
|
@@ -3778,6 +4013,9 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
3778
4013
|
searchingMessage: string;
|
|
3779
4014
|
fetchingDataErrorMessage: string;
|
|
3780
4015
|
};
|
|
4016
|
+
timeInput: {
|
|
4017
|
+
timePickerActionTitle: string;
|
|
4018
|
+
};
|
|
3781
4019
|
toast: {
|
|
3782
4020
|
clearToastActionTitle: string;
|
|
3783
4021
|
};
|
|
@@ -3807,8 +4045,12 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
3807
4045
|
previousMonthTitle: string;
|
|
3808
4046
|
nextMonthTitle: string;
|
|
3809
4047
|
};
|
|
4048
|
+
card: {
|
|
4049
|
+
noContent: string;
|
|
4050
|
+
};
|
|
3810
4051
|
dateInput: {
|
|
3811
4052
|
invalidDateErrorMessage: string;
|
|
4053
|
+
datePickerActionTitle: string;
|
|
3812
4054
|
};
|
|
3813
4055
|
dialog: {
|
|
3814
4056
|
closeIconAriaLabel: string;
|
|
@@ -3864,6 +4106,12 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
3864
4106
|
radioGroup: {
|
|
3865
4107
|
optionalItemLabelDefault: string;
|
|
3866
4108
|
};
|
|
4109
|
+
searchBar: {
|
|
4110
|
+
clearFieldActionTitle: string;
|
|
4111
|
+
inputAriaLabel: string;
|
|
4112
|
+
triggerTitle: string;
|
|
4113
|
+
cancelButtonLabel: string;
|
|
4114
|
+
};
|
|
3867
4115
|
select: {
|
|
3868
4116
|
actionClearSelectionTitle: string;
|
|
3869
4117
|
actionClearSearchTitle: string;
|
|
@@ -3879,11 +4127,17 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
3879
4127
|
searchingMessage: string;
|
|
3880
4128
|
fetchingDataErrorMessage: string;
|
|
3881
4129
|
};
|
|
4130
|
+
timeInput: {
|
|
4131
|
+
timePickerActionTitle: string;
|
|
4132
|
+
};
|
|
3882
4133
|
toast: {
|
|
3883
4134
|
clearToastActionTitle: string;
|
|
3884
4135
|
};
|
|
3885
4136
|
}>;
|
|
3886
|
-
type ThemeType =
|
|
4137
|
+
type ThemeType = {
|
|
4138
|
+
tokens?: Record<string, string | number>;
|
|
4139
|
+
logos?: Record<string, string | undefined>;
|
|
4140
|
+
};
|
|
3887
4141
|
type HalstackProviderPropsType = {
|
|
3888
4142
|
labels?: DeepPartial<TranslatedLabels>;
|
|
3889
4143
|
children: ReactNode;
|
|
@@ -3899,4 +4153,4 @@ declare function useToast(): {
|
|
|
3899
4153
|
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
3900
4154
|
};
|
|
3901
4155
|
|
|
3902
|
-
export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcAvatar, DxcBadge, DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTextInput, DxcTextarea, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackLanguageContext, HalstackProvider, useToast };
|
|
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 };
|