@dxc-technology/halstack-react 0.0.0-d004266 → 0.0.0-d016030
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 +132 -36
- package/dist/index.d.ts +132 -36
- package/dist/index.js +792 -830
- package/dist/index.mjs +841 -879
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -121,26 +121,82 @@ declare const DxcAccordionGroup: {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
type Action$2 = {
|
|
124
|
+
/**
|
|
125
|
+
* The icon of the action. It can be a string with the name of the icon or an SVG component.
|
|
126
|
+
*/
|
|
124
127
|
icon?: string | SVG;
|
|
128
|
+
/**
|
|
129
|
+
* The label of the action.
|
|
130
|
+
*/
|
|
125
131
|
label: string;
|
|
132
|
+
/**
|
|
133
|
+
* The function that will be executed when the user clicks on the action button.
|
|
134
|
+
*/
|
|
126
135
|
onClick: () => void;
|
|
127
136
|
};
|
|
128
137
|
type Message = {
|
|
138
|
+
/**
|
|
139
|
+
* The function that will be executed when the user clicks on the close action button.
|
|
140
|
+
*/
|
|
129
141
|
onClose?: () => void;
|
|
142
|
+
/**
|
|
143
|
+
* The content of the message. The only Halstack component allowed within the text of an alert is the Link component,
|
|
144
|
+
* and it should be used exclusively to direct users to additional resources or relevant pages.
|
|
145
|
+
* No other components are permitted within the content of an alert.
|
|
146
|
+
*/
|
|
130
147
|
text: ReactNode;
|
|
131
148
|
};
|
|
132
149
|
type CommonProps$8 = {
|
|
150
|
+
/**
|
|
151
|
+
* If true, the alert will have a close button that will remove the message from the alert,
|
|
152
|
+
* only in banner and inline modes. The rest of the functionality will depend
|
|
153
|
+
* on the onClose event of each message (e.g. closing the modal alert).
|
|
154
|
+
*/
|
|
133
155
|
closable?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Primary action of the alert.
|
|
158
|
+
*/
|
|
134
159
|
primaryAction?: Action$2;
|
|
160
|
+
/**
|
|
161
|
+
* Secondary action of the alert.
|
|
162
|
+
*/
|
|
135
163
|
secondaryAction?: Action$2;
|
|
164
|
+
/**
|
|
165
|
+
* Specifies the semantic meaning of the alert.
|
|
166
|
+
*/
|
|
136
167
|
semantic?: "error" | "info" | "success" | "warning";
|
|
168
|
+
/**
|
|
169
|
+
* Title of the alert.
|
|
170
|
+
*/
|
|
137
171
|
title: string;
|
|
138
172
|
};
|
|
139
173
|
type ModeSpecificProps = {
|
|
174
|
+
/**
|
|
175
|
+
* List of messages to be displayed. Each message has a close action that will,
|
|
176
|
+
* apart from remove from the alert the current message, call the onClose if it is defined.
|
|
177
|
+
* If the message is an array, the alert will show a navigation bar to move between the messages.
|
|
178
|
+
* The modal mode only allows one message per alert. In this case, the message must be an object
|
|
179
|
+
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
180
|
+
* of the alert relies completely on the user.
|
|
181
|
+
*/
|
|
140
182
|
message?: Message | Message[];
|
|
183
|
+
/**
|
|
184
|
+
* The mode of the alert.
|
|
185
|
+
*/
|
|
141
186
|
mode?: "inline" | "banner";
|
|
142
187
|
} | {
|
|
188
|
+
/**
|
|
189
|
+
* List of messages to be displayed. Each message has a close action that will,
|
|
190
|
+
* apart from remove from the alert the current message, call the onClose if it is defined.
|
|
191
|
+
* If the message is an array, the alert will show a navigation bar to move between the messages.
|
|
192
|
+
* The modal mode only allows one message per alert. In this case, the message must be an object
|
|
193
|
+
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
194
|
+
* of the alert relies completely on the user.
|
|
195
|
+
*/
|
|
143
196
|
message: Required<Message>;
|
|
197
|
+
/**
|
|
198
|
+
* The mode of the alert.
|
|
199
|
+
*/
|
|
144
200
|
mode: "modal";
|
|
145
201
|
};
|
|
146
202
|
type Props$I = CommonProps$8 & ModeSpecificProps;
|
|
@@ -881,6 +937,10 @@ type Props$y = {
|
|
|
881
937
|
* Value of the tabindex.
|
|
882
938
|
*/
|
|
883
939
|
tabIndex?: number;
|
|
940
|
+
/**
|
|
941
|
+
* Specifies a string to be used as the name for the checkbox element when no `label` is provided.
|
|
942
|
+
*/
|
|
943
|
+
ariaLabel?: string;
|
|
884
944
|
};
|
|
885
945
|
|
|
886
946
|
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1443,6 +1503,10 @@ type Props$s = {
|
|
|
1443
1503
|
* Value of the tabindex attribute.
|
|
1444
1504
|
*/
|
|
1445
1505
|
tabIndex?: number;
|
|
1506
|
+
/**
|
|
1507
|
+
* Specifies a string to be used as the name for the date input element when no `label` is provided.
|
|
1508
|
+
*/
|
|
1509
|
+
ariaLabel?: string;
|
|
1446
1510
|
};
|
|
1447
1511
|
|
|
1448
1512
|
declare const DxcDateInput: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1482,7 +1546,7 @@ type Props$r = {
|
|
|
1482
1546
|
tabIndex?: number;
|
|
1483
1547
|
};
|
|
1484
1548
|
|
|
1485
|
-
declare const DxcDialog: ({ closable,
|
|
1549
|
+
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, }: Props$r) => JSX.Element;
|
|
1486
1550
|
|
|
1487
1551
|
type Props$q = {
|
|
1488
1552
|
/**
|
|
@@ -2165,6 +2229,10 @@ type Props$i = {
|
|
|
2165
2229
|
* Value of the tabindex attribute.
|
|
2166
2230
|
*/
|
|
2167
2231
|
tabIndex?: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* Specifies a string to be used as the name for the number input element when no `label` is provided.
|
|
2234
|
+
*/
|
|
2235
|
+
ariaLabel?: string;
|
|
2168
2236
|
};
|
|
2169
2237
|
|
|
2170
2238
|
declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -2311,6 +2379,10 @@ type Props$g = {
|
|
|
2311
2379
|
* Value of the tabindex attribute.
|
|
2312
2380
|
*/
|
|
2313
2381
|
tabIndex?: number;
|
|
2382
|
+
/**
|
|
2383
|
+
* Specifies a string to be used as the name for the password input element when no `label` is provided.
|
|
2384
|
+
*/
|
|
2385
|
+
ariaLabel?: string;
|
|
2314
2386
|
};
|
|
2315
2387
|
|
|
2316
2388
|
declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -3230,6 +3302,10 @@ type Props$5 = {
|
|
|
3230
3302
|
* Value of the tabindex attribute.
|
|
3231
3303
|
*/
|
|
3232
3304
|
tabIndex?: number;
|
|
3305
|
+
/**
|
|
3306
|
+
* Specifies a string to be used as the name for the textarea element when no `label` is provided.
|
|
3307
|
+
*/
|
|
3308
|
+
ariaLabel?: string;
|
|
3233
3309
|
};
|
|
3234
3310
|
|
|
3235
3311
|
declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -3393,30 +3469,64 @@ type Props$4 = {
|
|
|
3393
3469
|
* Value of the tabindex attribute.
|
|
3394
3470
|
*/
|
|
3395
3471
|
tabIndex?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* Specifies a string to be used as the name for the textInput element when no `label` is provided.
|
|
3474
|
+
*/
|
|
3475
|
+
ariaLabel?: string;
|
|
3396
3476
|
};
|
|
3397
3477
|
|
|
3398
3478
|
declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
|
|
3399
3479
|
|
|
3400
3480
|
type Action = {
|
|
3481
|
+
/**
|
|
3482
|
+
* The icon of the action. It can be a string with the name of the icon or an SVG component.
|
|
3483
|
+
*/
|
|
3401
3484
|
icon?: string | SVG;
|
|
3485
|
+
/**
|
|
3486
|
+
* The label of the action.
|
|
3487
|
+
*/
|
|
3402
3488
|
label: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* The function that will be executed when the user clicks on the action button.
|
|
3491
|
+
*/
|
|
3403
3492
|
onClick: () => void;
|
|
3404
3493
|
};
|
|
3405
3494
|
type CommonProps$1 = {
|
|
3495
|
+
/**
|
|
3496
|
+
* Tertiary button which performs a custom action, specified by the user.
|
|
3497
|
+
*/
|
|
3406
3498
|
action?: Action;
|
|
3499
|
+
/**
|
|
3500
|
+
* Message to be displayed as a toast.
|
|
3501
|
+
*/
|
|
3407
3502
|
message: string;
|
|
3408
3503
|
};
|
|
3409
3504
|
type DefaultToast = CommonProps$1 & {
|
|
3505
|
+
/**
|
|
3506
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the panel label.
|
|
3507
|
+
* When using Material Symbols, replace spaces with underscores.
|
|
3508
|
+
* By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
|
|
3509
|
+
*/
|
|
3410
3510
|
icon?: string | SVG;
|
|
3411
3511
|
};
|
|
3412
3512
|
type LoadingToast = CommonProps$1 & {
|
|
3413
3513
|
loading: boolean;
|
|
3414
3514
|
};
|
|
3415
3515
|
type SemanticToast = CommonProps$1 & {
|
|
3516
|
+
/**
|
|
3517
|
+
* Flag that allows to hide the semantic icon of the toast.
|
|
3518
|
+
*/
|
|
3416
3519
|
hideSemanticIcon?: boolean;
|
|
3417
3520
|
};
|
|
3418
3521
|
type ToastsQueuePropsType = {
|
|
3522
|
+
/**
|
|
3523
|
+
* Duration in milliseconds before a toast automatically hides itself.
|
|
3524
|
+
* The range goes from 3000ms to 5000ms, any other value will not be taken into consideration.
|
|
3525
|
+
*/
|
|
3419
3526
|
duration?: number;
|
|
3527
|
+
/**
|
|
3528
|
+
* Tree of components from which the useToast hook can be triggered.
|
|
3529
|
+
*/
|
|
3420
3530
|
children: ReactNode;
|
|
3421
3531
|
};
|
|
3422
3532
|
|
|
@@ -4010,15 +4120,8 @@ declare const componentTokens: {
|
|
|
4010
4120
|
dialog: {
|
|
4011
4121
|
overlayColor: string;
|
|
4012
4122
|
backgroundColor: string;
|
|
4013
|
-
closeIconSize: string;
|
|
4014
|
-
closeIconTopPosition: string;
|
|
4015
|
-
closeIconRightPosition: string;
|
|
4016
4123
|
closeIconBackgroundColor: string;
|
|
4017
|
-
closeIconBorderColor: string;
|
|
4018
4124
|
closeIconColor: string;
|
|
4019
|
-
closeIconBorderThickness: string;
|
|
4020
|
-
closeIconBorderStyle: string;
|
|
4021
|
-
closeIconBorderRadius: string;
|
|
4022
4125
|
boxShadowOffsetX: string;
|
|
4023
4126
|
boxShadowOffsetY: string;
|
|
4024
4127
|
boxShadowBlur: string;
|
|
@@ -4153,15 +4256,15 @@ declare const componentTokens: {
|
|
|
4153
4256
|
};
|
|
4154
4257
|
header: {
|
|
4155
4258
|
backgroundColor: string;
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4259
|
+
hamburgerFocusColor: string;
|
|
4260
|
+
hamburgerFontFamily: string;
|
|
4261
|
+
hamburgerFontStyle: string;
|
|
4262
|
+
hamburgerFontColor: string;
|
|
4263
|
+
hamburgerFontSize: string;
|
|
4264
|
+
hamburgerFontWeight: string;
|
|
4265
|
+
hamburgerTextTransform: string;
|
|
4266
|
+
hamburgerIconColor: string;
|
|
4267
|
+
hamburgerHoverColor: string;
|
|
4165
4268
|
logo: string;
|
|
4166
4269
|
logoResponsive: string;
|
|
4167
4270
|
logoHeight: string;
|
|
@@ -4973,7 +5076,7 @@ type OpinionatedTheme = {
|
|
|
4973
5076
|
accentColor: string;
|
|
4974
5077
|
fontColor: string;
|
|
4975
5078
|
menuBaseColor: string;
|
|
4976
|
-
|
|
5079
|
+
hamburgerColor: string;
|
|
4977
5080
|
logo: string;
|
|
4978
5081
|
logoResponsive: string;
|
|
4979
5082
|
contentColor: string;
|
|
@@ -5107,7 +5210,7 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
5107
5210
|
};
|
|
5108
5211
|
header: {
|
|
5109
5212
|
closeIcon: string;
|
|
5110
|
-
|
|
5213
|
+
hamburgerTitle: string;
|
|
5111
5214
|
};
|
|
5112
5215
|
numberInput: {
|
|
5113
5216
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
@@ -5546,15 +5649,8 @@ declare const HalstackContext: react.Context<{
|
|
|
5546
5649
|
dialog: {
|
|
5547
5650
|
overlayColor: string;
|
|
5548
5651
|
backgroundColor: string;
|
|
5549
|
-
closeIconSize: string;
|
|
5550
|
-
closeIconTopPosition: string;
|
|
5551
|
-
closeIconRightPosition: string;
|
|
5552
5652
|
closeIconBackgroundColor: string;
|
|
5553
|
-
closeIconBorderColor: string;
|
|
5554
5653
|
closeIconColor: string;
|
|
5555
|
-
closeIconBorderThickness: string;
|
|
5556
|
-
closeIconBorderStyle: string;
|
|
5557
|
-
closeIconBorderRadius: string;
|
|
5558
5654
|
boxShadowOffsetX: string;
|
|
5559
5655
|
boxShadowOffsetY: string;
|
|
5560
5656
|
boxShadowBlur: string;
|
|
@@ -5689,15 +5785,15 @@ declare const HalstackContext: react.Context<{
|
|
|
5689
5785
|
};
|
|
5690
5786
|
header: {
|
|
5691
5787
|
backgroundColor: string;
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5788
|
+
hamburgerFocusColor: string;
|
|
5789
|
+
hamburgerFontFamily: string;
|
|
5790
|
+
hamburgerFontStyle: string;
|
|
5791
|
+
hamburgerFontColor: string;
|
|
5792
|
+
hamburgerFontSize: string;
|
|
5793
|
+
hamburgerFontWeight: string;
|
|
5794
|
+
hamburgerTextTransform: string;
|
|
5795
|
+
hamburgerIconColor: string;
|
|
5796
|
+
hamburgerHoverColor: string;
|
|
5701
5797
|
logo: string;
|
|
5702
5798
|
logoResponsive: string;
|
|
5703
5799
|
logoHeight: string;
|
|
@@ -6488,7 +6584,7 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
6488
6584
|
};
|
|
6489
6585
|
header: {
|
|
6490
6586
|
closeIcon: string;
|
|
6491
|
-
|
|
6587
|
+
hamburgerTitle: string;
|
|
6492
6588
|
};
|
|
6493
6589
|
numberInput: {
|
|
6494
6590
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -121,26 +121,82 @@ declare const DxcAccordionGroup: {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
type Action$2 = {
|
|
124
|
+
/**
|
|
125
|
+
* The icon of the action. It can be a string with the name of the icon or an SVG component.
|
|
126
|
+
*/
|
|
124
127
|
icon?: string | SVG;
|
|
128
|
+
/**
|
|
129
|
+
* The label of the action.
|
|
130
|
+
*/
|
|
125
131
|
label: string;
|
|
132
|
+
/**
|
|
133
|
+
* The function that will be executed when the user clicks on the action button.
|
|
134
|
+
*/
|
|
126
135
|
onClick: () => void;
|
|
127
136
|
};
|
|
128
137
|
type Message = {
|
|
138
|
+
/**
|
|
139
|
+
* The function that will be executed when the user clicks on the close action button.
|
|
140
|
+
*/
|
|
129
141
|
onClose?: () => void;
|
|
142
|
+
/**
|
|
143
|
+
* The content of the message. The only Halstack component allowed within the text of an alert is the Link component,
|
|
144
|
+
* and it should be used exclusively to direct users to additional resources or relevant pages.
|
|
145
|
+
* No other components are permitted within the content of an alert.
|
|
146
|
+
*/
|
|
130
147
|
text: ReactNode;
|
|
131
148
|
};
|
|
132
149
|
type CommonProps$8 = {
|
|
150
|
+
/**
|
|
151
|
+
* If true, the alert will have a close button that will remove the message from the alert,
|
|
152
|
+
* only in banner and inline modes. The rest of the functionality will depend
|
|
153
|
+
* on the onClose event of each message (e.g. closing the modal alert).
|
|
154
|
+
*/
|
|
133
155
|
closable?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Primary action of the alert.
|
|
158
|
+
*/
|
|
134
159
|
primaryAction?: Action$2;
|
|
160
|
+
/**
|
|
161
|
+
* Secondary action of the alert.
|
|
162
|
+
*/
|
|
135
163
|
secondaryAction?: Action$2;
|
|
164
|
+
/**
|
|
165
|
+
* Specifies the semantic meaning of the alert.
|
|
166
|
+
*/
|
|
136
167
|
semantic?: "error" | "info" | "success" | "warning";
|
|
168
|
+
/**
|
|
169
|
+
* Title of the alert.
|
|
170
|
+
*/
|
|
137
171
|
title: string;
|
|
138
172
|
};
|
|
139
173
|
type ModeSpecificProps = {
|
|
174
|
+
/**
|
|
175
|
+
* List of messages to be displayed. Each message has a close action that will,
|
|
176
|
+
* apart from remove from the alert the current message, call the onClose if it is defined.
|
|
177
|
+
* If the message is an array, the alert will show a navigation bar to move between the messages.
|
|
178
|
+
* The modal mode only allows one message per alert. In this case, the message must be an object
|
|
179
|
+
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
180
|
+
* of the alert relies completely on the user.
|
|
181
|
+
*/
|
|
140
182
|
message?: Message | Message[];
|
|
183
|
+
/**
|
|
184
|
+
* The mode of the alert.
|
|
185
|
+
*/
|
|
141
186
|
mode?: "inline" | "banner";
|
|
142
187
|
} | {
|
|
188
|
+
/**
|
|
189
|
+
* List of messages to be displayed. Each message has a close action that will,
|
|
190
|
+
* apart from remove from the alert the current message, call the onClose if it is defined.
|
|
191
|
+
* If the message is an array, the alert will show a navigation bar to move between the messages.
|
|
192
|
+
* The modal mode only allows one message per alert. In this case, the message must be an object
|
|
193
|
+
* and the presence of the onClose attribute is mandatory, since the management of the closing
|
|
194
|
+
* of the alert relies completely on the user.
|
|
195
|
+
*/
|
|
143
196
|
message: Required<Message>;
|
|
197
|
+
/**
|
|
198
|
+
* The mode of the alert.
|
|
199
|
+
*/
|
|
144
200
|
mode: "modal";
|
|
145
201
|
};
|
|
146
202
|
type Props$I = CommonProps$8 & ModeSpecificProps;
|
|
@@ -881,6 +937,10 @@ type Props$y = {
|
|
|
881
937
|
* Value of the tabindex.
|
|
882
938
|
*/
|
|
883
939
|
tabIndex?: number;
|
|
940
|
+
/**
|
|
941
|
+
* Specifies a string to be used as the name for the checkbox element when no `label` is provided.
|
|
942
|
+
*/
|
|
943
|
+
ariaLabel?: string;
|
|
884
944
|
};
|
|
885
945
|
|
|
886
946
|
declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$y & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1443,6 +1503,10 @@ type Props$s = {
|
|
|
1443
1503
|
* Value of the tabindex attribute.
|
|
1444
1504
|
*/
|
|
1445
1505
|
tabIndex?: number;
|
|
1506
|
+
/**
|
|
1507
|
+
* Specifies a string to be used as the name for the date input element when no `label` is provided.
|
|
1508
|
+
*/
|
|
1509
|
+
ariaLabel?: string;
|
|
1446
1510
|
};
|
|
1447
1511
|
|
|
1448
1512
|
declare const DxcDateInput: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1482,7 +1546,7 @@ type Props$r = {
|
|
|
1482
1546
|
tabIndex?: number;
|
|
1483
1547
|
};
|
|
1484
1548
|
|
|
1485
|
-
declare const DxcDialog: ({ closable,
|
|
1549
|
+
declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, }: Props$r) => JSX.Element;
|
|
1486
1550
|
|
|
1487
1551
|
type Props$q = {
|
|
1488
1552
|
/**
|
|
@@ -2165,6 +2229,10 @@ type Props$i = {
|
|
|
2165
2229
|
* Value of the tabindex attribute.
|
|
2166
2230
|
*/
|
|
2167
2231
|
tabIndex?: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* Specifies a string to be used as the name for the number input element when no `label` is provided.
|
|
2234
|
+
*/
|
|
2235
|
+
ariaLabel?: string;
|
|
2168
2236
|
};
|
|
2169
2237
|
|
|
2170
2238
|
declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -2311,6 +2379,10 @@ type Props$g = {
|
|
|
2311
2379
|
* Value of the tabindex attribute.
|
|
2312
2380
|
*/
|
|
2313
2381
|
tabIndex?: number;
|
|
2382
|
+
/**
|
|
2383
|
+
* Specifies a string to be used as the name for the password input element when no `label` is provided.
|
|
2384
|
+
*/
|
|
2385
|
+
ariaLabel?: string;
|
|
2314
2386
|
};
|
|
2315
2387
|
|
|
2316
2388
|
declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -3230,6 +3302,10 @@ type Props$5 = {
|
|
|
3230
3302
|
* Value of the tabindex attribute.
|
|
3231
3303
|
*/
|
|
3232
3304
|
tabIndex?: number;
|
|
3305
|
+
/**
|
|
3306
|
+
* Specifies a string to be used as the name for the textarea element when no `label` is provided.
|
|
3307
|
+
*/
|
|
3308
|
+
ariaLabel?: string;
|
|
3233
3309
|
};
|
|
3234
3310
|
|
|
3235
3311
|
declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -3393,30 +3469,64 @@ type Props$4 = {
|
|
|
3393
3469
|
* Value of the tabindex attribute.
|
|
3394
3470
|
*/
|
|
3395
3471
|
tabIndex?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* Specifies a string to be used as the name for the textInput element when no `label` is provided.
|
|
3474
|
+
*/
|
|
3475
|
+
ariaLabel?: string;
|
|
3396
3476
|
};
|
|
3397
3477
|
|
|
3398
3478
|
declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
|
|
3399
3479
|
|
|
3400
3480
|
type Action = {
|
|
3481
|
+
/**
|
|
3482
|
+
* The icon of the action. It can be a string with the name of the icon or an SVG component.
|
|
3483
|
+
*/
|
|
3401
3484
|
icon?: string | SVG;
|
|
3485
|
+
/**
|
|
3486
|
+
* The label of the action.
|
|
3487
|
+
*/
|
|
3402
3488
|
label: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* The function that will be executed when the user clicks on the action button.
|
|
3491
|
+
*/
|
|
3403
3492
|
onClick: () => void;
|
|
3404
3493
|
};
|
|
3405
3494
|
type CommonProps$1 = {
|
|
3495
|
+
/**
|
|
3496
|
+
* Tertiary button which performs a custom action, specified by the user.
|
|
3497
|
+
*/
|
|
3406
3498
|
action?: Action;
|
|
3499
|
+
/**
|
|
3500
|
+
* Message to be displayed as a toast.
|
|
3501
|
+
*/
|
|
3407
3502
|
message: string;
|
|
3408
3503
|
};
|
|
3409
3504
|
type DefaultToast = CommonProps$1 & {
|
|
3505
|
+
/**
|
|
3506
|
+
* Material Symbol name or SVG element as the icon that will be placed next to the panel label.
|
|
3507
|
+
* When using Material Symbols, replace spaces with underscores.
|
|
3508
|
+
* By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
|
|
3509
|
+
*/
|
|
3410
3510
|
icon?: string | SVG;
|
|
3411
3511
|
};
|
|
3412
3512
|
type LoadingToast = CommonProps$1 & {
|
|
3413
3513
|
loading: boolean;
|
|
3414
3514
|
};
|
|
3415
3515
|
type SemanticToast = CommonProps$1 & {
|
|
3516
|
+
/**
|
|
3517
|
+
* Flag that allows to hide the semantic icon of the toast.
|
|
3518
|
+
*/
|
|
3416
3519
|
hideSemanticIcon?: boolean;
|
|
3417
3520
|
};
|
|
3418
3521
|
type ToastsQueuePropsType = {
|
|
3522
|
+
/**
|
|
3523
|
+
* Duration in milliseconds before a toast automatically hides itself.
|
|
3524
|
+
* The range goes from 3000ms to 5000ms, any other value will not be taken into consideration.
|
|
3525
|
+
*/
|
|
3419
3526
|
duration?: number;
|
|
3527
|
+
/**
|
|
3528
|
+
* Tree of components from which the useToast hook can be triggered.
|
|
3529
|
+
*/
|
|
3420
3530
|
children: ReactNode;
|
|
3421
3531
|
};
|
|
3422
3532
|
|
|
@@ -4010,15 +4120,8 @@ declare const componentTokens: {
|
|
|
4010
4120
|
dialog: {
|
|
4011
4121
|
overlayColor: string;
|
|
4012
4122
|
backgroundColor: string;
|
|
4013
|
-
closeIconSize: string;
|
|
4014
|
-
closeIconTopPosition: string;
|
|
4015
|
-
closeIconRightPosition: string;
|
|
4016
4123
|
closeIconBackgroundColor: string;
|
|
4017
|
-
closeIconBorderColor: string;
|
|
4018
4124
|
closeIconColor: string;
|
|
4019
|
-
closeIconBorderThickness: string;
|
|
4020
|
-
closeIconBorderStyle: string;
|
|
4021
|
-
closeIconBorderRadius: string;
|
|
4022
4125
|
boxShadowOffsetX: string;
|
|
4023
4126
|
boxShadowOffsetY: string;
|
|
4024
4127
|
boxShadowBlur: string;
|
|
@@ -4153,15 +4256,15 @@ declare const componentTokens: {
|
|
|
4153
4256
|
};
|
|
4154
4257
|
header: {
|
|
4155
4258
|
backgroundColor: string;
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4259
|
+
hamburgerFocusColor: string;
|
|
4260
|
+
hamburgerFontFamily: string;
|
|
4261
|
+
hamburgerFontStyle: string;
|
|
4262
|
+
hamburgerFontColor: string;
|
|
4263
|
+
hamburgerFontSize: string;
|
|
4264
|
+
hamburgerFontWeight: string;
|
|
4265
|
+
hamburgerTextTransform: string;
|
|
4266
|
+
hamburgerIconColor: string;
|
|
4267
|
+
hamburgerHoverColor: string;
|
|
4165
4268
|
logo: string;
|
|
4166
4269
|
logoResponsive: string;
|
|
4167
4270
|
logoHeight: string;
|
|
@@ -4973,7 +5076,7 @@ type OpinionatedTheme = {
|
|
|
4973
5076
|
accentColor: string;
|
|
4974
5077
|
fontColor: string;
|
|
4975
5078
|
menuBaseColor: string;
|
|
4976
|
-
|
|
5079
|
+
hamburgerColor: string;
|
|
4977
5080
|
logo: string;
|
|
4978
5081
|
logoResponsive: string;
|
|
4979
5082
|
contentColor: string;
|
|
@@ -5107,7 +5210,7 @@ declare const defaultTranslatedComponentLabels: {
|
|
|
5107
5210
|
};
|
|
5108
5211
|
header: {
|
|
5109
5212
|
closeIcon: string;
|
|
5110
|
-
|
|
5213
|
+
hamburgerTitle: string;
|
|
5111
5214
|
};
|
|
5112
5215
|
numberInput: {
|
|
5113
5216
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|
|
@@ -5546,15 +5649,8 @@ declare const HalstackContext: react.Context<{
|
|
|
5546
5649
|
dialog: {
|
|
5547
5650
|
overlayColor: string;
|
|
5548
5651
|
backgroundColor: string;
|
|
5549
|
-
closeIconSize: string;
|
|
5550
|
-
closeIconTopPosition: string;
|
|
5551
|
-
closeIconRightPosition: string;
|
|
5552
5652
|
closeIconBackgroundColor: string;
|
|
5553
|
-
closeIconBorderColor: string;
|
|
5554
5653
|
closeIconColor: string;
|
|
5555
|
-
closeIconBorderThickness: string;
|
|
5556
|
-
closeIconBorderStyle: string;
|
|
5557
|
-
closeIconBorderRadius: string;
|
|
5558
5654
|
boxShadowOffsetX: string;
|
|
5559
5655
|
boxShadowOffsetY: string;
|
|
5560
5656
|
boxShadowBlur: string;
|
|
@@ -5689,15 +5785,15 @@ declare const HalstackContext: react.Context<{
|
|
|
5689
5785
|
};
|
|
5690
5786
|
header: {
|
|
5691
5787
|
backgroundColor: string;
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5788
|
+
hamburgerFocusColor: string;
|
|
5789
|
+
hamburgerFontFamily: string;
|
|
5790
|
+
hamburgerFontStyle: string;
|
|
5791
|
+
hamburgerFontColor: string;
|
|
5792
|
+
hamburgerFontSize: string;
|
|
5793
|
+
hamburgerFontWeight: string;
|
|
5794
|
+
hamburgerTextTransform: string;
|
|
5795
|
+
hamburgerIconColor: string;
|
|
5796
|
+
hamburgerHoverColor: string;
|
|
5701
5797
|
logo: string;
|
|
5702
5798
|
logoResponsive: string;
|
|
5703
5799
|
logoHeight: string;
|
|
@@ -6488,7 +6584,7 @@ declare const HalstackLanguageContext: react.Context<{
|
|
|
6488
6584
|
};
|
|
6489
6585
|
header: {
|
|
6490
6586
|
closeIcon: string;
|
|
6491
|
-
|
|
6587
|
+
hamburgerTitle: string;
|
|
6492
6588
|
};
|
|
6493
6589
|
numberInput: {
|
|
6494
6590
|
valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
|