@7shifts/sous-chef 3.36.3-beta2 → 3.36.3-beta4

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.js CHANGED
@@ -608,7 +608,7 @@ var TooltipOverlay = function TooltipOverlay(_ref) {
608
608
  })));
609
609
  };
610
610
 
611
- var Tooltip = function Tooltip(_ref, forwardedRef) {
611
+ var TooltipElement = function TooltipElement(_ref, forwardedRef) {
612
612
  var _containerRef$current;
613
613
  var _ref$theme = _ref.theme,
614
614
  theme = _ref$theme === void 0 ? TOOLTIP_THEME.BLACK : _ref$theme,
@@ -720,7 +720,7 @@ var Tooltip = function Tooltip(_ref, forwardedRef) {
720
720
  ref: containerRef
721
721
  }, children, React__default.createElement(Overlay, null));
722
722
  };
723
- var Tooltip$1 = React.forwardRef(Tooltip);
723
+ var Tooltip = React.forwardRef(TooltipElement);
724
724
 
725
725
  var styles$5 = {"button":"_YjZTi","button--loading":"_26NX0","button__spinner":"_QZogP","button--size-min-width-100":"_3aXIr","button--size-full-width":"_kx7a5","button--icon-only":"_12Ld8","button--default":"_1xv5C","button--primary":"_9zcZL","button--danger":"_1lXaO","button--upsell":"_1cX3x","button--marketing":"_1KiTO","button--hollow":"_3PDms","button--hollow-contrast":"_eNGVS","button--link-contrast":"_3flSa","button--link-primary":"_3qhNi","button--link-danger":"_2WRNq","button--link-upsell":"_13HZE","button--link-toolbar":"_21xZy","button--link-icon":"_30evL"};
726
726
 
@@ -753,9 +753,27 @@ var BUTTON_TARGETS = {
753
753
  SELF: '_self'
754
754
  };
755
755
 
756
+ var ComponentIdentifierContext = React.createContext({
757
+ componentName: ''
758
+ });
759
+
760
+ var ComponentIdentifier = function ComponentIdentifier(_ref) {
761
+ var componentName = _ref.componentName,
762
+ children = _ref.children;
763
+ return React__default.createElement(ComponentIdentifierContext.Provider, {
764
+ value: {
765
+ componentName: componentName
766
+ }
767
+ }, children);
768
+ };
769
+
770
+ var COMPONENT_NAMES = {
771
+ BUTTON: 'BUTTON'
772
+ };
773
+
756
774
  var _excluded$4 = ["children", "type", "theme", "disabled", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "id", "loading", "title", "href", "target", "testId", "size"],
757
775
  _excluded2 = ["id", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "className", "type", "disabled", "href", "target", "children", "position", "dataProps"];
758
- var Button = function Button(_ref, ref) {
776
+ var ButtonComponent = function ButtonComponent(_ref, ref) {
759
777
  var _classnames;
760
778
  var children = _ref.children,
761
779
  _ref$type = _ref.type,
@@ -787,7 +805,7 @@ var Button = function Button(_ref, ref) {
787
805
  var contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.MARKETING, BUTTON_THEMES.LINK_CONTRAST];
788
806
  var childrenArr = React.Children.toArray(children);
789
807
  var isIconOnly = childrenArr.length === 1 && typeof childrenArr[0] != 'string';
790
- return React__default.createElement(Tooltip$1, {
808
+ return React__default.createElement(Tooltip, {
791
809
  overlay: title
792
810
  }, React__default.createElement(ButtonElement, {
793
811
  id: id,
@@ -846,19 +864,23 @@ var ButtonElement = React.forwardRef(function (_ref2, ref) {
846
864
  style: positionStyles
847
865
  }, dataProps);
848
866
  if (href) {
849
- return React__default.createElement("a", _extends({}, commonProps, rest, {
867
+ return React__default.createElement(ComponentIdentifier, {
868
+ componentName: COMPONENT_NAMES.BUTTON
869
+ }, React__default.createElement("a", _extends({}, commonProps, rest, {
850
870
  href: href,
851
871
  target: target,
852
872
  "aria-disabled": disabled,
853
873
  ref: ref
854
- }), children);
874
+ }), children));
855
875
  }
856
- return React__default.createElement("button", _extends({}, commonProps, rest, {
876
+ return React__default.createElement(ComponentIdentifier, {
877
+ componentName: COMPONENT_NAMES.BUTTON
878
+ }, React__default.createElement("button", _extends({}, commonProps, rest, {
857
879
  type: type,
858
880
  ref: ref
859
- }), children);
881
+ }), children));
860
882
  });
861
- var Button$1 = React.forwardRef(Button);
883
+ var Button = React.forwardRef(ButtonComponent);
862
884
 
863
885
  var ICON_SIZES = {
864
886
  small: '12px',
@@ -872,27 +894,42 @@ var getIconStyles = function getIconStyles(_ref) {
872
894
  size = _ref$size === void 0 ? 'default' : _ref$size,
873
895
  _ref$color = _ref.color,
874
896
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
875
- _ref$styles = _ref.styles,
876
- styles = _ref$styles === void 0 ? {} : _ref$styles;
897
+ _ref$style = _ref.style,
898
+ style = _ref$style === void 0 ? {} : _ref$style;
877
899
  return _extends({
878
900
  width: ICON_SIZES[size],
879
901
  height: ICON_SIZES[size],
880
902
  verticalAlign: 'middle',
881
903
  fill: color,
882
904
  color: getColor(color)
883
- }, styles);
905
+ }, style);
884
906
  };
885
907
 
886
- var _excluded$5 = ["testId"];
908
+ var useIsInsideComponent = function useIsInsideComponent(parentComponentName) {
909
+ var _useContext = React.useContext(ComponentIdentifierContext),
910
+ componentName = _useContext.componentName;
911
+ return componentName === parentComponentName;
912
+ };
913
+
914
+ var _excluded$5 = ["testId", "size", "color", "style"];
887
915
  var IconInfoCircle = React.forwardRef(function (_ref, ref) {
888
916
  var _ref$testId = _ref.testId,
889
917
  testId = _ref$testId === void 0 ? 'icon-info-circle' : _ref$testId,
918
+ size = _ref.size,
919
+ color = _ref.color,
920
+ style = _ref.style,
890
921
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
922
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
923
+ var styleProps = {
924
+ size: !size && isInsideButton ? 'medium' : size,
925
+ color: color,
926
+ style: style
927
+ };
891
928
  return React__default.createElement("svg", _extends({
892
929
  xmlns: "http://www.w3.org/2000/svg",
893
930
  fill: "none",
894
931
  viewBox: "0 0 20 20",
895
- style: getIconStyles(props),
932
+ style: getIconStyles(styleProps),
896
933
  "data-testid": testId,
897
934
  ref: ref
898
935
  }, props), React__default.createElement("path", {
@@ -904,16 +941,25 @@ var IconInfoCircle = React.forwardRef(function (_ref, ref) {
904
941
  });
905
942
  IconInfoCircle.displayName = 'IconInfoCircle';
906
943
 
907
- var _excluded$6 = ["testId"];
944
+ var _excluded$6 = ["testId", "size", "color", "style"];
908
945
  var IconAnalytics = React.forwardRef(function (_ref, ref) {
909
946
  var _ref$testId = _ref.testId,
910
947
  testId = _ref$testId === void 0 ? 'icon-analytics' : _ref$testId,
948
+ size = _ref.size,
949
+ color = _ref.color,
950
+ style = _ref.style,
911
951
  props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
952
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
953
+ var styleProps = {
954
+ size: !size && isInsideButton ? 'medium' : size,
955
+ color: color,
956
+ style: style
957
+ };
912
958
  return React__default.createElement("svg", _extends({
913
959
  xmlns: "http://www.w3.org/2000/svg",
914
960
  fill: "none",
915
961
  viewBox: "0 0 20 20",
916
- style: getIconStyles(props),
962
+ style: getIconStyles(styleProps),
917
963
  "data-testid": testId,
918
964
  ref: ref
919
965
  }, props), React__default.createElement("path", {
@@ -925,16 +971,25 @@ var IconAnalytics = React.forwardRef(function (_ref, ref) {
925
971
  });
926
972
  IconAnalytics.displayName = 'IconAnalytics';
927
973
 
928
- var _excluded$7 = ["testId"];
974
+ var _excluded$7 = ["testId", "size", "color", "style"];
929
975
  var IconArrowDownWideShort = React.forwardRef(function (_ref, ref) {
930
976
  var _ref$testId = _ref.testId,
931
977
  testId = _ref$testId === void 0 ? 'icon-arrow-down-wide-short' : _ref$testId,
978
+ size = _ref.size,
979
+ color = _ref.color,
980
+ style = _ref.style,
932
981
  props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
982
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
983
+ var styleProps = {
984
+ size: !size && isInsideButton ? 'medium' : size,
985
+ color: color,
986
+ style: style
987
+ };
933
988
  return React__default.createElement("svg", _extends({
934
989
  xmlns: "http://www.w3.org/2000/svg",
935
990
  fill: "none",
936
991
  viewBox: "0 0 20 20",
937
- style: getIconStyles(props),
992
+ style: getIconStyles(styleProps),
938
993
  "data-testid": testId,
939
994
  ref: ref
940
995
  }, props), React__default.createElement("path", {
@@ -944,16 +999,25 @@ var IconArrowDownWideShort = React.forwardRef(function (_ref, ref) {
944
999
  });
945
1000
  IconArrowDownWideShort.displayName = 'IconArrowDownWideShort';
946
1001
 
947
- var _excluded$8 = ["testId"];
1002
+ var _excluded$8 = ["testId", "size", "color", "style"];
948
1003
  var IconArrowDown = React.forwardRef(function (_ref, ref) {
949
1004
  var _ref$testId = _ref.testId,
950
1005
  testId = _ref$testId === void 0 ? 'icon-arrow-down' : _ref$testId,
1006
+ size = _ref.size,
1007
+ color = _ref.color,
1008
+ style = _ref.style,
951
1009
  props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
1010
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1011
+ var styleProps = {
1012
+ size: !size && isInsideButton ? 'medium' : size,
1013
+ color: color,
1014
+ style: style
1015
+ };
952
1016
  return React__default.createElement("svg", _extends({
953
1017
  xmlns: "http://www.w3.org/2000/svg",
954
1018
  fill: "none",
955
1019
  viewBox: "0 0 20 20",
956
- style: getIconStyles(props),
1020
+ style: getIconStyles(styleProps),
957
1021
  "data-testid": testId,
958
1022
  ref: ref
959
1023
  }, props), React__default.createElement("path", {
@@ -965,16 +1029,25 @@ var IconArrowDown = React.forwardRef(function (_ref, ref) {
965
1029
  });
966
1030
  IconArrowDown.displayName = 'IconArrowDown';
967
1031
 
968
- var _excluded$9 = ["testId"];
1032
+ var _excluded$9 = ["testId", "size", "color", "style"];
969
1033
  var IconArrowLeft = React.forwardRef(function (_ref, ref) {
970
1034
  var _ref$testId = _ref.testId,
971
1035
  testId = _ref$testId === void 0 ? 'icon-arrow-left' : _ref$testId,
1036
+ size = _ref.size,
1037
+ color = _ref.color,
1038
+ style = _ref.style,
972
1039
  props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1040
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1041
+ var styleProps = {
1042
+ size: !size && isInsideButton ? 'medium' : size,
1043
+ color: color,
1044
+ style: style
1045
+ };
973
1046
  return React__default.createElement("svg", _extends({
974
1047
  xmlns: "http://www.w3.org/2000/svg",
975
1048
  fill: "none",
976
1049
  viewBox: "0 0 20 20",
977
- style: getIconStyles(props),
1050
+ style: getIconStyles(styleProps),
978
1051
  "data-testid": testId,
979
1052
  ref: ref
980
1053
  }, props), React__default.createElement("path", {
@@ -986,16 +1059,25 @@ var IconArrowLeft = React.forwardRef(function (_ref, ref) {
986
1059
  });
987
1060
  IconArrowLeft.displayName = 'IconArrowLeft';
988
1061
 
989
- var _excluded$a = ["testId"];
1062
+ var _excluded$a = ["testId", "size", "color", "style"];
990
1063
  var IconArrowRight = React.forwardRef(function (_ref, ref) {
991
1064
  var _ref$testId = _ref.testId,
992
1065
  testId = _ref$testId === void 0 ? 'icon-arrow-right' : _ref$testId,
1066
+ size = _ref.size,
1067
+ color = _ref.color,
1068
+ style = _ref.style,
993
1069
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1070
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1071
+ var styleProps = {
1072
+ size: !size && isInsideButton ? 'medium' : size,
1073
+ color: color,
1074
+ style: style
1075
+ };
994
1076
  return React__default.createElement("svg", _extends({
995
1077
  xmlns: "http://www.w3.org/2000/svg",
996
1078
  fill: "none",
997
1079
  viewBox: "0 0 20 20",
998
- style: getIconStyles(props),
1080
+ style: getIconStyles(styleProps),
999
1081
  "data-testid": testId,
1000
1082
  ref: ref
1001
1083
  }, props), React__default.createElement("path", {
@@ -1007,16 +1089,25 @@ var IconArrowRight = React.forwardRef(function (_ref, ref) {
1007
1089
  });
1008
1090
  IconArrowRight.displayName = 'IconArrowRight';
1009
1091
 
1010
- var _excluded$b = ["testId"];
1092
+ var _excluded$b = ["testId", "size", "color", "style"];
1011
1093
  var IconArrowToTop = React.forwardRef(function (_ref, ref) {
1012
1094
  var _ref$testId = _ref.testId,
1013
1095
  testId = _ref$testId === void 0 ? 'icon-arrow-to-top' : _ref$testId,
1096
+ size = _ref.size,
1097
+ color = _ref.color,
1098
+ style = _ref.style,
1014
1099
  props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
1100
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1101
+ var styleProps = {
1102
+ size: !size && isInsideButton ? 'medium' : size,
1103
+ color: color,
1104
+ style: style
1105
+ };
1015
1106
  return React__default.createElement("svg", _extends({
1016
1107
  xmlns: "http://www.w3.org/2000/svg",
1017
1108
  fill: "none",
1018
1109
  viewBox: "0 0 20 20",
1019
- style: getIconStyles(props),
1110
+ style: getIconStyles(styleProps),
1020
1111
  "data-testid": testId,
1021
1112
  ref: ref
1022
1113
  }, props), React__default.createElement("path", {
@@ -1026,16 +1117,25 @@ var IconArrowToTop = React.forwardRef(function (_ref, ref) {
1026
1117
  });
1027
1118
  IconArrowToTop.displayName = 'IconArrowToTop';
1028
1119
 
1029
- var _excluded$c = ["testId"];
1120
+ var _excluded$c = ["testId", "size", "color", "style"];
1030
1121
  var IconArrowTurnDownRight = React.forwardRef(function (_ref, ref) {
1031
1122
  var _ref$testId = _ref.testId,
1032
1123
  testId = _ref$testId === void 0 ? 'icon-arrow-turn-down-right' : _ref$testId,
1124
+ size = _ref.size,
1125
+ color = _ref.color,
1126
+ style = _ref.style,
1033
1127
  props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
1128
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1129
+ var styleProps = {
1130
+ size: !size && isInsideButton ? 'medium' : size,
1131
+ color: color,
1132
+ style: style
1133
+ };
1034
1134
  return React__default.createElement("svg", _extends({
1035
1135
  xmlns: "http://www.w3.org/2000/svg",
1036
1136
  fill: "none",
1037
1137
  viewBox: "0 0 20 20",
1038
- style: getIconStyles(props),
1138
+ style: getIconStyles(styleProps),
1039
1139
  "data-testid": testId,
1040
1140
  ref: ref
1041
1141
  }, props), React__default.createElement("g", {
@@ -1053,16 +1153,25 @@ var IconArrowTurnDownRight = React.forwardRef(function (_ref, ref) {
1053
1153
  });
1054
1154
  IconArrowTurnDownRight.displayName = 'IconArrowTurnDownRight';
1055
1155
 
1056
- var _excluded$d = ["testId"];
1156
+ var _excluded$d = ["testId", "size", "color", "style"];
1057
1157
  var IconArrowUp = React.forwardRef(function (_ref, ref) {
1058
1158
  var _ref$testId = _ref.testId,
1059
1159
  testId = _ref$testId === void 0 ? 'icon-arrow-up' : _ref$testId,
1160
+ size = _ref.size,
1161
+ color = _ref.color,
1162
+ style = _ref.style,
1060
1163
  props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
1164
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1165
+ var styleProps = {
1166
+ size: !size && isInsideButton ? 'medium' : size,
1167
+ color: color,
1168
+ style: style
1169
+ };
1061
1170
  return React__default.createElement("svg", _extends({
1062
1171
  xmlns: "http://www.w3.org/2000/svg",
1063
1172
  fill: "none",
1064
1173
  viewBox: "0 0 20 20",
1065
- style: getIconStyles(props),
1174
+ style: getIconStyles(styleProps),
1066
1175
  "data-testid": testId,
1067
1176
  ref: ref
1068
1177
  }, props), React__default.createElement("path", {
@@ -1074,16 +1183,25 @@ var IconArrowUp = React.forwardRef(function (_ref, ref) {
1074
1183
  });
1075
1184
  IconArrowUp.displayName = 'IconArrowUp';
1076
1185
 
1077
- var _excluded$e = ["testId"];
1186
+ var _excluded$e = ["testId", "size", "color", "style"];
1078
1187
  var IconAward = React.forwardRef(function (_ref, ref) {
1079
1188
  var _ref$testId = _ref.testId,
1080
1189
  testId = _ref$testId === void 0 ? 'icon-award' : _ref$testId,
1190
+ size = _ref.size,
1191
+ color = _ref.color,
1192
+ style = _ref.style,
1081
1193
  props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
1194
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1195
+ var styleProps = {
1196
+ size: !size && isInsideButton ? 'medium' : size,
1197
+ color: color,
1198
+ style: style
1199
+ };
1082
1200
  return React__default.createElement("svg", _extends({
1083
1201
  xmlns: "http://www.w3.org/2000/svg",
1084
1202
  fill: "none",
1085
1203
  viewBox: "0 0 20 20",
1086
- style: getIconStyles(props),
1204
+ style: getIconStyles(styleProps),
1087
1205
  "data-testid": testId,
1088
1206
  ref: ref
1089
1207
  }, props), React__default.createElement("path", {
@@ -1095,16 +1213,25 @@ var IconAward = React.forwardRef(function (_ref, ref) {
1095
1213
  });
1096
1214
  IconAward.displayName = 'IconAward';
1097
1215
 
1098
- var _excluded$f = ["testId"];
1216
+ var _excluded$f = ["testId", "size", "color", "style"];
1099
1217
  var IconAwfulMonochromatic = React.forwardRef(function (_ref, ref) {
1100
1218
  var _ref$testId = _ref.testId,
1101
1219
  testId = _ref$testId === void 0 ? 'icon-awful-monochromatic' : _ref$testId,
1220
+ size = _ref.size,
1221
+ color = _ref.color,
1222
+ style = _ref.style,
1102
1223
  props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
1224
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1225
+ var styleProps = {
1226
+ size: !size && isInsideButton ? 'medium' : size,
1227
+ color: color,
1228
+ style: style
1229
+ };
1103
1230
  return React__default.createElement("svg", _extends({
1104
1231
  xmlns: "http://www.w3.org/2000/svg",
1105
1232
  fill: "none",
1106
1233
  viewBox: "0 0 20 20",
1107
- style: getIconStyles(props),
1234
+ style: getIconStyles(styleProps),
1108
1235
  "data-testid": testId,
1109
1236
  ref: ref
1110
1237
  }, props), React__default.createElement("path", {
@@ -1146,16 +1273,25 @@ var IconAwfulMonochromatic = React.forwardRef(function (_ref, ref) {
1146
1273
  });
1147
1274
  IconAwfulMonochromatic.displayName = 'IconAwfulMonochromatic';
1148
1275
 
1149
- var _excluded$g = ["testId"];
1276
+ var _excluded$g = ["testId", "size", "color", "style"];
1150
1277
  var IconAwful = React.forwardRef(function (_ref, ref) {
1151
1278
  var _ref$testId = _ref.testId,
1152
1279
  testId = _ref$testId === void 0 ? 'icon-awful' : _ref$testId,
1280
+ size = _ref.size,
1281
+ color = _ref.color,
1282
+ style = _ref.style,
1153
1283
  props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
1284
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1285
+ var styleProps = {
1286
+ size: !size && isInsideButton ? 'medium' : size,
1287
+ color: color,
1288
+ style: style
1289
+ };
1154
1290
  return React__default.createElement("svg", _extends({
1155
1291
  xmlns: "http://www.w3.org/2000/svg",
1156
1292
  fill: "none",
1157
1293
  viewBox: "0 0 20 20",
1158
- style: getIconStyles(props),
1294
+ style: getIconStyles(styleProps),
1159
1295
  "data-testid": testId,
1160
1296
  ref: ref
1161
1297
  }, props), React__default.createElement("path", {
@@ -1185,16 +1321,25 @@ var IconAwful = React.forwardRef(function (_ref, ref) {
1185
1321
  });
1186
1322
  IconAwful.displayName = 'IconAwful';
1187
1323
 
1188
- var _excluded$h = ["testId"];
1324
+ var _excluded$h = ["testId", "size", "color", "style"];
1189
1325
  var IconBadMonochromatic = React.forwardRef(function (_ref, ref) {
1190
1326
  var _ref$testId = _ref.testId,
1191
1327
  testId = _ref$testId === void 0 ? 'icon-bad-monochromatic' : _ref$testId,
1328
+ size = _ref.size,
1329
+ color = _ref.color,
1330
+ style = _ref.style,
1192
1331
  props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
1332
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1333
+ var styleProps = {
1334
+ size: !size && isInsideButton ? 'medium' : size,
1335
+ color: color,
1336
+ style: style
1337
+ };
1193
1338
  return React__default.createElement("svg", _extends({
1194
1339
  xmlns: "http://www.w3.org/2000/svg",
1195
1340
  fill: "none",
1196
1341
  viewBox: "0 0 20 20",
1197
- style: getIconStyles(props),
1342
+ style: getIconStyles(styleProps),
1198
1343
  "data-testid": testId,
1199
1344
  ref: ref
1200
1345
  }, props), React__default.createElement("path", {
@@ -1222,16 +1367,25 @@ var IconBadMonochromatic = React.forwardRef(function (_ref, ref) {
1222
1367
  });
1223
1368
  IconBadMonochromatic.displayName = 'IconBadMonochromatic';
1224
1369
 
1225
- var _excluded$i = ["testId"];
1370
+ var _excluded$i = ["testId", "size", "color", "style"];
1226
1371
  var IconBad = React.forwardRef(function (_ref, ref) {
1227
1372
  var _ref$testId = _ref.testId,
1228
1373
  testId = _ref$testId === void 0 ? 'icon-bad' : _ref$testId,
1374
+ size = _ref.size,
1375
+ color = _ref.color,
1376
+ style = _ref.style,
1229
1377
  props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
1378
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1379
+ var styleProps = {
1380
+ size: !size && isInsideButton ? 'medium' : size,
1381
+ color: color,
1382
+ style: style
1383
+ };
1230
1384
  return React__default.createElement("svg", _extends({
1231
1385
  xmlns: "http://www.w3.org/2000/svg",
1232
1386
  fill: "none",
1233
1387
  viewBox: "0 0 20 20",
1234
- style: getIconStyles(props),
1388
+ style: getIconStyles(styleProps),
1235
1389
  "data-testid": testId,
1236
1390
  ref: ref
1237
1391
  }, props), React__default.createElement("path", {
@@ -1247,16 +1401,25 @@ var IconBad = React.forwardRef(function (_ref, ref) {
1247
1401
  });
1248
1402
  IconBad.displayName = 'IconBad';
1249
1403
 
1250
- var _excluded$j = ["testId"];
1404
+ var _excluded$j = ["testId", "size", "color", "style"];
1251
1405
  var IconBalanceScaleLeft = React.forwardRef(function (_ref, ref) {
1252
1406
  var _ref$testId = _ref.testId,
1253
1407
  testId = _ref$testId === void 0 ? 'icon-balance-scale-left' : _ref$testId,
1408
+ size = _ref.size,
1409
+ color = _ref.color,
1410
+ style = _ref.style,
1254
1411
  props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
1412
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1413
+ var styleProps = {
1414
+ size: !size && isInsideButton ? 'medium' : size,
1415
+ color: color,
1416
+ style: style
1417
+ };
1255
1418
  return React__default.createElement("svg", _extends({
1256
1419
  xmlns: "http://www.w3.org/2000/svg",
1257
1420
  fill: "none",
1258
1421
  viewBox: "0 0 20 20",
1259
- style: getIconStyles(props),
1422
+ style: getIconStyles(styleProps),
1260
1423
  "data-testid": testId,
1261
1424
  ref: ref
1262
1425
  }, props), React__default.createElement("g", {
@@ -1273,16 +1436,25 @@ var IconBalanceScaleLeft = React.forwardRef(function (_ref, ref) {
1273
1436
  });
1274
1437
  IconBalanceScaleLeft.displayName = 'IconBalanceScaleLeft';
1275
1438
 
1276
- var _excluded$k = ["testId"];
1439
+ var _excluded$k = ["testId", "size", "color", "style"];
1277
1440
  var IconBalanceScale = React.forwardRef(function (_ref, ref) {
1278
1441
  var _ref$testId = _ref.testId,
1279
1442
  testId = _ref$testId === void 0 ? 'icon-balance-scale' : _ref$testId,
1443
+ size = _ref.size,
1444
+ color = _ref.color,
1445
+ style = _ref.style,
1280
1446
  props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
1447
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1448
+ var styleProps = {
1449
+ size: !size && isInsideButton ? 'medium' : size,
1450
+ color: color,
1451
+ style: style
1452
+ };
1281
1453
  return React__default.createElement("svg", _extends({
1282
1454
  xmlns: "http://www.w3.org/2000/svg",
1283
1455
  fill: "none",
1284
1456
  viewBox: "0 0 20 20",
1285
- style: getIconStyles(props),
1457
+ style: getIconStyles(styleProps),
1286
1458
  "data-testid": testId,
1287
1459
  ref: ref
1288
1460
  }, props), React__default.createElement("g", {
@@ -1299,16 +1471,25 @@ var IconBalanceScale = React.forwardRef(function (_ref, ref) {
1299
1471
  });
1300
1472
  IconBalanceScale.displayName = 'IconBalanceScale';
1301
1473
 
1302
- var _excluded$l = ["testId"];
1474
+ var _excluded$l = ["testId", "size", "color", "style"];
1303
1475
  var IconBan = React.forwardRef(function (_ref, ref) {
1304
1476
  var _ref$testId = _ref.testId,
1305
1477
  testId = _ref$testId === void 0 ? 'icon-ban' : _ref$testId,
1478
+ size = _ref.size,
1479
+ color = _ref.color,
1480
+ style = _ref.style,
1306
1481
  props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
1482
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1483
+ var styleProps = {
1484
+ size: !size && isInsideButton ? 'medium' : size,
1485
+ color: color,
1486
+ style: style
1487
+ };
1307
1488
  return React__default.createElement("svg", _extends({
1308
1489
  xmlns: "http://www.w3.org/2000/svg",
1309
1490
  fill: "none",
1310
1491
  viewBox: "0 0 20 20",
1311
- style: getIconStyles(props),
1492
+ style: getIconStyles(styleProps),
1312
1493
  "data-testid": testId,
1313
1494
  ref: ref
1314
1495
  }, props), React__default.createElement("path", {
@@ -1318,16 +1499,25 @@ var IconBan = React.forwardRef(function (_ref, ref) {
1318
1499
  });
1319
1500
  IconBan.displayName = 'IconBan';
1320
1501
 
1321
- var _excluded$m = ["testId"];
1502
+ var _excluded$m = ["testId", "size", "color", "style"];
1322
1503
  var IconBarsH = React.forwardRef(function (_ref, ref) {
1323
1504
  var _ref$testId = _ref.testId,
1324
1505
  testId = _ref$testId === void 0 ? 'icon-bars-h' : _ref$testId,
1506
+ size = _ref.size,
1507
+ color = _ref.color,
1508
+ style = _ref.style,
1325
1509
  props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
1510
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1511
+ var styleProps = {
1512
+ size: !size && isInsideButton ? 'medium' : size,
1513
+ color: color,
1514
+ style: style
1515
+ };
1326
1516
  return React__default.createElement("svg", _extends({
1327
1517
  xmlns: "http://www.w3.org/2000/svg",
1328
1518
  fill: "none",
1329
1519
  viewBox: "0 0 20 20",
1330
- style: getIconStyles(props),
1520
+ style: getIconStyles(styleProps),
1331
1521
  "data-testid": testId,
1332
1522
  ref: ref
1333
1523
  }, props), React__default.createElement("path", {
@@ -1339,16 +1529,25 @@ var IconBarsH = React.forwardRef(function (_ref, ref) {
1339
1529
  });
1340
1530
  IconBarsH.displayName = 'IconBarsH';
1341
1531
 
1342
- var _excluded$n = ["testId"];
1532
+ var _excluded$n = ["testId", "size", "color", "style"];
1343
1533
  var IconBarsV = React.forwardRef(function (_ref, ref) {
1344
1534
  var _ref$testId = _ref.testId,
1345
1535
  testId = _ref$testId === void 0 ? 'icon-bars-v' : _ref$testId,
1536
+ size = _ref.size,
1537
+ color = _ref.color,
1538
+ style = _ref.style,
1346
1539
  props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
1540
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1541
+ var styleProps = {
1542
+ size: !size && isInsideButton ? 'medium' : size,
1543
+ color: color,
1544
+ style: style
1545
+ };
1347
1546
  return React__default.createElement("svg", _extends({
1348
1547
  xmlns: "http://www.w3.org/2000/svg",
1349
1548
  fill: "none",
1350
1549
  viewBox: "0 0 20 20",
1351
- style: getIconStyles(props),
1550
+ style: getIconStyles(styleProps),
1352
1551
  "data-testid": testId,
1353
1552
  ref: ref
1354
1553
  }, props), React__default.createElement("path", {
@@ -1358,16 +1557,25 @@ var IconBarsV = React.forwardRef(function (_ref, ref) {
1358
1557
  });
1359
1558
  IconBarsV.displayName = 'IconBarsV';
1360
1559
 
1361
- var _excluded$o = ["testId"];
1560
+ var _excluded$o = ["testId", "size", "color", "style"];
1362
1561
  var IconBell = React.forwardRef(function (_ref, ref) {
1363
1562
  var _ref$testId = _ref.testId,
1364
1563
  testId = _ref$testId === void 0 ? 'icon-bell' : _ref$testId,
1564
+ size = _ref.size,
1565
+ color = _ref.color,
1566
+ style = _ref.style,
1365
1567
  props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
1568
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1569
+ var styleProps = {
1570
+ size: !size && isInsideButton ? 'medium' : size,
1571
+ color: color,
1572
+ style: style
1573
+ };
1366
1574
  return React__default.createElement("svg", _extends({
1367
1575
  xmlns: "http://www.w3.org/2000/svg",
1368
1576
  fill: "none",
1369
1577
  viewBox: "0 0 20 20",
1370
- style: getIconStyles(props),
1578
+ style: getIconStyles(styleProps),
1371
1579
  "data-testid": testId,
1372
1580
  ref: ref
1373
1581
  }, props), React__default.createElement("path", {
@@ -1379,16 +1587,25 @@ var IconBell = React.forwardRef(function (_ref, ref) {
1379
1587
  });
1380
1588
  IconBell.displayName = 'IconBell';
1381
1589
 
1382
- var _excluded$p = ["testId"];
1590
+ var _excluded$p = ["testId", "size", "color", "style"];
1383
1591
  var IconBirthdayCake = React.forwardRef(function (_ref, ref) {
1384
1592
  var _ref$testId = _ref.testId,
1385
1593
  testId = _ref$testId === void 0 ? 'icon-birthday-cake' : _ref$testId,
1594
+ size = _ref.size,
1595
+ color = _ref.color,
1596
+ style = _ref.style,
1386
1597
  props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
1598
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1599
+ var styleProps = {
1600
+ size: !size && isInsideButton ? 'medium' : size,
1601
+ color: color,
1602
+ style: style
1603
+ };
1387
1604
  return React__default.createElement("svg", _extends({
1388
1605
  xmlns: "http://www.w3.org/2000/svg",
1389
1606
  fill: "none",
1390
1607
  viewBox: "0 0 20 20",
1391
- style: getIconStyles(props),
1608
+ style: getIconStyles(styleProps),
1392
1609
  "data-testid": testId,
1393
1610
  ref: ref
1394
1611
  }, props), React__default.createElement("path", {
@@ -1398,16 +1615,25 @@ var IconBirthdayCake = React.forwardRef(function (_ref, ref) {
1398
1615
  });
1399
1616
  IconBirthdayCake.displayName = 'IconBirthdayCake';
1400
1617
 
1401
- var _excluded$q = ["testId"];
1618
+ var _excluded$q = ["testId", "size", "color", "style"];
1402
1619
  var IconBold = React.forwardRef(function (_ref, ref) {
1403
1620
  var _ref$testId = _ref.testId,
1404
1621
  testId = _ref$testId === void 0 ? 'icon-bold' : _ref$testId,
1622
+ size = _ref.size,
1623
+ color = _ref.color,
1624
+ style = _ref.style,
1405
1625
  props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
1626
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1627
+ var styleProps = {
1628
+ size: !size && isInsideButton ? 'medium' : size,
1629
+ color: color,
1630
+ style: style
1631
+ };
1406
1632
  return React__default.createElement("svg", _extends({
1407
1633
  xmlns: "http://www.w3.org/2000/svg",
1408
1634
  fill: "none",
1409
1635
  viewBox: "0 0 20 20",
1410
- style: getIconStyles(props),
1636
+ style: getIconStyles(styleProps),
1411
1637
  "data-testid": testId,
1412
1638
  ref: ref
1413
1639
  }, props), React__default.createElement("path", {
@@ -1417,16 +1643,25 @@ var IconBold = React.forwardRef(function (_ref, ref) {
1417
1643
  });
1418
1644
  IconBold.displayName = 'IconBold';
1419
1645
 
1420
- var _excluded$r = ["testId"];
1646
+ var _excluded$r = ["testId", "size", "color", "style"];
1421
1647
  var IconBolt = React.forwardRef(function (_ref, ref) {
1422
1648
  var _ref$testId = _ref.testId,
1423
1649
  testId = _ref$testId === void 0 ? 'icon-bolt' : _ref$testId,
1650
+ size = _ref.size,
1651
+ color = _ref.color,
1652
+ style = _ref.style,
1424
1653
  props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
1654
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1655
+ var styleProps = {
1656
+ size: !size && isInsideButton ? 'medium' : size,
1657
+ color: color,
1658
+ style: style
1659
+ };
1425
1660
  return React__default.createElement("svg", _extends({
1426
1661
  xmlns: "http://www.w3.org/2000/svg",
1427
1662
  fill: "none",
1428
1663
  viewBox: "0 0 20 20",
1429
- style: getIconStyles(props),
1664
+ style: getIconStyles(styleProps),
1430
1665
  "data-testid": testId,
1431
1666
  ref: ref
1432
1667
  }, props), React__default.createElement("g", {
@@ -1443,16 +1678,25 @@ var IconBolt = React.forwardRef(function (_ref, ref) {
1443
1678
  });
1444
1679
  IconBolt.displayName = 'IconBolt';
1445
1680
 
1446
- var _excluded$s = ["testId"];
1681
+ var _excluded$s = ["testId", "size", "color", "style"];
1447
1682
  var IconBook = React.forwardRef(function (_ref, ref) {
1448
1683
  var _ref$testId = _ref.testId,
1449
1684
  testId = _ref$testId === void 0 ? 'icon-book' : _ref$testId,
1685
+ size = _ref.size,
1686
+ color = _ref.color,
1687
+ style = _ref.style,
1450
1688
  props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
1689
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1690
+ var styleProps = {
1691
+ size: !size && isInsideButton ? 'medium' : size,
1692
+ color: color,
1693
+ style: style
1694
+ };
1451
1695
  return React__default.createElement("svg", _extends({
1452
1696
  xmlns: "http://www.w3.org/2000/svg",
1453
1697
  fill: "none",
1454
1698
  viewBox: "0 0 20 20",
1455
- style: getIconStyles(props),
1699
+ style: getIconStyles(styleProps),
1456
1700
  "data-testid": testId,
1457
1701
  ref: ref
1458
1702
  }, props), React__default.createElement("path", {
@@ -1464,16 +1708,25 @@ var IconBook = React.forwardRef(function (_ref, ref) {
1464
1708
  });
1465
1709
  IconBook.displayName = 'IconBook';
1466
1710
 
1467
- var _excluded$t = ["testId"];
1711
+ var _excluded$t = ["testId", "size", "color", "style"];
1468
1712
  var IconBriefcase = React.forwardRef(function (_ref, ref) {
1469
1713
  var _ref$testId = _ref.testId,
1470
1714
  testId = _ref$testId === void 0 ? 'icon-briefcase' : _ref$testId,
1715
+ size = _ref.size,
1716
+ color = _ref.color,
1717
+ style = _ref.style,
1471
1718
  props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
1719
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1720
+ var styleProps = {
1721
+ size: !size && isInsideButton ? 'medium' : size,
1722
+ color: color,
1723
+ style: style
1724
+ };
1472
1725
  return React__default.createElement("svg", _extends({
1473
1726
  xmlns: "http://www.w3.org/2000/svg",
1474
1727
  fill: "none",
1475
1728
  viewBox: "0 0 20 20",
1476
- style: getIconStyles(props),
1729
+ style: getIconStyles(styleProps),
1477
1730
  "data-testid": testId,
1478
1731
  ref: ref
1479
1732
  }, props), React__default.createElement("path", {
@@ -1483,16 +1736,25 @@ var IconBriefcase = React.forwardRef(function (_ref, ref) {
1483
1736
  });
1484
1737
  IconBriefcase.displayName = 'IconBriefcase';
1485
1738
 
1486
- var _excluded$u = ["testId"];
1739
+ var _excluded$u = ["testId", "size", "color", "style"];
1487
1740
  var IconBullseyeArrow = React.forwardRef(function (_ref, ref) {
1488
1741
  var _ref$testId = _ref.testId,
1489
1742
  testId = _ref$testId === void 0 ? 'icon-bullseye-arrow' : _ref$testId,
1743
+ size = _ref.size,
1744
+ color = _ref.color,
1745
+ style = _ref.style,
1490
1746
  props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
1747
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1748
+ var styleProps = {
1749
+ size: !size && isInsideButton ? 'medium' : size,
1750
+ color: color,
1751
+ style: style
1752
+ };
1491
1753
  return React__default.createElement("svg", _extends({
1492
1754
  xmlns: "http://www.w3.org/2000/svg",
1493
1755
  fill: "none",
1494
1756
  viewBox: "0 0 20 20",
1495
- style: getIconStyles(props),
1757
+ style: getIconStyles(styleProps),
1496
1758
  "data-testid": testId,
1497
1759
  ref: ref
1498
1760
  }, props), React__default.createElement("path", {
@@ -1504,16 +1766,25 @@ var IconBullseyeArrow = React.forwardRef(function (_ref, ref) {
1504
1766
  });
1505
1767
  IconBullseyeArrow.displayName = 'IconBullseyeArrow';
1506
1768
 
1507
- var _excluded$v = ["testId"];
1769
+ var _excluded$v = ["testId", "size", "color", "style"];
1508
1770
  var IconCalculator = React.forwardRef(function (_ref, ref) {
1509
1771
  var _ref$testId = _ref.testId,
1510
1772
  testId = _ref$testId === void 0 ? 'icon-calculator' : _ref$testId,
1773
+ size = _ref.size,
1774
+ color = _ref.color,
1775
+ style = _ref.style,
1511
1776
  props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1777
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1778
+ var styleProps = {
1779
+ size: !size && isInsideButton ? 'medium' : size,
1780
+ color: color,
1781
+ style: style
1782
+ };
1512
1783
  return React__default.createElement("svg", _extends({
1513
1784
  xmlns: "http://www.w3.org/2000/svg",
1514
1785
  fill: "none",
1515
1786
  viewBox: "0 0 20 20",
1516
- style: getIconStyles(props),
1787
+ style: getIconStyles(styleProps),
1517
1788
  "data-testid": testId,
1518
1789
  ref: ref
1519
1790
  }, props), React__default.createElement("path", {
@@ -1525,16 +1796,25 @@ var IconCalculator = React.forwardRef(function (_ref, ref) {
1525
1796
  });
1526
1797
  IconCalculator.displayName = 'IconCalculator';
1527
1798
 
1528
- var _excluded$w = ["testId"];
1799
+ var _excluded$w = ["testId", "size", "color", "style"];
1529
1800
  var IconCalendarAlt = React.forwardRef(function (_ref, ref) {
1530
1801
  var _ref$testId = _ref.testId,
1531
1802
  testId = _ref$testId === void 0 ? 'icon-calendar-alt' : _ref$testId,
1803
+ size = _ref.size,
1804
+ color = _ref.color,
1805
+ style = _ref.style,
1532
1806
  props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
1807
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1808
+ var styleProps = {
1809
+ size: !size && isInsideButton ? 'medium' : size,
1810
+ color: color,
1811
+ style: style
1812
+ };
1533
1813
  return React__default.createElement("svg", _extends({
1534
1814
  xmlns: "http://www.w3.org/2000/svg",
1535
1815
  fill: "none",
1536
1816
  viewBox: "0 0 20 20",
1537
- style: getIconStyles(props),
1817
+ style: getIconStyles(styleProps),
1538
1818
  "data-testid": testId,
1539
1819
  ref: ref
1540
1820
  }, props), React__default.createElement("path", {
@@ -1546,16 +1826,25 @@ var IconCalendarAlt = React.forwardRef(function (_ref, ref) {
1546
1826
  });
1547
1827
  IconCalendarAlt.displayName = 'IconCalendarAlt';
1548
1828
 
1549
- var _excluded$x = ["testId"];
1829
+ var _excluded$x = ["testId", "size", "color", "style"];
1550
1830
  var IconCalendarCheck = React.forwardRef(function (_ref, ref) {
1551
1831
  var _ref$testId = _ref.testId,
1552
1832
  testId = _ref$testId === void 0 ? 'icon-calendar-check' : _ref$testId,
1833
+ size = _ref.size,
1834
+ color = _ref.color,
1835
+ style = _ref.style,
1553
1836
  props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
1837
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1838
+ var styleProps = {
1839
+ size: !size && isInsideButton ? 'medium' : size,
1840
+ color: color,
1841
+ style: style
1842
+ };
1554
1843
  return React__default.createElement("svg", _extends({
1555
1844
  xmlns: "http://www.w3.org/2000/svg",
1556
1845
  fill: "none",
1557
1846
  viewBox: "0 0 20 20",
1558
- style: getIconStyles(props),
1847
+ style: getIconStyles(styleProps),
1559
1848
  "data-testid": testId,
1560
1849
  ref: ref
1561
1850
  }, props), React__default.createElement("path", {
@@ -1567,16 +1856,25 @@ var IconCalendarCheck = React.forwardRef(function (_ref, ref) {
1567
1856
  });
1568
1857
  IconCalendarCheck.displayName = 'IconCalendarCheck';
1569
1858
 
1570
- var _excluded$y = ["testId"];
1859
+ var _excluded$y = ["testId", "size", "color", "style"];
1571
1860
  var IconCalendarDay = React.forwardRef(function (_ref, ref) {
1572
1861
  var _ref$testId = _ref.testId,
1573
1862
  testId = _ref$testId === void 0 ? 'icon-calendar-day' : _ref$testId,
1863
+ size = _ref.size,
1864
+ color = _ref.color,
1865
+ style = _ref.style,
1574
1866
  props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1867
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1868
+ var styleProps = {
1869
+ size: !size && isInsideButton ? 'medium' : size,
1870
+ color: color,
1871
+ style: style
1872
+ };
1575
1873
  return React__default.createElement("svg", _extends({
1576
1874
  xmlns: "http://www.w3.org/2000/svg",
1577
1875
  fill: "none",
1578
1876
  viewBox: "0 0 20 20",
1579
- style: getIconStyles(props),
1877
+ style: getIconStyles(styleProps),
1580
1878
  "data-testid": testId,
1581
1879
  ref: ref
1582
1880
  }, props), React__default.createElement("g", {
@@ -1593,16 +1891,25 @@ var IconCalendarDay = React.forwardRef(function (_ref, ref) {
1593
1891
  });
1594
1892
  IconCalendarDay.displayName = 'IconCalendarDay';
1595
1893
 
1596
- var _excluded$z = ["testId"];
1894
+ var _excluded$z = ["testId", "size", "color", "style"];
1597
1895
  var IconCalendarExclamation = React.forwardRef(function (_ref, ref) {
1598
1896
  var _ref$testId = _ref.testId,
1599
1897
  testId = _ref$testId === void 0 ? 'icon-calendar-exclamation' : _ref$testId,
1898
+ size = _ref.size,
1899
+ color = _ref.color,
1900
+ style = _ref.style,
1600
1901
  props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1902
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1903
+ var styleProps = {
1904
+ size: !size && isInsideButton ? 'medium' : size,
1905
+ color: color,
1906
+ style: style
1907
+ };
1601
1908
  return React__default.createElement("svg", _extends({
1602
1909
  xmlns: "http://www.w3.org/2000/svg",
1603
1910
  fill: "none",
1604
1911
  viewBox: "0 0 20 20",
1605
- style: getIconStyles(props),
1912
+ style: getIconStyles(styleProps),
1606
1913
  "data-testid": testId,
1607
1914
  ref: ref
1608
1915
  }, props), React__default.createElement("path", {
@@ -1612,16 +1919,25 @@ var IconCalendarExclamation = React.forwardRef(function (_ref, ref) {
1612
1919
  });
1613
1920
  IconCalendarExclamation.displayName = 'IconCalendarExclamation';
1614
1921
 
1615
- var _excluded$A = ["testId"];
1922
+ var _excluded$A = ["testId", "size", "color", "style"];
1616
1923
  var IconCalendarStar = React.forwardRef(function (_ref, ref) {
1617
1924
  var _ref$testId = _ref.testId,
1618
1925
  testId = _ref$testId === void 0 ? 'icon-calendar-star' : _ref$testId,
1926
+ size = _ref.size,
1927
+ color = _ref.color,
1928
+ style = _ref.style,
1619
1929
  props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1930
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1931
+ var styleProps = {
1932
+ size: !size && isInsideButton ? 'medium' : size,
1933
+ color: color,
1934
+ style: style
1935
+ };
1620
1936
  return React__default.createElement("svg", _extends({
1621
1937
  xmlns: "http://www.w3.org/2000/svg",
1622
1938
  fill: "none",
1623
1939
  viewBox: "0 0 20 20",
1624
- style: getIconStyles(props),
1940
+ style: getIconStyles(styleProps),
1625
1941
  "data-testid": testId,
1626
1942
  ref: ref
1627
1943
  }, props), React__default.createElement("path", {
@@ -1631,16 +1947,25 @@ var IconCalendarStar = React.forwardRef(function (_ref, ref) {
1631
1947
  });
1632
1948
  IconCalendarStar.displayName = 'IconCalendarStar';
1633
1949
 
1634
- var _excluded$B = ["testId"];
1950
+ var _excluded$B = ["testId", "size", "color", "style"];
1635
1951
  var IconCalendarTomorrow = React.forwardRef(function (_ref, ref) {
1636
1952
  var _ref$testId = _ref.testId,
1637
1953
  testId = _ref$testId === void 0 ? 'icon-calendar-tomorrow' : _ref$testId,
1954
+ size = _ref.size,
1955
+ color = _ref.color,
1956
+ style = _ref.style,
1638
1957
  props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1958
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1959
+ var styleProps = {
1960
+ size: !size && isInsideButton ? 'medium' : size,
1961
+ color: color,
1962
+ style: style
1963
+ };
1639
1964
  return React__default.createElement("svg", _extends({
1640
1965
  xmlns: "http://www.w3.org/2000/svg",
1641
1966
  fill: "none",
1642
1967
  viewBox: "0 0 20 20",
1643
- style: getIconStyles(props),
1968
+ style: getIconStyles(styleProps),
1644
1969
  "data-testid": testId,
1645
1970
  ref: ref
1646
1971
  }, props), React__default.createElement("g", {
@@ -1659,16 +1984,25 @@ var IconCalendarTomorrow = React.forwardRef(function (_ref, ref) {
1659
1984
  });
1660
1985
  IconCalendarTomorrow.displayName = 'IconCalendarTomorrow';
1661
1986
 
1662
- var _excluded$C = ["testId"];
1987
+ var _excluded$C = ["testId", "size", "color", "style"];
1663
1988
  var IconCalendar = React.forwardRef(function (_ref, ref) {
1664
1989
  var _ref$testId = _ref.testId,
1665
1990
  testId = _ref$testId === void 0 ? 'icon-calendar' : _ref$testId,
1991
+ size = _ref.size,
1992
+ color = _ref.color,
1993
+ style = _ref.style,
1666
1994
  props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1995
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1996
+ var styleProps = {
1997
+ size: !size && isInsideButton ? 'medium' : size,
1998
+ color: color,
1999
+ style: style
2000
+ };
1667
2001
  return React__default.createElement("svg", _extends({
1668
2002
  xmlns: "http://www.w3.org/2000/svg",
1669
2003
  fill: "none",
1670
2004
  viewBox: "0 0 20 20",
1671
- style: getIconStyles(props),
2005
+ style: getIconStyles(styleProps),
1672
2006
  "data-testid": testId,
1673
2007
  ref: ref
1674
2008
  }, props), React__default.createElement("path", {
@@ -1680,16 +2014,25 @@ var IconCalendar = React.forwardRef(function (_ref, ref) {
1680
2014
  });
1681
2015
  IconCalendar.displayName = 'IconCalendar';
1682
2016
 
1683
- var _excluded$D = ["testId"];
2017
+ var _excluded$D = ["testId", "size", "color", "style"];
1684
2018
  var IconCameraSlash = React.forwardRef(function (_ref, ref) {
1685
2019
  var _ref$testId = _ref.testId,
1686
2020
  testId = _ref$testId === void 0 ? 'icon-camera-slash' : _ref$testId,
2021
+ size = _ref.size,
2022
+ color = _ref.color,
2023
+ style = _ref.style,
1687
2024
  props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
2025
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2026
+ var styleProps = {
2027
+ size: !size && isInsideButton ? 'medium' : size,
2028
+ color: color,
2029
+ style: style
2030
+ };
1688
2031
  return React__default.createElement("svg", _extends({
1689
2032
  xmlns: "http://www.w3.org/2000/svg",
1690
2033
  fill: "none",
1691
2034
  viewBox: "0 0 20 20",
1692
- style: getIconStyles(props),
2035
+ style: getIconStyles(styleProps),
1693
2036
  "data-testid": testId,
1694
2037
  ref: ref
1695
2038
  }, props), React__default.createElement("path", {
@@ -1702,16 +2045,25 @@ var IconCameraSlash = React.forwardRef(function (_ref, ref) {
1702
2045
  });
1703
2046
  IconCameraSlash.displayName = 'IconCameraSlash';
1704
2047
 
1705
- var _excluded$E = ["testId"];
2048
+ var _excluded$E = ["testId", "size", "color", "style"];
1706
2049
  var IconCamera = React.forwardRef(function (_ref, ref) {
1707
2050
  var _ref$testId = _ref.testId,
1708
2051
  testId = _ref$testId === void 0 ? 'icon-camera' : _ref$testId,
2052
+ size = _ref.size,
2053
+ color = _ref.color,
2054
+ style = _ref.style,
1709
2055
  props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
2056
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2057
+ var styleProps = {
2058
+ size: !size && isInsideButton ? 'medium' : size,
2059
+ color: color,
2060
+ style: style
2061
+ };
1710
2062
  return React__default.createElement("svg", _extends({
1711
2063
  xmlns: "http://www.w3.org/2000/svg",
1712
2064
  fill: "none",
1713
2065
  viewBox: "0 0 20 20",
1714
- style: getIconStyles(props),
2066
+ style: getIconStyles(styleProps),
1715
2067
  "data-testid": testId,
1716
2068
  ref: ref
1717
2069
  }, props), React__default.createElement("path", {
@@ -1721,16 +2073,25 @@ var IconCamera = React.forwardRef(function (_ref, ref) {
1721
2073
  });
1722
2074
  IconCamera.displayName = 'IconCamera';
1723
2075
 
1724
- var _excluded$F = ["testId"];
2076
+ var _excluded$F = ["testId", "size", "color", "style"];
1725
2077
  var IconCashRegister = React.forwardRef(function (_ref, ref) {
1726
2078
  var _ref$testId = _ref.testId,
1727
2079
  testId = _ref$testId === void 0 ? 'icon-cash-register' : _ref$testId,
2080
+ size = _ref.size,
2081
+ color = _ref.color,
2082
+ style = _ref.style,
1728
2083
  props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
2084
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2085
+ var styleProps = {
2086
+ size: !size && isInsideButton ? 'medium' : size,
2087
+ color: color,
2088
+ style: style
2089
+ };
1729
2090
  return React__default.createElement("svg", _extends({
1730
2091
  xmlns: "http://www.w3.org/2000/svg",
1731
2092
  fill: "none",
1732
2093
  viewBox: "0 0 20 20",
1733
- style: getIconStyles(props),
2094
+ style: getIconStyles(styleProps),
1734
2095
  "data-testid": testId,
1735
2096
  ref: ref
1736
2097
  }, props), React__default.createElement("path", {
@@ -1740,16 +2101,25 @@ var IconCashRegister = React.forwardRef(function (_ref, ref) {
1740
2101
  });
1741
2102
  IconCashRegister.displayName = 'IconCashRegister';
1742
2103
 
1743
- var _excluded$G = ["testId"];
2104
+ var _excluded$G = ["testId", "size", "color", "style"];
1744
2105
  var IconChartBar = React.forwardRef(function (_ref, ref) {
1745
2106
  var _ref$testId = _ref.testId,
1746
2107
  testId = _ref$testId === void 0 ? 'icon-chart-bar' : _ref$testId,
2108
+ size = _ref.size,
2109
+ color = _ref.color,
2110
+ style = _ref.style,
1747
2111
  props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
2112
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2113
+ var styleProps = {
2114
+ size: !size && isInsideButton ? 'medium' : size,
2115
+ color: color,
2116
+ style: style
2117
+ };
1748
2118
  return React__default.createElement("svg", _extends({
1749
2119
  xmlns: "http://www.w3.org/2000/svg",
1750
2120
  fill: "none",
1751
2121
  viewBox: "0 0 20 20",
1752
- style: getIconStyles(props),
2122
+ style: getIconStyles(styleProps),
1753
2123
  "data-testid": testId,
1754
2124
  ref: ref
1755
2125
  }, props), React__default.createElement("path", {
@@ -1761,16 +2131,25 @@ var IconChartBar = React.forwardRef(function (_ref, ref) {
1761
2131
  });
1762
2132
  IconChartBar.displayName = 'IconChartBar';
1763
2133
 
1764
- var _excluded$H = ["testId"];
2134
+ var _excluded$H = ["testId", "size", "color", "style"];
1765
2135
  var IconCheckCircleIncomplete = React.forwardRef(function (_ref, ref) {
1766
2136
  var _ref$testId = _ref.testId,
1767
2137
  testId = _ref$testId === void 0 ? 'icon-check-circle-incomplete' : _ref$testId,
2138
+ size = _ref.size,
2139
+ color = _ref.color,
2140
+ style = _ref.style,
1768
2141
  props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
2142
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2143
+ var styleProps = {
2144
+ size: !size && isInsideButton ? 'medium' : size,
2145
+ color: color,
2146
+ style: style
2147
+ };
1769
2148
  return React__default.createElement("svg", _extends({
1770
2149
  xmlns: "http://www.w3.org/2000/svg",
1771
2150
  fill: "none",
1772
2151
  viewBox: "0 0 20 20",
1773
- style: getIconStyles(props),
2152
+ style: getIconStyles(styleProps),
1774
2153
  "data-testid": testId,
1775
2154
  ref: ref
1776
2155
  }, props), React__default.createElement("path", {
@@ -1780,16 +2159,25 @@ var IconCheckCircleIncomplete = React.forwardRef(function (_ref, ref) {
1780
2159
  });
1781
2160
  IconCheckCircleIncomplete.displayName = 'IconCheckCircleIncomplete';
1782
2161
 
1783
- var _excluded$I = ["testId"];
2162
+ var _excluded$I = ["testId", "size", "color", "style"];
1784
2163
  var IconCheck = React.forwardRef(function (_ref, ref) {
1785
2164
  var _ref$testId = _ref.testId,
1786
2165
  testId = _ref$testId === void 0 ? 'icon-check' : _ref$testId,
2166
+ size = _ref.size,
2167
+ color = _ref.color,
2168
+ style = _ref.style,
1787
2169
  props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
2170
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2171
+ var styleProps = {
2172
+ size: !size && isInsideButton ? 'medium' : size,
2173
+ color: color,
2174
+ style: style
2175
+ };
1788
2176
  return React__default.createElement("svg", _extends({
1789
2177
  xmlns: "http://www.w3.org/2000/svg",
1790
2178
  fill: "none",
1791
2179
  viewBox: "0 0 20 20",
1792
- style: getIconStyles(props),
2180
+ style: getIconStyles(styleProps),
1793
2181
  "data-testid": testId,
1794
2182
  ref: ref
1795
2183
  }, props), React__default.createElement("path", {
@@ -1801,16 +2189,25 @@ var IconCheck = React.forwardRef(function (_ref, ref) {
1801
2189
  });
1802
2190
  IconCheck.displayName = 'IconCheck';
1803
2191
 
1804
- var _excluded$J = ["testId"];
2192
+ var _excluded$J = ["testId", "size", "color", "style"];
1805
2193
  var IconChevronDown = React.forwardRef(function (_ref, ref) {
1806
2194
  var _ref$testId = _ref.testId,
1807
2195
  testId = _ref$testId === void 0 ? 'icon-chevron-down' : _ref$testId,
2196
+ size = _ref.size,
2197
+ color = _ref.color,
2198
+ style = _ref.style,
1808
2199
  props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
2200
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2201
+ var styleProps = {
2202
+ size: !size && isInsideButton ? 'medium' : size,
2203
+ color: color,
2204
+ style: style
2205
+ };
1809
2206
  return React__default.createElement("svg", _extends({
1810
2207
  xmlns: "http://www.w3.org/2000/svg",
1811
2208
  fill: "none",
1812
2209
  viewBox: "0 0 20 20",
1813
- style: getIconStyles(props),
2210
+ style: getIconStyles(styleProps),
1814
2211
  "data-testid": testId,
1815
2212
  ref: ref
1816
2213
  }, props), React__default.createElement("path", {
@@ -1822,16 +2219,25 @@ var IconChevronDown = React.forwardRef(function (_ref, ref) {
1822
2219
  });
1823
2220
  IconChevronDown.displayName = 'IconChevronDown';
1824
2221
 
1825
- var _excluded$K = ["testId"];
2222
+ var _excluded$K = ["testId", "size", "color", "style"];
1826
2223
  var IconChevronLeft = React.forwardRef(function (_ref, ref) {
1827
2224
  var _ref$testId = _ref.testId,
1828
2225
  testId = _ref$testId === void 0 ? 'icon-chevron-left' : _ref$testId,
2226
+ size = _ref.size,
2227
+ color = _ref.color,
2228
+ style = _ref.style,
1829
2229
  props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
2230
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2231
+ var styleProps = {
2232
+ size: !size && isInsideButton ? 'medium' : size,
2233
+ color: color,
2234
+ style: style
2235
+ };
1830
2236
  return React__default.createElement("svg", _extends({
1831
2237
  xmlns: "http://www.w3.org/2000/svg",
1832
2238
  fill: "none",
1833
2239
  viewBox: "0 0 20 20",
1834
- style: getIconStyles(props),
2240
+ style: getIconStyles(styleProps),
1835
2241
  "data-testid": testId,
1836
2242
  ref: ref
1837
2243
  }, props), React__default.createElement("path", {
@@ -1843,16 +2249,25 @@ var IconChevronLeft = React.forwardRef(function (_ref, ref) {
1843
2249
  });
1844
2250
  IconChevronLeft.displayName = 'IconChevronLeft';
1845
2251
 
1846
- var _excluded$L = ["testId"];
2252
+ var _excluded$L = ["testId", "size", "color", "style"];
1847
2253
  var IconChevronRight = React.forwardRef(function (_ref, ref) {
1848
2254
  var _ref$testId = _ref.testId,
1849
2255
  testId = _ref$testId === void 0 ? 'icon-chevron-right' : _ref$testId,
2256
+ size = _ref.size,
2257
+ color = _ref.color,
2258
+ style = _ref.style,
1850
2259
  props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
2260
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2261
+ var styleProps = {
2262
+ size: !size && isInsideButton ? 'medium' : size,
2263
+ color: color,
2264
+ style: style
2265
+ };
1851
2266
  return React__default.createElement("svg", _extends({
1852
2267
  xmlns: "http://www.w3.org/2000/svg",
1853
2268
  fill: "none",
1854
2269
  viewBox: "0 0 20 20",
1855
- style: getIconStyles(props),
2270
+ style: getIconStyles(styleProps),
1856
2271
  "data-testid": testId,
1857
2272
  ref: ref
1858
2273
  }, props), React__default.createElement("path", {
@@ -1864,16 +2279,25 @@ var IconChevronRight = React.forwardRef(function (_ref, ref) {
1864
2279
  });
1865
2280
  IconChevronRight.displayName = 'IconChevronRight';
1866
2281
 
1867
- var _excluded$M = ["testId"];
2282
+ var _excluded$M = ["testId", "size", "color", "style"];
1868
2283
  var IconChevronUp = React.forwardRef(function (_ref, ref) {
1869
2284
  var _ref$testId = _ref.testId,
1870
2285
  testId = _ref$testId === void 0 ? 'icon-chevron-up' : _ref$testId,
2286
+ size = _ref.size,
2287
+ color = _ref.color,
2288
+ style = _ref.style,
1871
2289
  props = _objectWithoutPropertiesLoose(_ref, _excluded$M);
2290
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2291
+ var styleProps = {
2292
+ size: !size && isInsideButton ? 'medium' : size,
2293
+ color: color,
2294
+ style: style
2295
+ };
1872
2296
  return React__default.createElement("svg", _extends({
1873
2297
  xmlns: "http://www.w3.org/2000/svg",
1874
2298
  fill: "none",
1875
2299
  viewBox: "0 0 20 20",
1876
- style: getIconStyles(props),
2300
+ style: getIconStyles(styleProps),
1877
2301
  "data-testid": testId,
1878
2302
  ref: ref
1879
2303
  }, props), React__default.createElement("path", {
@@ -1885,16 +2309,25 @@ var IconChevronUp = React.forwardRef(function (_ref, ref) {
1885
2309
  });
1886
2310
  IconChevronUp.displayName = 'IconChevronUp';
1887
2311
 
1888
- var _excluded$N = ["testId"];
2312
+ var _excluded$N = ["testId", "size", "color", "style"];
1889
2313
  var IconClipboardList = React.forwardRef(function (_ref, ref) {
1890
2314
  var _ref$testId = _ref.testId,
1891
2315
  testId = _ref$testId === void 0 ? 'icon-clipboard-list' : _ref$testId,
2316
+ size = _ref.size,
2317
+ color = _ref.color,
2318
+ style = _ref.style,
1892
2319
  props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
2320
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2321
+ var styleProps = {
2322
+ size: !size && isInsideButton ? 'medium' : size,
2323
+ color: color,
2324
+ style: style
2325
+ };
1893
2326
  return React__default.createElement("svg", _extends({
1894
2327
  xmlns: "http://www.w3.org/2000/svg",
1895
2328
  fill: "none",
1896
2329
  viewBox: "0 0 20 20",
1897
- style: getIconStyles(props),
2330
+ style: getIconStyles(styleProps),
1898
2331
  "data-testid": testId,
1899
2332
  ref: ref
1900
2333
  }, props), React__default.createElement("path", {
@@ -1906,16 +2339,25 @@ var IconClipboardList = React.forwardRef(function (_ref, ref) {
1906
2339
  });
1907
2340
  IconClipboardList.displayName = 'IconClipboardList';
1908
2341
 
1909
- var _excluded$O = ["testId"];
2342
+ var _excluded$O = ["testId", "size", "color", "style"];
1910
2343
  var IconClock = React.forwardRef(function (_ref, ref) {
1911
2344
  var _ref$testId = _ref.testId,
1912
2345
  testId = _ref$testId === void 0 ? 'icon-clock' : _ref$testId,
2346
+ size = _ref.size,
2347
+ color = _ref.color,
2348
+ style = _ref.style,
1913
2349
  props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
2350
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2351
+ var styleProps = {
2352
+ size: !size && isInsideButton ? 'medium' : size,
2353
+ color: color,
2354
+ style: style
2355
+ };
1914
2356
  return React__default.createElement("svg", _extends({
1915
2357
  xmlns: "http://www.w3.org/2000/svg",
1916
2358
  fill: "none",
1917
2359
  viewBox: "0 0 20 20",
1918
- style: getIconStyles(props),
2360
+ style: getIconStyles(styleProps),
1919
2361
  "data-testid": testId,
1920
2362
  ref: ref
1921
2363
  }, props), React__default.createElement("path", {
@@ -1925,16 +2367,25 @@ var IconClock = React.forwardRef(function (_ref, ref) {
1925
2367
  });
1926
2368
  IconClock.displayName = 'IconClock';
1927
2369
 
1928
- var _excluded$P = ["testId"];
2370
+ var _excluded$P = ["testId", "size", "color", "style"];
1929
2371
  var IconCog = React.forwardRef(function (_ref, ref) {
1930
2372
  var _ref$testId = _ref.testId,
1931
2373
  testId = _ref$testId === void 0 ? 'icon-cog' : _ref$testId,
2374
+ size = _ref.size,
2375
+ color = _ref.color,
2376
+ style = _ref.style,
1932
2377
  props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
2378
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2379
+ var styleProps = {
2380
+ size: !size && isInsideButton ? 'medium' : size,
2381
+ color: color,
2382
+ style: style
2383
+ };
1933
2384
  return React__default.createElement("svg", _extends({
1934
2385
  xmlns: "http://www.w3.org/2000/svg",
1935
2386
  fill: "none",
1936
2387
  viewBox: "0 0 20 20",
1937
- style: getIconStyles(props),
2388
+ style: getIconStyles(styleProps),
1938
2389
  "data-testid": testId,
1939
2390
  ref: ref
1940
2391
  }, props), React__default.createElement("path", {
@@ -1944,16 +2395,25 @@ var IconCog = React.forwardRef(function (_ref, ref) {
1944
2395
  });
1945
2396
  IconCog.displayName = 'IconCog';
1946
2397
 
1947
- var _excluded$Q = ["testId"];
2398
+ var _excluded$Q = ["testId", "size", "color", "style"];
1948
2399
  var IconCommentLines = React.forwardRef(function (_ref, ref) {
1949
2400
  var _ref$testId = _ref.testId,
1950
2401
  testId = _ref$testId === void 0 ? 'icon-comment-lines' : _ref$testId,
2402
+ size = _ref.size,
2403
+ color = _ref.color,
2404
+ style = _ref.style,
1951
2405
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
2406
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2407
+ var styleProps = {
2408
+ size: !size && isInsideButton ? 'medium' : size,
2409
+ color: color,
2410
+ style: style
2411
+ };
1952
2412
  return React__default.createElement("svg", _extends({
1953
2413
  xmlns: "http://www.w3.org/2000/svg",
1954
2414
  fill: "none",
1955
2415
  viewBox: "0 0 20 20",
1956
- style: getIconStyles(props),
2416
+ style: getIconStyles(styleProps),
1957
2417
  "data-testid": testId,
1958
2418
  ref: ref
1959
2419
  }, props), React__default.createElement("path", {
@@ -1968,16 +2428,25 @@ var IconCommentLines = React.forwardRef(function (_ref, ref) {
1968
2428
  });
1969
2429
  IconCommentLines.displayName = 'IconCommentLines';
1970
2430
 
1971
- var _excluded$R = ["testId"];
2431
+ var _excluded$R = ["testId", "size", "color", "style"];
1972
2432
  var IconComment = React.forwardRef(function (_ref, ref) {
1973
2433
  var _ref$testId = _ref.testId,
1974
2434
  testId = _ref$testId === void 0 ? 'icon-comment' : _ref$testId,
2435
+ size = _ref.size,
2436
+ color = _ref.color,
2437
+ style = _ref.style,
1975
2438
  props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
2439
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2440
+ var styleProps = {
2441
+ size: !size && isInsideButton ? 'medium' : size,
2442
+ color: color,
2443
+ style: style
2444
+ };
1976
2445
  return React__default.createElement("svg", _extends({
1977
2446
  xmlns: "http://www.w3.org/2000/svg",
1978
2447
  fill: "none",
1979
2448
  viewBox: "0 0 20 20",
1980
- style: getIconStyles(props),
2449
+ style: getIconStyles(styleProps),
1981
2450
  "data-testid": testId,
1982
2451
  ref: ref
1983
2452
  }, props), React__default.createElement("path", {
@@ -1989,16 +2458,25 @@ var IconComment = React.forwardRef(function (_ref, ref) {
1989
2458
  });
1990
2459
  IconComment.displayName = 'IconComment';
1991
2460
 
1992
- var _excluded$S = ["testId"];
2461
+ var _excluded$S = ["testId", "size", "color", "style"];
1993
2462
  var IconCopy = React.forwardRef(function (_ref, ref) {
1994
2463
  var _ref$testId = _ref.testId,
1995
2464
  testId = _ref$testId === void 0 ? 'icon-copy' : _ref$testId,
2465
+ size = _ref.size,
2466
+ color = _ref.color,
2467
+ style = _ref.style,
1996
2468
  props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
2469
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2470
+ var styleProps = {
2471
+ size: !size && isInsideButton ? 'medium' : size,
2472
+ color: color,
2473
+ style: style
2474
+ };
1997
2475
  return React__default.createElement("svg", _extends({
1998
2476
  xmlns: "http://www.w3.org/2000/svg",
1999
2477
  fill: "none",
2000
2478
  viewBox: "0 0 20 20",
2001
- style: getIconStyles(props),
2479
+ style: getIconStyles(styleProps),
2002
2480
  "data-testid": testId,
2003
2481
  ref: ref
2004
2482
  }, props), React__default.createElement("g", {
@@ -2015,16 +2493,25 @@ var IconCopy = React.forwardRef(function (_ref, ref) {
2015
2493
  });
2016
2494
  IconCopy.displayName = 'IconCopy';
2017
2495
 
2018
- var _excluded$T = ["testId"];
2496
+ var _excluded$T = ["testId", "size", "color", "style"];
2019
2497
  var IconCreditCardPlus = React.forwardRef(function (_ref, ref) {
2020
2498
  var _ref$testId = _ref.testId,
2021
2499
  testId = _ref$testId === void 0 ? 'icon-credit-card-plus' : _ref$testId,
2500
+ size = _ref.size,
2501
+ color = _ref.color,
2502
+ style = _ref.style,
2022
2503
  props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
2504
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2505
+ var styleProps = {
2506
+ size: !size && isInsideButton ? 'medium' : size,
2507
+ color: color,
2508
+ style: style
2509
+ };
2023
2510
  return React__default.createElement("svg", _extends({
2024
2511
  xmlns: "http://www.w3.org/2000/svg",
2025
2512
  fill: "none",
2026
2513
  viewBox: "0 0 20 20",
2027
- style: getIconStyles(props),
2514
+ style: getIconStyles(styleProps),
2028
2515
  "data-testid": testId,
2029
2516
  ref: ref
2030
2517
  }, props), React__default.createElement("g", {
@@ -2043,16 +2530,25 @@ var IconCreditCardPlus = React.forwardRef(function (_ref, ref) {
2043
2530
  });
2044
2531
  IconCreditCardPlus.displayName = 'IconCreditCardPlus';
2045
2532
 
2046
- var _excluded$U = ["testId"];
2533
+ var _excluded$U = ["testId", "size", "color", "style"];
2047
2534
  var IconCreditCard = React.forwardRef(function (_ref, ref) {
2048
2535
  var _ref$testId = _ref.testId,
2049
2536
  testId = _ref$testId === void 0 ? 'icon-credit-card' : _ref$testId,
2537
+ size = _ref.size,
2538
+ color = _ref.color,
2539
+ style = _ref.style,
2050
2540
  props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
2541
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2542
+ var styleProps = {
2543
+ size: !size && isInsideButton ? 'medium' : size,
2544
+ color: color,
2545
+ style: style
2546
+ };
2051
2547
  return React__default.createElement("svg", _extends({
2052
2548
  xmlns: "http://www.w3.org/2000/svg",
2053
2549
  fill: "none",
2054
2550
  viewBox: "0 0 20 20",
2055
- style: getIconStyles(props),
2551
+ style: getIconStyles(styleProps),
2056
2552
  "data-testid": testId,
2057
2553
  ref: ref
2058
2554
  }, props), React__default.createElement("g", {
@@ -2069,16 +2565,25 @@ var IconCreditCard = React.forwardRef(function (_ref, ref) {
2069
2565
  });
2070
2566
  IconCreditCard.displayName = 'IconCreditCard';
2071
2567
 
2072
- var _excluded$V = ["testId"];
2568
+ var _excluded$V = ["testId", "size", "color", "style"];
2073
2569
  var IconDecentMonochromatic = React.forwardRef(function (_ref, ref) {
2074
2570
  var _ref$testId = _ref.testId,
2075
2571
  testId = _ref$testId === void 0 ? 'icon-decent-monochromatic' : _ref$testId,
2572
+ size = _ref.size,
2573
+ color = _ref.color,
2574
+ style = _ref.style,
2076
2575
  props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
2576
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2577
+ var styleProps = {
2578
+ size: !size && isInsideButton ? 'medium' : size,
2579
+ color: color,
2580
+ style: style
2581
+ };
2077
2582
  return React__default.createElement("svg", _extends({
2078
2583
  xmlns: "http://www.w3.org/2000/svg",
2079
2584
  fill: "none",
2080
2585
  viewBox: "0 0 20 20",
2081
- style: getIconStyles(props),
2586
+ style: getIconStyles(styleProps),
2082
2587
  "data-testid": testId,
2083
2588
  ref: ref
2084
2589
  }, props), React__default.createElement("path", {
@@ -2110,16 +2615,25 @@ var IconDecentMonochromatic = React.forwardRef(function (_ref, ref) {
2110
2615
  });
2111
2616
  IconDecentMonochromatic.displayName = 'IconDecentMonochromatic';
2112
2617
 
2113
- var _excluded$W = ["testId"];
2618
+ var _excluded$W = ["testId", "size", "color", "style"];
2114
2619
  var IconDecent = React.forwardRef(function (_ref, ref) {
2115
2620
  var _ref$testId = _ref.testId,
2116
2621
  testId = _ref$testId === void 0 ? 'icon-decent' : _ref$testId,
2622
+ size = _ref.size,
2623
+ color = _ref.color,
2624
+ style = _ref.style,
2117
2625
  props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
2626
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2627
+ var styleProps = {
2628
+ size: !size && isInsideButton ? 'medium' : size,
2629
+ color: color,
2630
+ style: style
2631
+ };
2118
2632
  return React__default.createElement("svg", _extends({
2119
2633
  xmlns: "http://www.w3.org/2000/svg",
2120
2634
  fill: "none",
2121
2635
  viewBox: "0 0 20 20",
2122
- style: getIconStyles(props),
2636
+ style: getIconStyles(styleProps),
2123
2637
  "data-testid": testId,
2124
2638
  ref: ref
2125
2639
  }, props), React__default.createElement("path", {
@@ -2139,16 +2653,25 @@ var IconDecent = React.forwardRef(function (_ref, ref) {
2139
2653
  });
2140
2654
  IconDecent.displayName = 'IconDecent';
2141
2655
 
2142
- var _excluded$X = ["testId"];
2656
+ var _excluded$X = ["testId", "size", "color", "style"];
2143
2657
  var IconDownload = React.forwardRef(function (_ref, ref) {
2144
2658
  var _ref$testId = _ref.testId,
2145
2659
  testId = _ref$testId === void 0 ? 'icon-download' : _ref$testId,
2660
+ size = _ref.size,
2661
+ color = _ref.color,
2662
+ style = _ref.style,
2146
2663
  props = _objectWithoutPropertiesLoose(_ref, _excluded$X);
2664
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2665
+ var styleProps = {
2666
+ size: !size && isInsideButton ? 'medium' : size,
2667
+ color: color,
2668
+ style: style
2669
+ };
2147
2670
  return React__default.createElement("svg", _extends({
2148
2671
  xmlns: "http://www.w3.org/2000/svg",
2149
2672
  fill: "none",
2150
2673
  viewBox: "0 0 20 20",
2151
- style: getIconStyles(props),
2674
+ style: getIconStyles(styleProps),
2152
2675
  "data-testid": testId,
2153
2676
  ref: ref
2154
2677
  }, props), React__default.createElement("path", {
@@ -2160,16 +2683,25 @@ var IconDownload = React.forwardRef(function (_ref, ref) {
2160
2683
  });
2161
2684
  IconDownload.displayName = 'IconDownload';
2162
2685
 
2163
- var _excluded$Y = ["testId"];
2686
+ var _excluded$Y = ["testId", "size", "color", "style"];
2164
2687
  var IconEdit = React.forwardRef(function (_ref, ref) {
2165
2688
  var _ref$testId = _ref.testId,
2166
2689
  testId = _ref$testId === void 0 ? 'icon-edit' : _ref$testId,
2690
+ size = _ref.size,
2691
+ color = _ref.color,
2692
+ style = _ref.style,
2167
2693
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
2694
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2695
+ var styleProps = {
2696
+ size: !size && isInsideButton ? 'medium' : size,
2697
+ color: color,
2698
+ style: style
2699
+ };
2168
2700
  return React__default.createElement("svg", _extends({
2169
2701
  xmlns: "http://www.w3.org/2000/svg",
2170
2702
  fill: "none",
2171
2703
  viewBox: "0 0 20 20",
2172
- style: getIconStyles(props),
2704
+ style: getIconStyles(styleProps),
2173
2705
  "data-testid": testId,
2174
2706
  ref: ref
2175
2707
  }, props), React__default.createElement("path", {
@@ -2179,16 +2711,25 @@ var IconEdit = React.forwardRef(function (_ref, ref) {
2179
2711
  });
2180
2712
  IconEdit.displayName = 'IconEdit';
2181
2713
 
2182
- var _excluded$Z = ["testId"];
2714
+ var _excluded$Z = ["testId", "size", "color", "style"];
2183
2715
  var IconEllipsisV = React.forwardRef(function (_ref, ref) {
2184
2716
  var _ref$testId = _ref.testId,
2185
2717
  testId = _ref$testId === void 0 ? 'icon-ellipsis-v' : _ref$testId,
2718
+ size = _ref.size,
2719
+ color = _ref.color,
2720
+ style = _ref.style,
2186
2721
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
2722
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2723
+ var styleProps = {
2724
+ size: !size && isInsideButton ? 'medium' : size,
2725
+ color: color,
2726
+ style: style
2727
+ };
2187
2728
  return React__default.createElement("svg", _extends({
2188
2729
  xmlns: "http://www.w3.org/2000/svg",
2189
2730
  fill: "none",
2190
2731
  viewBox: "0 0 20 20",
2191
- style: getIconStyles(props),
2732
+ style: getIconStyles(styleProps),
2192
2733
  "data-testid": testId,
2193
2734
  ref: ref
2194
2735
  }, props), React__default.createElement("path", {
@@ -2200,16 +2741,25 @@ var IconEllipsisV = React.forwardRef(function (_ref, ref) {
2200
2741
  });
2201
2742
  IconEllipsisV.displayName = 'IconEllipsisV';
2202
2743
 
2203
- var _excluded$_ = ["testId"];
2744
+ var _excluded$_ = ["testId", "size", "color", "style"];
2204
2745
  var IconEnvelopeOpenDollar = React.forwardRef(function (_ref, ref) {
2205
2746
  var _ref$testId = _ref.testId,
2206
2747
  testId = _ref$testId === void 0 ? 'icon-envelope-open-dollar' : _ref$testId,
2748
+ size = _ref.size,
2749
+ color = _ref.color,
2750
+ style = _ref.style,
2207
2751
  props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
2752
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2753
+ var styleProps = {
2754
+ size: !size && isInsideButton ? 'medium' : size,
2755
+ color: color,
2756
+ style: style
2757
+ };
2208
2758
  return React__default.createElement("svg", _extends({
2209
2759
  xmlns: "http://www.w3.org/2000/svg",
2210
2760
  fill: "none",
2211
2761
  viewBox: "0 0 20 20",
2212
- style: getIconStyles(props),
2762
+ style: getIconStyles(styleProps),
2213
2763
  "data-testid": testId,
2214
2764
  ref: ref
2215
2765
  }, props), React__default.createElement("g", {
@@ -2226,16 +2776,25 @@ var IconEnvelopeOpenDollar = React.forwardRef(function (_ref, ref) {
2226
2776
  });
2227
2777
  IconEnvelopeOpenDollar.displayName = 'IconEnvelopeOpenDollar';
2228
2778
 
2229
- var _excluded$$ = ["testId"];
2779
+ var _excluded$$ = ["testId", "size", "color", "style"];
2230
2780
  var IconEnvelope = React.forwardRef(function (_ref, ref) {
2231
2781
  var _ref$testId = _ref.testId,
2232
2782
  testId = _ref$testId === void 0 ? 'icon-envelope' : _ref$testId,
2783
+ size = _ref.size,
2784
+ color = _ref.color,
2785
+ style = _ref.style,
2233
2786
  props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
2787
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2788
+ var styleProps = {
2789
+ size: !size && isInsideButton ? 'medium' : size,
2790
+ color: color,
2791
+ style: style
2792
+ };
2234
2793
  return React__default.createElement("svg", _extends({
2235
2794
  xmlns: "http://www.w3.org/2000/svg",
2236
2795
  fill: "none",
2237
2796
  viewBox: "0 0 20 20",
2238
- style: getIconStyles(props),
2797
+ style: getIconStyles(styleProps),
2239
2798
  "data-testid": testId,
2240
2799
  ref: ref
2241
2800
  }, props), React__default.createElement("path", {
@@ -2245,16 +2804,25 @@ var IconEnvelope = React.forwardRef(function (_ref, ref) {
2245
2804
  });
2246
2805
  IconEnvelope.displayName = 'IconEnvelope';
2247
2806
 
2248
- var _excluded$10 = ["testId"];
2807
+ var _excluded$10 = ["testId", "size", "color", "style"];
2249
2808
  var IconExclaimationTriangle = React.forwardRef(function (_ref, ref) {
2250
2809
  var _ref$testId = _ref.testId,
2251
2810
  testId = _ref$testId === void 0 ? 'icon-exclaimation-triangle' : _ref$testId,
2811
+ size = _ref.size,
2812
+ color = _ref.color,
2813
+ style = _ref.style,
2252
2814
  props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
2815
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2816
+ var styleProps = {
2817
+ size: !size && isInsideButton ? 'medium' : size,
2818
+ color: color,
2819
+ style: style
2820
+ };
2253
2821
  return React__default.createElement("svg", _extends({
2254
2822
  xmlns: "http://www.w3.org/2000/svg",
2255
2823
  fill: "none",
2256
2824
  viewBox: "0 0 20 20",
2257
- style: getIconStyles(props),
2825
+ style: getIconStyles(styleProps),
2258
2826
  "data-testid": testId,
2259
2827
  ref: ref
2260
2828
  }, props), React__default.createElement("path", {
@@ -2266,16 +2834,25 @@ var IconExclaimationTriangle = React.forwardRef(function (_ref, ref) {
2266
2834
  });
2267
2835
  IconExclaimationTriangle.displayName = 'IconExclaimationTriangle';
2268
2836
 
2269
- var _excluded$11 = ["testId"];
2837
+ var _excluded$11 = ["testId", "size", "color", "style"];
2270
2838
  var IconExclaimation = React.forwardRef(function (_ref, ref) {
2271
2839
  var _ref$testId = _ref.testId,
2272
2840
  testId = _ref$testId === void 0 ? 'icon-exclaimation' : _ref$testId,
2841
+ size = _ref.size,
2842
+ color = _ref.color,
2843
+ style = _ref.style,
2273
2844
  props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
2845
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2846
+ var styleProps = {
2847
+ size: !size && isInsideButton ? 'medium' : size,
2848
+ color: color,
2849
+ style: style
2850
+ };
2274
2851
  return React__default.createElement("svg", _extends({
2275
2852
  xmlns: "http://www.w3.org/2000/svg",
2276
2853
  fill: "none",
2277
2854
  viewBox: "0 0 20 20",
2278
- style: getIconStyles(props),
2855
+ style: getIconStyles(styleProps),
2279
2856
  "data-testid": testId,
2280
2857
  ref: ref
2281
2858
  }, props), React__default.createElement("path", {
@@ -2285,16 +2862,25 @@ var IconExclaimation = React.forwardRef(function (_ref, ref) {
2285
2862
  });
2286
2863
  IconExclaimation.displayName = 'IconExclaimation';
2287
2864
 
2288
- var _excluded$12 = ["testId"];
2865
+ var _excluded$12 = ["testId", "size", "color", "style"];
2289
2866
  var IconExpand = React.forwardRef(function (_ref, ref) {
2290
2867
  var _ref$testId = _ref.testId,
2291
2868
  testId = _ref$testId === void 0 ? 'icon-expand' : _ref$testId,
2869
+ size = _ref.size,
2870
+ color = _ref.color,
2871
+ style = _ref.style,
2292
2872
  props = _objectWithoutPropertiesLoose(_ref, _excluded$12);
2873
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2874
+ var styleProps = {
2875
+ size: !size && isInsideButton ? 'medium' : size,
2876
+ color: color,
2877
+ style: style
2878
+ };
2293
2879
  return React__default.createElement("svg", _extends({
2294
2880
  xmlns: "http://www.w3.org/2000/svg",
2295
2881
  fill: "none",
2296
2882
  viewBox: "0 0 20 20",
2297
- style: getIconStyles(props),
2883
+ style: getIconStyles(styleProps),
2298
2884
  "data-testid": testId,
2299
2885
  ref: ref
2300
2886
  }, props), React__default.createElement("path", {
@@ -2304,16 +2890,25 @@ var IconExpand = React.forwardRef(function (_ref, ref) {
2304
2890
  });
2305
2891
  IconExpand.displayName = 'IconExpand';
2306
2892
 
2307
- var _excluded$13 = ["testId"];
2893
+ var _excluded$13 = ["testId", "size", "color", "style"];
2308
2894
  var IconExternalLink = React.forwardRef(function (_ref, ref) {
2309
2895
  var _ref$testId = _ref.testId,
2310
2896
  testId = _ref$testId === void 0 ? 'icon-external-link' : _ref$testId,
2897
+ size = _ref.size,
2898
+ color = _ref.color,
2899
+ style = _ref.style,
2311
2900
  props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
2901
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2902
+ var styleProps = {
2903
+ size: !size && isInsideButton ? 'medium' : size,
2904
+ color: color,
2905
+ style: style
2906
+ };
2312
2907
  return React__default.createElement("svg", _extends({
2313
2908
  xmlns: "http://www.w3.org/2000/svg",
2314
2909
  fill: "none",
2315
2910
  viewBox: "0 0 20 20",
2316
- style: getIconStyles(props),
2911
+ style: getIconStyles(styleProps),
2317
2912
  "data-testid": testId,
2318
2913
  ref: ref
2319
2914
  }, props), React__default.createElement("path", {
@@ -2325,16 +2920,25 @@ var IconExternalLink = React.forwardRef(function (_ref, ref) {
2325
2920
  });
2326
2921
  IconExternalLink.displayName = 'IconExternalLink';
2327
2922
 
2328
- var _excluded$14 = ["testId"];
2923
+ var _excluded$14 = ["testId", "size", "color", "style"];
2329
2924
  var IconEyeSlash = React.forwardRef(function (_ref, ref) {
2330
2925
  var _ref$testId = _ref.testId,
2331
2926
  testId = _ref$testId === void 0 ? 'icon-eye-slash' : _ref$testId,
2927
+ size = _ref.size,
2928
+ color = _ref.color,
2929
+ style = _ref.style,
2332
2930
  props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
2931
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2932
+ var styleProps = {
2933
+ size: !size && isInsideButton ? 'medium' : size,
2934
+ color: color,
2935
+ style: style
2936
+ };
2333
2937
  return React__default.createElement("svg", _extends({
2334
2938
  xmlns: "http://www.w3.org/2000/svg",
2335
2939
  fill: "none",
2336
2940
  viewBox: "0 0 20 20",
2337
- style: getIconStyles(props),
2941
+ style: getIconStyles(styleProps),
2338
2942
  "data-testid": testId,
2339
2943
  ref: ref
2340
2944
  }, props), React__default.createElement("g", {
@@ -2358,16 +2962,25 @@ var IconEyeSlash = React.forwardRef(function (_ref, ref) {
2358
2962
  });
2359
2963
  IconEyeSlash.displayName = 'IconEyeSlash';
2360
2964
 
2361
- var _excluded$15 = ["testId"];
2965
+ var _excluded$15 = ["testId", "size", "color", "style"];
2362
2966
  var IconEye = React.forwardRef(function (_ref, ref) {
2363
2967
  var _ref$testId = _ref.testId,
2364
2968
  testId = _ref$testId === void 0 ? 'icon-eye' : _ref$testId,
2969
+ size = _ref.size,
2970
+ color = _ref.color,
2971
+ style = _ref.style,
2365
2972
  props = _objectWithoutPropertiesLoose(_ref, _excluded$15);
2973
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2974
+ var styleProps = {
2975
+ size: !size && isInsideButton ? 'medium' : size,
2976
+ color: color,
2977
+ style: style
2978
+ };
2366
2979
  return React__default.createElement("svg", _extends({
2367
2980
  xmlns: "http://www.w3.org/2000/svg",
2368
2981
  fill: "none",
2369
2982
  viewBox: "0 0 20 20",
2370
- style: getIconStyles(props),
2983
+ style: getIconStyles(styleProps),
2371
2984
  "data-testid": testId,
2372
2985
  ref: ref
2373
2986
  }, props), React__default.createElement("g", {
@@ -2384,16 +2997,25 @@ var IconEye = React.forwardRef(function (_ref, ref) {
2384
2997
  });
2385
2998
  IconEye.displayName = 'IconEye';
2386
2999
 
2387
- var _excluded$16 = ["testId"];
3000
+ var _excluded$16 = ["testId", "size", "color", "style"];
2388
3001
  var IconFilePdf = React.forwardRef(function (_ref, ref) {
2389
3002
  var _ref$testId = _ref.testId,
2390
3003
  testId = _ref$testId === void 0 ? 'icon-file-pdf' : _ref$testId,
3004
+ size = _ref.size,
3005
+ color = _ref.color,
3006
+ style = _ref.style,
2391
3007
  props = _objectWithoutPropertiesLoose(_ref, _excluded$16);
3008
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3009
+ var styleProps = {
3010
+ size: !size && isInsideButton ? 'medium' : size,
3011
+ color: color,
3012
+ style: style
3013
+ };
2392
3014
  return React__default.createElement("svg", _extends({
2393
3015
  xmlns: "http://www.w3.org/2000/svg",
2394
3016
  fill: "none",
2395
3017
  viewBox: "0 0 20 20",
2396
- style: getIconStyles(props),
3018
+ style: getIconStyles(styleProps),
2397
3019
  "data-testid": testId,
2398
3020
  ref: ref
2399
3021
  }, props), React__default.createElement("g", {
@@ -2410,16 +3032,25 @@ var IconFilePdf = React.forwardRef(function (_ref, ref) {
2410
3032
  });
2411
3033
  IconFilePdf.displayName = 'IconFilePdf';
2412
3034
 
2413
- var _excluded$17 = ["testId"];
3035
+ var _excluded$17 = ["testId", "size", "color", "style"];
2414
3036
  var IconFile = React.forwardRef(function (_ref, ref) {
2415
3037
  var _ref$testId = _ref.testId,
2416
3038
  testId = _ref$testId === void 0 ? 'icon-file' : _ref$testId,
3039
+ size = _ref.size,
3040
+ color = _ref.color,
3041
+ style = _ref.style,
2417
3042
  props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
3043
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3044
+ var styleProps = {
3045
+ size: !size && isInsideButton ? 'medium' : size,
3046
+ color: color,
3047
+ style: style
3048
+ };
2418
3049
  return React__default.createElement("svg", _extends({
2419
3050
  xmlns: "http://www.w3.org/2000/svg",
2420
3051
  fill: "none",
2421
3052
  viewBox: "0 0 20 20",
2422
- style: getIconStyles(props),
3053
+ style: getIconStyles(styleProps),
2423
3054
  "data-testid": testId,
2424
3055
  ref: ref
2425
3056
  }, props), React__default.createElement("g", {
@@ -2436,16 +3067,25 @@ var IconFile = React.forwardRef(function (_ref, ref) {
2436
3067
  });
2437
3068
  IconFile.displayName = 'IconFile';
2438
3069
 
2439
- var _excluded$18 = ["testId"];
3070
+ var _excluded$18 = ["testId", "size", "color", "style"];
2440
3071
  var IconFlag = React.forwardRef(function (_ref, ref) {
2441
3072
  var _ref$testId = _ref.testId,
2442
3073
  testId = _ref$testId === void 0 ? 'icon-flag' : _ref$testId,
3074
+ size = _ref.size,
3075
+ color = _ref.color,
3076
+ style = _ref.style,
2443
3077
  props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
3078
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3079
+ var styleProps = {
3080
+ size: !size && isInsideButton ? 'medium' : size,
3081
+ color: color,
3082
+ style: style
3083
+ };
2444
3084
  return React__default.createElement("svg", _extends({
2445
3085
  xmlns: "http://www.w3.org/2000/svg",
2446
3086
  fill: "none",
2447
3087
  viewBox: "0 0 20 20",
2448
- style: getIconStyles(props),
3088
+ style: getIconStyles(styleProps),
2449
3089
  "data-testid": testId,
2450
3090
  ref: ref
2451
3091
  }, props), React__default.createElement("g", {
@@ -2462,16 +3102,25 @@ var IconFlag = React.forwardRef(function (_ref, ref) {
2462
3102
  });
2463
3103
  IconFlag.displayName = 'IconFlag';
2464
3104
 
2465
- var _excluded$19 = ["testId"];
3105
+ var _excluded$19 = ["testId", "size", "color", "style"];
2466
3106
  var IconFourDotsCircle = React.forwardRef(function (_ref, ref) {
2467
3107
  var _ref$testId = _ref.testId,
2468
3108
  testId = _ref$testId === void 0 ? 'icon-four-dots-circle' : _ref$testId,
3109
+ size = _ref.size,
3110
+ color = _ref.color,
3111
+ style = _ref.style,
2469
3112
  props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
3113
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3114
+ var styleProps = {
3115
+ size: !size && isInsideButton ? 'medium' : size,
3116
+ color: color,
3117
+ style: style
3118
+ };
2470
3119
  return React__default.createElement("svg", _extends({
2471
3120
  xmlns: "http://www.w3.org/2000/svg",
2472
3121
  fill: "none",
2473
3122
  viewBox: "0 0 20 20",
2474
- style: getIconStyles(props),
3123
+ style: getIconStyles(styleProps),
2475
3124
  "data-testid": testId,
2476
3125
  ref: ref
2477
3126
  }, props), React__default.createElement("path", {
@@ -2483,16 +3132,25 @@ var IconFourDotsCircle = React.forwardRef(function (_ref, ref) {
2483
3132
  });
2484
3133
  IconFourDotsCircle.displayName = 'IconFourDotsCircle';
2485
3134
 
2486
- var _excluded$1a = ["testId"];
3135
+ var _excluded$1a = ["testId", "size", "color", "style"];
2487
3136
  var IconFourSquares = React.forwardRef(function (_ref, ref) {
2488
3137
  var _ref$testId = _ref.testId,
2489
3138
  testId = _ref$testId === void 0 ? 'icon-four-squares' : _ref$testId,
3139
+ size = _ref.size,
3140
+ color = _ref.color,
3141
+ style = _ref.style,
2490
3142
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
3143
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3144
+ var styleProps = {
3145
+ size: !size && isInsideButton ? 'medium' : size,
3146
+ color: color,
3147
+ style: style
3148
+ };
2491
3149
  return React__default.createElement("svg", _extends({
2492
3150
  xmlns: "http://www.w3.org/2000/svg",
2493
3151
  fill: "none",
2494
3152
  viewBox: "0 0 20 20",
2495
- style: getIconStyles(props),
3153
+ style: getIconStyles(styleProps),
2496
3154
  "data-testid": testId,
2497
3155
  ref: ref
2498
3156
  }, props), React__default.createElement("rect", {
@@ -2527,16 +3185,25 @@ var IconFourSquares = React.forwardRef(function (_ref, ref) {
2527
3185
  });
2528
3186
  IconFourSquares.displayName = 'IconFourSquares';
2529
3187
 
2530
- var _excluded$1b = ["testId"];
3188
+ var _excluded$1b = ["testId", "size", "color", "style"];
2531
3189
  var IconGavel = React.forwardRef(function (_ref, ref) {
2532
3190
  var _ref$testId = _ref.testId,
2533
3191
  testId = _ref$testId === void 0 ? 'icon-gavel' : _ref$testId,
3192
+ size = _ref.size,
3193
+ color = _ref.color,
3194
+ style = _ref.style,
2534
3195
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
3196
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3197
+ var styleProps = {
3198
+ size: !size && isInsideButton ? 'medium' : size,
3199
+ color: color,
3200
+ style: style
3201
+ };
2535
3202
  return React__default.createElement("svg", _extends({
2536
3203
  xmlns: "http://www.w3.org/2000/svg",
2537
3204
  fill: "none",
2538
3205
  viewBox: "0 0 60 60",
2539
- style: getIconStyles(props),
3206
+ style: getIconStyles(styleProps),
2540
3207
  "data-testid": testId,
2541
3208
  ref: ref
2542
3209
  }, props), React__default.createElement("path", {
@@ -2546,15 +3213,24 @@ var IconGavel = React.forwardRef(function (_ref, ref) {
2546
3213
  });
2547
3214
  IconGavel.displayName = 'IconGavel';
2548
3215
 
2549
- var _excluded$1c = ["testId"];
3216
+ var _excluded$1c = ["testId", "size", "color", "style"];
2550
3217
  var IconGif = React.forwardRef(function (_ref, ref) {
2551
3218
  var _ref$testId = _ref.testId,
2552
3219
  testId = _ref$testId === void 0 ? 'icon-gif' : _ref$testId,
3220
+ size = _ref.size,
3221
+ color = _ref.color,
3222
+ style = _ref.style,
2553
3223
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
3224
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3225
+ var styleProps = {
3226
+ size: !size && isInsideButton ? 'medium' : size,
3227
+ color: color,
3228
+ style: style
3229
+ };
2554
3230
  return React__default.createElement("svg", _extends({
2555
3231
  xmlns: "http://www.w3.org/2000/svg",
2556
3232
  viewBox: "0 0 20 20",
2557
- style: getIconStyles(props),
3233
+ style: getIconStyles(styleProps),
2558
3234
  "data-testid": testId,
2559
3235
  ref: ref
2560
3236
  }, props), React__default.createElement("path", {
@@ -2569,16 +3245,25 @@ var IconGif = React.forwardRef(function (_ref, ref) {
2569
3245
  });
2570
3246
  IconGif.displayName = 'IconGif';
2571
3247
 
2572
- var _excluded$1d = ["testId"];
3248
+ var _excluded$1d = ["testId", "size", "color", "style"];
2573
3249
  var IconGift = React.forwardRef(function (_ref, ref) {
2574
3250
  var _ref$testId = _ref.testId,
2575
3251
  testId = _ref$testId === void 0 ? 'icon-gift' : _ref$testId,
3252
+ size = _ref.size,
3253
+ color = _ref.color,
3254
+ style = _ref.style,
2576
3255
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1d);
3256
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3257
+ var styleProps = {
3258
+ size: !size && isInsideButton ? 'medium' : size,
3259
+ color: color,
3260
+ style: style
3261
+ };
2577
3262
  return React__default.createElement("svg", _extends({
2578
3263
  xmlns: "http://www.w3.org/2000/svg",
2579
3264
  fill: "none",
2580
3265
  viewBox: "0 0 20 20",
2581
- style: getIconStyles(props),
3266
+ style: getIconStyles(styleProps),
2582
3267
  "data-testid": testId,
2583
3268
  ref: ref
2584
3269
  }, props), React__default.createElement("path", {
@@ -2588,16 +3273,25 @@ var IconGift = React.forwardRef(function (_ref, ref) {
2588
3273
  });
2589
3274
  IconGift.displayName = 'IconGift';
2590
3275
 
2591
- var _excluded$1e = ["testId"];
3276
+ var _excluded$1e = ["testId", "size", "color", "style"];
2592
3277
  var IconGoodMonochromatic = React.forwardRef(function (_ref, ref) {
2593
3278
  var _ref$testId = _ref.testId,
2594
3279
  testId = _ref$testId === void 0 ? 'icon-good-monochromatic' : _ref$testId,
3280
+ size = _ref.size,
3281
+ color = _ref.color,
3282
+ style = _ref.style,
2595
3283
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
3284
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3285
+ var styleProps = {
3286
+ size: !size && isInsideButton ? 'medium' : size,
3287
+ color: color,
3288
+ style: style
3289
+ };
2596
3290
  return React__default.createElement("svg", _extends({
2597
3291
  xmlns: "http://www.w3.org/2000/svg",
2598
3292
  fill: "none",
2599
3293
  viewBox: "0 0 20 20",
2600
- style: getIconStyles(props),
3294
+ style: getIconStyles(styleProps),
2601
3295
  "data-testid": testId,
2602
3296
  ref: ref
2603
3297
  }, props), React__default.createElement("path", {
@@ -2625,16 +3319,25 @@ var IconGoodMonochromatic = React.forwardRef(function (_ref, ref) {
2625
3319
  });
2626
3320
  IconGoodMonochromatic.displayName = 'IconGoodMonochromatic';
2627
3321
 
2628
- var _excluded$1f = ["testId"];
3322
+ var _excluded$1f = ["testId", "size", "color", "style"];
2629
3323
  var IconGood = React.forwardRef(function (_ref, ref) {
2630
3324
  var _ref$testId = _ref.testId,
2631
3325
  testId = _ref$testId === void 0 ? 'icon-good' : _ref$testId,
3326
+ size = _ref.size,
3327
+ color = _ref.color,
3328
+ style = _ref.style,
2632
3329
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
3330
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3331
+ var styleProps = {
3332
+ size: !size && isInsideButton ? 'medium' : size,
3333
+ color: color,
3334
+ style: style
3335
+ };
2633
3336
  return React__default.createElement("svg", _extends({
2634
3337
  xmlns: "http://www.w3.org/2000/svg",
2635
3338
  fill: "none",
2636
3339
  viewBox: "0 0 20 20",
2637
- style: getIconStyles(props),
3340
+ style: getIconStyles(styleProps),
2638
3341
  "data-testid": testId,
2639
3342
  ref: ref
2640
3343
  }, props), React__default.createElement("path", {
@@ -2650,16 +3353,25 @@ var IconGood = React.forwardRef(function (_ref, ref) {
2650
3353
  });
2651
3354
  IconGood.displayName = 'IconGood';
2652
3355
 
2653
- var _excluded$1g = ["testId"];
3356
+ var _excluded$1g = ["testId", "size", "color", "style"];
2654
3357
  var IconGreatMonochromatic = React.forwardRef(function (_ref, ref) {
2655
3358
  var _ref$testId = _ref.testId,
2656
3359
  testId = _ref$testId === void 0 ? 'icon-great-monochromatic' : _ref$testId,
3360
+ size = _ref.size,
3361
+ color = _ref.color,
3362
+ style = _ref.style,
2657
3363
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
3364
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3365
+ var styleProps = {
3366
+ size: !size && isInsideButton ? 'medium' : size,
3367
+ color: color,
3368
+ style: style
3369
+ };
2658
3370
  return React__default.createElement("svg", _extends({
2659
3371
  xmlns: "http://www.w3.org/2000/svg",
2660
3372
  fill: "none",
2661
3373
  viewBox: "0 0 20 20",
2662
- style: getIconStyles(props),
3374
+ style: getIconStyles(styleProps),
2663
3375
  "data-testid": testId,
2664
3376
  ref: ref
2665
3377
  }, props), React__default.createElement("path", {
@@ -2689,16 +3401,25 @@ var IconGreatMonochromatic = React.forwardRef(function (_ref, ref) {
2689
3401
  });
2690
3402
  IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
2691
3403
 
2692
- var _excluded$1h = ["testId"];
3404
+ var _excluded$1h = ["testId", "size", "color", "style"];
2693
3405
  var IconGreat = React.forwardRef(function (_ref, ref) {
2694
3406
  var _ref$testId = _ref.testId,
2695
3407
  testId = _ref$testId === void 0 ? 'icon-great' : _ref$testId,
3408
+ size = _ref.size,
3409
+ color = _ref.color,
3410
+ style = _ref.style,
2696
3411
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
3412
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3413
+ var styleProps = {
3414
+ size: !size && isInsideButton ? 'medium' : size,
3415
+ color: color,
3416
+ style: style
3417
+ };
2697
3418
  return React__default.createElement("svg", _extends({
2698
3419
  xmlns: "http://www.w3.org/2000/svg",
2699
3420
  fill: "none",
2700
3421
  viewBox: "0 0 20 20",
2701
- style: getIconStyles(props),
3422
+ style: getIconStyles(styleProps),
2702
3423
  "data-testid": testId,
2703
3424
  ref: ref
2704
3425
  }, props), React__default.createElement("path", {
@@ -2716,16 +3437,25 @@ var IconGreat = React.forwardRef(function (_ref, ref) {
2716
3437
  });
2717
3438
  IconGreat.displayName = 'IconGreat';
2718
3439
 
2719
- var _excluded$1i = ["testId"];
3440
+ var _excluded$1i = ["testId", "size", "color", "style"];
2720
3441
  var IconGrinBeam = React.forwardRef(function (_ref, ref) {
2721
3442
  var _ref$testId = _ref.testId,
2722
3443
  testId = _ref$testId === void 0 ? 'icon-grin-beam' : _ref$testId,
3444
+ size = _ref.size,
3445
+ color = _ref.color,
3446
+ style = _ref.style,
2723
3447
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
3448
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3449
+ var styleProps = {
3450
+ size: !size && isInsideButton ? 'medium' : size,
3451
+ color: color,
3452
+ style: style
3453
+ };
2724
3454
  return React__default.createElement("svg", _extends({
2725
3455
  xmlns: "http://www.w3.org/2000/svg",
2726
3456
  fill: "none",
2727
3457
  viewBox: "0 0 20 20",
2728
- style: getIconStyles(props),
3458
+ style: getIconStyles(styleProps),
2729
3459
  "data-testid": testId,
2730
3460
  ref: ref
2731
3461
  }, props), React__default.createElement("path", {
@@ -2735,16 +3465,25 @@ var IconGrinBeam = React.forwardRef(function (_ref, ref) {
2735
3465
  });
2736
3466
  IconGrinBeam.displayName = 'IconGrinBeam';
2737
3467
 
2738
- var _excluded$1j = ["testId"];
3468
+ var _excluded$1j = ["testId", "size", "color", "style"];
2739
3469
  var IconGripVertical = React.forwardRef(function (_ref, ref) {
2740
3470
  var _ref$testId = _ref.testId,
2741
3471
  testId = _ref$testId === void 0 ? 'icon-grip-vertical' : _ref$testId,
3472
+ size = _ref.size,
3473
+ color = _ref.color,
3474
+ style = _ref.style,
2742
3475
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
3476
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3477
+ var styleProps = {
3478
+ size: !size && isInsideButton ? 'medium' : size,
3479
+ color: color,
3480
+ style: style
3481
+ };
2743
3482
  return React__default.createElement("svg", _extends({
2744
3483
  xmlns: "http://www.w3.org/2000/svg",
2745
3484
  fill: "none",
2746
3485
  viewBox: "0 0 20 20",
2747
- style: getIconStyles(props),
3486
+ style: getIconStyles(styleProps),
2748
3487
  "data-testid": testId,
2749
3488
  ref: ref
2750
3489
  }, props), React__default.createElement("circle", {
@@ -2781,16 +3520,25 @@ var IconGripVertical = React.forwardRef(function (_ref, ref) {
2781
3520
  });
2782
3521
  IconGripVertical.displayName = 'IconGripVertical';
2783
3522
 
2784
- var _excluded$1k = ["testId"];
3523
+ var _excluded$1k = ["testId", "size", "color", "style"];
2785
3524
  var IconHandshake = React.forwardRef(function (_ref, ref) {
2786
3525
  var _ref$testId = _ref.testId,
2787
3526
  testId = _ref$testId === void 0 ? 'icon-handshake' : _ref$testId,
3527
+ size = _ref.size,
3528
+ color = _ref.color,
3529
+ style = _ref.style,
2788
3530
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
3531
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3532
+ var styleProps = {
3533
+ size: !size && isInsideButton ? 'medium' : size,
3534
+ color: color,
3535
+ style: style
3536
+ };
2789
3537
  return React__default.createElement("svg", _extends({
2790
3538
  xmlns: "http://www.w3.org/2000/svg",
2791
3539
  fill: "none",
2792
3540
  viewBox: "0 0 20 20",
2793
- style: getIconStyles(props),
3541
+ style: getIconStyles(styleProps),
2794
3542
  "data-testid": testId,
2795
3543
  ref: ref
2796
3544
  }, props), React__default.createElement("g", {
@@ -2807,16 +3555,25 @@ var IconHandshake = React.forwardRef(function (_ref, ref) {
2807
3555
  });
2808
3556
  IconHandshake.displayName = 'IconHandshake';
2809
3557
 
2810
- var _excluded$1l = ["testId"];
3558
+ var _excluded$1l = ["testId", "size", "color", "style"];
2811
3559
  var IconImage = React.forwardRef(function (_ref, ref) {
2812
3560
  var _ref$testId = _ref.testId,
2813
3561
  testId = _ref$testId === void 0 ? 'icon-image' : _ref$testId,
3562
+ size = _ref.size,
3563
+ color = _ref.color,
3564
+ style = _ref.style,
2814
3565
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
3566
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3567
+ var styleProps = {
3568
+ size: !size && isInsideButton ? 'medium' : size,
3569
+ color: color,
3570
+ style: style
3571
+ };
2815
3572
  return React__default.createElement("svg", _extends({
2816
3573
  xmlns: "http://www.w3.org/2000/svg",
2817
3574
  fill: "none",
2818
3575
  viewBox: "0 0 20 20",
2819
- style: getIconStyles(props),
3576
+ style: getIconStyles(styleProps),
2820
3577
  "data-testid": testId,
2821
3578
  ref: ref
2822
3579
  }, props), React__default.createElement("g", {
@@ -2833,16 +3590,25 @@ var IconImage = React.forwardRef(function (_ref, ref) {
2833
3590
  });
2834
3591
  IconImage.displayName = 'IconImage';
2835
3592
 
2836
- var _excluded$1m = ["testId"];
3593
+ var _excluded$1m = ["testId", "size", "color", "style"];
2837
3594
  var IconIslandTropical = React.forwardRef(function (_ref, ref) {
2838
3595
  var _ref$testId = _ref.testId,
2839
3596
  testId = _ref$testId === void 0 ? 'icon-island-tropical' : _ref$testId,
3597
+ size = _ref.size,
3598
+ color = _ref.color,
3599
+ style = _ref.style,
2840
3600
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
3601
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3602
+ var styleProps = {
3603
+ size: !size && isInsideButton ? 'medium' : size,
3604
+ color: color,
3605
+ style: style
3606
+ };
2841
3607
  return React__default.createElement("svg", _extends({
2842
3608
  xmlns: "http://www.w3.org/2000/svg",
2843
3609
  fill: "none",
2844
3610
  viewBox: "0 0 20 20",
2845
- style: getIconStyles(props),
3611
+ style: getIconStyles(styleProps),
2846
3612
  "data-testid": testId,
2847
3613
  ref: ref
2848
3614
  }, props), React__default.createElement("path", {
@@ -2854,16 +3620,25 @@ var IconIslandTropical = React.forwardRef(function (_ref, ref) {
2854
3620
  });
2855
3621
  IconIslandTropical.displayName = 'IconIslandTropical';
2856
3622
 
2857
- var _excluded$1n = ["testId"];
3623
+ var _excluded$1n = ["testId", "size", "color", "style"];
2858
3624
  var IconItalic = React.forwardRef(function (_ref, ref) {
2859
3625
  var _ref$testId = _ref.testId,
2860
3626
  testId = _ref$testId === void 0 ? 'icon-italic' : _ref$testId,
3627
+ size = _ref.size,
3628
+ color = _ref.color,
3629
+ style = _ref.style,
2861
3630
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
3631
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3632
+ var styleProps = {
3633
+ size: !size && isInsideButton ? 'medium' : size,
3634
+ color: color,
3635
+ style: style
3636
+ };
2862
3637
  return React__default.createElement("svg", _extends({
2863
3638
  xmlns: "http://www.w3.org/2000/svg",
2864
3639
  fill: "none",
2865
3640
  viewBox: "0 0 20 20",
2866
- style: getIconStyles(props),
3641
+ style: getIconStyles(styleProps),
2867
3642
  "data-testid": testId,
2868
3643
  ref: ref
2869
3644
  }, props), React__default.createElement("path", {
@@ -2873,16 +3648,25 @@ var IconItalic = React.forwardRef(function (_ref, ref) {
2873
3648
  });
2874
3649
  IconItalic.displayName = 'IconItalic';
2875
3650
 
2876
- var _excluded$1o = ["testId"];
3651
+ var _excluded$1o = ["testId", "size", "color", "style"];
2877
3652
  var IconLaptopSearch = React.forwardRef(function (_ref, ref) {
2878
3653
  var _ref$testId = _ref.testId,
2879
3654
  testId = _ref$testId === void 0 ? 'icon-laptop-search' : _ref$testId,
3655
+ size = _ref.size,
3656
+ color = _ref.color,
3657
+ style = _ref.style,
2880
3658
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
3659
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3660
+ var styleProps = {
3661
+ size: !size && isInsideButton ? 'medium' : size,
3662
+ color: color,
3663
+ style: style
3664
+ };
2881
3665
  return React__default.createElement("svg", _extends({
2882
3666
  xmlns: "http://www.w3.org/2000/svg",
2883
3667
  fill: "none",
2884
3668
  viewBox: "0 0 20 20",
2885
- style: getIconStyles(props),
3669
+ style: getIconStyles(styleProps),
2886
3670
  "data-testid": testId,
2887
3671
  ref: ref
2888
3672
  }, props), React__default.createElement("g", {
@@ -2901,16 +3685,25 @@ var IconLaptopSearch = React.forwardRef(function (_ref, ref) {
2901
3685
  });
2902
3686
  IconLaptopSearch.displayName = 'IconLaptopSearch';
2903
3687
 
2904
- var _excluded$1p = ["testId"];
3688
+ var _excluded$1p = ["testId", "size", "color", "style"];
2905
3689
  var IconLink = React.forwardRef(function (_ref, ref) {
2906
3690
  var _ref$testId = _ref.testId,
2907
3691
  testId = _ref$testId === void 0 ? 'icon-link' : _ref$testId,
3692
+ size = _ref.size,
3693
+ color = _ref.color,
3694
+ style = _ref.style,
2908
3695
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
3696
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3697
+ var styleProps = {
3698
+ size: !size && isInsideButton ? 'medium' : size,
3699
+ color: color,
3700
+ style: style
3701
+ };
2909
3702
  return React__default.createElement("svg", _extends({
2910
3703
  xmlns: "http://www.w3.org/2000/svg",
2911
3704
  fill: "none",
2912
3705
  viewBox: "0 0 20 20",
2913
- style: getIconStyles(props),
3706
+ style: getIconStyles(styleProps),
2914
3707
  "data-testid": testId,
2915
3708
  ref: ref
2916
3709
  }, props), React__default.createElement("g", {
@@ -2927,16 +3720,25 @@ var IconLink = React.forwardRef(function (_ref, ref) {
2927
3720
  });
2928
3721
  IconLink.displayName = 'IconLink';
2929
3722
 
2930
- var _excluded$1q = ["testId"];
3723
+ var _excluded$1q = ["testId", "size", "color", "style"];
2931
3724
  var IconListOI = React.forwardRef(function (_ref, ref) {
2932
3725
  var _ref$testId = _ref.testId,
2933
3726
  testId = _ref$testId === void 0 ? 'icon-list-o-i' : _ref$testId,
3727
+ size = _ref.size,
3728
+ color = _ref.color,
3729
+ style = _ref.style,
2934
3730
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
3731
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3732
+ var styleProps = {
3733
+ size: !size && isInsideButton ? 'medium' : size,
3734
+ color: color,
3735
+ style: style
3736
+ };
2935
3737
  return React__default.createElement("svg", _extends({
2936
3738
  xmlns: "http://www.w3.org/2000/svg",
2937
3739
  fill: "none",
2938
3740
  viewBox: "0 0 20 20",
2939
- style: getIconStyles(props),
3741
+ style: getIconStyles(styleProps),
2940
3742
  "data-testid": testId,
2941
3743
  ref: ref
2942
3744
  }, props), React__default.createElement("g", {
@@ -2953,16 +3755,25 @@ var IconListOI = React.forwardRef(function (_ref, ref) {
2953
3755
  });
2954
3756
  IconListOI.displayName = 'IconListOI';
2955
3757
 
2956
- var _excluded$1r = ["testId"];
3758
+ var _excluded$1r = ["testId", "size", "color", "style"];
2957
3759
  var IconList = React.forwardRef(function (_ref, ref) {
2958
3760
  var _ref$testId = _ref.testId,
2959
3761
  testId = _ref$testId === void 0 ? 'icon-list' : _ref$testId,
3762
+ size = _ref.size,
3763
+ color = _ref.color,
3764
+ style = _ref.style,
2960
3765
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
3766
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3767
+ var styleProps = {
3768
+ size: !size && isInsideButton ? 'medium' : size,
3769
+ color: color,
3770
+ style: style
3771
+ };
2961
3772
  return React__default.createElement("svg", _extends({
2962
3773
  xmlns: "http://www.w3.org/2000/svg",
2963
3774
  fill: "none",
2964
3775
  viewBox: "0 0 20 20",
2965
- style: getIconStyles(props),
3776
+ style: getIconStyles(styleProps),
2966
3777
  "data-testid": testId,
2967
3778
  ref: ref
2968
3779
  }, props), React__default.createElement("path", {
@@ -2972,16 +3783,25 @@ var IconList = React.forwardRef(function (_ref, ref) {
2972
3783
  });
2973
3784
  IconList.displayName = 'IconList';
2974
3785
 
2975
- var _excluded$1s = ["testId"];
3786
+ var _excluded$1s = ["testId", "size", "color", "style"];
2976
3787
  var IconLock = React.forwardRef(function (_ref, ref) {
2977
3788
  var _ref$testId = _ref.testId,
2978
3789
  testId = _ref$testId === void 0 ? 'icon-lock' : _ref$testId,
3790
+ size = _ref.size,
3791
+ color = _ref.color,
3792
+ style = _ref.style,
2979
3793
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
3794
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3795
+ var styleProps = {
3796
+ size: !size && isInsideButton ? 'medium' : size,
3797
+ color: color,
3798
+ style: style
3799
+ };
2980
3800
  return React__default.createElement("svg", _extends({
2981
3801
  xmlns: "http://www.w3.org/2000/svg",
2982
3802
  fill: "none",
2983
3803
  viewBox: "0 0 20 20",
2984
- style: getIconStyles(props),
3804
+ style: getIconStyles(styleProps),
2985
3805
  "data-testid": testId,
2986
3806
  ref: ref
2987
3807
  }, props), React__default.createElement("path", {
@@ -2991,16 +3811,25 @@ var IconLock = React.forwardRef(function (_ref, ref) {
2991
3811
  });
2992
3812
  IconLock.displayName = 'IconLock';
2993
3813
 
2994
- var _excluded$1t = ["testId"];
3814
+ var _excluded$1t = ["testId", "size", "color", "style"];
2995
3815
  var IconMagicSolid = React.forwardRef(function (_ref, ref) {
2996
3816
  var _ref$testId = _ref.testId,
2997
3817
  testId = _ref$testId === void 0 ? 'icon-magic-solid' : _ref$testId,
3818
+ size = _ref.size,
3819
+ color = _ref.color,
3820
+ style = _ref.style,
2998
3821
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1t);
3822
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3823
+ var styleProps = {
3824
+ size: !size && isInsideButton ? 'medium' : size,
3825
+ color: color,
3826
+ style: style
3827
+ };
2999
3828
  return React__default.createElement("svg", _extends({
3000
3829
  xmlns: "http://www.w3.org/2000/svg",
3001
3830
  fill: "none",
3002
3831
  viewBox: "0 0 20 20",
3003
- style: getIconStyles(props),
3832
+ style: getIconStyles(styleProps),
3004
3833
  "data-testid": testId,
3005
3834
  ref: ref
3006
3835
  }, props), React__default.createElement("path", {
@@ -3012,16 +3841,25 @@ var IconMagicSolid = React.forwardRef(function (_ref, ref) {
3012
3841
  });
3013
3842
  IconMagicSolid.displayName = 'IconMagicSolid';
3014
3843
 
3015
- var _excluded$1u = ["testId"];
3844
+ var _excluded$1u = ["testId", "size", "color", "style"];
3016
3845
  var IconMapMarker = React.forwardRef(function (_ref, ref) {
3017
3846
  var _ref$testId = _ref.testId,
3018
3847
  testId = _ref$testId === void 0 ? 'icon-map-marker' : _ref$testId,
3848
+ size = _ref.size,
3849
+ color = _ref.color,
3850
+ style = _ref.style,
3019
3851
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1u);
3852
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3853
+ var styleProps = {
3854
+ size: !size && isInsideButton ? 'medium' : size,
3855
+ color: color,
3856
+ style: style
3857
+ };
3020
3858
  return React__default.createElement("svg", _extends({
3021
3859
  xmlns: "http://www.w3.org/2000/svg",
3022
3860
  fill: "none",
3023
3861
  viewBox: "0 0 20 20",
3024
- style: getIconStyles(props),
3862
+ style: getIconStyles(styleProps),
3025
3863
  "data-testid": testId,
3026
3864
  ref: ref
3027
3865
  }, props), React__default.createElement("path", {
@@ -3033,16 +3871,25 @@ var IconMapMarker = React.forwardRef(function (_ref, ref) {
3033
3871
  });
3034
3872
  IconMapMarker.displayName = 'IconMapMarker';
3035
3873
 
3036
- var _excluded$1v = ["testId"];
3874
+ var _excluded$1v = ["testId", "size", "color", "style"];
3037
3875
  var IconMegaphone = React.forwardRef(function (_ref, ref) {
3038
3876
  var _ref$testId = _ref.testId,
3039
3877
  testId = _ref$testId === void 0 ? 'icon-megaphone' : _ref$testId,
3878
+ size = _ref.size,
3879
+ color = _ref.color,
3880
+ style = _ref.style,
3040
3881
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1v);
3882
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3883
+ var styleProps = {
3884
+ size: !size && isInsideButton ? 'medium' : size,
3885
+ color: color,
3886
+ style: style
3887
+ };
3041
3888
  return React__default.createElement("svg", _extends({
3042
3889
  xmlns: "http://www.w3.org/2000/svg",
3043
3890
  fill: "none",
3044
3891
  viewBox: "0 0 20 20",
3045
- style: getIconStyles(props),
3892
+ style: getIconStyles(styleProps),
3046
3893
  "data-testid": testId,
3047
3894
  ref: ref
3048
3895
  }, props), React__default.createElement("path", {
@@ -3054,16 +3901,25 @@ var IconMegaphone = React.forwardRef(function (_ref, ref) {
3054
3901
  });
3055
3902
  IconMegaphone.displayName = 'IconMegaphone';
3056
3903
 
3057
- var _excluded$1w = ["testId"];
3904
+ var _excluded$1w = ["testId", "size", "color", "style"];
3058
3905
  var IconMessages = React.forwardRef(function (_ref, ref) {
3059
3906
  var _ref$testId = _ref.testId,
3060
3907
  testId = _ref$testId === void 0 ? 'icon-messages' : _ref$testId,
3908
+ size = _ref.size,
3909
+ color = _ref.color,
3910
+ style = _ref.style,
3061
3911
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1w);
3912
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3913
+ var styleProps = {
3914
+ size: !size && isInsideButton ? 'medium' : size,
3915
+ color: color,
3916
+ style: style
3917
+ };
3062
3918
  return React__default.createElement("svg", _extends({
3063
3919
  xmlns: "http://www.w3.org/2000/svg",
3064
3920
  fill: "none",
3065
3921
  viewBox: "0 0 20 18",
3066
- style: getIconStyles(props),
3922
+ style: getIconStyles(styleProps),
3067
3923
  "data-testid": testId,
3068
3924
  ref: ref
3069
3925
  }, props), React__default.createElement("path", {
@@ -3073,16 +3929,25 @@ var IconMessages = React.forwardRef(function (_ref, ref) {
3073
3929
  });
3074
3930
  IconMessages.displayName = 'IconMessages';
3075
3931
 
3076
- var _excluded$1x = ["testId"];
3932
+ var _excluded$1x = ["testId", "size", "color", "style"];
3077
3933
  var IconMinusCircle = React.forwardRef(function (_ref, ref) {
3078
3934
  var _ref$testId = _ref.testId,
3079
3935
  testId = _ref$testId === void 0 ? 'icon-minus-circle' : _ref$testId,
3936
+ size = _ref.size,
3937
+ color = _ref.color,
3938
+ style = _ref.style,
3080
3939
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1x);
3940
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3941
+ var styleProps = {
3942
+ size: !size && isInsideButton ? 'medium' : size,
3943
+ color: color,
3944
+ style: style
3945
+ };
3081
3946
  return React__default.createElement("svg", _extends({
3082
3947
  xmlns: "http://www.w3.org/2000/svg",
3083
3948
  fill: "none",
3084
3949
  viewBox: "0 0 20 20",
3085
- style: getIconStyles(props),
3950
+ style: getIconStyles(styleProps),
3086
3951
  "data-testid": testId,
3087
3952
  ref: ref
3088
3953
  }, props), React__default.createElement("path", {
@@ -3092,16 +3957,25 @@ var IconMinusCircle = React.forwardRef(function (_ref, ref) {
3092
3957
  });
3093
3958
  IconMinusCircle.displayName = 'IconMinusCircle';
3094
3959
 
3095
- var _excluded$1y = ["testId"];
3960
+ var _excluded$1y = ["testId", "size", "color", "style"];
3096
3961
  var IconMinus = React.forwardRef(function (_ref, ref) {
3097
3962
  var _ref$testId = _ref.testId,
3098
3963
  testId = _ref$testId === void 0 ? 'icon-minus' : _ref$testId,
3964
+ size = _ref.size,
3965
+ color = _ref.color,
3966
+ style = _ref.style,
3099
3967
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1y);
3968
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3969
+ var styleProps = {
3970
+ size: !size && isInsideButton ? 'medium' : size,
3971
+ color: color,
3972
+ style: style
3973
+ };
3100
3974
  return React__default.createElement("svg", _extends({
3101
3975
  xmlns: "http://www.w3.org/2000/svg",
3102
3976
  fill: "none",
3103
3977
  viewBox: "0 0 20 20",
3104
- style: getIconStyles(props),
3978
+ style: getIconStyles(styleProps),
3105
3979
  "data-testid": testId,
3106
3980
  ref: ref
3107
3981
  }, props), React__default.createElement("path", {
@@ -3111,16 +3985,25 @@ var IconMinus = React.forwardRef(function (_ref, ref) {
3111
3985
  });
3112
3986
  IconMinus.displayName = 'IconMinus';
3113
3987
 
3114
- var _excluded$1z = ["testId"];
3988
+ var _excluded$1z = ["testId", "size", "color", "style"];
3115
3989
  var IconMoneyBill = React.forwardRef(function (_ref, ref) {
3116
3990
  var _ref$testId = _ref.testId,
3117
3991
  testId = _ref$testId === void 0 ? 'icon-money-bill' : _ref$testId,
3992
+ size = _ref.size,
3993
+ color = _ref.color,
3994
+ style = _ref.style,
3118
3995
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1z);
3996
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3997
+ var styleProps = {
3998
+ size: !size && isInsideButton ? 'medium' : size,
3999
+ color: color,
4000
+ style: style
4001
+ };
3119
4002
  return React__default.createElement("svg", _extends({
3120
4003
  xmlns: "http://www.w3.org/2000/svg",
3121
4004
  fill: "none",
3122
4005
  viewBox: "0 0 20 20",
3123
- style: getIconStyles(props),
4006
+ style: getIconStyles(styleProps),
3124
4007
  "data-testid": testId,
3125
4008
  ref: ref
3126
4009
  }, props), React__default.createElement("path", {
@@ -3130,16 +4013,25 @@ var IconMoneyBill = React.forwardRef(function (_ref, ref) {
3130
4013
  });
3131
4014
  IconMoneyBill.displayName = 'IconMoneyBill';
3132
4015
 
3133
- var _excluded$1A = ["testId"];
4016
+ var _excluded$1A = ["testId", "size", "color", "style"];
3134
4017
  var IconMugSaucerSolid = React.forwardRef(function (_ref, ref) {
3135
4018
  var _ref$testId = _ref.testId,
3136
4019
  testId = _ref$testId === void 0 ? 'icon-mug-saucer-solid' : _ref$testId,
4020
+ size = _ref.size,
4021
+ color = _ref.color,
4022
+ style = _ref.style,
3137
4023
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1A);
4024
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4025
+ var styleProps = {
4026
+ size: !size && isInsideButton ? 'medium' : size,
4027
+ color: color,
4028
+ style: style
4029
+ };
3138
4030
  return React__default.createElement("svg", _extends({
3139
4031
  xmlns: "http://www.w3.org/2000/svg",
3140
4032
  fill: "none",
3141
4033
  viewBox: "0 0 21 20",
3142
- style: getIconStyles(props),
4034
+ style: getIconStyles(styleProps),
3143
4035
  "data-testid": testId,
3144
4036
  ref: ref
3145
4037
  }, props), React__default.createElement("path", {
@@ -3149,16 +4041,25 @@ var IconMugSaucerSolid = React.forwardRef(function (_ref, ref) {
3149
4041
  });
3150
4042
  IconMugSaucerSolid.displayName = 'IconMugSaucerSolid';
3151
4043
 
3152
- var _excluded$1B = ["testId"];
4044
+ var _excluded$1B = ["testId", "size", "color", "style"];
3153
4045
  var IconNotesMedical = React.forwardRef(function (_ref, ref) {
3154
4046
  var _ref$testId = _ref.testId,
3155
4047
  testId = _ref$testId === void 0 ? 'icon-notes-medical' : _ref$testId,
4048
+ size = _ref.size,
4049
+ color = _ref.color,
4050
+ style = _ref.style,
3156
4051
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1B);
4052
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4053
+ var styleProps = {
4054
+ size: !size && isInsideButton ? 'medium' : size,
4055
+ color: color,
4056
+ style: style
4057
+ };
3157
4058
  return React__default.createElement("svg", _extends({
3158
4059
  xmlns: "http://www.w3.org/2000/svg",
3159
4060
  fill: "none",
3160
4061
  viewBox: "0 0 20 20",
3161
- style: getIconStyles(props),
4062
+ style: getIconStyles(styleProps),
3162
4063
  "data-testid": testId,
3163
4064
  ref: ref
3164
4065
  }, props), React__default.createElement("path", {
@@ -3168,16 +4069,25 @@ var IconNotesMedical = React.forwardRef(function (_ref, ref) {
3168
4069
  });
3169
4070
  IconNotesMedical.displayName = 'IconNotesMedical';
3170
4071
 
3171
- var _excluded$1C = ["testId"];
4072
+ var _excluded$1C = ["testId", "size", "color", "style"];
3172
4073
  var IconOvertime = React.forwardRef(function (_ref, ref) {
3173
4074
  var _ref$testId = _ref.testId,
3174
4075
  testId = _ref$testId === void 0 ? 'icon-overtime' : _ref$testId,
4076
+ size = _ref.size,
4077
+ color = _ref.color,
4078
+ style = _ref.style,
3175
4079
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1C);
4080
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4081
+ var styleProps = {
4082
+ size: !size && isInsideButton ? 'medium' : size,
4083
+ color: color,
4084
+ style: style
4085
+ };
3176
4086
  return React__default.createElement("svg", _extends({
3177
4087
  xmlns: "http://www.w3.org/2000/svg",
3178
4088
  fill: "none",
3179
4089
  viewBox: "0 0 21 20",
3180
- style: getIconStyles(props),
4090
+ style: getIconStyles(styleProps),
3181
4091
  "data-testid": testId,
3182
4092
  ref: ref
3183
4093
  }, props), React__default.createElement("g", {
@@ -3194,16 +4104,25 @@ var IconOvertime = React.forwardRef(function (_ref, ref) {
3194
4104
  });
3195
4105
  IconOvertime.displayName = 'IconOvertime';
3196
4106
 
3197
- var _excluded$1D = ["testId"];
4107
+ var _excluded$1D = ["testId", "size", "color", "style"];
3198
4108
  var IconPaperPlaneClock = React.forwardRef(function (_ref, ref) {
3199
4109
  var _ref$testId = _ref.testId,
3200
4110
  testId = _ref$testId === void 0 ? 'icon-paper-plane-clock' : _ref$testId,
4111
+ size = _ref.size,
4112
+ color = _ref.color,
4113
+ style = _ref.style,
3201
4114
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1D);
4115
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4116
+ var styleProps = {
4117
+ size: !size && isInsideButton ? 'medium' : size,
4118
+ color: color,
4119
+ style: style
4120
+ };
3202
4121
  return React__default.createElement("svg", _extends({
3203
4122
  xmlns: "http://www.w3.org/2000/svg",
3204
4123
  fill: "none",
3205
4124
  viewBox: "0 0 20 20",
3206
- style: getIconStyles(props),
4125
+ style: getIconStyles(styleProps),
3207
4126
  "data-testid": testId,
3208
4127
  ref: ref
3209
4128
  }, props), React__default.createElement("g", {
@@ -3224,16 +4143,25 @@ var IconPaperPlaneClock = React.forwardRef(function (_ref, ref) {
3224
4143
  });
3225
4144
  IconPaperPlaneClock.displayName = 'IconPaperPlaneClock';
3226
4145
 
3227
- var _excluded$1E = ["testId"];
4146
+ var _excluded$1E = ["testId", "size", "color", "style"];
3228
4147
  var IconPaperPlane = React.forwardRef(function (_ref, ref) {
3229
4148
  var _ref$testId = _ref.testId,
3230
4149
  testId = _ref$testId === void 0 ? 'icon-paper-plane' : _ref$testId,
4150
+ size = _ref.size,
4151
+ color = _ref.color,
4152
+ style = _ref.style,
3231
4153
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1E);
4154
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4155
+ var styleProps = {
4156
+ size: !size && isInsideButton ? 'medium' : size,
4157
+ color: color,
4158
+ style: style
4159
+ };
3232
4160
  return React__default.createElement("svg", _extends({
3233
4161
  xmlns: "http://www.w3.org/2000/svg",
3234
4162
  fill: "none",
3235
4163
  viewBox: "0 0 19 20",
3236
- style: getIconStyles(props),
4164
+ style: getIconStyles(styleProps),
3237
4165
  "data-testid": testId,
3238
4166
  ref: ref
3239
4167
  }, props), React__default.createElement("path", {
@@ -3245,16 +4173,25 @@ var IconPaperPlane = React.forwardRef(function (_ref, ref) {
3245
4173
  });
3246
4174
  IconPaperPlane.displayName = 'IconPaperPlane';
3247
4175
 
3248
- var _excluded$1F = ["testId"];
4176
+ var _excluded$1F = ["testId", "size", "color", "style"];
3249
4177
  var IconPaperclip = React.forwardRef(function (_ref, ref) {
3250
4178
  var _ref$testId = _ref.testId,
3251
4179
  testId = _ref$testId === void 0 ? 'icon-paperclip' : _ref$testId,
4180
+ size = _ref.size,
4181
+ color = _ref.color,
4182
+ style = _ref.style,
3252
4183
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1F);
4184
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4185
+ var styleProps = {
4186
+ size: !size && isInsideButton ? 'medium' : size,
4187
+ color: color,
4188
+ style: style
4189
+ };
3253
4190
  return React__default.createElement("svg", _extends({
3254
4191
  xmlns: "http://www.w3.org/2000/svg",
3255
4192
  fill: "none",
3256
4193
  viewBox: "0 0 20 20",
3257
- style: getIconStyles(props),
4194
+ style: getIconStyles(styleProps),
3258
4195
  "data-testid": testId,
3259
4196
  ref: ref
3260
4197
  }, props), React__default.createElement("g", {
@@ -3271,16 +4208,25 @@ var IconPaperclip = React.forwardRef(function (_ref, ref) {
3271
4208
  });
3272
4209
  IconPaperclip.displayName = 'IconPaperclip';
3273
4210
 
3274
- var _excluded$1G = ["testId"];
4211
+ var _excluded$1G = ["testId", "size", "color", "style"];
3275
4212
  var IconPencil = React.forwardRef(function (_ref, ref) {
3276
4213
  var _ref$testId = _ref.testId,
3277
4214
  testId = _ref$testId === void 0 ? 'icon-pencil' : _ref$testId,
4215
+ size = _ref.size,
4216
+ color = _ref.color,
4217
+ style = _ref.style,
3278
4218
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1G);
4219
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4220
+ var styleProps = {
4221
+ size: !size && isInsideButton ? 'medium' : size,
4222
+ color: color,
4223
+ style: style
4224
+ };
3279
4225
  return React__default.createElement("svg", _extends({
3280
4226
  xmlns: "http://www.w3.org/2000/svg",
3281
4227
  fill: "none",
3282
4228
  viewBox: "0 0 20 20",
3283
- style: getIconStyles(props),
4229
+ style: getIconStyles(styleProps),
3284
4230
  "data-testid": testId,
3285
4231
  ref: ref
3286
4232
  }, props), React__default.createElement("path", {
@@ -3292,16 +4238,25 @@ var IconPencil = React.forwardRef(function (_ref, ref) {
3292
4238
  });
3293
4239
  IconPencil.displayName = 'IconPencil';
3294
4240
 
3295
- var _excluded$1H = ["testId"];
4241
+ var _excluded$1H = ["testId", "size", "color", "style"];
3296
4242
  var IconPercentage = React.forwardRef(function (_ref, ref) {
3297
4243
  var _ref$testId = _ref.testId,
3298
4244
  testId = _ref$testId === void 0 ? 'icon-percentage' : _ref$testId,
4245
+ size = _ref.size,
4246
+ color = _ref.color,
4247
+ style = _ref.style,
3299
4248
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1H);
4249
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4250
+ var styleProps = {
4251
+ size: !size && isInsideButton ? 'medium' : size,
4252
+ color: color,
4253
+ style: style
4254
+ };
3300
4255
  return React__default.createElement("svg", _extends({
3301
4256
  xmlns: "http://www.w3.org/2000/svg",
3302
4257
  fill: "none",
3303
4258
  viewBox: "0 0 20 20",
3304
- style: getIconStyles(props),
4259
+ style: getIconStyles(styleProps),
3305
4260
  "data-testid": testId,
3306
4261
  ref: ref
3307
4262
  }, props), React__default.createElement("path", {
@@ -3311,15 +4266,24 @@ var IconPercentage = React.forwardRef(function (_ref, ref) {
3311
4266
  });
3312
4267
  IconPercentage.displayName = 'IconPercentage';
3313
4268
 
3314
- var _excluded$1I = ["testId"];
4269
+ var _excluded$1I = ["testId", "size", "color", "style"];
3315
4270
  var IconPhone = React.forwardRef(function (_ref, ref) {
3316
4271
  var _ref$testId = _ref.testId,
3317
4272
  testId = _ref$testId === void 0 ? 'icon-phone' : _ref$testId,
4273
+ size = _ref.size,
4274
+ color = _ref.color,
4275
+ style = _ref.style,
3318
4276
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1I);
4277
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4278
+ var styleProps = {
4279
+ size: !size && isInsideButton ? 'medium' : size,
4280
+ color: color,
4281
+ style: style
4282
+ };
3319
4283
  return React__default.createElement("svg", _extends({
3320
4284
  xmlns: "http://www.w3.org/2000/svg",
3321
4285
  viewBox: "0 0 20 20",
3322
- style: getIconStyles(props),
4286
+ style: getIconStyles(styleProps),
3323
4287
  "data-testid": testId,
3324
4288
  ref: ref
3325
4289
  }, props), React__default.createElement("path", {
@@ -3330,16 +4294,25 @@ var IconPhone = React.forwardRef(function (_ref, ref) {
3330
4294
  });
3331
4295
  IconPhone.displayName = 'IconPhone';
3332
4296
 
3333
- var _excluded$1J = ["testId"];
4297
+ var _excluded$1J = ["testId", "size", "color", "style"];
3334
4298
  var IconPlug = React.forwardRef(function (_ref, ref) {
3335
4299
  var _ref$testId = _ref.testId,
3336
4300
  testId = _ref$testId === void 0 ? 'icon-plug' : _ref$testId,
4301
+ size = _ref.size,
4302
+ color = _ref.color,
4303
+ style = _ref.style,
3337
4304
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1J);
4305
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4306
+ var styleProps = {
4307
+ size: !size && isInsideButton ? 'medium' : size,
4308
+ color: color,
4309
+ style: style
4310
+ };
3338
4311
  return React__default.createElement("svg", _extends({
3339
4312
  xmlns: "http://www.w3.org/2000/svg",
3340
4313
  fill: "none",
3341
4314
  viewBox: "0 0 20 20",
3342
- style: getIconStyles(props),
4315
+ style: getIconStyles(styleProps),
3343
4316
  "data-testid": testId,
3344
4317
  ref: ref
3345
4318
  }, props), React__default.createElement("path", {
@@ -3351,16 +4324,25 @@ var IconPlug = React.forwardRef(function (_ref, ref) {
3351
4324
  });
3352
4325
  IconPlug.displayName = 'IconPlug';
3353
4326
 
3354
- var _excluded$1K = ["testId"];
4327
+ var _excluded$1K = ["testId", "size", "color", "style"];
3355
4328
  var IconPlus = React.forwardRef(function (_ref, ref) {
3356
4329
  var _ref$testId = _ref.testId,
3357
4330
  testId = _ref$testId === void 0 ? 'icon-plus' : _ref$testId,
4331
+ size = _ref.size,
4332
+ color = _ref.color,
4333
+ style = _ref.style,
3358
4334
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1K);
4335
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4336
+ var styleProps = {
4337
+ size: !size && isInsideButton ? 'medium' : size,
4338
+ color: color,
4339
+ style: style
4340
+ };
3359
4341
  return React__default.createElement("svg", _extends({
3360
4342
  xmlns: "http://www.w3.org/2000/svg",
3361
4343
  fill: "none",
3362
4344
  viewBox: "0 0 20 20",
3363
- style: getIconStyles(props),
4345
+ style: getIconStyles(styleProps),
3364
4346
  "data-testid": testId,
3365
4347
  ref: ref
3366
4348
  }, props), React__default.createElement("path", {
@@ -3372,16 +4354,25 @@ var IconPlus = React.forwardRef(function (_ref, ref) {
3372
4354
  });
3373
4355
  IconPlus.displayName = 'IconPlus';
3374
4356
 
3375
- var _excluded$1L = ["testId"];
4357
+ var _excluded$1L = ["testId", "size", "color", "style"];
3376
4358
  var IconPrint = React.forwardRef(function (_ref, ref) {
3377
4359
  var _ref$testId = _ref.testId,
3378
4360
  testId = _ref$testId === void 0 ? 'icon-print' : _ref$testId,
4361
+ size = _ref.size,
4362
+ color = _ref.color,
4363
+ style = _ref.style,
3379
4364
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1L);
4365
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4366
+ var styleProps = {
4367
+ size: !size && isInsideButton ? 'medium' : size,
4368
+ color: color,
4369
+ style: style
4370
+ };
3380
4371
  return React__default.createElement("svg", _extends({
3381
4372
  xmlns: "http://www.w3.org/2000/svg",
3382
4373
  fill: "none",
3383
4374
  viewBox: "0 0 20 20",
3384
- style: getIconStyles(props),
4375
+ style: getIconStyles(styleProps),
3385
4376
  "data-testid": testId,
3386
4377
  ref: ref
3387
4378
  }, props), React__default.createElement("path", {
@@ -3393,16 +4384,25 @@ var IconPrint = React.forwardRef(function (_ref, ref) {
3393
4384
  });
3394
4385
  IconPrint.displayName = 'IconPrint';
3395
4386
 
3396
- var _excluded$1M = ["testId"];
4387
+ var _excluded$1M = ["testId", "size", "color", "style"];
3397
4388
  var IconQuestionCircle = React.forwardRef(function (_ref, ref) {
3398
4389
  var _ref$testId = _ref.testId,
3399
4390
  testId = _ref$testId === void 0 ? 'icon-question-circle' : _ref$testId,
4391
+ size = _ref.size,
4392
+ color = _ref.color,
4393
+ style = _ref.style,
3400
4394
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1M);
4395
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4396
+ var styleProps = {
4397
+ size: !size && isInsideButton ? 'medium' : size,
4398
+ color: color,
4399
+ style: style
4400
+ };
3401
4401
  return React__default.createElement("svg", _extends({
3402
4402
  xmlns: "http://www.w3.org/2000/svg",
3403
4403
  fill: "none",
3404
4404
  viewBox: "0 0 20 20",
3405
- style: getIconStyles(props),
4405
+ style: getIconStyles(styleProps),
3406
4406
  "data-testid": testId,
3407
4407
  ref: ref
3408
4408
  }, props), React__default.createElement("path", {
@@ -3412,16 +4412,25 @@ var IconQuestionCircle = React.forwardRef(function (_ref, ref) {
3412
4412
  });
3413
4413
  IconQuestionCircle.displayName = 'IconQuestionCircle';
3414
4414
 
3415
- var _excluded$1N = ["testId"];
4415
+ var _excluded$1N = ["testId", "size", "color", "style"];
3416
4416
  var IconRepeat = React.forwardRef(function (_ref, ref) {
3417
4417
  var _ref$testId = _ref.testId,
3418
4418
  testId = _ref$testId === void 0 ? 'icon-repeat' : _ref$testId,
4419
+ size = _ref.size,
4420
+ color = _ref.color,
4421
+ style = _ref.style,
3419
4422
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1N);
4423
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4424
+ var styleProps = {
4425
+ size: !size && isInsideButton ? 'medium' : size,
4426
+ color: color,
4427
+ style: style
4428
+ };
3420
4429
  return React__default.createElement("svg", _extends({
3421
4430
  xmlns: "http://www.w3.org/2000/svg",
3422
4431
  fill: "none",
3423
4432
  viewBox: "0 0 20 20",
3424
- style: getIconStyles(props),
4433
+ style: getIconStyles(styleProps),
3425
4434
  "data-testid": testId,
3426
4435
  ref: ref
3427
4436
  }, props), React__default.createElement("path", {
@@ -3431,16 +4440,25 @@ var IconRepeat = React.forwardRef(function (_ref, ref) {
3431
4440
  });
3432
4441
  IconRepeat.displayName = 'IconRepeat';
3433
4442
 
3434
- var _excluded$1O = ["testId"];
4443
+ var _excluded$1O = ["testId", "size", "color", "style"];
3435
4444
  var IconReply = React.forwardRef(function (_ref, ref) {
3436
4445
  var _ref$testId = _ref.testId,
3437
4446
  testId = _ref$testId === void 0 ? 'icon-reply' : _ref$testId,
4447
+ size = _ref.size,
4448
+ color = _ref.color,
4449
+ style = _ref.style,
3438
4450
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1O);
4451
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4452
+ var styleProps = {
4453
+ size: !size && isInsideButton ? 'medium' : size,
4454
+ color: color,
4455
+ style: style
4456
+ };
3439
4457
  return React__default.createElement("svg", _extends({
3440
4458
  xmlns: "http://www.w3.org/2000/svg",
3441
4459
  fill: "none",
3442
4460
  viewBox: "0 0 20 20",
3443
- style: getIconStyles(props),
4461
+ style: getIconStyles(styleProps),
3444
4462
  "data-testid": testId,
3445
4463
  ref: ref
3446
4464
  }, props), React__default.createElement("path", {
@@ -3450,16 +4468,25 @@ var IconReply = React.forwardRef(function (_ref, ref) {
3450
4468
  });
3451
4469
  IconReply.displayName = 'IconReply';
3452
4470
 
3453
- var _excluded$1P = ["testId"];
4471
+ var _excluded$1P = ["testId", "size", "color", "style"];
3454
4472
  var IconRocket = React.forwardRef(function (_ref, ref) {
3455
4473
  var _ref$testId = _ref.testId,
3456
4474
  testId = _ref$testId === void 0 ? 'icon-rocket' : _ref$testId,
4475
+ size = _ref.size,
4476
+ color = _ref.color,
4477
+ style = _ref.style,
3457
4478
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1P);
4479
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4480
+ var styleProps = {
4481
+ size: !size && isInsideButton ? 'medium' : size,
4482
+ color: color,
4483
+ style: style
4484
+ };
3458
4485
  return React__default.createElement("svg", _extends({
3459
4486
  xmlns: "http://www.w3.org/2000/svg",
3460
4487
  fill: "none",
3461
4488
  viewBox: "0 0 20 20",
3462
- style: getIconStyles(props),
4489
+ style: getIconStyles(styleProps),
3463
4490
  "data-testid": testId,
3464
4491
  ref: ref
3465
4492
  }, props), React__default.createElement("path", {
@@ -3469,16 +4496,25 @@ var IconRocket = React.forwardRef(function (_ref, ref) {
3469
4496
  });
3470
4497
  IconRocket.displayName = 'IconRocket';
3471
4498
 
3472
- var _excluded$1Q = ["testId"];
4499
+ var _excluded$1Q = ["testId", "size", "color", "style"];
3473
4500
  var IconSearch = React.forwardRef(function (_ref, ref) {
3474
4501
  var _ref$testId = _ref.testId,
3475
4502
  testId = _ref$testId === void 0 ? 'icon-search' : _ref$testId,
4503
+ size = _ref.size,
4504
+ color = _ref.color,
4505
+ style = _ref.style,
3476
4506
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Q);
4507
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4508
+ var styleProps = {
4509
+ size: !size && isInsideButton ? 'medium' : size,
4510
+ color: color,
4511
+ style: style
4512
+ };
3477
4513
  return React__default.createElement("svg", _extends({
3478
4514
  xmlns: "http://www.w3.org/2000/svg",
3479
4515
  fill: "none",
3480
4516
  viewBox: "0 0 20 20",
3481
- style: getIconStyles(props),
4517
+ style: getIconStyles(styleProps),
3482
4518
  "data-testid": testId,
3483
4519
  ref: ref
3484
4520
  }, props), React__default.createElement("path", {
@@ -3490,16 +4526,25 @@ var IconSearch = React.forwardRef(function (_ref, ref) {
3490
4526
  });
3491
4527
  IconSearch.displayName = 'IconSearch';
3492
4528
 
3493
- var _excluded$1R = ["testId"];
4529
+ var _excluded$1R = ["testId", "size", "color", "style"];
3494
4530
  var IconSignOut = React.forwardRef(function (_ref, ref) {
3495
4531
  var _ref$testId = _ref.testId,
3496
4532
  testId = _ref$testId === void 0 ? 'icon-sign-out' : _ref$testId,
4533
+ size = _ref.size,
4534
+ color = _ref.color,
4535
+ style = _ref.style,
3497
4536
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1R);
4537
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4538
+ var styleProps = {
4539
+ size: !size && isInsideButton ? 'medium' : size,
4540
+ color: color,
4541
+ style: style
4542
+ };
3498
4543
  return React__default.createElement("svg", _extends({
3499
4544
  xmlns: "http://www.w3.org/2000/svg",
3500
4545
  fill: "none",
3501
4546
  viewBox: "0 0 20 20",
3502
- style: getIconStyles(props),
4547
+ style: getIconStyles(styleProps),
3503
4548
  "data-testid": testId,
3504
4549
  ref: ref
3505
4550
  }, props), React__default.createElement("path", {
@@ -3509,16 +4554,25 @@ var IconSignOut = React.forwardRef(function (_ref, ref) {
3509
4554
  });
3510
4555
  IconSignOut.displayName = 'IconSignOut';
3511
4556
 
3512
- var _excluded$1S = ["testId"];
4557
+ var _excluded$1S = ["testId", "size", "color", "style"];
3513
4558
  var IconSitemap = React.forwardRef(function (_ref, ref) {
3514
4559
  var _ref$testId = _ref.testId,
3515
4560
  testId = _ref$testId === void 0 ? 'icon-sitemap' : _ref$testId,
4561
+ size = _ref.size,
4562
+ color = _ref.color,
4563
+ style = _ref.style,
3516
4564
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1S);
4565
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4566
+ var styleProps = {
4567
+ size: !size && isInsideButton ? 'medium' : size,
4568
+ color: color,
4569
+ style: style
4570
+ };
3517
4571
  return React__default.createElement("svg", _extends({
3518
4572
  xmlns: "http://www.w3.org/2000/svg",
3519
4573
  fill: "none",
3520
4574
  viewBox: "0 0 20 20",
3521
- style: getIconStyles(props),
4575
+ style: getIconStyles(styleProps),
3522
4576
  "data-testid": testId,
3523
4577
  ref: ref
3524
4578
  }, props), React__default.createElement("path", {
@@ -3530,16 +4584,25 @@ var IconSitemap = React.forwardRef(function (_ref, ref) {
3530
4584
  });
3531
4585
  IconSitemap.displayName = 'IconSitemap';
3532
4586
 
3533
- var _excluded$1T = ["testId"];
4587
+ var _excluded$1T = ["testId", "size", "color", "style"];
3534
4588
  var IconSlidersH = React.forwardRef(function (_ref, ref) {
3535
4589
  var _ref$testId = _ref.testId,
3536
4590
  testId = _ref$testId === void 0 ? 'icon-sliders-h' : _ref$testId,
4591
+ size = _ref.size,
4592
+ color = _ref.color,
4593
+ style = _ref.style,
3537
4594
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1T);
4595
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4596
+ var styleProps = {
4597
+ size: !size && isInsideButton ? 'medium' : size,
4598
+ color: color,
4599
+ style: style
4600
+ };
3538
4601
  return React__default.createElement("svg", _extends({
3539
4602
  xmlns: "http://www.w3.org/2000/svg",
3540
4603
  fill: "none",
3541
4604
  viewBox: "0 0 20 20",
3542
- style: getIconStyles(props),
4605
+ style: getIconStyles(styleProps),
3543
4606
  "data-testid": testId,
3544
4607
  ref: ref
3545
4608
  }, props), React__default.createElement("g", {
@@ -3556,16 +4619,25 @@ var IconSlidersH = React.forwardRef(function (_ref, ref) {
3556
4619
  });
3557
4620
  IconSlidersH.displayName = 'IconSlidersH';
3558
4621
 
3559
- var _excluded$1U = ["testId"];
4622
+ var _excluded$1U = ["testId", "size", "color", "style"];
3560
4623
  var IconSort = React.forwardRef(function (_ref, ref) {
3561
4624
  var _ref$testId = _ref.testId,
3562
4625
  testId = _ref$testId === void 0 ? 'icon-sort' : _ref$testId,
4626
+ size = _ref.size,
4627
+ color = _ref.color,
4628
+ style = _ref.style,
3563
4629
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1U);
4630
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4631
+ var styleProps = {
4632
+ size: !size && isInsideButton ? 'medium' : size,
4633
+ color: color,
4634
+ style: style
4635
+ };
3564
4636
  return React__default.createElement("svg", _extends({
3565
4637
  xmlns: "http://www.w3.org/2000/svg",
3566
4638
  fill: "none",
3567
4639
  viewBox: "0 0 20 20",
3568
- style: getIconStyles(props),
4640
+ style: getIconStyles(styleProps),
3569
4641
  "data-testid": testId,
3570
4642
  ref: ref
3571
4643
  }, props), React__default.createElement("path", {
@@ -3575,16 +4647,25 @@ var IconSort = React.forwardRef(function (_ref, ref) {
3575
4647
  });
3576
4648
  IconSort.displayName = 'IconSort';
3577
4649
 
3578
- var _excluded$1V = ["testId"];
4650
+ var _excluded$1V = ["testId", "size", "color", "style"];
3579
4651
  var IconStarSolid = React.forwardRef(function (_ref, ref) {
3580
4652
  var _ref$testId = _ref.testId,
3581
4653
  testId = _ref$testId === void 0 ? 'icon-star-solid' : _ref$testId,
4654
+ size = _ref.size,
4655
+ color = _ref.color,
4656
+ style = _ref.style,
3582
4657
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1V);
4658
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4659
+ var styleProps = {
4660
+ size: !size && isInsideButton ? 'medium' : size,
4661
+ color: color,
4662
+ style: style
4663
+ };
3583
4664
  return React__default.createElement("svg", _extends({
3584
4665
  xmlns: "http://www.w3.org/2000/svg",
3585
4666
  fill: "none",
3586
4667
  viewBox: "0 0 20 20",
3587
- style: getIconStyles(props),
4668
+ style: getIconStyles(styleProps),
3588
4669
  "data-testid": testId,
3589
4670
  ref: ref
3590
4671
  }, props), React__default.createElement("path", {
@@ -3594,16 +4675,25 @@ var IconStarSolid = React.forwardRef(function (_ref, ref) {
3594
4675
  });
3595
4676
  IconStarSolid.displayName = 'IconStarSolid';
3596
4677
 
3597
- var _excluded$1W = ["testId"];
4678
+ var _excluded$1W = ["testId", "size", "color", "style"];
3598
4679
  var IconStar = React.forwardRef(function (_ref, ref) {
3599
4680
  var _ref$testId = _ref.testId,
3600
4681
  testId = _ref$testId === void 0 ? 'icon-star' : _ref$testId,
4682
+ size = _ref.size,
4683
+ color = _ref.color,
4684
+ style = _ref.style,
3601
4685
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1W);
4686
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4687
+ var styleProps = {
4688
+ size: !size && isInsideButton ? 'medium' : size,
4689
+ color: color,
4690
+ style: style
4691
+ };
3602
4692
  return React__default.createElement("svg", _extends({
3603
4693
  xmlns: "http://www.w3.org/2000/svg",
3604
4694
  fill: "none",
3605
4695
  viewBox: "0 0 20 20",
3606
- style: getIconStyles(props),
4696
+ style: getIconStyles(styleProps),
3607
4697
  "data-testid": testId,
3608
4698
  ref: ref
3609
4699
  }, props), React__default.createElement("path", {
@@ -3613,16 +4703,25 @@ var IconStar = React.forwardRef(function (_ref, ref) {
3613
4703
  });
3614
4704
  IconStar.displayName = 'IconStar';
3615
4705
 
3616
- var _excluded$1X = ["testId"];
4706
+ var _excluded$1X = ["testId", "size", "color", "style"];
3617
4707
  var IconStickyNoteLines = React.forwardRef(function (_ref, ref) {
3618
4708
  var _ref$testId = _ref.testId,
3619
4709
  testId = _ref$testId === void 0 ? 'icon-sticky-note-lines' : _ref$testId,
4710
+ size = _ref.size,
4711
+ color = _ref.color,
4712
+ style = _ref.style,
3620
4713
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1X);
4714
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4715
+ var styleProps = {
4716
+ size: !size && isInsideButton ? 'medium' : size,
4717
+ color: color,
4718
+ style: style
4719
+ };
3621
4720
  return React__default.createElement("svg", _extends({
3622
4721
  xmlns: "http://www.w3.org/2000/svg",
3623
4722
  fill: "none",
3624
4723
  viewBox: "0 0 20 20",
3625
- style: getIconStyles(props),
4724
+ style: getIconStyles(styleProps),
3626
4725
  "data-testid": testId,
3627
4726
  ref: ref
3628
4727
  }, props), React__default.createElement("path", {
@@ -3635,16 +4734,25 @@ var IconStickyNoteLines = React.forwardRef(function (_ref, ref) {
3635
4734
  });
3636
4735
  IconStickyNoteLines.displayName = 'IconStickyNoteLines';
3637
4736
 
3638
- var _excluded$1Y = ["testId"];
4737
+ var _excluded$1Y = ["testId", "size", "color", "style"];
3639
4738
  var IconStopwatch = React.forwardRef(function (_ref, ref) {
3640
4739
  var _ref$testId = _ref.testId,
3641
4740
  testId = _ref$testId === void 0 ? 'icon-stopwatch' : _ref$testId,
4741
+ size = _ref.size,
4742
+ color = _ref.color,
4743
+ style = _ref.style,
3642
4744
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Y);
4745
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4746
+ var styleProps = {
4747
+ size: !size && isInsideButton ? 'medium' : size,
4748
+ color: color,
4749
+ style: style
4750
+ };
3643
4751
  return React__default.createElement("svg", _extends({
3644
4752
  xmlns: "http://www.w3.org/2000/svg",
3645
4753
  fill: "none",
3646
4754
  viewBox: "0 0 20 20",
3647
- style: getIconStyles(props),
4755
+ style: getIconStyles(styleProps),
3648
4756
  "data-testid": testId,
3649
4757
  ref: ref
3650
4758
  }, props), React__default.createElement("path", {
@@ -3656,16 +4764,25 @@ var IconStopwatch = React.forwardRef(function (_ref, ref) {
3656
4764
  });
3657
4765
  IconStopwatch.displayName = 'IconStopwatch';
3658
4766
 
3659
- var _excluded$1Z = ["testId"];
4767
+ var _excluded$1Z = ["testId", "size", "color", "style"];
3660
4768
  var IconStrikethrough = React.forwardRef(function (_ref, ref) {
3661
4769
  var _ref$testId = _ref.testId,
3662
4770
  testId = _ref$testId === void 0 ? 'icon-strikethrough' : _ref$testId,
4771
+ size = _ref.size,
4772
+ color = _ref.color,
4773
+ style = _ref.style,
3663
4774
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Z);
4775
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4776
+ var styleProps = {
4777
+ size: !size && isInsideButton ? 'medium' : size,
4778
+ color: color,
4779
+ style: style
4780
+ };
3664
4781
  return React__default.createElement("svg", _extends({
3665
4782
  xmlns: "http://www.w3.org/2000/svg",
3666
4783
  fill: "none",
3667
4784
  viewBox: "0 0 20 20",
3668
- style: getIconStyles(props),
4785
+ style: getIconStyles(styleProps),
3669
4786
  "data-testid": testId,
3670
4787
  ref: ref
3671
4788
  }, props), React__default.createElement("g", {
@@ -3682,15 +4799,24 @@ var IconStrikethrough = React.forwardRef(function (_ref, ref) {
3682
4799
  });
3683
4800
  IconStrikethrough.displayName = 'IconStrikethrough';
3684
4801
 
3685
- var _excluded$1_ = ["testId"];
4802
+ var _excluded$1_ = ["testId", "size", "color", "style"];
3686
4803
  var IconSyncExclaimation = React.forwardRef(function (_ref, ref) {
3687
4804
  var _ref$testId = _ref.testId,
3688
4805
  testId = _ref$testId === void 0 ? 'icon-sync-exclaimation' : _ref$testId,
4806
+ size = _ref.size,
4807
+ color = _ref.color,
4808
+ style = _ref.style,
3689
4809
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1_);
4810
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4811
+ var styleProps = {
4812
+ size: !size && isInsideButton ? 'medium' : size,
4813
+ color: color,
4814
+ style: style
4815
+ };
3690
4816
  return React__default.createElement("svg", _extends({
3691
4817
  xmlns: "http://www.w3.org/2000/svg",
3692
4818
  viewBox: "0 0 20 20",
3693
- style: getIconStyles(props),
4819
+ style: getIconStyles(styleProps),
3694
4820
  "data-testid": testId,
3695
4821
  ref: ref
3696
4822
  }, props), React__default.createElement("path", {
@@ -3701,15 +4827,24 @@ var IconSyncExclaimation = React.forwardRef(function (_ref, ref) {
3701
4827
  });
3702
4828
  IconSyncExclaimation.displayName = 'IconSyncExclaimation';
3703
4829
 
3704
- var _excluded$1$ = ["testId"];
4830
+ var _excluded$1$ = ["testId", "size", "color", "style"];
3705
4831
  var IconSync = React.forwardRef(function (_ref, ref) {
3706
4832
  var _ref$testId = _ref.testId,
3707
4833
  testId = _ref$testId === void 0 ? 'icon-sync' : _ref$testId,
4834
+ size = _ref.size,
4835
+ color = _ref.color,
4836
+ style = _ref.style,
3708
4837
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1$);
4838
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4839
+ var styleProps = {
4840
+ size: !size && isInsideButton ? 'medium' : size,
4841
+ color: color,
4842
+ style: style
4843
+ };
3709
4844
  return React__default.createElement("svg", _extends({
3710
4845
  xmlns: "http://www.w3.org/2000/svg",
3711
4846
  viewBox: "0 0 20 20",
3712
- style: getIconStyles(props),
4847
+ style: getIconStyles(styleProps),
3713
4848
  "data-testid": testId,
3714
4849
  ref: ref
3715
4850
  }, props), React__default.createElement("path", {
@@ -3720,16 +4855,25 @@ var IconSync = React.forwardRef(function (_ref, ref) {
3720
4855
  });
3721
4856
  IconSync.displayName = 'IconSync';
3722
4857
 
3723
- var _excluded$20 = ["testId"];
4858
+ var _excluded$20 = ["testId", "size", "color", "style"];
3724
4859
  var IconTable = React.forwardRef(function (_ref, ref) {
3725
4860
  var _ref$testId = _ref.testId,
3726
4861
  testId = _ref$testId === void 0 ? 'icon-table' : _ref$testId,
4862
+ size = _ref.size,
4863
+ color = _ref.color,
4864
+ style = _ref.style,
3727
4865
  props = _objectWithoutPropertiesLoose(_ref, _excluded$20);
4866
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4867
+ var styleProps = {
4868
+ size: !size && isInsideButton ? 'medium' : size,
4869
+ color: color,
4870
+ style: style
4871
+ };
3728
4872
  return React__default.createElement("svg", _extends({
3729
4873
  xmlns: "http://www.w3.org/2000/svg",
3730
4874
  fill: "none",
3731
4875
  viewBox: "0 0 20 20",
3732
- style: getIconStyles(props),
4876
+ style: getIconStyles(styleProps),
3733
4877
  "data-testid": testId,
3734
4878
  ref: ref
3735
4879
  }, props), React__default.createElement("g", {
@@ -3746,14 +4890,23 @@ var IconTable = React.forwardRef(function (_ref, ref) {
3746
4890
  });
3747
4891
  IconTable.displayName = 'IconTable';
3748
4892
 
3749
- var _excluded$21 = ["testId"];
4893
+ var _excluded$21 = ["testId", "size", "color", "style"];
3750
4894
  var IconTachometer = React.forwardRef(function (_ref, ref) {
3751
4895
  var _ref$testId = _ref.testId,
3752
4896
  testId = _ref$testId === void 0 ? 'icon-tachometer' : _ref$testId,
4897
+ size = _ref.size,
4898
+ color = _ref.color,
4899
+ style = _ref.style,
3753
4900
  props = _objectWithoutPropertiesLoose(_ref, _excluded$21);
4901
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4902
+ var styleProps = {
4903
+ size: !size && isInsideButton ? 'medium' : size,
4904
+ color: color,
4905
+ style: style
4906
+ };
3754
4907
  return React__default.createElement("svg", _extends({
3755
4908
  xmlns: "http://www.w3.org/2000/svg",
3756
- style: getIconStyles(props),
4909
+ style: getIconStyles(styleProps),
3757
4910
  "data-testid": testId,
3758
4911
  ref: ref
3759
4912
  }, props), React__default.createElement("path", {
@@ -3764,16 +4917,25 @@ var IconTachometer = React.forwardRef(function (_ref, ref) {
3764
4917
  });
3765
4918
  IconTachometer.displayName = 'IconTachometer';
3766
4919
 
3767
- var _excluded$22 = ["testId"];
4920
+ var _excluded$22 = ["testId", "size", "color", "style"];
3768
4921
  var IconTimesOctagon = React.forwardRef(function (_ref, ref) {
3769
4922
  var _ref$testId = _ref.testId,
3770
4923
  testId = _ref$testId === void 0 ? 'icon-times-octagon' : _ref$testId,
4924
+ size = _ref.size,
4925
+ color = _ref.color,
4926
+ style = _ref.style,
3771
4927
  props = _objectWithoutPropertiesLoose(_ref, _excluded$22);
4928
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4929
+ var styleProps = {
4930
+ size: !size && isInsideButton ? 'medium' : size,
4931
+ color: color,
4932
+ style: style
4933
+ };
3772
4934
  return React__default.createElement("svg", _extends({
3773
4935
  xmlns: "http://www.w3.org/2000/svg",
3774
4936
  fill: "none",
3775
4937
  viewBox: "0 0 20 20",
3776
- style: getIconStyles(props),
4938
+ style: getIconStyles(styleProps),
3777
4939
  "data-testid": testId,
3778
4940
  ref: ref
3779
4941
  }, props), React__default.createElement("path", {
@@ -3785,16 +4947,25 @@ var IconTimesOctagon = React.forwardRef(function (_ref, ref) {
3785
4947
  });
3786
4948
  IconTimesOctagon.displayName = 'IconTimesOctagon';
3787
4949
 
3788
- var _excluded$23 = ["testId"];
4950
+ var _excluded$23 = ["testId", "size", "color", "style"];
3789
4951
  var IconTimes = React.forwardRef(function (_ref, ref) {
3790
4952
  var _ref$testId = _ref.testId,
3791
4953
  testId = _ref$testId === void 0 ? 'icon-times' : _ref$testId,
4954
+ size = _ref.size,
4955
+ color = _ref.color,
4956
+ style = _ref.style,
3792
4957
  props = _objectWithoutPropertiesLoose(_ref, _excluded$23);
4958
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4959
+ var styleProps = {
4960
+ size: !size && isInsideButton ? 'medium' : size,
4961
+ color: color,
4962
+ style: style
4963
+ };
3793
4964
  return React__default.createElement("svg", _extends({
3794
4965
  xmlns: "http://www.w3.org/2000/svg",
3795
4966
  fill: "none",
3796
4967
  viewBox: "0 0 20 20",
3797
- style: getIconStyles(props),
4968
+ style: getIconStyles(styleProps),
3798
4969
  "data-testid": testId,
3799
4970
  ref: ref
3800
4971
  }, props), React__default.createElement("path", {
@@ -3806,16 +4977,25 @@ var IconTimes = React.forwardRef(function (_ref, ref) {
3806
4977
  });
3807
4978
  IconTimes.displayName = 'IconTimes';
3808
4979
 
3809
- var _excluded$24 = ["testId"];
4980
+ var _excluded$24 = ["testId", "size", "color", "style"];
3810
4981
  var IconTrash = React.forwardRef(function (_ref, ref) {
3811
4982
  var _ref$testId = _ref.testId,
3812
4983
  testId = _ref$testId === void 0 ? 'icon-trash' : _ref$testId,
4984
+ size = _ref.size,
4985
+ color = _ref.color,
4986
+ style = _ref.style,
3813
4987
  props = _objectWithoutPropertiesLoose(_ref, _excluded$24);
4988
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4989
+ var styleProps = {
4990
+ size: !size && isInsideButton ? 'medium' : size,
4991
+ color: color,
4992
+ style: style
4993
+ };
3814
4994
  return React__default.createElement("svg", _extends({
3815
4995
  xmlns: "http://www.w3.org/2000/svg",
3816
4996
  fill: "none",
3817
4997
  viewBox: "0 0 20 20",
3818
- style: getIconStyles(props),
4998
+ style: getIconStyles(styleProps),
3819
4999
  "data-testid": testId,
3820
5000
  ref: ref
3821
5001
  }, props), React__default.createElement("path", {
@@ -3827,16 +5007,25 @@ var IconTrash = React.forwardRef(function (_ref, ref) {
3827
5007
  });
3828
5008
  IconTrash.displayName = 'IconTrash';
3829
5009
 
3830
- var _excluded$25 = ["testId"];
5010
+ var _excluded$25 = ["testId", "size", "color", "style"];
3831
5011
  var IconUnderline = React.forwardRef(function (_ref, ref) {
3832
5012
  var _ref$testId = _ref.testId,
3833
5013
  testId = _ref$testId === void 0 ? 'icon-underline' : _ref$testId,
5014
+ size = _ref.size,
5015
+ color = _ref.color,
5016
+ style = _ref.style,
3834
5017
  props = _objectWithoutPropertiesLoose(_ref, _excluded$25);
5018
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5019
+ var styleProps = {
5020
+ size: !size && isInsideButton ? 'medium' : size,
5021
+ color: color,
5022
+ style: style
5023
+ };
3835
5024
  return React__default.createElement("svg", _extends({
3836
5025
  xmlns: "http://www.w3.org/2000/svg",
3837
5026
  fill: "none",
3838
5027
  viewBox: "0 0 20 20",
3839
- style: getIconStyles(props),
5028
+ style: getIconStyles(styleProps),
3840
5029
  "data-testid": testId,
3841
5030
  ref: ref
3842
5031
  }, props), React__default.createElement("path", {
@@ -3846,16 +5035,25 @@ var IconUnderline = React.forwardRef(function (_ref, ref) {
3846
5035
  });
3847
5036
  IconUnderline.displayName = 'IconUnderline';
3848
5037
 
3849
- var _excluded$26 = ["testId"];
5038
+ var _excluded$26 = ["testId", "size", "color", "style"];
3850
5039
  var IconUndo = React.forwardRef(function (_ref, ref) {
3851
5040
  var _ref$testId = _ref.testId,
3852
5041
  testId = _ref$testId === void 0 ? 'icon-undo' : _ref$testId,
5042
+ size = _ref.size,
5043
+ color = _ref.color,
5044
+ style = _ref.style,
3853
5045
  props = _objectWithoutPropertiesLoose(_ref, _excluded$26);
5046
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5047
+ var styleProps = {
5048
+ size: !size && isInsideButton ? 'medium' : size,
5049
+ color: color,
5050
+ style: style
5051
+ };
3854
5052
  return React__default.createElement("svg", _extends({
3855
5053
  xmlns: "http://www.w3.org/2000/svg",
3856
5054
  fill: "none",
3857
5055
  viewBox: "0 0 20 20",
3858
- style: getIconStyles(props),
5056
+ style: getIconStyles(styleProps),
3859
5057
  "data-testid": testId,
3860
5058
  ref: ref
3861
5059
  }, props), React__default.createElement("path", {
@@ -3865,16 +5063,25 @@ var IconUndo = React.forwardRef(function (_ref, ref) {
3865
5063
  });
3866
5064
  IconUndo.displayName = 'IconUndo';
3867
5065
 
3868
- var _excluded$27 = ["testId"];
5066
+ var _excluded$27 = ["testId", "size", "color", "style"];
3869
5067
  var IconUniversity = React.forwardRef(function (_ref, ref) {
3870
5068
  var _ref$testId = _ref.testId,
3871
5069
  testId = _ref$testId === void 0 ? 'icon-university' : _ref$testId,
5070
+ size = _ref.size,
5071
+ color = _ref.color,
5072
+ style = _ref.style,
3872
5073
  props = _objectWithoutPropertiesLoose(_ref, _excluded$27);
5074
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5075
+ var styleProps = {
5076
+ size: !size && isInsideButton ? 'medium' : size,
5077
+ color: color,
5078
+ style: style
5079
+ };
3873
5080
  return React__default.createElement("svg", _extends({
3874
5081
  xmlns: "http://www.w3.org/2000/svg",
3875
5082
  fill: "none",
3876
5083
  viewBox: "0 0 20 20",
3877
- style: getIconStyles(props),
5084
+ style: getIconStyles(styleProps),
3878
5085
  "data-testid": testId,
3879
5086
  ref: ref
3880
5087
  }, props), React__default.createElement("g", {
@@ -3891,16 +5098,25 @@ var IconUniversity = React.forwardRef(function (_ref, ref) {
3891
5098
  });
3892
5099
  IconUniversity.displayName = 'IconUniversity';
3893
5100
 
3894
- var _excluded$28 = ["testId"];
5101
+ var _excluded$28 = ["testId", "size", "color", "style"];
3895
5102
  var IconUnlock = React.forwardRef(function (_ref, ref) {
3896
5103
  var _ref$testId = _ref.testId,
3897
5104
  testId = _ref$testId === void 0 ? 'icon-unlock' : _ref$testId,
5105
+ size = _ref.size,
5106
+ color = _ref.color,
5107
+ style = _ref.style,
3898
5108
  props = _objectWithoutPropertiesLoose(_ref, _excluded$28);
5109
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5110
+ var styleProps = {
5111
+ size: !size && isInsideButton ? 'medium' : size,
5112
+ color: color,
5113
+ style: style
5114
+ };
3899
5115
  return React__default.createElement("svg", _extends({
3900
5116
  xmlns: "http://www.w3.org/2000/svg",
3901
5117
  fill: "none",
3902
5118
  viewBox: "0 0 20 20",
3903
- style: getIconStyles(props),
5119
+ style: getIconStyles(styleProps),
3904
5120
  "data-testid": testId,
3905
5121
  ref: ref
3906
5122
  }, props), React__default.createElement("g", {
@@ -3917,16 +5133,25 @@ var IconUnlock = React.forwardRef(function (_ref, ref) {
3917
5133
  });
3918
5134
  IconUnlock.displayName = 'IconUnlock';
3919
5135
 
3920
- var _excluded$29 = ["testId"];
5136
+ var _excluded$29 = ["testId", "size", "color", "style"];
3921
5137
  var IconUserComputer = React.forwardRef(function (_ref, ref) {
3922
5138
  var _ref$testId = _ref.testId,
3923
5139
  testId = _ref$testId === void 0 ? 'icon-user-computer' : _ref$testId,
5140
+ size = _ref.size,
5141
+ color = _ref.color,
5142
+ style = _ref.style,
3924
5143
  props = _objectWithoutPropertiesLoose(_ref, _excluded$29);
5144
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5145
+ var styleProps = {
5146
+ size: !size && isInsideButton ? 'medium' : size,
5147
+ color: color,
5148
+ style: style
5149
+ };
3925
5150
  return React__default.createElement("svg", _extends({
3926
5151
  xmlns: "http://www.w3.org/2000/svg",
3927
5152
  fill: "none",
3928
5153
  viewBox: "0 0 20 20",
3929
- style: getIconStyles(props),
5154
+ style: getIconStyles(styleProps),
3930
5155
  "data-testid": testId,
3931
5156
  ref: ref
3932
5157
  }, props), React__default.createElement("path", {
@@ -3947,16 +5172,25 @@ var IconUserComputer = React.forwardRef(function (_ref, ref) {
3947
5172
  });
3948
5173
  IconUserComputer.displayName = 'IconUserComputer';
3949
5174
 
3950
- var _excluded$2a = ["testId"];
5175
+ var _excluded$2a = ["testId", "size", "color", "style"];
3951
5176
  var IconUserFriends = React.forwardRef(function (_ref, ref) {
3952
5177
  var _ref$testId = _ref.testId,
3953
5178
  testId = _ref$testId === void 0 ? 'icon-user-friends' : _ref$testId,
5179
+ size = _ref.size,
5180
+ color = _ref.color,
5181
+ style = _ref.style,
3954
5182
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2a);
5183
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5184
+ var styleProps = {
5185
+ size: !size && isInsideButton ? 'medium' : size,
5186
+ color: color,
5187
+ style: style
5188
+ };
3955
5189
  return React__default.createElement("svg", _extends({
3956
5190
  xmlns: "http://www.w3.org/2000/svg",
3957
5191
  fill: "none",
3958
5192
  viewBox: "0 0 20 20",
3959
- style: getIconStyles(props),
5193
+ style: getIconStyles(styleProps),
3960
5194
  "data-testid": testId,
3961
5195
  ref: ref
3962
5196
  }, props), React__default.createElement("path", {
@@ -3966,16 +5200,25 @@ var IconUserFriends = React.forwardRef(function (_ref, ref) {
3966
5200
  });
3967
5201
  IconUserFriends.displayName = 'IconUserFriends';
3968
5202
 
3969
- var _excluded$2b = ["testId"];
5203
+ var _excluded$2b = ["testId", "size", "color", "style"];
3970
5204
  var IconUserLight = React.forwardRef(function (_ref, ref) {
3971
5205
  var _ref$testId = _ref.testId,
3972
5206
  testId = _ref$testId === void 0 ? 'icon-user-light' : _ref$testId,
5207
+ size = _ref.size,
5208
+ color = _ref.color,
5209
+ style = _ref.style,
3973
5210
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2b);
5211
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5212
+ var styleProps = {
5213
+ size: !size && isInsideButton ? 'medium' : size,
5214
+ color: color,
5215
+ style: style
5216
+ };
3974
5217
  return React__default.createElement("svg", _extends({
3975
5218
  xmlns: "http://www.w3.org/2000/svg",
3976
5219
  fill: "none",
3977
5220
  viewBox: "0 0 20 20",
3978
- style: getIconStyles(props),
5221
+ style: getIconStyles(styleProps),
3979
5222
  "data-testid": testId,
3980
5223
  ref: ref
3981
5224
  }, props), React__default.createElement("path", {
@@ -3987,16 +5230,25 @@ var IconUserLight = React.forwardRef(function (_ref, ref) {
3987
5230
  });
3988
5231
  IconUserLight.displayName = 'IconUserLight';
3989
5232
 
3990
- var _excluded$2c = ["testId"];
5233
+ var _excluded$2c = ["testId", "size", "color", "style"];
3991
5234
  var IconUserPlus = React.forwardRef(function (_ref, ref) {
3992
5235
  var _ref$testId = _ref.testId,
3993
5236
  testId = _ref$testId === void 0 ? 'icon-user-plus' : _ref$testId,
5237
+ size = _ref.size,
5238
+ color = _ref.color,
5239
+ style = _ref.style,
3994
5240
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2c);
5241
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5242
+ var styleProps = {
5243
+ size: !size && isInsideButton ? 'medium' : size,
5244
+ color: color,
5245
+ style: style
5246
+ };
3995
5247
  return React__default.createElement("svg", _extends({
3996
5248
  xmlns: "http://www.w3.org/2000/svg",
3997
5249
  fill: "none",
3998
5250
  viewBox: "0 0 20 20",
3999
- style: getIconStyles(props),
5251
+ style: getIconStyles(styleProps),
4000
5252
  "data-testid": testId,
4001
5253
  ref: ref
4002
5254
  }, props), React__default.createElement("path", {
@@ -4006,16 +5258,25 @@ var IconUserPlus = React.forwardRef(function (_ref, ref) {
4006
5258
  });
4007
5259
  IconUserPlus.displayName = 'IconUserPlus';
4008
5260
 
4009
- var _excluded$2d = ["testId"];
5261
+ var _excluded$2d = ["testId", "size", "color", "style"];
4010
5262
  var IconUserSearch = React.forwardRef(function (_ref, ref) {
4011
5263
  var _ref$testId = _ref.testId,
4012
5264
  testId = _ref$testId === void 0 ? 'icon-user-search' : _ref$testId,
5265
+ size = _ref.size,
5266
+ color = _ref.color,
5267
+ style = _ref.style,
4013
5268
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2d);
5269
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5270
+ var styleProps = {
5271
+ size: !size && isInsideButton ? 'medium' : size,
5272
+ color: color,
5273
+ style: style
5274
+ };
4014
5275
  return React__default.createElement("svg", _extends({
4015
5276
  xmlns: "http://www.w3.org/2000/svg",
4016
5277
  fill: "none",
4017
5278
  viewBox: "0 0 20 20",
4018
- style: getIconStyles(props),
5279
+ style: getIconStyles(styleProps),
4019
5280
  "data-testid": testId,
4020
5281
  ref: ref
4021
5282
  }, props), React__default.createElement("g", {
@@ -4034,16 +5295,25 @@ var IconUserSearch = React.forwardRef(function (_ref, ref) {
4034
5295
  });
4035
5296
  IconUserSearch.displayName = 'IconUserSearch';
4036
5297
 
4037
- var _excluded$2e = ["testId"];
5298
+ var _excluded$2e = ["testId", "size", "color", "style"];
4038
5299
  var IconUserSlash = React.forwardRef(function (_ref, ref) {
4039
5300
  var _ref$testId = _ref.testId,
4040
5301
  testId = _ref$testId === void 0 ? 'icon-user-slash' : _ref$testId,
5302
+ size = _ref.size,
5303
+ color = _ref.color,
5304
+ style = _ref.style,
4041
5305
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2e);
5306
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5307
+ var styleProps = {
5308
+ size: !size && isInsideButton ? 'medium' : size,
5309
+ color: color,
5310
+ style: style
5311
+ };
4042
5312
  return React__default.createElement("svg", _extends({
4043
5313
  xmlns: "http://www.w3.org/2000/svg",
4044
5314
  fill: "none",
4045
5315
  viewBox: "0 0 20 20",
4046
- style: getIconStyles(props),
5316
+ style: getIconStyles(styleProps),
4047
5317
  "data-testid": testId,
4048
5318
  ref: ref
4049
5319
  }, props), React__default.createElement("g", {
@@ -4060,16 +5330,25 @@ var IconUserSlash = React.forwardRef(function (_ref, ref) {
4060
5330
  });
4061
5331
  IconUserSlash.displayName = 'IconUserSlash';
4062
5332
 
4063
- var _excluded$2f = ["testId"];
5333
+ var _excluded$2f = ["testId", "size", "color", "style"];
4064
5334
  var IconUserSolid = React.forwardRef(function (_ref, ref) {
4065
5335
  var _ref$testId = _ref.testId,
4066
5336
  testId = _ref$testId === void 0 ? 'icon-user-solid' : _ref$testId,
5337
+ size = _ref.size,
5338
+ color = _ref.color,
5339
+ style = _ref.style,
4067
5340
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2f);
5341
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5342
+ var styleProps = {
5343
+ size: !size && isInsideButton ? 'medium' : size,
5344
+ color: color,
5345
+ style: style
5346
+ };
4068
5347
  return React__default.createElement("svg", _extends({
4069
5348
  xmlns: "http://www.w3.org/2000/svg",
4070
5349
  fill: "none",
4071
5350
  viewBox: "0 0 20 20",
4072
- style: getIconStyles(props),
5351
+ style: getIconStyles(styleProps),
4073
5352
  "data-testid": testId,
4074
5353
  ref: ref
4075
5354
  }, props), React__default.createElement("path", {
@@ -4079,16 +5358,25 @@ var IconUserSolid = React.forwardRef(function (_ref, ref) {
4079
5358
  });
4080
5359
  IconUserSolid.displayName = 'IconUserSolid';
4081
5360
 
4082
- var _excluded$2g = ["testId"];
5361
+ var _excluded$2g = ["testId", "size", "color", "style"];
4083
5362
  var IconUserTag = React.forwardRef(function (_ref, ref) {
4084
5363
  var _ref$testId = _ref.testId,
4085
5364
  testId = _ref$testId === void 0 ? 'icon-user-tag' : _ref$testId,
5365
+ size = _ref.size,
5366
+ color = _ref.color,
5367
+ style = _ref.style,
4086
5368
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2g);
5369
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5370
+ var styleProps = {
5371
+ size: !size && isInsideButton ? 'medium' : size,
5372
+ color: color,
5373
+ style: style
5374
+ };
4087
5375
  return React__default.createElement("svg", _extends({
4088
5376
  xmlns: "http://www.w3.org/2000/svg",
4089
5377
  fill: "none",
4090
5378
  viewBox: "0 0 20 20",
4091
- style: getIconStyles(props),
5379
+ style: getIconStyles(styleProps),
4092
5380
  "data-testid": testId,
4093
5381
  ref: ref
4094
5382
  }, props), React__default.createElement("path", {
@@ -4100,16 +5388,25 @@ var IconUserTag = React.forwardRef(function (_ref, ref) {
4100
5388
  });
4101
5389
  IconUserTag.displayName = 'IconUserTag';
4102
5390
 
4103
- var _excluded$2h = ["testId"];
5391
+ var _excluded$2h = ["testId", "size", "color", "style"];
4104
5392
  var IconUserTie = React.forwardRef(function (_ref, ref) {
4105
5393
  var _ref$testId = _ref.testId,
4106
5394
  testId = _ref$testId === void 0 ? 'icon-user-tie' : _ref$testId,
5395
+ size = _ref.size,
5396
+ color = _ref.color,
5397
+ style = _ref.style,
4107
5398
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2h);
5399
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5400
+ var styleProps = {
5401
+ size: !size && isInsideButton ? 'medium' : size,
5402
+ color: color,
5403
+ style: style
5404
+ };
4108
5405
  return React__default.createElement("svg", _extends({
4109
5406
  xmlns: "http://www.w3.org/2000/svg",
4110
5407
  fill: "none",
4111
5408
  viewBox: "0 0 20 20",
4112
- style: getIconStyles(props),
5409
+ style: getIconStyles(styleProps),
4113
5410
  "data-testid": testId,
4114
5411
  ref: ref
4115
5412
  }, props), React__default.createElement("path", {
@@ -4119,16 +5416,25 @@ var IconUserTie = React.forwardRef(function (_ref, ref) {
4119
5416
  });
4120
5417
  IconUserTie.displayName = 'IconUserTie';
4121
5418
 
4122
- var _excluded$2i = ["testId"];
5419
+ var _excluded$2i = ["testId", "size", "color", "style"];
4123
5420
  var IconUsers = React.forwardRef(function (_ref, ref) {
4124
5421
  var _ref$testId = _ref.testId,
4125
5422
  testId = _ref$testId === void 0 ? 'icon-users' : _ref$testId,
5423
+ size = _ref.size,
5424
+ color = _ref.color,
5425
+ style = _ref.style,
4126
5426
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2i);
5427
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5428
+ var styleProps = {
5429
+ size: !size && isInsideButton ? 'medium' : size,
5430
+ color: color,
5431
+ style: style
5432
+ };
4127
5433
  return React__default.createElement("svg", _extends({
4128
5434
  xmlns: "http://www.w3.org/2000/svg",
4129
5435
  fill: "none",
4130
5436
  viewBox: "0 0 20 20",
4131
- style: getIconStyles(props),
5437
+ style: getIconStyles(styleProps),
4132
5438
  "data-testid": testId,
4133
5439
  ref: ref
4134
5440
  }, props), React__default.createElement("path", {
@@ -4138,16 +5444,25 @@ var IconUsers = React.forwardRef(function (_ref, ref) {
4138
5444
  });
4139
5445
  IconUsers.displayName = 'IconUsers';
4140
5446
 
4141
- var _excluded$2j = ["testId"];
5447
+ var _excluded$2j = ["testId", "size", "color", "style"];
4142
5448
  var IconVideo = React.forwardRef(function (_ref, ref) {
4143
5449
  var _ref$testId = _ref.testId,
4144
5450
  testId = _ref$testId === void 0 ? 'icon-video' : _ref$testId,
5451
+ size = _ref.size,
5452
+ color = _ref.color,
5453
+ style = _ref.style,
4145
5454
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2j);
5455
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5456
+ var styleProps = {
5457
+ size: !size && isInsideButton ? 'medium' : size,
5458
+ color: color,
5459
+ style: style
5460
+ };
4146
5461
  return React__default.createElement("svg", _extends({
4147
5462
  xmlns: "http://www.w3.org/2000/svg",
4148
5463
  fill: "none",
4149
5464
  viewBox: "0 0 20 20",
4150
- style: getIconStyles(props),
5465
+ style: getIconStyles(styleProps),
4151
5466
  "data-testid": testId,
4152
5467
  ref: ref
4153
5468
  }, props), React__default.createElement("path", {
@@ -4157,16 +5472,25 @@ var IconVideo = React.forwardRef(function (_ref, ref) {
4157
5472
  });
4158
5473
  IconVideo.displayName = 'IconVideo';
4159
5474
 
4160
- var _excluded$2k = ["testId"];
5475
+ var _excluded$2k = ["testId", "size", "color", "style"];
4161
5476
  var IconVolumeMute = React.forwardRef(function (_ref, ref) {
4162
5477
  var _ref$testId = _ref.testId,
4163
5478
  testId = _ref$testId === void 0 ? 'icon-volume-mute' : _ref$testId,
5479
+ size = _ref.size,
5480
+ color = _ref.color,
5481
+ style = _ref.style,
4164
5482
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2k);
5483
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5484
+ var styleProps = {
5485
+ size: !size && isInsideButton ? 'medium' : size,
5486
+ color: color,
5487
+ style: style
5488
+ };
4165
5489
  return React__default.createElement("svg", _extends({
4166
5490
  xmlns: "http://www.w3.org/2000/svg",
4167
5491
  fill: "none",
4168
5492
  viewBox: "0 0 20 20",
4169
- style: getIconStyles(props),
5493
+ style: getIconStyles(styleProps),
4170
5494
  "data-testid": testId,
4171
5495
  ref: ref
4172
5496
  }, props), React__default.createElement("path", {
@@ -4176,16 +5500,25 @@ var IconVolumeMute = React.forwardRef(function (_ref, ref) {
4176
5500
  });
4177
5501
  IconVolumeMute.displayName = 'IconVolumeMute';
4178
5502
 
4179
- var _excluded$2l = ["testId"];
5503
+ var _excluded$2l = ["testId", "size", "color", "style"];
4180
5504
  var IconVolume = React.forwardRef(function (_ref, ref) {
4181
5505
  var _ref$testId = _ref.testId,
4182
5506
  testId = _ref$testId === void 0 ? 'icon-volume' : _ref$testId,
5507
+ size = _ref.size,
5508
+ color = _ref.color,
5509
+ style = _ref.style,
4183
5510
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2l);
5511
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5512
+ var styleProps = {
5513
+ size: !size && isInsideButton ? 'medium' : size,
5514
+ color: color,
5515
+ style: style
5516
+ };
4184
5517
  return React__default.createElement("svg", _extends({
4185
5518
  xmlns: "http://www.w3.org/2000/svg",
4186
5519
  fill: "none",
4187
5520
  viewBox: "0 0 20 20",
4188
- style: getIconStyles(props),
5521
+ style: getIconStyles(styleProps),
4189
5522
  "data-testid": testId,
4190
5523
  ref: ref
4191
5524
  }, props), React__default.createElement("path", {
@@ -4195,16 +5528,25 @@ var IconVolume = React.forwardRef(function (_ref, ref) {
4195
5528
  });
4196
5529
  IconVolume.displayName = 'IconVolume';
4197
5530
 
4198
- var _excluded$2m = ["testId"];
5531
+ var _excluded$2m = ["testId", "size", "color", "style"];
4199
5532
  var IconWrench = React.forwardRef(function (_ref, ref) {
4200
5533
  var _ref$testId = _ref.testId,
4201
5534
  testId = _ref$testId === void 0 ? 'icon-wrench' : _ref$testId,
5535
+ size = _ref.size,
5536
+ color = _ref.color,
5537
+ style = _ref.style,
4202
5538
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2m);
5539
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5540
+ var styleProps = {
5541
+ size: !size && isInsideButton ? 'medium' : size,
5542
+ color: color,
5543
+ style: style
5544
+ };
4203
5545
  return React__default.createElement("svg", _extends({
4204
5546
  xmlns: "http://www.w3.org/2000/svg",
4205
5547
  fill: "none",
4206
5548
  viewBox: "0 0 20 20",
4207
- style: getIconStyles(props),
5549
+ style: getIconStyles(styleProps),
4208
5550
  "data-testid": testId,
4209
5551
  ref: ref
4210
5552
  }, props), React__default.createElement("path", {
@@ -4376,7 +5718,7 @@ var PaginationControls$1 = function PaginationControls(_ref) {
4376
5718
  return React__default.createElement("div", _extends({}, dataProps, {
4377
5719
  className: styles$6['pagination-controls'],
4378
5720
  "data-testid": testId
4379
- }), React__default.createElement(Button$1, {
5721
+ }), React__default.createElement(Button, {
4380
5722
  disabled: !hasPrevious,
4381
5723
  onClick: handlePreviousClick,
4382
5724
  title: React__default.createElement(React__default.Fragment, null, capitalizeFirstLetter(__('previousButton')), "\xA0\xA0", React__default.createElement(KeyboardKey, {
@@ -4384,7 +5726,7 @@ var PaginationControls$1 = function PaginationControls(_ref) {
4384
5726
  }, SHORTCUTS.PREVIOUS.toLocaleUpperCase()))
4385
5727
  }, React__default.createElement(IconArrowLeft, {
4386
5728
  size: "small"
4387
- })), React__default.createElement(Button$1, {
5729
+ })), React__default.createElement(Button, {
4388
5730
  disabled: !hasNext,
4389
5731
  onClick: handleNextClick,
4390
5732
  title: React__default.createElement(React__default.Fragment, null, capitalizeFirstLetter(__('nextButton')), "\xA0\xA0", React__default.createElement(KeyboardKey, {
@@ -4450,7 +5792,7 @@ var toast = function toast(text, theme, options) {
4450
5792
  };
4451
5793
  var CloseButton = function CloseButton(_ref) {
4452
5794
  var closeToast = _ref.closeToast;
4453
- return React__default.createElement(Button$1, {
5795
+ return React__default.createElement(Button, {
4454
5796
  theme: "link-contrast",
4455
5797
  onClick: closeToast
4456
5798
  }, React__default.createElement(IconTimes, null));
@@ -4686,7 +6028,7 @@ var ButtonCTA = function ButtonCTA(_ref) {
4686
6028
  bannerTheme = _ref.bannerTheme,
4687
6029
  _ref$primaryCTA = _ref.primaryCTA,
4688
6030
  primaryCTA = _ref$primaryCTA === void 0 ? false : _ref$primaryCTA;
4689
- if (button.type !== Button$1 || button.props.theme) {
6031
+ if (button.type !== Button || button.props.theme) {
4690
6032
  return button;
4691
6033
  }
4692
6034
  if (bannerTheme === BANNER_THEME.UPSELL && primaryCTA) {
@@ -4797,7 +6139,7 @@ var InlineBanner = function InlineBanner(_ref) {
4797
6139
  bannerTheme: theme
4798
6140
  })), dismissable && React__default.createElement("div", {
4799
6141
  className: styles$d['banner__close']
4800
- }, React__default.createElement(Button$1, {
6142
+ }, React__default.createElement(Button, {
4801
6143
  theme: "link-icon",
4802
6144
  type: "button",
4803
6145
  onClick: onClose
@@ -5020,7 +6362,7 @@ var Label = function Label(_ref) {
5020
6362
  className: classnames(styles$h['label'], (_classNames = {}, _classNames[styles$h['label--truncate']] = shouldTruncate, _classNames))
5021
6363
  }, children);
5022
6364
  if (showTooltip) {
5023
- return React__default.createElement(Tooltip$1, {
6365
+ return React__default.createElement(Tooltip, {
5024
6366
  overlay: children,
5025
6367
  placement: "top"
5026
6368
  }, LabelElement);
@@ -5455,7 +6797,7 @@ var Dropdown = function Dropdown(_ref) {
5455
6797
  }
5456
6798
  };
5457
6799
  var getRef = function getRef() {
5458
- if ((trigger.type === Button$1 || trigger.type === TimeFieldDropdownTrigger) && trigger.ref) {
6800
+ if ((trigger.type === Button || trigger.type === TimeFieldDropdownTrigger) && trigger.ref) {
5459
6801
  return trigger.ref;
5460
6802
  }
5461
6803
  return triggerRef;
@@ -5479,7 +6821,7 @@ var Dropdown = function Dropdown(_ref) {
5479
6821
  triggerRef: updatedRef,
5480
6822
  paneRef: paneRef
5481
6823
  }
5482
- }, trigger.type === Button$1 || trigger.type === 'button' || trigger.type === TimeFieldDropdownTrigger ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
6824
+ }, trigger.type === Button || trigger.type === 'button' || trigger.type === TimeFieldDropdownTrigger ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
5483
6825
  className: styles$g['dropdown__trigger'],
5484
6826
  ref: updatedRef,
5485
6827
  onFocus: handleFocus
@@ -5834,7 +7176,7 @@ var DropdownList = function DropdownList(_ref) {
5834
7176
  var KebabMenu = function KebabMenu(_ref) {
5835
7177
  var actions = _ref.actions;
5836
7178
  return React__default.createElement(Dropdown, {
5837
- trigger: React__default.createElement(Button$1, {
7179
+ trigger: React__default.createElement(Button, {
5838
7180
  theme: "link-icon"
5839
7181
  }, React__default.createElement(IconEllipsisV, null)),
5840
7182
  alignment: "right"
@@ -5920,7 +7262,7 @@ var CalloutCard = function CalloutCard(_ref) {
5920
7262
  width: "354px"
5921
7263
  })), onClose && React__default.createElement("div", {
5922
7264
  className: styles$r['callout-card__close']
5923
- }, React__default.createElement(Button$1, {
7265
+ }, React__default.createElement(Button, {
5924
7266
  theme: "link-icon",
5925
7267
  onClick: onClose
5926
7268
  }, React__default.createElement(IconTimes, null)))));
@@ -6065,7 +7407,7 @@ var PersistentBanner = function PersistentBanner(_ref) {
6065
7407
  }, onDismiss ? React__default.createElement(Inline, {
6066
7408
  flex: [1],
6067
7409
  alignItems: "center"
6068
- }, React__default.createElement(BannerContent, null), React__default.createElement(Button$1, {
7410
+ }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
6069
7411
  theme: "link-contrast",
6070
7412
  onClick: onDismiss
6071
7413
  }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
@@ -6238,7 +7580,7 @@ var ModalHeader = function ModalHeader(_ref) {
6238
7580
  if (!header && !subHeader) {
6239
7581
  return onClose ? React__default.createElement("div", {
6240
7582
  className: styles$D['header__close-button']
6241
- }, React__default.createElement(Button$1, {
7583
+ }, React__default.createElement(Button, {
6242
7584
  theme: "link-icon",
6243
7585
  onClick: onClose,
6244
7586
  disabled: loading
@@ -6254,7 +7596,7 @@ var ModalHeader = function ModalHeader(_ref) {
6254
7596
  alignItems: "center"
6255
7597
  }, React__default.createElement("span", {
6256
7598
  className: styles$D['header']
6257
- }, header), onClose && React__default.createElement(Button$1, {
7599
+ }, header), onClose && React__default.createElement(Button, {
6258
7600
  theme: "link-icon",
6259
7601
  onClick: onClose,
6260
7602
  disabled: loading
@@ -6385,7 +7727,7 @@ var updateButtonProps = function updateButtonProps(button, newProps) {
6385
7727
  if (!button) {
6386
7728
  return null;
6387
7729
  }
6388
- if (button.type !== Button$1) {
7730
+ if (button.type !== Button) {
6389
7731
  return button;
6390
7732
  }
6391
7733
  return React__default.cloneElement(button, _extends({}, newProps));
@@ -6826,7 +8168,7 @@ var HintModal$1 = function HintModal(_ref) {
6826
8168
  overlayClassName: styles$I['hint-modal__overlay']
6827
8169
  }, React__default.createElement("div", {
6828
8170
  className: styles$I['hint-modal__close-button']
6829
- }, React__default.createElement(Button$1, {
8171
+ }, React__default.createElement(Button, {
6830
8172
  theme: "link-icon",
6831
8173
  onClick: handleOnClose
6832
8174
  }, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
@@ -6888,7 +8230,7 @@ var DataTableCellElement = function DataTableCellElement(_ref, ref) {
6888
8230
  }, React__default.createElement("div", {
6889
8231
  className: classnames(styles$B['data-table-cell__content'], (_classnames3 = {}, _classnames3[styles$B['data-table-cell__content--with-error']] = hasError, _classnames3[styles$B['data-table-cell__content--right-align']] = isRightAligned, _classnames3[styles$B['data-table-cell__content--loading']] = state === DATA_TABLE_STATES.BACKGROUND_LOADING, _classnames3))
6890
8232
  }, isRightAligned && icon, children, !isRightAligned && icon));
6891
- return React__default.createElement(Tooltip$1, {
8233
+ return React__default.createElement(Tooltip, {
6892
8234
  overlay: errorMessage,
6893
8235
  delayOnClose: delayOnCloseError,
6894
8236
  placement: "top",
@@ -6916,7 +8258,7 @@ var DataTableRowActions = function DataTableRowActions(_ref) {
6916
8258
  }, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
6917
8259
  width: 45
6918
8260
  }), sideActions.length > 0 && sideActions.map(function (action) {
6919
- return React__default.createElement(Button$1, _extends({
8261
+ return React__default.createElement(Button, _extends({
6920
8262
  key: action.action,
6921
8263
  onClick: action.onAction,
6922
8264
  theme: typeof action.label === 'string' ? 'default' : 'link-icon'
@@ -6998,7 +8340,7 @@ var DataTableEditableCellElement = function DataTableEditableCellElement(_ref, r
6998
8340
  e.target.blur();
6999
8341
  }
7000
8342
  }))));
7001
- return React__default.createElement(Tooltip$1, {
8343
+ return React__default.createElement(Tooltip, {
7002
8344
  overlay: errorMessage,
7003
8345
  placement: "top",
7004
8346
  theme: "white"
@@ -7121,9 +8463,17 @@ var styles$K = {"data-table-sticky-columns-container":"_3oL6K","data-table-stick
7121
8463
 
7122
8464
  var useDataTableScrollState = function useDataTableScrollState(stickyColumns) {
7123
8465
  var scrollContainerRef = React.useRef(null);
8466
+ var _useDataTableContext = useDataTableContext(),
8467
+ columns = _useDataTableContext.columns,
8468
+ numberOfRows = _useDataTableContext.numberOfRows;
7124
8469
  var _useState = React.useState(DATA_TABLE_SCROLL_STATES.NO_SCROLL),
7125
8470
  scrollState = _useState[0],
7126
8471
  setScrollState = _useState[1];
8472
+ var numberOfHiddenColumns = React.useMemo(function () {
8473
+ return columns === null || columns === void 0 ? void 0 : columns.filter(function (column) {
8474
+ return column.hidden;
8475
+ }).length;
8476
+ }, [columns]);
7127
8477
  var onScroll = function onScroll() {
7128
8478
  if (!stickyColumns) {
7129
8479
  return;
@@ -7138,7 +8488,7 @@ var useDataTableScrollState = function useDataTableScrollState(stickyColumns) {
7138
8488
  };
7139
8489
  React.useLayoutEffect(function () {
7140
8490
  onScroll();
7141
- }, []);
8491
+ }, [numberOfHiddenColumns, numberOfRows]);
7142
8492
  var hasScrollOnLeft = scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_LEFT || scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_BOTH_SIDES;
7143
8493
  var hasScrollOnRight = scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_RIGHT || scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_BOTH_SIDES;
7144
8494
  var hasRightColumnSticky = stickyColumns === 'right' || stickyColumns === 'both';
@@ -7631,7 +8981,7 @@ function CustomMenu(_ref) {
7631
8981
  var CreatableButton = function CreatableButton() {
7632
8982
  var button = creatableButton;
7633
8983
  if (!button || typeof button === 'string') {
7634
- return React__default.createElement(Button$1, {
8984
+ return React__default.createElement(Button, {
7635
8985
  theme: "link-primary",
7636
8986
  onClick: function onClick() {
7637
8987
  if (props.selectProps.inputValue) {
@@ -7706,7 +9056,7 @@ function CustomMenu(_ref) {
7706
9056
  "data-testid": "select-create-option-input",
7707
9057
  autoFocus: true,
7708
9058
  defaultValue: inputDefaultValue
7709
- }), React__default.createElement(Button$1, {
9059
+ }), React__default.createElement(Button, {
7710
9060
  onClick: onCreateButton,
7711
9061
  onKeyDown: function onKeyDown(e) {
7712
9062
  e.stopPropagation();
@@ -8096,7 +9446,7 @@ var updateButtonProps$1 = function updateButtonProps(child, newProps) {
8096
9446
  if (!child) {
8097
9447
  return null;
8098
9448
  }
8099
- if (child.type !== Button$1) {
9449
+ if (child.type !== Button) {
8100
9450
  return child;
8101
9451
  }
8102
9452
  return React__default.cloneElement(child, _extends({
@@ -9411,7 +10761,7 @@ var FromDate = function FromDate(_ref) {
9411
10761
  }));
9412
10762
  };
9413
10763
 
9414
- var ToDate = function ToDate(_ref, ref) {
10764
+ var ToDateElement = function ToDateElement(_ref, ref) {
9415
10765
  var name = _ref.name,
9416
10766
  format = _ref.format,
9417
10767
  disabledDays = _ref.disabledDays,
@@ -9466,7 +10816,7 @@ var ToDate = function ToDate(_ref, ref) {
9466
10816
  mode: "end-date"
9467
10817
  }));
9468
10818
  };
9469
- var ToDate$1 = React.forwardRef(ToDate);
10819
+ var ToDate = React.forwardRef(ToDateElement);
9470
10820
 
9471
10821
  var DateRangeField = function DateRangeField(_ref) {
9472
10822
  var _classnames, _disabledDays$start, _disabledDays$end;
@@ -9541,7 +10891,7 @@ var DateRangeField = function DateRangeField(_ref) {
9541
10891
  }), React__default.createElement(IconArrowRight, {
9542
10892
  size: "medium",
9543
10893
  color: "grey-400"
9544
- }), React__default.createElement(ToDate$1, {
10894
+ }), React__default.createElement(ToDate, {
9545
10895
  name: name,
9546
10896
  format: format,
9547
10897
  start: start,
@@ -11108,7 +12458,7 @@ var PhoneField = function PhoneField(_ref) {
11108
12458
  var styles$17 = {"badge":"_1QLaK","badge--warning":"_qsFWw","badge--danger":"_359Cc","badge--success":"_2AOEK","badge--info":"_1mLjf"};
11109
12459
 
11110
12460
  var _excluded$2L = ["children", "theme", "title", "testId"];
11111
- var Badge = function Badge(_ref, forwardedRef) {
12461
+ var BadgeElement = function BadgeElement(_ref, forwardedRef) {
11112
12462
  var _classnames;
11113
12463
  var children = _ref.children,
11114
12464
  theme = _ref.theme,
@@ -11122,7 +12472,7 @@ var Badge = function Badge(_ref, forwardedRef) {
11122
12472
  ref.current.style.height = ref.current.offsetWidth + 'px';
11123
12473
  }
11124
12474
  });
11125
- return React__default.createElement(Tooltip$1, {
12475
+ return React__default.createElement(Tooltip, {
11126
12476
  overlay: title,
11127
12477
  ref: ref
11128
12478
  }, React__default.createElement("div", _extends({
@@ -11131,7 +12481,7 @@ var Badge = function Badge(_ref, forwardedRef) {
11131
12481
  "data-testid": testId
11132
12482
  }, otherProps), children));
11133
12483
  };
11134
- var Badge$1 = React.forwardRef(Badge);
12484
+ var Badge = React.forwardRef(BadgeElement);
11135
12485
 
11136
12486
  var styles$18 = {"avatar":"_1X7La","avatar--small":"_o5x6S","avatar__badge":"_NN8-D","avatar--medium":"_VxW5y","avatar--large":"_ec7jQ","avatar--extra-large":"_3VS00"};
11137
12487
 
@@ -11471,11 +12821,11 @@ var EmptyState = function EmptyState(_ref) {
11471
12821
 
11472
12822
  exports.AsyncSelectField = AsyncSelectField$1;
11473
12823
  exports.Avatar = Avatar;
11474
- exports.Badge = Badge$1;
12824
+ exports.Badge = Badge;
11475
12825
  exports.Bold = Bold;
11476
12826
  exports.BreadcrumbItem = BreadcrumbItem;
11477
12827
  exports.Breadcrumbs = Breadcrumbs;
11478
- exports.Button = Button$1;
12828
+ exports.Button = Button;
11479
12829
  exports.COLORS = COLORS;
11480
12830
  exports.Calendar = Calendar$1;
11481
12831
  exports.CalloutCard = CalloutCard;
@@ -11687,7 +13037,7 @@ exports.TimeField = TimeField;
11687
13037
  exports.TimeRangeField = TimeRangeField;
11688
13038
  exports.Toggle = Toggle;
11689
13039
  exports.ToolbarSelect = ToolbarSelect;
11690
- exports.Tooltip = Tooltip$1;
13040
+ exports.Tooltip = Tooltip;
11691
13041
  exports.Underline = Underline;
11692
13042
  exports.WeekField = WeekField;
11693
13043
  exports.ZINDEX = ZINDEX;