@commercetools-uikit/rich-text-utils 18.0.0 → 18.2.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.
@@ -504,6 +504,9 @@ const getColor$b = color => {
504
504
  case 'error':
505
505
  iconColor = designSystem.designTokens.colorError;
506
506
  break;
507
+ case 'success':
508
+ iconColor = designSystem.designTokens.colorSuccess;
509
+ break;
507
510
  }
508
511
  if (!iconColor) {
509
512
  return 'inherit';
@@ -602,6 +605,9 @@ const getColor$a = color => {
602
605
  case 'error':
603
606
  iconColor = designSystem.designTokens.colorError;
604
607
  break;
608
+ case 'success':
609
+ iconColor = designSystem.designTokens.colorSuccess;
610
+ break;
605
611
  }
606
612
  if (!iconColor) {
607
613
  return 'inherit';
@@ -698,6 +704,9 @@ const getColor$9 = color => {
698
704
  case 'error':
699
705
  iconColor = designSystem.designTokens.colorError;
700
706
  break;
707
+ case 'success':
708
+ iconColor = designSystem.designTokens.colorSuccess;
709
+ break;
701
710
  }
702
711
  if (!iconColor) {
703
712
  return 'inherit';
@@ -796,6 +805,9 @@ const getColor$8 = color => {
796
805
  case 'error':
797
806
  iconColor = designSystem.designTokens.colorError;
798
807
  break;
808
+ case 'success':
809
+ iconColor = designSystem.designTokens.colorSuccess;
810
+ break;
799
811
  }
800
812
  if (!iconColor) {
801
813
  return 'inherit';
@@ -900,6 +912,9 @@ const getColor$7 = color => {
900
912
  case 'error':
901
913
  iconColor = designSystem.designTokens.colorError;
902
914
  break;
915
+ case 'success':
916
+ iconColor = designSystem.designTokens.colorSuccess;
917
+ break;
903
918
  }
904
919
  if (!iconColor) {
905
920
  return 'inherit';
@@ -998,6 +1013,9 @@ const getColor$6 = color => {
998
1013
  case 'error':
999
1014
  iconColor = designSystem.designTokens.colorError;
1000
1015
  break;
1016
+ case 'success':
1017
+ iconColor = designSystem.designTokens.colorSuccess;
1018
+ break;
1001
1019
  }
1002
1020
  if (!iconColor) {
1003
1021
  return 'inherit';
@@ -1103,6 +1121,9 @@ const getColor$5 = color => {
1103
1121
  case 'error':
1104
1122
  iconColor = designSystem.designTokens.colorError;
1105
1123
  break;
1124
+ case 'success':
1125
+ iconColor = designSystem.designTokens.colorSuccess;
1126
+ break;
1106
1127
  }
1107
1128
  if (!iconColor) {
1108
1129
  return 'inherit';
@@ -1201,6 +1222,9 @@ const getColor$4 = color => {
1201
1222
  case 'error':
1202
1223
  iconColor = designSystem.designTokens.colorError;
1203
1224
  break;
1225
+ case 'success':
1226
+ iconColor = designSystem.designTokens.colorSuccess;
1227
+ break;
1204
1228
  }
1205
1229
  if (!iconColor) {
1206
1230
  return 'inherit';
@@ -1301,6 +1325,9 @@ const getColor$3 = color => {
1301
1325
  case 'error':
1302
1326
  iconColor = designSystem.designTokens.colorError;
1303
1327
  break;
1328
+ case 'success':
1329
+ iconColor = designSystem.designTokens.colorSuccess;
1330
+ break;
1304
1331
  }
1305
1332
  if (!iconColor) {
1306
1333
  return 'inherit';
@@ -1402,6 +1429,9 @@ const getColor$2 = color => {
1402
1429
  case 'error':
1403
1430
  iconColor = designSystem.designTokens.colorError;
1404
1431
  break;
1432
+ case 'success':
1433
+ iconColor = designSystem.designTokens.colorSuccess;
1434
+ break;
1405
1435
  }
1406
1436
  if (!iconColor) {
1407
1437
  return 'inherit';
@@ -1500,6 +1530,9 @@ const getColor$1 = color => {
1500
1530
  case 'error':
1501
1531
  iconColor = designSystem.designTokens.colorError;
1502
1532
  break;
1533
+ case 'success':
1534
+ iconColor = designSystem.designTokens.colorSuccess;
1535
+ break;
1503
1536
  }
1504
1537
  if (!iconColor) {
1505
1538
  return 'inherit';
@@ -1604,6 +1637,9 @@ const getColor = color => {
1604
1637
  case 'error':
1605
1638
  iconColor = designSystem.designTokens.colorError;
1606
1639
  break;
1640
+ case 'success':
1641
+ iconColor = designSystem.designTokens.colorSuccess;
1642
+ break;
1607
1643
  }
1608
1644
  if (!iconColor) {
1609
1645
  return 'inherit';
@@ -2545,7 +2581,7 @@ RichTextEditorBody.defaultProps = defaultProps;
2545
2581
  var RichTextEditorBody$1 = RichTextEditorBody;
2546
2582
 
2547
2583
  // NOTE: This string will be replaced on build time with the package version.
2548
- var version = "18.0.0";
2584
+ var version = "18.2.0";
2549
2585
 
2550
2586
  exports.Element = Element;
2551
2587
  exports.HiddenInput = HiddenInput$1;