@dxc-technology/halstack-react 0.0.0-162b958 → 0.0.0-163a7b2
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 +179 -118
- package/dist/index.d.ts +179 -118
- package/dist/index.js +3965 -2747
- package/dist/index.mjs +3912 -2695
- package/package.json +40 -31
package/dist/index.d.mts
CHANGED
|
@@ -112,10 +112,10 @@ type NonIndependentProps = CommonProps$9 & {
|
|
|
112
112
|
*/
|
|
113
113
|
onActiveChange?: (index: number[]) => void;
|
|
114
114
|
};
|
|
115
|
-
type Props$
|
|
115
|
+
type Props$J = IndependentProps | NonIndependentProps;
|
|
116
116
|
|
|
117
117
|
declare const DxcAccordion: {
|
|
118
|
-
(props: Props$
|
|
118
|
+
(props: Props$J): JSX.Element;
|
|
119
119
|
AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -198,9 +198,9 @@ type ModeSpecificProps = {
|
|
|
198
198
|
*/
|
|
199
199
|
mode: "modal";
|
|
200
200
|
};
|
|
201
|
-
type Props$
|
|
201
|
+
type Props$I = CommonProps$8 & ModeSpecificProps;
|
|
202
202
|
|
|
203
|
-
declare
|
|
203
|
+
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$I) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
205
|
type SidenavTitlePropsType = {
|
|
206
206
|
/**
|
|
@@ -265,7 +265,7 @@ type SidenavLinkPropsType = {
|
|
|
265
265
|
*/
|
|
266
266
|
tabIndex?: number;
|
|
267
267
|
};
|
|
268
|
-
type Props$
|
|
268
|
+
type Props$H = {
|
|
269
269
|
/**
|
|
270
270
|
* The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
|
|
271
271
|
*/
|
|
@@ -276,7 +276,7 @@ type Props$G = {
|
|
|
276
276
|
children: ReactNode;
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
type Size$
|
|
279
|
+
type Size$5 = "small" | "medium" | "large" | "fillParent" | "fitContent";
|
|
280
280
|
type Option$2 = {
|
|
281
281
|
/**
|
|
282
282
|
* Option display value.
|
|
@@ -291,7 +291,7 @@ type Option$2 = {
|
|
|
291
291
|
*/
|
|
292
292
|
value: string;
|
|
293
293
|
};
|
|
294
|
-
type Props$
|
|
294
|
+
type Props$G = {
|
|
295
295
|
/**
|
|
296
296
|
* An array of objects representing the options.
|
|
297
297
|
*/
|
|
@@ -339,7 +339,7 @@ type Props$F = {
|
|
|
339
339
|
/**
|
|
340
340
|
* Size of the component.
|
|
341
341
|
*/
|
|
342
|
-
size?: Size$
|
|
342
|
+
size?: Size$5;
|
|
343
343
|
/**
|
|
344
344
|
* Value of the tabindex attribute.
|
|
345
345
|
*/
|
|
@@ -365,14 +365,14 @@ type Logo$1 = {
|
|
|
365
365
|
*/
|
|
366
366
|
title?: string;
|
|
367
367
|
};
|
|
368
|
-
type Props$
|
|
368
|
+
type Props$F = {
|
|
369
369
|
/**
|
|
370
370
|
* Whether a contrast line should appear at the bottom of the header.
|
|
371
371
|
*/
|
|
372
372
|
underlined?: boolean;
|
|
373
373
|
/**
|
|
374
374
|
* Content shown in the header. Take into account that the component applies styles
|
|
375
|
-
* for the first child in the content, so we recommend the use of
|
|
375
|
+
* for the first child in the content, so we recommend the use of Fragment
|
|
376
376
|
* to be applied correctly. Otherwise, the styles can be modified.
|
|
377
377
|
*/
|
|
378
378
|
content?: ReactNode;
|
|
@@ -513,12 +513,12 @@ declare const DxcApplicationLayout: {
|
|
|
513
513
|
({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
|
|
514
514
|
Footer: ({ bottomLinks, children, copyright, logo, margin, mode, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
|
|
515
515
|
Header: {
|
|
516
|
-
({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$
|
|
517
|
-
Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$
|
|
516
|
+
({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$F): JSX.Element;
|
|
517
|
+
Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => react_jsx_runtime.JSX.Element>) => react_jsx_runtime.JSX.Element;
|
|
518
518
|
};
|
|
519
519
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
520
520
|
SideNav: {
|
|
521
|
-
({ title, children }: Props$
|
|
521
|
+
({ title, children }: Props$H): JSX.Element;
|
|
522
522
|
Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
|
|
523
523
|
Group: ({ title, collapsable, icon, children }: SidenavGroupPropsType) => JSX.Element;
|
|
524
524
|
Link: react.ForwardRefExoticComponent<SidenavLinkPropsType & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -527,6 +527,68 @@ declare const DxcApplicationLayout: {
|
|
|
527
527
|
useResponsiveSidenavVisibility: () => ((_isSidenavVisible: boolean) => void) | null;
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
+
type Size$4 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
531
|
+
type Shape = "circle" | "square";
|
|
532
|
+
type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
|
|
533
|
+
interface Status {
|
|
534
|
+
mode: "default" | "info" | "success" | "warning" | "error";
|
|
535
|
+
position: "top" | "bottom";
|
|
536
|
+
}
|
|
537
|
+
type Props$E = {
|
|
538
|
+
/**
|
|
539
|
+
* Affects the visual style of the avatar. It can be used following semantic purposes or not.
|
|
540
|
+
*/
|
|
541
|
+
color?: Color;
|
|
542
|
+
/**
|
|
543
|
+
* If true, the component will be disabled.
|
|
544
|
+
*/
|
|
545
|
+
disabled?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Material Symbol name or SVG element as the icon that will be placed as avatar.
|
|
548
|
+
*/
|
|
549
|
+
icon?: string | SVG;
|
|
550
|
+
/**
|
|
551
|
+
* URL of the image.
|
|
552
|
+
*/
|
|
553
|
+
imageSrc?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Text label associated with the avatar.
|
|
556
|
+
* Used to generate and display initials inside the avatar.
|
|
557
|
+
*/
|
|
558
|
+
label?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Page to be opened when the user clicks on the link.
|
|
561
|
+
*/
|
|
562
|
+
linkHref?: string;
|
|
563
|
+
/**
|
|
564
|
+
* This function will be called when the user clicks the avatar. Makes it behave as a button.
|
|
565
|
+
*/
|
|
566
|
+
onClick?: () => void;
|
|
567
|
+
/**
|
|
568
|
+
* This will determine if the avatar will be rounded square or a circle.
|
|
569
|
+
*/
|
|
570
|
+
shape?: Shape;
|
|
571
|
+
/**
|
|
572
|
+
* Size of the component.
|
|
573
|
+
*/
|
|
574
|
+
size?: Size$4;
|
|
575
|
+
/**
|
|
576
|
+
* Defines the color of the status indicator displayed on the avatar and where it will be placed.
|
|
577
|
+
* If not provided, no indicator will be rendered.
|
|
578
|
+
*/
|
|
579
|
+
status?: Status;
|
|
580
|
+
/**
|
|
581
|
+
* Value of the tabindex attribute. It will only apply when the onClick property is passed.
|
|
582
|
+
*/
|
|
583
|
+
tabIndex?: number;
|
|
584
|
+
/**
|
|
585
|
+
* Text to be displayed inside a tooltip when hovering the avatar.
|
|
586
|
+
*/
|
|
587
|
+
title?: string;
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
declare const DxcAvatar: react.MemoExoticComponent<({ color, disabled, icon, imageSrc, label, linkHref, onClick, shape, size, status, tabIndex, title, }: Props$E) => react_jsx_runtime.JSX.Element>;
|
|
591
|
+
|
|
530
592
|
type ContextualProps = {
|
|
531
593
|
/**
|
|
532
594
|
* Text to be placed in the badge.
|
|
@@ -543,7 +605,7 @@ type ContextualProps = {
|
|
|
543
605
|
/**
|
|
544
606
|
* Affects the visual style of the badge. It can be used following semantic purposes or not.
|
|
545
607
|
*/
|
|
546
|
-
color?: "
|
|
608
|
+
color?: "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
|
|
547
609
|
};
|
|
548
610
|
type NotificationProps = {
|
|
549
611
|
/**
|
|
@@ -685,7 +747,6 @@ type OtherProps = {
|
|
|
685
747
|
children: ReactNode;
|
|
686
748
|
};
|
|
687
749
|
type Props$A = IconProps | OtherProps;
|
|
688
|
-
|
|
689
750
|
type BulletedListItemPropsType = {
|
|
690
751
|
/**
|
|
691
752
|
* Text to be shown in the list.
|
|
@@ -1556,7 +1617,7 @@ type Props$p = {
|
|
|
1556
1617
|
|
|
1557
1618
|
declare function DxcDivider({ color, decorative, orientation, weight, }: Props$p): react_jsx_runtime.JSX.Element;
|
|
1558
1619
|
|
|
1559
|
-
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$
|
|
1620
|
+
declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$G) => react_jsx_runtime.JSX.Element;
|
|
1560
1621
|
|
|
1561
1622
|
type FileData = {
|
|
1562
1623
|
/**
|
|
@@ -2010,7 +2071,7 @@ declare function DxcInset({ bottom, children, horizontal, left, right, space, to
|
|
|
2010
2071
|
|
|
2011
2072
|
type LinkProps = {
|
|
2012
2073
|
/**
|
|
2013
|
-
* If true, the link
|
|
2074
|
+
* If true, the link will be disabled.
|
|
2014
2075
|
*/
|
|
2015
2076
|
disabled?: boolean;
|
|
2016
2077
|
/**
|
|
@@ -2065,7 +2126,7 @@ type TabProps$1 = {
|
|
|
2065
2126
|
*/
|
|
2066
2127
|
children: string;
|
|
2067
2128
|
/**
|
|
2068
|
-
*
|
|
2129
|
+
* If true, the tab will be disabled.
|
|
2069
2130
|
*/
|
|
2070
2131
|
disabled?: boolean;
|
|
2071
2132
|
/**
|
|
@@ -2106,7 +2167,7 @@ type Props$i = {
|
|
|
2106
2167
|
|
|
2107
2168
|
declare const DxcNavTabs: {
|
|
2108
2169
|
({ iconPosition, tabIndex, children }: Props$i): JSX.Element;
|
|
2109
|
-
Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
|
|
2170
|
+
Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
2110
2171
|
};
|
|
2111
2172
|
|
|
2112
2173
|
type Props$h = {
|
|
@@ -2583,26 +2644,31 @@ type CommonProps$3 = {
|
|
|
2583
2644
|
* An array of objects representing the columns of the table.
|
|
2584
2645
|
*/
|
|
2585
2646
|
columns: Column[];
|
|
2586
|
-
/**
|
|
2587
|
-
* An array of objects representing the rows of the table, you will have
|
|
2588
|
-
* as many objects as columns in the table.
|
|
2589
|
-
*/
|
|
2590
|
-
rows: Row[];
|
|
2591
2647
|
/**
|
|
2592
2648
|
* Size of the margin to be applied to the component. You can pass an object with 'top',
|
|
2593
2649
|
* 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2594
2650
|
*/
|
|
2595
2651
|
margin?: Space$1 | Margin;
|
|
2596
|
-
/**
|
|
2597
|
-
* Value of the tabindex attribute applied to the sortable icon.
|
|
2598
|
-
*/
|
|
2599
|
-
tabIndex?: number;
|
|
2600
2652
|
/**
|
|
2601
2653
|
* Determines the visual style and layout
|
|
2602
2654
|
* - "default": The default mode with big spacing
|
|
2603
2655
|
* - "reduced": A reduced mode with minimal spacing for dense tables
|
|
2604
2656
|
*/
|
|
2605
2657
|
mode?: "default" | "reduced";
|
|
2658
|
+
/**
|
|
2659
|
+
* An array of objects representing the rows of the table, you will have
|
|
2660
|
+
* as many objects as columns in the table.
|
|
2661
|
+
*/
|
|
2662
|
+
rows: Row[];
|
|
2663
|
+
/**
|
|
2664
|
+
* Value of the tabindex attribute applied to the sortable icon.
|
|
2665
|
+
*/
|
|
2666
|
+
tabIndex?: number;
|
|
2667
|
+
/**
|
|
2668
|
+
* A fixed height must be set to enable virtualization.
|
|
2669
|
+
* If no height is provided, the table will automatically adjust to the height of its content, and virtualization will not be applied.
|
|
2670
|
+
*/
|
|
2671
|
+
virtualizedHeight?: string;
|
|
2606
2672
|
};
|
|
2607
2673
|
type PaginatedProps = CommonProps$3 & {
|
|
2608
2674
|
hidePaginator?: false;
|
|
@@ -2629,10 +2695,6 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2629
2695
|
* If true, paginator will not be displayed.
|
|
2630
2696
|
*/
|
|
2631
2697
|
hidePaginator: true;
|
|
2632
|
-
/**
|
|
2633
|
-
* If true, a select component for navigation between pages will be displayed.
|
|
2634
|
-
*/
|
|
2635
|
-
showGoToPage?: never;
|
|
2636
2698
|
/**
|
|
2637
2699
|
* Number of items per page.
|
|
2638
2700
|
*/
|
|
@@ -2646,11 +2708,15 @@ type NonPaginatedProps = CommonProps$3 & {
|
|
|
2646
2708
|
* option. The value selected will be passed as a parameter.
|
|
2647
2709
|
*/
|
|
2648
2710
|
itemsPerPageFunction?: never;
|
|
2711
|
+
/**
|
|
2712
|
+
* If true, a select component for navigation between pages will be displayed.
|
|
2713
|
+
*/
|
|
2714
|
+
showGoToPage?: never;
|
|
2649
2715
|
};
|
|
2650
2716
|
type Props$c = PaginatedProps | NonPaginatedProps;
|
|
2651
2717
|
|
|
2652
2718
|
declare const DxcResultsetTable: {
|
|
2653
|
-
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, }: Props$c): react_jsx_runtime.JSX.Element;
|
|
2719
|
+
({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: Props$c): react_jsx_runtime.JSX.Element;
|
|
2654
2720
|
ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
|
|
2655
2721
|
};
|
|
2656
2722
|
|
|
@@ -2685,33 +2751,43 @@ type ListOptionGroupType = {
|
|
|
2685
2751
|
};
|
|
2686
2752
|
type CommonProps$2 = {
|
|
2687
2753
|
/**
|
|
2688
|
-
*
|
|
2754
|
+
* Specifies a string to be used as the name for the select element when no `label` is provided.
|
|
2689
2755
|
*/
|
|
2690
|
-
|
|
2756
|
+
ariaLabel?: string;
|
|
2691
2757
|
/**
|
|
2692
|
-
*
|
|
2693
|
-
* to find the component's value during the submit event. In this event,
|
|
2694
|
-
* the component's value will always be a regular string, for both single
|
|
2695
|
-
* and multiple selection modes, being a single option value in the first case
|
|
2696
|
-
* and more than one value when multiple selection is available, separated by commas.
|
|
2758
|
+
* If true, the component will be disabled.
|
|
2697
2759
|
*/
|
|
2698
|
-
|
|
2760
|
+
disabled?: boolean;
|
|
2699
2761
|
/**
|
|
2700
|
-
*
|
|
2762
|
+
* If it is a defined value and also a truthy string, the component will
|
|
2763
|
+
* change its appearance, showing the error below the select component.
|
|
2764
|
+
* If the defined value is an empty string, it will reserve a space below
|
|
2765
|
+
* the component for a future error, but it would not change its look. In
|
|
2766
|
+
* case of being undefined or null, both the appearance and the space for
|
|
2767
|
+
* the error message would not be modified.
|
|
2701
2768
|
*/
|
|
2702
|
-
|
|
2769
|
+
error?: string;
|
|
2703
2770
|
/**
|
|
2704
2771
|
* Helper text to be placed above the select.
|
|
2705
2772
|
*/
|
|
2706
2773
|
helperText?: string;
|
|
2707
2774
|
/**
|
|
2708
|
-
* Text to be
|
|
2775
|
+
* Text to be placed above the select.
|
|
2709
2776
|
*/
|
|
2710
|
-
|
|
2777
|
+
label?: string;
|
|
2711
2778
|
/**
|
|
2712
|
-
*
|
|
2779
|
+
* Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
|
|
2780
|
+
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2713
2781
|
*/
|
|
2714
|
-
|
|
2782
|
+
margin?: Space$1 | Margin;
|
|
2783
|
+
/**
|
|
2784
|
+
* Name attribute of the input element. This attribute will allow users
|
|
2785
|
+
* to find the component's value during the submit event. In this event,
|
|
2786
|
+
* the component's value will always be a regular string, for both single
|
|
2787
|
+
* and multiple selection modes, being a single option value in the first case
|
|
2788
|
+
* and more than one value when multiple selection is available, separated by commas.
|
|
2789
|
+
*/
|
|
2790
|
+
name?: string;
|
|
2715
2791
|
/**
|
|
2716
2792
|
* If true, the select will be optional, showing '(Optional)'
|
|
2717
2793
|
* next to the label and adding a default first option with an empty string as value,
|
|
@@ -2721,23 +2797,17 @@ type CommonProps$2 = {
|
|
|
2721
2797
|
*/
|
|
2722
2798
|
optional?: boolean;
|
|
2723
2799
|
/**
|
|
2724
|
-
*
|
|
2800
|
+
* An array of objects representing the selectable options.
|
|
2725
2801
|
*/
|
|
2726
|
-
|
|
2802
|
+
options: ListOptionType[] | ListOptionGroupType[];
|
|
2727
2803
|
/**
|
|
2728
|
-
*
|
|
2729
|
-
* change its appearance, showing the error below the select component.
|
|
2730
|
-
* If the defined value is an empty string, it will reserve a space below
|
|
2731
|
-
* the component for a future error, but it would not change its look. In
|
|
2732
|
-
* case of being undefined or null, both the appearance and the space for
|
|
2733
|
-
* the error message would not be modified.
|
|
2804
|
+
* Text to be put as placeholder of the select.
|
|
2734
2805
|
*/
|
|
2735
|
-
|
|
2806
|
+
placeholder?: string;
|
|
2736
2807
|
/**
|
|
2737
|
-
*
|
|
2738
|
-
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
|
|
2808
|
+
* If true, enables search functionality.
|
|
2739
2809
|
*/
|
|
2740
|
-
|
|
2810
|
+
searchable?: boolean;
|
|
2741
2811
|
/**
|
|
2742
2812
|
* Size of the component.
|
|
2743
2813
|
*/
|
|
@@ -2747,11 +2817,16 @@ type CommonProps$2 = {
|
|
|
2747
2817
|
*/
|
|
2748
2818
|
tabIndex?: number;
|
|
2749
2819
|
/**
|
|
2750
|
-
*
|
|
2820
|
+
* A fixed height must be set to enable virtualization.
|
|
2821
|
+
* If no height is provided, the select will automatically adjust to the height of its content, and virtualization will not be applied.
|
|
2751
2822
|
*/
|
|
2752
|
-
|
|
2823
|
+
virtualizedHeight?: string;
|
|
2753
2824
|
};
|
|
2754
2825
|
type SingleSelect = CommonProps$2 & {
|
|
2826
|
+
/**
|
|
2827
|
+
* Initial value of the select, only when it is uncontrolled.
|
|
2828
|
+
*/
|
|
2829
|
+
defaultValue?: string;
|
|
2755
2830
|
/**
|
|
2756
2831
|
* Enables users to select multiple items from the list.
|
|
2757
2832
|
*/
|
|
@@ -2763,14 +2838,15 @@ type SingleSelect = CommonProps$2 & {
|
|
|
2763
2838
|
*/
|
|
2764
2839
|
multiple?: false;
|
|
2765
2840
|
/**
|
|
2766
|
-
*
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
* Value of the select. If undefined, the component will be uncontrolled
|
|
2771
|
-
* and the value will be managed internally by the component.
|
|
2841
|
+
* This function will be called when the select loses the focus. An
|
|
2842
|
+
* object including the value and the error (if the value
|
|
2843
|
+
* selected is not valid) will be passed to this function. If there is no error,
|
|
2844
|
+
* error will not be defined.
|
|
2772
2845
|
*/
|
|
2773
|
-
|
|
2846
|
+
onBlur?: (val: {
|
|
2847
|
+
value: string;
|
|
2848
|
+
error?: string;
|
|
2849
|
+
}) => void;
|
|
2774
2850
|
/**
|
|
2775
2851
|
* This function will be called when the user selects an option.
|
|
2776
2852
|
* An object including the current value and the error (if the value entered is not valid)
|
|
@@ -2781,17 +2857,16 @@ type SingleSelect = CommonProps$2 & {
|
|
|
2781
2857
|
error?: string;
|
|
2782
2858
|
}) => void;
|
|
2783
2859
|
/**
|
|
2784
|
-
*
|
|
2785
|
-
*
|
|
2786
|
-
* selected is not valid) will be passed to this function. If there is no error,
|
|
2787
|
-
* error will not be defined.
|
|
2860
|
+
* Value of the select. If undefined, the component will be uncontrolled
|
|
2861
|
+
* and the value will be managed internally by the component.
|
|
2788
2862
|
*/
|
|
2789
|
-
|
|
2790
|
-
value: string;
|
|
2791
|
-
error?: string;
|
|
2792
|
-
}) => void;
|
|
2863
|
+
value?: string;
|
|
2793
2864
|
};
|
|
2794
2865
|
type MultipleSelect = CommonProps$2 & {
|
|
2866
|
+
/**
|
|
2867
|
+
* Initial value of the select, only when it is uncontrolled.
|
|
2868
|
+
*/
|
|
2869
|
+
defaultValue?: string[];
|
|
2795
2870
|
/**
|
|
2796
2871
|
* Enables users to select multiple items from the list.
|
|
2797
2872
|
*/
|
|
@@ -2803,14 +2878,15 @@ type MultipleSelect = CommonProps$2 & {
|
|
|
2803
2878
|
*/
|
|
2804
2879
|
multiple: true;
|
|
2805
2880
|
/**
|
|
2806
|
-
*
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
* Value of the select. If undefined, the component will be uncontrolled
|
|
2811
|
-
* and the value will be managed internally by the component.
|
|
2881
|
+
* This function will be called when the select loses the focus. An
|
|
2882
|
+
* object including the selected values and the error (if the value
|
|
2883
|
+
* selected is not valid) will be passed to this function. If there is no error,
|
|
2884
|
+
* error will be null.
|
|
2812
2885
|
*/
|
|
2813
|
-
|
|
2886
|
+
onBlur?: (val: {
|
|
2887
|
+
value: string[];
|
|
2888
|
+
error?: string;
|
|
2889
|
+
}) => void;
|
|
2814
2890
|
/**
|
|
2815
2891
|
* This function will be called when the user selects an option.
|
|
2816
2892
|
* An object including the current selected values and the error (if the value entered is not valid)
|
|
@@ -2821,15 +2897,10 @@ type MultipleSelect = CommonProps$2 & {
|
|
|
2821
2897
|
error?: string;
|
|
2822
2898
|
}) => void;
|
|
2823
2899
|
/**
|
|
2824
|
-
*
|
|
2825
|
-
*
|
|
2826
|
-
* selected is not valid) will be passed to this function. If there is no error,
|
|
2827
|
-
* error will be null.
|
|
2900
|
+
* Value of the select. If undefined, the component will be uncontrolled
|
|
2901
|
+
* and the value will be managed internally by the component.
|
|
2828
2902
|
*/
|
|
2829
|
-
|
|
2830
|
-
value: string[];
|
|
2831
|
-
error?: string;
|
|
2832
|
-
}) => void;
|
|
2903
|
+
value?: string[];
|
|
2833
2904
|
};
|
|
2834
2905
|
type Props$b = SingleSelect | MultipleSelect;
|
|
2835
2906
|
|
|
@@ -3037,37 +3108,25 @@ declare const DxcTable: {
|
|
|
3037
3108
|
ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
|
|
3038
3109
|
};
|
|
3039
3110
|
|
|
3040
|
-
type
|
|
3041
|
-
/**
|
|
3042
|
-
* Tab label.
|
|
3043
|
-
*/
|
|
3044
|
-
label: string;
|
|
3045
|
-
/**
|
|
3046
|
-
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
3047
|
-
*/
|
|
3048
|
-
icon?: string | SVG;
|
|
3049
|
-
};
|
|
3050
|
-
type TabIconProps = {
|
|
3051
|
-
/**
|
|
3052
|
-
* Tab label.
|
|
3053
|
-
*/
|
|
3054
|
-
label?: string;
|
|
3055
|
-
/**
|
|
3056
|
-
* Material Symbol name or SVG element used as the icon that will be displayed in the tab.
|
|
3057
|
-
*/
|
|
3058
|
-
icon: string | SVG;
|
|
3059
|
-
};
|
|
3060
|
-
type TabProps = {
|
|
3111
|
+
type CommonTabProps = {
|
|
3061
3112
|
defaultActive?: boolean;
|
|
3062
3113
|
active?: boolean;
|
|
3063
3114
|
title?: string;
|
|
3064
|
-
tabId?: string;
|
|
3065
3115
|
disabled?: boolean;
|
|
3066
3116
|
notificationNumber?: boolean | number;
|
|
3067
3117
|
children: ReactNode;
|
|
3068
3118
|
onClick?: () => void;
|
|
3069
3119
|
onHover?: () => void;
|
|
3070
|
-
}
|
|
3120
|
+
};
|
|
3121
|
+
type TabProps = (CommonTabProps & {
|
|
3122
|
+
tabId: string;
|
|
3123
|
+
label?: string;
|
|
3124
|
+
icon?: string | SVG;
|
|
3125
|
+
}) | (CommonTabProps & {
|
|
3126
|
+
tabId?: string;
|
|
3127
|
+
label: string;
|
|
3128
|
+
icon?: string | SVG;
|
|
3129
|
+
});
|
|
3071
3130
|
type TabsProps = {
|
|
3072
3131
|
/**
|
|
3073
3132
|
* Whether the icon should appear above or to the left of the label.
|
|
@@ -3574,7 +3633,7 @@ type Props$2 = {
|
|
|
3574
3633
|
position?: "bottom" | "top" | "left" | "right";
|
|
3575
3634
|
};
|
|
3576
3635
|
|
|
3577
|
-
declare
|
|
3636
|
+
declare const DxcTooltip: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
3578
3637
|
|
|
3579
3638
|
type Props$1 = {
|
|
3580
3639
|
as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
|
|
@@ -3609,7 +3668,7 @@ type StepProps = {
|
|
|
3609
3668
|
*/
|
|
3610
3669
|
icon?: string | SVG;
|
|
3611
3670
|
/**
|
|
3612
|
-
*
|
|
3671
|
+
* If true, the step will be disabled.
|
|
3613
3672
|
*/
|
|
3614
3673
|
disabled?: boolean;
|
|
3615
3674
|
/**
|
|
@@ -3845,11 +3904,13 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
3845
3904
|
clearToastActionTitle: string;
|
|
3846
3905
|
};
|
|
3847
3906
|
}>;
|
|
3907
|
+
type ThemeType = Record<string, string | number>;
|
|
3848
3908
|
type HalstackProviderPropsType = {
|
|
3849
3909
|
labels?: DeepPartial<TranslatedLabels>;
|
|
3850
3910
|
children: ReactNode;
|
|
3911
|
+
opinionatedTheme?: ThemeType;
|
|
3851
3912
|
};
|
|
3852
|
-
declare const HalstackProvider: ({ labels, children }: HalstackProviderPropsType) => JSX.Element;
|
|
3913
|
+
declare const HalstackProvider: ({ labels, children, opinionatedTheme }: HalstackProviderPropsType) => JSX.Element;
|
|
3853
3914
|
|
|
3854
3915
|
declare function useToast(): {
|
|
3855
3916
|
default: (toast: DefaultToast) => (() => void) | undefined;
|
|
@@ -3859,4 +3920,4 @@ declare function useToast(): {
|
|
|
3859
3920
|
loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
|
|
3860
3921
|
};
|
|
3861
3922
|
|
|
3862
|
-
export { DxcAccordion, DxcAlert, DxcApplicationLayout, 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 };
|
|
3923
|
+
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 };
|