@dxc-technology/halstack-react 0.0.0-73e48b1 → 0.0.0-743759c

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 CHANGED
@@ -118,6 +118,13 @@ type Margin$n = {
118
118
  right?: Space$s;
119
119
  };
120
120
  type SVG$h = React.ReactNode & React.SVGProps<SVGSVGElement>;
121
+ type Size$4 = {
122
+ /**
123
+ * Height of the component.
124
+ */
125
+ height?: "small" | "medium" | "large";
126
+ width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
127
+ };
121
128
  type Props$I = {
122
129
  /**
123
130
  * Text to be placed in the button.
@@ -126,7 +133,11 @@ type Props$I = {
126
133
  /**
127
134
  * The available button modes.
128
135
  */
129
- mode?: "primary" | "secondary" | "text";
136
+ mode?: "primary" | "secondary" | "tertiary";
137
+ /**
138
+ * Specifies the semantic meaning of the buttons, which determines its color.
139
+ */
140
+ semantic?: "default" | "error" | "warning" | "success" | "info";
130
141
  /**
131
142
  * If true, the component will be disabled.
132
143
  */
@@ -159,14 +170,14 @@ type Props$I = {
159
170
  /**
160
171
  * Size of the component.
161
172
  */
162
- size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
173
+ size?: Size$4;
163
174
  /**
164
175
  * Value of the tabindex attribute.
165
176
  */
166
177
  tabIndex?: number;
167
178
  };
168
179
 
169
- declare const DxcButton: ({ label, mode, disabled, iconPosition, title, type, icon, onClick, margin, size, tabIndex, }: Props$I) => JSX.Element;
180
+ declare const DxcButton: ({ label, mode, semantic, disabled, iconPosition, title, type, icon, onClick, margin, size, tabIndex, }: Props$I) => JSX.Element;
170
181
 
171
182
  type Space$r = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
172
183
  type Size$3 = {
@@ -3850,50 +3861,160 @@ declare const componentTokens: {
3850
3861
  button: {
3851
3862
  labelFontLineHeight: string;
3852
3863
  labelLetterSpacing: string;
3853
- paddingLeft: string;
3854
- paddingRight: string;
3855
- paddingTop: string;
3856
- paddingBottom: string;
3864
+ paddingSmallTop: string;
3865
+ paddingSmallLeft: string;
3866
+ paddingSmallBottom: string;
3867
+ paddingSmallRight: string;
3868
+ paddingSmallOnlyIconTop: string;
3869
+ paddingSmallOnlyIconLeft: string;
3870
+ paddingSmallOnlyIconBottom: string;
3871
+ paddingSmallOnlyIconRight: string;
3872
+ paddingMediumTop: string;
3873
+ paddingMediumLeft: string;
3874
+ paddingMediumBottom: string;
3875
+ paddingMediumRight: string;
3876
+ paddingMediumOnlyIconTop: string;
3877
+ paddingMediumOnlyIconLeft: string;
3878
+ paddingMediumOnlyIconBottom: string;
3879
+ paddingMediumOnlyIconRight: string;
3880
+ paddingLargeTop: string;
3881
+ paddingLargeLeft: string;
3882
+ paddingLargeBottom: string;
3883
+ paddingLargeRight: string;
3884
+ paddingLargeOnlyIconTop: string;
3885
+ paddingLargeOnlyIconLeft: string;
3886
+ paddingLargeOnlyIconBottom: string;
3887
+ paddingLargeOnlyIconRight: string;
3857
3888
  focusBorderColor: string;
3858
- primaryBackgroundColor: string;
3859
- primaryFontColor: string;
3860
- primaryHoverBackgroundColor: string;
3861
- primaryActiveBackgroundColor: string;
3862
- primaryDisabledBackgroundColor: string;
3863
- primaryDisabledFontColor: string;
3889
+ primaryDefaultBackgroundColor: string;
3890
+ primaryErrorBackgroundColor: string;
3891
+ primaryWarningBackgroundColor: string;
3892
+ primarySuccessBackgroundColor: string;
3893
+ primaryInfoBackgroundColor: string;
3894
+ primaryDefaultFontColor: string;
3895
+ primaryErrorFontColor: string;
3896
+ primaryWarningFontColor: string;
3897
+ primarySuccessFontColor: string;
3898
+ primaryInfoFontColor: string;
3899
+ primaryHoverDefaultBackgroundColor: string;
3900
+ primaryHoverErrorBackgroundColor: string;
3901
+ primaryHoverWarningBackgroundColor: string;
3902
+ primaryHoverSuccessBackgroundColor: string;
3903
+ primaryHoverInfoBackgroundColor: string;
3904
+ primaryActiveDefaultBackgroundColor: string;
3905
+ primaryActiveErrorBackgroundColor: string;
3906
+ primaryActiveWarningBackgroundColor: string;
3907
+ primaryActiveSuccessBackgroundColor: string;
3908
+ primaryActiveInfoBackgroundColor: string;
3909
+ primaryDisabledDefaultBackgroundColor: string;
3910
+ primaryDisabledErrorBackgroundColor: string;
3911
+ primaryDisabledWarningBackgroundColor: string;
3912
+ primaryDisabledSuccessBackgroundColor: string;
3913
+ primaryDisabledInfoBackgroundColor: string;
3914
+ primaryDisabledDefaultFontColor: string;
3915
+ primaryDisabledErrorFontColor: string;
3916
+ primaryDisabledWarningFontColor: string;
3917
+ primaryDisabledSuccessFontColor: string;
3918
+ primaryDisabledInfoFontColor: string;
3864
3919
  primaryBorderThickness: string;
3865
3920
  primaryBorderStyle: string;
3866
3921
  primaryBorderRadius: string;
3867
3922
  primaryFontFamily: string;
3868
- primaryFontSize: string;
3923
+ primarySmallFontSize: string;
3924
+ primaryMediumFontSize: string;
3925
+ primaryLargeFontSize: string;
3869
3926
  primaryFontWeight: string;
3870
- secondaryBackgroundColor: string;
3871
- secondaryFontColor: string;
3872
- secondaryHoverFontColor: string;
3873
- secondaryBorderColor: string;
3874
- secondaryHoverBackgroundColor: string;
3875
- secondaryActiveBackgroundColor: string;
3876
- secondaryDisabledBackgroundColor: string;
3877
- secondaryDisabledFontColor: string;
3878
- secondaryDisabledBorderColor: string;
3927
+ secondaryDefaultBackgroundColor: string;
3928
+ secondaryErrorBackgroundColor: string;
3929
+ secondaryWarningBackgroundColor: string;
3930
+ secondarySuccessBackgroundColor: string;
3931
+ secondaryInfoBackgroundColor: string;
3932
+ secondaryDefaultFontColor: string;
3933
+ secondaryErrorFontColor: string;
3934
+ secondaryWarningFontColor: string;
3935
+ secondarySuccessFontColor: string;
3936
+ secondaryInfoFontColor: string;
3937
+ secondaryDefaultBorderColor: string;
3938
+ secondaryErrorBorderColor: string;
3939
+ secondaryWarningBorderColor: string;
3940
+ secondarySuccessBorderColor: string;
3941
+ secondaryInfoBorderColor: string;
3942
+ secondaryHoverDefaultBackgroundColor: string;
3943
+ secondaryHoverErrorBackgroundColor: string;
3944
+ secondaryHoverWarningBackgroundColor: string;
3945
+ secondaryHoverSuccessBackgroundColor: string;
3946
+ secondaryHoverInfoBackgroundColor: string;
3947
+ secondaryHoverDefaultFontColor: string;
3948
+ secondaryHoverErrorFontColor: string;
3949
+ secondaryHoverWarningFontColor: string;
3950
+ secondaryHoverSuccessFontColor: string;
3951
+ secondaryHoverInfoFontColor: string;
3952
+ secondaryActiveDefaultBackgroundColor: string;
3953
+ secondaryActiveErrorBackgroundColor: string;
3954
+ secondaryActiveWarningBackgroundColor: string;
3955
+ secondaryActiveSuccessBackgroundColor: string;
3956
+ secondaryActiveInfoBackgroundColor: string;
3957
+ secondaryDisabledDefaultBackgroundColor: string;
3958
+ secondaryDisabledErrorBackgroundColor: string;
3959
+ secondaryDisabledWarningBackgroundColor: string;
3960
+ secondaryDisabledSuccessBackgroundColor: string;
3961
+ secondaryDisabledInfoBackgroundColor: string;
3962
+ secondaryDisabledDefaultFontColor: string;
3963
+ secondaryDisabledErrorFontColor: string;
3964
+ secondaryDisabledWarningFontColor: string;
3965
+ secondaryDisabledSuccessFontColor: string;
3966
+ secondaryDisabledInfoFontColor: string;
3967
+ secondaryDisabledDefaultBorderColor: string;
3968
+ secondaryDisabledErrorBorderColor: string;
3969
+ secondaryDisabledWarningBorderColor: string;
3970
+ secondaryDisabledSuccessBorderColor: string;
3971
+ secondaryDisabledInfoBorderColor: string;
3879
3972
  secondaryBorderThickness: string;
3880
3973
  secondaryBorderStyle: string;
3881
3974
  secondaryBorderRadius: string;
3882
3975
  secondaryFontFamily: string;
3883
- secondaryFontSize: string;
3976
+ secondarySmallFontSize: string;
3977
+ secondaryMediumFontSize: string;
3978
+ secondaryLargeFontSize: string;
3884
3979
  secondaryFontWeight: string;
3885
- textBackgroundColor: string;
3886
- textFontColor: string;
3887
- textHoverBackgroundColor: string;
3888
- textActiveBackgroundColor: string;
3889
- textDisabledBackgroundColor: string;
3890
- textDisabledFontColor: string;
3891
- textBorderThickness: string;
3892
- textBorderStyle: string;
3893
- textBorderRadius: string;
3894
- textFontFamily: string;
3895
- textFontSize: string;
3896
- textFontWeight: string;
3980
+ tertiaryDefaultBackgroundColor: string;
3981
+ tertiaryErrorBackgroundColor: string;
3982
+ tertiaryWarningBackgroundColor: string;
3983
+ tertiarySuccessBackgroundColor: string;
3984
+ tertiaryInfoBackgroundColor: string;
3985
+ tertiaryDefaultFontColor: string;
3986
+ tertiaryErrorFontColor: string;
3987
+ tertiaryWarningFontColor: string;
3988
+ tertiarySuccessFontColor: string;
3989
+ tertiaryInfoFontColor: string;
3990
+ tertiaryHoverDefaultBackgroundColor: string;
3991
+ tertiaryHoverErrorBackgroundColor: string;
3992
+ tertiaryHoverWarningBackgroundColor: string;
3993
+ tertiaryHoverSuccessBackgroundColor: string;
3994
+ tertiaryHoverInfoBackgroundColor: string;
3995
+ tertiaryActiveDefaultBackgroundColor: string;
3996
+ tertiaryActiveErrorBackgroundColor: string;
3997
+ tertiaryActiveWarningBackgroundColor: string;
3998
+ tertiaryActiveSuccessBackgroundColor: string;
3999
+ tertiaryActiveInfoBackgroundColor: string;
4000
+ tertiaryDisabledDefaultBackgroundColor: string;
4001
+ tertiaryDisabledErrorBackgroundColor: string;
4002
+ tertiaryDisabledWarningBackgroundColor: string;
4003
+ tertiaryDisabledSuccessBackgroundColor: string;
4004
+ tertiaryDisabledInfoBackgroundColor: string;
4005
+ tertiaryDisabledDefaultFontColor: string;
4006
+ tertiaryDisabledErrorFontColor: string;
4007
+ tertiaryDisabledWarningFontColor: string;
4008
+ tertiaryDisabledSuccessFontColor: string;
4009
+ tertiaryDisabledInfoFontColor: string;
4010
+ tertiaryBorderThickness: string;
4011
+ tertiaryBorderStyle: string;
4012
+ tertiaryBorderRadius: string;
4013
+ tertiaryFontFamily: string;
4014
+ tertiarySmallFontSize: string;
4015
+ tertiaryMediumFontSize: string;
4016
+ tertiaryLargeFontSize: string;
4017
+ tertiaryFontWeight: string;
3897
4018
  };
3898
4019
  card: {
3899
4020
  height: string;
@@ -5273,50 +5394,160 @@ declare const HalstackContext: react.Context<DeepPartial<{
5273
5394
  button: {
5274
5395
  labelFontLineHeight: string;
5275
5396
  labelLetterSpacing: string;
5276
- paddingLeft: string;
5277
- paddingRight: string;
5278
- paddingTop: string;
5279
- paddingBottom: string;
5397
+ paddingSmallTop: string;
5398
+ paddingSmallLeft: string;
5399
+ paddingSmallBottom: string;
5400
+ paddingSmallRight: string;
5401
+ paddingSmallOnlyIconTop: string;
5402
+ paddingSmallOnlyIconLeft: string;
5403
+ paddingSmallOnlyIconBottom: string;
5404
+ paddingSmallOnlyIconRight: string;
5405
+ paddingMediumTop: string;
5406
+ paddingMediumLeft: string;
5407
+ paddingMediumBottom: string;
5408
+ paddingMediumRight: string;
5409
+ paddingMediumOnlyIconTop: string;
5410
+ paddingMediumOnlyIconLeft: string;
5411
+ paddingMediumOnlyIconBottom: string;
5412
+ paddingMediumOnlyIconRight: string;
5413
+ paddingLargeTop: string;
5414
+ paddingLargeLeft: string;
5415
+ paddingLargeBottom: string;
5416
+ paddingLargeRight: string;
5417
+ paddingLargeOnlyIconTop: string;
5418
+ paddingLargeOnlyIconLeft: string;
5419
+ paddingLargeOnlyIconBottom: string;
5420
+ paddingLargeOnlyIconRight: string;
5280
5421
  focusBorderColor: string;
5281
- primaryBackgroundColor: string;
5282
- primaryFontColor: string;
5283
- primaryHoverBackgroundColor: string;
5284
- primaryActiveBackgroundColor: string;
5285
- primaryDisabledBackgroundColor: string;
5286
- primaryDisabledFontColor: string;
5422
+ primaryDefaultBackgroundColor: string;
5423
+ primaryErrorBackgroundColor: string;
5424
+ primaryWarningBackgroundColor: string;
5425
+ primarySuccessBackgroundColor: string;
5426
+ primaryInfoBackgroundColor: string;
5427
+ primaryDefaultFontColor: string;
5428
+ primaryErrorFontColor: string;
5429
+ primaryWarningFontColor: string;
5430
+ primarySuccessFontColor: string;
5431
+ primaryInfoFontColor: string;
5432
+ primaryHoverDefaultBackgroundColor: string;
5433
+ primaryHoverErrorBackgroundColor: string;
5434
+ primaryHoverWarningBackgroundColor: string;
5435
+ primaryHoverSuccessBackgroundColor: string;
5436
+ primaryHoverInfoBackgroundColor: string;
5437
+ primaryActiveDefaultBackgroundColor: string;
5438
+ primaryActiveErrorBackgroundColor: string;
5439
+ primaryActiveWarningBackgroundColor: string;
5440
+ primaryActiveSuccessBackgroundColor: string;
5441
+ primaryActiveInfoBackgroundColor: string;
5442
+ primaryDisabledDefaultBackgroundColor: string;
5443
+ primaryDisabledErrorBackgroundColor: string;
5444
+ primaryDisabledWarningBackgroundColor: string;
5445
+ primaryDisabledSuccessBackgroundColor: string;
5446
+ primaryDisabledInfoBackgroundColor: string;
5447
+ primaryDisabledDefaultFontColor: string;
5448
+ primaryDisabledErrorFontColor: string;
5449
+ primaryDisabledWarningFontColor: string;
5450
+ primaryDisabledSuccessFontColor: string;
5451
+ primaryDisabledInfoFontColor: string;
5287
5452
  primaryBorderThickness: string;
5288
5453
  primaryBorderStyle: string;
5289
5454
  primaryBorderRadius: string;
5290
5455
  primaryFontFamily: string;
5291
- primaryFontSize: string;
5456
+ primarySmallFontSize: string;
5457
+ primaryMediumFontSize: string;
5458
+ primaryLargeFontSize: string;
5292
5459
  primaryFontWeight: string;
5293
- secondaryBackgroundColor: string;
5294
- secondaryFontColor: string;
5295
- secondaryHoverFontColor: string;
5296
- secondaryBorderColor: string;
5297
- secondaryHoverBackgroundColor: string;
5298
- secondaryActiveBackgroundColor: string;
5299
- secondaryDisabledBackgroundColor: string;
5300
- secondaryDisabledFontColor: string;
5301
- secondaryDisabledBorderColor: string;
5460
+ secondaryDefaultBackgroundColor: string;
5461
+ secondaryErrorBackgroundColor: string;
5462
+ secondaryWarningBackgroundColor: string;
5463
+ secondarySuccessBackgroundColor: string;
5464
+ secondaryInfoBackgroundColor: string;
5465
+ secondaryDefaultFontColor: string;
5466
+ secondaryErrorFontColor: string;
5467
+ secondaryWarningFontColor: string;
5468
+ secondarySuccessFontColor: string;
5469
+ secondaryInfoFontColor: string;
5470
+ secondaryDefaultBorderColor: string;
5471
+ secondaryErrorBorderColor: string;
5472
+ secondaryWarningBorderColor: string;
5473
+ secondarySuccessBorderColor: string;
5474
+ secondaryInfoBorderColor: string;
5475
+ secondaryHoverDefaultBackgroundColor: string;
5476
+ secondaryHoverErrorBackgroundColor: string;
5477
+ secondaryHoverWarningBackgroundColor: string;
5478
+ secondaryHoverSuccessBackgroundColor: string;
5479
+ secondaryHoverInfoBackgroundColor: string;
5480
+ secondaryHoverDefaultFontColor: string;
5481
+ secondaryHoverErrorFontColor: string;
5482
+ secondaryHoverWarningFontColor: string;
5483
+ secondaryHoverSuccessFontColor: string;
5484
+ secondaryHoverInfoFontColor: string;
5485
+ secondaryActiveDefaultBackgroundColor: string;
5486
+ secondaryActiveErrorBackgroundColor: string;
5487
+ secondaryActiveWarningBackgroundColor: string;
5488
+ secondaryActiveSuccessBackgroundColor: string;
5489
+ secondaryActiveInfoBackgroundColor: string;
5490
+ secondaryDisabledDefaultBackgroundColor: string;
5491
+ secondaryDisabledErrorBackgroundColor: string;
5492
+ secondaryDisabledWarningBackgroundColor: string;
5493
+ secondaryDisabledSuccessBackgroundColor: string;
5494
+ secondaryDisabledInfoBackgroundColor: string;
5495
+ secondaryDisabledDefaultFontColor: string;
5496
+ secondaryDisabledErrorFontColor: string;
5497
+ secondaryDisabledWarningFontColor: string;
5498
+ secondaryDisabledSuccessFontColor: string;
5499
+ secondaryDisabledInfoFontColor: string;
5500
+ secondaryDisabledDefaultBorderColor: string;
5501
+ secondaryDisabledErrorBorderColor: string;
5502
+ secondaryDisabledWarningBorderColor: string;
5503
+ secondaryDisabledSuccessBorderColor: string;
5504
+ secondaryDisabledInfoBorderColor: string;
5302
5505
  secondaryBorderThickness: string;
5303
5506
  secondaryBorderStyle: string;
5304
5507
  secondaryBorderRadius: string;
5305
5508
  secondaryFontFamily: string;
5306
- secondaryFontSize: string;
5509
+ secondarySmallFontSize: string;
5510
+ secondaryMediumFontSize: string;
5511
+ secondaryLargeFontSize: string;
5307
5512
  secondaryFontWeight: string;
5308
- textBackgroundColor: string;
5309
- textFontColor: string;
5310
- textHoverBackgroundColor: string;
5311
- textActiveBackgroundColor: string;
5312
- textDisabledBackgroundColor: string;
5313
- textDisabledFontColor: string;
5314
- textBorderThickness: string;
5315
- textBorderStyle: string;
5316
- textBorderRadius: string;
5317
- textFontFamily: string;
5318
- textFontSize: string;
5319
- textFontWeight: string;
5513
+ tertiaryDefaultBackgroundColor: string;
5514
+ tertiaryErrorBackgroundColor: string;
5515
+ tertiaryWarningBackgroundColor: string;
5516
+ tertiarySuccessBackgroundColor: string;
5517
+ tertiaryInfoBackgroundColor: string;
5518
+ tertiaryDefaultFontColor: string;
5519
+ tertiaryErrorFontColor: string;
5520
+ tertiaryWarningFontColor: string;
5521
+ tertiarySuccessFontColor: string;
5522
+ tertiaryInfoFontColor: string;
5523
+ tertiaryHoverDefaultBackgroundColor: string;
5524
+ tertiaryHoverErrorBackgroundColor: string;
5525
+ tertiaryHoverWarningBackgroundColor: string;
5526
+ tertiaryHoverSuccessBackgroundColor: string;
5527
+ tertiaryHoverInfoBackgroundColor: string;
5528
+ tertiaryActiveDefaultBackgroundColor: string;
5529
+ tertiaryActiveErrorBackgroundColor: string;
5530
+ tertiaryActiveWarningBackgroundColor: string;
5531
+ tertiaryActiveSuccessBackgroundColor: string;
5532
+ tertiaryActiveInfoBackgroundColor: string;
5533
+ tertiaryDisabledDefaultBackgroundColor: string;
5534
+ tertiaryDisabledErrorBackgroundColor: string;
5535
+ tertiaryDisabledWarningBackgroundColor: string;
5536
+ tertiaryDisabledSuccessBackgroundColor: string;
5537
+ tertiaryDisabledInfoBackgroundColor: string;
5538
+ tertiaryDisabledDefaultFontColor: string;
5539
+ tertiaryDisabledErrorFontColor: string;
5540
+ tertiaryDisabledWarningFontColor: string;
5541
+ tertiaryDisabledSuccessFontColor: string;
5542
+ tertiaryDisabledInfoFontColor: string;
5543
+ tertiaryBorderThickness: string;
5544
+ tertiaryBorderStyle: string;
5545
+ tertiaryBorderRadius: string;
5546
+ tertiaryFontFamily: string;
5547
+ tertiarySmallFontSize: string;
5548
+ tertiaryMediumFontSize: string;
5549
+ tertiaryLargeFontSize: string;
5550
+ tertiaryFontWeight: string;
5320
5551
  };
5321
5552
  card: {
5322
5553
  height: string;